1 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
4 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8 * p-exp.y: Also use new prev_lexptr variable
9 to improve error reporting. Based on Michael Snyder
10 2002-04-24 dated patch to c-exp.y.
12 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
14 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
15 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
16 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
18 * config/alpha/tm-alpha.h: Remove forward decls of struct type
20 (FUNCTION_START_OFFSET): Remove.
23 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
25 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
28 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
30 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
31 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
32 alpha_linux_pc_in_sigtramp.
33 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
34 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
35 alpha_osf1_pc_in_sigtramp.
36 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
37 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
38 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
39 alphafbsd_pc_in_sigtramp.
40 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
41 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
42 alphanbsd_pc_in_sigtramp.
43 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
44 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
46 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
48 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
50 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
52 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
54 (alphanbsd-nat.o): New dependency list.
55 (alphanbsd-tdep.o): Ditto.
56 * NEWS: Note new native NetBSD/alpha configuration.
57 * alphanbsd-nat.c: New file.
58 * alphanbsd-tdep.c: Ditto.
59 * configure.host (alpha*-*-netbsd*): New host.
60 * configure.tgt (alpha*-*-netbsd*): New target.
61 * config/alpha/nbsd.mh: New file.
62 * config/alpha/nbsd.mt: Ditto.
63 * config/alpha/nm-nbsd.h: Ditto.
64 * config/alpha/tm-nbsd.h: Ditto.
66 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
68 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
69 (alpha-osf1-tdep.o): New dependency list.
70 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
71 and skip_sigtramp_frame members.
72 * alpha-linux-tdep.c: Include gdbcore.h.
73 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
74 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
75 * alpha-osf1-tdep.c: New file.
76 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
78 (alpha_frame_past_sigtramp_frame): New function.
79 (alpha_dynamic_sigtramp_offset): Ditto.
80 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
81 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
82 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
83 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
84 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
85 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
86 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
87 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
88 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
89 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
90 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
91 to find_solib_trampoline_target.
92 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
93 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
94 (SKIP_TRAMPOLINE_CODE): Remove.
95 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
96 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
97 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
98 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
99 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
100 (PROC_SIGTRAMP_MAGIC): Ditto.
101 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
102 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
103 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
104 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
105 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
107 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
109 * NEWS: Note that Alpha targets are now multi-arch.
111 2002-04-24 Michael Snyder <msnyder@redhat.com>
113 * parser-defs.h (prev_lexptr): New external variable.
114 * parse.c (parse_exp_1): Set prev_lexptr to null before
115 calling the language-specific parser.
116 * c-exp.y (yylex): Set prev_lexptr to start of current token.
117 (yyerror): Use prev_lexptr in error reporting.
119 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
121 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
122 * gregset.h: If FILL_FPXREGSET is defined, provide
123 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
124 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
125 is defined, call fill_fpxregset.
127 2002-04-24 Roland McGrath <roland@frob.com>
129 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
130 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
131 (supply_gregset, supply_fpregset): New functions.
133 * gnu-nat.c (gnu_find_memory_regions): New function.
134 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
135 (gnu_xfer_memory): Add a cast.
137 2002-04-24 Michael Snyder <msnyder@redhat.com>
139 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
140 loop. Add handling for "str lr, [sp, #-4]!" and for saves
141 of argument regs ("str r(0123), [r11, #-nn"]).
142 (arm_skip_prologue): Better handling for frameless functions.
143 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
144 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
146 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
148 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
149 NUM_PSEUDO_REGS can be used.
151 2002-04-24 Andrew Cagney <ac131313@redhat.com>
153 * arch-utils.h: Update copyright.
155 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
156 * gdbarch.h, gdbarch.c: Re-generate.
158 * inferior.h (IN_SIGTRAMP): Delete definition.
159 * arch-utils.c (legacy_pc_in_sigtramp): New function.
160 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
162 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
163 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
164 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
165 (find_proc_framesize): Ditto.
166 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
167 (alpha_init_extra_frame_info): Ditto.
168 * infrun.c (handle_inferior_event): Ditto.
169 (handle_inferior_event): Ditto.
170 (check_sigtramp2): Ditto.
171 * blockframe.c (create_new_frame): Ditto.
172 (get_prev_frame): Ditto.
173 * ppc-linux-tdep.c: Update comments.
174 * i386-linux-tdep.c: Update comments.
175 * breakpoint.c (bpstat_what): Update comment.
177 2002-04-24 Michal Ludvig <mludvig@suse.cz>
179 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
180 (regsets_store_inferior_registers): Removed cast to int from
182 * gdbserver/regcache.h: Added declaration of struct inferior_info.
184 2002-04-24 David S. Miller <davem@redhat.com>
186 * i960-tdep.c (register_in_window_p): New function.
187 (i960_find_saved_register): Use it instead of
188 REGISTER_IN_WINDOW_P.
189 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
191 * symtab.h (find_stab_function_addr): Kill extern.
192 * minsyms.c (find_stab_function_addr): Remove from here...
193 * dbxread.c: ... to here, and mark it static.
195 2002-04-20 David S. Miller <davem@redhat.com>
197 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
198 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
200 2002-04-21 David S. Miller <davem@redhat.com>
202 * remote-vxsparc.c (vx_read_register): Fix typo, we want
203 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
204 (vx_write_register): Likewise.
206 2002-04-23 J. Brobecker <brobecker@gnat.com>
208 * source.c (is_regular_file): New function.
209 (openp): Check wether file to open is a regular file
210 to avoid opening directories.
212 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
214 * findvar.c (extract_signed_integer): Cast printf argument
215 to suppress format warning.
216 (extract_unsigned_integer): Likewise.
217 * infcmd.c (registers_info): Likewise.
218 * top.c (get_prompt_1): Likewise.
219 * valops.c (value_assign): Likewise.
220 * valprint.c (print_decimal): Likewise.
222 2002-04-22 H.J. Lu (hjl@gnu.org)
224 * c-exp.y (typebase): Support
226 [long|long long|short] [signed|unsigned] [int|]
230 signed [long|long long|short] int
232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
234 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
236 * vax-tdep.h: New file.
237 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
238 Make several routines static.
239 (vax_get_saved_register): New function.
240 (vax_gdbarch_init): New function.
241 (_initialize_vax_tdep): Register vax_gdbarch_init.
242 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
243 Remove macros now under the control of gdbarch.
245 2002-04-22 Michael Snyder <msnyder@redhat.com>
247 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
248 Some whitespace and coding standards tweaks.
250 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
252 * vax-tdep.c: Include regcache.h.
253 (vax_call_dummy_words): New.
254 (sizeof_vax_call_dummy_words): New.
255 (vax_fix_call_dummy): New function.
256 (vax_saved_pc_after_call): Ditto.
257 * config/vax/tm-vax.h: Don't include regcache.h.
258 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
259 (CALL_DUMMY): Remove.
260 (CALL_DUMMY_WORDS): Define.
261 (SIZEOF_CALL_DUMMY_WORDS): Define.
262 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
264 2002-04-18 Michael Snyder <msnyder@redhat.com>
266 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
268 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
270 * vax-tdep.c (vax_frame_chain): New function.
271 (vax_push_dummy_frame): Ditto.
272 (vax_pop_frame): Ditto.
273 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
274 (FRAMELESS_FUNCTION_INVOCATION): Use
275 generic_frameless_function_invocation_not.
276 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
277 (POP_FRAME): Use vax_pop_frame.
279 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
281 * vax-tdep.c (vax_store_struct_return): New function.
282 (vax_extract_return_value): Ditto.
283 (vax_store_return_value): Ditto.
284 (vax_extract_struct_value_address): Ditto.
285 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
286 vax_store_struct_return.
287 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
288 (STORE_RETURN_VALUE): Use vax_store_return_value.
289 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
291 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
293 * vax-tdep.c (vax_frame_saved_pc): New function.
294 (vax_frame_args_address_correct): Ditto.
295 (vax_frame_args_address): Ditto.
296 (vax_frame_locals_address): Ditto.
297 (vax_frame_num_args): Move code to be in proximity to
298 other frame-related functions.
299 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
300 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
301 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
302 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
303 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
305 2002-04-22 H.J. Lu (hjl@gnu.org)
307 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
310 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
312 * vax-tdep.c (vax_frame_init_saved_regs): New function.
313 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
314 (FRAME_INIT_SAVED_REGS): New macro.
316 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
318 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
320 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
322 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
324 (fetch_osf_core_registers): Likewise.
325 (supply_gregset): Likewise.
327 2002-04-22 J. Brobecker <brobecker@gnat.com>
329 * symfile.h (get_section_index): Define.
330 * symfile.c (get_section_index): New function.
331 * mdebugread.c (SC_IS_SBSS): New macro.
332 (SC_IS_BSS): Return true for the scBss storage class only, as
333 the scSBss storage class refers to the .sbss section.
334 (parse_partial_symbols): Discard the symbols which associated
335 section does not exist.
336 Make sure to use the .sbss section index for symbols which
337 storage class is scBss, rather than using the .bss section index.
339 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
341 * vax-tdep.c: Update copyright years.
342 (vax_register_name): New function.
343 (vax_register_byte): Ditto.
344 (vax_register_raw_size): Ditto.
345 (vax_register_virtual_size): Ditto.
346 (vax_register_virtual_type): Ditto.
347 * config/vax/tm-vax.h: Update copyright years.
348 (REGISTER_NAMES): Remove.
349 (REGISTER_NAME): Define.
350 (REGISTER_BYTE): Use vax_register_byte.
351 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
352 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
353 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
355 2002-04-21 Andrew Cagney <ac131313@redhat.com>
357 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
359 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
361 2002-04-21 David S. Miller <davem@redhat.com>
363 * arch-utils.c (generic_prologue_frameless_p): Kill
364 SKIP_PROLOGUE_FRAMELESS_P code.
365 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
367 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
368 * arc-tdep.c (arc_prologue_frameless_p): Implement.
369 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
371 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
372 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
373 (sparc_gdbarch_init): Pass it to
374 set_gdbarch_prologue_frameless_p.
376 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
378 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
379 (alphabsd-nat.o): New dependency list.
381 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
383 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
385 (alpha-linux-tdep.o): New dependency list.
386 (alphafbsd-tdep.o): Likewise.
388 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
390 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
392 * alpha-tdep.c: ...from here.
393 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
395 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
397 * config/alpha/tm-alpha.h: Move alpha_software_single_step
398 prototype from here...
399 * alpha-tdep.h: ...to here.
401 2002-04-21 Andrew Cagney <ac131313@redhat.com>
403 * frame.h (selected_frame_level): Document as deprecated.
404 (frame_relative_level): Declare.
405 * stack.c (frame_relative_level): New function.
406 (selected_frame_level): Document as deprecated.
407 (select_frame): Do not set the selected_frame_level.
409 * stack.c (frame_info, record_selected_frame): Update.
410 (frame_command, current_frame_command): Update.
411 (up_silently_base, up_command, down_silently_base): Update.
412 (down_command): Update.
413 * inflow.c (kill_command): Update.
414 * tracepoint.c (finish_tfind_command): Update.
415 * corelow.c (core_open): Update.
416 * thread.c (info_threads_command): Update.
417 (do_captured_thread_select): Update.
418 * infcmd.c (finish_command): Update.
419 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
421 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
423 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
425 2002-04-21 Andrew Cagney <ac131313@redhat.com>
427 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
430 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
432 * alphafbsd-tdep.c: Update copyright years. Include
434 (alphafbsd_use_struct_convention): Make static.
435 (alphafbsd_init_abi): New function.
436 (_initialize_alphafbsd_tdep): New function.
437 * config/alpha/tm-fbsd.h: Update copyright years.
438 (USE_STRUCT_CONVENTION): Remove.
440 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
442 * alpha-tdep.c (alpha_abi_handler): New structure to describe
443 an Alpha ABI variant.
444 (alpha_abi_handler_list): Declare.
445 (alpha_gdbarch_register_os_abi): New function.
446 (alpha_gdbarch_init): Give registered ABI variant handlers a
447 chance to tweak the gdbarch once we have set up defaults.
448 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
450 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
452 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
453 to standard_coerce_float_to_double.
454 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
456 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
458 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
459 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
460 from gdbarch_tdep rather than a constant.
461 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
462 the default text address for all Alpha Unix ABIs.
463 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
464 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
468 * alpha-tdep.h: New file. Includes several Alpha target constants
470 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
471 let gdbarch deal with.
472 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
473 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
475 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
476 Alpha target register names.
477 * alphabsd-nat.c: Likewise.
478 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
479 Alpha target register names. Make serveral routines static.
480 (alpha_get_saved_register): New function.
481 (alpha_abi_names): New.
482 (process_note_abi_tag_sections): New function.
483 (get_elfosabi): New function.
484 (alpha_gdbarch_init): New function.
485 (alpha_dump_tdep): New function.
486 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
488 2002-04-21 Andrew Cagney <ac131313@redhat.com>
490 * frame.c (find_saved_register): Delete #ifdef
491 HAVE_REGISTER_WINDOWS code.
492 * config/sparc/tm-sparc.h: Update comments.
493 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
495 2002-04-21 Andrew Cagney <ac131313@redhat.com>
497 * i960-tdep.c (i960_find_saved_register): New function.
498 (i960_get_saved_register): New function.
499 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
500 (i960_get_saved_register): Declare.
501 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
503 2002-04-20 David S. Miller <davem@redhat.com>
505 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
507 2002-04-20 Andrew Cagney <ac131313@redhat.com>
509 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
510 instead of NUM_PSEUDO_REGS.
512 2002-04-20 David S. Miller <davem@redhat.com>
514 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
515 GDB_MULTI_ARCH_PARTIAL
516 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
517 define, let tm-sp64.h do it.
519 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
521 * frame.c (find_saved_register): Avoid a NULL pointer
522 dereference and actually walk the frame list.
524 2002-04-20 Andrew Cagney <ac131313@redhat.com>
526 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
527 sorted in most most-recent-used order. Document.
528 * gdbarch.h, gdbarch.c: Regenerate.
530 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
532 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
533 (add_inferior): Call create_register_cache.
534 (clear_inferiors): Call free_register_cache.
535 (inferior_regcache_data, set_inferior_regcache_data): New functions.
536 * gdbserver/regcache.c (struct inferior_regcache_data): New.
538 (get_regcache): New function.
539 (create_register_cache, free_register_cache): New functions.
540 (set_register_cache): Don't initialize the register cache here.
541 (registers_to_string, registers_from_string, register_data): Call
543 * gdbserver/regcache.h: Add prototypes.
544 * gdbserver/server.h: Likewise.
546 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
548 * gdbserver/mem-break.c: New file.
549 * gdbserver/mem-break.h: New file.
550 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
552 * gdbserver/inferiors.c (struct inferior_info): Add target_data
554 (clear_inferiors): Free target_data member if set.
555 (inferior_target_data, set_inferior_target_data): New functions.
556 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
557 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
558 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
559 (struct inferior_linux_data): New.
560 (linux_create_inferior): Use set_inferior_target_data.
561 (linux_attach): Likewise. Call add_inferior.
562 (linux_wait_for_one_inferior): New function.
563 (linux_wait): Call it.
564 (linux_write_memory): Add const.
565 (initialize_low): Call set_breakpoint_data.
566 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
568 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
570 * gdbserver/server.h: Include mem-break.h. Update inferior.c
572 * gdbserver/target.c (read_inferior_memory)
573 (write_inferior_memory): New functions.
574 * gdbserver/target.h (read_inferior_memory)
575 (write_inferior_memory): Change macros to prototypes.
576 (struct target_ops): Update comments. Add const to write_memory
579 2002-04-19 Andrew Cagney <ac131313@redhat.com>
581 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
583 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
584 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
585 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
588 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
591 * gdbtypes.c (init_simd_type): Rewrite using new functions.
592 (build_builtin_type_vec128): Ditto.
593 (append_composite_type_field): Fix calculation of type length in
596 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
598 * config/djgpp/README: Update.
600 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
603 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
605 * alpha-tdep.c (setup_arbitrary_frame): Rename...
606 (alpha_setup_arbitrary_frame): ...to this.
607 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
608 for alpha_setup_arbitrary_frame.
610 2002-04-18 Andrew Cagney <cagney@redhat.com>
612 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
613 * gdbarch.h, gdbarch.c: Regenerate.
615 * defs.h (breakpoint_from_pc_fn): Delete type definition.
616 * target.h (memory_breakpoint_from_pc): Update declaration.
617 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
619 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
620 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
621 * mem-break.c (memory_breakpoint_from_pc): Ditto.
622 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
623 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
624 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
625 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
626 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
627 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
628 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
629 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
630 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
632 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
634 * monitor.c (monitor_insert_breakpoint): Ditto.
635 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
637 * config/mcore/tm-mcore.h: Update copyright.
638 * mem-break.c: Ditto.
639 * xstormy16-tdep.c: Ditto.
641 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
643 * p-exp.y: Add precedence rule for '^' token.
644 This removes the shift/reduce conflicts.
645 Remove the comment concerning these shift/reduce conflicts.
647 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
649 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
650 (registers_powerpc_nofp): New register set for processors
651 without floating point unit.
653 2002-04-18 David S. Miller <davem@redhat.com>
655 * MAINTAINERS: Add myself to write-after-approval.
657 2002-04-17 Michael Snyder <msnyder@redhat.com>
659 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
661 2002-04-17 Andrew Cagney <ac131313@redhat.com>
663 * rs6000-tdep.c (frame_initial_stack_address): Use
664 frame_register_read to read the alloca_reg.
666 2002-04-17 Andrew Cagney <ac131313@redhat.com>
668 * frame.c (find_saved_register): Find saved registers in the next
672 2002-04-17 Andrew Cagney <ac131313@redhat.com>
674 * gdbarch.sh (LANG): Set to ``c''.
676 2002-04-15 Andrew Cagney <ac131313@redhat.com>
678 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
680 2002-04-15 Andrew Cagney <ac131313@redhat.com>
682 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
685 * hpread.c (hpread_get_lntt): Add declaration.
688 2002-04-14 Andrew Cagney <ac131313@redhat.com>
690 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
691 * aclocal.m4, configure: Re-generate.
694 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
696 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
697 instead of tm_print_insn.
699 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
701 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
703 2002-04-14 Andrew Cagney <ac131313@redhat.com>
705 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
706 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
707 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
709 2002-04-12 Don Howard <dhoward@redhat.com>
711 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
713 (init_cmd_lists): Initialize the new value;
714 * cli/cli-script.c (execute_user_command): Limit the call depth of
715 user defined commands. This avoids a core-dump when user commands
716 are infinitly recursive.
718 2002-04-12 Kevin Buettner <kevinb@redhat.com>
720 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
721 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
722 from tdep struct instead of DEFAULT_LR_SAVE.
723 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
724 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
725 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
727 2002-04-12 Michael Snyder <msnyder@redhat.com>
729 * Remote.c: Spelling fix.
730 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
731 If no symbol found for "sbrk", try "_sbrk".
732 (make_output_phdrs): Use bfd_section_name.
733 (gcore_copy_callback): Use bfd_section_name.
734 * eval.c: Indentation fix-ups.
735 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
736 in case it gets applied to an address that is already
737 in the instruction space.
738 * cli/cli-decode.c (help_list): Allow long lines to wrap.
739 * symfile.c: Fix indentation, long lines.
740 * source.c: White space fix-up.
742 2002-04-12 Andrew Cagney <cagney@redhat.com>
744 * defs.h (read_relative_register_raw_bytes): Delete declaration.
745 * frame.c (frame_register_read): New function. Return non-zero on
747 (read_relative_register_raw_bytes_for_frame): Delete.
748 (read_relative_register_raw_bytes): Delete.
749 * frame.h (frame_register_read): Declare.
750 * d30v-tdep.c: Update Copyright. Use frame_register_read.
752 * infcmd.c (do_registers_info): Ditto.
753 * hppa-tdep.c: Ditto.
754 * rs6000-tdep.c: Ditto.
755 * h8500-tdep.c: Ditto.
756 * mips-tdep.c: Ditto.
757 * h8300-tdep.c: Ditto.
760 2002-04-12 Kevin Buettner <kevinb@redhat.com>
762 From Jimi X <jimix@watson.ibm.com>:
763 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
766 2002-04-12 Kevin Buettner <kevinb@redhat.com>
768 From Jimi X <jimix@watson.ibm.com>:
769 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
772 2002-04-12 Kevin Buettner <kevinb@redhat.com>
774 From Jimi X <jimix@watson.ibm.com>:
775 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
776 register sets for these processor variants.
778 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
780 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
781 registers which are allowed to fail to store.
782 * gdbserver/linux-low.h (linux_target_ops): Likewise.
783 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
784 (ppc_cannot_store_register): FPSCR may not be storable.
785 * regformats/reg-ppc.dat: Support FPSCR.
787 2002-04-11 Kevin Buettner <kevinb@redhat.com>
789 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
790 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
791 Add fpscr as an invalid/unfetchable register.
792 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
793 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
794 (fill_fpregset): Add support for register fpscr.
795 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
796 (fill_gregset): Account for the fact that register ``mq'' might
798 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
799 (registers_power): Add fpscr to register set at slot 71.
800 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
801 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
803 2002-04-11 Michael Snyder <msnyder@redhat.com>
805 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
806 * configure: Regenerate.
807 * config.in: Regenerate.
808 * acconfig.h: Add define for _SYSCALL32.
809 * core-sol2.c: Remove #define _SYSCALL32.
810 * solib-legacy.c: Remove #define _SYSCALL32.
812 2002-04-10 Andrew Cagney <ac131313@redhat.com>
814 * stack.c (select_frame): Cleanup internal error message, do not
817 2002-04-10 Andrew Cagney <ac131313@redhat.com>
819 * stack.c (select_frame): Check that selected_frame and the
820 specified level are as expected.
821 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
823 * frame.h (struct frame_info): Add field `level'. Update
825 Work-in-progress PR gdb/464.
827 2002-04-10 Andrew Cagney <ac131313@redhat.com>
829 * maint.c (maint_print_section_info): Rename print_section_info.
830 (print_bfd_section_info, print_objfile_section_info): Update.
831 * inferior.h (struct gdbarch): Add opaque declaration.
832 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
833 * gdbarch.h: Regenerate.
835 2002-04-10 Michal Ludvig <mludvig@suse.cz>
837 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
838 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
839 (kernel_u_size): Added.
840 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
841 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
843 2002-04-04 Jim Ingham <jingham@apple.com>
845 * valarith.c (find_size_for_pointer_math): New function, either returns
846 the size for a pointer's target, returns 1 for void *, or errors for
848 (value_add, value_sub): use find_size_for_pointer_math.
850 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
852 * linux-low.c (linux_look_up_symbols): New hook.
853 (linux_target_ops): Add linux_look_up_symbols.
854 * remote-utils.c (decode_address): New function.
855 (look_up_one_symbol): New function.
856 * server.c (handle_query): Call target look_up_symbols hook.
857 * server.h (look_up_one_symbol): Add prototype.
858 * target.h (struct target_ops): Add look_up_symbols hook.
860 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
862 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
863 * ChangeLog: Correct paths in last ChangeLog entry.
865 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
867 * gdbserver/linux-low.h: Remove obsolete prototypes.
868 (struct linux_target_ops): New.
869 (extern the_low_target): New.
870 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
871 (register_addr): Use the_low_target explicitly.
872 (fetch_register): Likewise.
873 (usr_fetch_inferior_registers): Likewise.
874 (usr_store_inferior_registers): Likewise.
875 * gdbserver/linux-arm-low.c (num_regs): Remove.
876 (arm_num_regs): Define.
877 (arm_regmap): Renamed from regmap, made static.
878 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
880 (arm_cannot_store_register): Renamed from cannot_store_register,
882 (the_low_target): New.
883 * gdbserver/linux-i386-low.c (num_regs): Remove.
884 (i386_num_regs): Define.
885 (i386_regmap): Renamed from regmap, made static.
886 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
888 (i386_cannot_store_register): Renamed from cannot_store_register,
890 (the_low_target): New.
891 * gdbserver/linux-ia64-low.c (num_regs): Remove.
892 (ia64_num_regs): Define.
893 (ia64_regmap): Renamed from regmap, made static.
894 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
896 (ia64_cannot_store_register): Renamed from cannot_store_register,
898 (the_low_target): New.
899 * gdbserver/linux-m68k-low.c (num_regs): Remove.
900 (m68k_num_regs): Define.
901 (m68k_regmap): Renamed from regmap, made static.
902 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
904 (m68k_cannot_store_register): Renamed from cannot_store_register,
906 (the_low_target): New.
907 * gdbserver/linux-mips-low.c (num_regs): Remove.
908 (mips_num_regs): Define.
909 (mips_regmap): Renamed from regmap, made static.
910 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
912 (mips_cannot_store_register): Renamed from cannot_store_register,
914 (the_low_target): New.
915 * gdbserver/linux-ppc-low.c (num_regs): Remove.
916 (ppc_num_regs): Define.
917 (ppc_regmap): Renamed from regmap, made static.
918 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
920 (ppc_cannot_store_register): Renamed from cannot_store_register,
922 (the_low_target): New.
923 * gdbserver/linux-s390-low.c (num_regs): Remove.
924 (s390_num_regs): Define.
925 (s390_regmap): Renamed from regmap, made static.
926 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
928 (s390_cannot_store_register): Renamed from cannot_store_register,
930 (the_low_target): New.
931 * gdbserver/linux-sh-low.c (num_regs): Remove.
932 (sh_num_regs): Define.
933 (sh_regmap): Renamed from regmap, made static.
934 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
936 (sh_cannot_store_register): Renamed from cannot_store_register,
938 (the_low_target): New.
939 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
940 (the_low_target): New.
942 2002-04-09 Andrew Cagney <ac131313@redhat.com>
944 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
945 override FP_REGNUM with frame->fp. Update copyright.
946 * parse.c (num_std_regs, std_regs): Delete.
947 (target_map_name_to_register): Do not search std_regs. Update
948 function description.
949 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
950 declarations. Update copyright.
953 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
955 * gdbserver/Makefile.in: Add stamp-h target.
956 * gdbserver/configure.in: Create stamp-h.
957 * gdbserver/configure: Regenerated.
959 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
961 * gdbserver/inferiors.c: New file.
962 * gdbserver/target.c: New file.
963 * gdbserver/target.h: New file.
964 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
966 * gdbserver/linux-low.c (inferior_pid): New static variable,
968 (linux_create_inferior): Renamed from create_inferior.
969 Call add_inferior. Return 0 on success instead of a PID.
970 (linux_attach): Renamed from myattach.
971 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
972 (linux_thread_alive): Renamed from mythread_alive.
973 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
975 (linux_resume): Renamed from myresume. Add missing ``return 0''.
976 (regsets_store_inferior_registers): Correct error message.
977 Add missing ``return 0''.
978 (linux_fetch_registers): Renamed from fetch_inferior_registers.
979 (linux_store_registers): Renamed from store_inferior_registers.
980 (linux_read_memory): Renamed from read_inferior_memory.
981 (linux_write_memory): Renamed from write_inferior_memory.
982 (linux_target_ops): New structure.
983 (initialize_low): Call set_target_ops ().
984 * gdbserver/remote-utils.c (unhexify): New function.
985 (hexify): New function.
986 (input_interrupt): Send signals to ``signal_pid''.
987 * gdbserver/server.c (inferior_pid): Remove.
988 (start_inferior): Update create_inferior call.
989 (attach_inferior): Call add_inferior.
990 (handle_query): New function.
991 (main): Call handle_query for `q' packets.
992 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
993 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
995 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
997 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
999 * gdbserver/configure.in: Check for <string.h>
1000 * gdbserver/configure: Regenerate.
1001 * gdbserver/config.in: Regenerate.
1002 * gdbserver/gdbreplay.c: Include needed system headers.
1003 (remote_open): Remove strchr prototype.
1004 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1005 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1006 (supply_register_by_name): Likewise.
1007 (collect_register): Change buf argument to void *.
1008 (collect_register_by_name): Likewise.
1009 * gdbserver/regcache.h: Add missing prototypes.
1010 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1011 * gdbserver/server.c (handle_query): New function.
1012 (attached): New static variable, moved out of main.
1013 (main): Quiet longjmp clobber warnings.
1014 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1015 * gdbserver/utils.c (error): Remove NORETURN.
1018 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1020 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1021 after the last symbol in a block.
1023 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1025 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1026 is non zero as a found symbol.
1028 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1030 * findvar.c: Include "builtin-regs.h".
1031 (value_of_register): Call value_of_builtin_reg when applicable.
1032 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1033 (target_map_name_to_register): Call
1034 builtin_reg_map_name_to_regnum.
1035 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1036 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1037 (builtin_regs_h): Define.
1038 (builtin-regs.o): New target.
1039 (findvar.o): Add $(builtin_regs_h).
1040 * builtin-regs.c, builtin-regs.h: New files.
1041 * std-regs.c: New file.
1042 Partial fix for PR gdb/251.
1044 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1046 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1047 it's no longer required.
1049 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1051 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1053 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1055 From Jimi X <jimix@watson.ibm.com>:
1056 * rs6000-tdep.c (rs6000_software_single_step): Use
1057 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1058 and size. Use target_insert_breakpoint() and
1059 target_remove_breakpoint() to insert and remove breakpoints
1060 instead of explicit memory reads and writes.
1062 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1064 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1065 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1066 ELF_OBJECT_FORMAT ifdef.
1068 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1070 From Jimi X <jimix@watson.ibm.com>:
1071 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1073 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1075 From Jimi X <jimix@watson.ibm.com>:
1076 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1077 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1079 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1081 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1082 s/asprintf/xasprintf/.
1083 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1085 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1087 I believe Jeff Law denies responsability for this one:
1088 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1089 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1090 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1091 Work-around for PR gdb/366.
1093 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1095 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1096 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1097 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1099 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1101 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1102 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1105 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1107 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1110 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1112 * README (Reporting Bugs in GDB): Document the bug web page as the
1113 prefered way of submitting bugs.
1116 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1118 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1120 * gdbarch.h, gdbarch.c: Re-generate.
1122 2002-04-07 Andreas Schwab <schwab@suse.de>
1124 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1125 buffer to regcache_collect.
1127 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1129 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1130 * gdbarch.c, gdbarch.h: Re-generate.
1132 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1134 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1135 declaration. Fix -Werror.
1137 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1139 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1140 * gdbarch.c: Regenerate.
1142 2002-04-05 Michael Snyder <msnyder@redhat.com>
1144 * breakpoint.c (clear_command): Rewrite middle section to
1145 combine two loops with identical control conditions.
1146 Add a cleanup to eliminate a memory leak.
1147 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1149 2002-04-05 H.J. Lu (hjl@gnu.org)
1151 * solib-svr4.c (bkpt_names): Add "__start".
1153 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1155 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1156 as test for 64 bit target.
1158 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1160 * h8500-tdep.c (h8500_write_fp): Delete function.
1161 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1162 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1163 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1165 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1166 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1168 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1169 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1170 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1171 (d10v_write_fp): Delete function.
1172 * inferior.h (write_fp, generic_target_write_fp): Delete
1174 * regcache.c (generic_target_write_fp): Delete function.
1175 (write_fp): Delete function.
1176 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1177 * gdbarch.h, gdbarch.c: Regenerate.
1178 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1179 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1180 (sparc64_write_fp): Delete declaration.
1181 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1182 (h8500_write_fp): Delete declaration.
1184 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1186 * sparc-tdep.c (sparc64_write_fp): Delete.
1187 (sparc_push_dummy_frame): Replace write_fp call with code to store
1189 (sparc_gdbarch_init): Do not initialize write_fp.
1191 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1193 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1196 2002-03-29 Jim Blandy <jimb@redhat.com>
1198 * stack.c (get_selected_block): Add new argument `addr_in_block',
1199 used to return the exact code address we used to select the block,
1201 * blockframe.c (get_frame_block, get_current_block): Same.
1202 * frame.h (get_frame_block, get_current_block,
1203 get_selected_block): Update declarations.
1204 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1205 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1207 2002-04-05 Michael Snyder <msnyder@redhat.com>
1209 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1212 2002-04-05 J. Brobecker <brobecker@gnat.com>
1214 * utils.c (xfullpath): New function.
1215 * defs.h (xfullpath): Add declaration.
1216 * source.c (openp): Use xfullpath in place of gdb_realpath to
1217 avoid resolving the basename part of filenames when the
1218 associated file is a symbolic link. This fixes a potential
1219 inconsistency between the filenames known to GDB and the
1220 filenames it prints in the annotations.
1221 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1222 to be able to match a filename with either the real filename, or
1223 the name of any symbolic link to this file.
1224 (lookup_partial_symtab): Ditto.
1226 2002-04-04 Michael Snyder <msnyder@redhat.com>
1228 * breakpoint.c: Add support for hardware breakpoints in overlays.
1229 (overlay_events_enabled): New state variable.
1230 (insert_breakpoints): Use overlay_events_enabled to decide
1231 whether to attempt to set a breakpoint at the overlay load addr.
1232 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1233 (remove_breakpoint): Use overlay_events_enabled to decide
1234 whether breakpoints need to be removed from overlay load addr.
1235 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1236 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1237 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1238 disable_overlay_breakpoints): Update overlay_events_enabled.
1240 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1242 * dwarf2read.c (struct function_range): New.
1243 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1244 (check_cu_functions): New.
1245 (read_file_scope): Initialize global function lists.
1246 Call dwarf_decode_line after processing children.
1247 (read_func_scope): Add to global function list.
1248 (dwarf_decode_lines): Call check_cu_functions everywhere
1249 record_line is called. Call record_line with a linenumber
1250 of 0 to mark sequence ends.
1252 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1254 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1255 change sync with glibc.
1257 2002-04-03 Jim Blandy <jimb@redhat.com>
1259 * configure.in: Call AC_C_INLINE.
1260 * configure: Regenerated.
1262 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1264 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1265 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1267 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1269 * NEWS: Mention gcore support on FreeBSD/i386.
1271 * fbsd-proc.c: New file.
1272 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1273 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1275 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1278 2002-03-29 Jim Blandy <jimb@redhat.com>
1280 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1281 unescaped newlines in string literals, but newer ones don't. So
1284 2002-03-26 Michael Snyder <msnyder@redhat.com>
1285 Andrew Cagney <cagney@redhat.com>
1287 * cli/cli-dump.c: New file. Dump memory to file,
1288 restore file to memory.
1289 * cli/cli-dump.h: New file.
1290 * Makefile.in: Add rules, dependencies for cli-dump.o.
1291 * NEWS: Mention new commands.
1293 2002-03-28 Michael Snyder <msnyder@redhat.com>
1295 * symfile.c (symbol_file_add): Move test for null symbols to later.
1297 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1299 From veksler at il.ibm.com:
1300 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1301 the xstrduped original path.
1304 2002-03-27 Michael Snyder <msnyder@redhat.com>
1306 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1307 * infcmd.c (_initialize_infcmd): Ditto.
1308 * language.c (_initialize_language): Ditto.
1309 * symfile.c (_initialize_symfile): Ditto.
1310 * top.c (_init_main): Ditto.
1311 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1313 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1315 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1316 vector registers handling.
1317 (skip_prologue): Handle new AltiVec instructions. Fill in new
1318 fields of frame data.
1319 (frame_get_saved_regs): Fill in information for AltiVec registers.
1321 2002-03-27 Jim Blandy <jimb@redhat.com>
1323 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1324 a function; leave this macro here to invoke that function.
1325 (symbol_init_mangled_name): Declaration for that function.
1326 * symtab.c (symbol_init_mangled_name): New function.
1328 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1330 * valarith.c: Replace strerror with safe_strerror.
1331 * tracepoint.c: Ditto.
1333 * go32-nat.c: Ditto.
1337 2002-03-27 Andreas Schwab <schwab@suse.de>
1339 * event-top.c (command_line_handler): Remove useless if.
1341 2002-03-27 Andreas Jaeger <aj@suse.de>
1343 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1346 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1348 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1349 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1350 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1351 (x86_64_linux_dr_get_status, supply_gregset),
1352 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1353 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1354 (x86_64_register_info_table): Add.
1355 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1356 (x86_64_register_raw_size, x86_64_register_virtual_type),
1357 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1358 general x86_64_register_info_table.
1359 (i386_gdbarch_init): gdbarch_register_bytes is now set
1360 dynamicaly during initialization.
1361 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1362 * gdbserver/linux-x86-64-low.c: Ditto.
1364 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1366 * gdbserver/server.c (main): Call target_signal_to_host_p
1367 and target_signal_to_host on signals received from the remote.
1368 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1369 target_signal_from_host on signals sent to the remote.
1370 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1371 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1373 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1375 * signals/signals.c: Include "server.h" in gdbserver build.
1376 (target_signal_from_name): Don't use STREQ.
1377 (_initialize_signals): Likewise. Don't include function in
1380 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1382 * signals.c: Moved to...
1383 * signals/signals.c: Here.
1384 * Makefile (signals.o): Update.
1386 2002-03-26 Jeff Law (law@redhat.com)
1388 * somread.c (som_symtab_read): Remove some commented out code and
1389 updated related comments. Do not set the minimal symbol table to
1390 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1391 in a dynamic executable.
1392 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1393 where we are unable to find the minimal symbol for the given
1396 2002-03-25 Jeff Law (law@redhat.com)
1398 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1400 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1402 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1404 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1406 * command.h: Update copyright.
1407 (struct cmd_list_element): Replace definition with opaque
1409 (enum cmd_types): Document that it will eventually be moved to
1411 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1412 (MALLOCED_REPLACEMENT): Delete macro.
1413 * Makefile.in (cli_decode_h): Add $(command_h).
1414 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1415 * top.c: Include "cli/cli-decode.h".
1416 * completer.c: Include "cli/cli-decode.h".
1417 * maint.c: Include "cli/cli-decode.h".
1418 * cli/cli-decode.h: Include "command.h".
1419 (enum command_class): Delete.
1420 (enum cmd_types): Comment out.
1421 (enum cmd_auto_boolean): Delete.
1422 (enum var_types): Delete.
1424 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1426 * cli/cli-decode.c: Include "gdb_assert.h".
1427 (add_set_or_show_cmd): New static function.
1428 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1429 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1430 all fields, such as func, from the set command.
1432 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1434 * MAINTAINERS (sh-elf): Change warning flag to -w.
1436 2002-03-23 Andrew Cagney <cagney@redhat.com>
1438 * defs.h (error): Add printf format attribute.
1439 * thread-db.c (thread_from_lwp): Fix error format string.
1440 * stack.c (parse_frame_specification): Ditto.
1441 * cli/cli-decode.c (undef_cmd_error): Ditto.
1442 * scm-lang.c (scm_lookup_name): Ditto.
1443 * tracepoint.c (trace_error): Ditto.
1444 * remote-utils.c (usage): Ditto.
1445 * remote.c (compare_sections_command): Ditto.
1448 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1450 * gdbtypes.c (append_composite_type_field): New function.
1451 (init_composite_type): New function.
1452 * gdbtypes.h (append_composite_type_field): Declare.
1453 (init_composite_type): Ditto.
1455 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1457 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1459 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1460 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1461 structure returning convention for SYSV ABI case, but not
1462 for GNU/Linux, FreeBSD, or NetBSD.
1464 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1466 * symtab.h (lookup_block_symbol): Add mangled_name argument
1469 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1470 with new mangled_name argument.
1471 * linespec.c (decode_line_1): Likewise.
1472 * valops (value_of_this): Likewise.
1473 * symtab.c (lookup_transparent_type): Likewise.
1474 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1475 (lookup_symbol): If we are given a mangled name, pass it down
1476 to lookup_symbol_aux.
1477 (lookup_block_symbol): If we are given a mangled name to check
1478 against, only return symbols which match it.
1480 2002-03-22 Christopher Faylor <cgf@redhat.com>
1482 * win32-nat.c (child_create_inferior): Check for proper shell to use
1483 here, in case the user changes it on the fly.
1484 (_initialize_inftarg): Remove shell path considerations.
1486 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1488 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1489 for gdbarch_max_register_raw_size and max_register_virtual_size.
1490 Adjust copyright year.
1492 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1494 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1495 in a function to cover the entire beginning of the function
1496 as well if it does not already.
1498 2002-03-21 Tom Rix <trix@redhat.com>
1500 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1501 (rs6000_ptrace64): Renamed from ptrace64.
1503 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1505 * gdbserver/remote-utils.c (remote_open): Don't call
1506 getprotobyname, we're all using TCP here so just use
1508 * gdbserver/gdbreplay.c (remote_open): Ditto.
1510 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1512 * regcache.c (_initialize_regcache): No need to call
1513 build_regcache() at this time; it gets called whenever
1514 the gdbarch changes.
1516 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1518 * sparc-nat.c: Include sys/param.h where possible.
1520 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1523 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1524 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1525 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1527 * stabsread.c (rs6000_builtin_type): Likewise.
1528 (read_sun_floating_type): Likewise.
1530 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1532 * stabsread.c (read_member_functions): Remove skip code for duplicate
1533 constructor/destructor methods. Use standard parsing for these
1534 methods and just do not chain them to the list of methods after
1537 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1539 * coffread.c: Remove redundant static declarations. Replace
1540 occurrences of `PTR' with `void *'.
1541 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1542 * top.h (quit_cover): Likewise.
1543 * defs.h (catch_errors): Likewise.
1545 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1547 * defs.h (XMALLOC): Define.
1548 * gdb-events.sh (XMALLOC): Delete macro.
1549 * gdb-events.c, gdb-events.h: Regenerate.
1550 * gdbarch.sh (XMALLOC): Delete macro.
1551 * gdbarch.c: Regenerate.
1552 * serial.c (XMALLOC): Delete macro.
1553 * ui-file.c (XMALLOC): Ditto.
1554 * ser-unix.h (XMALLOC): Ditto.
1555 * sh-tdep.c (XMALLOC): Ditto.
1556 * ui-out.c (XMALLOC): Ditto.
1557 * utils.c (XMALLOC): Ditto.
1558 * i386-tdep.c (XMALLOC): Ditto.
1559 * gdb-events.c (XMALLOC): Ditto.
1560 * d10v-tdep.c (XMALLOC): Ditto.
1561 * cli-out.c (XMALLOC): Ditto.
1563 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1564 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1565 * ui-file.c, ui-out.c: Ditto.
1567 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1569 * command.h (struct cmd_list_element): Add field context.
1570 (set_cmd_context, get_cmd_context): Declare.
1571 * cli/cli-decode.h: Ditto.
1572 * cli/cli-decode.c (get_cmd_context): New function.
1573 (set_cmd_context): New function.
1574 (add_cmd): Initialize context.
1575 Part of fixing PR gdb/145 and PR gdb/146.
1577 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1579 * cli/cli-decode.c (cmd_type): New function.
1580 * command.h (cmd_type): Declare.
1581 * infrun.c (set_schedlock_func): Call function cmd_type.
1582 * kod.c (kod_set_os): Call cmd_type.
1583 * cris-tdep.c (cris_version_update): Use function cmd_type.
1584 (cris_mode_update, cris_abi_update): Ditto.
1586 * command.h: (execute_cmd_post_hook): Declare.
1587 (execute_cmd_pre_hook): Declare.
1588 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1589 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1590 functions. Execute pre/post hook while ensuring that afterwords
1592 * top.c (execute_command): Use execute_cmd_post_hook, and
1593 execute_cmd_pre_hook to execute pre/post commands.
1594 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1596 (hook_stop_stub): Call execute_cmd_pre_hook.
1598 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1600 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1601 set'' and this leads to a core dump. Move xstrdup of
1602 operating_system to after check that it is not NULL.
1604 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1606 * kod.c (kod_set_os): Remove unnecessary check that
1607 ``command->type'' is set_cmd.
1609 * valprint.c (set_input_radix): Use input_radix.
1610 (set_output_radix): Use output_radix.
1611 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1614 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1616 * value.h (struct value): Delete field ``substring_addr''. Change
1617 aligner fields to force_doublest_align, force_longest_align,
1618 force_core_addr_align and force_pointer_aligh.
1620 * value.h (struct value): Fix typo in above change.
1622 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1624 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1625 to fix internal_error from ``maintenance print architecture''.
1627 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1629 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1630 for gcc versions after gcc-2.8.1.
1632 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1634 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1635 for method resolution. Restore adjustment of ``this'' pointer after
1636 calling value_struct_elt, which was accidentally removed during the
1639 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1641 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1643 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1645 * value.h (value_of_register): Update.
1647 2002-03-14 Richard Henderson <rth@redhat.com>
1649 * configure.in: Detect declaration for canonicalize_file_name.
1650 * utils.c (canonicalize_file_name): Declare, if needed.
1651 (gdb_realpath): Prefer realpath if available and usable.
1652 * config.in, configure: Rebuild.
1654 2002-03-14 Richard Henderson <rth@redhat.com>
1656 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1657 a constant array bound.
1659 * MAINTAINERS: Add myself to write-after-approval.
1661 2002-03-14 Michael Snyder <msnyder@redhat.com>
1663 * symfile.c (syms_from_objfile): Return immediately if no syms.
1664 (symbol_file_add): Return immediately if no syms.
1665 (find_sym_fns): Return immediately if no syms.
1667 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1669 * gdbserver/remote-util.c (remote_open): Print remote-side's
1670 IP address when remote debugging over the network.
1672 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1674 * config/sparc/fbsd.mh: Fix copyright.
1675 * config/sparc/fbsd.mt: Likewise.
1677 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1679 * MAINTAINERS: Fix typo in name of gdb warnings option.
1680 (x86-64): Fix formating so that this can be parsed by awk.
1682 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1684 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1685 * defs.h: Include "gdb/signals.h".
1686 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1688 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1690 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1691 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1694 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1695 Don Howard <dhoward@redhat.com>
1697 * mips-tdep.c (ST0_FR): Define.
1698 (mips2_fp_compat): New function, temporarily disabled.
1699 (mips_read_fp_register_single): New function.
1700 (mips_read_fp_register_double): New function.
1701 (mips_print_register): Use them.
1702 (do_fp_register_row): Likewise.
1704 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1706 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1709 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1711 * stabsread.c (read_member_functions): Fix is_stub test for
1712 static member functions, improve comment.
1714 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1716 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1717 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1718 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1719 commands that set boolean values.
1720 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1721 (arm_rdi_resume): Always initialize PC.
1722 (arm_rdi_open): Don't use rslt as a boolean.
1723 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1724 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1725 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1726 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1728 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1730 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1731 * configure: Rebuilt.
1733 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1735 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1736 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1738 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1740 * cli/cli-decode.c (set_cmd_completer): New function.
1741 * command.h (set_cmd_completer): Declare.
1742 * cli/cli-decode.h (set_cmd_completer): Ditto.
1744 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1745 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1746 * win32-nat.c (_initialize_inftarg): Ditto.
1747 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1748 * proc-api.c (_initialize_proc_api): Ditto.
1749 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1750 * source.c (_initialize_source): Ditto.
1751 * exec.c (_initialize_exec): Ditto.
1752 * solib.c (_initialize_solib): Ditto.
1753 * top.c (init_main): Ditto.
1754 * tracepoint.c (_initialize_tracepoint): Ditto.
1755 * symfile.c (_initialize_symfile): Ditto.
1756 * printcmd.c (_initialize_printcmd): Ditto.
1757 * infcmd.c (_initialize_infcmd): Ditto.
1758 * corefile.c (_initialize_core): Ditto.
1760 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1762 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1764 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1766 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1768 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1770 * NEWS: Update headings, 5.2 has branched.
1772 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1774 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1775 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1776 (register_addr, REGISTER_RAW_SIZE): Likewise.
1777 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1778 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1780 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1782 * MAINTAINERS (x86-64): Add myself.
1783 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1784 changed value_ptr -> struct value *
1786 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1788 * configure.host (sparc64-*-freebsd): Add.
1789 * configure.tgt: Likewise.
1790 * config/sparc/fbsd.mh: New file.
1791 * config/sparc/fbsd.mt: Likewise.
1792 * config/sparc/nm-fbsd.h: Likewise.
1793 * config/sparc/tm-fbsd.h: Likewise.
1795 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1797 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1798 regformats/reg-s390x.dat.
1800 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1802 * utils.c: Add FIXME explaining true/false problem.
1804 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1806 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1808 2002-02-28 Michael Chastain <mec@shout.net>
1810 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1812 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1814 * gdbserver/linux-s390-low.c: New file.
1815 * regformats/reg-s390.dat: New file.
1816 * regformats/reg-s390x.dat: New file.
1817 * gdbserver/configure.srv: Add S/390.
1818 * gdbserver/Makefile.in: Add S/390.
1819 * configure.tgt: Enable gdbserver for S/390.
1821 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1823 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1824 first line of the doc string for "info dos", except at the end of
1825 the sentence, since the short help stops at the first period.
1827 2002-02-28 Jason Merrill <jason@redhat.com>
1829 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1831 2002-02-27 Fred Fish <fnf@redhat.com>
1833 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1834 comment (dumy -> dummy).
1836 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1838 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1840 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1842 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1844 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1846 * gdbserver/acconfig.h: New file.
1847 * gdbserver/i387-fp.c: New file.
1848 * gdbserver/i387-fp.h: New file.
1849 * gdbserver/linux-x86-64.c: New file.
1850 * regformats/reg-x86-64.dat: New file.
1851 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1852 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1853 * gdbserver/configure.in: Add support for regsets.
1854 * gdbserver/config.in: Regenerate.
1855 * gdbserver/configure: Regenerate.
1856 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1857 * gdbserver/linux-low.h: New file.
1858 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1860 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1861 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1862 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1863 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1864 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1865 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1866 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1867 "i387-fp.h". Add PTRACE_GETREGS and friends.
1868 * gdbserver/regcache.c (supply_register): New function.
1869 (supply_register_by_name): New function.
1870 (collect_register): New function.
1871 (collect_register_by_name): New function.
1873 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1875 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1876 (config.status): Add configure.srv dependency.
1877 (server_h): Add config.h dependency.
1879 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1881 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1882 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1883 * gdbserver/configure.srv: Change i386-*-linux* to use
1886 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1888 * x86-64-tdep.c: Re-indent. Update copyright date.
1890 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1892 From Michal Ludvig <mludvig@suse.cz>:
1893 * x86-64-tdep.c (value.h): Delete.
1894 (gdb_assert.h): Include.
1895 (x86_64_register_convert_to_virtual,
1896 x86_64_register_convert_to_raw ): Add check which lets only
1897 floating-point values to be converted.
1898 (value_push): Delete.
1899 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1900 (i386_gdbarch_init): Number of register_bytes fixed.
1902 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1904 * MAINTAINERS: Add x86-64 target.
1906 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1908 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1909 * osfsolib.c (solib_map_sections): Ditto.
1910 * irix5-nat.c (solib_map_sections): Ditto.
1911 * corelow.c (gdb_check_format): Ditto.
1912 * symfile.c (symfile_bfd_open): Ditto.
1913 * solib.c (solib_map_sections): Ditto.
1916 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1918 * remote.c (_initialize_remote): By default, disable ``e'' and
1919 ``E'' step out-of-range packets.
1921 2002-02-26 Andreas Schwab <schwab@suse.de>
1923 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1924 m68k_linux_frame_saved_pc.
1925 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1927 (SIGCONTEXT_PC_OFFSET): Remove.
1928 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1929 m68k_linux_sigtramp_saved_pc): New functions.
1930 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1931 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1932 (UCONTEXT_PC_OFFSET): Define.
1933 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1934 non-RT and RT signal trampolines.
1936 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1938 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1939 (TARGET_NBPG, STACK_END_ADDR): Delete
1940 (VARIABLES_INSIDE_BLOCK): Delete.
1942 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1944 * utils.c (perror_with_name): Make string parameter constant.
1945 (print_sys_errmsg): Ditto.
1947 * defs.h (perror_with_name): Update.
1948 (print_sys_errmsg): Update.
1951 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1953 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1954 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1956 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1958 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1959 if it already matches the current architecture from the exec file.
1960 Include arch-utils.h for gdbarch_info_init prototype.
1961 * Makefile.in (rs6000-nat.o): Update dependencies.
1963 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1965 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1966 list of exported variables.
1968 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1970 * gdbserver/configure.srv: New file.
1971 * gdbserver/configure.in: Use configure.srv instead
1972 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1974 * gdbserver/configure: Regenerated.
1975 * gdbserver/terminal.h: New file.
1976 * gdbserver/Makefile.in: Update for configure changes. Remove
1977 more unneeded include paths.
1979 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1981 From wiz at danbala:
1982 * config/sparc/tm-sp64.h: Fix grammar and typos.
1985 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1987 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1988 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1989 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1990 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1991 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1992 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1993 * s390-tdep.c: Ditto.
1994 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1995 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1996 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1997 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1998 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1999 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2000 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2001 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2002 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2003 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2006 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2008 * lin-thread.c: Delete file.
2009 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2010 to gdb_proc_service.h.
2011 * configure: Re-generate.
2013 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2014 * serial.c (serial_open): Delete check for "ocd".
2017 * Makefile.in (linux-thread.o): Delete target.
2018 * linux-thread.c: Delete file.
2020 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2021 renamed SH files to be consistent.
2023 * symtab.c (sort_search_symbols): Use xfree.
2025 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2027 * arm-linux-tdep.c (arm_linux_init_abi): Register
2028 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2029 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2030 definition with undef, since we don't want the sysvr4 definition.
2031 (SKIP_TRAMPOLINE_CODE): Likewise.
2033 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2035 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2037 * configure.in: (AC_CHECK_FUNCS) Added test for
2038 canonicalize_file_name Regenerated.
2039 * config.in, configure: Regenerated.
2040 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2041 defined use canonicalize_file_name.
2043 2002-02-23 Michael Chastain <mec@shout.net>
2045 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2047 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2049 * README: Remove references to cygnus.com.
2050 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2051 dot com'' form. Remove references to cygnus.com and sourceware.
2053 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2055 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2056 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2057 1003.1-2001 no longer allows "head -1".
2058 * gdb/Makefile.in (version.c): Likewise.
2059 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2060 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2061 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2063 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2065 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2066 * command.h (cmd_cfunc_eq): Declare.
2067 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2069 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2070 ``struct cmd_list_element *''.
2071 * cli/cli-cmds.c (is_complete_command): Update. Use
2073 * top.c (execute_command): Pass the command to
2074 is_complete_command.
2075 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2077 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2079 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2080 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2081 architecture defines.
2082 * s390-tdep.c (s390_gdbarch_init): Likewise.
2084 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2086 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2087 (arm_linux_push_arguments): Likewise.
2088 (arm_linux_init_abi): Register them. Also register linux-specific
2090 (find_minsym_and_objfile): Use strcmp, not STREQ.
2091 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2092 (arm_linux_call_dummy_words): Delete declaration.
2093 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2094 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2096 (LOWEST_PC): Delete.
2098 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2100 * maint.c (print_section_info): Do not prepend `0x' to filepos
2101 output, it will be handled by local_hex_string_custom.
2103 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2105 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2106 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2107 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2109 2002-02-22 Jim Blandy <jimb@redhat.com>
2111 Indicate that the bcache functions don't change the strings
2113 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2114 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2116 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2118 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2120 2002-02-21 Christopher Faylor <cgf@redhat.com>
2122 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2123 find the complete path to a loaded DLL.
2125 2002-02-21 Fred Fish <fnf@redhat.com>
2127 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2128 that marks the end of the range of a function, enter a line number
2129 entry that has a line number of zero and a PC offset that matches
2130 the end of the function. This starts a range of PC's for which no
2131 line number information is known.
2132 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2133 PC's for which no line number info is found (line number is zero)
2134 then we didn't find any valid line information.
2135 * symtab.h: Document use of zero line number entry.
2137 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2139 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2140 (have_ptrace_getvrregs): Define for run time checks.
2141 (gdb_vrregset_t): New type for Altivec register handling.
2142 (fetch_register, store_register): Fetch/store altivec register
2144 (fetch_altivec_register, store_altivec_register): New functions.
2145 (supply_vrregset, fill_vrregset): New functions.
2146 (fetch_altivec_registers, store_altivec_registers): New functions.
2147 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2150 2002-02-21 Jiri Smid <smid@suse.cz>
2152 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2154 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2156 * Makefile.in (armnbsd-nat.o): Update dependencies.
2157 * armnbsd-nat.c (supply_gregset): New function. Common code to
2158 supply the integer register set.
2159 (supply_fparegset): New function. Similar for FPA registers.
2160 (fetch_regs, fetch_fp_regs): Use them.
2161 (fetch_core_registers): Likewise.
2162 (fetch_elfcore_registers): New function.
2163 (arm_netbsd_elfcore_fns): New core-file type specification.
2164 (_initialize_arm_netbsd_nat): Register it.
2166 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2168 * armnbsd-nat.c: Include gdbcore.h.
2169 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2170 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2171 'void' to declaration, to shut up ARI.
2172 (fetch_core_registers): Make static. Rewrite using supply_register.
2173 (arm_netbsd_core_fns): New core-file type specification.
2174 (_initialize_arm_netbsd_nat): New function.
2176 2002-02-21 Christopher Faylor <cgf@redhat.com>
2178 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2181 2002-02-20 Christopher Faylor <cgf@redhat.com>
2183 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2186 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2188 * jv-exp.y (parse_number): Change type of implicit longs
2189 to builtin_type_uint64.
2191 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2193 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2194 to be an integer instead of a `union wait'.
2196 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2198 * mips-linux-nat.c: Call the operating system GNU/Linux.
2199 * mips-linux-tdep.c: Likewise.
2200 * mips-tdep.c: Likewise.
2202 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2205 * jv-exp.y (parse_number): Handle 64-bit integers.
2207 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2209 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2210 AC_STDC_HEADERS to AC_HEADER_STDC.
2211 * gdbserver/configure: Regenerated.
2213 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2215 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2217 * sparc-tdep.c (get_longjmp_target): Likewise.
2219 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2221 * News: Add news about ARM and Multi-arch. Mention the new target
2224 2002-02-19 Jim Blandy <jimb@redhat.com>
2226 * stabsread.c (error_type_complaint): Improve error message.
2228 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2230 * gdbserver/README: Update documentation.
2231 * gdbserver/configure.in: Update configury to match documentation.
2232 * gdbserver/Makefile.in: Likewise.
2233 * gdbserver/configure: Regenerated.
2234 * gdbserver/aclocal.m4: New file, generated by aclocal.
2235 * gdbserver/config.in: New file, generated by autoheader.
2237 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2239 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2242 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2244 * arm-tdep.h (enum arm_float_model): New enum.
2245 (struct gdbarch_tdep): Add fp_model.
2246 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2247 up floating-point conversions until we know the floating-point model
2248 in use by the inferior. Don't complain about being unable to
2249 determine the ABI of the inferior when we don't have one.
2250 (arm_extract_return_value): Support different floating-point models.
2251 (arm_store_return_value): Likewise.
2252 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2254 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2256 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2258 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2259 of ``current_gdbarch''.
2261 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2263 * armnbsd-nat.c : ANSIfy all function declarations.
2264 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2265 (fetch_inferior_registers): Re-implement in terms of above.
2266 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2267 (store_inferior_registers): Re-implement in terms of above.
2269 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2271 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2273 * arm-linux-tdep.c: Likewise.
2274 * config/arm/tm-linux.h: Likewise.
2276 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2278 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2279 * config/arm/nbsd.mt (TM_FILE): Delete.
2280 * config/arm/tm-nbsd.h: Delete.
2282 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2284 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2285 Initialize CALL_DUMMY_LENGTH.
2287 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2289 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2291 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2292 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2293 defines one thing and that is incorrect for this port.
2294 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2296 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2298 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2300 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2302 * win32-nat.c (display_selector): New function. Displays information
2303 about the information returned by GetThreadSelectorEntry API function.
2304 (display_selectors): New function. Displays the infomation of
2305 the selector given as argument, or of CS, DS ans FS selectors
2306 if no argument is given.
2307 ( _initialize_inftarg): Add "w32" as info prefix command.
2308 Add "info w32 selector" as command calling display_selectors.
2310 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2312 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2313 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2316 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2318 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2320 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2322 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2323 (arm_fix_call_dummy): Call it.
2324 (arm_call_dummy_breakpoint_offset): Delete.
2325 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2326 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2328 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2330 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2331 Default to func_frame_chain_valid.
2332 * gdbarch.h, gdbarch.c: Re-generate.
2333 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2335 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2337 * ppc-linux-nat.c: Update copyright.
2338 (fetch_register, store_register): Add tid parameter, don't compute
2340 (fetch_ppc_registers, store_ppc_registers): Add tid
2341 parameter. Pass it along to callees.
2342 (fetch_inferior_registers, store_inferior_registers): Compute tid
2343 here, and pass it to calleed functions.
2344 (fill_gregset, supply_fpregset): Clean up formatting.
2346 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2348 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2349 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2351 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2353 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2354 * gdbarch.c gdbarch.h: Regenerate.
2355 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2357 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2358 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2359 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2361 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2362 * arm-tdep.c (arm_get_longjmp_target): New function.
2363 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2364 this to a positive value register arm_get_longjmp_target as the
2366 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2367 (arm_linux_init_abi): Set up longjmp description in tdep.
2368 * armnbsd-nat.c (get_longjmp_target): Delete.
2369 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2370 description in tdep.
2371 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2372 (get_longjmp_target): Delete declaration.
2373 (GET_LONGJMP_TARGET): Delete.
2374 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2375 (GET_LONGJMP_TARGET): Delete.
2377 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2379 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2380 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2381 of ``current_gdbarch''.
2383 2002-02-17 Tom Tromey <tromey@redhat.com>
2385 * cli/cli-cmds.c (compare_strings): New function.
2386 (complete_command): Only print each unique item once.
2387 * completer.h (complete_line): Declare.
2388 * completer.c (complete_line): New function.
2389 (line_completion_function): Use it.
2391 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2393 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2394 * gdbarch.h, gdbarch.c: Re-generate.
2396 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2398 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2400 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2402 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2403 * valops.c (value_arg_coerce): Don't take the address of a reference
2404 to convert an argument to a reference.
2406 2002-02-15 Christopher Faylor <cgf@redhat.com>
2408 * win32-nat.c (get_image_name): New function.
2409 (handle_load_dll): Use get_image_name function.
2410 (get_child_debug_event): Avoid registering debug events until possibly
2411 execed process is started.
2412 (child_create_inferior): Allow invocation via shell so that command
2413 line redirection, etc. works ok.
2414 (_initialize_inftarg): Add new command: "set shell" to control whether
2415 a shell is used to start a process.
2417 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2419 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2420 instead of find_register_by_number.
2421 (cannot_store_register): Likewise.
2423 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2425 * dwarf2read.c: Replace fprintf (stderr, ...) by
2426 fprintf_unfiltered (gdb_stderr, ...).
2428 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2430 * gdbserver/gdbserver.1: Document --attach.
2432 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2434 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2436 * arm-tdep.c (arm_default_arm_le_breakpoint)
2437 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2438 (arm_default_thumb_be_breakpoint): New. Initialize them from
2439 traditional breakpoint defines.
2440 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2441 (arm_gdbarch_init): Initialize new breakpoint variables.
2442 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2443 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2444 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2445 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2447 (arm_netbsd_init_abi_common): ... here; new function.
2448 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2449 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2450 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2451 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2453 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2455 * arm-tdep.h (enum arm_abi): New enum.
2456 (struct gdbarch_tdep): New structure.
2457 (LOWEST_PC): Provide a default.
2458 (arm_gdbarch_register_os_abi): Declare new function.
2459 * arm-tdep.c (arm_abi_names): New array.
2460 (process_note_abi_tag_sections): New function.
2461 (get_elfosabi): New function.
2462 (arm_gdbarch_register_os_abi): New function.
2463 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2464 support for that ABI has been built in, then call the appropriate
2465 configuration routine. Use gdbarch_num_regs() to get the number
2467 (arm_dump_tdep): New function.
2468 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2469 place-holder functions.
2470 (_initialize_arm_tdep): Register them.
2471 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2473 * armnbsd-tdep.c: New file.
2474 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2475 * config/arm/nbsd.mt (TDEPFILES): Add it.
2476 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2478 * armnbsd-nat.c: Include regcache.h.
2479 * Makefile.in (armnbsd-nat.o): Update dependency list.
2481 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2483 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2485 * gdbserver/Makefile.in: Fix typos in target rules.
2487 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2489 Fix part of PR gdb/267.
2490 * linespec.c (find_methods): Handle constructors specially for now.
2492 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2494 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2496 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2497 standard_coerce_float_to_double().
2499 2002-02-14 Christopher Faylor <cgf@redhat.com>
2501 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2504 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2506 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2507 find_variant_by_name, because it confuses the multiarch
2508 framework. Return NULL if there isn't an architecture with the
2509 user supplied name, instead of forcing a different one without
2510 recording the change with the multiarch machinery.
2511 (find_variant_by_name): Delete.
2513 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2515 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2516 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2518 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2520 * stack.c (print_frame_info_base): When calling
2521 print_frame_info_listing_hook, set current_source_symtab.
2523 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2525 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2526 and remove unused $(INCLUDE_DIR).
2527 Add regcache.c to OBS.
2528 Add generated register protocol files to clean target.
2529 Update dependencies for new objects, obsolete old target code.
2531 * gdbserver/linux-low.c: Remove all platform-specific code to
2532 new files. Remove various dead code. Update to use regcache
2534 * gdbserver/remote-utils.c (fromhex): Add return statement
2536 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2538 (input_interrupt): Add integer parameter to match prototype
2539 of a signal handler.
2540 (outreg): Use register_data ().
2541 (prepare_resume_reply): Use gdbserver_expedite_regs.
2542 * gdbserver/server.c (main): Dynamically allocate own_buf because
2543 PBUFSIZ is no longer constant. Use registers_to_string () and
2544 registers_from_string ().
2545 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2546 for error (), fatal (), and warning (). Update definition of
2547 PBUFSIZ to use regcache functionality. Add include guard.
2548 * gdbserver/utils.c (fatal): Add missing ``const''.
2549 (warning): New function.
2551 * regformats/regdat.sh: Include "regcache.h" in generated files.
2552 Provide init_registers () function.
2553 * regformats/regdef.h: Add prototype for set_register_cache ().
2556 * gdbserver/linux-arm-low.c: New file.
2557 * gdbserver/linux-i386-low.c: New file.
2558 * gdbserver/linux-ia64-low.c: New file.
2559 * gdbserver/linux-m68k-low.c: New file.
2560 * gdbserver/linux-mips-low.c: New file.
2561 * gdbserver/linux-ppc-low.c: New file.
2562 * gdbserver/linux-sh-low.c: New file.
2564 * gdbserver/regcache.c: New file.
2565 * gdbserver/regcache.h: New file.
2567 * gdbserver/low-linux.c: Removed obsolete file.
2569 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2571 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2572 * config/i386/linux.mt: Likewise.
2573 * config/ia64/linux.mt: Likewise.
2574 * config/m68k/linux.mh: Likewise.
2575 * config/powerpc/linux.mh: Likewise.
2576 * config/mips/linux.mt: Likewise.
2578 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2580 * config/i386/i386lynx.mh: Mark gdbserver variables
2581 as (currently) obsolete for this target.
2582 * config/i386/nbsd.mt: Likewise.
2583 * config/i386/nbsdelf.mt: Likewise.
2584 * config/m32r/m32r.mt: Likewise.
2585 * config/m68k/m68klynx.mh: Likewise.
2586 * config/m68k/nbsd.mt: Likewise.
2587 * config/m68k/sun3os4.mh: Likewise.
2588 * config/mips/vr5000.mt: Likewise.
2589 * config/ns32k/nbsd.mt: Likewise.
2590 * config/pa/hppabsd.mh: Likewise.
2591 * config/pa/hppaosf.mh: Likewise.
2592 * config/powerpc/nbsd.mt: Likewise.
2593 * config/rs6000/rs6000lynx.mh: Likewise.
2594 * config/s390/s390.mt: Likewise.
2595 * config/s390/s390x.mt: Likewise.
2596 * config/sparc/sparclynx.mh: Likewise.
2597 * config/sparc/sun4os4.mh: Likewise.
2598 * config/i386/x86-64linux.mt: Likewise.
2599 * config/sparc/linux.mh: Likewise.
2601 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2603 * configure.tgt: Configure gdbserver only for known working
2604 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2605 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2606 SUBDIRS if it is configured. Update comment for ${nativefile}.
2607 * configure: Regenerated.
2609 2002-02-13 Michael Snyder <msnyder@redhat.com>
2611 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2613 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2614 (default_gcore_mach): Just return 0, work around a problem in bfd.
2615 (default_gcore_target): OK to return NULL if exec_bfd is null.
2616 (make_mem_sec): Use a cast, avoid a warning.
2618 * procfs.c (find_memory_regions_callback): Use a cast instead of
2619 calling host_pointer_to_address (which complains if
2620 sizeof (host pointer) != sizeof (target pointer)).
2621 (procfs_make_note_section): Avoid overflow in psargs string.
2623 * procfs.c (procfs_make_note_section): Make the default
2624 implementation return an error.
2626 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2628 * procfs.c (procfs_make_note_section): Provide a default definition
2629 (for alpha-dec-osf4.0f). Fix typos.
2631 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2633 * linux-proc.c: Add include of regcache.h.
2634 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2636 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2638 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2639 * memattr.c (create_mem_region): Disallow useless empty region.
2640 Regions are half-open intervals, so allow [A..B) [B..C) as
2643 2002-02-13 Michael Chastain <mec@shout.net>
2645 * defs.h: Kill CONST_PTR.
2646 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2647 * c-lang.c (c_builtin_types): Likewise.
2648 * ch-lang.c (ch_builtin_types): Likewise.
2649 * f-lang.c (f_builtin_types): Likewise.
2650 * language.c (unknown_builtin_types): Likewise.
2651 * m2-lang.c (m2_builtin_types): Likewise.
2652 * p-lang.c (pascal_builtin_types): Likewise.
2653 * scm-lang.c (c_builtin_types): Likewise.
2655 2002-02-13 Keith Seitz <keiths@redhat.com>
2657 * arm-tdep.h (arm_get_next_pc): Add declaration.
2659 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2661 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2662 with other related struct-returning functions.
2663 (arm_extract_struct_value_address): New function.
2664 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2665 initialize float_format, double_format and long_double_format as
2666 appropriate to the endianness of the target.
2667 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2668 (arm_use_struct_convention): Delete declaration.
2669 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2671 2002-02-13 Keith Seitz <keiths@redhat.com>
2673 * defs.h (core_addr_to_string_nz): New function.
2675 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2677 Apply missing bits of 2002-01-15 patch.
2678 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2679 (fill_fpregset): Use i387_fill_fsave.
2681 2002-02-12 Keith Seitz <keiths@redhat.com>
2683 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2684 (core_addr_to_string_nz): New function.
2686 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2688 * arm-linux-nat.c: Really include arm-tdep.h.
2689 * config/arm/tm-linux.h (struct type, struct value): Declare.
2691 2002-02-11 Michael Snyder <msnyder@redhat.com>
2693 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2694 (gcore section): Ifdef for Solaris and Unixware only.
2695 (procfs_do_thread_registers): Unixware needs one lwpstatus
2696 per thread (not one prstatus or pstatus).
2697 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2698 not over all gdb threads. For unixware, call elfcore_write_pstatus
2699 once before iterating over threads.
2701 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2703 * arm-tdep.h: New file.
2704 * arm-tdep.c: Include arm-tdep.h.
2705 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2706 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2707 (arm_print_float_info, arm_register_type, convert_to_extended)
2708 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2709 (arm_extract_return_value, arm_register_name): Make static.
2710 (arm_software_single_step): Similarly. Fix types in declaration.
2711 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2712 (arm_store_return_value, arm_store_struct_return): New functions.
2713 (arm_gdbarch_init): Register the above functions. Also register
2714 call_dummy_start_offset, sizeof_call_dummy_words,
2715 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2716 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2717 max_register_virtual_size, register_size. Set up
2718 prologue_cache.saved_regs here, rather than ...
2719 (_initialize_arm_tdep): ... here.
2720 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2722 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2723 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2724 (arm_print_float_info, arm_register_type, convert_to_extended)
2725 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2726 (arm_extract_return_value, arm_register_name): Delete declarations.
2727 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2728 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2729 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2730 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2731 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2732 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2733 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2734 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2735 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2736 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2737 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2738 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2740 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2741 * remote-rdi.c remote-rdp.c: Likewise.
2742 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2743 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2744 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2747 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2748 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2749 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2750 from non-ARM_ prefixed definitions.
2751 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2753 * remote-rdi.c remote-rdp.c: Likewise.
2754 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2756 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2758 * arm-tdep.c (arm_frameless_function_invocation)
2759 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2760 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2761 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2762 (arm_pop_frame, arm_get_next_pc): Make static.
2763 (arm_gdbarch_init): Register above in gdbarch structure.
2764 (arm_read_fp): Renamed from arm_target_read_fp.
2765 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2766 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2767 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2768 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2769 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2770 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2771 (arm_pc_is_thumb_dummy): Delete declarations.
2772 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2773 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2774 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2775 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2777 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2779 * symtab.c (compare_search_syms): New function.
2780 (sort_search_symbols): New function.
2781 (search_symbols): Sort symbols after searching rather than
2784 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2786 * NEWS: Linux -> GNU/Linux.
2788 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2790 * gdbarch.sh: For for level one methods, disallow a definition
2791 when partially multi-arched. Add comments explaining rationale.
2792 * gdbarch.h: Re-generate.
2794 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2796 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2799 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2801 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2803 * gdbarch.c: Re-generate.
2805 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2807 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2808 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2811 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2813 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2815 (PUSH_ARGUMENTS): Switch to using predefault.
2816 * gdbarch.c: Regenerate.
2818 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2820 * valops.c (PUSH_ARGUMENTS): Delete definition.
2821 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2822 partial. Default to default_push_arguments.
2823 * gdbarch.h, gdbarch.c: Regenerate.
2825 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2827 * defs.h (throw_exception): Rename return_to_top_level. Update
2829 * utils.c (error_stream, internal_verror, quit): Ditto.
2830 * top.c (throw_exception, catcher): Ditto.
2831 * sparclet-rom.c (sparclet_load): Ditto.
2832 * remote.c (interrupt_query, minitelnet): Ditto.
2833 * remote-sds.c (interrupt_query): Ditto.
2834 * remote-mips.c (mips_error, mips_kill): Ditto.
2835 * ocd.c (interrupt_query): Ditto.
2836 * monitor.c (monitor_interrupt_query): Ditto.
2837 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2838 * target.h: Update comment.
2840 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2842 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2844 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2845 default_double_format.
2846 * gdbarch.h, gdbarch.c: Re-generate.
2847 * findvar.c (floatformat_unknown): Delete variable definition.
2848 * doublest.h (floatformat_unknown): Delete variable declaration.
2850 2002-02-09 Jim Blandy <jimb@redhat.com>
2852 * stabsread.c (read_type): Add code to parse Sun's syntax for
2853 prototyped function types.
2855 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2857 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2858 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2860 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2862 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2863 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2864 now _initialize_xcoffsolib gets called again and overrides the
2865 commands from solib.c in a native configuration.
2867 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2869 * doublest.c (store_typed_floating): Don't try to return a value.
2872 2002-02-08 Jim Blandy <jimb@redhat.com>
2874 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2875 is prototyped and has no arguments, print its argument list as
2878 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2880 * MAINTAINERS (write-after-approval): Add myself.
2881 (paper-trail): I've escaped!
2883 2002-02-08 Christopher Faylor <cgf@redhat.com>
2885 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2887 (_initialize_check_for_gdb_ini): Ditto.
2889 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2891 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2892 xaprintf -> xasprintf.
2894 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2896 * win32-nat.c: Remove use of printf and sprintf functions.
2898 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2900 * arm-tdep.c (arm_frame_chain_valid): Make static.
2901 (arm_push_arguments): Likewise.
2902 (arm_gdbarch_init): New function.
2903 (_initialize_arm_tdep): Call it.
2904 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2905 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2906 (FRAME_CHAIN_VALID): Delete.
2907 (arm_frame_chain_valid): Delete declaration.
2908 (PUSH_ARGUMENTS): Delete.
2909 (arm_push_arguments): Delete declaration.
2910 (CALL_DUMMY_P): Delete.
2912 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2913 Corinna Vinschen <vinschen@redhat.com>
2915 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2916 on builtin float types.
2918 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2920 * utils.c: Include <curses.h> before "bfd.h".
2921 * tui/tui-hooks.c: Likewise.
2922 * tui/tui.c: Likewise.
2923 * tui/tuiCommand.c: Likewise.
2924 * tui/tuiData.c: Likewise.
2925 * tui/tuiDataWin.c: Likewise.
2926 * tui/tuiDisassem.c: Likewise.
2927 * tui/tuiGeneralWin.c: Likewise.
2928 * tui/tuiIO.c: Likewise.
2929 * tui/tuiLayout.c: Likewise.
2930 * tui/tuiRegs.c: Likewise.
2931 * tui/tuiSource.c: Likewise.
2932 * tui/tuiSourceWin.c: Likewise.
2933 * tui/tuiStack.c: Likewise.
2934 * tui/tuiWin.c: Likewise.
2936 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2938 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2939 to include space for pseudoregs as well. Update loops accordingly.
2940 (sh_fp_frame_init_saved_regs): Ditto.
2941 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2943 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2945 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2946 Add Richard Earnshaw to Arm maintainers.
2948 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2950 * defs.h (warning_begin): Delete declaration.
2952 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2955 2002-02-07 Michael Snyder <msnyder@redhat.com>
2957 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2958 Logic bug, remove misplaced else.
2960 2002-02-07 Klee Dienes <klee@apple.com>
2962 * fork-inferior.c (fork_inferior): Add '!' to the list of
2963 characters that need to be quoted when building a string for the
2964 shell. Quote '!' specifically with a backslash, since CSH chokes
2965 when trying to evaluate "str!str".
2967 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2969 * rdi-share/host.h: Only provide a typedef for bool if it is not
2972 2002-02-04 Michael Snyder <msnyder@redhat.com>
2974 * breakpoint.h (enum bptype): Add new overlay event bp type.
2975 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2977 * breakpoint.c (create_internal_breakpoint): New function.
2978 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2979 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2980 (create_thread_event_breakpoint): Ditto.
2981 (create_solib_event_breakpoint): Ditto.
2982 (create_overlay_event_breakpoint): New function.
2983 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2984 (update_breakpoints_after_exec): Delete and re-initialize
2985 overlay event breakpoints after an exec. Add FIXME comment
2986 about longjmp breakpoint.
2987 (print_it_typical): Ignore overlay event breakpoints.
2988 (print_one_breakpoint): Ditto.
2990 (bpstat_what): Do not stop for overlay event breakpoints.
2991 (delete_breakpoint): Don't delete overlay event breakpoints.
2992 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2993 (breakpoint_re_set): Re-create overlay event breakpoint.
2995 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2996 (overlay_manual_command): Disable overlay breakpoints.
2997 (overlay_off_command): Disable overlay breakpoints.
2999 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3001 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3002 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3003 to here from config/tm-arm.h.
3004 (coff_sym_is_thumb): Make static.
3005 (arm_elf_make_msymbol_special): New function.
3006 (arm_coff_make_msymbol_special): New function.
3007 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3008 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3009 (coff_sym_is_thumb): Delete declaration.
3010 (arm_elf_make_msymbol_special): Declare.
3011 (arm_coff_make_msymbol_special): Declare.
3012 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3013 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3015 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3017 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3019 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3021 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3022 * gdbarch.c gdbarch.h: Regenerate.
3023 * arch-utils.c (default_print_float_info): New function.
3024 * arch-utils.h (default_print_float_info): Prototype it.
3025 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3026 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3027 (PRINT_FLOAT_INFO): Document it.
3029 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3030 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3031 (PRINT_FLOAT_INFO): Define.
3033 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3035 * win32-nat.c (_initialize_check_for_gdb_ini):
3036 Add typecast to sprintf argument to suppress a warning.
3038 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3040 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3041 to allow easier handling of pass state.
3042 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3043 that gives exception name and address.
3044 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3045 and set last_sig value to ourstatus->value.sig. Some missing
3047 (child_continue): Correctly report continue_status.
3048 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3049 TARGET_SIGNAL_0 (new default value).
3050 (child_resume): consider sig argument passed to decide if
3051 the exception should be passed to debuggee or not.
3053 2002-02-05 Michael Snyder <msnyder@redhat.com>
3055 * regcache.c (fetch_register): Call target_fetch_register
3056 only if we don't call FETCH_PSEUDO_REGISTER.
3057 (store_register): Call target_store_register only if we
3058 don't call STORE_PSEUDO_REGISTER.
3060 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3062 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3063 ELF_MAKE_MSYMBOL_SPECIAL.
3064 * gdbarch.c, gdbarch.h: Regenerate.
3065 * arch-utils.c (default_make_msymbol_special): New function.
3066 * arch-utils.h (default_make_msymbol_special): Export.
3067 * elfread.c (elf_symtab_read): Compile use of
3068 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3070 * coffread.c (coff_symtab_read): Ditto, for
3071 COFF_MAKE_MSYMBOL_SPECIAL.
3073 2002-02-05 Jim Blandy <jimb@redhat.com>
3075 * solib-svr4.c (svr4_truncate_ptr): New function.
3076 (svr4_relocate_section_addresses): Do the address arithmetic with
3077 the appropriate truncation for target addresses, even when
3078 CORE_ADDR is larger than a target address.
3080 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3082 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3085 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3087 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3090 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3092 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3094 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3096 * gdbserver/linux-low.c: Remove unused include files.
3098 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3100 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3101 (read_inferior_memory): Use it.
3102 (write_inferior_memory): Likewise.
3104 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3106 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3107 grubbing through sys_errlist.
3109 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3111 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3113 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3114 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3116 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3118 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3119 (do_sfunc, set_cmd_sfunc): New functions.
3121 * command.h (struct cmd_list_element): Add field func.
3122 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3123 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3124 * cli/cli-decode.h: Ditto.
3126 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3127 (help_all, help_cmd_list): Ditto.
3128 (find_cmd, complete_on_cmdlist): Ditto.
3129 * top.c (execute_command): Ditto.
3131 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3134 * infcmd.c (notice_args_read): Fix function signature.
3136 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3137 * cli/cli-decode.c (add_set_cmd): Ditto.
3138 * utils.c (initialize_utils): Ditto.
3139 * maint.c (_initialize_maint_cmds): Ditto.
3140 * infrun.c (_initialize_infrun): Ditto.
3141 * demangle.c (_initialize_demangler): Ditto.
3142 * remote.c (add_packet_config_cmd): Ditto.
3143 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3144 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3145 * proc-api.c (_initialize_proc_api): Ditto.
3146 * kod.c (_initialize_kod): Ditto.
3147 * valprint.c (_initialize_valprint): Ditto.
3148 * top.c (init_main): Ditto.
3149 * infcmd.c (_initialize_infcmd): Ditto.
3150 * corefile.c (_initialize_core): Ditto.
3151 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3152 * arch-utils.c (initialize_current_architecture): Ditto.
3153 (_initialize_gdbarch_utils): Ditto.
3154 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3156 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3157 * wince.c (_initialize_inftarg): Ditto.
3158 * symfile.c (_initialize_symfile): Ditto.
3159 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3160 * language.c (_initialize_language): Ditto.
3161 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3163 2002-02-04 Michael Snyder <msnyder@redhat.com>
3165 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3167 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3169 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3170 Add rules for building the register data files.
3172 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3174 * regformats/regdat.sh: Add braces to the definition of
3175 expedite_regs_${arch}.
3177 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3179 * regformats/regdef.h (struct reg): Add comment describing the
3180 requirements for offset and size fields.
3182 2002-02-04 Andreas Schwab <schwab@suse.de>
3184 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3185 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3187 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3189 * gdbarch.sh (copyright): Update years in generated header.
3190 (SMASH_TEXT_ADDRESS): Add rule.
3191 * gdbarch.h, gdbarch.c: Re-generate.
3192 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3193 * dbxread.c: Likewise.
3194 * dwarfread.c: Likewise.
3195 * elfread.c: Likewise.
3196 * somread.c: Likewise.
3198 * arm-tdep.c (arm_smash_text_address): New function.
3199 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3201 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3203 Add support for hardware watchpoints on win32 native.
3204 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3205 CONTEXT_DEBUG_REGISTERS.
3206 (dr variable): New variable. Static array containing a local copy
3208 (debug_registers_changed): New variable. Reflects when debug registers
3209 are changed and need to be written to inferior.
3210 (debug_registers_used): New variable. Reflects when any debug register
3211 was set, used when new threads are created.
3212 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3214 (thread_rec): Set dr array if id is the thread of current_event .
3215 (child_continue, child_resume): Change the debug registers for all
3216 threads if debug_registers_changed.
3217 (child_add_thread): Change the debug registers if debug_registers_used.
3218 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3219 Link nm.h to new nm-cygwin.h file.
3220 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3221 of hardware registers.
3223 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3225 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3226 Restore behavour broken by 2002-01-20 Andrew Cagney
3227 <ac131313@redhat.com> IEEE_FLOAT removal.
3229 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3231 * c-valprint.c (c_val_print): Pass a proper valaddr to
3232 cp_print_class_method.
3233 * valops.c (search_struct_method): If there is only one method
3234 and args is NULL, return that method.
3236 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3238 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3239 accessing tag_name directly.
3241 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3243 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3244 of accessing tag_name directly.
3246 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3249 * gdbtypes.c (replace_type): New function.
3250 * gdbtypes.h (replace_type): Add prototype.
3251 * stabsread.c (read_type): Use replace_type.
3253 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3255 * Makefile.in (memattr.o): Add missing dependencies rule.
3257 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3259 * breakpoint.c (break_at_finish_command): Really export.
3260 (break_at_finish_at_depth_command): Ditto.
3261 (tbreak_at_finish_command): Ditto.
3262 * hppa-tdep.c: Include completer.h.
3263 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3264 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3266 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3268 * utils.c (do_write): New function.
3269 (error_stream): Rewrite combining the code from error_begin and
3271 (verror): Rewrite using error_stream.
3272 (error_begin): Delete function.
3274 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3276 * utils.c (error_begin): Make static.
3277 * defs.h (error_begin): Delete declaration.
3279 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3280 (decode_line_1): Use cplusplus_error instead of error_begin,
3281 cplusplus_hint and return_to_top_level.
3282 * coffread.c (coff_symfile_read): Use error instead of error_begin
3283 and return_to_top_level.
3284 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3286 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3288 * language.h (type_error, range_error): Make string parameter
3290 * language.c (warning_pre_print): Delete extern declaration.
3291 * dwarfread.c (warning_pre_print): Ditto.
3292 * language.c (type_error, range_error): Rewrite to use verror and
3293 vwarning instead of warning_begin.
3295 2002-02-01 Michael Snyder <msnyder@redhat.com>
3297 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3298 (set_ignore_count): Move misplaced comment back where it belongs.
3300 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3302 * command.h (NO_FUNCTION): Delete macro.
3303 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3304 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3305 * tracepoint.c (_initialize_tracepoint): Ditto.
3306 * cli/cli-decode.c (add_set_cmd): Ditto.
3307 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3309 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3311 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3312 Update ``this'' pointer when calling virtual functions.
3314 2002-02-01 Michael Snyder <msnyder@redhat.com>
3316 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3317 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3319 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3321 * regformats/reg-arm.dat: New file.
3322 * regformats/reg-i386.dat: New file.
3323 * regformats/reg-ia64.dat: New file.
3324 * regformats/reg-m68k.dat: New file.
3325 * regformats/reg-mips.dat: New file.
3326 * regformats/reg-ppc.dat: New file.
3327 * regformats/reg-sh.dat: New file.
3328 * regformats/regdef.h: New file.
3329 * regformats/regdat.sh: New file.
3331 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3333 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3334 (arm_frame_args_address, arm_frame_locals_address): New functions.
3335 (arm_frame_num_args): New function.
3336 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3337 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3338 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3340 2002-01-31 Michael Snyder <msnyder@redhat.com>
3342 * breakpoint.c (break_at_finish_command): Export.
3343 (break_at_finish_at_depth_command): Export.
3344 (tbreak_at_finish_command): Export.
3345 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3346 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3347 "tbreak" commands, which are HPPA specific.
3349 * printcmd.c (disassemble_command): Remove an ancient
3350 artifact of an old merge.
3352 * symfile.h (enum overlay_debugging_state):
3353 Define enum constant values for overlay mode.
3354 * symfile.c (overlay_debugging): Use enums instead of literals.
3355 (overlay_is_mapped, overlay_auto_command,
3356 overlay_manual_command): Ditto.
3358 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3359 breakpoint_here_p, breakpoint_inserted_here_p,
3360 breakpoint_thread_match, bpstat_stop_status,
3361 describe_other_breakpoints, check_duplicates, clear_command):
3362 Coding standard fixes.
3364 * target.c (target_xfer_memory): Add spaces, coding standard.
3365 (do_xfer_memory): Add missing line to trust-readonly
3366 code: check bfd SEC_READONLY flag for section.
3368 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3370 * PROBLEMS: Fix typo, 5.1->5.1.1.
3372 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3374 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3375 data symbols, since we search based on textlow and texthigh.
3376 (find_pc_sect_symtab): Likewise.
3378 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3380 * defs.h (vwarning): Declare.
3381 * utils.c (vwarning): New function.
3382 (warning): Call vwarning.
3383 (warning_begin): Delete function.
3385 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3386 the warning message.
3387 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3390 2002-01-30 Michael Snyder <msnyder@redhat.com>
3392 * NEWS: Mention "set trust-readonly-sections" command.
3393 Mention generate-core-file command.
3395 2002-01-15 Michael Snyder <msnyder@redhat.com>
3397 * target.c: New command, "set trust-readonly-sections on".
3398 (do_xfer_memory): Honor the suggestion to trust readonly sections
3399 by reading them from the object file instead of from the target.
3400 (initialize_targets): Register command "set trust-readonly-sections".
3402 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3404 * parse.c (target_map_name_to_register): Simplify, search regs and
3405 pseudo-regs using a single loop.
3407 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3409 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3411 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3413 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3414 * config/i386/i386v42mp.mh: Add i387-nat.o .
3415 * i386v4-nat.c: Include i387-nat.h.
3416 (supply_fpregset): Use i387_supply_fsave.
3417 (fill_fpregset): Use i387_fill_fsave.
3419 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3421 * arm-tdep.c (arm_call_dummy_words): Define.
3422 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3423 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3424 (CALL_DUMMY_WORDS): Define.
3425 (arm_call_dummy_words): Declare.
3426 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3427 (arm_linux_call_dummy_words): Declare.
3429 2002-01-30 Andreas Schwab <schwab@suse.de>
3431 * m68klinux-nat.c: Fix last change to use regcache_collect
3432 instead of referencing registers[] directly.
3434 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3436 * parse.c (target_map_name_to_register): Delete code wrapped in
3437 #ifdef REGISTER_NAME_ALIAS_HOOK.
3439 2002-01-28 Michael Snyder <msnyder@redhat.com>
3441 * regcache.c (legacy_read_register_gen): Need to be able to
3442 read pseudo-register as well as real register.
3443 (legacy_write_register_gen): Ditto.
3445 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3447 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3448 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3449 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3450 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3451 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3452 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3453 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3454 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3455 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3456 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3457 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3458 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3459 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3460 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3461 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3462 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3463 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3464 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3465 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3466 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3468 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3470 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3471 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3472 (initialize_current_architecture): Update target_byte_order using
3473 information from BFD.
3474 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3475 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3477 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3479 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3480 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3482 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3483 #ifdef INVALID_FLOAT.
3484 * infcmd.c (do_registers_info): Ditto.
3485 * values.c (unpack_double): Ditto. Add comment.
3487 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3488 already commented out.
3490 2002-01-26 Andreas Schwab <schwab@suse.de>
3492 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3493 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3494 registers and add support for PTRACE_GETREGS.
3496 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3498 GDB 5.1.1 released from 5.1 branch.
3499 * NEWS: Add 5.1.1 news.
3500 * README: Sync with 5.1 branch.
3502 2002-01-23 Fred Fish <fnf@redhat.com>
3504 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3505 stabstring on initial malloc. Reallocing will copy it for us,
3508 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3510 * Makefile.in (hpread_h): Delete.
3511 (HFILES_NO_SRCDIR): Remove hpread.h.
3512 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3513 (hpread.o): Update dependencies.
3514 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3516 * hp-psymtab-read.c: Remove file.
3517 * hp-symtab-read.c: Remove file.
3518 * hpread.h: Remove file.
3520 * hpread.c: Merge all contents of hp-psymtab-read.c,
3521 hp-symtab-read.c and hpread.h into this file, as it was prior to
3524 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3525 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3526 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3527 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3529 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3531 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3532 fill_gregset): Call gdbarch_tdep() just once, assign result to
3533 variable and use that, instead of calling the function several
3536 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3538 * configure.host: Accept sparcv9 as alias for sparc64.
3539 * configure.tgt: Likewise.
3541 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3543 * solib-aix5.c (build_so_list_from_mapfile)
3544 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3545 arguments is not reversed.
3546 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3547 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3549 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3551 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3552 modified version of obsolete sh_fetch_pseudo_register.
3553 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3554 (sh4_register_read): New function.
3555 (sh_pseudo_register_write): New function. Renamed and modified
3556 version of obsolete sh_store_pseudo_register.
3557 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3558 (sh4_register_write): New function.
3559 (sh_gdbarch_init): Remove setting of gdbarch function
3560 fetch_pseudo_register and store_pseudo_register. Remove setting of
3561 register_convert_to_raw, register_convert_to_virtual,
3562 register_convertible.
3563 (sh_sh4_register_convertible): Delete. No longer needed. All is
3564 taken care by architecture specific functions
3565 register_read/register_write.
3566 (sh_sh4_register_convert_to_virtual): Make static.
3567 (sh_sh4_register_convert_to_raw): Ditto.
3569 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3571 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3572 (floatformat_is_nan, floatformat_mantissa): Ditto.
3574 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3575 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3576 builtin_type_ieee_double_little,
3577 builtin_type_ieee_double_littlebyte_bigword,
3578 builtin_type_m68881_ext, builtin_type_i960_ext,
3579 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3580 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3581 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3582 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3584 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3586 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3587 parameter. Set frameless flag if it exists and depended of
3588 whether the scanned function is frameless or not.
3589 (xstormy16_skip_prologue): If function is frameless, return
3590 result of xstormy16_scan_prologue().
3591 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3594 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3596 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3597 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3598 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3599 sh_sh4_register_byte, sh_sh4_register_raw_size,
3600 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3601 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3602 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3603 sh_store_pseudo_register, sh_do_pseudo_register): Call
3604 gdbarch_tdep() just once, assign result to variable and use that,
3605 instead of calling the function several times.
3607 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3609 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3610 macros instead of LAST_FPU_CTRL_REGNUM.
3611 (store_register): Likewise.
3613 2002-01-21 Jim Blandy <jimb@redhat.com>
3615 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3616 is up-to-date before running the program, not just when a program
3619 2002-01-21 Fred Fish <fnf@redhat.com>
3621 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3622 when we have found all instructions we are looking for.
3624 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3626 * arm-tdep.c (arm_register_name): New function.
3627 (arm_registers_names): Make static.
3628 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3629 (arm_register_name): Declare.
3630 (REGISTER_NAME): Use it.
3632 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3633 Kevin Buettner <kevinb@redhat.com>
3635 Convert arm targets to new FRAME interface.
3636 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3637 (arm_frame_find_save_regs): Delete.
3638 (arm_frame_init_saved_regs): New.
3639 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3640 Allocate extra_info as required. Convert all uses of fsr.regs
3641 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3643 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3644 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3645 (check_prologue_cache, save_prologue_cache): Likewise.
3646 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3647 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3648 (FRAME_FIND_SAVED_REGS): Delete.
3649 (arm_frame_find_saved_regs): Delete prototype.
3650 (arm_frame_init_saved_regs): New prototype.
3651 (FRAME_INIT_SAVED_REGS): Define.
3653 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3655 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3657 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3659 From Jeff Law <law@redhat.com>:
3660 * infttrace.c: Include <sys/pstat.h>.
3661 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3662 exec file if the ttrace equivalent fails.
3664 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3666 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3667 (closeLogFile): Ditto.
3669 2002-01-20 Michael Chastain <mec@shout.net>
3671 * top.c (print_gdb_version): Bump copyright year to 2002.
3673 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3675 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3676 Zannoni and Eli Zaretskii.
3678 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3680 * buildsym.c: Update copyright years.
3681 * c-typeprint.c: Likewise.
3682 * dwarf2read.c: Likewise.
3683 * f-typeprint.c: Likewise.
3684 * gdbtypes.c: Likewise.
3685 * gdbtypes.h: Likewise.
3686 * hp-symtab-read.c: Likewise.
3687 * hpread.c: Likewise.
3688 * mdebugread.c: Likewise.
3689 * p-typeprint.c: Likewise.
3691 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3693 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3694 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3695 byte-order selectable.
3696 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3697 * arch-utils.c: Ditto.
3698 (set_endian): Ditto.
3699 (set_endian_from_file): Ditto.
3700 * gdbserver/low-sim.c (create_inferior): Ditto.
3701 * gdbarch.sh: Ditto.
3702 * gdbarch.h: Re-generate.
3703 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3704 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3705 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3706 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3707 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3708 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3709 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3710 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3712 * config/mips/tm-wince.h: Remove #undef of macro
3713 TARGET_BYTE_ORDER_SELECTABLE.
3714 * config/sh/tm-wince.h: Ditto.
3716 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3718 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3719 member function fields. Add accessor macro
3720 TYPE_FN_FIELD_ARTIFICIAL.
3721 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3722 * c-typeprint.c (c_type_print_base): Skip artificial member
3725 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3727 * f-typeprint.c: Delete unused function f_type_print_args.
3728 * p-typeprint.c: Delete unused function pascal_type_print_args.
3730 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3732 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3733 comment. Add ``artificial'' to ``union field_location''.
3735 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3737 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3738 * mdebugread.c (parse_symbol): Likewise.
3739 * stabsread.c (define_symbol): Likewise.
3740 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3741 initializing TYPE_FIELD_BITPOS to n (obsolete).
3742 (hpread_doc_function_type): Likewise.
3743 * hpread.c (hpread_function_type): Likewise.
3745 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3747 * configure.in (host_makefile_frag): Only require a host makefile
3748 fragment when a native build.
3749 * configure: Re-generate.
3751 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3753 * doublest.h (floatformat_from_type): Declare.
3754 * doublest.c (floatformat_from_type): New function.
3755 (convert_typed_floating): Use.
3757 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3758 call to function floatformat_from_type.
3760 * gdbarch.sh (IEEE_FLOAT): Delete.
3761 * gdbarch.h, gdbarch.c: Re-generate.
3762 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3763 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3764 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3765 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3766 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3767 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3768 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3769 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3770 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3771 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3772 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3773 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3775 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3776 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3777 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3778 * sh-tdep.c (sh_gdbarch_init): Ditto.
3779 * mips-tdep.c (mips_gdbarch_init): Ditto.
3780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3781 * cris-tdep.c (cris_gdbarch_init): Ditto.
3783 2002-01-20 Jiri Smid <smid@suse.cz>
3785 * configure.host, configure.tgt: Support x86-64.
3786 * NEWS: Note new target x86-64.
3788 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3789 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3790 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3791 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3792 x86-64-linux-nat.o): Fix dependencies.
3794 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3796 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3797 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3798 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3799 * config/sparc/xm-sun4os4.h: Delete file.
3800 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3802 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3804 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3805 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3806 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3807 * config/i386/i386lynx.mh (XM_FILE): Delete.
3808 * config/rs6000/xm-rs6000ly.h: Delete file.
3809 * config/sparc/xm-sparclynx.h: Delete file.
3810 * config/m68k/xm-m68klynx.h: Delete file.
3811 * config/i386/xm-i386lynx.h: Delete file.
3812 * config/xm-lynx.h: Delete file.
3813 * config/djgpp/fnchange.lst: Update.
3815 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3817 * alpha-tdep.c (alpha_register_byte): New function.
3818 (alpha_register_raw_size): Ditto.
3819 (alpha_register_virtual_size): Ditto.
3820 (alpha_skip_prologue_internal): Renamed from
3821 alpha_skip_prologue.
3822 (alpha_skip_prologue): New version that calls
3823 alpha_skip_prologue_internal.
3824 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3825 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3826 second argument from alpha_skip_prologue.
3827 (REGISTER_BYTE): Use alpha_register_byte.
3828 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3829 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3830 (FRAMELESS_FUNCTION_INVOCATION): Use
3831 generic_frameless_function_invocation_not.
3832 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3833 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3835 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3837 * config/mips/xm-news-mips.h: Delete file.
3838 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3840 * config/m88k/xm-m88k.h: Delete file.
3841 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3842 * config/m88k/xm-delta88v4.h: Ditto.
3843 * config/m88k/xm-delta88.h: Ditto.
3845 * config/alpha/xm-fbsd.h: Delete file.
3846 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3848 * config/sparc/xm-sparc.h: Delete file.
3849 * Makefile.in (xm-sun4os4.h): Delete dependency.
3850 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3851 * config/sparc/xm-sun4os4.h: Ditto.
3852 * config/sparc/xm-linux.h: Ditto.
3854 * config/i386/xm-windows.h: Delete file.
3856 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3858 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3859 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3861 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3863 * alpha-tdep.c (alpha_call_dummy_words): New.
3864 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3865 (CALL_DUMMY_P): Define.
3866 (CALL_DUMMY_WORDS): Define.
3867 (SIZEOF_CALL_DUMMY_WORDS): Define.
3869 2002-01-19 Per Bothner <per@bothner.com>
3871 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3872 isn't NULL, which can happen with some gcj-3.x-produced code.
3874 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3876 * alpha-tdep.c (alpha_register_virtual_type): New function.
3877 (alpha_init_frame_pc_first): Ditto.
3878 (alpha_fix_call_dummy): Ditto.
3879 (alpha_store_struct_return): Ditto.
3880 (alpha_extract_struct_value_address): Ditto.
3881 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3882 alpha_register_virtual_type.
3883 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3884 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3885 alpha_extract_struct_value_address.
3886 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3887 (INIT_FRAME_PC): Use init_frame_pc_noop.
3888 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3890 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3892 * i386gnu-nat.c: Include "i386-tdep.h".
3893 (fetch_fpregs): Simplify code dealing with uninitialized floating
3894 point states such that it doesn't require FP7_REGNUM.
3896 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3898 * alpha-tdep.c (frame_extra_info): New.
3899 (alpha_find_saved_regs): Make static. Use
3901 (alpha_frame_init_saved_regs): New function.
3902 (alpha_frame_saved_pc): Use frame->extra_info.
3903 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3904 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3905 (init_extra_frame_info): Rename to...
3906 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3907 (alpha_print_extra_frame_info): New function.
3908 (alpha_frame_locals_address): Ditto.
3909 (alpha_frame_args_address): Ditto.
3910 (alpha_pop_frame): Use frame->extra_info.
3911 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3912 alpha_frame_args_address.
3913 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3914 (alpha_find_saved_regs): Remove prototype.
3915 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3916 (EXTRA_FRAME_INFO): Remove.
3917 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3918 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3920 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3922 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3923 (alpha_cannot_fetch_register): Ditto.
3924 (alpha_cannot_store_register): Ditto.
3925 (alpha_register_convertible): Ditto.
3926 (alpha_use_struct_convention): Ditto.
3927 * config/alpha/tm-alpha.h: Update copyright years.
3928 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3929 (INNER_THAN): Use core_addr_lessthan.
3930 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3931 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3932 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3933 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3934 (FRAME_CHAIN): Remove unnecessary cast.
3936 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3938 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3941 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3943 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3944 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3945 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3946 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3947 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3948 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3949 * x86-64-linux-nat.c: Ditto.
3951 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3953 * alpha-tdep.c (alpha_register_name): New function.
3954 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3955 (REGISTER_NAME): Define.
3957 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3959 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3961 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3963 * alpha-tdep.c: Update copyright years.
3964 (alpha_next_pc): New function.
3965 (alpha_software_single_step): Ditto.
3966 * config/alpha/tm-alpha.h: Add prototype for
3967 alpha_software_single_step.
3969 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3971 * alphabsd-nat.c: Update copyright years.
3972 (fill_gregset): Use regcache_collect.
3973 (fill_fpregset): Likewise.
3974 (fetch_inferior_registers): Only fetch integer registers
3975 if requested to do so.
3976 (store_inferior_registers): Only store integer registers
3977 if requested to do so.
3979 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3981 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3982 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3983 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3984 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3985 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3986 * config/arm/linux.mh (XDEPFILES): Delete.
3987 * config/arm/nbsd.mh (XDEPFILES): Delete.
3988 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3989 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3990 * config/i386/i386m3.mh (XDEPFILES): Delete.
3991 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3992 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3993 * config/i386/fbsd.mh (XDEPFILES): Delete.
3994 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3995 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3996 * config/i386/i386v4.mh (XDEPFILES): Delete.
3997 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3998 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3999 * config/i386/i386aix.mh (XDEPFILES): Delete.
4000 * config/i386/go32.mh (XDEPFILES): Delete.
4001 * config/i386/cygwin.mh (XDEPFILES): Delete.
4002 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4003 * config/i386/i386mach.mh (XDEPFILES): Delete.
4004 * config/i386/i386v32.mh (XDEPFILES): Delete.
4005 * config/i386/linux.mh (XDEPFILES): Delete.
4006 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4007 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4008 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4009 * config/i386/i386sco.mh (XDEPFILES): Delete.
4010 * config/i386/i386v.mh (XDEPFILES): Delete.
4011 * config/i386/nbsd.mh (XDEPFILES): Delete.
4012 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4013 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4014 * config/i386/symmetry.mh (XDEPFILES): Delete.
4015 * config/i386/obsd.mh (XDEPFILES): Delete.
4016 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4017 * config/ia64/linux.mh (XDEPFILES): Delete.
4018 * config/ia64/aix.mh (XDEPFILES): Delete.
4019 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4020 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4021 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4022 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4023 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4024 * config/m68k/linux.mh (XDEPFILES): Delete.
4025 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4026 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4027 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4028 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4029 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4030 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4031 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4032 * config/m88k/delta88.mh (XDEPFILES): Delete.
4033 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4034 * config/m88k/m88k.mh (XDEPFILES): Delete.
4035 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4036 * config/mips/linux.mh (XDEPFILES): Delete.
4037 * config/mips/irix6.mh (XDEPFILES): Delete.
4038 * config/mips/irix5.mh (XDEPFILES): Delete.
4039 * config/mips/irix4.mh (XDEPFILES): Delete.
4040 * config/mips/irix3.mh (XDEPFILES): Delete.
4041 * config/mips/decstation.mh (XDEPFILES): Delete.
4042 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4043 (NATDEPFILES): Move core-aout.o to here.
4044 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4045 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4046 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4047 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4048 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4049 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4050 * config/pa/hpux11.mh (XDEPFILES): Delete.
4051 * config/powerpc/aix.mh (XDEPFILES): Delete.
4052 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4053 * config/powerpc/linux.mh (XDEPFILES): Delete.
4054 * config/romp/rtbsd.mh: Rename XDEPFILES.
4055 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4056 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4057 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4058 * config/s390/s390.mh (XDEPFILES): Delete.
4059 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4060 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4061 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4062 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4063 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4064 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4065 * config/sparc/linux.mh (XDEPFILES): Delete.
4066 * config/vax/vaxult.mh (XDEPFILES): Delete.
4067 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4068 * Makefile.in (DEPFILES): Remove XDEPFILES.
4070 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4072 * utils.c (internal_verror): Fix comments, default is yes not no.
4073 Update queries to match. Default to quit and dump core.
4075 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4077 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4079 * defs.h, event-top.c, gdbcmd.h: Ditto.
4080 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4081 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4082 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4083 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4084 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4085 * mi/mi-main.c:Ditto.
4087 * stack.c, symfile.c: Update copyright.
4089 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4091 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4092 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4093 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4094 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4096 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4098 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4099 * gdbserver/low-lynx.c (myattach): Likewise.
4100 * gdbserver/low-nbsd.c (myattach): Likewise.
4101 * gdbserver/low-sim.c (myattach): Likewise.
4102 * gdbserver/low-sparc.c (myattach): Likewise.
4103 * gdbserver/low-sun3.c (myattach): Likewise.
4105 * gdbserver/low-linux.c (myattach): New function.
4107 * gdbserver/server.c (attach_inferior): New function.
4108 (main): Handle "--attach".
4110 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4112 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4115 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4117 * c-typeprint.c (is_type_conversion_operator): Add additional
4118 check for non-conversion operators.
4120 2002-01-15 Michael Snyder <msnyder@redhat.com>
4122 * linux-proc.c: Add "info proc" command, a la procfs.c.
4123 (read_mapping): New function, abstract and re-use code.
4124 (linux_find_memory_regions): Use new func read_mapping.
4125 (linux_info_proc_cmd): New function, implement "info proc".
4126 (_initialize_linux_proc): Add new command "info proc".
4128 2002-01-15 Michael Snyder <msnyder@redhat.com>
4130 * symfile.c (generic_load): Use bfd_map_over_sections method
4131 instead of manipulating bfd structure members directly.
4132 (add_section_size_callback): New function, bfd sections callback
4133 used by generic_load.
4134 (load_sections_callback): New function, bfd sections callback
4135 used by generic_load.
4137 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4139 [Based on work by Jim Blandy]
4140 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4141 (builtin_type_vec128): Export.
4142 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4144 (builtin_type_vec128): New builtin type for 128 bit vector
4146 (build_gdbtypes): Initialize builtin_type_v16qi and
4147 builtin_type_v8hi. Create the vec128 register builtin type
4149 (build_builtin_type_vec128): New function.
4150 (_initialize_gdbtypes): Register builtin_type_v16qi and
4151 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4152 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4153 AltiVec register to new builtin type.
4155 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4157 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4160 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4162 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4163 CLEAN_UP_REGISTER_VALUE.
4164 * regcache.c (supply_register): Update only call.
4166 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4168 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4169 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4170 a29k-*-vxworks* targets as obsolete.
4172 2002-01-14 Michael Snyder <msnyder@redhat.com>
4174 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4175 until we can resolve portability issues.
4176 * gregset.h: Remove references to fpxregs.
4177 * gcore.c (gcore_command): Initialize note_sec to NULL.
4179 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4181 * signals.c (target_signal_to_name): Rewrite. Only use
4182 signals[].name when in bounds and non-NULL.
4184 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4186 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4187 * signals.c (target_signal_to_name): Verify that SIG is within the
4188 bounds of the signals array.
4190 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4192 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4194 2002-01-13 Keith Seitz <keiths@redhat.com>
4196 * stack.c (print_frame_info_base): Print the frame's pc
4197 only if when print_frame_info_listing_hook is not defined.
4199 2002-01-13 Keith Seitz <keiths@redhat.com>
4201 * varobj.c (varobj_set_value): Make sure that there were no
4202 errors evaluating the object before attempting to set its
4204 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4205 so this offset adjustment is no longer necessary.
4206 (create_child): Don't set the error flag if the child is
4208 (value_of_child): If value_fetch_lazy fails, return NULL
4209 so that callers will be notified that an error occurred.
4210 (c_value_of_variable): Delay check of variable's validity
4211 until later. We actually want all structs and unions to have
4213 Do not return "???" for variables which could not be evaluated.
4214 This error condition must be returned to the caller so that it
4215 can get the error condition from gdb.
4216 (cplus_name_of_child): Adjust index for vptr before figuring
4217 out the name of the child.
4218 (cplus_value_of_child): If a child's (real) parent is not valid,
4219 don't even bother trying to give a value for it. Just return
4220 an error. Change all instances in this function.
4221 (cplus_type_of_child): If our parent is one of the "fake"
4222 parents, we need to get at the type of the real parent, and
4223 derive the child's true type using this information.
4225 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4227 From 2002-01-09 John Marshall <johnm@falch.net>:
4228 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4229 sources.redhat.com, and tweak some related URLs which had
4230 suffered from linkrot.
4232 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4235 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4236 structures passed in registers.
4238 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4240 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4241 white space which prevented compilation. Reported by DSK
4242 <dsk@student.unsw.edu.au>.
4244 2002-01-11 Michael Snyder <msnyder@redhat.com>
4246 * symfile.c (build_section_addr_info_from_section_tab):
4247 Use bfd access method instead of manipulating bfd directly.
4248 (syms_from_objfile): Ditto.
4249 (simple_overlay_update_1): Ditto.
4250 (simple_overlay_update): Ditto.
4251 (generic_load): Ditto.
4252 (overlay_unmapped_address): FIXME comment, bfd access methods.
4253 (sections_overlap): FIXME comment, bfd access methods.
4254 (pc_in_mapped_range): FIXME comment, bfd access methods.
4255 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4256 (section_is_mapped): FIXME comment, bfd access methods.
4257 (section_is_overlay): FIXME comment, bfd access methods.
4259 * symfile.c (generic_load): Whitespace and long line cleanups.
4260 Remove duplicate variable, change several local variables to
4261 more appropriate data types.
4262 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4264 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4267 * language.c (longest_local_hex_string_custom): Use phex_nz to
4268 convert NUM to a hex string.
4270 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4272 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4274 Update Copyright year.
4276 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4278 * language.c (longest_raw_hex_string): Delete unused function.
4280 2002-01-11 Petr Sorfa <petrs@caldera.com>
4282 * MAINTAINERS (write-after-approval): Add myself.
4283 * dwarf2read.c (read_tag_string_type): Handling of
4285 (read_tag_string_type): FORTRAN fix to prevent propagation of
4287 (set_cu_language): Handling of DW_LANG_Fortran95
4289 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4291 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4292 GETPID(inferior_ptid).
4293 (store_inferior_registers): Likewise.
4295 2002-01-10 Jason Merrill <jason@redhat.com>
4297 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4300 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4302 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4303 and bfd/elf32-sh-nbsd.c.
4305 2002-01-10 Michael Snyder <msnyder@redhat.com>
4307 * NEWS: Mention --pid and corefile/proc-id behavior change.
4309 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4310 * gcore.c: Include cli/cli-decode.h instead of command.h.
4312 * main.c (captured_main): Add new command line option "--pid".
4313 If the second command line argument (following the symbol-file)
4314 begins with a digit, try to attach to it before trying to open
4316 (print_gdb_help): Document the "--pid" argument.
4318 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4320 * completer.c (command_completer): New function.
4322 * completer.h <command_completer>: Add prototype.
4324 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4325 completer for the "help" command.
4327 2002-01-09 Jason Merrill <jason@redhat.com>
4329 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4331 2002-01-09 Michael Snyder <msnyder@redhat.com>
4333 * i386-linux-nat.c (fill_fpxregset): Make global.
4334 (store_fpxregset): Ditto.
4336 * gregset.h (gdb_fpxregset_t): Define.
4337 (supply_fpxregset): Prototype.
4338 (fill_fpxregset): Prototype.
4340 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4342 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4344 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4345 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4346 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4348 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4350 * MAINTAINERS: Update target maintainer rules so that any
4351 Maintainer can approve a tested patch for a maintenance-only
4354 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4356 * MAINTAINERS (write-after-approval): Add myself.
4358 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4361 2002-01-08 Michael Snyder <msnyder@redhat.com>
4363 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4364 real name of the executable, rather than the /proc name.
4366 2002-01-03 Michael Snyder <msnyder@redhat.com>
4368 Implement a "generate-core-file" command in gdb, save target state.
4369 * gcore.c: New file. Implement new command 'generate-core-file'.
4370 Save a corefile image of the current state of the inferior.
4371 * linux-proc.c: Add linux-specific code for saving corefiles.
4372 * target.h (struct target_ops): Add new target vectors for saving
4373 corefiles; to_find_memory_regions and to_make_corefile_notes.
4374 (target_find_memory_regions): New macro.
4375 (target_make_corefile_notes): New macro.
4376 * target.c (update_current_target): Inherit new target methods.
4377 (dummy_find_memory_regions): New place-holder method.
4378 (dummy_make_corefile_notes): New place-holder method.
4379 (init_dummy_target): Initialize new dummy target vectors.
4380 * exec.c (exec_set_find_memory_regions): New function.
4381 Allow the exec_ops vector for memory regions to be taken over.
4382 (exec_make_note_section): New function, target vector method.
4383 * defs.h (exec_set_find_memory_regions): Export prototype.
4384 * procfs.c (proc_find_memory_regions): New function, corefile method.
4385 (procfs_make_note_section): New function, corefile method.
4386 (init_procfs_ops): Set new target vector pointers.
4387 (find_memory_regions_callback): New function.
4388 (procfs_do_thread_registers): New function.
4389 (procfs_corefile_thread_callback): New function.
4390 * sol-thread.c (sol_find_memory_regions): New function.
4391 (sol_make_note_section): New function.
4392 (init_sol_thread_ops): Initialize new target vectors.
4393 * inftarg.c (inftarg_set_find_memory_regions): New function.
4394 Allow to_find_memory_regions vector to be taken over.
4395 (inftarg_set_make_corefile_notes): New function.
4396 Allow to_make_corefile_notes vector to be taken over.
4397 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4398 interface layer if not target_has_execution (may be a corefile).
4399 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4400 * config/sparc/sun4sol2.mh: Ditto.
4401 * config/alpha/alpha-linux.mh: Ditto.
4402 * config/arm/linux.mh: Ditto.
4403 * config/i386/x86-64linux.mh: Ditto.
4404 * config/ia64/linux.mh: Ditto.
4405 * config/m68k/linux.mh: Ditto.
4406 * config/mips/linux.mh: Ditto.
4407 * config/powerpc/linux.mh: Ditto.
4408 * config/sparc/linux.mh: Ditto.
4410 2002-01-07 Michael Snyder <msnyder@redhat.com>
4412 * arm-linux-nat.c: Remove references to regcache.c internal data
4413 (registers[] and register_valid[]).
4415 2002-01-07 Michael Snyder <msnyder@redhat.com>
4417 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4418 so that attaching to a pid will automatically read the process's
4419 symbol file and shlibs.
4420 * Makefile.in: Add rule for linux-proc.o.
4421 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4422 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4423 * config/arm/linux.mh: Ditto.
4424 * config/i386/linux.mh: Ditto.
4425 * config/i386/x86-64linux.mh: Ditto.
4426 * config/ia64/linux.mh: Ditto.
4427 * config/m68k/linux.mh: Ditto.
4428 * config/mips/linux.mh: Ditto.
4429 * config/powerpc/linux.mh: Ditto.
4430 * config/sparc/linux.mh: Ditto.
4432 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4434 * win32-nat.c: Add i386-tdep.h dependency.
4436 2002-01-07 Michael Snyder <msnyder@redhat.com>
4438 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4439 instead of bfd_get_arch_size. Don't bail out just because
4440 there's no exec_bfd.
4442 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4443 * p-valprint.c (pascal_object_print_value): Ditto.
4444 * somread.c (som_symtab_read): Ditto.
4445 * symfile.c (simple_free_overlay_region_table): Ditto.
4446 * valops.c (value_assign): Ditto.
4448 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4449 use tilde_expand and strerror for opening save-tracepoints file.
4451 * thread-db.c (thread_db_new_objfile): Indendation fix.
4453 * infptrace.c (GDB_MAX_ALLOCA): New define.
4454 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4455 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4456 can be overridden with whatever value is appropriate to the host).
4457 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4458 alloca to allocate potentially large buffer.
4459 * rs6000-nat.c (child_xfer_memory): Ditto.
4460 * symm-nat.c (child_xfer_memory): Ditto.
4461 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4463 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4465 From Nick Clifton <nickc@redhat.com>
4466 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4468 2002-01-07 Michael Snyder <msnyder@redhat.com>
4470 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4471 Don't use exec_bfd if it's NULL.
4473 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4475 * valops.c (value_arg_coerce): Fix formatting.
4477 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4479 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4482 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4484 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4485 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4486 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4487 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4488 z8k-coff have not been multi-arched. Update z8k-coff build
4491 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4493 * MAINTAINERS: Mark a29k target as obsolete.
4494 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4495 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4497 * NEWS: Note that a29k targets are obsolete.
4498 * a29k-tdep.c: Mark as obsolete.
4499 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4500 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4501 a29k-*-vxworks* targets as obsolete.
4502 * remote-adapt.c: Obsolete.
4503 * remote-eb.c: Obsolete.
4504 * remote-mm.c: Obsolete.
4505 * remote-udi.c: Obsolete.
4506 * config/a29k/a29k-udi.mt: Obsolete.
4507 * config/a29k/a29k.mt: Obsolete.
4508 * config/a29k/tm-a29k.h: Obsolete.
4509 * config/a29k/tm-vx29k.h: Obsolete.
4510 * config/a29k/vx29k.mt: Obsolete.
4512 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4514 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4515 with BFD_ENDIAN_BIG.
4517 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4519 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4520 * configure, config.in: Re-generate.
4521 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4522 * defs.h: Do not include <endian.h>.
4524 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4526 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4527 * config.in: Regenerate.
4528 * configure.in: Update copyright years.
4529 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4530 * configure: Regenerate.
4531 * i386bsd-nat.c: Update copyright years.
4532 (fill_gregset): Use regcache_collect.
4533 (fetch_inferior_registers): Only fetch integer registers
4534 if requested to do so. Add support for XMM registers
4535 using PT_GETXMMREGS.
4536 (store_inferior_registers): Only store integer registers
4537 if requested to do so. Add support for XMM registers
4538 using PT_SETXMMREGS.
4539 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4540 (store_inferior_registers): Remove.
4541 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4542 (fetch_elfcore_registers): New function.
4543 (i386nbsd_elfcore_fns): New.
4544 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4545 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4547 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4548 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4549 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4550 * config/i386/tm-nbsd.h: Update copyright years.
4551 (HAVE_SSE_REGS): Define.
4552 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4553 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4554 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4555 (SIGCONTEXT_PC_OFFSET): Remove.
4556 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4558 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4560 * configure.tgt: Remove powerpc-*-macos* target.
4561 * config/m68k/xm-mpw.h: Delete file.
4562 * config/xm-mpw.h: Delete file.
4563 * ser-mac.c: Delete file.
4564 * mpw-make.sed: Delete file.
4565 * mpw-config.in: Delete file.
4566 * mac-xdep.c: Delete file.
4567 * mac-gdb.r: Delete file.
4568 * mac-defs.h: Delete file.
4569 * mac-nat.c: Delete file.
4570 * config/powerpc/macos.mh: Delete file.
4571 * config/powerpc/macos.mt: Delete file.
4572 * config/powerpc/nm-macos.h: Delete file.
4573 * config/powerpc/tm-macos.h: Delete file.
4574 * source.c (openp, open_source_file): Remove obsolete code.
4575 * top.c (gdb_readline): Ditto.
4576 * utils.c (query): Ditto.
4577 * event-top.c (display_gdb_prompt): Ditto.
4578 * Makefile.in (ser-mac.o): Delete obsolete target.
4581 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4583 * defs.h (BIG_ENDIAN): Delete macro definition.
4584 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4585 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4586 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4587 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4588 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4589 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4590 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4591 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4592 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4593 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4594 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4595 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4596 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4597 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4598 * gdbarch.c: Re-generate.
4600 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4602 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4605 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4607 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4609 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4611 * value.h (value_ptr): Delete typedef.
4613 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4615 * i386nbsd-nat.c: Update copyright years.
4616 Include i386-tdep.h.
4618 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4620 * stabsread.c: Update copyright years.
4622 From Debashis Mahata <debashis.mahata@wipro.com>:
4623 (read_struct_fields): Deal with Sun C compiler erroneous stab
4624 output for structs and unions.
4627 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4629 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4632 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4634 * cp-abi.c: Fix whitespace.
4635 (baseclass_offset): New wrapper function.
4636 * cp-abi.h (baseclass_offset): Add prototype.
4637 (struct cp_abi_ops): Add baseclass_offset pointer.
4639 * valops.c (vb_match): Move to...
4640 * gnu-v2-abi.c (vb_match): here.
4641 * valops.c (baseclass_offset): Move to...
4642 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4644 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4646 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4647 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4648 * hpacc-abi.c (init_hpacc_ops): Likewise.
4650 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4652 * valops.c (find_overload_match): Accept obj as a
4653 reference parameter. Update it before returning.
4654 * value.h (find_overload_match): Update prototype.
4655 * eval.c (evaluate_subexp_standard): Pass object to
4656 find_overload_match by reference.
4658 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4660 * valarith.c: Replace value_ptr with struct value pointer. Remove
4661 register attribute from value declarations.
4664 * scm-lang.c (scm_lookup_name): Ditto.
4666 2002-01-03 Michael Snyder <msnyder@redhat.com>
4668 Abstract the functionality of iterating over mapped memory
4669 regions into a general purpose iterator function.
4670 * procfs.c (iterate_over_mappings): New function, general purpose
4671 iterator for memory sections.
4672 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4673 (solib_mappings_callback): New function, callback for above.
4674 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4675 (info_mappings_callback): New function, callback for above.
4677 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4679 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4681 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4682 * i386-tdep.c: Include "elf-bfd.h".
4683 (process_note_abi_tag_sections): New function.
4684 (i386_gdbarch_init): Add code to recognize various OS/ABI
4687 * maint.c (_initialize_maint_cmds): Add missing \ in
4690 For older changes see ChangeLog-2001
4696 version-control: never