1 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
4 to end of file, to be more consistent with the pratice followed
7 2002-11-06 Andrew Cagney <ac131313@redhat.com>
9 * infcmd.c: Include "reggroups.h" and <ctype.h>.
10 (print_float_info): Print registers in float_reggroup.
11 (print_vector_info): Print registers in vector_reggroup.
12 (default_print_registers_info): When all, print registers in
13 all_reggroup. Otherwize, print registers in general_reggroup.
14 (registers_info): Rewrite. Add support for register groups.
17 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
19 * symtab.c (methods_info): Delete. It has been ifdeffed out for
21 (symtab_symbol_info): Remove eons old ifdeffed out code.
22 (_initialize_symtab): Remove prehistoric disabled 'info methods'
25 2002-11-06 Theodore A. Roth <troth@openavr.org>
27 * c-exp.y: Add missing semi-colons.
28 * f-exp.y: Add missing semi-colons.
29 * m2-exp.y: Add missing semi-colons.
30 * p-exp.y: Add missing semi-colons.
31 Add empty action to start rule to avoid a type clash error when
32 building with bison >= 1.50.
34 2002-11-06 Jim Blandy <jimb@redhat.com>
36 * macrotab.h (struct macro_source_file): Doc fix.
38 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
40 * varobj.c (child_exists, cplus_number_of_children): Change
41 STREQ macro references to strcmp.
42 (cplus_name_of_child): Change code to handle the fact that
43 fields are not necessarily contiguous with regards to their
44 access control. This is a fix for PR gdb/792.
46 2002-11-05 Andrew Cagney <ac131313@redhat.com>
48 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
49 * gdbarch.h, gdbarch.c: Regnerate.
50 * frame.h (frame_register): Declare.
51 * frame.c (frame_register): New function.
52 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
53 GET_SAVED_REGISTER, otherwize call
54 generic_unwind_get_saved_register.
55 (frame_register_read): Use frame_register instead of
58 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
60 From Jim Ingham <jingham@apple.com>:
61 * event-top.c (gdb_disable_readline): New function.
62 (_initialize_event_loop): Move comment.
64 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
66 * event-loop.c (start_event_loop): Add comment.
69 2002-11-05 Andrew Cagney <ac131313@redhat.com>
71 * infcmd.c (default_print_registers_info): Do not call
74 2002-11-05 Andrew Cagney <ac131313@redhat.com>
76 * sparc-tdep.c (sparc_print_register_hook): Make static.
77 (sparc_print_registers_info): New function.
78 (sparc_do_registers_info): New function.
79 (sparclet_print_registers_info): New function.
80 (sparclet_do_registers_info): New function.
81 (do_sparc_print_registers_info): New function.
82 (sparc_print_registers): New static function, clone of infcmd.c's
83 default_print_registers_info.
84 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
85 (sparclet_do_registers_info): Declare.
86 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
87 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
89 (sparc_do_registers_info): Declare.
90 (PRINT_REGISTER_HOOK): Delete macro.
91 (sparc_print_register_hook): Delete declaration.
93 2002-11-05 David Carlton <carlton@math.stanford.edu>
95 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
97 (lookup_symbol_aux_local): New function.
98 (lookup_symbol_aux_symtabs): New function.
99 (lookup_symbol_aux_psymtabs): New function.
101 2002-11-05 David Carlton <carlton@math.stanford.edu>
103 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
104 previous values of 'objfile' and 'block'.
106 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
108 * values.c (value_change_enclosing_type): Set
109 enclosing_type field correctly also for the case where
110 more memory needs to be allocated.
112 2002-11-03 Mark Kettenis <kettenis@gnu.org>
114 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
117 * i387-tdep.c (i387_print_float_info): Replace calls to
118 register_read and deprecated_read_register_gen with calls to
119 frame_register_read, and make the necessary adjustments to the
122 2002-11-02 Andrew Cagney <ac131313@redhat.com>
124 * gdbarch.sh (register_reggroup_p): Allow default value.
125 * gdbarch.h, gdbarch.c: Regenerate.
127 2002-11-02 Andrew Cagney <ac131313@redhat.com>
129 * regcache.h: Add coment indicating replacements for deprecated
132 2002-11-02 Andrew Cagney <cagney@redhat.com>
134 * reggroups.h, reggroups.c: New files.
135 * regcache.c: Include "reggroups.h".
136 (enum regcache_dump_what): Add `regcache_dump_groups'.
137 (regcache_dump): Contract size of the "Type" column. When
138 specified, dump the register's groups.
139 (maintenance_print_register_groups): New function.
140 (_initialize_regcache): Add command `maint print register-groups'.
141 * Makefile.in (COMMON_OBS): Add reggroups.o
142 (SFILES): Add reggroups.c.
143 (reggroups_h): Define.
144 (regcache.o, gdbarch.o): Update dependencies.
145 (reggroups.o): Specify dependencies.
146 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
147 Add opaque declaration for `struct reggroup' in generated .h file.
148 Include "reggroups.h" in generated .c file.
149 gdbarch.h, gdbarch.c: Re-generate.
151 2002-11-02 Andrew Cagney <cagney@redhat.com>
153 * regcache.h (deprecated_read_register_gen): Rename
155 (deprecated_write_register_gen): Rename write_register_gen.
156 * i387-tdep.c: Update.
157 * x86-64-linux-nat.c: Update
159 * thread-db.c: Update.
160 * win32-nat.c: Update.
161 * mips-tdep.c: Update.
162 * d10v-tdep.c: Update.
163 * cris-tdep.c: Update.
164 * remote-sim.c: Update.
165 * remote-rdi.c: Update.
166 * remote-rdp.c: Update.
169 * blockframe.c: Update.
170 * x86-64-tdep.c: Update.
171 * xstormy16-tdep.c: Update.
173 * s390-tdep.c: Update.
174 * rs6000-tdep.c: Update.
175 * sparc-tdep.c: Update.
176 * i386-tdep.c: Update.
177 * dwarf2cfi.c: Update.
178 * regcache.c: Update.
180 2002-11-01 Joel Brobecker <brobecker@gnat.com>
182 New interix-specific files:
183 * config/i386/nm-interix.h: New file.
184 * config/i386/interix.mh: New file.
185 * config/i386/interix.mt: New file.
186 * i386-interix-nat.c: New file.
187 * i386-interix-tdep.c: New file.
189 2002-11-01 Andrew Cagney <cagney@redhat.com>
191 * frame.h (deprecated_generic_get_saved_register): Rename
192 generic_get_saved_register.
193 * blockframe.c (deprecated_generic_get_saved_register): Update.
194 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
195 (xstormy16_frame_saved_register): Update.
196 * sh-tdep.c (sh_gdbarch_init): Update.
197 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
198 * ia64-tdep.c (ia64_get_saved_register): Update.
199 * cris-tdep.c (cris_gdbarch_init): Update.
200 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
201 * arm-tdep.c (arm_gdbarch_init): Update.
203 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
205 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
207 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
209 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
210 trampolines in sigaction.
212 2002-10-31 Andrew Cagney <cagney@redhat.com>
214 * h8300-tdep.c: Include "gdb_assert.h".
215 (h8300_print_register): Add gdbarch, file and frame parameters.
216 Use frame_read_unsigned_register to read the register's value.
217 Use fprintf_filtered to display output.
218 (h8300_print_registers_info): Replace h8300_do_registers_info.
219 (h8300_gdbarch_init): Set print_registers_info.
221 2002-10-31 Andrew Cagney <cagney@redhat.com>
223 * frame.c (frame_read_unsigned_register): New function.
224 (frame_read_signed_register): New function.
225 * frame.h (frame_read_unsigned_register): Declare.
226 (frame_read_signed_register): Declare.
228 2002-10-31 Andrew Cagney <cagney@redhat.com>
230 * h8500-tdep.c (h8500_print_registers_info): New static function,
231 clone of infcmd.c's default_print_registers_info.
232 (h8500_do_registers_info): New funtion.
233 (h8500_print_register_hook): Rename print_register_hook, make
236 * config/h8500/tm-h8500.h: Update copyright.
237 (DEPRECATED_DO_REGISTERS_INFO): Define.
238 (h8500_do_registers_info: Declare.
239 (PRINT_REGISTER_HOOK): Delete macro.
240 (print_register_hook): Delete function.
242 2002-10-31 Andrew Cagney <cagney@redhat.com>
244 * z8k-tdep.c (z8k_print_register_hook): Make static.
245 (z8k_print_registers_info): New static function, clone of
246 infcmd.c's default_print_registers_info.
247 (z8k_do_registers_info): New function. Wrap
248 z8k_print_registers_info.
249 * config/z8k/tm-z8k.h: Update copyright.
250 (PRINT_REGISTER_HOOK): Delete macro.
251 (z8k_print_register_hook): Delete declaration.
252 (DEPRECATED_DO_REGISTERS_INFO): Define.
253 (z8k_do_registers_info): Declare.
255 2002-10-30 Joel Brobecker <brobecker@gnat.com>
257 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
258 as this is already provided by value.h, and was actually causing
259 a compilation error because of a conflict in parameter type
260 declaration due to a missing const keyword.
261 (low_text_segment_addres): Fix a compilation warning.
263 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
265 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
266 registers without a name.
267 (mips_linux_cannot_store_register): Don't store registers without
270 2002-10-28 David Carlton <carlton@math.stanford.edu>
272 * symtab.c (find_addr_symbol): Delete. (It was already commented
274 * symtab.h: Delete prototype for find_addr_symbol.
276 2002-10-26 Andrew Cagney <cagney@redhat.com>
278 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
280 gdbarch.h, gdbarch.c: Re-generate.
281 * infcmd.c (default_print_registers_info): Update reference.
282 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
283 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
284 * sh-tdep.c (sh_gdbarch_init): Ditto.
285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
286 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
288 2002-10-26 Mark Kettenis <kettenis@gnu.org>
290 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
291 cfi_init_extra_frame_info.
292 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
293 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
295 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
296 target where necessary. Add more comments and remove the ones
297 that don't provide any useful information.
299 * i386-tdep.c (i386_frame_saved_pc): Replace call to
300 deprecated_read_register_dummy with
301 frame_unwind_unsigned_register.
303 * i386-tdep.c (i386_extract_struct_value_address): Use
304 regcache_raw_read_unsigned instead of
305 regcache_cooked_read_unsigned since we know that the register
306 we're reading isn't a pseudo register. Rename variable 'val' into
307 the more descriptive 'addr'.
309 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
310 (x86_64_push_return_address): Add comment.
311 (x86_64_pop_frame): Make static.
312 (examine_argument): Clarify comment.
313 (x86_64_skip_prologue): Make prolog_expact variable static.
315 * dwarf2cfi.c: Fix some formatting problems.
316 (context_cpy, read_encoded_pointer): Clarify comments.
318 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
319 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
320 i386 target back into x86_64_gdbarch_init. Add some comments and
321 remove meaningless ones.
323 2002-10-25 Andrew Cagney <cagney@redhat.com>
325 * complaints.h (struct deprecated_complaint): Rename `struct
327 * complaints.c (complain): Update.
328 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
329 incorrect comment indicating that "symfile.h" was being included
330 for the `struct complaint' definition.
331 * remote-vx.c: Update.
332 * objc-lang.c: Update.
333 * xcoffread.c: Update.
335 * mdebugread.c: Update.
336 * stabsread.c: Update.
337 * dwarf2read.c: Update.
338 * dwarfread.c: Update.
340 * coffread.c: Update.
341 * stabsread.h: Update.
343 * buildsym.c: Update.
344 * gdbtypes.c: Update.
345 * macrotab.c: Update.
347 2002-10-25 Mark Kettenis <kettenis@gnu.org>
349 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
350 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
351 (x86_64_init_abi): ...new function.
353 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
354 * i386v-nat.c: Include "i386-tdep.h".
356 2002-10-25 Andrew Cagney <cagney@redhat.com>
358 * gdbtypes.c (address_space_name_to_int): Update.
359 (address_space_int_to_name): Update.
360 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
361 multi-arch predicate.
362 (address_class_name_to_type_flags): Ditto.
363 * gdbarch.h, gdbarch.c: Re-generate.
365 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
367 2002-10-24 Martin M. Hunt <hunt@redhat.com>
369 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
371 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
373 * symtab.h (INIT_SAL): Delete macro.
375 * symtab.c (init_sal): New function.
377 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
378 to init_sal function call.
379 (find_sal_from_funcs_and_line): Ditto.
380 (all_sals_for_line): Ditto.
381 * breakpoint.c (create_internal_breakpoint): Ditto.
382 (create_fork_vfork_event_catchpoint): Ditto.
383 (create_exec_event_catchpoint): Ditto.
384 (parse_breakpoint_sals): Ditto.
385 (watch_command_1): Ditto.
386 (handle_gnu_4_16_catch_command): Ditto.
387 (clear_command): Ditto.
388 * hppa-tdep.c (child_enable_exception_callback): Ditto.
389 * infcmd.c (run_stack_dummy): Ditto.
390 * infrun.c (process_event_stop_test): Ditto.
391 (check_sigtramp2): Ditto.
392 (step_over_function): Ditto.
393 * linespec.c (decode_line_2): Ditto.
394 (decode_line_1): Ditto.
395 * source.c (line_info): Ditto.
396 * symtab.c (find_pc_sect_line): Ditto.
398 2002-10-24 Michal Ludvig <mludvig@suse.cz>
400 * dwarf2cfi.c (struct context)
401 (struct context_reg): Moved to dwarf2cfi.h
402 (context_alloc, frame_state_alloc, context_cpy):
403 Made extern instead of static, removed prototypes.
404 * dwarf2cfi.h (struct context)
405 (struct context_reg): New, moved from dwarf2cfi.c
406 (context_alloc, frame_state_alloc, context_cpy):
408 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
409 Changed from static to extern.
410 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
411 (LINUX_SIGCONTEXT_FP_OFFSET)
412 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
413 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
414 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
415 * x86-64-tdep.c (x86_64_gdbarch_init): Several
416 set_gdbarch_*() calls now use x86-64 specific functions
417 instead of DWARF2 CFI ones.
418 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
419 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
420 (x86_64_init_extra_frame_info): New prototypes.
422 2002-10-23 David Carlton <carlton@math.stanford.edu>
424 * linespec.c: #include "parser-defs.h".
425 Delete prototype for find_template_name_end.
426 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
428 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
430 * NEWS: add recent mi fixes.
431 * varobj.c (struct varobj): Add new "updated" flag.
432 (new_variable): Default "updated" flag to 0.
433 (varobj_set_value): Set "updated" flag to 1 if value
435 (varobj_update): Check varobj "updated" flag before
436 comparing old and refreshed values. Fix for
439 2002-10-23 David Carlton <carlton@math.stanford.edu>
441 * parse.c (parse_exp_1): Use BLOCK_START.
442 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
444 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
446 2002-10-23 David Carlton <carlton@math.stanford.edu>
448 * symtab.c: Delete cplusplus_hint.
449 Delete prototype for find_template_name_end.
451 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
453 * symtab.h: Update comment.
455 2002-10-23 Michael Snyder <msnyder@redhat.com>
457 * printcmd.c (address_info): Restore quotes in output.
458 * valops.c (value_of_local): Restore quotes in error message.
460 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
462 * symtab.c (symbol_demangled_name): New function.
463 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
464 turning most of it into a function.
465 (symbol_demangled_name): Export.
467 2002-10-23 Michael Snyder <msnyder@redhat.com>
469 * valops.c (value_of_local): Restore quotes in error message.
471 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
473 * symtab.c (symbol_init_language_specific): New function.
474 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
475 turning most of it into a function.
476 (symbol_init_language_specific): Export.
478 2002-10-23 David Carlton <carlton@math.stanford.edu>
480 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
481 (dwarf_attr_name): Ditto.
482 (dwarf_type_encoding_name): Ditto.
483 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
484 (process_die): Handle DW_TAG_namespace,
485 DW_TAG_imported_declaration, DW_TAG_imported_module.
486 (read_namespace): New function.
488 2002-10-22 Joel Brobecker <brobecker@gnat.com>
490 * configure.in: Define NEW_PROC_API on Interix too.
491 * configure: Regenerate.
493 2002-10-21 Joel Brobecker <brobecker@gnat.com>
495 * configure: Regenerate using the proper version of autoconf.
497 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
499 * findvar.c (read_var_value): Temporarily disable TLS code, until
500 complete TLS support is added.
502 2002-10-21 Jim Blandy <jimb@redhat.com>
503 Elena Zannoni <ezannoni@redhat.com>
505 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
506 for thread local storage locations.
507 (struct symbol): Add objfile field.
508 (SYMBOL_OBJFILE): Define.
509 * dwarf2read.c (is_thread_local): New static variable.
510 (new_symbol): If variable is in thread local fill in address class
511 and objfile appropriately.
512 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
514 * printcmd.c (address_info): Print the information for thread
515 local storage variable.
516 * findvar.c (read_var_value): In case of thread local variable,
517 defer to the target vector code to compute address.
519 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
521 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
522 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
524 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
526 * symtab.h (address_class): Rename
527 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
528 * hpread.c (hpread_process_one_debug_symbol): Ditto.
529 * printcmd.c (address_info): Ditto.
530 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
532 2002-10-20 Mark Kettenis <kettenis@gnu.org>
534 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
535 DBREG_DRX macro to acces debug registers.
537 * Makefile.in (i386obsd-tdep.o): New target.
539 * solib-sunos.c: Include "bcache.h" and "regcache.h".
540 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
542 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
543 * config/i386/obsd.mt: New file.
544 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
545 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
546 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
547 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
548 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
549 * i386obsd-tdep.c: New file.
551 2002-10-19 Adam Fedor <fedor@gnu.org>
553 * objc-exp.y (name_not_typename): Fix invalid comment.
555 2002-10-20 Mark Kettenis <kettenis@gnu.org>
557 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
558 to allocate partial syms and macro byte caches.
560 2002-10-18 David Carlton <carlton@math.stanford.edu>
562 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
564 2002-10-18 Adam Fedor <fedor@gnu.org>
566 * stabsread.c (find_name_end): New function.
567 (define_symbol): Use it.
569 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
571 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
572 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
573 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
574 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
576 2002-10-17 David Carlton <carlton@math.stanford.edu>
578 * symfile.h: Add opaque declaration for struct obstack.
579 Declare obsavestring to take a const char *.
580 * symfile.c (obsavestring): Make first argument a const char *.
582 2002-10-16 Adam Fedor <fedor@gnu.org>
584 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
585 names when matching breakpoints in current file.
587 2002-10-16 Kevin Buettner <kevinb@redhat.com>
589 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
590 (read_tag_pointer_type): Add address class support.
591 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
592 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
594 * gdbarch.h, gdbarch.c: Regenerate.
595 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
596 (make_type_with_address_space, recursive_type_dump): Add address
598 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
599 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
600 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
602 2002-10-16 Klee Dienes <kdienes@apple.com>
604 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
605 to get the last character of a char[] buffer, not
606 name[sizeof(vptr_name)-1].
608 2002-10-14 Adam Fedor <fedor@gnu.org>
610 * symtab.h: New objc_specific struct.
611 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
612 (SYMBOL_DEMANGLED_NAME): Likewise.
614 2002-10-14 Adam Fedor <fedor@gnu.org>
616 * symfile.c (init_filename_language_table): Add ObjC file extension.
618 2002-10-14 Adam Fedor <fedor@gnu.org>
620 * utils.c (puts_filtered_tabular): New function.
621 (fprintf_symbol_filtered): Get ObjC demangled name.
622 * defs.h (puts_filtered_tabular): Declared.
624 2002-10-14 Kevin Buettner <kevinb@redhat.com>
626 * c-lang.h (c_type_print_varspec_prefix): Delete.
627 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
628 ``need_post_space'' parameter. Adjust all callers.
630 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
632 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
633 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
634 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
635 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
637 2002-10-13 Adam Fedor <fedor@gnu.org>
639 * source.c (print_source_lines): Update comments.
641 2002-10-13 Adam Fedor <fedor@gnu.org>
643 * valops.c (value_of_local): New function.
644 (value_of_this): Use it.
645 * value.h (value_of_local): Declared.
647 2002-10-13 Adam Fedor <fedor@gnu.org>
649 * parse.c: (length_of_subexp, prefixify_subexp): Handle
650 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
652 2002-10-12 Adam Fedor <fedor@gnu.org>
654 * language.c (binop_result_type): Add language_objc to case.
655 (integral_type): Likewise.
656 (character_type): Likewise.
657 (string_type): Likewise.
658 (boolean_type): Likewise.
659 (structured_type): Likewise.
660 (binop_type_check): Likewise.
662 2002-10-11 Adam Fedor <fedor@gnu.org>
664 * printcmd.c (address_info): Print 'self' for ObjC.
666 2002-10-11 Adam Fedor <fedor@gnu.org>
668 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
671 2002-10-11 Adam Fedor <fedor@gnu.org>
673 * language.h (CAST_IS_CONVERSION): Add language_objc.
675 2002-10-11 Adam Fedor <fedor@gnu.org>
677 * defs.h (enum language): Add language_objc.
679 2002-10-11 Klee Dienes <kdienes@apple.com>
681 * corefile.c (read_memory_typed_address): New function.
682 * gdbcore.h (read_memory_typed_address): Add prototype.
683 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
684 to read a value destined for a CORE_ADDR, not read_memory_integer.
685 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
686 (f77_get_dynamic_lowerbound): Ditto.
688 2002-10-11 Martin M. Hunt <hunt@redhat.com>
690 * utils.c (string_to_core_addr): After turning string into
691 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
692 which will do necessary sign-extension, etc.
694 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
696 * c-exp.y (THIS): Delete token and grammar rule.
697 (yylex): Don't return THIS.
698 * cp-valprint.c (vtbl_ptr_name_old): Delete.
699 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
700 * demangle.c (cplus_markers): Update comment. Put '$'
701 first. Remove CPLUS_MARKER.
702 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
703 * jv-exp.y (THIS): Delete token and grammar rule.
704 (yylex): Don't return THIS.
705 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
706 * objc-exp.y (THIS): Delete token and grammar rule.
707 (yylex): Don't return THIS.
708 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
709 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
710 (read_member_functions): Likewise for opname.
711 (read_tilde_fields): Use is_cplus_marker.
713 * defs.h (CPLUS_MARKER): Don't define.
714 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
715 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
716 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
717 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
718 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
720 * config/i386/tm-i386v4.h: Delete file.
721 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
722 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
723 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
724 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
725 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
726 * config/i386/i386sco5.mt (TM_FILE): Likewise.
727 * config/i386/i386v4.mt (TM_FILE): Likewise.
728 * config/i386/ncr3000.mt (TM_FILE): Likewise.
730 2002-10-10 Marko Mlinar <markom@opencores.org>
732 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
733 accidentially not commited 2002-10-09
734 * gdbarch.h, gdbarch.c: Re-generate.
736 2002-10-09 Marko Mlinar <markom@opencores.org>
738 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
739 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
740 * gdbarch.h, gdbarch.c: Re-generate.
742 2002-10-08 Petr Sorfa <petrs@caldera.com>
744 Revised and re-submitted by John Wolfe <jlw@caldera.com>
746 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
747 so we can work on more than one compilation unit at a time. This
748 helps prepare GDB to handle inter-CU die references.
749 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
750 the code to be defined before struct comp_unit_head.
751 (comp_unit_head): Added new members - offset, cu_head,
752 begin_die, next and dwarf2_abbrevs.
753 (dwarf2_abbrevs): Removed single static var; now member of
754 struct comp_unit_head.
755 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
757 (psymtab_to_symtab_1): Changed to work with the new
758 struct comp_unit_head.
759 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
760 constructs the dwarf2_abbrevs[] inside the cu_header.
761 (dwarf2_empty_abbrev_table): Now expects a ptr to a
762 dwarf2_abbrev table to clean up.
763 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
764 handling of dwarf2_abbrevs inside the cu_header.
765 (read_partial_die): Now supports the call to the new
766 dwarf2_lookup_abbrev.
767 (read_full_die): Now supports the call to the new
768 dwarf2_lookup_abbrev.
770 2002-10-06 Christopher Faylor <cgf@redhat.com>
772 * Makefile.in (install-gdbtk): Add missing continuation backslash to
773 insure that shell variables, such as "transformed_name" are propagated
774 to later shell statements in rule.
776 2002-10-06 Mark Kettenis <kettenis@gnu.org>
778 * config/i386/nm-i386sco.h: Add protection against
779 multiple-inclusion. Include "i386/nm-i386v.h".
780 (REGISTER_U_ADDR): Remove define.
781 (i386_register_u_addr): Remove prototype.
783 2002-10-04 Michael Snyder <msnyder@redhat.com>
785 * m32r-stub.c (handle_exception): Make sure exception is "trap"
786 before treating it as a single-step event.
788 2002-10-03 Adam Fedor <fedor@gnu.org>
790 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
791 (objc_demangle): Remove assignment in if statements, Replace
793 (add_msglist): Likewise.
794 (end_msglist): Likewise.
795 (complare_selectors): Likewise.
796 (selectors_info): Likewise.
797 (compare_classes): Likewise.
798 (classes_info): Likewise.
799 (print_object_command): Likewise.
800 (find_objc_msgcall_submethod): Replace PTR with void *.
801 * objc-lang.h: Remove check for __STDC__.
803 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
805 * ui-out.h (ui_out_field_fmt_int): New prototype.
806 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
807 of field width and alignment.
808 * stack.c (print_frame_info_base): When printing frame level, use
809 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
812 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
814 * MAINTAINERS: Add self to Write After Approval list.
816 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
818 * infcmd.c (interrupt_target_command_wrapper): Delete.
819 (interrupt_target_command): Make non static.
820 (nofp_registers_info): Make static.
821 * stack.c (return_command_wrapper): Delete.
822 (return_command): Make non static.
824 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
826 * event-top.c (gdb_setup_readline): New function. Code moved from
827 _initialize_event_loop().
828 (_initialize_event_loop): Call gdb_setup_readline().
830 2002-10-02 Andrew Cagney <ac131313@redhat.com>
832 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
833 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
834 * gdbarch.h, gdbarch.c: Re-generate.
836 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
839 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
841 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
842 of fill_in_vptr_fieldno.
844 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
846 * inferior.h (registers_info, stepi_command, nexti_command,
847 continue_command, interrupt_target_command): Export from infcmd.c.
848 * frame.h (args_info, selected_frame_level_changed_hook,
849 return_command): Export from stack.c.
850 * v850ice.c (stepi_command, nexti_command, continue_command): use
851 prototypes from inferior.h.
852 * tracepoint.c (registers_info, args_info, locals_info): Use
853 prototypes from frame.h and inferior.h.
854 * Makefile.in (mi-main.o): Add dependency on frame.h.
856 2002-10-02 Andrew Cagney <ac131313@redhat.com>
858 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
859 value in register 3 adjusted by ppc_gp0_regnum.
861 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
863 2002-10-02 Marko Mlinar <markom@opencores.org>
865 * MAINTAINERS: Add myself to the Write After Approval list.
867 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
869 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
870 of the section for the N64 ABI, fixed.
872 * config/mips/tm-irix6.h: Include solib.h.
874 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
876 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
879 2002-10-01 Andrew Cagney <ac131313@redhat.com>
881 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
882 and that "mi0" syntax has been removed.
884 2002-09-30 David Carlton <carlton@math.stanford.edu>
886 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
887 * ppc-sysv-tdep.c: #include "gdb_string.h".
888 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
891 2002-10-01 Andrew Cagney <ac131313@redhat.com>
893 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
894 "vrsave"'s register number.
896 2002-09-30 Andrew Cagney <ac131313@redhat.com>
898 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
899 use frame_unwind_signed_register to obtain the PC.
900 (mips_frame_chain): Handle a generic dummy frame.
901 (mips_init_extra_frame_info): When a generic dummy frame, don't
902 re-compute the frame base.
903 (mips_pop_frame): Handle generic dummy frames.
904 (mips_gdbarch_init): When generic dummy frames, set
905 use_generic_dummy_frames, push_dummy_frame to
906 generic_push_dummy_frame, pc_in_call_dummy to
907 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
908 generic_save_dummy_frame_tos.
910 2002-09-30 Andrew Cagney <ac131313@redhat.com>
912 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
913 against TOP when TOP was explictly set.
914 (generic_push_dummy_frame): Set TOP to zero.
916 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
918 * event-loop.c (start_event_loop): Rename variable 'result' to
919 'gdb_result', to avoid conflicts with upcoming intepreters changes.
921 2002-09-30 Keith Seitz <keiths@redhat.com>
923 * gdb-events.sh (selected_thread_changed): New event.
924 * gdb-events.c: Regenerated.
925 * gdb-events.h: Regenerated.
927 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
929 * MAINTAINERS: Add self to Write After Approval list.
931 2002-09-30 Fernando Nasser <fnasser@redhat.com>
933 * disasm.c: New file.
934 * disasm.h: New file.
935 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
936 (compare_lines): Ditto.
938 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
940 (do_assembly_only): Ditto.
941 (do_disassembly): Renamed to gdb_disassembly and moved to
942 disasm.c. Sdded uiout argument.
943 * Makefile.in: Add new files. Reorder SFILES list. Update
944 dependencies. Include libgdb.a later in the insight executable.
946 2002-09-29 Andrew Cagney <ac131313@redhat.com>
948 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
949 bfd/elf64-alpha-fbsd.c.
951 2002-09-29 Andrew Cagney <ac131313@redhat.com>
953 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
956 2002-09-29 Andrew Cagney <ac131313@redhat.com>
958 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
960 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
962 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
963 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
964 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
965 (S_msg_sig_post_reply): Ditto.
967 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
969 * sh-tdep.c (sh_use_struct_convention): Use definition according
971 (sh_push_arguments): Store in register with correct endianess.
972 (sh_default_store_return_value): Ditto.
973 (sh_gdbarch_init): Set sizeof long double to 8.
975 2002-09-27 Mark Kettenis <kettenis@gnu.org>
977 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
978 Fix some whitespace problems.
980 2002-09-27 David Carlton <carlton@math.stanford.edu>
982 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
983 (mcore-tdep.o): Ditto.
984 (ns32k-tdep.o): Ditto.
985 (ns32knbsd-tdep.o): Ditto.
988 * cris-tdep.c: #include "gdb_string.h"
989 * mcore-tdep.c: Ditto.
990 * ns32k-tdep.c: Ditto.
991 * ns32knbsd-tdep.c: Ditto.
995 2002-09-27 David Carlton <carlton@math.stanford.edu>
997 * config/djgpp/fnchange.lst: Add entries for
998 gdb/testsuite/gdb.c++/m-static files.
1000 2002-09-27 Jim Wilson <wilson@redhat.com>
1002 * MAINTAINERS: Add myself to the Write After Approval list.
1004 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1006 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1009 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1011 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1014 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1016 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1017 (rs6000_struct_return_address): Delete variable.
1018 (rs6000_store_struct_return): Update.
1019 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1020 deprecated_extract_struct_value_address.
1021 (rs6000_frame_align): New function.
1022 (rs6000_gdbarch_init): Set frame_align.
1024 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1026 From Grace Sainsbury <graces@redhat.com>:
1027 * Makefile.in (gdbtk-main.o): New target.
1028 (gdb.o): New target.
1030 (main.o): Update dependencies.
1031 (gdb$(EXEEXT)): Add gdb.o.
1032 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1033 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1034 (SUBDIR_GDBTK_CLEAN): Set.
1035 (install-gdbtk): Install the insight binary.
1036 (uninstall-gdbtk): New target.
1037 (all-gdbtk, clean-gdbtk): New rule.
1038 * top.c (use_windows): Default to zero.
1039 * main.c: Include "main.h".
1041 (struct captured_main_args): Delete.
1042 (gdb_main): New function.
1046 2002-09-25 Andrew Cagney <cagney@redhat.com>
1048 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1049 (frame_map_regnum_to_name): New function.
1050 (frame_map_name_to_regnum): New function.
1051 * frame.h (frame_map_name_to_regnum): Declare.
1052 (frame_map_regnum_to_name): Declare.
1053 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1054 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1055 * parse.c: Do not include "builtin-regs.h".
1056 (target_map_name_to_register): Delete function.
1057 (write_dollar_variable): Use frame_map_name_to_regnum.
1058 * parser-defs.h (target_map_name_to_register): Delete declaration.
1059 * expprint.c: Include "frame.h".
1060 (print_subexp): Use frame_map_regnum_to_name.
1061 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1062 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1064 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1066 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1067 wasn't saved, and the next innermost frame is a dummy, return the
1068 dummy frame's link register.
1070 2002-09-24 Jim Blandy <jimb@redhat.com>
1072 Fix from Paul Breed:
1073 * main.c (captured_main): Add a `break' after the case for 'b'.
1075 2002-09-24 Keith Seitz <keiths@redhat.com>
1077 * varobj.c (c_type_of_child): Use get_target_type instead
1078 of TYPE_TARGET_TYPE.
1080 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1082 * source.c (get_current_or_default_source_symtab_and_line): Remove
1084 (set_default_source_symtab_and_line): New function. Attempts to
1085 determine a source file to list lines from if one is not currently
1087 (get_current_source_symtab_and_line): Initialize sal.pc and
1089 (set_current_source_symtab_and_line): Mark argument as const.
1090 * source.h: Update declarations and comments.
1091 * linespec.c (decode_line_1): Replace call to removed routine above.
1092 * stack.c (print_frame_info_base): Ditto.
1093 * cli/cli-cmds.c (edit_command): Ditto.
1094 (list_command): Ditto.
1096 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1098 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1099 sal.pc and sal.end fields.
1100 (get_current_or_default_source_symtab_and_line): Ditto.
1101 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1102 so we do not cause a new source symtab to be searched for (reverting an
1103 unintentional change from the 2002-09-20 patch).
1104 * scm-lang.c (scm_unpac): Ditto.
1106 2002-09-21 Andrew Cagney <cagney@redhat.com>
1108 * complaints.c (symfile_explanations): Remove new-line from
1109 ``isolated_message''.
1110 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1111 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1113 2002-09-20 Nick Clifton <nickc@redhat.com>
1115 * NEWS: Announce that V850EA ISA is no longer supported.
1116 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1118 2002-09-20 David Carlton <carlton@math.stanford.edu>
1120 * Makefile.in (c-lang.o): Correct dependencies.
1121 (utils.o): Gather dependencies.
1123 * c-lang.c: #include "gdb_string.h"
1125 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1127 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1128 * cli/cli-cmds.c (list_command): New function. Implements the new
1130 (_init_cli_cmds): Add new command definition.
1131 * gdb.1: Document edit command.
1132 * doc/gdb.texinfo: Document edit command.
1134 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1136 * source.c: Make global variables current_source_symtab and
1137 current_source_line static.
1138 (list_command): Moved to cli/cli-cmds.c.
1139 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1140 (get_first_line_listed): New accessor function.
1141 (get_lines_to_list): New accessor function.
1142 (get_current_source_symtab_and_line): New function. Retrieves the
1143 position in the source code that we consider current.
1144 (get_current_or_default_source_symtab_and_line): New function.
1145 Like the above but attempts to determine a default position if one
1146 is not currently defined.
1147 (set_current_source_symtab_and_line): New function. Sets the source
1148 code position considered current and returns the previously set one.
1149 (clear_current_source_symtab_and_line): Reset stored information about
1150 a current source line.
1151 (_initialize_source): Remove registration for the "list" command and
1153 * source.h: Add declarations for the new functions above.
1154 * symtab.h: Remove declarations for the global variables mentioned
1156 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1157 obtain current source line.
1158 * linespec.c (decode_line_1): Ditto.
1159 * macroscope.c (default_macro_scope): Ditto.
1160 * scm-lang.c (scm_unpac): Ditto.
1161 * stack.c (print_frame_info_base): Ditto.
1162 * symfile.c (clear_symtab_users): Ditto.
1163 * symtab.c (decode_line_spec): Ditto.
1164 * cli/cli-cmds.c (list_command): Moved here from source.c.
1165 (ambiguous_line_spec): Moved here from source.c.
1166 (_init_cli_cmds): Add definition for "list" and its alias.
1167 * Makefile.in: Update dependencies.
1169 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1171 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1172 with what gcc thinks is correct.
1174 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1176 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1177 multiple register push instruction.
1179 2002-09-19 Jim Blandy <jimb@redhat.com>
1181 Add support for distinct host and target character sets.
1182 * charset.c, charset.h: New files.
1183 * c-exp.y: #include "charset.h".
1184 (yylex): Convert character and string literals to the target
1185 character set, before returning them as the semantic value of the
1187 * c-lang.c: #include "charset.h".
1188 (c_emit_char): Use charset-specific methods to recognize
1189 characters with backslash escape forms, to decide which characters
1190 to print literally and which to print using numeric escape
1191 sequences, and to convert target characters to host characters
1193 * utils.c: #include "charset.h".
1194 (no_control_char_error): New function.
1195 (parse_escape): Use charset-specific methods to recognize
1196 backslash escapes, parse `control character' notation, and convert
1197 characters from the host character set to the target character set.
1198 * configure.in: Set the default host character set.
1199 Check where to find iconv, and what its argument types might be.
1200 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1201 * Makefile.in (SFILES): List charset.c.
1202 (COMMON_OBS): List charset.o.
1203 (charset.o): New rule.
1204 (charset_h): New header dependency variable.
1205 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1206 (LIBICONV): New variable, set by configure.
1207 (CLIBS): Include $(LIBICONV) here.
1208 * aclocal.m4, config.in, configure: Regenerated.
1210 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1212 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1215 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1217 * gdb_mbuild.sh: New file.
1219 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1221 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1223 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1225 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1226 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1227 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1228 valops.c, value.h: Revert previous change.
1230 2002-09-18 Michael Snyder <msnyder@redhat.com>
1232 Preliminary support for Objective-C:
1233 * defs.h (language_objc): New enum value.
1234 (puts_filtered_tabular): Declaration only, exported from utils.c.
1235 (skip_quoted): Delete, declared in completer.h.
1236 * c-exp.y: Include completer.h.
1239 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1240 New operator enum values.
1241 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1242 * language.c (binop_result_type): Handle language_objc case.
1243 (integral_type, character_type, string_type, boolean_type,
1244 structured_type, binop_type_check): Ditto.
1245 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1246 (struct objc_specific): Add to general_symbol_info.
1247 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1248 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1249 * parser-defs.h (struct objc_class_str): New struct type.
1250 (start_msglist, end_msglist, add_msglist): Declaration only,
1251 exported from objc-lang.c.
1252 * value.h (value_of_local, value_nsstring,
1253 call_function_by_hand_expecting_type): Exported from valops.c.
1254 * valops.c (find_function_addr): Export.
1255 (call_function_by_hand_expecting_type): New function.
1256 (value_of_local): New function.
1257 * symfile.c (init_filename_language_table): Add ".m" extension
1259 * utils.c (puts_filtered_tabular): New function.
1260 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1261 (set/show demangle): Extend help-string to refer to ObjC.
1262 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1263 * stabsread.c (symbol_reference_defined): Objective-C symbols
1264 may contain colons: make allowances when scanning stabs strings
1266 (objc_find_colon): New function.
1267 * printcmd.c (address_info): If language == objc then print
1268 "self" instead of "this".
1269 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1270 OP_NSSTRING, and OP_SELF.
1271 (prefixify_subexp): Ditto.
1272 * source.c (print_source_lines): Mention objc in comment.
1273 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1276 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1278 * complaints.h: Update copyright.
1279 (struct complaints): Declare.
1280 (struct complaint): Make `message' constant.
1281 (internal_complaint): Declare.
1282 (complaint): Declare.
1283 (complaint_root): Delete declaration.
1284 (symfile_complaints): Delete declaration.
1285 (struct complaints): Add opaque declaration.
1286 (clear_complaints): Add a complaints parameter.
1287 * complaints.c: Update copyright.
1288 (enum complaint_series): Define.
1289 (complaint_root): Delete.
1290 (struct complaints): Define.
1291 (complaint_sentinel, symfile_complaint_book): New variables.
1292 (symfile_explanations, symfile_complaints): New variables.
1294 (get_complaints): New function.
1295 (vcomplaint): New function.
1296 (complaint): New function.
1297 (internal_complaint): New function.
1298 (complain): Call vcomplain with symfile_complaint.
1299 (clear_complaints): Rewrite.
1300 (_initialize_complaints): Use add_setshow_command.
1301 * Makefile.in (complaints.o): Update dependencies.
1302 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1303 to call to clear_complaints.
1304 (new_symfile_objfile, reread_symbols): Ditto.
1305 (oldsyms_complaint): Delete.
1306 (empty_symtab_complaint, unknown_option_complaint): Delete.
1307 (free_named_symtabs): Use complaint instead of complain.
1309 2002-09-18 Michael Snyder <msnyder@redhat.com>
1311 Contributed by Apple Computer, Inc. Merged with current sources
1312 by Adam Fedor <fedor@doc.com> [cagney].
1314 * objc-lang.c: First clean-up round: comments, indentation.
1315 * objc-lang.h: Ditto.
1316 * objc-lang.y: Ditto.
1318 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1320 * maint.c (maintenance_internal_error): Print the parameter as the
1322 (maintenance_internal_warning): New function.
1323 (_initialize_maint_cmds): Add command `maint internal-warning'.
1325 * defs.h (internal_warning, internal_vwarning): Declare.
1326 * utils.c (struct internal_problem): Define.
1327 (internal_vproblem): New function.
1328 (internal_warning): New function.
1329 (internal_vwarning): New function.
1330 (internal_warning_problem, internal_error_problem): New variables.
1331 (internal_verror): Just call internal_vproblem.
1333 2002-09-18 Michael Snyder <msnyder@redhat.com>
1335 * objc-lang.c: New file, support for Objective-C.
1336 Preliminary check-in, not yet integrated into gdb.
1337 * objc-lang.h: New file.
1338 * objc-exp.y: New file.
1340 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1342 * infrun.c (signal_stop_update): Convert definition to ISO C.
1343 (signal_print_update): Ditto.
1344 (signal_pass_update): Ditto.
1345 * inflow.c (terminal_save_ours): Ditto.
1347 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1350 * config/djgpp/fnchange.lst: Handle name clashes between
1351 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1354 * i386-linux-tdep.h: Fix tipo.
1356 2002-09-18 Adam Fedor <fedor@gnu.org>
1358 * MAINTAINERS: Add myself to the Write After Approval list.
1360 2002-09-18 Jim Blandy <jimb@redhat.com>
1362 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1363 texthigh and textlow to reader-specific structs caused
1364 objfile_relocate to miss them. This is fixable, but the work that
1365 the change was supposed to prepare GDB for never got done anyway.
1367 2002-09-18 David Carlton <carlton@math.stanford.edu>
1369 * MAINTAINERS: Alphabetize Write After Approval list.
1371 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1374 * values.c (value_static_field): Call read_var_value.
1376 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1378 * valops.c (hand_function_call): Align the initial stack pointer
1379 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1380 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1382 * mips-tdep.c (mips_frame_align): New function.
1383 (mips_gdbarch_init): Set frame_align.
1384 * gdbarch.sh (FRAME_ALIGN): New method.
1385 * gdbarch.h, gdbarch.c: Re-generate.
1387 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1389 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1392 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1394 * NEWS: Mention that MIPS $fp behavior changed.
1395 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1396 reference to FP_REGNUM.
1397 (mipsnbsd_cannot_store_register): Ditto.
1398 * mips-linux-nat.c: Update copyright.
1399 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1400 (mips_linux_cannot_store_register): Ditto.
1401 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1402 * config/mips/tm-mips.h: Update copyright.
1403 (FP_REGNUM): Delete macro.
1404 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1405 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1406 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1407 (mips_r3041_reg_names, mips_r3051_reg_names)
1408 (mips_r3081_reg_names): Replace "fp" with "".
1411 2002-09-17 Theodore A. Roth <troth@verinet.com>
1413 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1414 generic_read_register_dummy() (PR gdb/703).
1415 (avr_push_return_address): #if 0 out unused vars.
1416 (avr_gdbarch_init): Enable use of avr_push_return_address().
1418 2002-09-17 Michael Snyder <msnyder@redhat.com>
1420 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1421 RTE will take care of it.
1423 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1425 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1426 invalid, return SP_REGNUM.
1428 2002-09-17 Michael Snyder <msnyder@redhat.com>
1430 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1431 point registers without sign extension.
1433 2002-09-17 Andrew Cagney <cagney@redhat.com>
1435 * blockframe.c (deprecated_read_register_dummy): Rename
1436 generic_read_register_dummy.
1437 * frame.c (frame_unwind_signed_register): New function.
1438 (frame_unwind_unsigned_register): New function.
1439 * frame.h (frame_unwind_signed_register): Declare.
1440 (frame_unwind_unsigned_register): Declare.
1441 (deprecated_read_register_dummy): Rename
1442 generic_read_register_dummy.
1444 * h8300-tdep.c (h8300_frame_chain): Update.
1445 (h8300_frame_saved_pc): Update.
1446 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1447 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1448 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1449 (s390_frame_chain): Update.
1450 * v850-tdep.c (v850_find_callers_reg): Update.
1451 (v850_frame_saved_pc): Update.
1452 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1453 (m32r_find_callers_reg): Update.
1454 (m32r_frame_saved_pc): Update.
1455 * sh-tdep.c (sh_find_callers_reg): Update.
1456 (sh64_get_saved_pr): Update.
1457 (sh_init_extra_frame_info): Update.
1458 (sh_init_extra_frame_info): Update.
1459 (sh64_init_extra_frame_info): Update.
1460 (sh64_init_extra_frame_info): Update.
1461 * mcore-tdep.c (mcore_find_callers_reg): Update.
1462 (mcore_frame_saved_pc): Update.
1463 (mcore_init_extra_frame_info): Update.
1464 * i386-tdep.c (i386_frame_saved_pc): Update.
1465 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1466 (ia64_init_extra_frame_info): Update.
1467 (ia64_init_extra_frame_info): Update.
1468 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1469 * cris-tdep.c (cris_init_extra_frame_info): Update.
1470 * avr-tdep.c (avr_frame_chain): Update.
1471 (avr_init_extra_frame_info): Update.
1472 (avr_frame_saved_pc): Update.
1473 * arm-tdep.c (arm_find_callers_reg): Update.
1474 (arm_init_extra_frame_info): Update.
1475 (arm_frame_saved_pc): Update.
1477 2002-09-17 Tom Tromey <tromey@redhat.com>
1479 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1482 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1484 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1485 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1487 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1490 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1492 * osfsolib.c: Remove file, replaced by solib-osf.c.
1493 * Makefile.in: Remove compilation rules for osfsolib.c.
1495 2002-09-16 David Carlton <carlton@math.stanford.edu>
1497 * cp-valprint.c (cp_print_class_method): Correct args to
1498 check_stub_method_group.
1500 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1502 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1503 `set architecture'. Unify naming convention of functions.
1504 (h8300_skip_prologue): Improve prologue analysis.
1505 (h8300_push_arguments): Rewritten to more closely match GCC's
1506 bizarre argument-passing behavior, along with the comment describing
1508 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1509 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1510 sim, remote-e7000.c, remote-hms.c and remote.c
1512 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1514 * i386-tdep.c (gdb_print_insn_i386): Removed.
1515 (i386_print_insn): New function.
1516 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1517 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1520 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1522 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1525 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1527 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1528 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1529 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1531 2002-09-13 Christopher Faylor <cgf@redhat.com>
1533 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1535 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1537 * gdbtypes.c (check_stub_method): Make static.
1538 (check_stub_method_group): New function.
1539 * gdbtypes.h: Update prototypes.
1540 * cp-support.c: New file.
1541 * cp-support.h: New file.
1543 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1544 (update_method_name_from_physname): New function.
1545 (read_member_functions): Correct method names for operators
1546 and v3 constructors/destructors. Separate v2 constructors and
1548 * Makefile.in (stabsread.o): Update dependencies.
1549 (SFILES): Add cp-support.c.
1550 (COMMON_OBS): Add cp-support.o.
1551 (cp_support_h, cp-support.o): Add.
1553 * cp-valprint.c (cp_print_class_method): Call
1554 check_stub_method_group instead of check_stub_method. Remove
1556 * p-valprint.c (pascal_object_print_class_method): Likewise.
1557 * valops.c (search_struct_method): Likewise.
1558 (find_method_list, value_struct_elt_for_reference): Likewise.
1560 2002-09-13 Andrew Cagney <cagney@redhat.com>
1562 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1563 * gdbarch.h, gdbarch.c: Regenerate.
1565 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1567 * frame.c (find_saved_register): Delete function.
1568 * frame.h (find_saved_register): Delete declaration.
1571 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1573 * mips-tdep.c (read_next_frame_reg): Re-hack using
1574 frame_register_unwind.
1576 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1578 * mips-tdep.c (mips_get_saved_register): Re-hack using
1579 frame_register_unwind.
1581 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1583 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1584 vector. Will be useful for Interix.
1585 * gdbarch.h, gdbarch.c: Regenerate.
1587 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1588 name of the malloc function by NAME_OF_MALLOC.
1590 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1592 * value.h (find_function_in_inferior): Add const keyword to
1593 one of the parameters. Allows us to invoke this function with
1595 * valops.c (find_function_in_inferior): Likewise.
1597 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1599 * exec.c (xfer_memory): Fix compilation warning with old versions
1601 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1603 2002-09-12 David Carlton <carlton@math.stanford.edu>
1605 * symtab.h: Run through gdb_indent.h.
1606 Add 2002 to Copyright year list.
1608 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1610 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1612 * MAINTAINERS: Add myself to write after approval list.
1614 2002-09-11 J. Brobecker <brobecker@gnat.com>
1616 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1618 2002-09-11 J. Brobecker <brobecker@gnat.com>
1620 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1623 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1625 * procfs.c (do_detach): Clear current signal, not just fault.
1626 Corrects problem with breakpoint trap signal leaking to detached
1629 2002-09-10 Michael Snyder <msnyder@redhat.com>
1631 * buildsym.c (finish_block): Protect against null pointer.
1633 2002-09-10 Andrew Cagney <cagney@redhat.com>
1635 * infcmd.c (default_print_registers_info): Send all output to
1636 ``file'' instead of ``gdb_stdout''.
1638 2002-09-10 Michael Snyder <msnyder@redhat.com>
1640 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1641 LONGEST, and use signed register read (addresses are sign-
1644 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1646 * event-loop.c (gdb_do_one_event): Make public.
1647 * event-loop.h (gdb_do_one_event): Declare.
1649 2002-09-10 Jeff Law <law@redhat.com>
1651 * infttrace.c (child_resume): Simplify and rework to avoid
1654 2002-09-09 Fred Fish <fnf@intrinsity.com>
1656 * printcmd.c (print_scalar_formatted): "len" is the number of
1657 target bytes, NOT the number of target bits.
1659 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1661 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1662 * top.c (init_main): Set rl_terminal_name.
1664 2002-09-08 Aidan Skinner <aidan@velvet.net>
1666 * ada-lang.c (ada_array_bound, ada_type_match,
1667 _initialize_ada_language): Fix K&R definitions.
1668 * ada-tasks.c (get_current_task): Fix K&R definitions.
1669 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1671 2002-09-07 Christopher Faylor <cgf@redhat.com>
1673 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1676 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1678 * i386-tdep.c (i386_register_virtual_type,
1679 i386_register_convertible, i386_register_convert_to_virtual,
1680 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1681 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1682 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1683 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1684 Don't set push_arguments twice.
1686 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1687 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1688 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1689 sigtramp_end to NULL.
1690 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1692 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1694 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1697 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1698 * gdbarch.h, gdbarch.c: Re-generate.
1699 * blockframe.c (find_pc_sect_partial_function): Convert to use
1700 SIGTRAMP_START_P predicate.
1702 2002-09-05 Michael Snyder <msnyder@redhat.com>
1704 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1705 generic_dummy_frame method and old method. Also distinguish
1706 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1707 (arm_extract_return_value): Use new regcache method.
1709 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1710 adjustment that doesn't conform to the ABI.
1711 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1712 saved regcache, not from current regcache.
1714 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1716 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1719 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1721 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1722 if arm_apcs_32 is false.
1724 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1726 GDB 5.3 branch created.
1728 2002-09-03 Theodore A. Roth <troth@verinet.com>
1730 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1731 generic_unwind_get_saved_register.
1733 2002-09-03 David Carlton <carlton@math.stanford.edu>
1735 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1736 argument (PR gdb/653). Update call to smash_to_method_type.
1737 (read_structure_scope): Update call to dwarf2_add_member_fn.
1739 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1741 * x86-64-linux-tdep.c: Include gdb_string.h
1742 * x86-64-linux-nat.c: Ditto.
1744 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1746 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1747 when YYDEBUG is set to 1.
1748 * c-exp.y: Likewise.
1749 * f-exp.y: Likewise.
1750 * jv-exp.y: Likewise.
1751 * m2-exp.y: Likewise.
1752 * p-exp.y: Likewise.
1754 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1756 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1758 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1759 solib_svr4_fetch_link_map_offsets to
1760 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1761 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1762 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1763 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1764 solib-svr4.o, and solib-legacy.o.
1765 * config/i386/tm-nbsd.h: Include solib.h.
1767 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1769 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1770 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1771 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1772 comment noting that this needs its own target configuration.
1773 * config/i386/nbsd.mt: New file.
1774 * config/i386/nbsdaout.mt: Remove.
1775 * config/i386/nbsdelf.mt: Ditto.
1776 * config/i386/tm-nbsdaout.h: Ditto.
1778 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1780 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1781 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1782 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1784 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1785 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1786 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1788 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1790 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1791 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1792 * i386-tdep.h (i386bsd_init_abi): New prototype.
1793 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1794 function declaration.
1795 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1796 for NetBSD-a.out or NetBSD-ELF.
1797 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1798 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1799 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1800 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1802 (i386nbsd_pc_in_sigtramp): New function.
1803 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1804 i386nbsd_pc_in_sigtramp.
1805 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1806 and i386nbsdelf_init_abi OS ABI handlers.
1807 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1808 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1810 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1812 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1813 registers if the target really has them.
1815 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1817 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1820 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1822 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1824 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1825 (alphanbsd_skip_sigtramp_frame): New functions.
1826 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1827 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1828 to alphanbsd_sigcontext_addr.
1830 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1832 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1834 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1835 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1836 nbsd_pc_in_sigtramp.
1837 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1838 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1839 * nbsd-tdep.c: Include gdb_string.h.
1840 (nbsd_pc_in_sigtramp): New function.
1841 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1842 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1843 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1844 ppcnbsd_pc_in_sigtramp.
1845 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1846 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1847 shnbsd_pc_in_sigtramp.
1848 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1849 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1850 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1852 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1854 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1855 watchpoints to NULL.
1856 (insert_breakpoints): set val field of watchpoints if NULL.
1859 2002-08-29 Jim Blandy <jimb@redhat.com>
1861 * symtab.c (lookup_symbol_aux): In the cases where we find a
1862 minimal symbol of an appropriate name and use its address to
1863 select a symtab to read and search, use `name' (as passed to us)
1864 as the demangled name when searching the symtab's global and
1865 static blocks, not the minsym's name.
1867 2002-08-29 Keith Seitz <keiths@redhat.com>
1869 * stack.c (print_frame_info_base): Always set current_source_symtab
1870 and current_source_line.
1872 2002-08-29 Donn Terry <donnte@microsoft.com>
1874 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1876 2002-08-28 Keith Seitz <keiths@redhat.com>
1878 * stack.c (select_frame): Add FIXME concerning selected-frame
1880 (select_frame_command): Send selected-frame-level-changed
1881 event notification, but only if the level actually changed.
1882 (up_silently_base): Add selected-frame-level-changed event
1884 (down_silently_base): Likewise.
1886 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1888 * Makefile.in: Update dependencies for all gdb/*.c files.
1890 2002-08-27 Tom Tromey <tromey@redhat.com>
1892 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1893 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1894 Update dependencies.
1895 * i387-tdep.c: Include gdb_string.h.
1896 * osabi.c: Likewise.
1897 * i386-linux-nat.c: Likewise.
1898 * lin-lwp.c: Likewise.
1899 * ax-gdb.c: Likewise.
1900 * signals/signals.c: Likewise.
1901 * jv-valprint.c: Likewise.
1902 * p-lang.c: Likewise.
1903 * c-valprint.c: Likewise.
1904 * cp-abi.c: Likewise.
1906 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1908 * cli/cli-script.h (copy_command_lines): Export.
1909 * breakpoint.c: Include cli/cli-script.h.
1910 * Makefile.in (breakpoint.o): Update dependencies.
1912 2002-08-26 Michael Snyder <msnyder@redhat.com>
1914 * breakpoint.c (insert_breakpoints): Protect all references
1915 to 'process_warning'. Shorten long lines.
1917 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1919 * cli/cli-script.c (copy_command_lines): New function.
1920 * defs.h (copy_command_lines): Export.
1921 * testsuite/gdb.base/commands.exp: New tests for commands
1922 attached to a temporary breakpoint, and for commands that
1923 delete the breakpoint they are attached to.
1925 2002-08-26 Michael Snyder <msnyder@redhat.com>
1927 * breakpoint.c (bpstat_stop_status): Instead of copying the
1928 pointer to the breakpoint commands struct, make a new copy
1929 of the struct and point to that.
1930 (bpstat_clear): Free the commands struct.
1931 (bpstat_clear_actions): Free the commands struct.
1932 (bpstat_do_actions): Free the command actions. Also execute
1933 the local cleanups, instead of deleting them.
1934 (delete_breakpoint): Leave the commands field of the bpstat
1935 chain alone -- it will be freed later.
1937 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1939 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1940 deleted in 2002-08-20 commit. This function is still used by
1943 2002-08-26 Keith Seitz <keiths@redhat.com>
1945 * gdb-events.sh: Add selected-frame-level-changed event.
1946 * gdb-events.c: Regenerated.
1947 * gdb-events.h: Regenerated.
1949 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1952 * inflow.c (terminal_save_ours): New function to save terminal
1954 * inferior.h (terminal_save_ours): Declare.
1955 * target.c (debug_to_terminal_save_ours): New function.
1956 (cleanup_target): Defaults to_terminal_save_ours.
1957 (update_current_target): Inherit to_terminal_save_ours.
1958 (setup_target_debug): Set to_terminal_save_ours.
1959 * target.h (target_terminal_save_ours): New to save terminal settings.
1960 (target_ops): New member to_terminal_save_ours.
1961 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1962 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1963 * inftarg.c (init_child_ops): Likewise.
1964 * m3-nat.c (init_m3_ops): Likewise.
1965 * procfs.c (init_procfs_ops): Likewise.
1966 * wince.c (init_child_ops): Likewise.
1967 * win32-nat.c (init_child_ops): Likewise.
1968 * sol-thread.c (init_sol_thread_ops): Likewise.
1970 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1972 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1973 use regcache_* functions.
1974 (i386_gdbarch_init): Set store_return_value instead of
1975 deprecated_store_return_value.
1977 * regcache.c (regcache_raw_write_signed,
1978 regcache_raw_write_unsigned): New functions.
1979 * regcache.h (regcache_raw_write_signed,
1980 regcache_raw_write_unsigned): New prototypes.
1982 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1984 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1985 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1986 source file dependencies. Cleanup corresponding generator rules.
1988 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1990 * regcache.h (register_offset_hack): Declare.
1991 (regcache_cooked_read_using_offset_hack): Declare.
1992 (regcache_cooked_write_using_offset_hack): Declare.
1994 * regcache.c (register_offset_hack): New function.
1995 (regcache_cooked_read_using_offset_hack): New function.
1996 (regcache_cooked_write_using_offset_hack): New function.
1997 (regcache_dump): Check that the registers, according to their
1998 offset, are packed hard against each other.
1999 (cooked_xfer_using_offset_hack): New function.
2001 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2003 * regcache.c (struct regcache_descr): Add field register_type.
2004 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2006 (init_regcache_descr): Initialize register_type. Pass the descr
2007 to init_legacy_regcache_descr. Use register_type instead of
2008 REGISTER_VIRTUAL_TYPE.
2009 (register_type): New function.
2010 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2011 * regcache.h (register_type): Declare.
2013 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2015 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2016 instead of deprecated_store_return_value. Fix fallout from
2017 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2019 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2021 * regcache.c (max_register_size): New function.
2022 (init_legacy_regcache_descr): Ensure that max_register_size is
2023 large enough for REGISTER_VIRTUAL_SIZE.
2024 * regcache.h (max_register_size): Declare.
2026 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2028 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2030 (e500_extract_return_value): Change type of valbuf pointer to
2033 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2035 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2038 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2039 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2040 long long) to prevent compiler warning on 64-bit systems.
2042 2002-08-23 Andrew Cagney <cagney@redhat.com>
2044 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2045 (DEPRECATED_STORE_RETURN_VALUE): New method.
2046 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2047 * gdbarch.h, gdbarch.c: Re-generate.
2049 * values.c (set_return_value): Pass current_regcache to
2051 * arch-utils.h (legacy_store_return_value): Declare.
2052 * arch-utils.c (legacy_store_return_value): New function.
2053 (legacy_extract_return_value): Update parameters.
2055 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2057 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2058 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2059 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2060 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2061 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2062 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2063 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2064 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2065 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2066 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2069 * i386-tdep.c (i386_extract_return_value): Update.
2070 * arch-utils.c (legacy_extract_return_value): Update.
2071 * frv-tdep.c (frv_gdbarch_init): Update.
2072 * cris-tdep.c (cris_gdbarch_init): Update.
2073 * d10v-tdep.c (d10v_gdbarch_init): Update.
2074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2075 * m68k-tdep.c (m68k_gdbarch_init): Update.
2076 * mcore-tdep.c (mcore_gdbarch_init): Update.
2077 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2078 * s390-tdep.c (s390_gdbarch_init): Update.
2079 * sparc-tdep.c (sparc_gdbarch_init): Update.
2080 * sh-tdep.c (sh_gdbarch_init): Update.
2081 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2082 * v850-tdep.c (v850_gdbarch_init): Update.
2083 * avr-tdep.c (avr_gdbarch_init): Update.
2084 * ia64-tdep.c (ia64_gdbarch_init): Update.
2085 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2086 * vax-tdep.c (vax_gdbarch_init): Update.
2087 * alpha-tdep.c (alpha_gdbarch_init): Update.
2088 * arm-tdep.c (arm_gdbarch_init): Update.
2089 * mips-tdep.c (mips_gdbarch_init): Update.
2090 * i386-tdep.c (i386_gdbarch_init): Update.
2092 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2094 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2095 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2097 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2099 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2102 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2104 * infrun.c (handle_inferior_event): Move a comment outside of a
2105 function call, in order to avoid indent reformatting this part
2106 of the code in an unreadable way.
2108 2002-08-23 Grace Sainsbury <graces@redhat.com>
2110 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2111 when breakpoints fail. Move general breakpoint error messages to
2113 * breakpoint.c (insert_breakpoints): Change warnings when
2114 breakpoints are nto inserted to specify the type. Remove call to
2115 memory_error when hardware breakpoints can't be inserted. Remove
2116 multiple calls to warning so all messages are sent to the user at
2118 (delete_breakpoints): Make insert error messsages more explicit.
2120 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2122 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2123 gdbserver/ChangeLog.
2125 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2127 * i386-tdep.c: Include "objfiles.h".
2128 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2129 skip_trampoline_code.
2130 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2131 (CPLUS_MARKER): Define to '.'.
2133 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2135 (linux_corefile_thread_callback): Increase args->num_notes.
2136 (linux_make_note_section): Initialize thread_args.num_notes, and
2137 use it to determine whether notes for any threads were created.
2139 2002-08-23 Donn Terry <donnte@microsoft.com>
2141 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2142 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2144 (write_with_trace): Conditionalize out the switch branch handling
2145 PCSHOLD if the corresponding macro is not defined. Likewise for
2146 PRSABORT and PRSTOP.
2147 This change will be needed by the Interix port.
2149 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2151 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2152 write_register wherever possible instead of manipulating the
2153 register bytes directly.
2154 Assign VALUE_CONTENTS to a variable and use that.
2155 The GPR numbers are now dependent on the architecture.
2157 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2159 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2161 (skip_prologue): Add support for BookE/e500 instructions.
2162 (e500_extract_return_value): New function.
2163 (frame_get_saved_regs): Add support for saving ev registers and
2165 (e500_store_return_value): New function.
2166 (rs6000_gdbarch_init): Move up default intializations of
2167 deprecated_extract_return_value and store_return_value. Overwrite
2168 init of store_return_value with e500 specific version.
2169 Set extract_return_value for e500.
2171 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2173 * blockframe.c (generic_call_dummy_register_unwind): Use
2174 regcache_cooked_read to catch cases in which the variable is
2175 stored in a pseudo register.
2177 2002-08-22 Andrew Cagney <cagney@redhat.com>
2179 * NEWS: Mention that the i960 has been made obsolete.
2180 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2182 (remote-nrom.o): Obsolete target.
2183 (remote-nindy.o, i960-tdep.o): Ditto.
2184 * remote-nrom.c: Make file obsolete.
2185 * remote-nindy.c, remote-vx960.c: Ditto.
2186 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2187 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2188 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2189 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2190 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2191 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2192 i960-*-vxworks* obsolete.
2193 * MAINTAINERS: Note that the i960 is obsolete.
2195 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2197 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2198 detach to allow reinitialization.
2200 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2202 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2205 2002-08-22 Jim Blandy <jimb@redhat.com>
2207 * coffread.c (coff_symfile_read): Don't try to read the line
2208 number table from disk if the image file doesn't have a symbol
2209 table; we'll never actually look at the info anyway, and Windows
2210 ships DLL's with bogus file offsets for the line number data.
2212 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2214 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2217 2002-08-21 Michael Snyder <msnyder@redhat.com>
2219 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2220 (MSYMBOL_SIZE): Replace macro with function.
2221 (DEFAULT_MIPS_TYPE): Delete unused macro.
2222 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2223 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2225 2002-08-21 Jim Blandy <jimb@redhat.com>
2227 * valops.c (value_cast): Simplify and correct logic for doing a
2228 static cast from a pointer to a base class to a pointer to a
2231 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2233 * infcmd.c (default_print_registers_info): Replace
2235 (registers_info): Use gdbarch_print_registers_info instead of
2237 * inferior.h (default_print_registers_info): Replace
2239 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2240 (DO_REGISTERS_INFO): Change to a predicate function.
2241 * gdbarch.h, gdbarch.c: Regenerate.
2243 2002-08-21 Keith Seitz <keiths@redhat.com>
2245 * gdb-events.sh: Add target-changed event.
2246 * gdb-events.c: Regenerated.
2247 * gdb-events.c: Regenerated.
2248 * valops.c (value_assign): Add target-changed event notification
2249 to inlval_register, lval_memory, and lval_reg_frame_relative.
2251 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2253 * NEWS: Add an entry regarding the improvement of the next/step
2254 operation on Alpha Tru64 multi-processor machines.
2256 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2258 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2260 * Makefile.in: Update all _h macro definitions.
2261 * Makefile.in (install-gdbtk): Move to install section.
2262 (rdi-share/libangsd.a): Move to end of file.
2264 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2266 * frame.c (frame_register_unwind): When a register, set addrp to
2267 the register's byte.
2269 2002-08-20 Michael Snyder <msnyder@redhat.com>
2271 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2272 used locally, so move them from the target machine header to here.
2273 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2274 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2276 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2278 2002-08-20 Andrew Cagney <cagney@redhat.com>
2280 * NEWS: Mention that the Apollo line was made obsolete.
2281 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2282 m68*-hp-hpux* obsolete.
2283 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2284 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2285 * buildsym.c (make_blockvector): Make static.
2286 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2287 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2288 (ALLDEPFILES): Remove dstread.c.
2289 (dstread.o): Obsolete make rule.
2290 * dstread.c: Makefile obsolete.
2292 * config/m68k/hp300hpux.mt: Ditto.
2293 * config/m68k/hp300hpux.mh: Ditto.
2294 * config/m68k/hp300bsd.mt: Ditto.
2295 * config/m68k/hp300bsd.mh: Ditto.
2296 * config/m68k/apollo68b.mt: Ditto.
2297 * config/m68k/apollo68v.mh: Ditto.
2298 * config/m68k/apollo68b.mh: Ditto.
2300 2002-08-20 Michael Snyder <msnyder@redhat.com>
2302 * mips-tdep.c (mips_in_return_stub): Make static.
2303 (mips_gdbarch_init): Set in_solib_return_trampoline.
2304 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2306 2002-08-20 Michael Snyder <msnyder@redhat.com>
2308 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2309 * gdbarch.c, gdbarch.h: Regenerate.
2310 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2312 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2314 2002-08-20 Michael Snyder <msnyder@redhat.com>
2316 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2317 (mips_gdbarch_init): Set skip_trampoline_code,
2318 in_solib_call_trampoline.
2319 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2320 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2322 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2324 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2326 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2327 vector type for ev registers.
2328 (e500_pseudo_register_read): New function.
2329 (e500_pseudo_register_write): New function.
2330 (e500_dwarf2_reg_to_regnum): New function.
2331 (PPC_UISA_NOFP_SPRS): New macro.
2332 (PPC_EV_REGS): New macro.
2333 (PPC_GPRS_PSEUDO_REGS): New macro.
2334 (registers_e500): New register set for e500.
2335 (variants): Add e500 variant.
2336 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2337 before setting architectural dependent variations. Initialize ev
2338 registers numbers. Add case for e500 architecture. Set the
2339 number of pseudo registers.
2341 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2343 * rs6000-tdep.c: Clean up comments.
2345 2002-08-20 Andrew Cagney <cagney@redhat.com>
2347 * h8300-tdep.c: Re-indent file.
2349 2002-08-20 Jim Blandy <jimb@redhat.com>
2351 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2354 2002-08-20 Keith Seitz <keiths@redhat.com>
2356 * breakpoints.c (watch_command_1): Use internal breakpoint
2357 when setting a watchpoint_scope breakpoint.
2359 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2361 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2362 (build_builtin_type_vec64i): Ditto.
2363 (build_builtin_type_vec128): Ditto.
2364 (build_builtin_type_vec128i): Ditto.
2366 2002-08-19 Michael Snyder <msnyder@redhat.com>
2368 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2369 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2370 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2371 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2372 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2373 CALL_DUMMY_ADDRESS): Delete.
2374 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2375 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2376 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2377 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2378 push_return_address.
2379 (mips_register_raw_size, mips_eabi_use_struct_convention,
2380 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2381 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2382 mips_init_extra_frame_info, mips_eabi_push_arguments,
2383 mips_n32n64_push_arguments, mips_push_return_address,
2384 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2385 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2387 2002-08-19 Michael Snyder <msnyder@redhat.com>
2389 * mips-tdep.c (mips_frame_num_args): New function.
2390 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2391 frame_saved_pc, frame_args_address, frame_locals_address,
2392 frame_num_args, and frame_args_skip.
2393 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2394 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2395 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2396 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2398 2002-08-20 Michael Snyder <msnyder@redhat.com>
2400 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2401 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2402 * mips-tdep.c (mips_store_struct_return): New function.
2403 (mips_extract_struct_value_address): New function.
2404 (mips_gdbarch_init): Set store_struct_return and
2405 extract_struct_value_address.
2407 2002-08-20 David Carlton <carlton@math.stanford.edu>
2409 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2410 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2411 (read_file_scope): Check that line_header is nonzero before
2412 decoding macro information.
2414 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2416 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2417 flag the general-purpose registers as floating-point on targets
2418 that don't support the floating-point registers.
2420 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2422 * rs6000-tdep.c (altivec_register_p): Delete.
2423 (rs6000_do_altivec_registers): Delete.
2424 (rs6000_altivec_registers_info): Delete.
2425 (rs6000_do_registers_info): Delete.
2426 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2427 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2429 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2431 * infcmd.c (do_registers_info): Print vector registers in hex
2433 (print_vector_info): Check that printing registers
2435 (print_float_info): Ditto.
2437 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2439 * mips-tdep.c (mips_gdbarch_init): Update.
2440 (mips_o32_extract_return_value): Rewrite.
2441 (mips_o32_store_return_value): Rewrite.
2442 (mips_o32_xfer_return_value): New function.
2443 (mips_xfer_register): Tweak debug print message. Allow for
2444 buf_offset when dumping the value transfered.
2446 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2448 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2449 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2450 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2451 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2452 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2454 2002-08-14 Michael Snyder <msnyder@redhat.com>
2456 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2458 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2460 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2462 (P): New macro to define a register as a pseudo register.
2463 (R, R4, R8, R16, FR32, R64, R0): Updated.
2464 (struct variant): Add new fields for number of pseudo registers
2465 and number of total registers.
2466 (tot_num_registers): New macro replacing....
2467 (num_registers): ...deleted macro.
2468 (num_registers): New function.
2469 (num_pseudo_registers): New function.
2470 (variants): Update all variants to intialize new fields correctly.
2471 Postpone initialization of number of pseudo regs and real regs.
2472 (init_variants): New function.
2473 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2476 2002-08-19 David Carlton <carlton@math.stanford.edu>
2478 * valops.c (search_struct_field): Change error message to treat
2479 return value of 0 from value_static_field as meaning that field is
2481 (value_struct_elt_for_reference): Ditto.
2482 * values.c (value_static_field): Treat an unresolved location the
2483 same as a nonexistent symbol. Fix PR gdb/635.
2484 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2485 enclosed. Fix PR gdb/574.
2486 * MAINTAINERS: Add self to Write After Approval list.
2488 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2490 * mips-tdep.c (mips_xfer_register): New function.
2491 (mips_n32n64_extract_return_value): Rewrite.
2492 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2493 instead of deprecated_extract_return_value.
2495 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2497 * rs6000-tdep.c (TDEP): Delete macro.
2498 (branch_dest): Replace use of TDEP macro with its body.
2499 (rs6000_pop_frame): Ditto.
2500 (rs6000_push_arguments): Ditto.
2501 (rs6000_skip_trampoline_code): Ditto.
2502 (rs6000_frame_saved_pc): Ditto.
2503 (rs6000_frame_chain): Ditto.
2504 (rs6000_register_name): Ditto.
2505 (rs6000_register_byte): Ditto.
2506 (rs6000_register_raw_size): Ditto.
2507 (rs6000_register_virtual_type): Ditto.
2508 (rs6000_register_convertible): Ditto.
2509 (rs6000_convert_from_func_ptr_addr): Ditto.
2511 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2513 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2515 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2516 MIPS_LINUX_JB_ELEMENT_SIZE.
2517 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2518 for MAX_REGISTER_RAW_SIZE arrays.
2519 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2520 MIPS_LINUX_JB_ELEMENT_SIZE.
2522 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2524 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2526 2002-08-19 Aidan Skinner <aidan@velvet.net>
2528 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2529 ada-valprint.c ada-tasks.c.
2530 (YYFILES): Add ada-exp.y.
2531 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2532 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2533 (ada-exp.tab.o): New target.
2535 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2537 * regcache.c (regcache_xfer_part): New function.
2538 (regcache_raw_read_part): New function.
2539 (regcache_raw_write_part): New function.
2540 (regcache_cooked_read_part): New function.
2541 (regcache_cooked_write_part): New function.
2542 * regcache.h (regcache_raw_read_part): Declare.
2543 (regcache_raw_write_part): Declare.
2544 (regcache_cooked_read_part): Declare.
2545 (regcache_cooked_write_part): Declare.
2547 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2549 * remote.c (remote_open_1): Add async_p.
2550 (remote_async_open_1): Delete.
2551 (open_remote_target): Delete.
2552 (remote_open, extended_remote_open): Update calls to remote_open_1.
2553 (remote_async_open, extended_remote_async_open): Call
2554 remote_open_1 instead of remote_async_open_1.
2556 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2558 * blockframe.c: Fix a few coding standard violations.
2560 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2562 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2564 * config/i386/tm-i386sco5.h: ... here. File removed.
2565 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2567 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2568 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2569 (TM_FILE): Set to tm-i386.h.
2570 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2571 * config/i386/tm-i386v.h: Remove file.
2572 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2573 instead of "i386/tm-i386v.h".
2574 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2575 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2577 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2578 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2581 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2583 * config/i386/nm-i386v.h: Add protection against
2585 (i386_register_u_addr): Remove prototype.
2586 (register_u_addr): New prototype.
2587 (REGISTER_U_ADDR): Redefine accordingly.
2588 * i386v-nat.c: Improve several comments.
2589 (i386_register_u_addr): Change signature and rename to
2590 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2593 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2595 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2596 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2597 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2598 deprecated_extract_return_value.
2599 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2600 rename mips_o32o64_push_arguments.
2601 (mips_gdbarch_init): Update.
2602 (mips_extract_return_value): Delete.
2603 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2604 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2605 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2606 (mips_n32n64_extract_return_value): Clone
2607 mips_extract_return_value.
2608 (mips_store_return_value): Delete.
2609 (mips_o32_store_return_value): Clone mips_store_return_value.
2610 (mips_o64_store_return_value): Clone mips_store_return_value.
2611 (mips_eabi_store_return_value): Clone mips_store_return_value.
2612 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2614 2002-08-18 Aidan Skinner <aidan@velvet.net>
2616 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2617 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2619 2002-08-18 Aidan Skinner <aidan@velvet.net>
2621 * ada-lang.c: Run through gdb_indent.sh.
2622 * ada-lang.h: Run through gdb_indent.sh.
2623 * ada-tasks.c: Run through gdb_indent.sh.
2624 * ada-typeprint.c: Run through gdb_indent.sh.
2625 * ada-valprint.c: Run through gdb_indent.sh.
2627 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2629 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2632 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2634 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2636 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2637 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2639 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2640 write_register_gen instead of write_register_bytes.
2642 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2643 i[3456]-*-osf1mk* configurations have been made obsolete.
2644 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2645 i[3456]86-*-osf1mk* hosts obsolete.
2646 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2648 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2649 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2650 config/i386/i386m3.mt, config/i386/nm-m3.h,
2651 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2652 config/i386/i386mk.mh, config/i386/i386mk.mt,
2653 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2655 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2656 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2657 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2659 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2661 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2662 (hppa_value_returned_from_stack): Declare.
2663 (hppa_extract_return_value): Declare.
2664 * config/pa/hppa.mt: New file.
2665 * configure.tgt: Recognize hppa*-*-*.
2666 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2668 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2670 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2673 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2675 * top.c (gdb_rl_operate_and_get_next): Make sure
2676 operate-and-get-next functions correctly even when the history
2677 list is completely filled.
2679 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2681 * MAINTAINERS (Target Instruction Set Architectures): Rename
2682 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2683 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2684 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2685 already listed under Host/Native.
2687 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2688 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2691 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2693 * config/ia64/ia64.mt: New file.
2694 * config/alpha/alpha.mt: New file.
2695 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2696 ia64-linux-gnu. Mention that ia64-elf is broken.
2697 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2699 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2701 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2702 generic_func_frame_valid instead of func_frame_valid.
2704 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2706 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2707 procfs appears to be broken when debugging on multi-processor
2708 machines. So enable software single stepping in order to avoid
2709 using the procfs interface to do next/step operations, using
2710 internal breakpoints instead.
2712 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2713 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2714 make this pc address equal to the value it would have if the
2715 system stepping capability was used. Also set a new flag used
2716 to ensure that we don't readjust the PC one more time later.
2718 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2719 address by DECR_PC_AFTER_BREAK when software single step is
2720 in use for this architecture, as this has already been taken
2721 care of in handle_inferior_event().
2723 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2725 * infrun.c (handle_inferior_event): Minor reformatting, to make
2726 a rather long condition expression easier to read.
2728 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2730 * Makefile.in (gdbtk.o): Move to end of file.
2731 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2732 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2733 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2734 (gdbtk-wrapper.o, gdbres.o): Ditto.
2736 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2738 * Makefile.in (copying.o): Separate out compile rule.
2739 (hpux-thread.o, procfs.o, signals.o): Ditto.
2740 (v850ice.o, z8k-tdep.o): Ditto.
2741 (tui-file.o): Move to TUI section.
2742 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2743 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2745 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2747 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2748 skip_trampoline_code, for better namespace-proofing.
2750 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2752 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2754 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2756 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2758 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2759 signal, check whether we hit a breakpoint before checking for a
2760 single step breakpoint. Otherwise, GDB fails to notice that a
2761 breakpoint has been hit when stepping onto a breakpoint.
2763 2002-08-16 Keith Seitz <keiths@redhat.com>
2765 * gdb-events.sh (clear_gdb_event_hooks): New function.
2766 * gdb-events.c: Regenerate.
2767 * gdb-events.h: Regenerate.
2769 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2771 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2772 not_a_sw_breakpoint.
2773 * breakpoint.h (bpstat_stop_status): Add parameter names.
2775 2002-08-16 Grace Sainsbury <graces@redhat.com>
2777 * remote.c (remote_insert_hw_breakpoint)
2778 (remote_remove_hw_breakpoint): Fix calculation of length field
2781 2002-08-15 Michael Snyder <msnyder@redhat.com>
2783 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2784 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2785 (supply_fpregset): Ditto.
2787 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2788 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2789 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2790 (TARGET_READ_SP): Delete.
2791 (DO_REGISTERS_INFO): Delete.
2792 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2794 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2795 from macros to functions.
2797 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2798 (mips_register_convertible, mips_register_convert_to_virtual,
2799 mips_register_convert_to_raw): Make static.
2800 (mips_read_sp): New function.
2801 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2802 (mips_do_registers_info): Make static.
2803 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2804 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2805 (mips_register_convert_from_type, mips_register_convert_to_type):
2807 (mips_gdbarch_init): Set up function_start_offset,
2808 register_virtual_size, pc_in_sigtramp.
2810 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2812 * infcmd.c (vector_info): New function.
2813 (_initialize_infcmd): Add command "info vector".
2814 (print_vector_info): New function.
2816 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2817 * gdbarch.h, gdbarch.c: Regenerate.
2819 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2821 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2822 ``print_all''. Only print vector registers when ``print_all''.
2824 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2826 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2827 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2829 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2830 Add `args' parameter.
2831 * gdbarch.h, gdbarch.c: Regenerate.
2833 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2835 * infcmd.c (float_info): Call print_float_info.
2836 (print_float_info): New function. By default, print the
2837 floating-point registers.
2839 * arch-utils.h (default_print_float_info): Delete declaration.
2840 * arch-utils.c (default_print_float_info): Delete function.
2842 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2844 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2847 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2850 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2851 * configure.host: Make i[3456]86-*-aix host obsolete.
2852 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2853 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2854 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2855 config/i386/xm-i386aix.h: Make files obsolete.
2856 * i386aix-nat.c: Make file obsolete.
2857 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2858 (i386aix-nat.o): Make target obsolete.
2860 * config/i386/nm-gnu.h: Removed.
2861 * config/i386/nm-i386gnu.h: New file.
2862 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2863 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2865 * config/i386/tm-i386gnu.h: ... here. Removed.
2866 * config/i386/xm-i386gnu.h: Removed.
2867 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2868 (NAT_FILE): Set to nm-i386gnu.h.
2869 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2870 * i386-tdep.c: New file.
2871 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2872 (i386gnu-tdep.o): Specify dependencies.
2874 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2876 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2877 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2878 Adjust a few comments to reflect reality a bit closer.
2879 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2880 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2881 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2882 target_insert_watchpoint, target_remove_watchpoint):
2884 * config/i386/nm-i386sco5.h: ... here.
2885 (kernel_u_size): Add prototype. Improve a few comments and add
2886 protection against multiple inclusion.
2888 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2891 * uw-thread.c (SP_ARG0): Define if not already defined.
2892 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2894 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2896 * config/i386/tm-i386.h: Don't include "regcache.h".
2898 * i387-tdep.h (i387_print_float_info): New prototype.
2899 * i387-tdep.c (print_i387_value, print_i387_ext,
2900 print_i387_status_word, print_i387_control_word): Add `struct
2901 ui_file *' argument and use it for output.
2902 (i387_print_float_info): Renamed from i387_float_info. Add
2903 `struct gdbarch *' and `struct ui_file *' arguments and use the
2905 * i386-tdep.c: Include "i387-tdep.h".
2906 (i386_gdbarch_init): Set print_float_info.
2907 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2908 (FLOAT_INFO): Remove define.
2910 2002-08-13 Michael Snyder <msnyder@redhat.com>
2912 * mips-tdep.c (mips_push_arguments): Rename to
2913 mips_eabi_push_arguments, and tune for EABI.
2914 (MIPS_REGS_HAVE_HOME_P): Delete.
2915 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2916 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2917 Delete references to mips_regs_have_home_p.
2919 2002-08-14 Keith Seitz <keiths@redhat.com>
2921 * Makefile.in (install-gdbtk): Create insight plugin directory.
2922 Install plugins.tcl file.
2924 2002-08-14 Keith Seitz <keiths@redhat.com>
2926 * configure.in: Move SUBDIRS to near top of the file so that
2927 --enable options may add things to it.
2928 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2929 * configure: Regenerate.
2931 2002-08-13 Michael Snyder <msnyder@redhat.com>
2933 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2934 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2935 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2937 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2939 * vax-tdep.c (vax_get_saved_register): Delete function.
2940 (vax_gdbarch_init): Update.
2941 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2942 (ns32k_gdbarch_init): Update.
2943 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2944 (alpha_gdbarch_init): Update.
2946 2002-08-13 Andrew Cagney <cagney@redhat.com>
2948 * regcache.c (init_regcache_descr): Overallocate the
2949 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2950 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2952 (set_register_cached): Add range checking assertions. Use
2955 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2957 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2958 numbers for MMX registers.
2960 2002-08-13 Andrew Cagney <cagney@redhat.com>
2962 * i386-tdep.c (i386_gdbarch_init): Use
2963 generic_unwind_get_saved_register.
2965 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2967 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2968 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2970 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2971 Delete. Add comment regarding this now-deleted target method.
2973 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2975 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2976 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2977 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2978 real PC and the page number (if it's within the memory bank window).
2979 (m68hc11_pseudo_register_write): Likewise when saving.
2980 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2981 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2982 (m68hc11_register_raw_size): And use 32-bit for it.
2983 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2984 16K memory bank is used by the prog; also use the virtual pc.
2986 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2988 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2989 (m68hc11_gdbarch_init): Install it in gdbarch.
2990 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2991 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2992 (MSYMBOL_SIZE): New for documentation.
2993 (insn_return_kind): Enum to specify how a function returns.
2994 (frame_extra_info): Cleanup and record the return mode.
2995 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2996 register in address computation.
2997 (m68hc11_get_return_insn): New to obtain the return instruction used
2999 (m68hc11_frame_init_saved_regs): Take into account the return
3000 instruction used by the function for far and interrupt functions.
3001 (m68hc11_init_extra_frame_info): Take into account page register.
3002 (m68hc11_frame_args_address): Adjust according to the return mode.
3003 (show_regs): Print page register only when it's used.
3005 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3007 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3008 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3009 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3011 (m68hc11_register_raw_size): Likewise.
3013 2002-08-13 Andrew Cagney <cagney@redhat.com>
3015 * i386-tdep.c (i386_register_name): Handle mmx registers.
3016 (mmx_regnum_p): New function.
3017 (i386_mmx_names): New array.
3018 (mmx_num_regs): New variable.
3019 (i386_pseudo_register_read): New function.
3020 (i386_pseudo_register_write): New function.
3021 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3023 * regcache.c (regcache_raw_read_unsigned): New function.
3024 (regcache_raw_read_signed): New function.
3025 * regcache.h (regcache_raw_read_unsigned): Declare.
3026 (regcache_raw_read_signed): Declare.
3028 2002-08-13 Andrew Cagney <cagney@redhat.com>
3030 * regcache.c (regcache_raw_read_as_address): Delete function.
3031 (regcache_cooked_read_signed): New function.
3032 (regcache_cooked_read_unsigned): New function.
3033 * regcache.h (regcache_cooked_read_signed): Declare.
3034 (regcache_cooked_read_unsigned): Declare.
3035 (regcache_raw_read_as_address): Delete declaration.
3037 * blockframe.c (generic_read_register_dummy): Use
3038 regcache_cooked_read_unsigned.
3039 * i386-tdep.c (i386_extract_struct_value_address): Use
3040 regcache_cooked_read_unsigned.
3042 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3044 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3045 double sizes according to ELF ABI flags.
3046 (gdbarch_tdep): Record elf_flags.
3048 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3050 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3051 (m6812_prolog): They can appear in 68HC12 function prologue.
3052 (m68hc11_frame_chain): Cleanup.
3054 2002-08-12 Andrew Cagney <cagney@redhat.com>
3056 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3058 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3059 (i386_linux_register_raw_size): Delete function.
3060 (i386_linux_init_abi): Update.
3061 * i386-tdep.c (i386_register_raw_size): Delete function.
3062 (i386_register_byte): Delete function.
3063 (i386_gdbarch_init): Update.
3064 (i386_register_size): Delete array.
3065 (i386_register_offset): Delete array.
3067 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3068 (REGISTER_RAW_SIZE): Delete macro.
3069 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3070 (REGISTER_BYTE): Delete macro.
3072 2002-08-11 Aidan Skinner <aidan@velvet.net>
3074 * ada-lang.c (ada_lookup_partial_symbol)
3075 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3076 prototype names so that grep ^func works properly.
3078 * ada-lang.c (ada_array_element_type)
3079 (ada_lookup_partial_symbol): Fix typos in parameter list.
3081 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3082 Fix prototype names so that grep ^func works properly.
3084 2002-08-10 Andrew Cagney <cagney@redhat.com>
3085 Elena Zannoni <ezannoni@redhat.com>
3086 Martin M. Hunt <hunt@redhat.com>
3088 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3089 (build_builtin_type_vec128i): Set the vector bit.
3090 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3091 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3092 (build_builtin_type_vec64): New function.
3093 (build_builtin_type_vec64i): New function.
3094 (build_gdbtypes): Initialize builtin_type_vec64 and
3095 builtin_type_vec64i.
3097 2002-08-09 Andrew Cagney <cagney@redhat.com>
3099 * regcache.c (regcache_dump): Compare the register offset
3101 * arch-utils.c (generic_register_byte): New function.
3102 * arch-utils.h (generic_register_byte): Declare.
3103 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3104 * gdbarch.h, gdbarch.c: Regenerate.
3106 2002-08-09 Andrew Cagney <cagney@redhat.com>
3108 * regcache.c: Include "gdbcmd.h"
3109 (_initialize_regcache): Add commands "maintenance print
3110 registers", "maintenance print raw-registers" and "maintenance
3111 print cooked-registers".
3112 (enum regcache_dump_what): Define.
3113 (dump_endian_bytes): New function.
3114 (regcache_dump): New function.
3115 (regcache_print): New function.
3116 (maintenance_print_registers): New function.
3117 (maintenance_print_raw_registers): New function.
3118 (maintenance_print_cooked_registers): New function.
3119 * Makefile.in (regcache.o): Update dependencies.
3121 2002-08-09 Michael Snyder <msnyder@redhat.com>
3123 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3124 (mips_push_arguments): Correct some comments. Use paddr_nz
3125 for printing addresses in debug output. Replace static
3126 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3127 (mips_n32n64_push_arguments): New function, cloned from
3128 mips_push_arguments and tuned for the n32/n64 ABI.
3129 (mips_push_register): Buffer needs dynamic allocation.
3130 (mips_print_register): Ditto.
3131 (do_gp_register_row): Ditto.
3132 (mips_store_return_value): Ditto.
3133 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3135 2002-08-09 Don Howard <dhoward@redhat.com>
3137 * memattr.c (mem_info_command): Print special case of upper bound
3138 as max CORE_ADDR + 1.
3140 2002-08-08 Michael Snyder <msnyder@redhat.com>
3142 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3143 returns structs by ref if they're too big to fit in two registers.
3145 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3147 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3149 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3150 mips_find_saved_regs().
3151 (mips_pop_frame): Likewise.
3153 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3155 * blockframe.c (frame_saved_regs_register_unwind): Revise
3156 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3159 2002-08-09 Grace Sainsbury <graces@redhat.com>
3161 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3162 T-packets; the 'a' is not taken as a register number.
3163 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3164 (remote_stopped_data_address): New functions; add to target
3166 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3167 prototypes to match other implementations of this
3168 function. replace integer argument with pointer -- the length
3169 field in the Z-packet is the length of what is pointed to or 1 if
3170 pointer is null. Add to target vector.
3171 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3175 * remote.c (remote_wait): Add support to extract optional
3176 watchpoint information from T-packet. Ignore unrecognized
3177 optional info in T-packet.
3178 (remote_async_wait): Ditto.
3180 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3182 * cli/cli-dump.c: Change fopen modes to use binary open modes
3183 as defined in include/fopen-bin.h throughout.
3185 2002-08-08 Michael Snyder <msnyder@redhat.com>
3187 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3189 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3191 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3192 assertion failure by returning early after a warning.
3194 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3196 * mips-tdep.c (mips_find_saved_regs): Make static.
3197 (mips_frame_init_saved_regs): New function.
3198 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3199 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3200 (mips_find_saved_regs): Delete declaration.
3202 2002-08-08 Grace Sainsbury <graces@redhat.com>
3204 * remote.c (remote_wait, remote_async_wait): Change
3205 thread_num from int to ULONGEST.
3206 (unpack_varlen_hex): Change result parameter from
3207 int * to ULONGEST *.
3209 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3211 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3212 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3214 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3216 2002-08-08 Andrew Cagney <cagney@redhat.com>
3218 * gcore.c (override_derive_stack_segment): Delete variable.
3219 (preempt_derive_stack_segment): Delete function.
3220 (derive_stack_segment): Delete function.
3221 (default_derive_stack_segment): Renamed to derive_stack_segment.
3222 (override_derive_heap_segment): Delete variable.
3223 (preempt_derive_heap_segment): Delete function.
3224 (derive_heap_segment): Delete function.
3225 (default_derive_heap_segment): Rename to derive_heap_segment.
3227 2002-08-06 Michael Snyder <msnyder@redhat.com>
3229 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3230 * mips-tdep.c (mips_EABI_use_struct_convention,
3231 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3232 New functions. (mips_use_struct_convention): Delete.
3233 (mips_gdbarch_init): set use_gdbarch_convention.
3235 2002-08-06 Michael Snyder <msnyder@redhat.com>
3237 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3238 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3239 mips_o32_reg_struct_has_addr): New functions.
3240 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3242 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3244 * regcache.c (pseudo_register): Delete function.
3245 (fetch_register): Delete function.
3246 (store_register): Delete function.
3247 (regcache_raw_read, legacy_read_register_gen): Use
3248 target_fetch_registers instead of fetch_register.
3249 (legacy_write_register_gen, regcache_raw_write): Use
3250 target_store_register instead of store_register.
3251 (write_register_bytes): Ditto.
3253 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3254 (STORE_PSEUDO_REGISTER): Delete.
3255 * gdbarch.h, gdbarch.c: Regenerate.
3257 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3259 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3260 write dump file binary.
3262 2002-08-05 Michael Snyder <msnyder@redhat.com>
3264 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3265 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3266 (mips_gdbarch_init): Set N32 target to be mips64.
3268 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3270 * frame.c (find_saved_register): Break out of loop once saved
3271 register address is found. Don't mention sparc in loop comment
3274 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3276 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3277 mips_default_saved_regsize to 8.
3279 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3281 * gcore.c: Do not include <sys/procfs.h>.
3282 * Makefile.in (gcore.o): Update dependencies.
3284 2002-08-06 Andrew Cagney <cagney@redhat.com>
3286 * configure.tgt: Make arc-*-* obsolete.
3287 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3288 * MAINTAINERS: Make arc-elf obsolete.
3289 * arc-tdep.c: Make file obsolete.
3290 * config/arc/arc.mt: Ditto.
3291 * config/arc/tm-arc.h: Ditto.
3293 2002-08-05 Theodore A. Roth <troth@verinet.com>
3295 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3297 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3299 * mcore-tdep.c (mcore_gdbarch_init): Use
3300 generic_unwind_get_saved_register instead of
3301 generic_get_saved_register.
3302 * v850-tdep.c (v850_gdbarch_init): Ditto.
3303 * frv-tdep.c (frv_gdbarch_init): Ditto.
3304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3305 * s390-tdep.c (s390_gdbarch_init): Ditto.
3306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3307 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3308 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3310 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3312 * objfiles.h: Add missing #include "symfile.h"
3314 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3316 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3318 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3319 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3322 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3324 * NEWS: Cleanup and nitpick.
3326 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3328 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3330 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3332 * Makefile.in (gdbtk-bp.o): Update dependencies.
3333 (gdbtk-register.o): Ditto.
3334 (gdbtk-varobj.o): Ditto.
3336 2002-08-03 Andrew Cagney <cagney@redhat.com>
3338 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3339 m68hc11_fetch_pseudo_register.
3340 (m68hc11_pseudo_register_write): Replace
3341 m68hc11_store_pseudo_register.
3342 (m68hc11_gdbarch_init): Update.
3344 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3346 * gdbarch.sh: Include "gdb_string.h".
3347 * gdbarch.c: Regenerate.
3349 * regcache.c: Include "gdb_string.h".
3350 * ax-general.c: Ditto.
3352 * std-regs.c: Ditto.
3353 * fbsd-proc.c: Ditto.
3356 * Makefile.in (regcache.o): Update dependencies.
3357 (thread.o, gdbarch.o): Ditto.
3358 (ax-general.o, gdbarch.o): Ditto.
3359 (varobj.o, std-regs.o): Ditto.
3360 (fbsd-proc.o): Specify dependencies.
3362 2002-08-02 Andrew Cagney <cagney@redhat.com>
3364 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3366 (regcache_cooked_write): Ditto.
3368 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3370 * regcache.c (regcache_cooked_read): New function.
3371 (regcache_cooked_write): New function.
3372 (read_register_gen): Rewrite using regcache_cooked_read.
3373 (write_register_gen): Rewrite using regcache_cooked_write.
3375 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3378 2002-08-02 Andrew Cagney <cagney@redhat.com>
3380 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3381 Replace the architecture methods register_read and register_write.
3382 * gdbarch.h, gdbarch.c: Regenerate.
3383 * regcache.c (init_regcache_descr): Update.
3384 (read_register_gen): Update.
3385 (write_register_gen): Update.
3386 (supply_register): Update comment.
3388 * sh-tdep.c (sh_gdbarch_init): Update.
3389 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3390 `regcache' and `gdbarch' parameters. Make `buffer' a void
3391 pointer. Update code.
3392 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3393 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3394 void pointer. Update code.
3395 (sh64_register_write): Delete.
3396 (sh4_register_read): Delete.
3397 (sh64_register_read): Delete.
3398 (sh4_register_write): Delete.
3399 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3400 void pointer, `to' parameter a void pointer.
3401 (sh_sh64_register_convert_to_raw): Ditto.
3403 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3405 * mips-tdep.c (mips_register_virtual_type): Use architecture
3406 invariant return values.
3408 2002-08-01 Andrew Cagney <cagney@redhat.com>
3410 * linux-proc.c: Include "gdb_string.h".
3411 * Makefile.in (linux-proc.o): Update dependency list.
3413 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3415 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3418 2002-08-01 Grace Sainsbury <graces@redhat.com>
3420 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3421 to_insert_watchpoint, to_remove_watchpoint,
3422 to_stopped_by_watchpoint, to_stopped_data_address,
3423 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3424 target vecctor. Define their corresponding macros so they call
3427 * target.c: Add default and debug versions of for
3428 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3429 to_insert_watchpoint, to_remove_watchpoint,
3430 to_stopped_by_watchpoint, to_stopped_data_address,
3431 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3433 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3435 * mips-tdep.c (mips_register_virtual_type): New function.
3436 (mips_gdbarch_init): Register mips_register_virtual_type()
3437 with gdbarch machinery.
3438 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3439 this file instead of tm-bigmips.h.
3440 (MIPS_REGSIZE): Delete this macro.
3441 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3442 multiarch version in mips-tdep.c will be found.
3444 2002-08-01 Andrew Cagney <cagney@redhat.com>
3446 * NEWS: Menion that CHILL has been made obsolete.
3448 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3449 * stabsread.c (read_range_type): Ditto.
3450 * gdbtypes.h: Ditto.
3451 * language.c (binop_type_check): Ditto.
3452 (binop_result_type): Ditto.
3453 (integral_type): Ditto.
3454 (character_type): Ditto.
3455 (string_type): Ditto.
3456 (boolean_type): Ditto.
3457 (structured_type): Ditto.
3458 (lang_bool_type): Ditto.
3459 (binop_type_check): Ditto.
3460 * language.h (_LANG_chill): Ditto.
3461 * dwarfread.c (set_cu_language): Ditto.
3462 * dwarfread.c (CHILL_PRODUCER): Ditto.
3463 * dwarfread.c (handle_producer): Ditto.
3464 * expression.h (enum exp_opcode): Ditto.
3465 * eval.c: Ditto for comments.
3466 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3467 * expprint.c (print_subexp): Ditto.
3468 (print_subexp): Ditto.
3469 * valops.c (value_cast): Ditto.
3470 (search_struct_field): Ditto.
3471 * value.h (COERCE_VARYING_ARRAY): Ditto.
3472 * symfile.c (init_filename_language_table): Ditto.
3473 (add_psymbol_with_dem_name_to_list): Ditto.
3474 * valarith.c (value_binop): Ditto.
3476 * valops.c (value_slice): Ditto.
3477 * symtab.h (union language_specific): Ditto.
3478 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3479 (SYMBOL_DEMANGLED_NAME): Ditto.
3480 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3481 * defs.h (enum language): Ditto.
3482 * symtab.c (got_symtab): Ditto.
3483 * utils.c (fprintf_symbol_filtered): Ditto.
3485 * ch-typeprint.c: Make file obsolete.
3486 * ch-valprint.c: Make file obsolete.
3487 * ch-lang.h: Make file obsolete.
3488 * ch-exp.c: Make file obsolete.
3489 * ch-lang.c: Make file obsolete.
3491 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3493 (TARGET_FLAGS_TO_PASS): Ditto.
3494 (CHILLFLAGS): Obsolete.
3496 (CHILL_FOR_TARGET): Obsolete.
3497 (CHILL_LIB): Obsolete.
3498 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3500 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3501 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3503 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3506 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3508 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3509 This does not change anything at the moment, but will be helpful
3510 later when full Ada support is integrated.
3512 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3514 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3517 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3519 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3520 and save it in a local variable. Use variable in later test.
3522 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3524 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3525 test. (Thanks to Daniel Jacobowitz.)
3527 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3529 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3530 (mips_abi_strings): Add "n64".
3531 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3533 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3535 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3536 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3538 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3540 * utils.c (host_pointer_to_address, address_to_host_pointer):
3541 Use gdb_assert() instead of explicit call to internal_error().
3543 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3545 * Makefile.in (rs6000-nat.o): Update dependencies.
3547 From Nicholas Duffek:
3548 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3549 (aix-thread.o): New rule.
3550 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3551 * config/powerpc/aix432.mh: New file.
3553 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3555 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3556 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3557 (fetch_core_registers, ppc_linux_supply_gregset)
3558 (ppc_linux_supply_fpregset): New functions.
3559 (ppc_linux_regset_core_fns): New.
3560 (_initialize_ppc_linux_tdep): Call add_core_fns.
3561 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3562 and ppc_linux_supply_gregset.
3563 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3564 (supply_fpregset): Call ppc_linux_supply_fpregset.
3565 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3567 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3569 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3571 * symtab.c (lookup_symbol): Demangle before lowercasing.
3573 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3575 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3577 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3578 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3579 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3580 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3582 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3583 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3584 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3585 (avr-tdep.o, mon960-rom.o): Ditto.
3586 (aout_stabs_gnu_h): Define.
3587 (symtab_h): Remove $(gdb_obstack_h).
3589 2002-07-30 Jim Blandy <jimb@redhat.com>
3591 Patch from David Carlton <carlton@math.stanford.edu>:
3592 * gdbinit.in: Move the `dir' commands that add GDB's own source
3593 directory to the search path to the end, so that the `gdb' source
3594 directory will be searched first.
3596 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3598 * gdb_obstack.h: New file.
3599 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3600 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3601 * objfiles.h: Include "gdb_obstack.h".
3602 * Makefile.in (gdb_obstack_h): Define.
3603 (symtab_h): Add $(gdb_obstack_h).
3604 (objfiles_h): Add $(gdb_obstack_h).
3606 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3607 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3608 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3609 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3610 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3611 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3612 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3613 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3615 * Makefile.in (bcache.o): Update dependencies.
3616 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3617 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3618 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3619 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3620 (stabsread.o, symfile.o, symmisc.o): Ditto.
3621 (symtab.o, typeprint.o, macroexp.o): Ditto.
3622 (macrotab.o, mdebugread.o): Ditto.
3623 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3624 (coff_ecoff_h, aout_aout64_h): Define.
3625 (aout_stabs_gnu_h, libaout_h): Define.
3627 2002-07-29 Andrew Cagney <cagney@redhat.com>
3629 * regcache.c (struct regcache_descr): Rename nr_registers to
3630 nr_cooked_registers. Revise comments describing the structure
3632 (init_regcache_descr): Update.
3633 (init_legacy_regcache_descr): Update.
3634 (read_register_gen, write_register_gen): When a cooked register in
3635 the raw register range, directly access the value from the raw
3638 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3640 * z8k-tdep.c: Do not include "obstack.h".
3641 * h8300-tdep.c, h8500-tdep.c: Ditto.
3642 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3643 * valprint.c, v850-tdep.c: Ditto.
3644 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3645 * mn10200-tdep.c: Ditto.
3647 * Makefile.in (z8k-tdep.o): Update dependencies.
3648 (m68hc11-tdep.o, valprint.o): Ditto.
3649 (v850-tdep.o, d10v-tdep.o): Ditto.
3650 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3651 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3652 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3653 (sh_opc_h, gdb_sim_sh_h): Define.
3654 (elf_sh_h, elf_bfd_h): Define.
3655 (opcode_m68hc11_h): Define.
3656 (OPCODES_SRC, OPCODES_DIR): define.
3657 (OPCODES): Use $(OPCODES_DIR).
3658 (gdb_sim_d10v_h): Rename sim_d10v_h.
3659 (gdb_sim_arm_h): Rename sim_arm_h.
3661 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3663 * utils.c (host_pointer_to_address, address_to_host_pointer):
3664 Change internal_error() message to indicate function responsible
3667 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3669 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3670 calls to local_hex_string_custom().
3672 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3674 * irix5-nat.c: Move IRIX shared library support from here...
3675 * solib-irix.c: ...to here. Revised substantially to work with
3676 generic solib framework.
3678 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3679 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3680 * mips-irix-tdep.c: New file.
3682 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3683 (mips-irix-tdep.o, solib-irix.o): New rules.
3684 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3686 * config/mips/irix6.mt (TDEPFILES): Likewise.
3687 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3689 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3691 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3692 disabled (via ``#if 0'') includes.
3694 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3696 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3697 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3698 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3699 Add support for the fpscr register.
3700 * rs6000-nat.c (regmap, fetch_inferior_registers)
3701 (store_inferior_registers, fetch_core_registers): Likewise.
3703 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3705 * rs6000-nat.c (language.h): Include.
3706 (special_regs): Delete this array.
3707 (regmap): New function.
3708 (fetch_register, store_register): Use regmap() to map gdb
3709 register numbers to ptrace register numbers. Also, use
3710 outputs from regmap() to make decisions regarding type of
3711 ptrace() call to make. In particular, don't compare against
3712 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3713 (fetch_inferior_registers, store_inferior_registers): Where
3714 possible, obtain register numbers from tdep struct. Don't
3715 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3716 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3717 (LAST_UISA_SP_REGNUM): Delete.
3719 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3721 * rs6000-nat.c (ppc-tdep.h): Include.
3722 (fetch_registers, store_register, fetch_core_registers): Don't
3723 access registers[] directly. Instead, use supply_register() or
3724 regcache_collect() as appropriate.
3725 (find_toc_address): Format hex address with local_hex_string().
3727 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3729 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3732 2002-07-24 Tom Tromey <tromey@redhat.com>
3734 * jv-exp.y: Marked all strings with _().
3735 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3737 (MethodInvocation, CastExpression, parse_number, yyerror,
3738 java_type_from_name, push_expression_name, yylex): Typo fixes.
3740 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3742 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3743 (tee_file_flush, tee_file_write, tee_file_fputs)
3744 (tee_file_isatty): New.
3745 * ui-file.h (tee_file_new): Add prototype.
3747 2002-07-24 Aidan Skinner <aidan@velvet.net>
3749 * ada-lang.c: Change k&r style function definitions to prototyped
3751 * ada-typeprint.c: Change k&r style function definitions to prototyped
3753 * ada-valprint.c: Change k&r style function definitions to prototyped
3756 2002-07-24 Andrew Cagney <cagney@redhat.com>
3758 * README: Remove reference to remote-bug.
3759 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3761 (m88k-nat.o): Delete rule.
3762 (m88k-tdep.o): Delete rule.
3763 (remote-bug.o): Delete rule.
3764 * MAINTAINERS: Mark as obsolete.
3765 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3766 * m88k-tdep.c: Make file obsolete.
3767 * config/m88k/m88k.mh: Ditto.
3768 * config/m88k/delta88v4.mh: Ditto.
3769 * config/m88k/delta88v4.mt: Ditto.
3770 * config/m88k/delta88.mt: Ditto.
3771 * config/m88k/delta88.mh: Ditto.
3772 * remote-bug.c: Ditto.
3773 * config/m88k/tm-delta88.h: Ditto.
3774 * config/m88k/nm-delta88v4.h: Ditto.
3775 * config/m88k/xm-delta88.h: Ditto.
3776 * config/m88k/xm-dgux.h: Ditto.
3777 * config/m88k/tm-m88k.h: Ditto.
3778 * config/m88k/nm-m88k.h: Ditto.
3779 * config/m88k/tm-delta88v4.h: Ditto.
3780 * m88k-nat.c: Ditto.
3781 * cxux-nat.c: Ditto.
3782 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3783 and m88*-*-* obsolete.
3784 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3787 2002-07-24 Andrew Cagney <cagney@redhat.com>
3789 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3790 constant. Same for local pointer variables.
3791 (extract_signed_integer): Ditto.
3792 * defs.h (extract_unsigned_integer): Update.
3793 (extract_signed_integer): Update.
3795 2002-07-24 Andrew Cagney <cagney@redhat.com>
3797 * regcache.c (regcache_raw_write): Change buf parameter to a
3798 constant void pointer.
3799 (regcache_raw_read): Change buf parameter to a void pointer.
3800 (legacy_write_register_gen): Change myaddr parameter a constant
3802 (supply_register): Change val parameter to a const void pointer.
3803 * regcache.h (regcache_raw_write): Update declaration.
3804 (regcache_raw_read): Update declaration.
3805 (supply_register): Update declaration.
3807 2002-07-24 Tom Tromey <tromey@redhat.com>
3809 * defs.h (gdb_readline_wrapper): Declare.
3810 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3811 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3812 * top.c (gdb_readline_wrapper): New function.
3813 (command_line_input): Use it.
3815 2002-07-24 Andrew Cagney <cagney@redhat.com>
3817 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3818 regcache_read and regcache_write.
3819 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3820 * regcache.c: Update.
3821 * sh-tdep.c (sh64_push_arguments): Update comment.
3822 (sh_pseudo_register_read): Update.
3823 (sh_pseudo_register_write): Update.
3824 (sh4_register_read): Update.
3825 (sh4_register_write): Update.
3826 (sh64_pseudo_register_read): Update.
3827 (sh64_pseudo_register_write): Update.
3828 (sh64_register_read): Update.
3829 (sh64_register_write): Update.
3830 * i386-tdep.c (i386_extract_return_value): Update.
3831 (i386_extract_struct_value_address): Update.
3832 (i386_extract_return_value): Update.
3833 * blockframe.c (generic_read_register_dummy): Update.
3834 (generic_call_dummy_register_unwind): Update
3835 * infrun.c (write_inferior_status_register): Update.
3837 2002-07-23 Jim Blandy <jimb@redhat.com>
3839 * parser-defs.h (expression_context_pc): Make this extern.
3840 (Thanks to Michael Snyder.)
3842 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3844 GDB 5.2.1 released from 5.2 branch.
3845 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3846 * README: Update to mention 5.2.1.
3848 2002-07-23 Mark Salter <msalter@redhat.com>
3850 * remote.c (remote_read_bytes): Fix check for error.
3852 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3854 * aix-thread.c (language.h): Include.
3855 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3856 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3857 Print newlines at end of debug messages.
3858 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3859 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3861 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3863 * aix-thread.c (ppc-tdep.h): Include.
3864 (special_register_p): New function.
3865 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3866 (store_regs_user_thread): Use register number information from
3867 gdbarch_tdep struct instead of hardcoded offsets relative to
3868 FIRST_UISA_SP_REGNUM.
3869 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3870 special_register_p() instead of using FPLAST_REGNUM and
3871 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3872 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3873 will be MQ's register number.
3875 2002-07-22 Michael Snyder <msnyder@redhat.com>
3877 * aix-thread.c (ops): Rename to aix_thread_ops.
3878 (base_ops): Rename to base_target.
3879 (ops_attach): Rename to aix_thread_attach.
3880 (ops_detach): Rename to aix_thread_detach.
3881 (ops_resume): Rename to aix_thread_detach.
3882 (ops_wait): Rename to aix_thread_wait.
3883 (ops_kill): Rename to aix_thread_kill.
3884 (init_ops): Rename to init_aix_thread_ops.
3885 (ops_fetch_register): Rename to aix_thread_fetch_register.
3886 (ops_store_register): Rename to aix_thread_store_register.
3887 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3888 (ops_thread_alive): Rename to aix_thread_thread_alive.
3889 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3890 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3891 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3892 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3893 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3894 (store_regs_lib): Rename to store_regs_user_thread.
3895 (store_regs_kern): Rename to store_regs_kernel_thread.
3897 2002-07-22 Michael Snyder <msnyder@redhat.com>
3899 * aix-thread.c (ops_prepare_to_store): Eliminate.
3900 (init_ops): Don't initialize ops.prepare_to_store.
3901 (store_regs_kern): Pre-fetch register buffers from child,
3902 because some registers may not be in the cache. Copy
3903 regs from register cache only if they are cached.
3904 (store_regs_lib): Copy regs from register cache only
3906 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3907 fill_gprs64): Ditto.
3909 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3911 * aix-thread.c (gdb_assert.h): Include.
3912 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3913 register sizes (from register cache) match size of buffer holding
3915 (fill_sprs32): Change parameter types to match those in the ptrace()
3917 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3918 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3920 2002-07-22 Michael Snyder <msnyder@redhat.com>
3922 * aix-thread.c (supply_sprs64): Cosmetic change.
3923 (supply_sprs32): Cosmetic change.
3924 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3925 (fill_sprs64): Use regcache_collect instead of read_register.
3926 (store_regs_lib): Use regcache_collect instead of
3927 read_register. Use fill_sprs32 instead of fill_sprs64,
3928 if debugging a 32-bit architecture.
3929 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3930 out of the register cache, instead of passing a pointer into
3931 the register cache directly to ptrace. Use regcache_collect
3932 insteaad of read_register.
3933 (ops_prepare_to_store): Use target_read_registers instead
3934 of read_register_bytes.
3936 2002-07-20 Aidan Skinner <aidan@velvet.net>
3938 * MAINTAINERS: Add self under write after approval.
3940 2002-07-20 Aidan Skinner <aidan@velvet.net>
3942 * ada-tasks.c: Change k&r style function definitions to prototyped
3945 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3947 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3948 * x86-64-tdep.c: Include "objfiles.h".
3949 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3950 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3952 2002-07-17 Michal Ludvig <michal@suse.cz>
3954 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3955 (update_context): Initialise cfa variable.
3957 2002-07-17 Michael Snyder <msnyder@redhat.com>
3959 * aix-thread.c: Shorten some long lines.
3960 Bring comments into line with code spec.
3962 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3964 * infrun.c: Re-indent using gdb_indent.sh.
3966 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3968 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3969 Leave the indentation temporarily untouched, to minimize the diffs.
3971 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3973 * stabsread.c: Make os9k sections of the code obsolete,
3975 * stabsread.h: Make os9k sections of the code obsolete.
3977 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3979 * linux-low.c (regsets_store_inferior_registers): Add free()
3980 at the end of a loop to prevent memory leak.
3981 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3982 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3983 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3985 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3987 2002-07-17 Jim Blandy <jimb@redhat.com>
3989 * macrocmd.c (info_macro_command): Remove newline from error
3992 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3994 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3995 (sh_gdbarch_init): Use it for sh-dsp.
3997 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3999 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4000 64-bit DWARF2 format.
4002 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4004 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4005 <sys/proc.h> when not available.
4007 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4009 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4010 * stabsread.c: Make os9k sections of the code obsolete.
4011 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4012 * config/i386/i386os9k.mt: Make file obsolete.
4013 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4014 (COMMON_OBS): Remove os9kread.o
4015 (SFILES): Remove os9kread.c.
4016 (os9kread.o, remote-os9k.o): Make target obsolete.
4017 * remote-os9k.c: Make file obsolete.
4018 * os9kread.c: Make file obsolete.
4021 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4023 * NEWS: Mention that the FR30 has been made obsolete.
4024 * fr30-tdep.c: Make file obsolete.
4025 * config/fr30/tm-fr30.h: Ditto.
4026 * config/fr30/fr30.mt: Ditto.
4027 * configure.tgt: Make fr30-*-elf obsolete.
4028 * MAINTAINERS: Make fr30-elf obsolete.
4030 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4032 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4033 found is not inside a section.
4035 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4037 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4039 (pdc_realloc): Use xrealloc() instead of realloc().
4041 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4043 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4044 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4045 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4048 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4050 * aix-thread.c (ptrace_check): Eliminate goto.
4051 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4054 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4056 * aix-thread.c (gdbcmd.h): Include.
4057 (DEBUG, DBG, DBG2, dbg): Eliminate.
4058 (debug_aix_thread): New static global.
4059 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4060 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4061 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4062 invocations to DBG and DBG2 macros to test against
4063 ``debug_aix_thread'' and call fprintf_unfiltered().
4064 (_initialize_aix_thread): Add new command "set debug aix-thread".
4066 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4068 From Gerhard Tonn <TON@de.ibm.com>:
4069 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4070 instead of supply_register.
4072 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4074 * dwarf2cfi.c: Include "gdb_assert.h".
4075 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4077 (update_context): Do not use __func__. Add missing ``break''.
4078 (update_context): Do not use __func__.
4080 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4082 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4083 and its setting. Set gdbarch instruction printing functions
4084 directly. For non-rs6000 case use new function
4085 gdb_print_insn_powerpc.
4086 (gdb_print_insn_powerpc): New function.
4088 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4090 * NEWS: Mention that the d30v has been marked obsolete.
4091 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4092 * configure.tgt: Mark d30v-*-* as obsolete.
4093 * d30v-tdep.c: Mark file as obsolete.
4094 * config/d30v/d30v.mt: Ditto.
4095 * config/d30v/tm-d30v.h: Ditto.
4097 2002-07-13 Aidan Skinner <aidan@velvet.net>
4099 * ada-tasks.c (add_task_entry): replace calls to
4100 malloc() with xmalloc
4101 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4103 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4104 ada_finish_decode_line_1, all_sals_for_line
4105 ada_breakpoint_rewrite): replace calls to free() with xfree()
4107 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4109 From Nicholas Duffek (with minor changes by Martin Hunt,
4110 Louis Hamilton, and Kevin Buettner):
4111 * aix-thread.c: New file.
4113 2002-07-12 Petr Sorfa <petrs@caldera.com>
4115 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4116 complaint for invalid attribute class or form.
4117 (read_func_scope): DW_AT_frame_base
4118 better handling of DW_AT_block*.
4119 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4120 better handling of DW_AT_block*.
4121 (read_common_block): DW_AT_location
4122 better handling of DW_AT_block*.
4123 (read_partial_die): DW_AT_location better handling
4125 (new_symbol): DW_AT_external better handling of
4126 DW_AT_block*. Proper initialization of variable
4128 (attr_form_is_block): New function that returns true
4129 if the attribute's form is of DW_FORM_block*.
4131 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4133 * valops.c (find_method_list): Remove comment about
4134 removed STATIC_MEMFUNCP argument.
4135 (value_find_oload_method_list): Likewise.
4137 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4139 From Nicholas Duffek:
4140 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4141 target_new_objfile_hook.
4143 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4145 From Nicholas Duffek:
4146 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4149 2002-07-12 Andrew Cagney <cagney@redhat.com>
4151 * MAINTAINERS: Mention --enable-sim-build-warnings.
4152 (m68hc11-elf): Disable sim build warnings.
4153 (m32r-elf): Mark as broken obsolete candidate.
4154 (x86_64-linux-gnu): Mark as buildable with -Werror.
4155 (arm-elf): Change -w to ``,'' which enables warnings but not
4158 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4160 * bcache.h: Update copyright.
4161 (struct bstring, struct bcache): Move definition to "bcache.c".
4162 Replaced by opaque declaration.
4163 (bcache_xfree): Replace free_bcache.
4164 (bcache_xmalloc, bcache_memory_used): Declare.
4166 * bcache.c: Update copyright.
4167 (struct bstring, struct bcache): Moved to here from "bcache.h".
4169 (bcache_xmalloc, bcache_memory_used): New functions.
4170 (bcache_xfree): Replace function free_bcache.
4172 * Makefile.in (objfiles.o): Add $(bcache_h).
4173 (objfiles_h): Remove $(bcache_h).
4174 (symfile.o): Add $(bcache_h).
4176 * symmisc.c: Update copyright.
4177 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4178 (print_objfile_statistics): Use bcache_memory_used.
4180 * symfile.c: Include "bcache.h".
4181 (reread_symbols): Use bcache_xfree.
4182 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4183 (add_psymbol_to_list): Pass psymbol_cache by value.
4184 (add_psymbol_with_dem_name_to_list): Ditto.
4186 * objfiles.h: Update copyright.
4187 (struct bcache): Declare opaque. Do not include "bcache.h".
4188 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4190 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4192 * objfiles.c: Include "bcache.h". Update copyright.
4193 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4195 (free_objfile): Use bcache_xfree.
4197 2002-07-11 Grace Sainsbury <graces@redhat.com>
4199 * monitor.c (monitor_fetch_register): Make name a constant.
4200 (monitor_store_register): Same.
4202 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4204 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4205 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4206 (finish_block) For non-function blocks, hash the symbol table. For
4207 function blocks, mark the symbol table as unhashed.
4208 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4209 (msymbol_hash_iw): Likewise.
4210 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4212 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4213 (lookup_minimal_symbol): Likewise for both.
4214 * symtab.h (struct block): Add `hashtable' flag. Comment the
4216 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4217 (ALL_BLOCK_SYMBOLS): Update.
4218 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4219 (struct symbol): Add `hash_next' pointer.
4220 * symtab.c (lookup_block_symbol): Search using the hash table when
4222 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4223 (search_symbols, find_addr_symbol): Likewise.
4225 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4226 (read_dst_symtab): Likewise.
4227 * jv-lang.c (get_java_class_symtab): Likewise.
4228 * mdebugread.c: Include "gdb_assert.h".
4229 (shrink_block): Assert that the block being modified is not hashed.
4230 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4231 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4233 (dump_symtab): Recognize hashed blocks.
4234 * printcmd.c (print_frame_args): Assert that function blocks do not
4235 have hashed symbol tables.
4236 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4237 (fill_in_ada_prototype, debug_print_block): Likewise.
4238 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4240 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4242 * stack.c (print_frame): Use result of frame_address_in_block()
4243 instead of fi->pc when evaluating symbols.
4244 (backtrace_command_1): Ditto.
4246 2002-07-11 Andrew Cagney <cagney@redhat.com>
4248 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4251 * arm-tdep.c (arm_register_name): Make return type constant.
4253 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4255 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4257 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4258 * s390-tdep.c (s390_fp_regnum): Ditto.
4259 (s390_read_fp): Ditto.
4260 (s390_pop_frame): Ditto.
4261 (_initialize_s390_tdep): Ditto.
4262 * remote.c (get_remote_state): Ditto.
4263 * procfs.c (mappingflags): Ditto.
4264 * memattr.c (_initialize_mem): Ditto.
4265 * mcore-tdep.c (mcore_pop_frame): Ditto.
4266 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4267 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4268 * language.c (set_case_str): Ditto.
4269 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4270 * frv-tdep.c (new_variant): Ditto.
4271 (frv_stopped_data_address): Ditto.
4272 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4273 (context_alloc): Ditto.
4274 (frame_state_alloc): Ditto.
4275 (unwind_tmp_obstack_init): Ditto.
4276 (unwind_tmp_obstack_free): Ditto.
4277 (cfi_read_fp): Ditto.
4278 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4279 (cris_pop_frame): Ditto.
4280 * c-lang.c (scanning_macro_expansion): Ditto.
4281 (finished_macro_expansion): Ditto.
4282 (c_preprocess_and_parse): Ditto.
4283 * gdbarch.sh: Ditto.
4284 * gdbarch.h, gdbarch.c: Regenerate.
4285 * config/mn10200/tm-mn10200.h: Adjust indentation.
4286 * target.c: Adjust indentation.
4287 * symtab.h: Adjust indentation.
4288 * stabsread.h: Adjust indentation.
4289 * remote-es.c: Adjust indentation.
4290 * os9kread.c: Adjust indentation.
4292 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4294 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4295 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4297 2002-07-10 Grace Sainsbury <graces@redhat.com>
4299 * NEWS: Mention m68k, mcore multi-arching.
4300 * MAINTAINERS: Change status of m68k, mcore to reflect
4303 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4305 * valops.c (find_overload_match): Free oload_syms.
4307 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4309 Define HAVE_SYS_PROC_H if sys/proc.h exists
4310 * configure.in: Add check for sys/proc.h
4311 * config.in: Regenerate.
4312 * configure: Regenerate.
4314 2002-07-09 Grace Sainsbury <graces@redhat.com>
4316 * config/m68k/tm-m68k.h: Remove macros wrapped in
4317 #if !GDB_MULTI_ARCH.
4319 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4321 * config.in, configure: Regenerate.
4323 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4325 * dwarf2cfi.c: Include "gcore.h".
4326 (execute_stack_op): Fix implementation of the
4327 DW_OP_deref and DW_OP_deref_size operators by letting do their
4328 lookup in the target.
4330 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4332 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4333 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4336 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4338 Fix PR gdb/595, gdb/602
4339 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4340 Don't call value_cast, just read the vtable pointer; update comments
4343 2002-07-05 Grace Sainsbury <graces@redhat.com>
4345 * config/mcore/tm-mcore.h: Remove file.
4346 * config/mcore/mcore.mt: Remove definition of TM_FILE
4347 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4349 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4351 * i386bsd-tdep.c: Include "gdb_string.h".
4353 2002-07-04 Grace Sainsbury <graces@redhat.com>
4355 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4356 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4358 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4359 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4360 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4361 (RETVAL_REGNUM): Move macros from tm-mcore.h
4362 (mcore_reg_struct_has_addr): New function.
4363 (mcore_gdbarch_init): Added initializations for the macros removed
4366 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4368 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4369 traditonal string branding within the ELF header.
4371 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4373 * symtab.c (remove_params): New function.
4374 (make_symbol_overload_list): Use it instead of cplus_demangle.
4375 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4377 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4379 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4381 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4383 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4384 and tdep->sigtramp_end.
4385 * i386obsd-nat.c: New file.
4386 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4388 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4389 Don't call get_current_frame().
4391 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4393 * i386-nat.c (child_post_startup_inferior): New function
4394 calling i386_cleanup_dregs if
4395 I386_USE_GENERIC_WATCHPOINTS is defined.
4396 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4397 conditional to acknowledge that i386-nat.c has its
4398 own child_post_startup_inferior function.
4400 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4402 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4403 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4404 instead of MAX_REGISTER_RAW_SIZE.
4405 (i386_extract_return_value, i386_extract_struct_value_address):
4406 Convert to use regcache.
4407 (i386_gdbarch_init): Set max_register_raw_size and
4408 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4409 Set extract_return_value and extract_struct_value_address instead
4410 of their deprecated variants.
4412 Convert i386 target to generic dummy frames.
4413 * i386-tdep.c: Include "symfile.h".
4414 (i386_frameless_signal_p): Consider a function to be frameless if
4415 the pc points at the first instruction of the function.
4416 (i386_frame_chain): Handle (generic) call dummies.
4417 (i386_frame_saved_pc): Likewise.
4418 (i386_frame_init_saved_regs): Remove code dealing with call
4419 dummies on the stack.
4420 (i386_push_dummy_frame): Removed.
4421 (i386_call_dummy_words): Removed.
4422 (i386_fix_call_dummy): Removed.
4423 (i386_push_return_address): New function.
4424 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4425 parameter, and don't call get_current_frame.
4426 (i386_pop_frame): New function.
4427 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4428 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4429 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4430 call_dummy_length to 0, set call_dummy_words to NULL, set
4431 sizeof_call_dummy_words to 0, set fix_call_dummy to
4432 generic_fix_call_dummy, set pc_in_call_dummy to
4433 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4434 generic_push_dummy_frame, set push_return_address to
4435 i386_push_return_address and set frame_chain_valid to
4436 generic_file_frame_chain_valid.
4438 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4440 * gdbarch.sh (struct regcache): Add opaque declaration.
4441 (EXTRACT_RETURN_VALUE): New architecture method.
4442 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4443 * gdbarch.h, gdbarch.c: Regenerate.
4444 * arch-utils.c (legacy_extract_return_value): New function.
4445 * arch-utils.h (legacy_extract_return_value): Declare.
4446 * values.c (value_being_returned): Re-enable code handling
4447 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4448 deprecated_grub_regcache_for_registers call to block handling
4449 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4450 (EXTRACT_RETURN_VALUE): Do not define.
4452 2002-07-03 Grace Sainsbury <graces@redhat.com>
4454 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4455 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4456 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4457 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4458 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4459 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4460 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4461 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4462 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4463 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4464 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4465 argument so the function fits the prototype in the architecture
4467 (mcore_pop_frame): Remove argument so the function fits the
4468 prototype. Use get_current_frame instead of the argument.
4469 (mcore_push_arguments): Change type of struct_return so the
4470 function can be used in the architecture vector.
4471 (mcore_store_struct_return): Add.
4472 (mcore_frame_init_saved_regs): Add.
4473 (mcore_gdbarch_init): Add function calls to replace the macros
4474 removed from tm-mcore.h
4476 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4478 * infcmd.c (print_return_value): Remove compatibility code calling
4479 deprecated_grub_regcache_for_registers.
4481 * values.c: Include "regcache.h".
4482 (value_being_returned): Update. Use
4483 deprecated_grub_regcache_for_registers to extract the register
4485 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4486 ``struct regcache''.
4487 * Makefile.in (values.o): Add dependency on $(regcache_h).
4489 * inferior.h (run_stack_dummy): Change type of second parameter to
4490 a ``struct regcache''.
4491 * valops.c (hand_function_call): Change type of retbuf to ``struct
4492 regcache''. Allocate using regcache_xmalloc, clean using
4493 make_cleanup_regcache_xfree.
4494 * infcmd.c (run_stack_dummy): Update. Use
4495 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4497 * regcache.c (do_regcache_xfree): New function.
4498 (make_cleanup_regcache_xfree): New function.
4499 * regcache.h (make_cleanup_regcache_xfree): Declare.
4501 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4503 * event-top.c (command_line_handler): Don't read past
4504 beginning of buffer.
4506 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4508 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4510 (varobj_create): Store frame_id for root.
4511 (varobj_gen_name): Use xasprintf.
4512 (varobj_update): Save and restore frame using get_frame_id() and
4514 (create_child): Use xasprintf.
4515 (new_root_variable): Initialize frame_id.
4516 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4517 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4518 to prevent memory leak.
4520 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4522 * valops.c (hand_function_call): Move declaration of retbuf to
4523 start of function, allocate using malloc, add a cleanup but before
4524 the inf_status cleanup, cleanup the buffer. Rename local variable
4525 old_chain to inf_status_cleanup.
4527 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4529 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4531 * cli/cli-decode.c (cmd_func_p): New function.
4532 (cmd_func): New function.
4534 * command.h: Add cmd_func() and cmd_func_p().
4536 2002-07-03 Grace Sainsbury <graces@redhat.com>
4538 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4539 (REGISTER_SIZE): Remove.
4540 (MAX_REGISTER_RAW_SIZE): Remove.
4541 (REGISTER_VIRTUAL_TYPE): Remove.
4542 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4543 (REGISTER_NAME): Remove.
4544 (USE_GENERIC_DUMMY_FRAMES): Remove.
4545 (CALL_DUMMY): Remove.
4546 (CALL_DUMMY_START_OFFSET): Remove.
4547 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4548 (CALL_DUMMY_LOCATION): Remove.
4549 (FIX_CALL_DUMMY): Remove.
4550 (CALL_DUMMY_ADDRESS): Remove.
4551 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4552 (SAVE_DUMMY_FRAME_TOS): Remove.
4553 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4554 (mcore_register_virtual_type): New function.
4555 (mcore_register_byte): New function.
4556 (mcore_register_size): New function.
4557 (mcore_register_name): New function.
4558 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4559 macros removed from tm-mcore.h.
4560 (mcore_dump_tdep): Add.
4561 (_initialize_mcore_tdep): Add gdbarch_register call.
4563 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4565 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4566 frameless_look_for_prologue, such that we actually call this
4569 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4571 * frame.h (frame_address_in_block): New function.
4573 * blockframe.c (frame_address_in_block): New function extracted
4574 from get_frame_block().
4575 (get_frame_block): Use frame_address_in_block().
4576 (block_innermost_frame): Use frame_address_in_block() to match
4577 the frame pc address against the block boundaries rather than
4578 the frame pc directly. This prevents a failure when a frame pc
4579 is actually a return-address pointing immediately after the end
4582 2002-07-02 Grace Sainsbury <graces@redhat.com>
4584 * MAINTAINERS: Add self under write after approval.
4586 2002-07-02 Grace Sainsbury <graces@redhat.com>
4588 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4589 used in architecture vector. The default is
4590 m68k_local_breakpoint_from_pc.
4591 (m68k_local_breakpoint_from_pc): Add.
4592 (enum): Add register numbers from tm-m68k.h.
4593 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4595 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4596 GDB_MULTI_ARCH_PARTIAL.
4597 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4598 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4600 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4601 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4602 to enum in m68k-tdep.c
4604 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4606 * solib-osf.c (open_map): Compute the list of shared libraries
4607 loaded by the inferior, rather than the list of libraries loaded
4608 by GDB itself. Otherwise, GDB ends up reading the symbols from
4609 the wrong shared libraries...
4611 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4613 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4614 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4616 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4618 (FRAMELESS_SIGNAL): Remove function.
4619 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4620 i386_linux_saved_pc_after_call): Removed.
4621 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4622 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4623 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4625 * i386-tdep.c (i386_frameless_signal_p): New function.
4626 (i386_frame_chain): Deal with frameless signals.
4627 (i386_sigtramp_saved_sp): New function.
4628 (i386_frame_saved_pc): Deal with frameless signals.
4629 (i386_saved_pc_after_call): Make sure the correct value is
4630 returned just after entry into a sigtramp.
4631 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4632 i386fbsd4_sc_sp_offset): New variables.
4633 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4634 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4635 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4636 similiar to what we already did for sc_pc_offset.
4637 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4640 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4642 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4644 * config/i386/tm-x86-64linux.h: New.
4645 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4647 * config/i386/nm-x86-64.h: Rename to ...
4648 * config/i386/nm-x86-64linux.h: ... this one.
4649 * config/i386/x86-64linux.mh: Reflect the above change.
4651 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4653 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4654 with sigcontext_addr. Add sc_sp_offset.
4655 (i386bsd_sigtramp_saved_pc): Remove prototype.
4656 (i386bsd_sicontext_addr): Add prototype.
4657 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4658 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4659 (i386_svr4_sigtramp_saved_pc): Removed.
4660 (i386_svr4_sigcontext_addr): New function.
4661 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4662 Initialize tdep->sigcontext_addr instead. Initialize
4663 tdep->sc_pc_offset and tdep->sc_sp_offset.
4664 (i386_gdbarch_init): Likewise.
4665 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4667 (i386bsd_sigtramp_saved_pc): Remove function.
4668 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4669 Initialize tdep->sigcontext_addr instead. Initialize
4671 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4672 of tdep->sigtramp_saved_pc.
4673 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4674 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4677 * i386-tdep.c (i386_frameless_function_invocation,
4678 i386_frame_num_args, i386_frame_init_saved_regs,
4679 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4680 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4681 i386_extract_return_value, i386_store_return_value,
4682 i386_extract_struct_value_address, i386_register_virtual_type,
4683 i386_register_convertible, i386_register_convert_to_virtual,
4684 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4685 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4688 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4690 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4692 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4693 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4694 this macro. Include "value.h".
4696 2002-06-30 Aidan Skinner <aidan@velvet.net>
4698 * ada-exp.tab.c: remove as it's a generated file
4699 * ada-lex.c: remove as it's a generated file
4701 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4703 * config/i386/tm-i386.h (struct frame_info, struct
4704 frame_saved_regs, struct value, struct type): Remove forward
4707 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4708 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4709 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4710 (FILL_FPXREGSET): Define.
4712 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4714 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4715 i[3456]86-*-netbsd* case.
4716 * config/i386/tm-obsd.h: Removed.
4717 * config/i386/obsd.mt: Removed.
4718 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4720 (MH_CFLAGS): Add -DYYDEBUG=0.
4722 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4723 i386nbsd_sc_pc_offset on OpenBSD too.
4725 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4726 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4727 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4729 * i386bsd-tdep.c: Include "arch-utils.h".
4730 (i386bsd_aout_in_solib_call_trampoline): New function.
4731 (i386bsd_init_abi): Set in_solib_call_trampoline to
4732 i386bsd_aout_in_solib_call_trampoline.
4733 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4734 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4736 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4738 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4739 (struct obstack, struct bcache): Add opaque declarations.
4740 * Makefile.in (macrotab_h): Update
4742 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4744 * blockframe.c (generic_find_dummy_frame): Change return type to
4745 ``struct regcache''.
4746 (struct dummy_frame): Replace field ``registers'' with regcache, a
4747 struct regcache object.
4748 (generic_find_dummy_frame): Update.
4749 (generic_push_dummy_frame): Update. Use regcache_xfree,
4750 regcache_xmalloc and regcache_cpy.
4751 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4753 (deprecated_generic_find_dummy_frame): Update.
4754 (generic_read_register_dummy): Update. Use
4755 regcache_read_as_address.
4756 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4757 (generic_get_saved_register): Update. Use regcache_read.
4759 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4761 * Makefile.in (objfiles_h): Add $(bcache_h).
4762 * objfiles.h: Include "bcache.h".
4764 * Makefile.in (symtab_h): Remove $(bcache_h).
4765 * symtab.h: Do not include "bcache.h".
4767 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4769 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4770 generic_func_frame_chain_valid.
4772 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4774 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4775 * config/i386/tm-fbsd.h: Likewise.
4777 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4779 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4780 generic_unwind_get_saved_register.
4782 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4784 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4785 * regcache.c (supply_register): Add missing argument to
4786 register_buffer call.
4788 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4790 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4791 Solaris /bin/grep does not not like it. From Peter Schauer.
4793 2002-06-26 Tom Tromey <tromey@redhat.com>
4795 * command.h (add_setshow_cmd): Declare.
4796 (add_setshow_cmd_full): Declare.
4797 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4798 returns void. Use add_setshow_cmd_full.
4799 (add_setshow_cmd_full): New function.
4800 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4801 (add_setshow_boolean_cmd): Likewise.
4803 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4805 * config/vax/tm-vax.h: Protect from multiple inclusion.
4806 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4807 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4808 * config/vax/tm-vaxbsd.h: ...here. New file.
4809 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4811 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4813 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4814 (BELIEVE_PCC_PROMOTION): Remove.
4815 (AP_REGNUM): Move to...
4816 * config/vax/nm-vax.h: ...here.
4817 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4818 (vax_breakpoint_from_pc): New function.
4819 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4820 and gdbarch_believe_pcc_promotion.
4822 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4824 * Makefile.in (vax_tdep_h): Define.
4825 (vax-tdep.o): Use $(vax_tdep_h).
4826 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4827 (vax_dump_tdep): New function.
4828 (_initialize_vax_tdep): Register vax_dump_tdep.
4829 * vax-tdep.h: Include osabi.h.
4830 (struct gdbarch_tdep): New.
4832 2002-06-26 Andrew Cagney <cagney@redhat.com>
4834 * frame.h (deprecated_generic_find_dummy_frame): Rename
4835 generic_find_dummy_frame.
4836 * blockframe.c (generic_find_dummy_frame): Make static.
4837 (deprecated_generic_find_dummy_frame): New function.
4838 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4839 generic_find_dummy_frame with deprecated_find_dummy_frame.
4840 (sh64_nofp_frame_init_saved_regs): Ditto.
4841 (sh_fp_frame_init_saved_regs): Ditto.
4842 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4843 (s390_frame_chain): Ditto.
4844 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4846 2002-06-26 Grace Sainsbury <graces@redhat.com>
4848 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4849 gdbarch vector are at the top.
4851 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4852 (FRAME_ARGS_ADDRESS): Remove.
4853 (FRAME_LOCALS_ADDRESS): Remove.
4854 (FRAME_NUM_ARGS): Remove.
4855 (FRAME_ARGS_SKIP): Remove.
4856 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4857 (m68k_gdbarch_init): Add gdbarch initializations for macros
4858 undefined in tm-m68k.h
4860 2002-06-26 Grace Sainsbury <graces@redhat.com>
4862 * monitor.h: Add the function regname to monitor_ops
4863 structure. This way NUM_REGS does not have to be a constant.
4864 * monitor.c (monitor_fetch_register): Added support for regname
4865 function. The function is called if the array regnames is NULL.
4866 (monitor_store_register): Same.
4867 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4869 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4870 cpu32bug_cmds.regname to point to new function.
4871 * abug-rom.c (abug_regname): Same as above.
4872 (init_abug_cmds): Same.
4873 * dbug-rom.c (dbug_regname): Same as above.
4874 (init_dbug_cmds): Same.
4875 * remote-est.c (est_regname): Same.
4876 (init_est_cmds): Same.
4877 * rom68k-rom.c (rom68k_regname): Same.
4878 (init_rom68k_cmds): Same.
4880 2002-06-25 Tom Tromey <tromey@redhat.com>
4882 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4884 2002-06-25 Andrew Cagney <cagney@redhat.com>
4886 * infrun.c (stop_registers): Change variable's type to ``struct
4888 (xmalloc_inferior_status): Delete function.
4889 (free_inferior_status): Delete function.
4890 (normal_stop): Use regcache_cpy.
4891 (struct inferior_status): Change type of fields ``stop_registers''
4892 and ``registers'' to ``struct regcache''.
4893 (write_inferior_status_register): Use regcache_write.
4894 (save_inferior_status): Instead of calling
4895 xmalloc_inferior_status, allocate the inf_status buffer directly.
4896 Use regcache_dup_no_passthrough and regcache_dup to save the
4898 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4899 Replace the stop_registers regcache instead of overriding it. Use
4900 regcache_xfree. Instead of calling free_inferior_status, xfree
4901 the buffer directly.
4902 (discard_inferior_status): Use regcache_xfree. Instead of calling
4903 free_inferior_status, xfree the buffer directly.
4904 (build_infrun): Use regcache_xmalloc.
4905 (_initialize_infrun): Delete redundant call to build_infrun.
4907 * Makefile.in (infcmd.o): Add $(regcache_h).
4909 * infcmd.c: Include "regcache.h".
4910 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4911 obtain the address of `stop_registers' register buffer.
4912 (print_return_value): Ditto.
4914 * inferior.h (struct regcache): Add opaque declaration.
4915 (stop_registers): Change variable's declared type to ``struct
4918 2002-06-24 Tom Tromey <tromey@redhat.com>
4920 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4921 * target.c (initialize_targets): Fixed typo in
4922 trust-readonly-sections `show' documentation.
4924 * main.c: Marked all strings with _().
4926 2002-06-24 Don Howard <dhoward@redhat.com>
4928 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4929 that means max CORE_ADDR+1.
4930 (lookup_mem_region): Ditto.
4931 (mem_info_command): Ditto.
4933 2002-06-24 Grace Sainsbury <graces@redhat.com>
4935 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4936 (REGISTER_BYTES_OK): Remove.
4937 (REGISTER_BYTES): Remove.
4938 (STORE_STRUCT_RETURN): Remove.
4939 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4940 (STORE_RETURN_VALUE): Remove.
4941 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4942 (FRAME_CHAIN): Remove.
4943 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4944 (FRAME_SAVED_PC): Remove.
4945 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4946 (m68k_store_struct_return): Add.
4947 (m68k_deprecated_extract_return_value): Add.
4948 (m68k_deprecated_extract_struct_value_address): Add.
4949 (m68k_store_return_value): Add.
4950 (m68k_frame_chain): Add.
4951 (m68k_frameless_function_invocation): Add.
4952 (m68k_frame_saved_pc): Add.
4953 (m68k_gdbarch_init): added set_gdbarch calls for new
4954 functions and deleted macros.
4956 2002-06-23 Tom Tromey <tromey@redhat.com>
4958 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4959 (ALLDEPFILES): Likewise.
4960 (udiheaders): Removed.
4961 (udip2soc.o): Likewise.
4962 (udi2go32.o): Likewise.
4964 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4966 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4968 * infrun.c (_initialize_infrun): Delete unnecessary call to
4971 * regcache.h: Update comments describing the regcache_cpy family
4973 (regcache_save, regcache_restore): Delete declaration.
4974 (regcache_save_no_passthrough): Delete declaration.
4975 (regcache_restore_no_passthrough): Delete declaration.
4976 * regcache.c (regcache_save): Delete function.
4977 (regcache_save_no_passthrough): Delete function.
4978 (regcache_restore): Delete function.
4979 (regcache_restore_no_passthrough): Delete function.
4981 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4983 * config/m68k/tm-m68k.h: Fix typo.
4984 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4985 (m68k_frame_init_saved_regs): Declare.
4987 2002-06-21 Jim Blandy <jimb@redhat.com>
4989 Remove some vestiges of Harris 88k support.
4990 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4991 register numbering quirk.
4992 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4993 odd symbols occurring in Harris 88k ELF targets.
4995 2002-06-21 Tom Tromey <tromey@redhat.com>
4997 * gdb_locale.h: New file.
4998 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4999 (defs_h): Added gdb_locale.h.
5000 * configure, config.in: Rebuilt.
5001 * configure.in (PACKAGE): Define.
5002 * defs.h: Include gdb_locale.h.
5003 * main.c (captured_main): Call setlocale, bindtextdomain,
5006 2002-06-21 Dave Brolley <brolley@redhat.com>
5008 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5009 * config/frv/frv.mt: New file.
5010 * config/frv/tm-frv.h: New file.
5011 * configure.tgt: Support frv-*-*.
5012 * Makefile.in (frv-tdep.o): New target.
5013 * frv-tdep.c: New file.
5014 * NEWS: Mention frv.
5016 2002-06-21 Dave Brolley <brolley@redhat.com>
5018 * MAINTAINERS: Add self to "Write After Approval" list.
5020 2002-06-21 Grace Sainsbury <graces@redhat.com>
5022 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5023 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5024 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5025 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5026 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5028 * m68k-tdep.c: Include arch-utils.h
5029 (m68k_register_raw_size): Add.
5030 (m68k_register_virtual_size): Add.
5031 (m68k_register_virtual_type): Add.
5032 (m68k_register_name): Add.
5033 (m68k_stack_align): Add.
5034 (m68k_register_byte): Add.
5035 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5038 2002-06-21 Grace Sainsbury <graces@redhat.com>
5040 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5041 m68k_find_saved_regs.
5042 (m68k_pop_frame): Removed saved_regs structure, and replaced
5043 references to it with frame->saved_regs.
5044 (m68k_gdbarch_init): Added function calls to initialize the
5046 (m68k_fix_call_dummy): Add.
5047 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5048 (CALL_DUMMY): Remove.
5049 (CALL_DUMMY_LENGTH): Remove.
5050 (CALL_DUMMY_START_OFFSET): Remove.
5051 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5052 (FIX_CALL_DUMMY): Remove.
5053 (PUSH_DUMMY_FRAME): Remove.
5054 (POP_FRAME): Remove.
5056 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5058 * parse.c (parse_fprintf): New function used to avoid calls to
5059 fprintf in bison parser generated debug code.
5060 * parser-defs.h: Declaration of new parse_fprintf function.
5061 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5062 Set YYDEBUG to 1 by default.
5063 Set YYFPRINTF as parse_fprintf.
5065 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5067 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5069 (pointer_encoding, enum ptr_encoding): New.
5070 (execute_cfa_program): Take care about pointer encoding.
5071 (dwarf2_build_frame_info): Only call parse_frame_info for
5072 .debug_frame and .eh_frame.
5073 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5074 fixed augmentation handling, added relative addressing,
5075 ignore duplicate FDEs. Added comments.
5076 * dwarf2cfi.c: Reindented.
5078 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5080 * event-top.c (command_handler): Don't use space_at_cmd_start
5081 unless there is sbrk() on the host. Assign time and space data
5082 to union fields of the appropriate length.
5084 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5086 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5087 x86_64_register_name. Return type changed to 'const char *'.
5088 (x86_64_register_name2nr): Rename to x86_64_register_number.
5089 (x86_64_gdbarch_init): Update to reflect the change.
5090 * x86-64-tdep.h: Ditto.
5091 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5092 (supply_fpregset): Ditto.
5094 2002-06-19 Andrew Cagney <cagney@redhat.com>
5096 * regcache.h: Update copyright.
5097 (struct regcache, struct gdbarch): Add opaque declarations.
5098 (current_regcache): Declare global variable.
5099 (regcache_read, regcache_write): Add gdbarch parameter.
5100 (regcache_save, regcache_save_no_passthrough)
5101 (regcache_restore, regcache_restore_no_passthrough)
5102 (regcache_dup, regcache_dup_no_passthrough)
5103 (regcache_cpy, regcache_cpy_no_passthrough)
5104 (deprecated_grub_regcache_for_registers)
5105 (deprecated_grub_regcache_for_register_valid)
5106 (regcache_valid_p): Add function declarations.
5108 * regcache.c: Update copyright.
5109 (regcache_descr_handle): New global variable.
5110 (struct regcache_descr): Define.
5111 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5112 (regcache_descr, xfree_regcache_descr): New functions.
5113 (struct regcache): Define.
5114 (regcache_xmalloc, regcache_xfree): New functions.
5115 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5116 (regcache_dup, regcache_dup_no_passthrough): New functions.
5117 (regcache_valid_p, regcache_read_as_address): New functions.
5118 (deprecated_grub_regcache_for_registers): New function.
5119 (deprecated_grub_regcache_for_register_valid): New function.
5120 (current_regcache): New global variable.
5121 (register_buffer): Add regcache parameter. Update calls.
5122 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5123 (read_register_gen, write_register_gen): Update register_buffer
5124 call. Test for legacy_p instead of gdbarch_register_read_p or
5125 gdbarch_register_write_p.
5126 (regcache_collect): Update register_buffer call.
5127 (build_regcache): Rewrite. Use deprecated grub functions.
5128 (regcache_save, regcache_save_no_passthrough): New functions.
5129 (regcache_restore, regcache_restore_no_passthrough): New
5131 (_initialize_regcache): Create the regcache_data_handle. Swap
5132 current_regcache global variable.
5134 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5135 parameter to regcache_read and regcache_write calls.
5136 (sh4_register_read): Ditto.
5137 (sh64_pseudo_register_read): Ditto.
5138 (sh64_register_read): Ditto.
5139 (sh_pseudo_register_write): Ditto.
5140 (sh4_register_write): Ditto.
5141 (sh64_pseudo_register_write): Ditto.
5142 (sh64_register_write): Ditto.
5144 * defs.h (XCALLOC): Define.
5146 2002-06-19 Grace Sainsbury <graces@redhat.com>
5148 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5149 * m68k-tdep.c (m68k_gdbarch_init): Added.
5150 (m68k_dump_tdep): Added.
5152 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5154 * ada-lang.c (fill_in_ada_prototype): Update comment.
5156 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5158 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5160 (mips_abi_string, mips_abi_strings): New.
5161 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5162 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5163 tdep->mips_abi_string. Honor mips_abi_string. Default to
5164 O32 if no ABI is found.
5165 (mips_dump_tdep): Use mips_abi_strings.
5166 (mips_abi_update): New function.
5167 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5168 ``set mips abi'' and ``show mips abi''. Check the size of
5171 2002-06-19 Andrew Cagney <cagney@redhat.com>
5173 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5176 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5178 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5179 current frame using only the first stack size adjustment. All
5180 subsequent size adjustments are not considered to be part of
5181 the "static" part of the current frame.
5182 Compute the address of the saved registers relative to the
5183 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5184 in use in this frame.
5186 2002-06-18 Don Howard <dhoward@redhat.com>
5188 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5189 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5190 suggesting this solution.
5192 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5194 * config/romp/xm-rtbsd.h: Delete file.
5195 * config/romp/rtbsd.mh: Delete file.
5197 2002-06-18 Keith Seitz <keiths@redhat.com>
5199 * breakpoint.c (condition_command): Post breakpoint_modify
5200 when a condition is added to an existing breakpoint.
5201 (commands_command): Likewise for commands.
5202 (set_ignore_count): Likewise for ignore counts.
5203 If no tty, do not simply return, still need to send event
5205 (ignore_command): Only print a newline if the command came
5207 Don't call breakpoints_changed, since this is now properly
5208 handled by set_ignore_count.
5210 2002-06-18 Andrew Cagney <cagney@redhat.com>
5212 * MAINTAINERS: Note that cris-elf target can be compiled with
5214 * cris-tdep.c (cris_register_name): Make return type constant.
5215 (cris_breakpoint_from_pc): Ditto.
5217 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5219 * frame.h (struct frame_info): Change type of context to
5222 2002-06-17 Andrew Cagney <cagney@redhat.com>
5224 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5226 * gdbarch.h, gdbarch.c: Regenerate.
5227 * config/mips/tm-mips.h (mips_register_name): Update.
5228 * i386-tdep.h (i386_register_name): Update.
5229 * mips-tdep.c (mips_register_name): Update
5230 * alpha-tdep.c (alpha_register_name): Update.
5231 * arch-utils.c (legacy_register_name): Update.
5232 * arch-utils.h (legacy_register_name): Update.
5233 * avr-tdep.c (avr_register_name): Update.
5234 * ia64-tdep.c (ia64_register_name): Update.
5235 * i386-tdep.c (i386_register_name): Update.
5236 * sparc-tdep.c (sparc32_register_name): Update.
5237 (sparc64_register_name): Update.
5238 (sparclite_register_name): Update.
5239 (sparclet_register_name): Update.
5240 * sh-tdep.c (sh_generic_register_name): Update.
5241 (sh_sh_register_name): Update.
5242 (sh_sh3_register_name): Update.
5243 (sh_sh3e_register_name): Update.
5244 (sh_sh_dsp_register_name): Update.
5245 (sh_sh3_dsp_register_name): Update.
5246 (sh_sh4_register_name): Update.
5247 (sh_sh64_register_name): Update.
5248 * s390-tdep.c (s390_register_name): Update.
5249 * rs6000-tdep.c (rs6000_register_name): Update.
5250 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5251 (ns32k_register_name_32382): Update.
5252 * d10v-tdep.c (d10v_ts2_register_name): Update.
5253 (d10v_ts3_register_name): Update.
5254 * xstormy16-tdep.c (xstormy16_register_name): Update.
5255 * vax-tdep.c (vax_register_name): Update.
5256 * v850-tdep.c (v850_register_name): Update.
5257 * m68hc11-tdep.c (m68hc11_register_name): Update.
5258 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5259 (am33_register_name): Update.
5261 2002-06-17 Grace Sainsbury <graces@redhat.com>
5263 * m68k-tdep.c: Reindented.
5265 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5267 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5268 list of predefined types.
5270 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5272 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5273 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5274 REGISTER_CONVERT_TO_RAW): Remove defines.
5275 (i386_register_virtual_type, i386_register_convertible,
5276 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5278 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5279 macros mentioned above.
5281 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5282 (i386lynx_saved_pc_after_call): Remove prototype.
5283 * i386ly-tdep.c: Include "i386-tdep.h".
5284 (i386lynx_saved_pc_after_call): Make static. Use
5285 read_memory_nobpt instead of read_memory. Use
5286 read_memory_unsigned_integer instead of read_memory_integer.
5287 (i386lynx_init_abi): New function.
5288 (i386lynx_coff_osabi_sniffer): New function.
5289 (_initialize_i386bsd_tdep): New function.
5291 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5292 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5293 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5294 (i386_fix_call_dummy): Remove prototype.
5295 * i386-tdep.c (i386_call_dummy_words): New variable.
5296 (i386_gdbarch_init): Adjust for removal of the
5297 macros mentioned above.
5299 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5301 * command.h (add_setshow_auto_boolean_cmd): Replace
5302 add_set_auto_boolean_cmd.
5303 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5304 add_set_auto_boolean_cmd.
5305 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5306 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5307 mask-address'' command.
5308 (show_mask_address): Add cmd parameter.
5309 * remote.c (add_packet_config_cmd): Update. Change type of
5310 set_func and show_func to cmd_sfunc_ftype.
5311 (_initialize_remote): Update `set remote Z-packet'
5312 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5313 (show_remote_protocol_e_packet_cmd): Ditto.
5314 (show_remote_protocol_E_packet_cmd): Ditto.
5315 (show_remote_protocol_P_packet_cmd): Ditto.
5316 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5317 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5318 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5319 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5320 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5321 (show_remote_protocol_Z_packet_cmd): Ditto.
5322 (show_remote_protocol_binary_download_cmd): Ditto.
5323 (show_remote_cmd): Pass NULL to all of above.
5325 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5327 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5328 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5329 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5330 POP_FRAME): Remove defines.
5331 (i386_push_arguments, i386_store_struct_return,
5332 i386_extract_return_value, i386_store_return_value,
5333 i386_extract_struct_value_address, i386_push_dummy_frame,
5334 i386_pop_frame): Renove prototypes.
5335 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5336 macros mentioned above.
5338 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5340 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5341 add_set_boolean_cmd.
5342 (add_setshow_cmd): New function.
5343 * command.h (add_setshow_boolean_cmd): Replace
5344 add_set_boolean_cmd.
5345 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5346 and ``set rdiromatzero''.
5347 * maint.c (_initialize_maint_cmds): Update commented out code.
5348 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5349 * target.c (initialize_targets): Update `set
5350 trust-readonly-sections'.
5351 * remote.c (_initialize_remote): Update `set remotebreak'.
5353 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5355 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5356 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5357 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5358 fit into multi-arch framework.
5359 (i386_breakpoint_from_pc): New function.
5360 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5363 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5364 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5365 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5366 (i386_frameless_function_invocation, i386_frame_num_args,
5367 i386_frame_init_saved_regs): Remove prototypes.
5368 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5369 macros mentioned above.
5371 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5373 * cli/cli-decode.c (set_cmd_cfunc): Update.
5374 (set_cmd_sfunc): Update.
5375 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5376 (set_cmd_sfunc, set_cmd_cfunc): Update.
5377 * cli/cli-decode.h: Update.
5379 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5381 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5382 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5384 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5386 * defs.h (auto_boolean): Declare enum.
5387 * command.h (cmd_auto_boolean): Delete enum.
5388 * mips-tdep.c (mask_address_var): Update.
5389 (mips_mask_address_p): Update.
5390 (show_mask_address): Update.
5391 * remote.c (struct packet_config): Update.
5392 (update_packet_config): Update.
5393 (show_packet_config_cmd): Update.
5394 (packet_ok): Update.
5395 (add_packet_config_cmd): Update.
5396 (_initialize_remote):
5397 * command.h: Update.
5398 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5399 (do_setshow_command): Update.
5400 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5401 * cli/cli-decode.h: Update.
5403 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5405 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5406 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5407 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5408 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5409 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5410 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5412 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5413 list of DJGPP COFF targets.
5415 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5416 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5417 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5418 (FP0_REGNUM): Remove define.
5419 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5420 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5421 (i386_register_virtual_size): Remove protoype.
5422 * i386-tdep.c (i386_register_virtual_size): Removed.
5423 (i386_extract_return_value, i386_store_return_value): Use
5424 FP0_REGNUM instead of NUM_FREGS to determine whether the
5425 floating-point registers are available.
5426 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5427 Adjust for removal of macros mentioned above.
5429 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5431 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5433 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5435 (supply_gregset, fill_gregset): Remove use of register keyword and
5436 remove declaration for regmap. Use I386_NUM_GREGS instead of
5437 NUM_REGS and NUM_FREGS.
5438 (FPREGSET_FSAVE_OFFSET): Remove.
5439 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5440 NUM_FREGS to determine whether the floating-point registers are
5443 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5444 gnu_store_registers): Replace usage of NUM_GREGS with
5447 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5448 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5449 usage of NUM_GREGS with I386_NUM_GREGS.
5451 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5453 * i386bsd-nat.c: Include "i386-tdep.h".
5454 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5457 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5458 and associated comment. They no longer make any sense, since we
5459 don't use this file anymore on Linux.
5461 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5462 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5463 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5464 elements in these arrays.
5465 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5468 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5470 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5471 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5473 2002-06-14 Andrew Cagney <cagney@redhat.com>
5475 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5476 EXTRACT_RETURN_VALUE.
5477 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5478 EXTRACT_STRUCT_VALUE_ADDRESS.
5479 * gdbarch.h, gdbarch.c: Regenerate.
5481 * values.c (value_being_returned): Handle
5482 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5483 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5485 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5486 * arm-tdep.c (arm_gdbarch_init): Update.
5487 * avr-tdep.c (avr_gdbarch_init): Update.
5488 * cris-tdep.c (cris_gdbarch_init): Update.
5489 * d10v-tdep.c (d10v_gdbarch_init): Update.
5490 * ia64-tdep.c (ia64_gdbarch_init): Update.
5491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5492 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5493 * s390-tdep.c (s390_gdbarch_init): Update.
5494 * sh-tdep.c (sh_gdbarch_init): Update.
5495 * s390-tdep.c (s390_gdbarch_init): Update.
5496 * sparc-tdep.c (sparc_gdbarch_init): Update.
5497 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5498 * v850-tdep.c (v850_gdbarch_init): Update.
5499 * vax-tdep.c (vax_gdbarch_init): Update.
5500 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5503 * config/arc/tm-arc.h: Update.
5504 * config/d30v/tm-d30v.h: Update.
5505 * config/fr30/tm-fr30.h: Update.
5506 * config/h8300/tm-h8300.h: Update.
5507 * config/h8500/tm-h8500.h: Update.
5508 * config/i386/tm-i386.h: Update.
5509 * config/i386/tm-ptx.h: Update.
5510 * config/i386/tm-symmetry.h: Update.
5511 * config/i960/tm-i960.h: Update.
5512 * config/m32r/tm-m32r.h: Update.
5513 * config/m68k/tm-delta68.h: Update.
5514 * config/m68k/tm-linux.h: Update.
5515 * config/m68k/tm-m68k.h: Update.
5516 * config/m88k/tm-m88k.h: Update.
5517 * config/mcore/tm-mcore.h: Update.
5518 * config/mips/tm-mips.h: Update.
5519 * config/mn10200/tm-mn10200.h: Update.
5520 * config/pa/tm-hppa.h: Update.
5521 * config/pa/tm-hppa64.h: Update.
5522 * config/sparc/tm-sp64.h: Update.
5523 * config/sparc/tm-sparc.h: Update.
5524 * config/sparc/tm-sparclet.h: Update.
5525 * config/z8k/tm-z8k.h: Update.
5527 2002-06-14 Andrew Cagney <cagney@redhat.com>
5529 * Makefile.in (i386_linux_tdep_h): Define.
5530 (i386_tdep_h, i387_tdep_h): Define.
5531 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5532 $(i386_tdep_h) and $(i387_tdep_h).
5533 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5535 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5537 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5538 Already covered by the default.
5540 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5541 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5542 (i386_gdbarch_init): Initialize long_double_format and long_double
5545 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5546 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5548 * config/i386/i386sol2.mh: ... here.
5549 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5550 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5551 (SIGCONTEXT_PC_OFFSET): Remove define.
5552 (IN_SIGTRAMP): Remove define.
5553 * i386-sol2-tdep.c: New file.
5555 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5556 * config/i386/tm-i386nw.h: Removed.
5558 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5559 USE_STRUCT_CONVENTION): Remove defines.
5560 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5561 (get_longjmp_target): Remove prototype.
5562 (IN_SIGTRAMP): Remove define.
5563 (i386bsd_in_sigtramp): Remove prototype.
5564 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5565 function. Update comment accordingly
5566 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5567 (FRAME_SAVED_PC): Remove define.
5568 (i386bsd_frame_saved_pc): Remove prototype.
5569 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5570 GET_LONGJMP_TARGET): Remove defines.
5571 (get_longjmp_target): Remove prototype.
5572 (IN_SIGTRAMP): Remove define.
5573 (i386bsd_in_sigtramp): Remove prototype.
5574 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5575 function. Update comment accordingly
5576 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5577 (FRAME_SAVED_PC): Remove define.
5578 (i386bsd_frame_saved_pc): Remove prototype.
5579 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5581 (USE_STRUCT_CONVENTION): Remove prototype.
5582 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5584 (_initialize_i386bsd_nat): Revise logic to determine some
5585 constants at compile time when compiling a native GDB. Warn if
5586 things don't match up with what we expect.
5587 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5589 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5590 to use date stored in `struct gdbarch_tdep'.
5591 (i386bsd_sigcontext_offset): Remove varaible.
5592 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5593 stored in `struct gdbarch_tdep'.
5594 (i386bsd_frame_saved_pc): Make static.
5595 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5596 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5597 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5598 i386fbsd4_sc_pc_offset): New variables.
5599 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5600 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5602 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5604 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5605 Modify the value of i386fbsd_sigtramp_start and
5606 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5607 i386fbsd_sigtramp_end.
5608 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5611 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5612 define to i386-linux-tdep.h.
5613 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5614 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5616 (i386_linux_register_name, i386_linux_register_byte,
5617 i386_linux_register_raw_size): Remove prototypes.
5618 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5619 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5620 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5621 TARGET_WRITE_PC): Remove defines.
5622 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5623 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5624 i386_linux_write_pc): Remove prototypes.
5625 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5626 (get_longjmp_target): Remove prototype.
5627 * i386-linux-tdep.h: New file.
5628 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5629 * i386-linux-tdep.c: Include "i386-tdep.h" and
5630 "i386-linux-tdep.h".
5631 (i386_linux_register_name, i386_linux_register_byte,
5632 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5633 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5635 (i386_linux_init_abi): New function.
5636 (_initialize_i386_linux_tdep): New function.
5638 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5639 (i386_saved_pc_after_call): Remove prototype.
5640 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5641 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5642 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5643 (i386_register_name, i386_stab_reg_to_regnum,
5644 i386_dwarf_reg_to_regnum): Remove prototypes.
5645 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5646 SIZEOF_SSE_REGS): Remove defines.
5647 (REGISTER_BYTES): Remove define.
5648 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5649 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5650 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5651 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5652 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5653 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5654 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5655 (get_longjmp_target): Remove prototype.
5656 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5657 (sigtramp_saved_pc): Remove define.
5658 (i386v4_sigtramp_saved_pc): Remove prototype.
5659 * config/i386/tm-go32.h (FRAME_CHAIN,
5660 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5661 (i386go32_frame_saved_pc): Remove prototype.
5662 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5663 (get_longjmp_target): Remove prototype.
5664 * i386-tdep.h: Include "osabi.h".
5665 (enum i386_abi): Removed.
5666 (enum struct_return): New enum.
5667 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5668 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5669 sc_pc_offset members.
5670 (i386_gdbarch_register_os_abi): Remove prototype.
5671 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5672 I386_SSE_NUM_REGS): New defines.
5673 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5674 I386_SSE_SIZEOF_REGS): New defines.
5675 (i386_register_name, i386_register_byte, i386_register_raw_size):
5677 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5678 (i386bsd_sigtramp_saved_pc): New prototype.
5679 * i386-tdep.c: Don't include "elf-bfd.h".
5680 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5681 i386_frame_chain, i386_saved_pc_after_call): Make static.
5682 (i386_frame_saved_pc): Rewrite to call architecture dependent
5683 function to deal with signal handlers. Make static.
5684 (i386go32_frame_saved_pc): Removed.
5685 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5687 (i386_get_longjmp_target): New function.
5688 (default_struct_convention, pcc_struct_convention,
5689 reg_struct_convention, valid_conventions, struct_convention): New
5691 (i386_use_struct_convention): New function.
5692 (i386v4_sigtramp_saved_pc): Renamed to
5693 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5694 (i386_pc_in_sigtramp): New function.
5695 (i386_abi_names): Removed.
5696 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5697 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5699 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5700 i386_gdbarch_register_os_abi): Removed.
5701 (struct i386_abi_handler): Removed.
5702 (i386_abi_handler_list): Removed.
5703 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5705 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5706 i386_nw_init_abi): New functions.
5707 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5708 Use set_gdbarch_xxx() calls instead of relying on macros for a
5710 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5711 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5712 Register the various architecture variants defined in this file.
5714 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5716 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5717 (struct main_type): Remove arg_types member. Update comments for
5719 (TYPE_ARG_TYPES): Remove.
5720 (TYPE_FN_FIELD_ARGS): Update.
5721 (smash_to_method_type): Update prototype.
5723 * c-typeprint.c (cp_type_print_method_args): Take method type
5724 instead of argument list. Use new argument layout. Simplify.
5725 (c_type_print_args): Use new argument layout. Simplify.
5726 (c_type_print_base): Update call to cp_type_print_method_args.
5727 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5728 argument; use die->type instead. Update call to
5729 smash_to_method_type.
5730 (read_structure_scope): Update call to dwarf2_add_member_fn.
5731 * gdbtypes.c (allocate_stub_method): Update comment.
5732 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5733 Use new argument layout.
5734 (check_stub_method): Use new argument layout. Don't count
5735 void as an argument.
5736 (print_arg_types): Update comments. Use new argument layout.
5737 (recursive_dump_type): Don't print arg_types member.
5738 * hpread.c (hpread_read_struct_type): Use new argument layout.
5739 (fixup_class_method_type): Likewise.
5740 (hpread_type_lookup): Likewise.
5741 * stabsread.c (read_type): Update calls to read_args and
5742 smash_to_method_type.
5743 (read_args): Use new argument layout. Simplify.
5744 * valops.c (typecmp): Use new argument layout. Update parameters
5745 and comments. Simplify.
5746 (hand_function_call): Use new argument layout.
5747 (search_struct_method): Update call to typecmp.
5748 (find_overload_match): Use new argument layout.
5750 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5752 * NEWS: Mention multithreaded debug support for gdbserver.
5754 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5756 * MAINTAINERS: Mention NEWS.
5758 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5760 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5761 (struct mips_objfile_private, compare_pdr_entries): New.
5762 (non_heuristic_proc_desc): Read the ".pdr" section if it
5765 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5767 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5768 (arm_debug): New static variable.
5769 (_initialize_arm_tdep): Add ``set debug arm'' command.
5771 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5773 * Makefile.in (sim_arm_h): Define.
5774 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5775 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5776 (arm_register_sim_regno): New function, map an internal REGNUM
5777 onto a simulator register number.
5778 (arm_gdbarch_init): Set register_sim_regno.
5780 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5782 * MAINTAINERS: Add self.
5784 2002-06-11 Jim Blandy <jimb@redhat.com>
5786 * source.c (source_info): Mention whether the symtab has
5787 information about preprocessor macros.
5789 Call the command `info macro', not `show macro'.
5790 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5792 (_initialize_macrocmd): Register `info_macro_command' in
5793 `infolist', not `showlist'.
5795 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5797 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5798 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5799 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5800 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5801 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5803 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5804 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5805 (_initialize_mips_tdep): Remove dead code.
5806 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5807 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5808 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5809 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5810 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5811 MIPS_LAST_FP_ARG_REGNUM): Remove.
5813 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5815 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5816 (unwind_tmp_obstack_free, parse_frame_info)
5817 (update_context, cfi_read_fp, cfi_write_fp)
5818 (cfi_frame_chain, cfi_init_extra_frame_info)
5819 (cfi_virtual_frame_pointer): Use the above function.
5820 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5822 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5824 * v850-tdep.c (v850_type_is_scalar): New function.
5825 (v850_use_struct_convention): Match current gcc implementation
5826 as close as possible.
5827 (v850_push_arguments): Fix stack_offset handling. Don't write
5828 struct_addr into register. This is done by v850_store_struct_return.
5829 (v850_extract_return_value): Care for structs.
5830 (v850_store_return_value): Ditto.
5831 (v850_store_struct_return): Actually write address.
5833 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5835 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5836 without debug information too.
5838 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5840 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5841 Make multi-arch pure.
5842 * gdbarch.h, gdbarch.c: Re-generate.
5843 * arm-tdep.c (arm_print_float_info): Update.
5844 * arch-utils.h (default_print_float_info): Update.
5845 * arch-utils.c (default_print_float_info): Update.
5846 * infcmd.c (float_info): Update call.
5848 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5850 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5851 the front of the initialize list.
5853 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5855 * infrun.c (struct inferior_status): Replace fields
5856 selected_frame_address and selected_level with field
5858 (save_inferior_status): Update. Use get_frame_id.
5859 (struct restore_selected_frame_args): Delete.
5860 (restore_selected_frame): Update. Use frame_find_by_id.
5861 (restore_inferior_status): Update.
5863 * breakpoint.h (struct breakpoint): Change type of
5864 watchpoint_frame to frame_id.
5865 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5866 call to get_current_frame.
5867 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5869 (watchpoint_check): Use frame_find_by_id.
5871 * frame.h (record_selected_frame): Delete declaration.
5872 * stack.c (record_selected_frame): Delete function.
5874 * frame.h (struct frame_id): Define.
5875 (get_frame_id): Declare.
5876 (frame_find_by_id): Declare.
5877 * frame.c (frame_find_by_id): New function.
5878 (get_frame_id): New function.
5880 2002-06-10 Andrey Volkov <avolkov@transas.com>
5882 * ser-e7kpc.c: Fix duplicated define and call of
5883 _initialize_ser_e7000pc
5885 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5887 * signals/signals.c (target_signal_from_host): Fix #ifdef
5889 (do_target_signal_to_host): Likewise.
5891 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5893 * mips-tdep.c (mips_find_abi_section): New function.
5894 (mips_gdbarch_init): Call it.
5896 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5898 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5899 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5900 after Andrew's 2002-06-08 gdbarch change.
5902 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5904 * i386-linux-nat.c (suppy_gregset): Don't supply
5905 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5907 (fill_gregset): Don't fetch it under the same circumstances.
5909 2002-06-09 Andrew Cagney <cagney@redhat.com>
5911 * Makefile.in (callback_h): Define.
5912 (remote_sim_h): Update path to remote-sim.h.
5913 (remote-rdp.o): Add $(callback_h).
5914 (remote-sim.o): Use $(callback_h).
5915 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5916 * remote-rdp.c: Include "gdb/callback.h".
5918 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5920 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5921 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5923 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5925 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5926 * rdi-share/serpardr.c: Ditto.
5927 * rdi-share/unixcomm.c: Ditto.
5928 * rdi-share/serdrv.c: Ditto.
5929 * rdi-share/hostchan.h: Ditto.
5930 * rdi-share/hostchan.c: Ditto.
5931 * rdi-share/host.h: Ditto.
5932 * rdi-share/devsw.c: Ditto.
5934 * objfiles.h: Change type of obj_private to void pointer.
5935 * pa64solib.c: Update copyright. Don't include "assert.h", use
5936 strcmp instead of STREQ, use LONGEST, do not use PTR
5937 * somsolib.c: Ditto.
5939 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5940 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5941 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5943 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5945 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5946 (default_get_saved_register): Delete function.
5947 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5948 generic_unwind_get_saved_register.
5949 * gdbarch.h, gdbarch.c: Re-generate.
5951 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5953 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5954 generic_func_frame_chain_valid.
5955 * gdbarch.h, gdbarch.c: Re-generate.
5956 * blockframe.c (generic_func_frame_chain_valid): Only check
5957 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5958 passing FP to PC_IN_CALL_DUMMY.
5961 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5963 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5964 (register_gdbarch_data): Initialize init_p.
5965 (gdbarch_data): Initialize data pointer using the init function.
5966 (init_gdbarch_data): Delete function.
5967 (gdbarch_update_p): Update.
5968 (initialize_non_multiarch): Update.
5969 (struct gdbarch): Add field initialized_p.
5970 * gdbarch.h, gdbarch.c: Re-generate.
5972 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5974 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5975 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5976 better do the things actually here.
5977 * x86-64-tdep.c (x86_64_register_name2nr): New.
5978 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5979 (x86_64_gdbarch_init): Respect the above change.
5980 * x86-64-tdep.h (x86_64_register_name2nr)
5981 (x86_64_register_nr2name): Add prototypes.
5982 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5984 2002-06-06 Michael Snyder <msnyder@redhat.com>
5986 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5987 Delete extra braces and re-indent.
5988 (d10v_store_return_value): Char return values
5989 must be shifted over by one byte in R0.
5990 (d10v_extract_return_value): Delete extra braces, re-indent.
5992 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5994 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5995 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5996 (d10v_integer_to_address): Rewrite.
5997 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5998 the d10v specific functions which take care of converting to the
6001 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6003 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6004 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6006 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6008 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6010 * config/tm-linux.h: Ditto.
6011 * config/alpha/tm-alphalinux.h: Ditto.
6012 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6013 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6014 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6015 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6016 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6017 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6018 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6019 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6020 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6021 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6022 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6023 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6024 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6025 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6026 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6027 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6028 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6029 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6030 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6031 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6032 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6033 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6034 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6035 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6036 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6037 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6038 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6039 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6040 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6041 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6042 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6043 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6044 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6045 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6046 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6047 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6048 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6050 2002-05-04 Aidan Skinner <aidan@velvet.net>
6052 * ada-exp.tab.c: New file
6053 * ada-exp.y: New file
6054 * ada-lang.c: New file
6055 * ada-lang.h: New file
6056 * ada-lex.c: New file
6057 * ada-lex.l: New file
6058 * ada-tasks.c: New file
6059 * ada-typeprint.c: New file
6060 * ada-valprint.c: New file
6062 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6064 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6065 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6067 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6069 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6070 insetead of ppc-linux-tdep.o.
6071 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6072 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6074 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6076 2002-05-07 Christian Groessler <chris@groessler.org>
6077 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6078 bit register contents for little endian hosts.
6080 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6082 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6085 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6087 * gdbarch.h: Regenerate.
6089 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6091 * MAINTAINERS: Add everyone to write-after-approval list.
6093 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6095 * stack.c (frame_info): Use frame_register_unwind instead of
6096 saved_regs. Mention when the SP is on the stack or in a register.
6098 * frame.h (frame_register_unwind_ftype): Define. Document.
6099 (struct frame_info): Add field register_unwind and
6100 register_unwind_cache.
6101 (frame_register_unwind): Declare.
6102 (generic_unwind_get_saved_register): Declare.
6104 * frame.c (frame_register_unwind): New function.
6105 (generic_unwind_get_saved_register): New function.
6107 * blockframe.c (generic_call_dummy_register_unwind): New function.
6108 (frame_saved_regs_register_unwind): New function.
6109 (set_unwind_by_pc): New function.
6110 (create_new_frame): New function.
6111 (get_prev_frame): New function.
6113 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6115 * a29k-share/: Delete directory.
6116 * remote-vx29k.c: Delete file.
6118 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6120 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6121 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6123 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6125 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6126 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6129 (sparcnbsd-tdep.o): New dependency lists.
6130 * NEWS: Note new UltraSPARC NetBSD native configuration.
6131 * configure.host (sparc64-*-netbsd*): New host.
6132 * configure.tgt (sparc-*-netbsdelf*)
6133 (sparc-*-netbsd*): Set gdb_target to nbsd.
6134 (sparc64-*-netbsd*): New target.
6135 * sparc64nbsd-nat.c: New file.
6136 * sparcnbsd-nat.c: New file.
6137 * sparcnbsd-tdep.c: New file.
6138 * sparcnbsd-tdep.h: New file.
6139 * config/sparc/nbsd.mt: New file.
6140 * config/sparc/nbsd64.mh: New file.
6141 * config/sparc/nbsd64.mt: New file.
6142 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6143 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6145 * config/sparc/nbsdaout.mt: Remove.
6146 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6147 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6149 * config/sparc/nbsdelf.mt: Remove.
6150 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6151 sparc-nat.c compatiblity defines.
6152 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6153 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6154 * config/sparc/tm-nbsd64.h: New file.
6155 * config/sparc/tm-nbsdaout.h: Remove.
6156 * config/sparc/xm-nbsd.h: Remove.
6158 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6160 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6161 * sparc-tdep.c: Include osabi.h.
6162 (gdbarch_tdep): Add osabi member.
6163 (_initialize_sparc_tdep): Use gdbarch_register.
6164 (sparc_gdbarch_init): Use generic OS ABI framework.
6165 (sparc_dump_tdep): New function.
6167 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6169 * corefile.c (do_captured_read_memory_integer): Return non-zero
6171 (safe_read_memory_integer): Copy result of memory read when
6172 status is non-zero. Also, add comments.
6174 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6176 * Makefile.in (ppc_tdep_h): Define.
6179 (rs6000-tdep.o): Use $(ppc_tdep_h).
6182 (ppcnbsd-tdep.o): New dependency lists.
6183 * ppc-tdep.h: Use generic OS ABI framework.
6184 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6185 (ppc_linux_init_abi): New functions.
6186 (ppc_sysv_abi_broken_use_struct_convention)
6187 (ppc_sysv_abi_use_struct_convention)
6188 (ppc_sysv_abi_push_arguments): Move to...
6189 * ppc-sysv-tdep.c: ...here.
6190 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6191 * rs6000-tdep.c (process_note_abi_tag_sections)
6192 (get_elfosabi): Remove.
6193 (rs6000_gdbarch_init): Use generic OS ABI framework.
6194 (rs6000_dump_tdep): New function.
6195 (_initialize_rs6000_tdep): Use gdbarch_register.
6196 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6197 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6198 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6199 of ppc-linux-tdep.o.
6200 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6201 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6202 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6203 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6204 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6205 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6207 2002-05-29 Jim Blandy <jimb@redhat.com>
6209 * macroscope.c (default_macro_scope): Put `void' in empty argument
6212 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6214 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6215 * arch-utils.c: Include "sim-regno.h".
6216 * gdbarch.sh: Don't include "sim-regno.h".
6217 * gdbarch.h, gdbarch.c: Regenerate.
6218 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6220 * arch-utils.h (legacy_register_sim_regno): To here.
6221 * remote-sim.c (legacy_register_sim_regno): Move function from
6223 * arch-utils.c (legacy_register_sim_regno): To here.
6225 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6227 * sim-regno.h: New file.
6228 * Makefile.in (sim_regno_h): Define.
6229 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6230 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6231 (legacy_register_sim_regno): New function.
6232 (one2one_register_sim_regno): New function.
6233 (gdbsim_fetch_register): Rewrite.
6234 (gdbsim_store_register): Only store a register when
6235 REGISTER_SIM_REGNO is valid.
6236 * d10v-tdep.c: Include "sim-regno.h".
6237 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6238 (d10v_ts3_register_sim_regno): Ditto.
6239 * gdbarch.sh: Include "sim-regno.h".
6240 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6241 * gdbarch.h, gdbarch.c: Regenerate.
6242 * arch-utils.h (default_register_sim_regno): Delete declaration.
6243 * arch-utils.c (default_register_sim_regno): Delete function.
6245 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6247 * ppcnbsd-nat.c: Rewrite.
6248 * ppcnbsd-tdep.c: New file.
6249 * ppcnbsd-tdep.h: New file.
6250 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6251 solib.o, and solib-svr4.o.
6252 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6253 nbsd-tdep.o, and corelow.o.
6255 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6257 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6258 `tr' and `sed'. Mention that `broken' targets are not expected to
6261 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6263 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6264 Let PC point right after the prologue before looking up symbols.
6266 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6268 * i386-tdep.c (i386_register_virtual_type): Return
6269 builtin_type_vec128i for SSE registers.
6271 * gdbtypes.h (builtin_type_vec128i): Declare.
6273 * gdbtypes.c (build_builtin_type_vec128i): New function.
6274 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6275 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6276 (build_gdbtypes): Initialize new builtin vector types.
6277 (_initialize_gdbtypes): Register new vector types with gdbarch.
6279 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6281 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6282 since it has been multi-arch'd.
6283 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6284 Move Alpha and VAX multi-arch news entries to same section
6285 as other multi-arch news.
6287 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6289 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6290 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6291 static. Rename some register numbers to put them in ns32k-tdep
6293 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6294 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6296 (_initialize_ns32k_tdep): Use gdbarch_register.
6297 * ns32k-tdep.h: New file.
6298 * ns32knbsd-tdep.c: New file.
6299 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6300 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6301 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6302 REGISTER_BYTES, REGISTER_BYTE): Remove.
6303 * config/ns32k/tm-ns32k.h: New file.
6304 * config/ns32k/tm-umax.h: Remove.
6306 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6308 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6309 ns32k_store_struct_return, ns32k_extract_return_value,
6310 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6312 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6313 ns32k_saved_pc_after_call.
6314 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6315 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6316 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6317 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6318 ns32k_extract_struct_value_address.
6320 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6322 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6323 ns32k_fix_call_dummy): New.
6324 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6325 ns32k_call_dummy_words.
6326 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6327 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6328 CALL_DUMMY_NARGS): Remove.
6329 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6331 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6333 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6334 ns32k_frame_saved_pc, ns32k_frame_args_address,
6335 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6336 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6337 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6338 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6339 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6340 (BREAKPOINT): Remove..
6341 (FRAME_CHAIN): Define as ns32k_frame_chain.
6342 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6343 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6344 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6345 (FRAME_FIND_SAVED_REGS): Remove.
6346 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6347 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6348 (POP_FRAME): Define as ns32k_pop_frame.
6350 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6352 * ns32k-tdep.c (ns32k_register_byte_32082,
6353 ns32k_register_byte_32382, ns32k_register_raw_size,
6354 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6356 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6357 ns32k_register_byte_32382.
6358 * config/ns32k/tm-umax.h: Update copyright years.
6359 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6360 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6361 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6362 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6363 (ns32k_get_enter_addr): Fix prototype.
6365 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6367 * ns32k-tdep.c: Update copyright years.
6368 (ns32k_register_name_32082): New function.
6369 (ns32k_register_name_32382): Ditto.
6370 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6371 (REGISTER_NAME): Define as ns32k_register_name_32382.
6372 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6373 (REGISTER_NAME): Define as ns32k_register_name_32082.
6375 2002-05-24 Jim Blandy <jimb@redhat.com>
6377 * dwarf2read.c (free_line_header): Use xfree, not free.
6379 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6381 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6382 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6384 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6386 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6388 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6390 From Ross Alexander at NEC Europe:
6391 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6393 2002-05-23 Michael Snyder <msnyder@redhat.com>
6395 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6396 for input, rather than parse_and_eval_address.
6398 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6400 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6401 * Makefile.in (sim_d10v_h): Update definition.
6403 2002-05-24 Andrew Cagney <cagney@redhat.com>
6405 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6406 change `2002-05-22 Michael Snyder' below.
6407 (d10v_push_arguments): Ditto.
6408 (d10v_extract_return_value): Ditto.
6410 2002-05-23 Jim Blandy <jimb@redhat.com>
6412 * macrotab.c (check_for_redefinition): Don't complain if the new
6413 definition is the same as the previous one. Take more arguments
6414 to allow the comparison.
6415 (macro_define_object, macro_define_function): Pass more arguments
6416 to check_for_redefinition.
6418 2002-05-22 Michael Snyder <msnyder@redhat.com>
6420 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6421 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6422 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6423 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6424 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6425 Add a temp variable to save a call (and a memory read).
6426 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6427 if possible (so that PC_IN_CALL_DUMMY will work).
6429 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6431 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6433 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6435 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6437 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6438 (dwarf2_build_frame_info): Add offset to fde->initial_location
6439 so that frames of shared libraries are mapped correctly.
6440 (execute_stack_op): Change type of 'result' from ULONGEST to
6443 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6445 * config/alpha/tm-nbsd.h: Include solib.h.
6447 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6449 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6450 assumptions about the host's byte order.
6452 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6454 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6456 * alphanbsd-tdep.c: Include solib-svr4.h.
6457 * shnbsd-tdep.c: Ditto.
6459 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6461 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6462 nbsd-tdep.h to dependency list.
6463 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6464 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6465 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6466 nbsdaout.mh and nbsdelf.mh consistently.
6467 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6468 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6469 nbsdaout.mt and nbsdelf.mh consistently.
6470 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6471 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6472 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6473 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6474 a.out shared library stuff from here...
6475 * config/nm-nbsdaout.h: ...to here.
6476 * config/tm-nbsd.h: Remove.
6477 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6478 * config/arm/nbsd.mh: Remove.
6479 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6481 * config/arm/nbsdaout.mh: New file.
6482 * config/arm/nbsdelf.mh: New file.
6483 * config/arm/nm-nbsdaout.h: New file.
6484 * config/i386/nbsd.mh: Remove.
6485 * config/i386/nbsd.mt: Remove.
6486 * config/i386/nbsdaout.mh: New file.
6487 * config/i386/nbsdaout.mt: New file.
6488 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6489 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6490 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6491 i386_register_u_addr): Remove.
6492 * config/i386/nm-nbsdaout.h: New file.
6493 * config/i386/nm-nbsdelf.h: Remove.
6494 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6495 (USE_STRUCT_CONVENTION): Remove.
6496 * config/i386/tm-nbsdaout.h: New file.
6497 * config/i386/tm-nbsdelf.h: Remove.
6498 * config/m68k/nbsd.mh: Remove.
6499 * config/m68k/nbsd.mt: Remove.
6500 * config/m68k/nbsdaout.mh: New file.
6501 * config/m68k/nbsdaout.mt: New file.
6502 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6503 * config/m68k/nm-nbsdaout.h: New file.
6504 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6505 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6506 * config/ns32k/nbsd.mh: Remove.
6507 * config/ns32k/nbsd.mt: Remove.
6508 * config/ns32k/nbsdaout.mh: New file.
6509 * config/ns32k/nbsdaout.mt: New file.
6510 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6511 * config/ns32k/nm-nbsdaout.h: New file.
6512 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6513 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6514 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6515 (SVR4_SHARED_LIBS): Remove.
6516 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6517 * config/sparc/nbsd.mh: Remove.
6518 * config/sparc/nbsd.mt: Remove.
6519 * config/sparc/nbsdaout.mh: New file.
6520 * config/sparc/nbsdaout.mt: New file.
6521 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6522 * config/sparc/nbsdelf.mt: New file.
6523 * config/sparc/nm-nbsdaout.h: New file.
6524 * config/sparc/nm-nbsdelf.h: Remove.
6525 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6526 * config/sparc/tm-nbsdaout.h: New file.
6528 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6530 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6532 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6534 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6536 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6538 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6540 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6542 * NEWS: Note new MIPS NetBSD native configuration.
6543 * configure.host (mips*-*-netbsd*): New host.
6544 * configure.tgt (mips*-*-netbsd*): New target.
6545 * mipsnbsd-nat.c: New file.
6546 * mipsnbsd-tdep.c: New file.
6547 * mipsnbsd-tdep.h: New file.
6548 * config/mips/nbsd.mh: New file.
6549 * config/mips/nbsd.mt: New file.
6550 * config/mips/nm-nbsd.h: New file.
6551 * config/mips/tm-nbsd.h: New file.
6553 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6555 * Makefile.in (SFILES): Add osabi.c.
6556 (COMMON_OBS): Add osabi.o.
6557 (osabi.o): New dependency list.
6558 * osabi.c: New file.
6559 * osabi.h: New file.
6560 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6562 * Makefile.in (alpha_tdep_h): Define and use instead of
6564 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6565 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6567 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6568 * alpha-tdep.h: Include osabi.h.
6569 (alpha_abi): Remove.
6570 (gdbarch_tdep): Use generic OS ABI framework.
6571 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6572 gdbarch_register_osabi.
6573 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6574 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6575 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6577 * Makefile.in (sh_tdep_h): Add osabi.h.
6578 * sh-tdep.h (sh_osabi): Remove.
6579 (gdbarch_tdep): Use generic OS ABI framework.
6580 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6581 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6582 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6583 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6585 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6586 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6587 gdbarch_register_osabi.
6588 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6589 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6590 (get_elfosabi): Rename to...
6591 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6592 ABI framework support routines.
6593 (arm_gdbarch_init): Use generic OS ABI framework.
6594 (arm_dump_tdep): Likewise.
6595 (_initialize_arm_tdep): Likewise.
6596 * arm-tdep.h: Include osabi.h.
6598 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6600 (arm_gdbarch_register_os_abi): Remove prototype.
6601 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6602 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6604 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6605 * mips-tdep.c: Include osabi.h.
6606 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6609 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6611 * h8300-tdep.c: Fix formatting.
6613 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6615 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6616 printing vector registers.
6618 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6620 From Fernando Nasser:
6621 * remote.c (remote_async_open_1): Re-throw the exception when the
6623 (remote_cisco_open): Ditto.
6624 (remote_open_1): Ditto.
6626 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6628 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6629 (remote_start_remote): Add uiout parameter. Pass through to
6630 remote_start_remote_dummy.
6631 (remote_open_1): Use catch_exception instead of catch_errors.
6632 (remote_async_open_1): Ditto.
6633 (remote_cisco_open): Ditto.
6635 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6637 * remote.c (remote_start_remote): Replace PTR with void pointer.
6638 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6641 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6643 * gdb_indent.sh: Allow the script to be run in the sim directory.
6645 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6647 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6648 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6650 * corelow.c (core_open): Only call set_gdbarch_from_file if
6653 2002-05-17 Andrey Volkov <avolkov@transas.com>
6655 * h8300-tdep.c: Add support of EXR register
6656 * config/h8300/tm-h8300.h: Ditto.
6658 2002-05-17 Andrey Volkov <avolkov@transas.com>
6660 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6662 2002-05-17 Andrey Volkov <avolkov@transas.com>
6664 * h8300-tdep.c: Change literal regnums to REGNO.
6666 2002-05-17 Jim Blandy <jimb@redhat.com>
6668 * NEWS: Note addition of macro support.
6670 Expand preprocessor macros in C expressions.
6671 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6672 (scan_macro_expansion, scanning_macro_expansion,
6673 finished_macro_expansion): New function declarations.
6674 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6675 variable declarations.
6676 * parser-defs.h (expression_context_pc): New declaration.
6677 * parse.c (expression_context_pc): New variable.
6678 (parse_exp_1): Set expression_context_pc, as well as
6679 expression_context_block.
6680 * c-exp.y (yylex): If we're not already reading the result of a
6681 macro expansion, try to macro-expand the next token. When we're
6682 done scanning a macro expansion, switch back to the mainline text.
6683 Commas and `if's in a macro's expansion don't terminate the input.
6684 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6685 (macro_original_text, macro_expanded_text,
6686 expression_macro_lookup_func, expression_macro_lookup_baton): New
6688 (scan_macro_expansion, scanning_macro_expansion,
6689 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6690 c_preprocess_and_parse): New functions.
6691 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6692 c_preprocess_and_parse, instead of c_parse.
6693 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6694 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6696 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6698 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6699 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6700 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6702 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6704 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6706 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6708 * Makefile.in (sh_tdep_h): Define and use.
6709 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6710 register enum): Move to...
6711 * * sh-tdep.h: ...here.
6712 * sh-tdep.c: Include sh-tdep.h.
6713 * sh3-rom.c: Likewise.
6714 * shnbsd-tdep.c: Likewise.
6716 2002-05-16 Michael Snyder <msnyder@redhat.com>
6718 * arm-tdep.c: Spelling fix in comment.
6720 2002-05-16 Jim Blandy <jimb@redhat.com>
6722 Add commands for manually expanding macros and showing their
6724 * macrocmd.c, macroscope.c, macroscope.h: New files.
6725 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6726 (macroscope_h): New variable.
6727 (HFILES_NO_SRCDIR): Add macroscope.h.
6728 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6729 (macroscope.o, macrocmd.o): New rules.
6731 Teach the Dwarf 2 reader to read macro information.
6732 * dwarf2read.c: #include "macrotab.h".
6733 (dwarf_macinfo_buffer): New variable.
6734 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6736 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6737 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6738 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6739 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6740 dwarf2_macro_spaces_in_definition): New complaints.
6741 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6742 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6743 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6744 the partial symbol table.
6745 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6746 from what's recorded in the partial symbol table.
6747 (read_file_scope): If the compilation unit has a
6748 `DW_AT_macro_info' attribute, read its macro information.
6749 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6751 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6754 * ser-tcp.c: Don't include <netinet/udp.h>.
6756 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6758 * MAINTAINERS: Update my email address.
6760 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6762 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6763 include file of the same name.
6765 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6767 * configure.tgt: Mark v850 as multi-arched.
6768 * config/v850/tm-v850.h: Remove file.
6769 * config/v850/v850.mt: Eliminate TM_FILE.
6771 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6773 * v850-tdep.c: Full multi-arch.
6774 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6775 Define GDB_MULTI_ARCH to 2.
6777 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6779 * p-exp.y (current_type): New static variable.
6780 Carries the type of the expression at the position that is parsed.
6781 (push_current_type, pop_current_type): Two new functions. Used
6782 to store/restore current_type in expression on specific tokens.
6783 (search_field): New static variable. Set to one after parsing a point
6784 as at that point only a FIELDNAME token should be searched.
6785 (FIELDNAME): New token. After a point only a token belonging to
6786 current_type type definition is allowed.
6787 (all over token rules): reset and change current_type according
6789 (exp '[' rule): insert implicit array index field if
6790 exp is a pascal string type.
6792 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6794 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6795 frame info. Use frame_info's saved_regs instead of matching member
6796 in extra_frame_info throughout.
6797 (v850_frame_init_saved_regs): New function.
6798 (v850_init_extra_frame_info): Move most functionality into
6799 v850_frame_init_saved_regs().
6800 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6801 (v850_frame_find_saved_regs): Remove declaration.
6802 (FRAME_FIND_SAVED_REGS): Remove definition.
6803 (v850_frame_init_saved_regs): Add declaration.
6804 (FRAME_INIT_SAVED_REGS): Add definition.
6806 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6808 * v850-tdep.c: Begin multi-arch'ing v850.
6809 (v850_target_architecture_hook): Remove function.
6810 (v850_gdbarch_init): New function. Add code previously in
6811 v850_target_architecture_hook().
6812 (_initialize_v850_tdep): Don't set target_architecture_hook.
6813 Call register_gdbarch_init() instead.
6815 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6817 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6818 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6819 (fixup_class_method_type): Likewise.
6821 2002-05-15 Jim Blandy <jimb@redhat.com>
6823 Add macro structures to GDB's symbol tables. Nobody puts anything
6825 * symtab.h (struct symtab): New member: `macro_table'.
6826 * buildsym.h (pending_macros): New global variable.
6827 * buildsym.c: #include "macrotab.h".
6828 (buildsym_init): Initialize `pending_macros'.
6829 (end_symtab): If we found macro information while reading a CU's
6830 debugging info, do build a symtab structure for it. Make the
6831 symtab point to the macro information, and clear the
6832 `pending_macros' pointer which held it while we were reading the
6834 (really_free_pendings): Free any pending macro table.
6835 * objfiles.h (struct objfile): New member: `macro_cache'.
6836 * objfiles.c (allocate_objfile): Set allocate and free functions
6837 for the macro cache's objstack.
6838 (free_objfile): Empty the macro cache's obstack.
6839 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6840 set new allocate and free functions for it.
6841 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6842 free functions for the macro cache's objstack. (Why is this
6843 function building its own objfile?)
6844 * symmisc.c (print_objfile_statistics): Print statistics on the
6846 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6848 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6850 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6851 (REGISTER_U_ADDR): Delete definition.
6852 (arm_register_u_addr): Delete declaration.
6854 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6856 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6857 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6859 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6861 * regcache.c (register_valid): Revise comments refering to "Not
6862 available" and "unavailable".
6863 * frame.c (frame_register_read): Ditto.
6864 * findvar.c (value_of_register): Ditto.
6866 2002-05-15 Andrew Cagney <cagney@redhat.com>
6868 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6869 (remote-sim.o): Update dependencies.
6870 (d10v-tdep.o): Specify dependencies.
6871 (sim_d10v_h): Define.
6873 2002-05-14 Jim Blandy <jimb@redhat.com>
6875 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6876 * macrotab.c (macro_lookup_inclusion, find_definition,
6877 new_macro_table): Same.
6879 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6880 not `! strcmp ()'. This is a dubious improvement.
6881 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6883 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6884 although it's not necessary, to avoid a warning.
6886 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6888 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6889 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6890 TYPE_INSTANCE_FLAGS.
6891 (struct main_type): New.
6892 (struct type): Move most members to struct main_type. Change
6893 cv_type and as_type to new type_chain member. Add instance_flags.
6894 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6895 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6896 (finish_cv_type): Remove prototype.
6897 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6899 (alloc_type_instance): New function.
6900 (smash_type): New function.
6901 (make_pointer_type, make_reference_type, make_function_type)
6902 (smash_to_member_type, smash_to_method_type): Call smash_type.
6903 (make_qualified_type): New function.
6904 (make_type_with_address_space): Call make_qualified_type.
6905 (make_cv_type): Likewise.
6906 (finish_cv_type): Remove unnecessary function.
6907 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6908 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6909 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6910 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6911 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6912 * hpread.c (hpread_read_struct_type): Likewise.
6913 * stabsread.c (read_struct_type): Likewise.
6915 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6917 * configure.tgt: Add a catch all sh* target, for cases like
6918 sh[2,3,4]-elf and sh-hms.
6920 2002-05-14 Keith Seitz <keiths@redhat.com>
6922 * event-loop.c (create_file_handler): Don't do anything but
6923 update data when we are given a fd which we are already
6926 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6928 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6929 (update_context): Use __func__ in warnings.
6931 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6933 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6934 and tcp_close to net_open and net_close.
6935 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6936 using UDP if requested. Don't try to disable Nagle on UDP
6938 * remote.c (remote_serial_open): New function. Warn about UDP.
6939 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6941 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6943 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6945 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6947 * configure.tgt: Remove sh-hms target.
6948 * MAINTAINERS: Don't list sh-hms as a separate target.
6950 2002-05-13 Jim Blandy <jimb@redhat.com>
6952 Add first preprocessor macro-expansion files.
6953 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6954 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6955 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6956 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6957 (COMMON_OBS): Add macrotab.o, macroexp.o.
6958 (macroexp.o, macrotab.o): New rules.
6960 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6962 * config/m88k/tm-m88k.h: Update copyright.
6963 (m88k_target_write_pc): Declare
6964 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6965 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6966 (SHIFT_INST_REGS): Update definition.
6967 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6968 using old definition of TARGET_WRITE_PC.
6969 * regcache.c (generic_target_write_pc): Delete code handling
6971 * gdbarch.sh (NNPC_REGNUM): Delete.
6972 * gdbarch.h, gdbarch.c: Regenerate.
6974 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6976 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6979 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6981 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6982 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6983 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6985 * c-typeprint.c (cp_type_print_method_args): Likewise.
6986 (c_type_print_args): Likewise.
6987 * d10v-tdep.c (d10v_push_arguments): Likewise.
6988 (d10v_extract_return_value): Likewise.
6989 * expprint.c (print_subexp): Likewise.
6990 * gdbtypes.c (lookup_primitive_typename): Likewise.
6991 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6992 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6993 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6994 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6995 (TYPE_VECTOR): Likewise.
6996 * hpread.c (hpread_read_struct_type)
6997 (fix_static_member_physnames, fixup_class_method_type)
6998 (hpread_type_lookup): Likewise.
6999 * mdebugread.c (parse_symbol, parse_type): Likewise.
7000 * p-lang.c (is_pascal_string_type): Likewise.
7001 * valops.c (hand_function_call): Likewise.
7002 * x86-64-tdep.c (classify_argument): Likewise.
7004 * hpread.c (hpread_read_function_type)
7005 (hpread_read_doc_function_type): Call replace_type.
7006 * dstread.c (create_new_type): Delete.
7007 (decode_dst_structure, process_dst_function): Call alloc_type.
7008 Use type access macros.
7010 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7012 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7013 the're not supported by the current architecture.
7014 (i387_fill_fxsave): Likewise.
7016 2002-05-12 Fred Fish <fnf@redhat.com>
7018 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7019 sect_index_xxx members to index the first slot in section_offsets
7020 if all of the section_offsets are zero.
7022 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7024 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7025 checked in with last change.
7027 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7029 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7030 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7033 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7035 * Makefile.in: Update dependencies.
7037 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7039 * language.c (local_hex_string_custom): Simplify. Do not depend
7040 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7042 * memattr.c (mem_info_command): Replace calls to
7043 longest_local_hex_string and longest_local_hex_string_custom.
7044 * buildsym.c (make_blockvector): Ditto.
7045 * solib.c (info_sharedlibrary_command): Ditto.
7046 * tracepoint.c (tracepoints_info): Ditto.
7047 * symtab.c (print_msymbol_info): Ditto.
7049 * language.c (local_hex_string): Delete.
7050 (local_hex_string_custom): Delete.
7051 (longest_local_hex_string): Rename to local_hex_string.
7052 (longest_local_hex_string_custom): Rename to
7053 local_hex_string_custom.
7054 * language.h (local_hex_string): Change parameter type to LONGEST.
7055 (local_hex_string_custom): Ditto.
7056 (longest_local_hex_string): Delete declaration.
7057 (longest_local_hex_string_custom): Ditto.
7059 * solib.c: Update copyright.
7060 * memattr.c: Update copyright.
7062 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7064 * arch-utils.h (legacy_register_to_value): Declare.
7065 (legacy_value_to_register): Declare.
7066 (legacy_convert_register_p): Declare.
7067 * arch-utils.c (legacy_register_to_value): New function.
7068 (legacy_value_to_register): New function.
7069 (legacy_convert_register_p): New function.
7071 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7072 (VALUE_TO_REGISTER): Define.
7073 (CONVERT_REGISTER_P): Define.
7074 * gdbarch.h, gdbarch.c: Regenerate.
7076 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7078 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7081 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7082 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7084 * Makefile.in: Update dependencies for valops.c.
7085 * valops.c: Include "gdb_assert.h".
7086 (typecmp): Skip THIS parameter to methods.
7087 (find_method_list): Remove static_memfuncp argument,
7088 update callers. Check for stub methods.
7089 (find_value_oload_method_list): Don't set *static_memfuncp.
7090 (find_overload_match): Don't check for stub methods. Assert
7091 that methods are not stubbed. Handle static methods.
7092 (value_find_oload_method_list): Remove static_memfuncp argument.
7093 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7094 to the argument list for static stub methods.
7095 * value.h (value_find_oload_method_list): Update prototype.
7097 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7099 * arch-utils.h (generic_register_size): Declare.
7100 (generic_register_raw_size, generic_register_virtual_size): Delete
7102 * arch-utils.c (generic_register_raw_size): Delete.
7103 (generic_register_size): New function.
7104 (generic_register_virtual_size): Delete.
7106 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7107 default generic_register_size.
7108 * gdbarch.h, gdbarch.c: Re-generate.
7110 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7111 register_virtual_size.
7112 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7113 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7115 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7117 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7118 * gdbarch.h, gdbarch.c: Regenerate.
7119 * gnu-v3-abi.c: Update copyright.
7120 (vtable_address_point_offset): Update.
7121 (gnuv3_rtti_type): Update.
7122 (gnuv3_baseclass_offset): Update.
7123 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7124 (init_fetch_link_map_offsets): Update.
7125 * remote.c (get_remote_state): Update.
7127 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7129 * TODO: Remove value_headof/value_from_vtable_info comment.
7130 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7131 * values.c (value_headof, value_from_vtable_info): Delete.
7132 * value.h (value_from_vtable_info): Delete prototype.
7134 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7136 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7137 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7139 (gdb_assert_h): Define.
7140 (gdb_wait_h): Define.
7141 (gdb_regex_h): Define.
7143 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7145 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7146 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7148 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7150 * nbsd-tdep.c: Fix comment.
7152 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7154 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7155 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7156 (nbsd-tdep.o): New dependency list.
7157 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7159 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7160 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7161 * nbsd-tdep.c: New file.
7162 * nbsd-tdep.h: New file.
7163 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7165 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7166 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7167 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7168 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7170 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7172 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7173 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7174 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7175 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7176 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7177 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7179 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7181 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7182 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7183 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7184 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7185 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7186 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7187 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7189 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7191 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7192 fetch_elfcore_registers to...
7193 * i386nbsd-tdep.c: ...here.
7194 (i386nbsd_use_struct_convention): Rename to...
7195 (i386nbsd_aout_use_struct_convention): ...this.
7196 (i386nbsd_supply_reg): New function.
7197 (i386nbsd_fill_reg): New function.
7198 (fetch_core_registers): Use i386nbsd_supply_reg.
7199 (fetch_elfcore_registers): Likewise.
7200 (_initialize_i386nbsd_tdep): New function.
7201 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7202 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7203 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7204 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7205 (i386nbsd_aout_use_struct_convention): ...this.
7207 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7209 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7210 (store_inferior_registers): Use shnbsd_fill_reg.
7211 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7212 sh_nbsd_supply_register): Collapse into...
7213 (shnbsd_supply_reg): ...this.
7214 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7215 (shnbsd_fill_reg): ...this.
7216 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7217 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7218 (fetch_core_registers): Use shnbsd_supply_reg.
7219 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7220 (sh_nbsd_core_fns): Rename to...
7221 (shnbsd_core_fns): ...this.
7222 (sh_nbsd_elfcore_fns): Rename to...
7223 (shnbsd_elfcore_fns): ...this.
7224 (sh_nbsd_init_abi): Rename to...
7225 (shnbsd_init_abi): ...this.
7226 (_initialize_sh_nbsd_tdep): Rename to...
7227 (_initialize_shnbsd_tdep): ...this.
7228 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7229 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7230 sh_nbsd_fill_register): Remove prototypes.
7231 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7233 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7235 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7236 (i387-nat.o): Delete dependency list.
7237 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7238 (x86-64-linux-nat.o): Likewise.
7239 * i387-nat.c: Delete file, moving contents to...
7240 * i387-tdep.c: ...here.
7241 * i387-nat.h: Rename...
7242 * i387-tdep.h: ...to this.
7243 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7244 * i386-linux-nat.c: Likewise.
7245 * i386bsd-nat.c: Likewise.
7246 * i386gnu-nat.c: Likewise.
7247 * i386nbsd-nat.c: Likewise.
7248 * i386v4-nat.c: Likewise.
7249 * x86-64-linux-nat.c: Likewise.
7250 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7251 * config/i386/go32.mh (NATDEPFILES): Likewise.
7252 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7253 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7254 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7255 * config/i386/linux.mh (NATDEPFILES): Likewise.
7256 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7257 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7258 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7259 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7261 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7263 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7264 (alphanbsd-nat.o): Remove dependency list.
7265 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7266 * alphanbsd-nat.c: Delete. Contents moved to...
7267 * alphanbsd-tdep.c: ...here.
7268 (_initialize_alphanbsd_tdep): Register core functions.
7269 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7271 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7273 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7274 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7275 (alphanbsd-nat.o): Likewise.
7276 (alphabsd-tdep.o): New dependency list.
7277 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7278 (fill_gregset): Use alphabsd_fill_reg.
7279 (supply_fpregset): Use alphabsd_supply_fpreg.
7280 (fill_fpregset): Use alphabsd_fill_fpreg.
7281 (fetch_inferior_registers): Use struct reg and struct fpreg
7282 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7283 and alphabsd_supply_fpreg.
7284 (store_inferior_registers): Use struct reg and struct fpreg
7285 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7286 and alphabsd_fill_fpreg.
7287 * alphabsd-tdep.c: New file.
7288 * alphabsd-tdep.h: New file.
7289 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7290 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7291 alphabsd_supply_fpreg.
7292 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7293 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7295 2002-05-11 Eric Christopher <echristo@redhat.com>
7297 * mips-tdep.c (mips_double_register_type): Fix thinko.
7298 (mips_single_register_type): Ditto.
7299 * MAINTAINERS: Add self.
7301 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7303 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7304 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7305 right thing on architectures with different endianness and/or
7308 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7310 From Christian Limpach <chris@Pin.LU>
7311 * configure.in: Change sed expression which comments out
7312 NATDEPFILES to also comment out continuation lines.
7313 * configure: Regenerate.
7315 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7317 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7320 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7322 * sh-tdep.c: Include correct file.
7324 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7326 New support for sh64-elf (sh5) target.
7328 * configure.tgt: For sh64-elf target, default to sh-elf.
7330 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7331 (struct gdbarch_tdep): Add new fields for new registers and ABI
7334 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7335 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7336 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7337 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7338 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7339 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7340 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7341 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7342 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7343 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7344 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7345 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7346 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7347 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7348 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7349 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7350 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7351 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7352 sign_extend, sh64_nofp_frame_init_saved_regs,
7353 sh64_init_extra_frame_info, sh64_get_saved_register,
7354 sh64_extract_struct_value_address, sh64_pop_frame,
7355 sh64_push_arguments, sh64_extract_return_value,
7356 sh64_store_return_value, sh64_show_media_regs,
7357 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7358 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7359 sh_sh64_register_virtual_type,
7360 sh_sh64_register_convert_to_virtual,
7361 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7362 sh64_register_read, sh64_pseudo_register_write,
7363 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7364 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7365 sh64_do_pseudo_register, sh_compact_do_registers_info,
7366 sh64_do_registers_info, sh_gdbarch_init): New functions.
7368 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7370 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7372 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7374 * linespec.c (decode_line_1): Check for a double quote after
7375 a filename correctly.
7377 2002-05-10 Jim Blandy <jimb@redhat.com>
7379 Properly track the size of the current objfile's .debug_line section.
7380 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7381 (DWARF_LINE_SIZE): New macro.
7382 (dwarf2_build_psymtabs_hard): Record the line section's size in
7383 the partial symbol table.
7384 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7387 2002-05-10 Petr Sorfa <petrs@caldera.com>
7389 * ia64-tdep.c: Handle breakpoints on L instruction type
7390 in MLX instruction bundle by moving the breakpoint to
7391 the third slot (X instruction type) as L holds only data.
7393 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7395 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7396 (process_one_symbol): Complain about discarding local symbols
7397 due to a misplaced N_LBRAC entry.
7399 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7401 From Daniel Berlin <dan@cgsoftware.com>
7402 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7403 decrease the depth we are at, in the case of templates.
7405 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7407 * mips-tdep.c (mips_float_register_type): New function.
7408 (mips_double_register_type): New function.
7409 (mips_print_register): Use them.
7410 (do_fp_register_row): Likewise.
7412 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7414 * signals/signals.c (signals): Remove conditional compilation around
7415 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7416 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7418 2002-05-09 Michael Snyder <msnyder@redhat.com>
7420 * remote-rdp.c (remote_rdp_can_run): Remove.
7422 2002-05-09 Tom Tromey <tromey@redhat.com>
7424 * jv-valprint.c (java_val_print): Handle `char' as a special case
7427 2002-05-09 Michael Snyder <msnyder@redhat.com>
7429 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7430 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7431 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7432 str r(0123),[sp,#nn].
7433 (arm_skip_prologue): Ditto. Also make disassembly
7434 order-independent by placing it in a loop.
7436 2002-05-06 Michael Snyder <msnyder@redhat.com>
7438 * stabsread.c (read_type): Add recognition for new attribute:
7439 "@V;" means that an array type is actually a vector.
7440 This is analogous to the vector flag that's been added to dwarf2.
7442 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7444 * i386-tdep.h (i386_abi): New enum.
7445 (struct gdbarch_tdep): Replace os_ident member with abi.
7446 (i386_gdbarch_register_os_abi): New prototype.
7447 * i386-tdep.c (i386_abi_names): New array.
7448 (process_note_abi_tag_sections): Removed.
7449 (process_note_sections): New function.
7450 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7451 (struct i386_abi_handler): New struct.
7452 (i386_abi_handler_list): New variable.
7453 (i386_gdbarch_register_os_abi): New function.
7454 (i386_gdbarch_init): Adapt for the changes given above.
7456 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7458 * gregset.h: Say "GNU/Linux".
7460 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7462 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7463 (build_gdbtypes): Build builtin_type_v2_float.
7464 (_initialize_gdbtypes): Register new builtin type.
7466 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7468 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7469 (clear_gdbarch_swap): New function.
7470 (initialize_non_multiarch): Call.
7471 (gdbarch_update_p): Before calling init(), swap out and clear the
7472 existing architecture.
7473 * gdbarch.c: Regenerate.
7475 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7477 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7480 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7482 * sh-nbsd-nat.c: Rename to...
7483 * shnbsd-nat.c: ...this.
7484 * sh-nbsd-tdep.c: Rename to...
7485 * shnbsd-tdep.c: ...this.
7486 * sh-nbsd-tdep.h: Rename to...
7487 * shnbsd-tdep.h: ...this.
7488 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7489 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7491 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7493 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7494 concatenation for command help messages.
7496 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7498 * NEWS: Note new sh*-*-netbsdelf* configuration.
7499 * configure.host: Set gdb_host_cpu to sh for all sh*.
7500 (sh*-*-netbsdelf*): New host.
7501 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7502 (sh*-*-netbsdelf*): New target.
7503 * sh-nbsd-nat.c: New file.
7504 * sh-nbsd-tdep.c: New file.
7505 * sh-nbsd-tdep.h: New file.
7506 * config/sh/nbsd.mh: New file.
7507 * config/sh/nbsd.mt: New file.
7508 * config/sh/nm-nbsd.h: New file.
7509 * config/sh/tm-nbsd.h: New file.
7511 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7513 * sh-tdep.c (sh_osabi_names): Declare.
7514 (process_note_abi_tag_sections): New function.
7515 (get_elfosabi): Ditto.
7516 (sh_gdbarch_register_os_abi): Ditto.
7517 (sh_dump_tdep): Ditto.
7518 _initialize_sh_tdep): Use gdbarch_register to register
7519 sh_gdbarch_init and sh_dump_tdep.
7520 * config/sh/tm-sh.h (sh_osabi): Declare.
7521 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7523 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7525 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7526 (thumb_scan_prologue): Ditto.
7527 (arm_find_callers_reg): Ditto.
7528 (arm_frame_chain): Ditto.
7529 (arm_init_extra_frame_info): Ditto.
7530 (arm_frame_saved_pc): Ditto.
7531 (arm_pop_frame): Ditto.
7532 (arm_push_return_address): New function.
7533 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7534 call_dummy_location, call_dummy_breakpoint_offset_p,
7535 call_dummy_breakpoint_offset, call_dummy_p,
7536 call_dummy_stack_adjust_p, call_dummy_words,
7537 sizeof_call_dummy_words, call_dummy_start_offset,
7538 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7539 call_dummy_address, push_return_address and push_dummy_frame for
7540 generic dummy frames.
7542 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7544 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7545 size computation for alloca.
7546 (sh_fp_frame_init_saved_regs): Likewise.
7548 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7550 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7551 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7552 * arm-tdep.c (arm_store_return_value): Use them.
7553 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7554 * remote-rdp.c (remote_rdp_fetch_register): Use
7555 ARM_MAX_REGISTER_RAW_SIZE.
7556 (remote_rdp_store_register): Likewise.
7558 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7560 * dwarf2cfi.c: Code cleanup, removed unused variables,
7561 added default labels to switch {} statements.
7562 * x86-64-tdep.c: Ditto.
7563 * x86-64-linux-nat.c: Ditto.
7565 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7567 * solib.h: Protect against multiple inclusion.
7569 2002-05-06 Jim Blandy <jimb@redhat.com>
7571 Add first preprocessor macro-expansion files.
7572 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7573 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7574 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7575 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7576 (COMMON_OBS): Add macrotab.o, macroexp.o.
7577 (macroexp.o, macrotab.o): New rules.
7579 Separate the job of reading the line number info statement program
7580 header (...expialidocious) out into its own function.
7581 * dwarf2read.c (struct line_head, struct filenames, struct
7582 directories): Replace with...
7583 (struct line_header): New structure, containing the full
7584 contents of the statement program header, including the
7585 include directory and file name tables.
7586 (read_file_scope): If we have line number info, instead of just
7587 calling dwarf_decode_lines to do all the work, call
7588 dwarf_decode_line_header first to get a `struct line_header'
7589 containing the data in the statement program header, and then
7590 pass that to dwarf_decode_lines, which will pick up where that
7591 left off. Be sure to clean up the `struct line_header' object.
7592 (dwarf_decode_line_header, free_line_header, add_include_dir,
7593 add_file_name): New functions.
7594 (dwarf_decode_lines): Move all the code to read the statement
7595 program header into dwarf_decode_line_header. Take the line
7596 header it built as the first argument, instead of the offset to
7597 the compilation unit's line number info. Use the new `struct
7598 line_header' type instead of the old structures. No need to do
7599 cleanups here now, since we don't allocate anything.
7600 (dwarf2_statement_list_fits_in_line_number_section,
7601 dwarf2_line_header_too_long): New complaints.
7603 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7605 * gdbtypes.c (init_vector_type): New function.
7606 (build_builtin_type_vec128): Simplify the representation of SIMD
7608 (build_gdbtypes): Initialize new builtin vector types.
7609 (_initialize_gdbtypes): Register new vector types with gdbarch.
7610 (builtin_type_v4_float, builtin_type_v4_int32,
7611 builtin_type_v8_int16, builtin_type_v16_int8,
7612 builtin_type_v2_int32, builtin_type_v4_int16,
7613 builtin_type_v8_int8): New (renamed) SIMD types.
7615 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7617 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7618 (i387_fill_fxsave): Likewise.
7620 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7622 * alpha-tdep.c (alpha_extract_return_value): Don't use
7623 non-constant array size in prototype.
7625 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7627 From Brian Taylor <briant at model dot com>:
7628 * ui-out.c (ui_out_field_core_addr): Use the function
7629 longest_local_hex_string_custom'to format addresses > 32 bits
7632 * ui-out.c (ui_out_field_core_addr): Update comment.
7634 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7636 * stack.c (select_and_print_frame): Make static. Delete the
7638 (func_command): Update call.
7639 (select_frame_command): Delete code computing the frame level.
7640 * frame.h (select_and_print_frame): Delete declaration.
7642 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7644 * sparc-tdep.c (sparc_get_saved_register): Comment why
7645 get_prev_frame call is safe.
7647 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7649 * frame.h (select_frame): Delete level parameter.
7650 * stack.c (select_frame): Update. Use frame_relative_level to
7651 obtain the frame's level.
7652 (select_and_print_frame): Update call.
7653 (select_frame_command): Ditto.
7654 (up_silently_base): Ditto.
7655 (down_silently_base): Ditto.
7656 * ocd.c (ocd_start_remote): Ditto.
7657 * remote-rdp.c (remote_rdp_open): Ditto.
7658 * remote-mips.c (mips_initialize): Ditto.
7659 (common_open): Ditto.
7660 * remote-e7000.c (e7000_start_remote): Ditto.
7661 * m3-nat.c (select_thread): Ditto.
7662 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7663 (child_get_current_exception_event): Ditto.
7664 * varobj.c (varobj_create): Ditto.
7665 (varobj_update): Ditto.
7666 (c_value_of_root): Ditto.
7667 * tracepoint.c (finish_tfind_command): Ditto.
7668 * corelow.c (core_open): Ditto.
7669 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7670 * thread.c (info_threads_command): Ditto.
7671 (switch_to_thread): Ditto.
7672 * infrun.c (normal_stop): Ditto.
7673 (restore_selected_frame): Ditto.
7674 (restore_inferior_status): Ditto.
7675 * breakpoint.c (insert_breakpoints): Ditto.
7676 (watchpoint_check): Ditto.
7677 (bpstat_stop_status): Ditto.
7678 (do_enable_breakpoint): Ditto.
7679 * blockframe.c (flush_cached_frames): Ditto.
7680 (reinit_frame_cache): Ditto.
7682 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7684 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7687 2002-05-04 Jim Blandy <jimb@redhat.com>
7689 * gdbtypes.c (replace_type): Doc fix.
7691 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7693 * valprint.c (strcat_longest): Delete commented out function.
7696 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7698 * MAINTAINERS: Mark a29k as deleted.
7699 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7700 Move new configurations to the top.
7701 * configure.tgt: Remove a29k.
7702 * config/a29k/tm-vx29k.h: Delete.
7703 * config/a29k/vx29k.mt: Delete.
7704 * config/a29k/tm-a29k.h: Delete.
7705 * config/a29k/a29k-udi.mt: Delete.
7706 * config/a29k/a29k.mt: Delete.
7707 * a29k-tdep.c: Delete.
7708 * remote-udi.c: Delete.
7709 * remote-mm.c: Delete.
7710 * remote-eb.c: Delete.
7711 * remote-adapt.c: Delete.
7712 * Makefile.in: Remove obsolete code.
7713 * config/s390/s390x.mt: Ditto.
7714 * config/s390/s390.mt: Ditto.
7715 * config/sparc/sparclynx.mh: Ditto.
7716 * config/sparc/linux.mh: Ditto.
7717 * config/pa/hppaosf.mh: Ditto.
7718 * config/pa/hppabsd.mh: Ditto.
7719 * config/ns32k/nbsd.mt: Ditto.
7720 * config/mips/vr5000.mt: Ditto.
7721 * config/m68k/sun3os4.mh: Ditto.
7722 * config/m68k/nbsd.mt: Ditto.
7723 * config/m68k/m68klynx.mh: Ditto.
7724 * config/m32r/m32r.mt: Ditto.
7725 * config/i386/x86-64linux.mt: Ditto.
7726 * config/i386/nbsdelf.mt: Ditto.
7727 * config/i386/nbsd.mt: Ditto.
7728 * config/i386/i386lynx.mh: Ditto.
7730 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7732 * target.c (debug_print_register): New function. Handle oversize
7734 (debug_to_fetch_registers): Call.
7735 (debug_to_store_registers): Call.
7737 2002-05-03 Jim Blandy <jimb@redhat.com>
7739 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7740 (read_type): Doc fix.
7741 * gdbtypes.c (replace_type): Doc fix.
7743 * stabsread.c (multiply_defined_struct): New complaint.
7744 (read_struct_type): If the type we were passed isn't empty, or
7745 incomplete, don't read the new struct type into it; complain,
7746 and return the original type unchanged. Take a new `type_code'
7747 argument, which is the type code for the new type.
7748 (read_type): Rather than storing the type's type code here, pass
7749 it as an argument to read_struct_type, and let that take care of
7750 storing it. That way, we don't overwrite the original type code,
7751 so read_struct_type can use it to decide whether we're overwriting
7752 something we shouldn't.
7753 (complain_about_struct_wipeout): New function.
7755 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7757 * gdbarch.sh: Assert that gdbarch is non-NULL.
7758 * gdbarch.c: Regenerate.
7760 2002-05-03 Jason Merrill <jason@redhat.com>
7762 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7765 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7767 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7768 (x86_64_dwarf2gdb_regno_map_length),
7769 (x86_64_dwarf2_reg_to_regnum): Added.
7770 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7771 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7772 (_initialize_x86_64_tdep): Synced with the change above.
7773 (x86_64_skip_prologue): Reformulated message.
7775 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7777 * f-exp.y: Also use new prev_lexptr variable
7778 to improve error reporting. Based on Michael Snyder
7779 2002-04-24 dated patch to c-exp.y.
7780 * jv-exp.y: Likewise.
7781 * m2-exp.y: Likewise.
7783 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7785 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7786 we are dealing with vectors.
7788 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7790 * config/m68k/tm-nbsd.h: Obvious fix,
7791 correct machine name.
7793 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7795 * p-typeprint.c (pascal_type_print_base): Add support
7796 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7798 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7800 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7801 for fondamental pascal 'char' type.
7803 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7805 * p-lang.h (is_pascal_string_type): Declaration changed,
7806 new sixth argument of type char ** added.
7807 * p-lang.c (is_pascal_string_type): Implementation
7808 changed. Args length_pos, length_size, string_pos, char_size
7809 can now be NULL. New argument arrayname set to the field
7810 name of the char array. Return value set to char array
7811 field index plus one.
7812 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7813 is_pascal_string_type function.
7815 2002-05-02 Andrew Cagney <cagney@redhat.com>
7817 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7818 <cagney@redhat.com> change.
7819 * gdbarch.c: Regenerate.
7821 2002-05-02 Andrew Cagney <cagney@redhat.com>
7823 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7824 before probing for a new one. Detect errorenous gdbarch_init
7826 * gdbarch.c: Regenerate.
7828 2002-05-01 Andrew Cagney <cagney@redhat.com>
7830 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7831 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7832 * config/v850/tm-v850.h: Ditto. Update copyright.
7834 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7836 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7839 2002-04-30 Michael Snyder <msnyder@redhat.com>
7841 * arm-tdep.c: Whitespace clean-ups.
7842 (arm_skip_prologue): Fix thinko; two lines
7843 should have been removed as part of 4/24 change.
7845 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7847 * rs6000-tdep.c: Added comment describing how fpscr register
7848 numbers were chosen.
7850 2002-04-30 Michael Snyder <msnyder@redhat.com>
7852 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7854 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7856 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7857 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7858 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7860 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7862 From Louis Hamilton <hamilton@redhat.com>:
7863 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7864 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7865 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7866 not bfd-private xcoff data, to determine wordsize.
7867 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7869 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7871 GDB 5.2 released from 5.2 branch.
7873 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7875 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7876 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7877 (x86_64_register_info_table): Added comments with register numbers.
7879 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7881 * rs6000-tdep.c (rs6000_extract_return_value,
7882 rs6000_store_return_value): Handle returning vectors.
7883 (rs6000_gdbarch_init): Use
7884 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7885 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7887 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7889 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7890 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7892 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7894 * hpread.c (hpread_psymtab_to_symtab_1,
7895 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7896 with fprintf_unfiltered (gdb_stderr,...).
7898 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7900 * remote-array.c (printf_monitor, write_monitor,
7901 array_insert_breakpoint, array_remove_breakpoint ):
7902 Replace fprintf (stderr,...
7903 with fprintf_unfiltered (gdb_stderr,....
7904 * remote-es.c: Likewise.
7905 * remote-os9k.c: Likewise.
7906 * remote-st.c: Likewise.
7908 2002-04-28 Andreas Schwab <schwab@suse.de>
7910 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7911 linux-proc.o and gcore.o.
7913 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7915 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7916 code without frame pointers.
7918 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7920 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7923 2002-04-26 Ben Elliston <bje@redhat.com>
7925 * target.c (do_xfer_memory): Correct reference to the new option
7926 "trust-readonly-sections".
7928 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7930 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7931 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7932 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7934 (read_array_type): Record the fact that this array type is really a
7935 vector (i.e. are passed in by value).
7937 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7939 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7940 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7941 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7942 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7943 * alpha-linux-tdep.c: Include frame.h.
7944 (alpha_linux_sigcontext_addr): New function.
7945 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7946 alpha_linux_sigcontext_addr.
7947 * alpha-osf1-tdep.c: Include gdbcore.h.
7948 (alpha_osf1_sigcontext_addr): New function.
7949 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7950 alpha_osf1_sigcontext_addr.
7951 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7952 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7954 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7956 * stack.c (selected_frame_level):
7957 (select_frame): Do not set selected_frame_level.
7958 * frame.h (selected_frame_level): Delete declaration.
7960 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7962 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7963 convert_from_func_ptr-addr when AIX / PowerOpen.
7965 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7967 * valops.c (hand_function_call): Call
7968 generic_save_call_dummy_addr.
7969 * frame.h (generic_save_call_dummy_addr): Declare.
7970 * blockframe.c (struct dummy_frame): Add fields call_lo and
7972 (generic_find_dummy_frame): Check for PC in range call_lo to
7973 call_hi instead of entry_point_address.
7974 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7975 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7976 (generic_save_call_dummy_addr): New function.
7978 2002-04-24 David S. Miller <davem@redhat.com>
7980 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7981 sparc_skip_prologue.
7982 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7983 information to find prologue when possible.
7984 (sparc_prologue_frameless_p): Call examine_prologue directly.
7985 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7986 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7988 (SKIP_PROLOGUE): Likewise.
7990 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7992 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7993 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7994 indicate that the condition it was testing is always true.
7995 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7996 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7997 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7999 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8001 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8002 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8003 tdep->jb_pc and tdep->jb_elt_size.
8004 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8005 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8006 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8007 * alpha-nat.c (get_longjmp_target): Remove.
8008 (JB_ELEMENT_SIZE): Ditto.
8010 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8011 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8012 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8013 to alpha_get_longjmp_target.
8014 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8015 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8016 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8018 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8020 * README: Update to GDB 5.2.
8022 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8024 * gdbarch.sh (LC_ALL): Set to `c'.
8026 2002-04-25 Theodore A. Roth <troth@verinet.com>
8028 * avr-tdep.c: Ran through gdb_indent.sh.
8030 2002-04-25 Theodore A. Roth <troth@verinet.com>
8032 * MAINTAINERS: Add myself as AVR maintainer.
8033 * NEWS: Note new target avr.
8035 2002-04-25 Theodore A. Roth <troth@verinet.com>
8037 * Makefile.in: Add support for AVR target.
8038 * configure.tgt: Add support for AVR target.
8039 * avr-tdep.c: New file
8040 * config/avr/avr.mt: New file.
8042 2002-04-25 Theodore A. Roth <troth@verinet.com>
8044 * MAINTAINERS: Add myself to write-after-approval.
8046 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8048 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8049 with fprintf_unfiltered (gdb_stderr,....
8051 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8054 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8056 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8058 * p-exp.y: Also use new prev_lexptr variable
8059 to improve error reporting. Based on Michael Snyder
8060 2002-04-24 dated patch to c-exp.y.
8062 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8064 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8065 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8066 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8068 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8070 (FUNCTION_START_OFFSET): Remove.
8071 (BREAKPOINT): Ditto.
8073 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8075 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8078 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8080 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8081 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8082 alpha_linux_pc_in_sigtramp.
8083 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8084 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8085 alpha_osf1_pc_in_sigtramp.
8086 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8087 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8088 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8089 alphafbsd_pc_in_sigtramp.
8090 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8091 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8092 alphanbsd_pc_in_sigtramp.
8093 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8094 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8096 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8098 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8100 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8102 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8104 (alphanbsd-nat.o): New dependency list.
8105 (alphanbsd-tdep.o): Ditto.
8106 * NEWS: Note new native NetBSD/alpha configuration.
8107 * alphanbsd-nat.c: New file.
8108 * alphanbsd-tdep.c: Ditto.
8109 * configure.host (alpha*-*-netbsd*): New host.
8110 * configure.tgt (alpha*-*-netbsd*): New target.
8111 * config/alpha/nbsd.mh: New file.
8112 * config/alpha/nbsd.mt: Ditto.
8113 * config/alpha/nm-nbsd.h: Ditto.
8114 * config/alpha/tm-nbsd.h: Ditto.
8116 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8118 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8119 (alpha-osf1-tdep.o): New dependency list.
8120 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8121 and skip_sigtramp_frame members.
8122 * alpha-linux-tdep.c: Include gdbcore.h.
8123 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8124 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8125 * alpha-osf1-tdep.c: New file.
8126 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8128 (alpha_frame_past_sigtramp_frame): New function.
8129 (alpha_dynamic_sigtramp_offset): Ditto.
8130 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8131 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8132 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8133 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8134 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8135 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8136 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8137 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8138 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8139 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8140 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8141 to find_solib_trampoline_target.
8142 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8143 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8144 (SKIP_TRAMPOLINE_CODE): Remove.
8145 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8146 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8147 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8148 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8149 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8150 (PROC_SIGTRAMP_MAGIC): Ditto.
8151 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8152 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8153 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8154 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8155 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8157 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8159 * NEWS: Note that Alpha targets are now multi-arch.
8161 2002-04-24 Michael Snyder <msnyder@redhat.com>
8163 * parser-defs.h (prev_lexptr): New external variable.
8164 * parse.c (parse_exp_1): Set prev_lexptr to null before
8165 calling the language-specific parser.
8166 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8167 (yyerror): Use prev_lexptr in error reporting.
8169 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8171 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8172 * gregset.h: If FILL_FPXREGSET is defined, provide
8173 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8174 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8175 is defined, call fill_fpxregset.
8177 2002-04-24 Roland McGrath <roland@frob.com>
8179 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8180 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8181 (supply_gregset, supply_fpregset): New functions.
8183 * gnu-nat.c (gnu_find_memory_regions): New function.
8184 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8185 (gnu_xfer_memory): Add a cast.
8187 2002-04-24 Michael Snyder <msnyder@redhat.com>
8189 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8190 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8191 of argument regs ("str r(0123), [r11, #-nn"]).
8192 (arm_skip_prologue): Better handling for frameless functions.
8193 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8194 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8196 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8198 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8199 NUM_PSEUDO_REGS can be used.
8201 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8203 * arch-utils.h: Update copyright.
8205 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8206 * gdbarch.h, gdbarch.c: Re-generate.
8208 * inferior.h (IN_SIGTRAMP): Delete definition.
8209 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8210 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8212 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8213 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8214 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8215 (find_proc_framesize): Ditto.
8216 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8217 (alpha_init_extra_frame_info): Ditto.
8218 * infrun.c (handle_inferior_event): Ditto.
8219 (handle_inferior_event): Ditto.
8220 (check_sigtramp2): Ditto.
8221 * blockframe.c (create_new_frame): Ditto.
8222 (get_prev_frame): Ditto.
8223 * ppc-linux-tdep.c: Update comments.
8224 * i386-linux-tdep.c: Update comments.
8225 * breakpoint.c (bpstat_what): Update comment.
8227 2002-04-24 David S. Miller <davem@redhat.com>
8229 * i960-tdep.c (register_in_window_p): New function.
8230 (i960_find_saved_register): Use it instead of
8231 REGISTER_IN_WINDOW_P.
8232 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8234 * symtab.h (find_stab_function_addr): Kill extern.
8235 * minsyms.c (find_stab_function_addr): Remove from here...
8236 * dbxread.c: ... to here, and mark it static.
8238 2002-04-20 David S. Miller <davem@redhat.com>
8240 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8241 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8243 2002-04-21 David S. Miller <davem@redhat.com>
8245 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8246 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8247 (vx_write_register): Likewise.
8249 2002-04-23 J. Brobecker <brobecker@gnat.com>
8251 * source.c (is_regular_file): New function.
8252 (openp): Check wether file to open is a regular file
8253 to avoid opening directories.
8255 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8257 * findvar.c (extract_signed_integer): Cast printf argument
8258 to suppress format warning.
8259 (extract_unsigned_integer): Likewise.
8260 * infcmd.c (registers_info): Likewise.
8261 * top.c (get_prompt_1): Likewise.
8262 * valops.c (value_assign): Likewise.
8263 * valprint.c (print_decimal): Likewise.
8265 2002-04-22 H.J. Lu (hjl@gnu.org)
8267 * c-exp.y (typebase): Support
8269 [long|long long|short] [signed|unsigned] [int|]
8273 signed [long|long long|short] int
8275 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8277 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8279 * vax-tdep.h: New file.
8280 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8281 Make several routines static.
8282 (vax_get_saved_register): New function.
8283 (vax_gdbarch_init): New function.
8284 (_initialize_vax_tdep): Register vax_gdbarch_init.
8285 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8286 Remove macros now under the control of gdbarch.
8288 2002-04-22 Michael Snyder <msnyder@redhat.com>
8290 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8291 Some whitespace and coding standards tweaks.
8293 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8295 * vax-tdep.c: Include regcache.h.
8296 (vax_call_dummy_words): New.
8297 (sizeof_vax_call_dummy_words): New.
8298 (vax_fix_call_dummy): New function.
8299 (vax_saved_pc_after_call): Ditto.
8300 * config/vax/tm-vax.h: Don't include regcache.h.
8301 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8302 (CALL_DUMMY): Remove.
8303 (CALL_DUMMY_WORDS): Define.
8304 (SIZEOF_CALL_DUMMY_WORDS): Define.
8305 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8307 2002-04-18 Michael Snyder <msnyder@redhat.com>
8309 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8311 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8313 * vax-tdep.c (vax_frame_chain): New function.
8314 (vax_push_dummy_frame): Ditto.
8315 (vax_pop_frame): Ditto.
8316 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8317 (FRAMELESS_FUNCTION_INVOCATION): Use
8318 generic_frameless_function_invocation_not.
8319 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8320 (POP_FRAME): Use vax_pop_frame.
8322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8324 * vax-tdep.c (vax_store_struct_return): New function.
8325 (vax_extract_return_value): Ditto.
8326 (vax_store_return_value): Ditto.
8327 (vax_extract_struct_value_address): Ditto.
8328 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8329 vax_store_struct_return.
8330 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8331 (STORE_RETURN_VALUE): Use vax_store_return_value.
8332 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8334 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8336 * vax-tdep.c (vax_frame_saved_pc): New function.
8337 (vax_frame_args_address_correct): Ditto.
8338 (vax_frame_args_address): Ditto.
8339 (vax_frame_locals_address): Ditto.
8340 (vax_frame_num_args): Move code to be in proximity to
8341 other frame-related functions.
8342 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8343 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8344 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8345 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8346 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8348 2002-04-22 H.J. Lu (hjl@gnu.org)
8350 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8353 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8355 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8356 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8357 (FRAME_INIT_SAVED_REGS): New macro.
8359 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8361 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8363 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8365 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8367 (fetch_osf_core_registers): Likewise.
8368 (supply_gregset): Likewise.
8370 2002-04-22 J. Brobecker <brobecker@gnat.com>
8372 * symfile.h (get_section_index): Define.
8373 * symfile.c (get_section_index): New function.
8374 * mdebugread.c (SC_IS_SBSS): New macro.
8375 (SC_IS_BSS): Return true for the scBss storage class only, as
8376 the scSBss storage class refers to the .sbss section.
8377 (parse_partial_symbols): Discard the symbols which associated
8378 section does not exist.
8379 Make sure to use the .sbss section index for symbols which
8380 storage class is scBss, rather than using the .bss section index.
8382 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8384 * vax-tdep.c: Update copyright years.
8385 (vax_register_name): New function.
8386 (vax_register_byte): Ditto.
8387 (vax_register_raw_size): Ditto.
8388 (vax_register_virtual_size): Ditto.
8389 (vax_register_virtual_type): Ditto.
8390 * config/vax/tm-vax.h: Update copyright years.
8391 (REGISTER_NAMES): Remove.
8392 (REGISTER_NAME): Define.
8393 (REGISTER_BYTE): Use vax_register_byte.
8394 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8395 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8396 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8398 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8400 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8402 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8404 2002-04-21 David S. Miller <davem@redhat.com>
8406 * arch-utils.c (generic_prologue_frameless_p): Kill
8407 SKIP_PROLOGUE_FRAMELESS_P code.
8408 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8410 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8411 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8412 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8414 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8415 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8416 (sparc_gdbarch_init): Pass it to
8417 set_gdbarch_prologue_frameless_p.
8419 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8421 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8422 (alphabsd-nat.o): New dependency list.
8424 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8426 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8428 (alpha-linux-tdep.o): New dependency list.
8429 (alphafbsd-tdep.o): Likewise.
8431 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8433 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8435 * alpha-tdep.c: ...from here.
8436 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8438 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8440 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8441 prototype from here...
8442 * alpha-tdep.h: ...to here.
8444 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8446 * frame.h (selected_frame_level): Document as deprecated.
8447 (frame_relative_level): Declare.
8448 * stack.c (frame_relative_level): New function.
8449 (selected_frame_level): Document as deprecated.
8450 (select_frame): Do not set the selected_frame_level.
8452 * stack.c (frame_info, record_selected_frame): Update.
8453 (frame_command, current_frame_command): Update.
8454 (up_silently_base, up_command, down_silently_base): Update.
8455 (down_command): Update.
8456 * inflow.c (kill_command): Update.
8457 * tracepoint.c (finish_tfind_command): Update.
8458 * corelow.c (core_open): Update.
8459 * thread.c (info_threads_command): Update.
8460 (do_captured_thread_select): Update.
8461 * infcmd.c (finish_command): Update.
8462 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8464 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8466 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8468 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8470 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8473 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8475 * alphafbsd-tdep.c: Update copyright years. Include
8477 (alphafbsd_use_struct_convention): Make static.
8478 (alphafbsd_init_abi): New function.
8479 (_initialize_alphafbsd_tdep): New function.
8480 * config/alpha/tm-fbsd.h: Update copyright years.
8481 (USE_STRUCT_CONVENTION): Remove.
8483 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8485 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8486 an Alpha ABI variant.
8487 (alpha_abi_handler_list): Declare.
8488 (alpha_gdbarch_register_os_abi): New function.
8489 (alpha_gdbarch_init): Give registered ABI variant handlers a
8490 chance to tweak the gdbarch once we have set up defaults.
8491 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8493 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8495 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8496 to standard_coerce_float_to_double.
8497 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8499 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8501 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8502 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8503 from gdbarch_tdep rather than a constant.
8504 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8505 the default text address for all Alpha Unix ABIs.
8506 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8507 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8509 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8511 * alpha-tdep.h: New file. Includes several Alpha target constants
8513 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8514 let gdbarch deal with.
8515 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8516 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8518 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8519 Alpha target register names.
8520 * alphabsd-nat.c: Likewise.
8521 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8522 Alpha target register names. Make serveral routines static.
8523 (alpha_get_saved_register): New function.
8524 (alpha_abi_names): New.
8525 (process_note_abi_tag_sections): New function.
8526 (get_elfosabi): New function.
8527 (alpha_gdbarch_init): New function.
8528 (alpha_dump_tdep): New function.
8529 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8531 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8533 * frame.c (find_saved_register): Delete #ifdef
8534 HAVE_REGISTER_WINDOWS code.
8535 * config/sparc/tm-sparc.h: Update comments.
8536 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8538 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8540 * i960-tdep.c (i960_find_saved_register): New function.
8541 (i960_get_saved_register): New function.
8542 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8543 (i960_get_saved_register): Declare.
8544 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8546 2002-04-20 David S. Miller <davem@redhat.com>
8548 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8550 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8552 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8553 instead of NUM_PSEUDO_REGS.
8555 2002-04-20 David S. Miller <davem@redhat.com>
8557 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8558 GDB_MULTI_ARCH_PARTIAL
8559 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8560 define, let tm-sp64.h do it.
8562 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8564 * frame.c (find_saved_register): Avoid a NULL pointer
8565 dereference and actually walk the frame list.
8567 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8569 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8570 sorted in most most-recent-used order. Document.
8571 * gdbarch.h, gdbarch.c: Regenerate.
8573 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8575 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8577 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8578 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8579 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8582 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8585 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8586 (build_builtin_type_vec128): Ditto.
8587 (append_composite_type_field): Fix calculation of type length in
8590 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8592 * config/djgpp/README: Update.
8594 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8597 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8599 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8600 (alpha_setup_arbitrary_frame): ...to this.
8601 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8602 for alpha_setup_arbitrary_frame.
8604 2002-04-18 Andrew Cagney <cagney@redhat.com>
8606 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8607 * gdbarch.h, gdbarch.c: Regenerate.
8609 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8610 * target.h (memory_breakpoint_from_pc): Update declaration.
8611 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8613 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8614 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8615 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8616 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8617 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8618 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8619 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8620 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8621 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8622 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8623 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8624 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8626 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8628 * monitor.c (monitor_insert_breakpoint): Ditto.
8629 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8631 * config/mcore/tm-mcore.h: Update copyright.
8632 * mem-break.c: Ditto.
8633 * xstormy16-tdep.c: Ditto.
8635 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8637 * p-exp.y: Add precedence rule for '^' token.
8638 This removes the shift/reduce conflicts.
8639 Remove the comment concerning these shift/reduce conflicts.
8641 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8643 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8644 (registers_powerpc_nofp): New register set for processors
8645 without floating point unit.
8647 2002-04-18 David S. Miller <davem@redhat.com>
8649 * MAINTAINERS: Add myself to write-after-approval.
8651 2002-04-17 Michael Snyder <msnyder@redhat.com>
8653 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8655 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8657 * rs6000-tdep.c (frame_initial_stack_address): Use
8658 frame_register_read to read the alloca_reg.
8660 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8662 * frame.c (find_saved_register): Find saved registers in the next
8666 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8668 * gdbarch.sh (LANG): Set to ``c''.
8670 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8672 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8674 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8676 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8679 * hpread.c (hpread_get_lntt): Add declaration.
8680 Also fix PR gdb/391.
8682 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8684 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8685 * aclocal.m4, configure: Re-generate.
8688 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8690 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8691 instead of tm_print_insn.
8693 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8695 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8697 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8699 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8700 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8701 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8703 2002-04-12 Don Howard <dhoward@redhat.com>
8705 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8706 max_user_call_depth.
8707 (init_cmd_lists): Initialize the new value;
8708 * cli/cli-script.c (execute_user_command): Limit the call depth of
8709 user defined commands. This avoids a core-dump when user commands
8710 are infinitly recursive.
8712 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8714 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8715 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8716 from tdep struct instead of DEFAULT_LR_SAVE.
8717 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8718 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8719 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8721 2002-04-12 Michael Snyder <msnyder@redhat.com>
8723 * Remote.c: Spelling fix.
8724 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8725 If no symbol found for "sbrk", try "_sbrk".
8726 (make_output_phdrs): Use bfd_section_name.
8727 (gcore_copy_callback): Use bfd_section_name.
8728 * eval.c: Indentation fix-ups.
8729 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8730 in case it gets applied to an address that is already
8731 in the instruction space.
8732 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8733 * symfile.c: Fix indentation, long lines.
8734 * source.c: White space fix-up.
8736 2002-04-12 Andrew Cagney <cagney@redhat.com>
8738 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8739 * frame.c (frame_register_read): New function. Return non-zero on
8741 (read_relative_register_raw_bytes_for_frame): Delete.
8742 (read_relative_register_raw_bytes): Delete.
8743 * frame.h (frame_register_read): Declare.
8744 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8746 * infcmd.c (do_registers_info): Ditto.
8747 * hppa-tdep.c: Ditto.
8748 * rs6000-tdep.c: Ditto.
8749 * h8500-tdep.c: Ditto.
8750 * mips-tdep.c: Ditto.
8751 * h8300-tdep.c: Ditto.
8752 * z8k-tdep.c: Ditto.
8754 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8756 From Jimi X <jimix@watson.ibm.com>:
8757 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8760 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8762 From Jimi X <jimix@watson.ibm.com>:
8763 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8766 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8768 From Jimi X <jimix@watson.ibm.com>:
8769 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8770 register sets for these processor variants.
8772 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8774 * regformats/reg-ppc.dat: Support FPSCR.
8776 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8778 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8779 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8780 Add fpscr as an invalid/unfetchable register.
8781 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8782 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8783 (fill_fpregset): Add support for register fpscr.
8784 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8785 (fill_gregset): Account for the fact that register ``mq'' might
8787 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8788 (registers_power): Add fpscr to register set at slot 71.
8789 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8790 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8792 2002-04-11 Michael Snyder <msnyder@redhat.com>
8794 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8795 * configure: Regenerate.
8796 * config.in: Regenerate.
8797 * acconfig.h: Add define for _SYSCALL32.
8798 * core-sol2.c: Remove #define _SYSCALL32.
8799 * solib-legacy.c: Remove #define _SYSCALL32.
8801 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8803 * stack.c (select_frame): Cleanup internal error message, do not
8806 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8808 * stack.c (select_frame): Check that selected_frame and the
8809 specified level are as expected.
8810 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8812 * frame.h (struct frame_info): Add field `level'. Update
8814 Work-in-progress PR gdb/464.
8816 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8818 * maint.c (maint_print_section_info): Rename print_section_info.
8819 (print_bfd_section_info, print_objfile_section_info): Update.
8820 * inferior.h (struct gdbarch): Add opaque declaration.
8821 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8822 * gdbarch.h: Regenerate.
8824 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8826 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8827 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8828 (kernel_u_size): Added.
8829 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8830 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8832 2002-04-04 Jim Ingham <jingham@apple.com>
8834 * valarith.c (find_size_for_pointer_math): New function, either returns
8835 the size for a pointer's target, returns 1 for void *, or errors for
8837 (value_add, value_sub): use find_size_for_pointer_math.
8839 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8841 * linux-low.c (linux_look_up_symbols): New hook.
8842 (linux_target_ops): Add linux_look_up_symbols.
8843 * remote-utils.c (decode_address): New function.
8844 (look_up_one_symbol): New function.
8845 * server.c (handle_query): Call target look_up_symbols hook.
8846 * server.h (look_up_one_symbol): Add prototype.
8847 * target.h (struct target_ops): Add look_up_symbols hook.
8849 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8851 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8852 override FP_REGNUM with frame->fp. Update copyright.
8853 * parse.c (num_std_regs, std_regs): Delete.
8854 (target_map_name_to_register): Do not search std_regs. Update
8855 function description.
8856 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8857 declarations. Update copyright.
8860 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8862 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8863 after the last symbol in a block.
8865 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8867 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8868 is non zero as a found symbol.
8870 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8872 * findvar.c: Include "builtin-regs.h".
8873 (value_of_register): Call value_of_builtin_reg when applicable.
8874 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8875 (target_map_name_to_register): Call
8876 builtin_reg_map_name_to_regnum.
8877 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8878 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8879 (builtin_regs_h): Define.
8880 (builtin-regs.o): New target.
8881 (findvar.o): Add $(builtin_regs_h).
8882 * builtin-regs.c, builtin-regs.h: New files.
8883 * std-regs.c: New file.
8884 Partial fix for PR gdb/251.
8886 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8888 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8889 it's no longer required.
8891 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8893 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8895 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8897 From Jimi X <jimix@watson.ibm.com>:
8898 * rs6000-tdep.c (rs6000_software_single_step): Use
8899 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8900 and size. Use target_insert_breakpoint() and
8901 target_remove_breakpoint() to insert and remove breakpoints
8902 instead of explicit memory reads and writes.
8904 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8906 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8907 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8908 ELF_OBJECT_FORMAT ifdef.
8910 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8912 From Jimi X <jimix@watson.ibm.com>:
8913 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8915 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8917 From Jimi X <jimix@watson.ibm.com>:
8918 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8919 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8921 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8923 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8924 s/asprintf/xasprintf/.
8925 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8927 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8929 I believe Jeff Law denies responsability for this one:
8930 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8931 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8932 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8933 Work-around for PR gdb/366.
8935 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8937 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8938 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8939 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8941 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8943 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8944 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8947 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8949 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8952 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8954 * README (Reporting Bugs in GDB): Document the bug web page as the
8955 prefered way of submitting bugs.
8958 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8960 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8962 * gdbarch.h, gdbarch.c: Re-generate.
8964 2002-04-07 Andreas Schwab <schwab@suse.de>
8966 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8967 buffer to regcache_collect.
8969 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8971 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8972 * gdbarch.c, gdbarch.h: Re-generate.
8974 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8976 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8977 declaration. Fix -Werror.
8979 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8981 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8982 * gdbarch.c: Regenerate.
8984 2002-04-05 Michael Snyder <msnyder@redhat.com>
8986 * breakpoint.c (clear_command): Rewrite middle section to
8987 combine two loops with identical control conditions.
8988 Add a cleanup to eliminate a memory leak.
8989 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8991 2002-04-05 H.J. Lu (hjl@gnu.org)
8993 * solib-svr4.c (bkpt_names): Add "__start".
8995 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8997 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8998 as test for 64 bit target.
9000 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9002 * h8500-tdep.c (h8500_write_fp): Delete function.
9003 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9004 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9005 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9007 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9008 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9010 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9011 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9012 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9013 (d10v_write_fp): Delete function.
9014 * inferior.h (write_fp, generic_target_write_fp): Delete
9016 * regcache.c (generic_target_write_fp): Delete function.
9017 (write_fp): Delete function.
9018 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9019 * gdbarch.h, gdbarch.c: Regenerate.
9020 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9021 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9022 (sparc64_write_fp): Delete declaration.
9023 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9024 (h8500_write_fp): Delete declaration.
9026 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9028 * sparc-tdep.c (sparc64_write_fp): Delete.
9029 (sparc_push_dummy_frame): Replace write_fp call with code to store
9031 (sparc_gdbarch_init): Do not initialize write_fp.
9033 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9035 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9038 2002-03-29 Jim Blandy <jimb@redhat.com>
9040 * stack.c (get_selected_block): Add new argument `addr_in_block',
9041 used to return the exact code address we used to select the block,
9043 * blockframe.c (get_frame_block, get_current_block): Same.
9044 * frame.h (get_frame_block, get_current_block,
9045 get_selected_block): Update declarations.
9046 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9047 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9049 2002-04-05 Michael Snyder <msnyder@redhat.com>
9051 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9054 2002-04-05 J. Brobecker <brobecker@gnat.com>
9056 * utils.c (xfullpath): New function.
9057 * defs.h (xfullpath): Add declaration.
9058 * source.c (openp): Use xfullpath in place of gdb_realpath to
9059 avoid resolving the basename part of filenames when the
9060 associated file is a symbolic link. This fixes a potential
9061 inconsistency between the filenames known to GDB and the
9062 filenames it prints in the annotations.
9063 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9064 to be able to match a filename with either the real filename, or
9065 the name of any symbolic link to this file.
9066 (lookup_partial_symtab): Ditto.
9068 2002-04-04 Michael Snyder <msnyder@redhat.com>
9070 * breakpoint.c: Add support for hardware breakpoints in overlays.
9071 (overlay_events_enabled): New state variable.
9072 (insert_breakpoints): Use overlay_events_enabled to decide
9073 whether to attempt to set a breakpoint at the overlay load addr.
9074 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9075 (remove_breakpoint): Use overlay_events_enabled to decide
9076 whether breakpoints need to be removed from overlay load addr.
9077 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9078 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9079 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9080 disable_overlay_breakpoints): Update overlay_events_enabled.
9082 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9084 * dwarf2read.c (struct function_range): New.
9085 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9086 (check_cu_functions): New.
9087 (read_file_scope): Initialize global function lists.
9088 Call dwarf_decode_line after processing children.
9089 (read_func_scope): Add to global function list.
9090 (dwarf_decode_lines): Call check_cu_functions everywhere
9091 record_line is called. Call record_line with a linenumber
9092 of 0 to mark sequence ends.
9094 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9096 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9097 change sync with glibc.
9099 2002-04-03 Jim Blandy <jimb@redhat.com>
9101 * configure.in: Call AC_C_INLINE.
9102 * configure: Regenerated.
9104 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9106 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9107 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9109 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9111 * NEWS: Mention gcore support on FreeBSD/i386.
9113 * fbsd-proc.c: New file.
9114 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9115 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9117 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9120 2002-03-29 Jim Blandy <jimb@redhat.com>
9122 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9123 unescaped newlines in string literals, but newer ones don't. So
9126 2002-03-26 Michael Snyder <msnyder@redhat.com>
9127 Andrew Cagney <cagney@redhat.com>
9129 * cli/cli-dump.c: New file. Dump memory to file,
9130 restore file to memory.
9131 * cli/cli-dump.h: New file.
9132 * Makefile.in: Add rules, dependencies for cli-dump.o.
9133 * NEWS: Mention new commands.
9135 2002-03-28 Michael Snyder <msnyder@redhat.com>
9137 * symfile.c (symbol_file_add): Move test for null symbols to later.
9139 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9141 From veksler at il.ibm.com:
9142 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9143 the xstrduped original path.
9146 2002-03-27 Michael Snyder <msnyder@redhat.com>
9148 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9149 * infcmd.c (_initialize_infcmd): Ditto.
9150 * language.c (_initialize_language): Ditto.
9151 * symfile.c (_initialize_symfile): Ditto.
9152 * top.c (_init_main): Ditto.
9153 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9155 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9157 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9158 vector registers handling.
9159 (skip_prologue): Handle new AltiVec instructions. Fill in new
9160 fields of frame data.
9161 (frame_get_saved_regs): Fill in information for AltiVec registers.
9163 2002-03-27 Jim Blandy <jimb@redhat.com>
9165 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9166 a function; leave this macro here to invoke that function.
9167 (symbol_init_mangled_name): Declaration for that function.
9168 * symtab.c (symbol_init_mangled_name): New function.
9170 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9172 * valarith.c: Replace strerror with safe_strerror.
9173 * tracepoint.c: Ditto.
9175 * go32-nat.c: Ditto.
9179 2002-03-27 Andreas Schwab <schwab@suse.de>
9181 * event-top.c (command_line_handler): Remove useless if.
9183 2002-03-27 Andreas Jaeger <aj@suse.de>
9185 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9188 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9190 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9191 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9192 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9193 (x86_64_linux_dr_get_status, supply_gregset),
9194 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9195 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9196 (x86_64_register_info_table): Add.
9197 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9198 (x86_64_register_raw_size, x86_64_register_virtual_type),
9199 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9200 general x86_64_register_info_table.
9201 (i386_gdbarch_init): gdbarch_register_bytes is now set
9202 dynamicaly during initialization.
9203 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9204 * gdbserver/linux-x86-64-low.c: Ditto.
9206 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9208 * gdbserver/server.c (main): Call target_signal_to_host_p
9209 and target_signal_to_host on signals received from the remote.
9210 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9211 target_signal_from_host on signals sent to the remote.
9212 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9213 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9215 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9217 * signals/signals.c: Include "server.h" in gdbserver build.
9218 (target_signal_from_name): Don't use STREQ.
9219 (_initialize_signals): Likewise. Don't include function in
9222 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9224 * signals.c: Moved to...
9225 * signals/signals.c: Here.
9226 * Makefile (signals.o): Update.
9228 2002-03-26 Jeff Law (law@redhat.com)
9230 * somread.c (som_symtab_read): Remove some commented out code and
9231 updated related comments. Do not set the minimal symbol table to
9232 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9233 in a dynamic executable.
9234 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9235 where we are unable to find the minimal symbol for the given
9238 2002-03-25 Jeff Law (law@redhat.com)
9240 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9242 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9244 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9246 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9248 * command.h: Update copyright.
9249 (struct cmd_list_element): Replace definition with opaque
9251 (enum cmd_types): Document that it will eventually be moved to
9253 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9254 (MALLOCED_REPLACEMENT): Delete macro.
9255 * Makefile.in (cli_decode_h): Add $(command_h).
9256 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9257 * top.c: Include "cli/cli-decode.h".
9258 * completer.c: Include "cli/cli-decode.h".
9259 * maint.c: Include "cli/cli-decode.h".
9260 * cli/cli-decode.h: Include "command.h".
9261 (enum command_class): Delete.
9262 (enum cmd_types): Comment out.
9263 (enum cmd_auto_boolean): Delete.
9264 (enum var_types): Delete.
9266 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9268 * cli/cli-decode.c: Include "gdb_assert.h".
9269 (add_set_or_show_cmd): New static function.
9270 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9271 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9272 all fields, such as func, from the set command.
9274 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9276 * MAINTAINERS (sh-elf): Change warning flag to -w.
9278 2002-03-23 Andrew Cagney <cagney@redhat.com>
9280 * defs.h (error): Add printf format attribute.
9281 * thread-db.c (thread_from_lwp): Fix error format string.
9282 * stack.c (parse_frame_specification): Ditto.
9283 * cli/cli-decode.c (undef_cmd_error): Ditto.
9284 * scm-lang.c (scm_lookup_name): Ditto.
9285 * tracepoint.c (trace_error): Ditto.
9286 * remote-utils.c (usage): Ditto.
9287 * remote.c (compare_sections_command): Ditto.
9290 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9292 * gdbtypes.c (append_composite_type_field): New function.
9293 (init_composite_type): New function.
9294 * gdbtypes.h (append_composite_type_field): Declare.
9295 (init_composite_type): Ditto.
9297 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9299 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9301 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9302 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9303 structure returning convention for SYSV ABI case, but not
9304 for GNU/Linux, FreeBSD, or NetBSD.
9306 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9308 * symtab.h (lookup_block_symbol): Add mangled_name argument
9311 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9312 with new mangled_name argument.
9313 * linespec.c (decode_line_1): Likewise.
9314 * valops (value_of_this): Likewise.
9315 * symtab.c (lookup_transparent_type): Likewise.
9316 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9317 (lookup_symbol): If we are given a mangled name, pass it down
9318 to lookup_symbol_aux.
9319 (lookup_block_symbol): If we are given a mangled name to check
9320 against, only return symbols which match it.
9322 2002-03-22 Christopher Faylor <cgf@redhat.com>
9324 * win32-nat.c (child_create_inferior): Check for proper shell to use
9325 here, in case the user changes it on the fly.
9326 (_initialize_inftarg): Remove shell path considerations.
9328 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9330 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9331 for gdbarch_max_register_raw_size and max_register_virtual_size.
9332 Adjust copyright year.
9334 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9336 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9337 in a function to cover the entire beginning of the function
9338 as well if it does not already.
9340 2002-03-21 Tom Rix <trix@redhat.com>
9342 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9343 (rs6000_ptrace64): Renamed from ptrace64.
9345 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9347 * gdbserver/remote-utils.c (remote_open): Don't call
9348 getprotobyname, we're all using TCP here so just use
9350 * gdbserver/gdbreplay.c (remote_open): Ditto.
9352 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9354 * regcache.c (_initialize_regcache): No need to call
9355 build_regcache() at this time; it gets called whenever
9356 the gdbarch changes.
9358 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9360 * sparc-nat.c: Include sys/param.h where possible.
9362 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9365 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9366 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9367 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9369 * stabsread.c (rs6000_builtin_type): Likewise.
9370 (read_sun_floating_type): Likewise.
9372 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9374 * stabsread.c (read_member_functions): Remove skip code for duplicate
9375 constructor/destructor methods. Use standard parsing for these
9376 methods and just do not chain them to the list of methods after
9379 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9381 * coffread.c: Remove redundant static declarations. Replace
9382 occurrences of `PTR' with `void *'.
9383 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9384 * top.h (quit_cover): Likewise.
9385 * defs.h (catch_errors): Likewise.
9387 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9389 * defs.h (XMALLOC): Define.
9390 * gdb-events.sh (XMALLOC): Delete macro.
9391 * gdb-events.c, gdb-events.h: Regenerate.
9392 * gdbarch.sh (XMALLOC): Delete macro.
9393 * gdbarch.c: Regenerate.
9394 * serial.c (XMALLOC): Delete macro.
9395 * ui-file.c (XMALLOC): Ditto.
9396 * ser-unix.h (XMALLOC): Ditto.
9397 * sh-tdep.c (XMALLOC): Ditto.
9398 * ui-out.c (XMALLOC): Ditto.
9399 * utils.c (XMALLOC): Ditto.
9400 * i386-tdep.c (XMALLOC): Ditto.
9401 * gdb-events.c (XMALLOC): Ditto.
9402 * d10v-tdep.c (XMALLOC): Ditto.
9403 * cli-out.c (XMALLOC): Ditto.
9405 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9406 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9407 * ui-file.c, ui-out.c: Ditto.
9409 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9411 * command.h (struct cmd_list_element): Add field context.
9412 (set_cmd_context, get_cmd_context): Declare.
9413 * cli/cli-decode.h: Ditto.
9414 * cli/cli-decode.c (get_cmd_context): New function.
9415 (set_cmd_context): New function.
9416 (add_cmd): Initialize context.
9417 Part of fixing PR gdb/145 and PR gdb/146.
9419 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9421 * cli/cli-decode.c (cmd_type): New function.
9422 * command.h (cmd_type): Declare.
9423 * infrun.c (set_schedlock_func): Call function cmd_type.
9424 * kod.c (kod_set_os): Call cmd_type.
9425 * cris-tdep.c (cris_version_update): Use function cmd_type.
9426 (cris_mode_update, cris_abi_update): Ditto.
9428 * command.h: (execute_cmd_post_hook): Declare.
9429 (execute_cmd_pre_hook): Declare.
9430 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9431 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9432 functions. Execute pre/post hook while ensuring that afterwords
9434 * top.c (execute_command): Use execute_cmd_post_hook, and
9435 execute_cmd_pre_hook to execute pre/post commands.
9436 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9438 (hook_stop_stub): Call execute_cmd_pre_hook.
9440 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9442 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9443 set'' and this leads to a core dump. Move xstrdup of
9444 operating_system to after check that it is not NULL.
9446 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9448 * kod.c (kod_set_os): Remove unnecessary check that
9449 ``command->type'' is set_cmd.
9451 * valprint.c (set_input_radix): Use input_radix.
9452 (set_output_radix): Use output_radix.
9453 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9456 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9458 * value.h (struct value): Delete field ``substring_addr''. Change
9459 aligner fields to force_doublest_align, force_longest_align,
9460 force_core_addr_align and force_pointer_aligh.
9462 * value.h (struct value): Fix typo in above change.
9464 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9466 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9467 to fix internal_error from ``maintenance print architecture''.
9469 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9471 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9472 for gcc versions after gcc-2.8.1.
9474 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9476 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9477 for method resolution. Restore adjustment of ``this'' pointer after
9478 calling value_struct_elt, which was accidentally removed during the
9481 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9483 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9485 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9487 * value.h (value_of_register): Update.
9489 2002-03-14 Richard Henderson <rth@redhat.com>
9491 * configure.in: Detect declaration for canonicalize_file_name.
9492 * utils.c (canonicalize_file_name): Declare, if needed.
9493 (gdb_realpath): Prefer realpath if available and usable.
9494 * config.in, configure: Rebuild.
9496 2002-03-14 Richard Henderson <rth@redhat.com>
9498 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9499 a constant array bound.
9501 * MAINTAINERS: Add myself to write-after-approval.
9503 2002-03-14 Michael Snyder <msnyder@redhat.com>
9505 * symfile.c (syms_from_objfile): Return immediately if no syms.
9506 (symbol_file_add): Return immediately if no syms.
9507 (find_sym_fns): Return immediately if no syms.
9509 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9511 * gdbserver/remote-util.c (remote_open): Print remote-side's
9512 IP address when remote debugging over the network.
9514 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9516 * config/sparc/fbsd.mh: Fix copyright.
9517 * config/sparc/fbsd.mt: Likewise.
9519 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9521 * MAINTAINERS: Fix typo in name of gdb warnings option.
9522 (x86-64): Fix formating so that this can be parsed by awk.
9524 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9526 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9527 * defs.h: Include "gdb/signals.h".
9528 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9530 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9532 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9533 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9536 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9537 Don Howard <dhoward@redhat.com>
9539 * mips-tdep.c (ST0_FR): Define.
9540 (mips2_fp_compat): New function, temporarily disabled.
9541 (mips_read_fp_register_single): New function.
9542 (mips_read_fp_register_double): New function.
9543 (mips_print_register): Use them.
9544 (do_fp_register_row): Likewise.
9546 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9548 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9551 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9553 * stabsread.c (read_member_functions): Fix is_stub test for
9554 static member functions, improve comment.
9556 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9558 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9559 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9560 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9561 commands that set boolean values.
9562 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9563 (arm_rdi_resume): Always initialize PC.
9564 (arm_rdi_open): Don't use rslt as a boolean.
9565 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9566 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9567 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9568 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9570 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9572 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9573 * configure: Rebuilt.
9575 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9577 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9578 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9580 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9582 * cli/cli-decode.c (set_cmd_completer): New function.
9583 * command.h (set_cmd_completer): Declare.
9584 * cli/cli-decode.h (set_cmd_completer): Ditto.
9586 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9587 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9588 * win32-nat.c (_initialize_inftarg): Ditto.
9589 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9590 * proc-api.c (_initialize_proc_api): Ditto.
9591 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9592 * source.c (_initialize_source): Ditto.
9593 * exec.c (_initialize_exec): Ditto.
9594 * solib.c (_initialize_solib): Ditto.
9595 * top.c (init_main): Ditto.
9596 * tracepoint.c (_initialize_tracepoint): Ditto.
9597 * symfile.c (_initialize_symfile): Ditto.
9598 * printcmd.c (_initialize_printcmd): Ditto.
9599 * infcmd.c (_initialize_infcmd): Ditto.
9600 * corefile.c (_initialize_core): Ditto.
9602 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9604 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9606 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9608 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9610 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9612 * NEWS: Update headings, 5.2 has branched.
9614 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9616 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9617 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9618 (register_addr, REGISTER_RAW_SIZE): Likewise.
9619 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9620 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9622 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9624 * MAINTAINERS (x86-64): Add myself.
9625 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9626 changed value_ptr -> struct value *
9628 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9630 * configure.host (sparc64-*-freebsd): Add.
9631 * configure.tgt: Likewise.
9632 * config/sparc/fbsd.mh: New file.
9633 * config/sparc/fbsd.mt: Likewise.
9634 * config/sparc/nm-fbsd.h: Likewise.
9635 * config/sparc/tm-fbsd.h: Likewise.
9637 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9639 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9640 regformats/reg-s390x.dat.
9642 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9644 * utils.c: Add FIXME explaining true/false problem.
9646 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9648 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9650 2002-02-28 Michael Chastain <mec@shout.net>
9652 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9654 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9656 * gdbserver/linux-s390-low.c: New file.
9657 * regformats/reg-s390.dat: New file.
9658 * regformats/reg-s390x.dat: New file.
9659 * gdbserver/configure.srv: Add S/390.
9660 * gdbserver/Makefile.in: Add S/390.
9661 * configure.tgt: Enable gdbserver for S/390.
9663 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9665 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9666 first line of the doc string for "info dos", except at the end of
9667 the sentence, since the short help stops at the first period.
9669 2002-02-28 Jason Merrill <jason@redhat.com>
9671 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9673 2002-02-27 Fred Fish <fnf@redhat.com>
9675 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9676 comment (dumy -> dummy).
9678 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9680 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9682 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9684 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9686 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9688 * gdbserver/acconfig.h: New file.
9689 * gdbserver/i387-fp.c: New file.
9690 * gdbserver/i387-fp.h: New file.
9691 * gdbserver/linux-x86-64.c: New file.
9692 * regformats/reg-x86-64.dat: New file.
9693 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9694 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9695 * gdbserver/configure.in: Add support for regsets.
9696 * gdbserver/config.in: Regenerate.
9697 * gdbserver/configure: Regenerate.
9698 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9699 * gdbserver/linux-low.h: New file.
9700 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9702 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9703 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9704 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9705 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9706 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9707 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9708 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9709 "i387-fp.h". Add PTRACE_GETREGS and friends.
9710 * gdbserver/regcache.c (supply_register): New function.
9711 (supply_register_by_name): New function.
9712 (collect_register): New function.
9713 (collect_register_by_name): New function.
9715 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9717 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9718 (config.status): Add configure.srv dependency.
9719 (server_h): Add config.h dependency.
9721 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9723 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9724 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9725 * gdbserver/configure.srv: Change i386-*-linux* to use
9728 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9730 * x86-64-tdep.c: Re-indent. Update copyright date.
9732 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9734 From Michal Ludvig <mludvig@suse.cz>:
9735 * x86-64-tdep.c (value.h): Delete.
9736 (gdb_assert.h): Include.
9737 (x86_64_register_convert_to_virtual,
9738 x86_64_register_convert_to_raw ): Add check which lets only
9739 floating-point values to be converted.
9740 (value_push): Delete.
9741 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9742 (i386_gdbarch_init): Number of register_bytes fixed.
9744 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9746 * MAINTAINERS: Add x86-64 target.
9748 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9750 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9751 * osfsolib.c (solib_map_sections): Ditto.
9752 * irix5-nat.c (solib_map_sections): Ditto.
9753 * corelow.c (gdb_check_format): Ditto.
9754 * symfile.c (symfile_bfd_open): Ditto.
9755 * solib.c (solib_map_sections): Ditto.
9758 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9760 * remote.c (_initialize_remote): By default, disable ``e'' and
9761 ``E'' step out-of-range packets.
9763 2002-02-26 Andreas Schwab <schwab@suse.de>
9765 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9766 m68k_linux_frame_saved_pc.
9767 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9769 (SIGCONTEXT_PC_OFFSET): Remove.
9770 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9771 m68k_linux_sigtramp_saved_pc): New functions.
9772 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9773 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9774 (UCONTEXT_PC_OFFSET): Define.
9775 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9776 non-RT and RT signal trampolines.
9778 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9780 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9781 (TARGET_NBPG, STACK_END_ADDR): Delete
9782 (VARIABLES_INSIDE_BLOCK): Delete.
9784 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9786 * utils.c (perror_with_name): Make string parameter constant.
9787 (print_sys_errmsg): Ditto.
9789 * defs.h (perror_with_name): Update.
9790 (print_sys_errmsg): Update.
9793 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9795 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9796 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9798 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9800 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9801 if it already matches the current architecture from the exec file.
9802 Include arch-utils.h for gdbarch_info_init prototype.
9803 * Makefile.in (rs6000-nat.o): Update dependencies.
9805 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9807 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9808 list of exported variables.
9810 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9812 * gdbserver/configure.srv: New file.
9813 * gdbserver/configure.in: Use configure.srv instead
9814 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9816 * gdbserver/configure: Regenerated.
9817 * gdbserver/terminal.h: New file.
9818 * gdbserver/Makefile.in: Update for configure changes. Remove
9819 more unneeded include paths.
9821 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9823 From wiz at danbala:
9824 * config/sparc/tm-sp64.h: Fix grammar and typos.
9827 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9829 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9830 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9831 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9832 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9833 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9834 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9835 * s390-tdep.c: Ditto.
9836 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9837 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9838 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9839 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9840 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9841 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9842 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9843 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9844 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9845 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9848 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9850 * lin-thread.c: Delete file.
9851 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9852 to gdb_proc_service.h.
9853 * configure: Re-generate.
9855 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9856 * serial.c (serial_open): Delete check for "ocd".
9859 * Makefile.in (linux-thread.o): Delete target.
9860 * linux-thread.c: Delete file.
9862 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9863 renamed SH files to be consistent.
9865 * symtab.c (sort_search_symbols): Use xfree.
9867 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9869 * arm-linux-tdep.c (arm_linux_init_abi): Register
9870 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9871 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9872 definition with undef, since we don't want the sysvr4 definition.
9873 (SKIP_TRAMPOLINE_CODE): Likewise.
9875 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9877 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9879 * configure.in: (AC_CHECK_FUNCS) Added test for
9880 canonicalize_file_name Regenerated.
9881 * config.in, configure: Regenerated.
9882 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9883 defined use canonicalize_file_name.
9885 2002-02-23 Michael Chastain <mec@shout.net>
9887 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9889 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9891 * README: Remove references to cygnus.com.
9892 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9893 dot com'' form. Remove references to cygnus.com and sourceware.
9895 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9897 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9898 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9899 1003.1-2001 no longer allows "head -1".
9900 * gdb/Makefile.in (version.c): Likewise.
9901 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9902 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9903 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9905 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9907 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9908 * command.h (cmd_cfunc_eq): Declare.
9909 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9911 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9912 ``struct cmd_list_element *''.
9913 * cli/cli-cmds.c (is_complete_command): Update. Use
9915 * top.c (execute_command): Pass the command to
9916 is_complete_command.
9917 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9919 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9921 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9922 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9923 architecture defines.
9924 * s390-tdep.c (s390_gdbarch_init): Likewise.
9926 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9928 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9929 (arm_linux_push_arguments): Likewise.
9930 (arm_linux_init_abi): Register them. Also register linux-specific
9932 (find_minsym_and_objfile): Use strcmp, not STREQ.
9933 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9934 (arm_linux_call_dummy_words): Delete declaration.
9935 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9936 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9938 (LOWEST_PC): Delete.
9940 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9942 * maint.c (print_section_info): Do not prepend `0x' to filepos
9943 output, it will be handled by local_hex_string_custom.
9945 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9947 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9948 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9949 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9951 2002-02-22 Jim Blandy <jimb@redhat.com>
9953 Indicate that the bcache functions don't change the strings
9955 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9956 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9958 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9960 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9962 2002-02-21 Christopher Faylor <cgf@redhat.com>
9964 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9965 find the complete path to a loaded DLL.
9967 2002-02-21 Fred Fish <fnf@redhat.com>
9969 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9970 that marks the end of the range of a function, enter a line number
9971 entry that has a line number of zero and a PC offset that matches
9972 the end of the function. This starts a range of PC's for which no
9973 line number information is known.
9974 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9975 PC's for which no line number info is found (line number is zero)
9976 then we didn't find any valid line information.
9977 * symtab.h: Document use of zero line number entry.
9979 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9981 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9982 (have_ptrace_getvrregs): Define for run time checks.
9983 (gdb_vrregset_t): New type for Altivec register handling.
9984 (fetch_register, store_register): Fetch/store altivec register
9986 (fetch_altivec_register, store_altivec_register): New functions.
9987 (supply_vrregset, fill_vrregset): New functions.
9988 (fetch_altivec_registers, store_altivec_registers): New functions.
9989 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9992 2002-02-21 Jiri Smid <smid@suse.cz>
9994 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9996 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9998 * Makefile.in (armnbsd-nat.o): Update dependencies.
9999 * armnbsd-nat.c (supply_gregset): New function. Common code to
10000 supply the integer register set.
10001 (supply_fparegset): New function. Similar for FPA registers.
10002 (fetch_regs, fetch_fp_regs): Use them.
10003 (fetch_core_registers): Likewise.
10004 (fetch_elfcore_registers): New function.
10005 (arm_netbsd_elfcore_fns): New core-file type specification.
10006 (_initialize_arm_netbsd_nat): Register it.
10008 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10010 * armnbsd-nat.c: Include gdbcore.h.
10011 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10012 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10013 'void' to declaration, to shut up ARI.
10014 (fetch_core_registers): Make static. Rewrite using supply_register.
10015 (arm_netbsd_core_fns): New core-file type specification.
10016 (_initialize_arm_netbsd_nat): New function.
10018 2002-02-21 Christopher Faylor <cgf@redhat.com>
10020 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10023 2002-02-20 Christopher Faylor <cgf@redhat.com>
10025 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10028 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10030 * jv-exp.y (parse_number): Change type of implicit longs
10031 to builtin_type_uint64.
10033 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10035 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10036 to be an integer instead of a `union wait'.
10038 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10040 * mips-linux-nat.c: Call the operating system GNU/Linux.
10041 * mips-linux-tdep.c: Likewise.
10042 * mips-tdep.c: Likewise.
10044 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10047 * jv-exp.y (parse_number): Handle 64-bit integers.
10049 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10051 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10052 AC_STDC_HEADERS to AC_HEADER_STDC.
10053 * gdbserver/configure: Regenerated.
10055 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10057 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10059 * sparc-tdep.c (get_longjmp_target): Likewise.
10061 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10063 * News: Add news about ARM and Multi-arch. Mention the new target
10066 2002-02-19 Jim Blandy <jimb@redhat.com>
10068 * stabsread.c (error_type_complaint): Improve error message.
10070 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10072 * gdbserver/README: Update documentation.
10073 * gdbserver/configure.in: Update configury to match documentation.
10074 * gdbserver/Makefile.in: Likewise.
10075 * gdbserver/configure: Regenerated.
10076 * gdbserver/aclocal.m4: New file, generated by aclocal.
10077 * gdbserver/config.in: New file, generated by autoheader.
10079 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10081 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10084 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10086 * arm-tdep.h (enum arm_float_model): New enum.
10087 (struct gdbarch_tdep): Add fp_model.
10088 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10089 up floating-point conversions until we know the floating-point model
10090 in use by the inferior. Don't complain about being unable to
10091 determine the ABI of the inferior when we don't have one.
10092 (arm_extract_return_value): Support different floating-point models.
10093 (arm_store_return_value): Likewise.
10094 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10096 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10098 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10100 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10101 of ``current_gdbarch''.
10103 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10105 * armnbsd-nat.c : ANSIfy all function declarations.
10106 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10107 (fetch_inferior_registers): Re-implement in terms of above.
10108 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10109 (store_inferior_registers): Re-implement in terms of above.
10111 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10113 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10115 * arm-linux-tdep.c: Likewise.
10116 * config/arm/tm-linux.h: Likewise.
10118 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10120 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10121 * config/arm/nbsd.mt (TM_FILE): Delete.
10122 * config/arm/tm-nbsd.h: Delete.
10124 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10126 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10127 Initialize CALL_DUMMY_LENGTH.
10129 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10131 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10133 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10134 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10135 defines one thing and that is incorrect for this port.
10136 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10138 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10140 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10142 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10144 * win32-nat.c (display_selector): New function. Displays information
10145 about the information returned by GetThreadSelectorEntry API function.
10146 (display_selectors): New function. Displays the infomation of
10147 the selector given as argument, or of CS, DS ans FS selectors
10148 if no argument is given.
10149 ( _initialize_inftarg): Add "w32" as info prefix command.
10150 Add "info w32 selector" as command calling display_selectors.
10152 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10154 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10155 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10158 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10160 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10162 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10164 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10165 (arm_fix_call_dummy): Call it.
10166 (arm_call_dummy_breakpoint_offset): Delete.
10167 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10168 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10170 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10172 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10173 Default to func_frame_chain_valid.
10174 * gdbarch.h, gdbarch.c: Re-generate.
10175 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10177 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10179 * ppc-linux-nat.c: Update copyright.
10180 (fetch_register, store_register): Add tid parameter, don't compute
10182 (fetch_ppc_registers, store_ppc_registers): Add tid
10183 parameter. Pass it along to callees.
10184 (fetch_inferior_registers, store_inferior_registers): Compute tid
10185 here, and pass it to calleed functions.
10186 (fill_gregset, supply_fpregset): Clean up formatting.
10188 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10190 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10191 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10193 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10195 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10196 * gdbarch.c gdbarch.h: Regenerate.
10197 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10199 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10200 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10201 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10203 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10204 * arm-tdep.c (arm_get_longjmp_target): New function.
10205 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10206 this to a positive value register arm_get_longjmp_target as the
10208 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10209 (arm_linux_init_abi): Set up longjmp description in tdep.
10210 * armnbsd-nat.c (get_longjmp_target): Delete.
10211 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10212 description in tdep.
10213 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10214 (get_longjmp_target): Delete declaration.
10215 (GET_LONGJMP_TARGET): Delete.
10216 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10217 (GET_LONGJMP_TARGET): Delete.
10219 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10221 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10222 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10223 of ``current_gdbarch''.
10225 2002-02-17 Tom Tromey <tromey@redhat.com>
10227 * cli/cli-cmds.c (compare_strings): New function.
10228 (complete_command): Only print each unique item once.
10229 * completer.h (complete_line): Declare.
10230 * completer.c (complete_line): New function.
10231 (line_completion_function): Use it.
10233 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10235 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10236 * gdbarch.h, gdbarch.c: Re-generate.
10238 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10240 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10242 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10244 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10245 * valops.c (value_arg_coerce): Don't take the address of a reference
10246 to convert an argument to a reference.
10248 2002-02-15 Christopher Faylor <cgf@redhat.com>
10250 * win32-nat.c (get_image_name): New function.
10251 (handle_load_dll): Use get_image_name function.
10252 (get_child_debug_event): Avoid registering debug events until possibly
10253 execed process is started.
10254 (child_create_inferior): Allow invocation via shell so that command
10255 line redirection, etc. works ok.
10256 (_initialize_inftarg): Add new command: "set shell" to control whether
10257 a shell is used to start a process.
10259 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10261 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10262 instead of find_register_by_number.
10263 (cannot_store_register): Likewise.
10265 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10267 * dwarf2read.c: Replace fprintf (stderr, ...) by
10268 fprintf_unfiltered (gdb_stderr, ...).
10270 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10272 * gdbserver/gdbserver.1: Document --attach.
10274 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10276 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10278 * arm-tdep.c (arm_default_arm_le_breakpoint)
10279 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10280 (arm_default_thumb_be_breakpoint): New. Initialize them from
10281 traditional breakpoint defines.
10282 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10283 (arm_gdbarch_init): Initialize new breakpoint variables.
10284 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10285 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10286 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10287 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10289 (arm_netbsd_init_abi_common): ... here; new function.
10290 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10291 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10292 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10293 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10295 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10297 * arm-tdep.h (enum arm_abi): New enum.
10298 (struct gdbarch_tdep): New structure.
10299 (LOWEST_PC): Provide a default.
10300 (arm_gdbarch_register_os_abi): Declare new function.
10301 * arm-tdep.c (arm_abi_names): New array.
10302 (process_note_abi_tag_sections): New function.
10303 (get_elfosabi): New function.
10304 (arm_gdbarch_register_os_abi): New function.
10305 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10306 support for that ABI has been built in, then call the appropriate
10307 configuration routine. Use gdbarch_num_regs() to get the number
10309 (arm_dump_tdep): New function.
10310 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10311 place-holder functions.
10312 (_initialize_arm_tdep): Register them.
10313 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10315 * armnbsd-tdep.c: New file.
10316 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10317 * config/arm/nbsd.mt (TDEPFILES): Add it.
10318 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10320 * armnbsd-nat.c: Include regcache.h.
10321 * Makefile.in (armnbsd-nat.o): Update dependency list.
10323 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10325 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10327 * gdbserver/Makefile.in: Fix typos in target rules.
10329 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10331 Fix part of PR gdb/267.
10332 * linespec.c (find_methods): Handle constructors specially for now.
10334 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10336 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10338 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10339 standard_coerce_float_to_double().
10341 2002-02-14 Christopher Faylor <cgf@redhat.com>
10343 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10346 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10348 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10349 find_variant_by_name, because it confuses the multiarch
10350 framework. Return NULL if there isn't an architecture with the
10351 user supplied name, instead of forcing a different one without
10352 recording the change with the multiarch machinery.
10353 (find_variant_by_name): Delete.
10355 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10357 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10358 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10360 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10362 * stack.c (print_frame_info_base): When calling
10363 print_frame_info_listing_hook, set current_source_symtab.
10365 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10367 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10368 and remove unused $(INCLUDE_DIR).
10369 Add regcache.c to OBS.
10370 Add generated register protocol files to clean target.
10371 Update dependencies for new objects, obsolete old target code.
10373 * gdbserver/linux-low.c: Remove all platform-specific code to
10374 new files. Remove various dead code. Update to use regcache
10376 * gdbserver/remote-utils.c (fromhex): Add return statement
10378 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10380 (input_interrupt): Add integer parameter to match prototype
10381 of a signal handler.
10382 (outreg): Use register_data ().
10383 (prepare_resume_reply): Use gdbserver_expedite_regs.
10384 * gdbserver/server.c (main): Dynamically allocate own_buf because
10385 PBUFSIZ is no longer constant. Use registers_to_string () and
10386 registers_from_string ().
10387 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10388 for error (), fatal (), and warning (). Update definition of
10389 PBUFSIZ to use regcache functionality. Add include guard.
10390 * gdbserver/utils.c (fatal): Add missing ``const''.
10391 (warning): New function.
10393 * regformats/regdat.sh: Include "regcache.h" in generated files.
10394 Provide init_registers () function.
10395 * regformats/regdef.h: Add prototype for set_register_cache ().
10398 * gdbserver/linux-arm-low.c: New file.
10399 * gdbserver/linux-i386-low.c: New file.
10400 * gdbserver/linux-ia64-low.c: New file.
10401 * gdbserver/linux-m68k-low.c: New file.
10402 * gdbserver/linux-mips-low.c: New file.
10403 * gdbserver/linux-ppc-low.c: New file.
10404 * gdbserver/linux-sh-low.c: New file.
10406 * gdbserver/regcache.c: New file.
10407 * gdbserver/regcache.h: New file.
10409 * gdbserver/low-linux.c: Removed obsolete file.
10411 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10413 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10414 * config/i386/linux.mt: Likewise.
10415 * config/ia64/linux.mt: Likewise.
10416 * config/m68k/linux.mh: Likewise.
10417 * config/powerpc/linux.mh: Likewise.
10418 * config/mips/linux.mt: Likewise.
10420 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10422 * config/i386/i386lynx.mh: Mark gdbserver variables
10423 as (currently) obsolete for this target.
10424 * config/i386/nbsd.mt: Likewise.
10425 * config/i386/nbsdelf.mt: Likewise.
10426 * config/m32r/m32r.mt: Likewise.
10427 * config/m68k/m68klynx.mh: Likewise.
10428 * config/m68k/nbsd.mt: Likewise.
10429 * config/m68k/sun3os4.mh: Likewise.
10430 * config/mips/vr5000.mt: Likewise.
10431 * config/ns32k/nbsd.mt: Likewise.
10432 * config/pa/hppabsd.mh: Likewise.
10433 * config/pa/hppaosf.mh: Likewise.
10434 * config/powerpc/nbsd.mt: Likewise.
10435 * config/rs6000/rs6000lynx.mh: Likewise.
10436 * config/s390/s390.mt: Likewise.
10437 * config/s390/s390x.mt: Likewise.
10438 * config/sparc/sparclynx.mh: Likewise.
10439 * config/sparc/sun4os4.mh: Likewise.
10440 * config/i386/x86-64linux.mt: Likewise.
10441 * config/sparc/linux.mh: Likewise.
10443 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10445 * configure.tgt: Configure gdbserver only for known working
10446 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10447 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10448 SUBDIRS if it is configured. Update comment for ${nativefile}.
10449 * configure: Regenerated.
10451 2002-02-13 Michael Snyder <msnyder@redhat.com>
10453 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10455 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10456 (default_gcore_mach): Just return 0, work around a problem in bfd.
10457 (default_gcore_target): OK to return NULL if exec_bfd is null.
10458 (make_mem_sec): Use a cast, avoid a warning.
10460 * procfs.c (find_memory_regions_callback): Use a cast instead of
10461 calling host_pointer_to_address (which complains if
10462 sizeof (host pointer) != sizeof (target pointer)).
10463 (procfs_make_note_section): Avoid overflow in psargs string.
10465 * procfs.c (procfs_make_note_section): Make the default
10466 implementation return an error.
10468 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10470 * procfs.c (procfs_make_note_section): Provide a default definition
10471 (for alpha-dec-osf4.0f). Fix typos.
10473 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10475 * linux-proc.c: Add include of regcache.h.
10476 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10478 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10480 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10481 * memattr.c (create_mem_region): Disallow useless empty region.
10482 Regions are half-open intervals, so allow [A..B) [B..C) as
10485 2002-02-13 Michael Chastain <mec@shout.net>
10487 * defs.h: Kill CONST_PTR.
10488 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10489 * c-lang.c (c_builtin_types): Likewise.
10490 * ch-lang.c (ch_builtin_types): Likewise.
10491 * f-lang.c (f_builtin_types): Likewise.
10492 * language.c (unknown_builtin_types): Likewise.
10493 * m2-lang.c (m2_builtin_types): Likewise.
10494 * p-lang.c (pascal_builtin_types): Likewise.
10495 * scm-lang.c (c_builtin_types): Likewise.
10497 2002-02-13 Keith Seitz <keiths@redhat.com>
10499 * arm-tdep.h (arm_get_next_pc): Add declaration.
10501 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10503 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10504 with other related struct-returning functions.
10505 (arm_extract_struct_value_address): New function.
10506 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10507 initialize float_format, double_format and long_double_format as
10508 appropriate to the endianness of the target.
10509 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10510 (arm_use_struct_convention): Delete declaration.
10511 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10513 2002-02-13 Keith Seitz <keiths@redhat.com>
10515 * defs.h (core_addr_to_string_nz): New function.
10517 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10519 Apply missing bits of 2002-01-15 patch.
10520 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10521 (fill_fpregset): Use i387_fill_fsave.
10523 2002-02-12 Keith Seitz <keiths@redhat.com>
10525 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10526 (core_addr_to_string_nz): New function.
10528 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10530 * arm-linux-nat.c: Really include arm-tdep.h.
10531 * config/arm/tm-linux.h (struct type, struct value): Declare.
10533 2002-02-11 Michael Snyder <msnyder@redhat.com>
10535 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10536 (gcore section): Ifdef for Solaris and Unixware only.
10537 (procfs_do_thread_registers): Unixware needs one lwpstatus
10538 per thread (not one prstatus or pstatus).
10539 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10540 not over all gdb threads. For unixware, call elfcore_write_pstatus
10541 once before iterating over threads.
10543 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10545 * arm-tdep.h: New file.
10546 * arm-tdep.c: Include arm-tdep.h.
10547 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10548 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10549 (arm_print_float_info, arm_register_type, convert_to_extended)
10550 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10551 (arm_extract_return_value, arm_register_name): Make static.
10552 (arm_software_single_step): Similarly. Fix types in declaration.
10553 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10554 (arm_store_return_value, arm_store_struct_return): New functions.
10555 (arm_gdbarch_init): Register the above functions. Also register
10556 call_dummy_start_offset, sizeof_call_dummy_words,
10557 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10558 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10559 max_register_virtual_size, register_size. Set up
10560 prologue_cache.saved_regs here, rather than ...
10561 (_initialize_arm_tdep): ... here.
10562 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10564 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10565 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10566 (arm_print_float_info, arm_register_type, convert_to_extended)
10567 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10568 (arm_extract_return_value, arm_register_name): Delete declarations.
10569 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10570 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10571 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10572 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10573 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10574 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10575 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10576 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10577 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10578 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10579 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10580 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10582 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10583 * remote-rdi.c remote-rdp.c: Likewise.
10584 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10585 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10586 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10589 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10590 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10591 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10592 from non-ARM_ prefixed definitions.
10593 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10595 * remote-rdi.c remote-rdp.c: Likewise.
10596 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10598 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10600 * arm-tdep.c (arm_frameless_function_invocation)
10601 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10602 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10603 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10604 (arm_pop_frame, arm_get_next_pc): Make static.
10605 (arm_gdbarch_init): Register above in gdbarch structure.
10606 (arm_read_fp): Renamed from arm_target_read_fp.
10607 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10608 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10609 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10610 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10611 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10612 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10613 (arm_pc_is_thumb_dummy): Delete declarations.
10614 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10615 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10616 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10617 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10619 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10621 * symtab.c (compare_search_syms): New function.
10622 (sort_search_symbols): New function.
10623 (search_symbols): Sort symbols after searching rather than
10626 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10628 * NEWS: Linux -> GNU/Linux.
10630 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10632 * gdbarch.sh: For for level one methods, disallow a definition
10633 when partially multi-arched. Add comments explaining rationale.
10634 * gdbarch.h: Re-generate.
10636 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10638 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10639 multi-arch partial.
10641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10643 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10644 field. Use diff -u.
10645 * gdbarch.c: Re-generate.
10647 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10649 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10650 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10653 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10655 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10656 multi-arch partial.
10657 (PUSH_ARGUMENTS): Switch to using predefault.
10658 * gdbarch.c: Regenerate.
10660 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10662 * valops.c (PUSH_ARGUMENTS): Delete definition.
10663 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10664 partial. Default to default_push_arguments.
10665 * gdbarch.h, gdbarch.c: Regenerate.
10667 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10669 * defs.h (throw_exception): Rename return_to_top_level. Update
10671 * utils.c (error_stream, internal_verror, quit): Ditto.
10672 * top.c (throw_exception, catcher): Ditto.
10673 * sparclet-rom.c (sparclet_load): Ditto.
10674 * remote.c (interrupt_query, minitelnet): Ditto.
10675 * remote-sds.c (interrupt_query): Ditto.
10676 * remote-mips.c (mips_error, mips_kill): Ditto.
10677 * ocd.c (interrupt_query): Ditto.
10678 * monitor.c (monitor_interrupt_query): Ditto.
10679 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10680 * target.h: Update comment.
10682 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10684 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10686 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10687 default_double_format.
10688 * gdbarch.h, gdbarch.c: Re-generate.
10689 * findvar.c (floatformat_unknown): Delete variable definition.
10690 * doublest.h (floatformat_unknown): Delete variable declaration.
10692 2002-02-09 Jim Blandy <jimb@redhat.com>
10694 * stabsread.c (read_type): Add code to parse Sun's syntax for
10695 prototyped function types.
10697 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10699 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10700 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10702 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10704 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10705 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10706 now _initialize_xcoffsolib gets called again and overrides the
10707 commands from solib.c in a native configuration.
10709 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10711 * doublest.c (store_typed_floating): Don't try to return a value.
10714 2002-02-08 Jim Blandy <jimb@redhat.com>
10716 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10717 is prototyped and has no arguments, print its argument list as
10720 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10722 * MAINTAINERS (write-after-approval): Add myself.
10723 (paper-trail): I've escaped!
10725 2002-02-08 Christopher Faylor <cgf@redhat.com>
10727 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10729 (_initialize_check_for_gdb_ini): Ditto.
10731 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10733 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10734 xaprintf -> xasprintf.
10736 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10738 * win32-nat.c: Remove use of printf and sprintf functions.
10740 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10742 * arm-tdep.c (arm_frame_chain_valid): Make static.
10743 (arm_push_arguments): Likewise.
10744 (arm_gdbarch_init): New function.
10745 (_initialize_arm_tdep): Call it.
10746 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10747 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10748 (FRAME_CHAIN_VALID): Delete.
10749 (arm_frame_chain_valid): Delete declaration.
10750 (PUSH_ARGUMENTS): Delete.
10751 (arm_push_arguments): Delete declaration.
10752 (CALL_DUMMY_P): Delete.
10754 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10755 Corinna Vinschen <vinschen@redhat.com>
10757 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10758 on builtin float types.
10760 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10762 * utils.c: Include <curses.h> before "bfd.h".
10763 * tui/tui-hooks.c: Likewise.
10764 * tui/tui.c: Likewise.
10765 * tui/tuiCommand.c: Likewise.
10766 * tui/tuiData.c: Likewise.
10767 * tui/tuiDataWin.c: Likewise.
10768 * tui/tuiDisassem.c: Likewise.
10769 * tui/tuiGeneralWin.c: Likewise.
10770 * tui/tuiIO.c: Likewise.
10771 * tui/tuiLayout.c: Likewise.
10772 * tui/tuiRegs.c: Likewise.
10773 * tui/tuiSource.c: Likewise.
10774 * tui/tuiSourceWin.c: Likewise.
10775 * tui/tuiStack.c: Likewise.
10776 * tui/tuiWin.c: Likewise.
10778 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10780 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10781 to include space for pseudoregs as well. Update loops accordingly.
10782 (sh_fp_frame_init_saved_regs): Ditto.
10783 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10785 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10787 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10788 Add Richard Earnshaw to Arm maintainers.
10790 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10792 * defs.h (warning_begin): Delete declaration.
10794 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10797 2002-02-07 Michael Snyder <msnyder@redhat.com>
10799 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10800 Logic bug, remove misplaced else.
10802 2002-02-07 Klee Dienes <klee@apple.com>
10804 * fork-inferior.c (fork_inferior): Add '!' to the list of
10805 characters that need to be quoted when building a string for the
10806 shell. Quote '!' specifically with a backslash, since CSH chokes
10807 when trying to evaluate "str!str".
10809 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10811 * rdi-share/host.h: Only provide a typedef for bool if it is not
10814 2002-02-04 Michael Snyder <msnyder@redhat.com>
10816 * breakpoint.h (enum bptype): Add new overlay event bp type.
10817 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10819 * breakpoint.c (create_internal_breakpoint): New function.
10820 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10821 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10822 (create_thread_event_breakpoint): Ditto.
10823 (create_solib_event_breakpoint): Ditto.
10824 (create_overlay_event_breakpoint): New function.
10825 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10826 (update_breakpoints_after_exec): Delete and re-initialize
10827 overlay event breakpoints after an exec. Add FIXME comment
10828 about longjmp breakpoint.
10829 (print_it_typical): Ignore overlay event breakpoints.
10830 (print_one_breakpoint): Ditto.
10832 (bpstat_what): Do not stop for overlay event breakpoints.
10833 (delete_breakpoint): Don't delete overlay event breakpoints.
10834 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10835 (breakpoint_re_set): Re-create overlay event breakpoint.
10837 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10838 (overlay_manual_command): Disable overlay breakpoints.
10839 (overlay_off_command): Disable overlay breakpoints.
10841 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10843 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10844 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10845 to here from config/tm-arm.h.
10846 (coff_sym_is_thumb): Make static.
10847 (arm_elf_make_msymbol_special): New function.
10848 (arm_coff_make_msymbol_special): New function.
10849 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10850 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10851 (coff_sym_is_thumb): Delete declaration.
10852 (arm_elf_make_msymbol_special): Declare.
10853 (arm_coff_make_msymbol_special): Declare.
10854 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10855 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10857 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10859 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10861 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10863 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10864 * gdbarch.c gdbarch.h: Regenerate.
10865 * arch-utils.c (default_print_float_info): New function.
10866 * arch-utils.h (default_print_float_info): Prototype it.
10867 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10868 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10869 (PRINT_FLOAT_INFO): Document it.
10871 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10872 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10873 (PRINT_FLOAT_INFO): Define.
10875 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10877 * win32-nat.c (_initialize_check_for_gdb_ini):
10878 Add typecast to sprintf argument to suppress a warning.
10880 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10882 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10883 to allow easier handling of pass state.
10884 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10885 that gives exception name and address.
10886 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10887 and set last_sig value to ourstatus->value.sig. Some missing
10889 (child_continue): Correctly report continue_status.
10890 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10891 TARGET_SIGNAL_0 (new default value).
10892 (child_resume): consider sig argument passed to decide if
10893 the exception should be passed to debuggee or not.
10895 2002-02-05 Michael Snyder <msnyder@redhat.com>
10897 * regcache.c (fetch_register): Call target_fetch_register
10898 only if we don't call FETCH_PSEUDO_REGISTER.
10899 (store_register): Call target_store_register only if we
10900 don't call STORE_PSEUDO_REGISTER.
10902 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10904 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10905 ELF_MAKE_MSYMBOL_SPECIAL.
10906 * gdbarch.c, gdbarch.h: Regenerate.
10907 * arch-utils.c (default_make_msymbol_special): New function.
10908 * arch-utils.h (default_make_msymbol_special): Export.
10909 * elfread.c (elf_symtab_read): Compile use of
10910 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10912 * coffread.c (coff_symtab_read): Ditto, for
10913 COFF_MAKE_MSYMBOL_SPECIAL.
10915 2002-02-05 Jim Blandy <jimb@redhat.com>
10917 * solib-svr4.c (svr4_truncate_ptr): New function.
10918 (svr4_relocate_section_addresses): Do the address arithmetic with
10919 the appropriate truncation for target addresses, even when
10920 CORE_ADDR is larger than a target address.
10922 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10924 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10927 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10929 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10932 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10934 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10936 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10938 * gdbserver/linux-low.c: Remove unused include files.
10940 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10942 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10943 (read_inferior_memory): Use it.
10944 (write_inferior_memory): Likewise.
10946 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10948 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10949 grubbing through sys_errlist.
10951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10953 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10955 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10956 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10958 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10960 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10961 (do_sfunc, set_cmd_sfunc): New functions.
10963 * command.h (struct cmd_list_element): Add field func.
10964 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10965 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10966 * cli/cli-decode.h: Ditto.
10968 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10969 (help_all, help_cmd_list): Ditto.
10970 (find_cmd, complete_on_cmdlist): Ditto.
10971 * top.c (execute_command): Ditto.
10973 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10976 * infcmd.c (notice_args_read): Fix function signature.
10978 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10979 * cli/cli-decode.c (add_set_cmd): Ditto.
10980 * utils.c (initialize_utils): Ditto.
10981 * maint.c (_initialize_maint_cmds): Ditto.
10982 * infrun.c (_initialize_infrun): Ditto.
10983 * demangle.c (_initialize_demangler): Ditto.
10984 * remote.c (add_packet_config_cmd): Ditto.
10985 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10986 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10987 * proc-api.c (_initialize_proc_api): Ditto.
10988 * kod.c (_initialize_kod): Ditto.
10989 * valprint.c (_initialize_valprint): Ditto.
10990 * top.c (init_main): Ditto.
10991 * infcmd.c (_initialize_infcmd): Ditto.
10992 * corefile.c (_initialize_core): Ditto.
10993 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10994 * arch-utils.c (initialize_current_architecture): Ditto.
10995 (_initialize_gdbarch_utils): Ditto.
10996 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10998 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10999 * wince.c (_initialize_inftarg): Ditto.
11000 * symfile.c (_initialize_symfile): Ditto.
11001 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11002 * language.c (_initialize_language): Ditto.
11003 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11005 2002-02-04 Michael Snyder <msnyder@redhat.com>
11007 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11009 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11011 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11012 Add rules for building the register data files.
11014 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11016 * regformats/regdat.sh: Add braces to the definition of
11017 expedite_regs_${arch}.
11019 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11021 * regformats/regdef.h (struct reg): Add comment describing the
11022 requirements for offset and size fields.
11024 2002-02-04 Andreas Schwab <schwab@suse.de>
11026 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11027 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11029 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11031 * gdbarch.sh (copyright): Update years in generated header.
11032 (SMASH_TEXT_ADDRESS): Add rule.
11033 * gdbarch.h, gdbarch.c: Re-generate.
11034 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11035 * dbxread.c: Likewise.
11036 * dwarfread.c: Likewise.
11037 * elfread.c: Likewise.
11038 * somread.c: Likewise.
11040 * arm-tdep.c (arm_smash_text_address): New function.
11041 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11043 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11045 Add support for hardware watchpoints on win32 native.
11046 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11047 CONTEXT_DEBUG_REGISTERS.
11048 (dr variable): New variable. Static array containing a local copy
11049 of debug registers.
11050 (debug_registers_changed): New variable. Reflects when debug registers
11051 are changed and need to be written to inferior.
11052 (debug_registers_used): New variable. Reflects when any debug register
11053 was set, used when new threads are created.
11054 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11056 (thread_rec): Set dr array if id is the thread of current_event .
11057 (child_continue, child_resume): Change the debug registers for all
11058 threads if debug_registers_changed.
11059 (child_add_thread): Change the debug registers if debug_registers_used.
11060 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11061 Link nm.h to new nm-cygwin.h file.
11062 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11063 of hardware registers.
11065 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11067 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11068 Restore behavour broken by 2002-01-20 Andrew Cagney
11069 <ac131313@redhat.com> IEEE_FLOAT removal.
11071 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11073 * c-valprint.c (c_val_print): Pass a proper valaddr to
11074 cp_print_class_method.
11075 * valops.c (search_struct_method): If there is only one method
11076 and args is NULL, return that method.
11078 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11080 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11081 accessing tag_name directly.
11083 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11085 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11086 of accessing tag_name directly.
11088 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11091 * gdbtypes.c (replace_type): New function.
11092 * gdbtypes.h (replace_type): Add prototype.
11093 * stabsread.c (read_type): Use replace_type.
11095 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11097 * Makefile.in (memattr.o): Add missing dependencies rule.
11099 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11101 * breakpoint.c (break_at_finish_command): Really export.
11102 (break_at_finish_at_depth_command): Ditto.
11103 (tbreak_at_finish_command): Ditto.
11104 * hppa-tdep.c: Include completer.h.
11105 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11106 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11108 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11110 * utils.c (do_write): New function.
11111 (error_stream): Rewrite combining the code from error_begin and
11113 (verror): Rewrite using error_stream.
11114 (error_begin): Delete function.
11116 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11118 * utils.c (error_begin): Make static.
11119 * defs.h (error_begin): Delete declaration.
11121 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11122 (decode_line_1): Use cplusplus_error instead of error_begin,
11123 cplusplus_hint and return_to_top_level.
11124 * coffread.c (coff_symfile_read): Use error instead of error_begin
11125 and return_to_top_level.
11126 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11128 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11130 * language.h (type_error, range_error): Make string parameter
11132 * language.c (warning_pre_print): Delete extern declaration.
11133 * dwarfread.c (warning_pre_print): Ditto.
11134 * language.c (type_error, range_error): Rewrite to use verror and
11135 vwarning instead of warning_begin.
11137 2002-02-01 Michael Snyder <msnyder@redhat.com>
11139 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11140 (set_ignore_count): Move misplaced comment back where it belongs.
11142 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11144 * command.h (NO_FUNCTION): Delete macro.
11145 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11146 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11147 * tracepoint.c (_initialize_tracepoint): Ditto.
11148 * cli/cli-decode.c (add_set_cmd): Ditto.
11149 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11151 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11153 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11154 Update ``this'' pointer when calling virtual functions.
11156 2002-02-01 Michael Snyder <msnyder@redhat.com>
11158 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11159 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11161 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11163 * regformats/reg-arm.dat: New file.
11164 * regformats/reg-i386.dat: New file.
11165 * regformats/reg-ia64.dat: New file.
11166 * regformats/reg-m68k.dat: New file.
11167 * regformats/reg-mips.dat: New file.
11168 * regformats/reg-ppc.dat: New file.
11169 * regformats/reg-sh.dat: New file.
11170 * regformats/regdef.h: New file.
11171 * regformats/regdat.sh: New file.
11173 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11175 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11176 (arm_frame_args_address, arm_frame_locals_address): New functions.
11177 (arm_frame_num_args): New function.
11178 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11179 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11180 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11182 2002-01-31 Michael Snyder <msnyder@redhat.com>
11184 * breakpoint.c (break_at_finish_command): Export.
11185 (break_at_finish_at_depth_command): Export.
11186 (tbreak_at_finish_command): Export.
11187 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11188 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11189 "txbreak" commands, which are HPPA specific.
11191 * printcmd.c (disassemble_command): Remove an ancient
11192 artifact of an old merge.
11194 * symfile.h (enum overlay_debugging_state):
11195 Define enum constant values for overlay mode.
11196 * symfile.c (overlay_debugging): Use enums instead of literals.
11197 (overlay_is_mapped, overlay_auto_command,
11198 overlay_manual_command): Ditto.
11200 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11201 breakpoint_here_p, breakpoint_inserted_here_p,
11202 breakpoint_thread_match, bpstat_stop_status,
11203 describe_other_breakpoints, check_duplicates, clear_command):
11204 Coding standard fixes.
11206 * target.c (target_xfer_memory): Add spaces, coding standard.
11207 (do_xfer_memory): Add missing line to trust-readonly
11208 code: check bfd SEC_READONLY flag for section.
11210 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11212 * PROBLEMS: Fix typo, 5.1->5.1.1.
11214 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11216 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11217 data symbols, since we search based on textlow and texthigh.
11218 (find_pc_sect_symtab): Likewise.
11220 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11222 * defs.h (vwarning): Declare.
11223 * utils.c (vwarning): New function.
11224 (warning): Call vwarning.
11225 (warning_begin): Delete function.
11227 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11228 the warning message.
11229 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11232 2002-01-30 Michael Snyder <msnyder@redhat.com>
11234 * NEWS: Mention "set trust-readonly-sections" command.
11235 Mention generate-core-file command.
11237 2002-01-15 Michael Snyder <msnyder@redhat.com>
11239 * target.c: New command, "set trust-readonly-sections on".
11240 (do_xfer_memory): Honor the suggestion to trust readonly sections
11241 by reading them from the object file instead of from the target.
11242 (initialize_targets): Register command "set trust-readonly-sections".
11244 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11246 * parse.c (target_map_name_to_register): Simplify, search regs and
11247 pseudo-regs using a single loop.
11249 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11251 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11253 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11255 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11256 * config/i386/i386v42mp.mh: Add i387-nat.o .
11257 * i386v4-nat.c: Include i387-nat.h.
11258 (supply_fpregset): Use i387_supply_fsave.
11259 (fill_fpregset): Use i387_fill_fsave.
11261 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11263 * arm-tdep.c (arm_call_dummy_words): Define.
11264 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11265 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11266 (CALL_DUMMY_WORDS): Define.
11267 (arm_call_dummy_words): Declare.
11268 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11269 (arm_linux_call_dummy_words): Declare.
11271 2002-01-30 Andreas Schwab <schwab@suse.de>
11273 * m68klinux-nat.c: Fix last change to use regcache_collect
11274 instead of referencing registers[] directly.
11276 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11278 * parse.c (target_map_name_to_register): Delete code wrapped in
11279 #ifdef REGISTER_NAME_ALIAS_HOOK.
11281 2002-01-28 Michael Snyder <msnyder@redhat.com>
11283 * regcache.c (legacy_read_register_gen): Need to be able to
11284 read pseudo-register as well as real register.
11285 (legacy_write_register_gen): Ditto.
11287 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11289 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11290 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11291 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11292 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11293 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11294 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11295 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11296 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11297 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11298 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11299 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11300 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11301 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11302 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11303 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11304 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11305 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11306 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11307 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11308 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11310 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11312 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11313 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11314 (initialize_current_architecture): Update target_byte_order using
11315 information from BFD.
11316 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11317 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11319 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11321 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11322 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11324 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11325 #ifdef INVALID_FLOAT.
11326 * infcmd.c (do_registers_info): Ditto.
11327 * values.c (unpack_double): Ditto. Add comment.
11329 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11330 already commented out.
11332 2002-01-26 Andreas Schwab <schwab@suse.de>
11334 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11335 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11336 registers and add support for PTRACE_GETREGS.
11338 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11340 GDB 5.1.1 released from 5.1 branch.
11341 * NEWS: Add 5.1.1 news.
11342 * README: Sync with 5.1 branch.
11344 2002-01-23 Fred Fish <fnf@redhat.com>
11346 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11347 stabstring on initial malloc. Reallocing will copy it for us,
11350 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11352 * Makefile.in (hpread_h): Delete.
11353 (HFILES_NO_SRCDIR): Remove hpread.h.
11354 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11355 (hpread.o): Update dependencies.
11356 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11358 * hp-psymtab-read.c: Remove file.
11359 * hp-symtab-read.c: Remove file.
11360 * hpread.h: Remove file.
11362 * hpread.c: Merge all contents of hp-psymtab-read.c,
11363 hp-symtab-read.c and hpread.h into this file, as it was prior to
11366 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11367 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11368 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11369 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11371 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11373 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11374 fill_gregset): Call gdbarch_tdep() just once, assign result to
11375 variable and use that, instead of calling the function several
11378 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11380 * configure.host: Accept sparcv9 as alias for sparc64.
11381 * configure.tgt: Likewise.
11383 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11385 * solib-aix5.c (build_so_list_from_mapfile)
11386 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11387 arguments is not reversed.
11388 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11389 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11391 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11393 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11394 modified version of obsolete sh_fetch_pseudo_register.
11395 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11396 (sh4_register_read): New function.
11397 (sh_pseudo_register_write): New function. Renamed and modified
11398 version of obsolete sh_store_pseudo_register.
11399 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11400 (sh4_register_write): New function.
11401 (sh_gdbarch_init): Remove setting of gdbarch function
11402 fetch_pseudo_register and store_pseudo_register. Remove setting of
11403 register_convert_to_raw, register_convert_to_virtual,
11404 register_convertible.
11405 (sh_sh4_register_convertible): Delete. No longer needed. All is
11406 taken care by architecture specific functions
11407 register_read/register_write.
11408 (sh_sh4_register_convert_to_virtual): Make static.
11409 (sh_sh4_register_convert_to_raw): Ditto.
11411 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11413 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11414 (floatformat_is_nan, floatformat_mantissa): Ditto.
11416 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11417 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11418 builtin_type_ieee_double_little,
11419 builtin_type_ieee_double_littlebyte_bigword,
11420 builtin_type_m68881_ext, builtin_type_i960_ext,
11421 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11422 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11423 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11424 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11426 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11428 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11429 parameter. Set frameless flag if it exists and depended of
11430 whether the scanned function is frameless or not.
11431 (xstormy16_skip_prologue): If function is frameless, return
11432 result of xstormy16_scan_prologue().
11433 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11436 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11438 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11439 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11440 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11441 sh_sh4_register_byte, sh_sh4_register_raw_size,
11442 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11443 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11444 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11445 sh_store_pseudo_register, sh_do_pseudo_register): Call
11446 gdbarch_tdep() just once, assign result to variable and use that,
11447 instead of calling the function several times.
11449 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11451 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11452 macros instead of LAST_FPU_CTRL_REGNUM.
11453 (store_register): Likewise.
11455 2002-01-21 Jim Blandy <jimb@redhat.com>
11457 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11458 is up-to-date before running the program, not just when a program
11461 2002-01-21 Fred Fish <fnf@redhat.com>
11463 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11464 when we have found all instructions we are looking for.
11466 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11468 * arm-tdep.c (arm_register_name): New function.
11469 (arm_registers_names): Make static.
11470 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11471 (arm_register_name): Declare.
11472 (REGISTER_NAME): Use it.
11474 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11475 Kevin Buettner <kevinb@redhat.com>
11477 Convert arm targets to new FRAME interface.
11478 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11479 (arm_frame_find_save_regs): Delete.
11480 (arm_frame_init_saved_regs): New.
11481 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11482 Allocate extra_info as required. Convert all uses of fsr.regs
11483 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11485 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11486 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11487 (check_prologue_cache, save_prologue_cache): Likewise.
11488 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11489 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11490 (FRAME_FIND_SAVED_REGS): Delete.
11491 (arm_frame_find_saved_regs): Delete prototype.
11492 (arm_frame_init_saved_regs): New prototype.
11493 (FRAME_INIT_SAVED_REGS): Define.
11495 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11497 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11499 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11501 From Jeff Law <law@redhat.com>:
11502 * infttrace.c: Include <sys/pstat.h>.
11503 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11504 exec file if the ttrace equivalent fails.
11506 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11508 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11509 (closeLogFile): Ditto.
11511 2002-01-20 Michael Chastain <mec@shout.net>
11513 * top.c (print_gdb_version): Bump copyright year to 2002.
11515 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11517 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11518 Zannoni and Eli Zaretskii.
11520 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11522 * buildsym.c: Update copyright years.
11523 * c-typeprint.c: Likewise.
11524 * dwarf2read.c: Likewise.
11525 * f-typeprint.c: Likewise.
11526 * gdbtypes.c: Likewise.
11527 * gdbtypes.h: Likewise.
11528 * hp-symtab-read.c: Likewise.
11529 * hpread.c: Likewise.
11530 * mdebugread.c: Likewise.
11531 * p-typeprint.c: Likewise.
11533 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11535 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11536 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11537 byte-order selectable.
11538 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11539 * arch-utils.c: Ditto.
11540 (set_endian): Ditto.
11541 (set_endian_from_file): Ditto.
11542 * gdbserver/low-sim.c (create_inferior): Ditto.
11543 * gdbarch.sh: Ditto.
11544 * gdbarch.h: Re-generate.
11545 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11546 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11547 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11548 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11549 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11550 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11551 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11552 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11554 * config/mips/tm-wince.h: Remove #undef of macro
11555 TARGET_BYTE_ORDER_SELECTABLE.
11556 * config/sh/tm-wince.h: Ditto.
11558 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11560 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11561 member function fields. Add accessor macro
11562 TYPE_FN_FIELD_ARTIFICIAL.
11563 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11564 * c-typeprint.c (c_type_print_base): Skip artificial member
11567 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11569 * f-typeprint.c: Delete unused function f_type_print_args.
11570 * p-typeprint.c: Delete unused function pascal_type_print_args.
11572 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11574 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11575 comment. Add ``artificial'' to ``union field_location''.
11577 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11579 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11580 * mdebugread.c (parse_symbol): Likewise.
11581 * stabsread.c (define_symbol): Likewise.
11582 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11583 initializing TYPE_FIELD_BITPOS to n (obsolete).
11584 (hpread_doc_function_type): Likewise.
11585 * hpread.c (hpread_function_type): Likewise.
11587 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11589 * configure.in (host_makefile_frag): Only require a host makefile
11590 fragment when a native build.
11591 * configure: Re-generate.
11593 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11595 * doublest.h (floatformat_from_type): Declare.
11596 * doublest.c (floatformat_from_type): New function.
11597 (convert_typed_floating): Use.
11599 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11600 call to function floatformat_from_type.
11602 * gdbarch.sh (IEEE_FLOAT): Delete.
11603 * gdbarch.h, gdbarch.c: Re-generate.
11604 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11605 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11606 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11607 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11608 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11609 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11610 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11611 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11612 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11613 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11614 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11615 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11617 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11618 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11619 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11620 * sh-tdep.c (sh_gdbarch_init): Ditto.
11621 * mips-tdep.c (mips_gdbarch_init): Ditto.
11622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11623 * cris-tdep.c (cris_gdbarch_init): Ditto.
11625 2002-01-20 Jiri Smid <smid@suse.cz>
11627 * configure.host, configure.tgt: Support x86-64.
11628 * NEWS: Note new target x86-64.
11630 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11631 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11632 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11633 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11634 x86-64-linux-nat.o): Fix dependencies.
11636 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11638 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11639 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11640 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11641 * config/sparc/xm-sun4os4.h: Delete file.
11642 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11644 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11646 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11647 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11648 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11649 * config/i386/i386lynx.mh (XM_FILE): Delete.
11650 * config/rs6000/xm-rs6000ly.h: Delete file.
11651 * config/sparc/xm-sparclynx.h: Delete file.
11652 * config/m68k/xm-m68klynx.h: Delete file.
11653 * config/i386/xm-i386lynx.h: Delete file.
11654 * config/xm-lynx.h: Delete file.
11655 * config/djgpp/fnchange.lst: Update.
11657 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11659 * alpha-tdep.c (alpha_register_byte): New function.
11660 (alpha_register_raw_size): Ditto.
11661 (alpha_register_virtual_size): Ditto.
11662 (alpha_skip_prologue_internal): Renamed from
11663 alpha_skip_prologue.
11664 (alpha_skip_prologue): New version that calls
11665 alpha_skip_prologue_internal.
11666 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11667 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11668 second argument from alpha_skip_prologue.
11669 (REGISTER_BYTE): Use alpha_register_byte.
11670 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11671 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11672 (FRAMELESS_FUNCTION_INVOCATION): Use
11673 generic_frameless_function_invocation_not.
11674 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11675 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11677 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11679 * config/mips/xm-news-mips.h: Delete file.
11680 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11682 * config/m88k/xm-m88k.h: Delete file.
11683 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11684 * config/m88k/xm-delta88v4.h: Ditto.
11685 * config/m88k/xm-delta88.h: Ditto.
11687 * config/alpha/xm-fbsd.h: Delete file.
11688 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11690 * config/sparc/xm-sparc.h: Delete file.
11691 * Makefile.in (xm-sun4os4.h): Delete dependency.
11692 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11693 * config/sparc/xm-sun4os4.h: Ditto.
11694 * config/sparc/xm-linux.h: Ditto.
11696 * config/i386/xm-windows.h: Delete file.
11698 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11700 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11701 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11703 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11705 * alpha-tdep.c (alpha_call_dummy_words): New.
11706 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11707 (CALL_DUMMY_P): Define.
11708 (CALL_DUMMY_WORDS): Define.
11709 (SIZEOF_CALL_DUMMY_WORDS): Define.
11711 2002-01-19 Per Bothner <per@bothner.com>
11713 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11714 isn't NULL, which can happen with some gcj-3.x-produced code.
11716 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11718 * alpha-tdep.c (alpha_register_virtual_type): New function.
11719 (alpha_init_frame_pc_first): Ditto.
11720 (alpha_fix_call_dummy): Ditto.
11721 (alpha_store_struct_return): Ditto.
11722 (alpha_extract_struct_value_address): Ditto.
11723 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11724 alpha_register_virtual_type.
11725 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11726 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11727 alpha_extract_struct_value_address.
11728 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11729 (INIT_FRAME_PC): Use init_frame_pc_noop.
11730 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11732 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11734 * i386gnu-nat.c: Include "i386-tdep.h".
11735 (fetch_fpregs): Simplify code dealing with uninitialized floating
11736 point states such that it doesn't require FP7_REGNUM.
11738 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11740 * alpha-tdep.c (frame_extra_info): New.
11741 (alpha_find_saved_regs): Make static. Use
11743 (alpha_frame_init_saved_regs): New function.
11744 (alpha_frame_saved_pc): Use frame->extra_info.
11745 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11746 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11747 (init_extra_frame_info): Rename to...
11748 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11749 (alpha_print_extra_frame_info): New function.
11750 (alpha_frame_locals_address): Ditto.
11751 (alpha_frame_args_address): Ditto.
11752 (alpha_pop_frame): Use frame->extra_info.
11753 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11754 alpha_frame_args_address.
11755 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11756 (alpha_find_saved_regs): Remove prototype.
11757 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11758 (EXTRA_FRAME_INFO): Remove.
11759 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11760 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11762 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11764 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11765 (alpha_cannot_fetch_register): Ditto.
11766 (alpha_cannot_store_register): Ditto.
11767 (alpha_register_convertible): Ditto.
11768 (alpha_use_struct_convention): Ditto.
11769 * config/alpha/tm-alpha.h: Update copyright years.
11770 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11771 (INNER_THAN): Use core_addr_lessthan.
11772 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11773 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11774 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11775 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11776 (FRAME_CHAIN): Remove unnecessary cast.
11778 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11780 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11783 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11785 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11786 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11787 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11788 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11789 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11790 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11791 * x86-64-linux-nat.c: Ditto.
11793 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11795 * alpha-tdep.c (alpha_register_name): New function.
11796 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11797 (REGISTER_NAME): Define.
11799 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11801 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11803 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11805 * alpha-tdep.c: Update copyright years.
11806 (alpha_next_pc): New function.
11807 (alpha_software_single_step): Ditto.
11808 * config/alpha/tm-alpha.h: Add prototype for
11809 alpha_software_single_step.
11811 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11813 * alphabsd-nat.c: Update copyright years.
11814 (fill_gregset): Use regcache_collect.
11815 (fill_fpregset): Likewise.
11816 (fetch_inferior_registers): Only fetch integer registers
11817 if requested to do so.
11818 (store_inferior_registers): Only store integer registers
11819 if requested to do so.
11821 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11823 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11824 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11825 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11826 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11827 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11828 * config/arm/linux.mh (XDEPFILES): Delete.
11829 * config/arm/nbsd.mh (XDEPFILES): Delete.
11830 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11831 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11832 * config/i386/i386m3.mh (XDEPFILES): Delete.
11833 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11834 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11835 * config/i386/fbsd.mh (XDEPFILES): Delete.
11836 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11837 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11838 * config/i386/i386v4.mh (XDEPFILES): Delete.
11839 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11840 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11841 * config/i386/i386aix.mh (XDEPFILES): Delete.
11842 * config/i386/go32.mh (XDEPFILES): Delete.
11843 * config/i386/cygwin.mh (XDEPFILES): Delete.
11844 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11845 * config/i386/i386mach.mh (XDEPFILES): Delete.
11846 * config/i386/i386v32.mh (XDEPFILES): Delete.
11847 * config/i386/linux.mh (XDEPFILES): Delete.
11848 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11849 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11850 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11851 * config/i386/i386sco.mh (XDEPFILES): Delete.
11852 * config/i386/i386v.mh (XDEPFILES): Delete.
11853 * config/i386/nbsd.mh (XDEPFILES): Delete.
11854 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11855 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11856 * config/i386/symmetry.mh (XDEPFILES): Delete.
11857 * config/i386/obsd.mh (XDEPFILES): Delete.
11858 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11859 * config/ia64/linux.mh (XDEPFILES): Delete.
11860 * config/ia64/aix.mh (XDEPFILES): Delete.
11861 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11862 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11863 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11864 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11865 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11866 * config/m68k/linux.mh (XDEPFILES): Delete.
11867 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11868 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11869 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11870 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11871 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11872 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11873 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11874 * config/m88k/delta88.mh (XDEPFILES): Delete.
11875 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11876 * config/m88k/m88k.mh (XDEPFILES): Delete.
11877 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11878 * config/mips/linux.mh (XDEPFILES): Delete.
11879 * config/mips/irix6.mh (XDEPFILES): Delete.
11880 * config/mips/irix5.mh (XDEPFILES): Delete.
11881 * config/mips/irix4.mh (XDEPFILES): Delete.
11882 * config/mips/irix3.mh (XDEPFILES): Delete.
11883 * config/mips/decstation.mh (XDEPFILES): Delete.
11884 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11885 (NATDEPFILES): Move core-aout.o to here.
11886 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11887 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11888 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11889 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11890 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11891 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11892 * config/pa/hpux11.mh (XDEPFILES): Delete.
11893 * config/powerpc/aix.mh (XDEPFILES): Delete.
11894 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11895 * config/powerpc/linux.mh (XDEPFILES): Delete.
11896 * config/romp/rtbsd.mh: Rename XDEPFILES.
11897 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11898 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11899 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11900 * config/s390/s390.mh (XDEPFILES): Delete.
11901 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11902 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11903 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11904 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11905 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11906 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11907 * config/sparc/linux.mh (XDEPFILES): Delete.
11908 * config/vax/vaxult.mh (XDEPFILES): Delete.
11909 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11910 * Makefile.in (DEPFILES): Remove XDEPFILES.
11912 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11914 * utils.c (internal_verror): Fix comments, default is yes not no.
11915 Update queries to match. Default to quit and dump core.
11917 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11919 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11921 * defs.h, event-top.c, gdbcmd.h: Ditto.
11922 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11923 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11924 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11925 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11926 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11927 * mi/mi-main.c:Ditto.
11929 * stack.c, symfile.c: Update copyright.
11931 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11933 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11934 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11935 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11936 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11938 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11940 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11941 * gdbserver/low-lynx.c (myattach): Likewise.
11942 * gdbserver/low-nbsd.c (myattach): Likewise.
11943 * gdbserver/low-sim.c (myattach): Likewise.
11944 * gdbserver/low-sparc.c (myattach): Likewise.
11945 * gdbserver/low-sun3.c (myattach): Likewise.
11947 * gdbserver/low-linux.c (myattach): New function.
11949 * gdbserver/server.c (attach_inferior): New function.
11950 (main): Handle "--attach".
11952 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11954 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11957 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11959 * c-typeprint.c (is_type_conversion_operator): Add additional
11960 check for non-conversion operators.
11962 2002-01-15 Michael Snyder <msnyder@redhat.com>
11964 * linux-proc.c: Add "info proc" command, a la procfs.c.
11965 (read_mapping): New function, abstract and re-use code.
11966 (linux_find_memory_regions): Use new func read_mapping.
11967 (linux_info_proc_cmd): New function, implement "info proc".
11968 (_initialize_linux_proc): Add new command "info proc".
11970 2002-01-15 Michael Snyder <msnyder@redhat.com>
11972 * symfile.c (generic_load): Use bfd_map_over_sections method
11973 instead of manipulating bfd structure members directly.
11974 (add_section_size_callback): New function, bfd sections callback
11975 used by generic_load.
11976 (load_sections_callback): New function, bfd sections callback
11977 used by generic_load.
11979 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11981 [Based on work by Jim Blandy]
11982 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11983 (builtin_type_vec128): Export.
11984 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11986 (builtin_type_vec128): New builtin type for 128 bit vector
11988 (build_gdbtypes): Initialize builtin_type_v16qi and
11989 builtin_type_v8hi. Create the vec128 register builtin type
11991 (build_builtin_type_vec128): New function.
11992 (_initialize_gdbtypes): Register builtin_type_v16qi and
11993 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11994 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11995 AltiVec register to new builtin type.
11997 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11999 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12002 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12004 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12005 CLEAN_UP_REGISTER_VALUE.
12006 * regcache.c (supply_register): Update only call.
12008 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12010 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12011 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12012 a29k-*-vxworks* targets as obsolete.
12014 2002-01-14 Michael Snyder <msnyder@redhat.com>
12016 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12017 until we can resolve portability issues.
12018 * gregset.h: Remove references to fpxregs.
12019 * gcore.c (gcore_command): Initialize note_sec to NULL.
12021 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12023 * signals.c (target_signal_to_name): Rewrite. Only use
12024 signals[].name when in bounds and non-NULL.
12026 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12028 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12029 * signals.c (target_signal_to_name): Verify that SIG is within the
12030 bounds of the signals array.
12032 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12034 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12036 2002-01-13 Keith Seitz <keiths@redhat.com>
12038 * stack.c (print_frame_info_base): Print the frame's pc
12039 only if when print_frame_info_listing_hook is not defined.
12041 2002-01-13 Keith Seitz <keiths@redhat.com>
12043 * varobj.c (varobj_set_value): Make sure that there were no
12044 errors evaluating the object before attempting to set its
12046 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12047 so this offset adjustment is no longer necessary.
12048 (create_child): Don't set the error flag if the child is
12049 a CPLUS_FAKE_CHILD.
12050 (value_of_child): If value_fetch_lazy fails, return NULL
12051 so that callers will be notified that an error occurred.
12052 (c_value_of_variable): Delay check of variable's validity
12053 until later. We actually want all structs and unions to have
12055 Do not return "???" for variables which could not be evaluated.
12056 This error condition must be returned to the caller so that it
12057 can get the error condition from gdb.
12058 (cplus_name_of_child): Adjust index for vptr before figuring
12059 out the name of the child.
12060 (cplus_value_of_child): If a child's (real) parent is not valid,
12061 don't even bother trying to give a value for it. Just return
12062 an error. Change all instances in this function.
12063 (cplus_type_of_child): If our parent is one of the "fake"
12064 parents, we need to get at the type of the real parent, and
12065 derive the child's true type using this information.
12067 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12069 From 2002-01-09 John Marshall <johnm@falch.net>:
12070 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12071 sources.redhat.com, and tweak some related URLs which had
12072 suffered from linkrot.
12074 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12077 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12078 structures passed in registers.
12080 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12082 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12083 white space which prevented compilation. Reported by DSK
12084 <dsk@student.unsw.edu.au>.
12086 2002-01-11 Michael Snyder <msnyder@redhat.com>
12088 * symfile.c (build_section_addr_info_from_section_tab):
12089 Use bfd access method instead of manipulating bfd directly.
12090 (syms_from_objfile): Ditto.
12091 (simple_overlay_update_1): Ditto.
12092 (simple_overlay_update): Ditto.
12093 (generic_load): Ditto.
12094 (overlay_unmapped_address): FIXME comment, bfd access methods.
12095 (sections_overlap): FIXME comment, bfd access methods.
12096 (pc_in_mapped_range): FIXME comment, bfd access methods.
12097 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12098 (section_is_mapped): FIXME comment, bfd access methods.
12099 (section_is_overlay): FIXME comment, bfd access methods.
12101 * symfile.c (generic_load): Whitespace and long line cleanups.
12102 Remove duplicate variable, change several local variables to
12103 more appropriate data types.
12104 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12106 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12108 From Peter Schauer:
12109 * language.c (longest_local_hex_string_custom): Use phex_nz to
12110 convert NUM to a hex string.
12112 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12114 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12116 Update Copyright year.
12118 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12120 * language.c (longest_raw_hex_string): Delete unused function.
12122 2002-01-11 Petr Sorfa <petrs@caldera.com>
12124 * MAINTAINERS (write-after-approval): Add myself.
12125 * dwarf2read.c (read_tag_string_type): Handling of
12127 (read_tag_string_type): FORTRAN fix to prevent propagation of
12129 (set_cu_language): Handling of DW_LANG_Fortran95
12131 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12133 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12134 GETPID(inferior_ptid).
12135 (store_inferior_registers): Likewise.
12137 2002-01-10 Jason Merrill <jason@redhat.com>
12139 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12142 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12144 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12145 and bfd/elf32-sh-nbsd.c.
12147 2002-01-10 Michael Snyder <msnyder@redhat.com>
12149 * NEWS: Mention --pid and corefile/proc-id behavior change.
12151 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12152 * gcore.c: Include cli/cli-decode.h instead of command.h.
12154 * main.c (captured_main): Add new command line option "--pid".
12155 If the second command line argument (following the symbol-file)
12156 begins with a digit, try to attach to it before trying to open
12158 (print_gdb_help): Document the "--pid" argument.
12160 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12162 * completer.c (command_completer): New function.
12164 * completer.h <command_completer>: Add prototype.
12166 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12167 completer for the "help" command.
12169 2002-01-09 Jason Merrill <jason@redhat.com>
12171 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12173 2002-01-09 Michael Snyder <msnyder@redhat.com>
12175 * i386-linux-nat.c (fill_fpxregset): Make global.
12176 (store_fpxregset): Ditto.
12178 * gregset.h (gdb_fpxregset_t): Define.
12179 (supply_fpxregset): Prototype.
12180 (fill_fpxregset): Prototype.
12182 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12184 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12186 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12187 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12188 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12190 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12192 * MAINTAINERS: Update target maintainer rules so that any
12193 Maintainer can approve a tested patch for a maintenance-only
12196 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12198 * MAINTAINERS (write-after-approval): Add myself.
12200 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12203 2002-01-08 Michael Snyder <msnyder@redhat.com>
12205 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12206 real name of the executable, rather than the /proc name.
12208 2002-01-03 Michael Snyder <msnyder@redhat.com>
12210 Implement a "generate-core-file" command in gdb, save target state.
12211 * gcore.c: New file. Implement new command 'generate-core-file'.
12212 Save a corefile image of the current state of the inferior.
12213 * linux-proc.c: Add linux-specific code for saving corefiles.
12214 * target.h (struct target_ops): Add new target vectors for saving
12215 corefiles; to_find_memory_regions and to_make_corefile_notes.
12216 (target_find_memory_regions): New macro.
12217 (target_make_corefile_notes): New macro.
12218 * target.c (update_current_target): Inherit new target methods.
12219 (dummy_find_memory_regions): New place-holder method.
12220 (dummy_make_corefile_notes): New place-holder method.
12221 (init_dummy_target): Initialize new dummy target vectors.
12222 * exec.c (exec_set_find_memory_regions): New function.
12223 Allow the exec_ops vector for memory regions to be taken over.
12224 (exec_make_note_section): New function, target vector method.
12225 * defs.h (exec_set_find_memory_regions): Export prototype.
12226 * procfs.c (proc_find_memory_regions): New function, corefile method.
12227 (procfs_make_note_section): New function, corefile method.
12228 (init_procfs_ops): Set new target vector pointers.
12229 (find_memory_regions_callback): New function.
12230 (procfs_do_thread_registers): New function.
12231 (procfs_corefile_thread_callback): New function.
12232 * sol-thread.c (sol_find_memory_regions): New function.
12233 (sol_make_note_section): New function.
12234 (init_sol_thread_ops): Initialize new target vectors.
12235 * inftarg.c (inftarg_set_find_memory_regions): New function.
12236 Allow to_find_memory_regions vector to be taken over.
12237 (inftarg_set_make_corefile_notes): New function.
12238 Allow to_make_corefile_notes vector to be taken over.
12239 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12240 interface layer if not target_has_execution (may be a corefile).
12241 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12242 * config/sparc/sun4sol2.mh: Ditto.
12243 * config/alpha/alpha-linux.mh: Ditto.
12244 * config/arm/linux.mh: Ditto.
12245 * config/i386/x86-64linux.mh: Ditto.
12246 * config/ia64/linux.mh: Ditto.
12247 * config/m68k/linux.mh: Ditto.
12248 * config/mips/linux.mh: Ditto.
12249 * config/powerpc/linux.mh: Ditto.
12250 * config/sparc/linux.mh: Ditto.
12252 2002-01-07 Michael Snyder <msnyder@redhat.com>
12254 * arm-linux-nat.c: Remove references to regcache.c internal data
12255 (registers[] and register_valid[]).
12257 2002-01-07 Michael Snyder <msnyder@redhat.com>
12259 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12260 so that attaching to a pid will automatically read the process's
12261 symbol file and shlibs.
12262 * Makefile.in: Add rule for linux-proc.o.
12263 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12264 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12265 * config/arm/linux.mh: Ditto.
12266 * config/i386/linux.mh: Ditto.
12267 * config/i386/x86-64linux.mh: Ditto.
12268 * config/ia64/linux.mh: Ditto.
12269 * config/m68k/linux.mh: Ditto.
12270 * config/mips/linux.mh: Ditto.
12271 * config/powerpc/linux.mh: Ditto.
12272 * config/sparc/linux.mh: Ditto.
12274 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12276 * win32-nat.c: Add i386-tdep.h dependency.
12278 2002-01-07 Michael Snyder <msnyder@redhat.com>
12280 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12281 instead of bfd_get_arch_size. Don't bail out just because
12282 there's no exec_bfd.
12284 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12285 * p-valprint.c (pascal_object_print_value): Ditto.
12286 * somread.c (som_symtab_read): Ditto.
12287 * symfile.c (simple_free_overlay_region_table): Ditto.
12288 * valops.c (value_assign): Ditto.
12290 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12291 use tilde_expand and strerror for opening save-tracepoints file.
12293 * thread-db.c (thread_db_new_objfile): Indendation fix.
12295 * infptrace.c (GDB_MAX_ALLOCA): New define.
12296 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12297 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12298 can be overridden with whatever value is appropriate to the host).
12299 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12300 alloca to allocate potentially large buffer.
12301 * rs6000-nat.c (child_xfer_memory): Ditto.
12302 * symm-nat.c (child_xfer_memory): Ditto.
12303 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12305 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12307 From Nick Clifton <nickc@redhat.com>
12308 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12310 2002-01-07 Michael Snyder <msnyder@redhat.com>
12312 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12313 Don't use exec_bfd if it's NULL.
12315 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12317 * valops.c (value_arg_coerce): Fix formatting.
12319 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12321 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12322 * gnu-nat.c: Ditto.
12324 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12326 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12327 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12328 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12329 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12330 z8k-coff have not been multi-arched. Update z8k-coff build
12333 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12335 * MAINTAINERS: Mark a29k target as obsolete.
12336 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12337 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12339 * NEWS: Note that a29k targets are obsolete.
12340 * a29k-tdep.c: Mark as obsolete.
12341 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12342 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12343 a29k-*-vxworks* targets as obsolete.
12344 * remote-adapt.c: Obsolete.
12345 * remote-eb.c: Obsolete.
12346 * remote-mm.c: Obsolete.
12347 * remote-udi.c: Obsolete.
12348 * config/a29k/a29k-udi.mt: Obsolete.
12349 * config/a29k/a29k.mt: Obsolete.
12350 * config/a29k/tm-a29k.h: Obsolete.
12351 * config/a29k/tm-vx29k.h: Obsolete.
12352 * config/a29k/vx29k.mt: Obsolete.
12354 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12356 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12357 with BFD_ENDIAN_BIG.
12359 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12361 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12362 * configure, config.in: Re-generate.
12363 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12364 * defs.h: Do not include <endian.h>.
12366 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12368 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12369 * config.in: Regenerate.
12370 * configure.in: Update copyright years.
12371 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12372 * configure: Regenerate.
12373 * i386bsd-nat.c: Update copyright years.
12374 (fill_gregset): Use regcache_collect.
12375 (fetch_inferior_registers): Only fetch integer registers
12376 if requested to do so. Add support for XMM registers
12377 using PT_GETXMMREGS.
12378 (store_inferior_registers): Only store integer registers
12379 if requested to do so. Add support for XMM registers
12380 using PT_SETXMMREGS.
12381 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12382 (store_inferior_registers): Remove.
12383 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12384 (fetch_elfcore_registers): New function.
12385 (i386nbsd_elfcore_fns): New.
12386 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12387 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12389 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12390 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12391 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12392 * config/i386/tm-nbsd.h: Update copyright years.
12393 (HAVE_SSE_REGS): Define.
12394 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12395 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12396 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12397 (SIGCONTEXT_PC_OFFSET): Remove.
12398 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12400 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12402 * configure.tgt: Remove powerpc-*-macos* target.
12403 * config/m68k/xm-mpw.h: Delete file.
12404 * config/xm-mpw.h: Delete file.
12405 * ser-mac.c: Delete file.
12406 * mpw-make.sed: Delete file.
12407 * mpw-config.in: Delete file.
12408 * mac-xdep.c: Delete file.
12409 * mac-gdb.r: Delete file.
12410 * mac-defs.h: Delete file.
12411 * mac-nat.c: Delete file.
12412 * config/powerpc/macos.mh: Delete file.
12413 * config/powerpc/macos.mt: Delete file.
12414 * config/powerpc/nm-macos.h: Delete file.
12415 * config/powerpc/tm-macos.h: Delete file.
12416 * source.c (openp, open_source_file): Remove obsolete code.
12417 * top.c (gdb_readline): Ditto.
12418 * utils.c (query): Ditto.
12419 * event-top.c (display_gdb_prompt): Ditto.
12420 * Makefile.in (ser-mac.o): Delete obsolete target.
12423 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12425 * defs.h (BIG_ENDIAN): Delete macro definition.
12426 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12427 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12428 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12429 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12430 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12431 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12432 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12433 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12434 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12435 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12436 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12437 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12438 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12439 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12440 * gdbarch.c: Re-generate.
12442 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12444 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12447 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12449 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12451 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12453 * value.h (value_ptr): Delete typedef.
12455 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12457 * i386nbsd-nat.c: Update copyright years.
12458 Include i386-tdep.h.
12460 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12462 * stabsread.c: Update copyright years.
12464 From Debashis Mahata <debashis.mahata@wipro.com>:
12465 (read_struct_fields): Deal with Sun C compiler erroneous stab
12466 output for structs and unions.
12469 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12471 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12474 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12476 * cp-abi.c: Fix whitespace.
12477 (baseclass_offset): New wrapper function.
12478 * cp-abi.h (baseclass_offset): Add prototype.
12479 (struct cp_abi_ops): Add baseclass_offset pointer.
12481 * valops.c (vb_match): Move to...
12482 * gnu-v2-abi.c (vb_match): here.
12483 * valops.c (baseclass_offset): Move to...
12484 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12486 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12488 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12489 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12490 * hpacc-abi.c (init_hpacc_ops): Likewise.
12492 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12494 * valops.c (find_overload_match): Accept obj as a
12495 reference parameter. Update it before returning.
12496 * value.h (find_overload_match): Update prototype.
12497 * eval.c (evaluate_subexp_standard): Pass object to
12498 find_overload_match by reference.
12500 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12502 * valarith.c: Replace value_ptr with struct value pointer. Remove
12503 register attribute from value declarations.
12506 * scm-lang.c (scm_lookup_name): Ditto.
12508 2002-01-03 Michael Snyder <msnyder@redhat.com>
12510 Abstract the functionality of iterating over mapped memory
12511 regions into a general purpose iterator function.
12512 * procfs.c (iterate_over_mappings): New function, general purpose
12513 iterator for memory sections.
12514 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12515 (solib_mappings_callback): New function, callback for above.
12516 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12517 (info_mappings_callback): New function, callback for above.
12519 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12521 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12523 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12524 * i386-tdep.c: Include "elf-bfd.h".
12525 (process_note_abi_tag_sections): New function.
12526 (i386_gdbarch_init): Add code to recognize various OS/ABI
12529 * maint.c (_initialize_maint_cmds): Add missing \ in
12532 For older changes see ChangeLog-2001
12538 version-control: never