1 2002-11-12 Andrew Cagney <ac131313@redhat.com>
3 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
4 a constant buffer; cannonicalize_file_name(); realpath() with a
5 pathconf() defined buffer, xstrdup().
7 2002-11-12 Andrew Cagney <ac131313@redhat.com>
9 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
10 to hang2.C; hang3.c to hang3.C.
12 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
14 * findvar.c (read_var_value): Reenable TLS code.
16 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
17 Jim Blandy <jimb@redhat.com>
19 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
20 * target.c (update_current_target): Add
21 to_get_thread_local_address.
22 * target.h (to_get_thread_local_address): Export.
23 (target_get_thread_local_address): Define.
24 (target_get_thread_local_address_p): Define.
25 * thread-db.c: Include solib-svr4.h.
26 (td_thr_tls_get_addr_p): Define.
27 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
28 (thread_db_get_thread_local_address): New function.
29 (init_thread_db_ops): Initialize to_get_thread_local_address.
30 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
31 * configure: Regenerate.
32 * config.in: Regenerate.
34 2002-11-11 David Carlton <carlton@math.stanford.edu>
36 * linespec.c (set_flags): New function.
37 (decode_line_1): Move code into set_flags.
39 2002-11-11 David Carlton <carlton@math.stanford.edu>
41 * linespec.c (decode_line_1): Move chunks of code to separate
43 (initialize_defaults): New function.
44 (decode_indirect): New function.
46 2002-11-11 Andrew Cagney <ac131313@redhat.com>
48 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
49 instead of void_code_ptr.
50 (sigtramp_saved_pc): Ditto.
52 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
55 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
57 * gdbtypes.h (struct main_type): Move artificial flag out of
58 loc. New member of ``struct field'' named static_kind. Reduce
59 overloaded meaning of bitsize.
60 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
61 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
62 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
64 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
66 (template_to_fixed_record_type, template_to_static_fixed_type)
67 (to_record_with_fixed_variant_part): Likewise.
68 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
69 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
70 * dwarfread.c (struct_type, enum_type): Likewise.
71 * hpread.c (hpread_read_enum_type)
72 (hpread_read_function_type, hpread_read_doc_function_type)
73 (hpread_read_struct_type): Likewise.
74 * mdebugread.c (parse_symbol): Likewise.
76 2002-11-10 Andrew Cagney <ac131313@redhat.com>
78 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
79 * stack.c (print_frame_info_base): Update.
80 (print_frame_info_base, frame_info): Update.
81 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
82 (sparc_frame_saved_pc): Update.
83 * ada-lang.c (find_printable_frame): Update.
84 * breakpoint.c (deprecated_frame_in_dummy): Update.
86 2002-11-09 Mark Kettenis <kettenis@gnu.org>
88 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
90 (regmap): Extend to cover all registers.
91 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
92 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
94 (fetch_register, sore_register): Simplify.
95 (old_fetch_inferior_registers, old_store_inferior_registers):
97 (cannot_fetch_register, cannot_store_register): Change
98 implementation to use regmap array to decide which registers
99 cannot be fetched/stored. This removes $orig_eax from the
100 registers that cannot be fetched/stored.
101 (fetch_inferior_registers): Call fetch_register directly instead
102 of calling old_fetch_inferior_registers.
103 (store_inferior_registers): Call store_register directly instead
104 of calling old_store_inferior_registers.
105 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
106 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
107 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
109 2002-11-09 Klee Dienes <kdienes@apple.com>
111 * i387-tdep.c (i387_supply_register): When called with NULL as a
112 buffer, mark the register as not provided (to mirror the behavior
114 (i387_supply_fxsave): Ditto.
115 (i387_supply_fsave): Ditto (inherits the behavior from
116 i387_supply_register).
118 2002-11-09 Klee Dienes <kdienes@apple.com>
120 * blockframe.c (sigtramp_saved_pc): Use
121 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
122 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
123 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
125 2002-11-09 Andrew Cagney <ac131313@redhat.com>
127 * frame.c (get_prev_frame): Test prev_p to identify a previously
128 unwound frame. Initialize prev_p.
129 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
132 2002-11-09 Andrew Cagney <ac131313@redhat.com>
134 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
135 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
136 more comments. Zap dead code.
138 2002-11-09 Mark Kettenis <kettenis@gnu.org>
140 * infcmd.c (print_vector_info, print_float_info): Move code that
141 checks whether the target has any registers and whether there is a
142 selected frame up, such that it is also used if a target provides
143 multi-arch definitions of these functions.
145 2002-11-08 Andrew Cagney <ac131313@redhat.com>
147 * Makefile.in (DESTDIR): Define.
148 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
151 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
152 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
154 2002-11-08 Andrew Cagney <ac131313@redhat.com>
156 * i386-linux-tdep.c: Include "reggroups.h".
157 (i386_linux_register_reggroup_p): New function.
158 (i386_linux_init_abi): Set register_reggroup_p to
159 i386_linux_register_reggroup_p.
160 * i386-tdep.h (i386_register_reggroup_p): Declare.
161 * i386-tdep.c: Include "reggroups.h".
162 (i386_init_reggroups): New function.
163 (i386_add_reggroups): New function.
164 (i386_register_reggroup_p): New function.
165 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
166 (_initialize_i386_tdep): Call i386_init_reggroups.
167 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
170 2002-11-09 Mark Kettenis <kettenis@gnu.org>
172 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
173 request that's available in *BSD.
175 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
177 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
180 2002-11-08 Andrew Cagney <ac131313@redhat.com>
182 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
183 * dummy-frame.c (find_dummy_frame): Rename
184 generic_find_dummy_frame, make static. Return the dummy frame
185 instead of the regcache.
186 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
187 (cached_find_dummy_frame): New function. Use find_dummy_frame.
188 (dummy_frame_register_unwind): Rename
189 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
190 * dummy-frame.h (dummy_frame_register_unwind): Rename
191 generic_call_dummy_register_unwind.
193 2002-11-08 Mark Kettenis <kettenis@gnu.org>
195 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
196 except the inclusion of "i386/tm-i386.h", to...
197 * config/i386/nm-i386v42mp.h: ...here.
198 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
200 2002-11-08 Andrew Cagney <ac131313@redhat.com>
202 * Makefile.in (frame.o): Update dependencies.
203 * blockframe.c (current_frame, frame_obstack_alloc)
204 (frame_saved_regs_zalloc, get_current_frame)
205 (set_current_frame, create_new_frame)
206 (set_unwind_by_pc, get_next_frame)
207 (flush_cached_frames, reinit_frame_cache)
208 (frame_saved_regs_register_unwind)
209 (deprecated_generic_get_saved_register)
210 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
211 (_initialize_blockframe): Move frame code from here...
212 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
213 "annotate.h" and "dummy-frame.h".
214 (_initialize_frame): New function.
216 2002-11-08 Jim Blandy <jimb@redhat.com>
218 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
219 when we finish a function a context.
220 * buildsym.h (outermost_context_p): New macro.
221 (Bug analyzed by David Edelsohn.)
223 2002-11-08 Andrew Cagney <ac131313@redhat.com>
225 * blockframe.c: Include "dummy-frame.h".
226 (struct dummy_frame, dummy_frame_stack)
227 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
228 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
229 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
230 (generic_save_call_dummy_addr, generic_pop_current_frame)
231 (generic_pop_dummy_frame, generic_fix_call_dummy)
232 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
233 dummy frame code from here...
234 * dummy-frame.c: ...to here. New file.
235 * dummy-frame.h: New file.
236 (generic_call_dummy_register_unwind): Declare.
237 (generic_find_dummy_frame): Declare.
238 * Makefile.in (SFILES): Add dummy-frame.c.
239 (dummy-frame.o): Specify dependencies.
240 (dummy_frame_h): Define.
241 (COMMON_OBS): Add dummy-frame.o.
242 (blockframe.o): Update dependencies.
244 2002-11-08 Jim Blandy <jimb@redhat.com>
246 * dwarf2read.c (read_func_scope): Restore local_symbols and
247 param_symbols after we finish the function context. (Based on a
248 patch from David Edelsohn.)
250 2002-11-08 David Carlton <carlton@math.stanford.edu>
252 * linespec.c (symbol_found): New function.
253 (minsym_found): New function.
254 (decode_line_1): Separate out some code into separate functions.
256 2002-11-08 Joel Brobecker <brobecker@gnat.com>
258 * i386-tdep.c (i386_frameless_signal_p): Make non static for
259 the benefit of the interix target.
260 * i386-tdep.h (i386_frameless_signal_p): Declare.
262 2002-11-08 Andrew Cagney <ac131313@redhat.com>
264 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
265 declaration that snuck in from change below.
267 2002-11-06 Andrew Cagney <cagney@redhat.com>
269 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
271 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
272 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
273 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
274 (i386_mxcsr_regnum_p): new function. Use instead of
276 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
277 (i386_sse_regnum_p): Declare.
278 (i386_mxcsr_regnum_p): Declare.
279 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
280 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
281 (IS_FP_REGNUM): Update definition.
282 (IS_FPU_CTRL_REGNUM): Update definition..
283 (IS_SSE_REGNUM): Update definition..
284 * i386v-nat.c (register_u_addr): Update.
285 * go32-nat.c (fetch_register): Update.
286 (store_register): Update.
288 2002-11-07 Joel Brobecker <brobecker@gnat.com>
290 Preparation work to convert the hppa targets to multiarch partial.
292 * hppa-tdep.c: Add new functions replacing macro bodies from
293 config/pa/tm-hppa.h. These function will be used to initialize
294 the gdbarch structure. Import some comments from tm-hppa.h,
295 and place them where appropriate, to avoid loosing them when
296 we cleanup this file.
297 (hppa_reg_struct_has_addr): New function.
298 (hppa_inner_than): New function.
299 (hppa_stack_align): New function.
300 (hppa_pc_requires_run_before_use): New function.
301 (hppa_instruction_nullified): New function.
302 (hppa_register_byte): New function.
303 (hppa_register_virtual_type): New function.
304 (hppa_store_struct_return): New function.
305 (hppa_cannot_store_register): New function.
306 (hppa_frame_args_address): New function.
307 (hppa_frame_locals_address): New function.
308 (hppa_smash_text_address): New function.
309 (hppa_coerce_float_to_double): New function. Requires the inclusion
312 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
314 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
315 gdbarch-eligible macro to a call to the new associated function
316 created in hppa-tdep.c.
317 (INNER_THAN): Likewise.
318 (STACK_ALIGN): Likewise.
319 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
320 (INSTRUCTION_NULLIFIED): Likewise.
321 (REGISTER_BYTE): Likewise.
322 (REGISTER_VIRTUAL_TYPE): Likewise.
323 (STORE_STRUCT_RETURN): Likewise.
324 (CANNOT_STORE_REGISTER): Likewise.
325 (FRAME_ARGS_ADDRESS): Likewise.
326 (FRAME_LOCALS_ADDRESS): Likewise.
327 (SMASH_TEXT_ADDRESS): Likewise.
328 (COERCE_FLOAT_TO_DOUBLE): Likewise.
329 (ABOUT_TO_RETURN): Delete, as no longer used.
331 2002-11-07 Fernando Nasser <fnasser@redhat.com>
333 * printcmd.c (disassemble_command): Remove obsolete function.
334 (_initialize_printcmd): Do not create disassemble command here.
335 * cli/cli-cmds.c (disassemble_command): New function. Implements
337 (init_cli_cmds): Create disassemble command here instead.
339 2002-11-07 Andrew Cagney <ac131313@redhat.com>
341 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
343 2002-11-07 Andrew Cagney <ac131313@redhat.com>
345 * regcache.h (regcache_cooked_read_using_offset_hack)
346 (regcache_cooked_write_using_offset_hack): Delete declarations.
347 (register_changed): Delete declaration.
348 * regcache.c (regcache_cooked_read_using_offset_hack)
349 (regcache_cooked_write_using_offset_hack): Delete functions.
350 (cooked_xfer_using_offset_hack): Delete function.
351 (register_changed): Delete function.
353 2002-11-07 Jim Blandy <jimb@redhat.com>
355 * macroscope.c: #include "complaints.h".
356 (sal_macro_scope): Cope with filenames that appear in the symtabs,
357 but not in the macro table.
358 * Makefile.in (macroscope.o): Record dependency.
360 2002-11-07 Joel Brobecker <brobecker@gnat.com>
362 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
364 2002-11-07 Andrew Cagney <ac131313@redhat.com>
366 * regcache.c (deprecated_registers_fetched): Update.
367 * regcache.h (deprecated_registers_fetched): Rename
369 * remote-vxsparc.c (vx_read_register): Update.
370 * remote-vxmips.c (vx_read_register): Update.
371 * remote-vx68.c (vx_read_register): Update.
372 * irix5-nat.c (fetch_core_registers): Update.
373 * mipsm3-nat.c (fetch_inferior_registers): Update.
374 * sun3-nat.c (fetch_inferior_registers): Update.
375 * symm-nat.c (fetch_inferior_registers): Update.
376 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
377 (fetch_core_registers): Update.
378 (fetch_kcore_registers): Update.
379 * mips-nat.c (fetch_inferior_registers): Update.
380 * corelow.c (get_core_registers): Update.
381 * a68v-nat.c (fetch_inferior_registers): Update.
383 2002-11-06 Joel Brobecker <brobecker@gnat.com>
385 Put in place the framework necessary for multiarching the hppa targets.
386 * hppa-tdep.c (hppa_gdbarch_init): New function.
387 (hppa_dump_tdep): New function.
388 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
389 tdep structure dumper.
390 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
391 until the multi-arching conversion has partially been completed.
393 2002-11-06 Andrew Cagney <ac131313@redhat.com>
395 * valops.c (value_assign): Merge lval_register case into
396 lval_reg_frame_relative. Use frame_register and
397 regcache_cooked_write instead of get_saved_register and
398 write_register_bytes. After flushing the register cache, try to
399 re-select the selected frame.
401 2002-11-06 Andrew Cagney <ac131313@redhat.com>
403 * regcache.h (deprecated_register_valid): Rename register_valid.
404 * regcache.c: Update.
405 * ia64-aix-nat.c: Update.
406 * i386gnu-nat.c: Update.
407 * alpha-nat.c: Update.
408 * sparc-nat.c: Update.
409 * lynx-nat.c: Update.
410 * remote-mips.c: Update.
412 2002-11-06 Joel Brobecker <brobecker@gnat.com>
414 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
415 to end of file, to be more consistent with the pratice followed
418 2002-11-06 Andrew Cagney <ac131313@redhat.com>
420 * infcmd.c: Include "reggroups.h" and <ctype.h>.
421 (print_float_info): Print registers in float_reggroup.
422 (print_vector_info): Print registers in vector_reggroup.
423 (default_print_registers_info): When all, print registers in
424 all_reggroup. Otherwize, print registers in general_reggroup.
425 (registers_info): Rewrite. Add support for register groups.
428 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
430 * symtab.c (methods_info): Delete. It has been ifdeffed out for
432 (symtab_symbol_info): Remove eons old ifdeffed out code.
433 (_initialize_symtab): Remove prehistoric disabled 'info methods'
436 2002-11-06 Theodore A. Roth <troth@openavr.org>
438 * c-exp.y: Add missing semi-colons.
439 * f-exp.y: Add missing semi-colons.
440 * m2-exp.y: Add missing semi-colons.
441 * p-exp.y: Add missing semi-colons.
442 Add empty action to start rule to avoid a type clash error when
443 building with bison >= 1.50.
445 2002-11-06 Jim Blandy <jimb@redhat.com>
447 * macrotab.h (struct macro_source_file): Doc fix.
449 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
451 * varobj.c (child_exists, cplus_number_of_children): Change
452 STREQ macro references to strcmp.
453 (cplus_name_of_child): Change code to handle the fact that
454 fields are not necessarily contiguous with regards to their
455 access control. This is a fix for PR gdb/792.
457 2002-11-05 Andrew Cagney <ac131313@redhat.com>
459 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
460 * gdbarch.h, gdbarch.c: Regnerate.
461 * frame.h (frame_register): Declare.
462 * frame.c (frame_register): New function.
463 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
464 GET_SAVED_REGISTER, otherwize call
465 generic_unwind_get_saved_register.
466 (frame_register_read): Use frame_register instead of
469 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
471 From Jim Ingham <jingham@apple.com>:
472 * event-top.c (gdb_disable_readline): New function.
473 (_initialize_event_loop): Move comment.
475 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
477 * event-loop.c (start_event_loop): Add comment.
480 2002-11-05 Andrew Cagney <ac131313@redhat.com>
482 * infcmd.c (default_print_registers_info): Do not call
485 2002-11-05 Andrew Cagney <ac131313@redhat.com>
487 * sparc-tdep.c (sparc_print_register_hook): Make static.
488 (sparc_print_registers_info): New function.
489 (sparc_do_registers_info): New function.
490 (sparclet_print_registers_info): New function.
491 (sparclet_do_registers_info): New function.
492 (do_sparc_print_registers_info): New function.
493 (sparc_print_registers): New static function, clone of infcmd.c's
494 default_print_registers_info.
495 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
496 (sparclet_do_registers_info): Declare.
497 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
498 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
500 (sparc_do_registers_info): Declare.
501 (PRINT_REGISTER_HOOK): Delete macro.
502 (sparc_print_register_hook): Delete declaration.
504 2002-11-05 David Carlton <carlton@math.stanford.edu>
506 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
508 (lookup_symbol_aux_local): New function.
509 (lookup_symbol_aux_symtabs): New function.
510 (lookup_symbol_aux_psymtabs): New function.
512 2002-11-05 David Carlton <carlton@math.stanford.edu>
514 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
515 previous values of 'objfile' and 'block'.
517 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
519 * values.c (value_change_enclosing_type): Set
520 enclosing_type field correctly also for the case where
521 more memory needs to be allocated.
523 2002-11-03 Mark Kettenis <kettenis@gnu.org>
525 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
528 * i387-tdep.c (i387_print_float_info): Replace calls to
529 register_read and deprecated_read_register_gen with calls to
530 frame_register_read, and make the necessary adjustments to the
533 2002-11-02 Andrew Cagney <ac131313@redhat.com>
535 * gdbarch.sh (register_reggroup_p): Allow default value.
536 * gdbarch.h, gdbarch.c: Regenerate.
538 2002-11-02 Andrew Cagney <ac131313@redhat.com>
540 * regcache.h: Add coment indicating replacements for deprecated
543 2002-11-02 Andrew Cagney <cagney@redhat.com>
545 * reggroups.h, reggroups.c: New files.
546 * regcache.c: Include "reggroups.h".
547 (enum regcache_dump_what): Add `regcache_dump_groups'.
548 (regcache_dump): Contract size of the "Type" column. When
549 specified, dump the register's groups.
550 (maintenance_print_register_groups): New function.
551 (_initialize_regcache): Add command `maint print register-groups'.
552 * Makefile.in (COMMON_OBS): Add reggroups.o
553 (SFILES): Add reggroups.c.
554 (reggroups_h): Define.
555 (regcache.o, gdbarch.o): Update dependencies.
556 (reggroups.o): Specify dependencies.
557 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
558 Add opaque declaration for `struct reggroup' in generated .h file.
559 Include "reggroups.h" in generated .c file.
560 gdbarch.h, gdbarch.c: Re-generate.
562 2002-11-02 Andrew Cagney <cagney@redhat.com>
564 * regcache.h (deprecated_read_register_gen): Rename
566 (deprecated_write_register_gen): Rename write_register_gen.
567 * i387-tdep.c: Update.
568 * x86-64-linux-nat.c: Update
570 * thread-db.c: Update.
571 * win32-nat.c: Update.
572 * mips-tdep.c: Update.
573 * d10v-tdep.c: Update.
574 * cris-tdep.c: Update.
575 * remote-sim.c: Update.
576 * remote-rdi.c: Update.
577 * remote-rdp.c: Update.
580 * blockframe.c: Update.
581 * x86-64-tdep.c: Update.
582 * xstormy16-tdep.c: Update.
584 * s390-tdep.c: Update.
585 * rs6000-tdep.c: Update.
586 * sparc-tdep.c: Update.
587 * i386-tdep.c: Update.
588 * dwarf2cfi.c: Update.
589 * regcache.c: Update.
591 2002-11-01 Joel Brobecker <brobecker@gnat.com>
593 New interix-specific files:
594 * config/i386/nm-interix.h: New file.
595 * config/i386/interix.mh: New file.
596 * config/i386/interix.mt: New file.
597 * i386-interix-nat.c: New file.
598 * i386-interix-tdep.c: New file.
600 2002-11-01 Andrew Cagney <cagney@redhat.com>
602 * frame.h (deprecated_generic_get_saved_register): Rename
603 generic_get_saved_register.
604 * blockframe.c (deprecated_generic_get_saved_register): Update.
605 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
606 (xstormy16_frame_saved_register): Update.
607 * sh-tdep.c (sh_gdbarch_init): Update.
608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
609 * ia64-tdep.c (ia64_get_saved_register): Update.
610 * cris-tdep.c (cris_gdbarch_init): Update.
611 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
612 * arm-tdep.c (arm_gdbarch_init): Update.
614 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
616 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
618 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
620 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
621 trampolines in sigaction.
623 2002-10-31 Andrew Cagney <cagney@redhat.com>
625 * h8300-tdep.c: Include "gdb_assert.h".
626 (h8300_print_register): Add gdbarch, file and frame parameters.
627 Use frame_read_unsigned_register to read the register's value.
628 Use fprintf_filtered to display output.
629 (h8300_print_registers_info): Replace h8300_do_registers_info.
630 (h8300_gdbarch_init): Set print_registers_info.
632 2002-10-31 Andrew Cagney <cagney@redhat.com>
634 * frame.c (frame_read_unsigned_register): New function.
635 (frame_read_signed_register): New function.
636 * frame.h (frame_read_unsigned_register): Declare.
637 (frame_read_signed_register): Declare.
639 2002-10-31 Andrew Cagney <cagney@redhat.com>
641 * h8500-tdep.c (h8500_print_registers_info): New static function,
642 clone of infcmd.c's default_print_registers_info.
643 (h8500_do_registers_info): New funtion.
644 (h8500_print_register_hook): Rename print_register_hook, make
647 * config/h8500/tm-h8500.h: Update copyright.
648 (DEPRECATED_DO_REGISTERS_INFO): Define.
649 (h8500_do_registers_info: Declare.
650 (PRINT_REGISTER_HOOK): Delete macro.
651 (print_register_hook): Delete function.
653 2002-10-31 Andrew Cagney <cagney@redhat.com>
655 * z8k-tdep.c (z8k_print_register_hook): Make static.
656 (z8k_print_registers_info): New static function, clone of
657 infcmd.c's default_print_registers_info.
658 (z8k_do_registers_info): New function. Wrap
659 z8k_print_registers_info.
660 * config/z8k/tm-z8k.h: Update copyright.
661 (PRINT_REGISTER_HOOK): Delete macro.
662 (z8k_print_register_hook): Delete declaration.
663 (DEPRECATED_DO_REGISTERS_INFO): Define.
664 (z8k_do_registers_info): Declare.
666 2002-10-30 Joel Brobecker <brobecker@gnat.com>
668 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
669 as this is already provided by value.h, and was actually causing
670 a compilation error because of a conflict in parameter type
671 declaration due to a missing const keyword.
672 (low_text_segment_addres): Fix a compilation warning.
674 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
676 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
677 registers without a name.
678 (mips_linux_cannot_store_register): Don't store registers without
681 2002-10-28 David Carlton <carlton@math.stanford.edu>
683 * symtab.c (find_addr_symbol): Delete. (It was already commented
685 * symtab.h: Delete prototype for find_addr_symbol.
687 2002-10-26 Andrew Cagney <cagney@redhat.com>
689 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
691 gdbarch.h, gdbarch.c: Re-generate.
692 * infcmd.c (default_print_registers_info): Update reference.
693 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
694 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
695 * sh-tdep.c (sh_gdbarch_init): Ditto.
696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
697 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
699 2002-10-26 Mark Kettenis <kettenis@gnu.org>
701 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
702 cfi_init_extra_frame_info.
703 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
704 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
706 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
707 target where necessary. Add more comments and remove the ones
708 that don't provide any useful information.
710 * i386-tdep.c (i386_frame_saved_pc): Replace call to
711 deprecated_read_register_dummy with
712 frame_unwind_unsigned_register.
714 * i386-tdep.c (i386_extract_struct_value_address): Use
715 regcache_raw_read_unsigned instead of
716 regcache_cooked_read_unsigned since we know that the register
717 we're reading isn't a pseudo register. Rename variable 'val' into
718 the more descriptive 'addr'.
720 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
721 (x86_64_push_return_address): Add comment.
722 (x86_64_pop_frame): Make static.
723 (examine_argument): Clarify comment.
724 (x86_64_skip_prologue): Make prolog_expact variable static.
726 * dwarf2cfi.c: Fix some formatting problems.
727 (context_cpy, read_encoded_pointer): Clarify comments.
729 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
730 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
731 i386 target back into x86_64_gdbarch_init. Add some comments and
732 remove meaningless ones.
734 2002-10-25 Andrew Cagney <cagney@redhat.com>
736 * complaints.h (struct deprecated_complaint): Rename `struct
738 * complaints.c (complain): Update.
739 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
740 incorrect comment indicating that "symfile.h" was being included
741 for the `struct complaint' definition.
742 * remote-vx.c: Update.
743 * objc-lang.c: Update.
744 * xcoffread.c: Update.
746 * mdebugread.c: Update.
747 * stabsread.c: Update.
748 * dwarf2read.c: Update.
749 * dwarfread.c: Update.
751 * coffread.c: Update.
752 * stabsread.h: Update.
754 * buildsym.c: Update.
755 * gdbtypes.c: Update.
756 * macrotab.c: Update.
758 2002-10-25 Mark Kettenis <kettenis@gnu.org>
760 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
761 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
762 (x86_64_init_abi): ...new function.
764 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
765 * i386v-nat.c: Include "i386-tdep.h".
767 2002-10-25 Andrew Cagney <cagney@redhat.com>
769 * gdbtypes.c (address_space_name_to_int): Update.
770 (address_space_int_to_name): Update.
771 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
772 multi-arch predicate.
773 (address_class_name_to_type_flags): Ditto.
774 * gdbarch.h, gdbarch.c: Re-generate.
776 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
778 2002-10-24 Martin M. Hunt <hunt@redhat.com>
780 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
782 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
784 * symtab.h (INIT_SAL): Delete macro.
786 * symtab.c (init_sal): New function.
788 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
789 to init_sal function call.
790 (find_sal_from_funcs_and_line): Ditto.
791 (all_sals_for_line): Ditto.
792 * breakpoint.c (create_internal_breakpoint): Ditto.
793 (create_fork_vfork_event_catchpoint): Ditto.
794 (create_exec_event_catchpoint): Ditto.
795 (parse_breakpoint_sals): Ditto.
796 (watch_command_1): Ditto.
797 (handle_gnu_4_16_catch_command): Ditto.
798 (clear_command): Ditto.
799 * hppa-tdep.c (child_enable_exception_callback): Ditto.
800 * infcmd.c (run_stack_dummy): Ditto.
801 * infrun.c (process_event_stop_test): Ditto.
802 (check_sigtramp2): Ditto.
803 (step_over_function): Ditto.
804 * linespec.c (decode_line_2): Ditto.
805 (decode_line_1): Ditto.
806 * source.c (line_info): Ditto.
807 * symtab.c (find_pc_sect_line): Ditto.
809 2002-10-24 Michal Ludvig <mludvig@suse.cz>
811 * dwarf2cfi.c (struct context)
812 (struct context_reg): Moved to dwarf2cfi.h
813 (context_alloc, frame_state_alloc, context_cpy):
814 Made extern instead of static, removed prototypes.
815 * dwarf2cfi.h (struct context)
816 (struct context_reg): New, moved from dwarf2cfi.c
817 (context_alloc, frame_state_alloc, context_cpy):
819 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
820 Changed from static to extern.
821 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
822 (LINUX_SIGCONTEXT_FP_OFFSET)
823 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
824 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
825 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
826 * x86-64-tdep.c (x86_64_gdbarch_init): Several
827 set_gdbarch_*() calls now use x86-64 specific functions
828 instead of DWARF2 CFI ones.
829 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
830 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
831 (x86_64_init_extra_frame_info): New prototypes.
833 2002-10-23 David Carlton <carlton@math.stanford.edu>
835 * linespec.c: #include "parser-defs.h".
836 Delete prototype for find_template_name_end.
837 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
839 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
841 * NEWS: add recent mi fixes.
842 * varobj.c (struct varobj): Add new "updated" flag.
843 (new_variable): Default "updated" flag to 0.
844 (varobj_set_value): Set "updated" flag to 1 if value
846 (varobj_update): Check varobj "updated" flag before
847 comparing old and refreshed values. Fix for
850 2002-10-23 David Carlton <carlton@math.stanford.edu>
852 * parse.c (parse_exp_1): Use BLOCK_START.
853 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
855 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
857 2002-10-23 David Carlton <carlton@math.stanford.edu>
859 * symtab.c: Delete cplusplus_hint.
860 Delete prototype for find_template_name_end.
862 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
864 * symtab.h: Update comment.
866 2002-10-23 Michael Snyder <msnyder@redhat.com>
868 * printcmd.c (address_info): Restore quotes in output.
869 * valops.c (value_of_local): Restore quotes in error message.
871 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
873 * symtab.c (symbol_demangled_name): New function.
874 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
875 turning most of it into a function.
876 (symbol_demangled_name): Export.
878 2002-10-23 Michael Snyder <msnyder@redhat.com>
880 * valops.c (value_of_local): Restore quotes in error message.
882 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
884 * symtab.c (symbol_init_language_specific): New function.
885 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
886 turning most of it into a function.
887 (symbol_init_language_specific): Export.
889 2002-10-23 David Carlton <carlton@math.stanford.edu>
891 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
892 (dwarf_attr_name): Ditto.
893 (dwarf_type_encoding_name): Ditto.
894 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
895 (process_die): Handle DW_TAG_namespace,
896 DW_TAG_imported_declaration, DW_TAG_imported_module.
897 (read_namespace): New function.
899 2002-10-22 Joel Brobecker <brobecker@gnat.com>
901 * configure.in: Define NEW_PROC_API on Interix too.
902 * configure: Regenerate.
904 2002-10-21 Joel Brobecker <brobecker@gnat.com>
906 * configure: Regenerate using the proper version of autoconf.
908 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
910 * findvar.c (read_var_value): Temporarily disable TLS code, until
911 complete TLS support is added.
913 2002-10-21 Jim Blandy <jimb@redhat.com>
914 Elena Zannoni <ezannoni@redhat.com>
916 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
917 for thread local storage locations.
918 (struct symbol): Add objfile field.
919 (SYMBOL_OBJFILE): Define.
920 * dwarf2read.c (is_thread_local): New static variable.
921 (new_symbol): If variable is in thread local fill in address class
922 and objfile appropriately.
923 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
925 * printcmd.c (address_info): Print the information for thread
926 local storage variable.
927 * findvar.c (read_var_value): In case of thread local variable,
928 defer to the target vector code to compute address.
930 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
932 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
933 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
935 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
937 * symtab.h (address_class): Rename
938 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
939 * hpread.c (hpread_process_one_debug_symbol): Ditto.
940 * printcmd.c (address_info): Ditto.
941 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
943 2002-10-20 Mark Kettenis <kettenis@gnu.org>
945 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
946 DBREG_DRX macro to acces debug registers.
948 * Makefile.in (i386obsd-tdep.o): New target.
950 * solib-sunos.c: Include "bcache.h" and "regcache.h".
951 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
953 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
954 * config/i386/obsd.mt: New file.
955 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
956 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
957 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
958 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
959 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
960 * i386obsd-tdep.c: New file.
962 2002-10-19 Adam Fedor <fedor@gnu.org>
964 * objc-exp.y (name_not_typename): Fix invalid comment.
966 2002-10-20 Mark Kettenis <kettenis@gnu.org>
968 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
969 to allocate partial syms and macro byte caches.
971 2002-10-18 David Carlton <carlton@math.stanford.edu>
973 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
975 2002-10-18 Adam Fedor <fedor@gnu.org>
977 * stabsread.c (find_name_end): New function.
978 (define_symbol): Use it.
980 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
982 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
983 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
984 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
985 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
987 2002-10-17 David Carlton <carlton@math.stanford.edu>
989 * symfile.h: Add opaque declaration for struct obstack.
990 Declare obsavestring to take a const char *.
991 * symfile.c (obsavestring): Make first argument a const char *.
993 2002-10-16 Adam Fedor <fedor@gnu.org>
995 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
996 names when matching breakpoints in current file.
998 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1000 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1001 (read_tag_pointer_type): Add address class support.
1002 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1003 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1005 * gdbarch.h, gdbarch.c: Regenerate.
1006 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1007 (make_type_with_address_space, recursive_type_dump): Add address
1009 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1010 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1011 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1013 2002-10-16 Klee Dienes <kdienes@apple.com>
1015 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1016 to get the last character of a char[] buffer, not
1017 name[sizeof(vptr_name)-1].
1019 2002-10-14 Adam Fedor <fedor@gnu.org>
1021 * symtab.h: New objc_specific struct.
1022 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1023 (SYMBOL_DEMANGLED_NAME): Likewise.
1025 2002-10-14 Adam Fedor <fedor@gnu.org>
1027 * symfile.c (init_filename_language_table): Add ObjC file extension.
1029 2002-10-14 Adam Fedor <fedor@gnu.org>
1031 * utils.c (puts_filtered_tabular): New function.
1032 (fprintf_symbol_filtered): Get ObjC demangled name.
1033 * defs.h (puts_filtered_tabular): Declared.
1035 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1037 * c-lang.h (c_type_print_varspec_prefix): Delete.
1038 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1039 ``need_post_space'' parameter. Adjust all callers.
1041 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1043 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1044 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1045 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1046 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1048 2002-10-13 Adam Fedor <fedor@gnu.org>
1050 * source.c (print_source_lines): Update comments.
1052 2002-10-13 Adam Fedor <fedor@gnu.org>
1054 * valops.c (value_of_local): New function.
1055 (value_of_this): Use it.
1056 * value.h (value_of_local): Declared.
1058 2002-10-13 Adam Fedor <fedor@gnu.org>
1060 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1061 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1063 2002-10-12 Adam Fedor <fedor@gnu.org>
1065 * language.c (binop_result_type): Add language_objc to case.
1066 (integral_type): Likewise.
1067 (character_type): Likewise.
1068 (string_type): Likewise.
1069 (boolean_type): Likewise.
1070 (structured_type): Likewise.
1071 (binop_type_check): Likewise.
1073 2002-10-11 Adam Fedor <fedor@gnu.org>
1075 * printcmd.c (address_info): Print 'self' for ObjC.
1077 2002-10-11 Adam Fedor <fedor@gnu.org>
1079 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1082 2002-10-11 Adam Fedor <fedor@gnu.org>
1084 * language.h (CAST_IS_CONVERSION): Add language_objc.
1086 2002-10-11 Adam Fedor <fedor@gnu.org>
1088 * defs.h (enum language): Add language_objc.
1090 2002-10-11 Klee Dienes <kdienes@apple.com>
1092 * corefile.c (read_memory_typed_address): New function.
1093 * gdbcore.h (read_memory_typed_address): Add prototype.
1094 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1095 to read a value destined for a CORE_ADDR, not read_memory_integer.
1096 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1097 (f77_get_dynamic_lowerbound): Ditto.
1099 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1101 * utils.c (string_to_core_addr): After turning string into
1102 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1103 which will do necessary sign-extension, etc.
1105 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1107 * c-exp.y (THIS): Delete token and grammar rule.
1108 (yylex): Don't return THIS.
1109 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1110 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1111 * demangle.c (cplus_markers): Update comment. Put '$'
1112 first. Remove CPLUS_MARKER.
1113 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1114 * jv-exp.y (THIS): Delete token and grammar rule.
1115 (yylex): Don't return THIS.
1116 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1117 * objc-exp.y (THIS): Delete token and grammar rule.
1118 (yylex): Don't return THIS.
1119 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1120 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1121 (read_member_functions): Likewise for opname.
1122 (read_tilde_fields): Use is_cplus_marker.
1124 * defs.h (CPLUS_MARKER): Don't define.
1125 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1126 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1127 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1128 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1129 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1131 * config/i386/tm-i386v4.h: Delete file.
1132 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1133 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1134 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1135 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1136 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1137 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1138 * config/i386/i386v4.mt (TM_FILE): Likewise.
1139 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1141 2002-10-10 Marko Mlinar <markom@opencores.org>
1143 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1144 accidentially not commited 2002-10-09
1145 * gdbarch.h, gdbarch.c: Re-generate.
1147 2002-10-09 Marko Mlinar <markom@opencores.org>
1149 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1150 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1151 * gdbarch.h, gdbarch.c: Re-generate.
1153 2002-10-08 Petr Sorfa <petrs@caldera.com>
1155 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1157 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1158 so we can work on more than one compilation unit at a time. This
1159 helps prepare GDB to handle inter-CU die references.
1160 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1161 the code to be defined before struct comp_unit_head.
1162 (comp_unit_head): Added new members - offset, cu_head,
1163 begin_die, next and dwarf2_abbrevs.
1164 (dwarf2_abbrevs): Removed single static var; now member of
1165 struct comp_unit_head.
1166 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1168 (psymtab_to_symtab_1): Changed to work with the new
1169 struct comp_unit_head.
1170 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1171 constructs the dwarf2_abbrevs[] inside the cu_header.
1172 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1173 dwarf2_abbrev table to clean up.
1174 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1175 handling of dwarf2_abbrevs inside the cu_header.
1176 (read_partial_die): Now supports the call to the new
1177 dwarf2_lookup_abbrev.
1178 (read_full_die): Now supports the call to the new
1179 dwarf2_lookup_abbrev.
1181 2002-10-06 Christopher Faylor <cgf@redhat.com>
1183 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1184 insure that shell variables, such as "transformed_name" are propagated
1185 to later shell statements in rule.
1187 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1189 * config/i386/nm-i386sco.h: Add protection against
1190 multiple-inclusion. Include "i386/nm-i386v.h".
1191 (REGISTER_U_ADDR): Remove define.
1192 (i386_register_u_addr): Remove prototype.
1194 2002-10-04 Michael Snyder <msnyder@redhat.com>
1196 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1197 before treating it as a single-step event.
1199 2002-10-03 Adam Fedor <fedor@gnu.org>
1201 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1202 (objc_demangle): Remove assignment in if statements, Replace
1204 (add_msglist): Likewise.
1205 (end_msglist): Likewise.
1206 (complare_selectors): Likewise.
1207 (selectors_info): Likewise.
1208 (compare_classes): Likewise.
1209 (classes_info): Likewise.
1210 (print_object_command): Likewise.
1211 (find_objc_msgcall_submethod): Replace PTR with void *.
1212 * objc-lang.h: Remove check for __STDC__.
1214 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1216 * ui-out.h (ui_out_field_fmt_int): New prototype.
1217 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1218 of field width and alignment.
1219 * stack.c (print_frame_info_base): When printing frame level, use
1220 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1223 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1225 * MAINTAINERS: Add self to Write After Approval list.
1227 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1229 * infcmd.c (interrupt_target_command_wrapper): Delete.
1230 (interrupt_target_command): Make non static.
1231 (nofp_registers_info): Make static.
1232 * stack.c (return_command_wrapper): Delete.
1233 (return_command): Make non static.
1235 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1237 * event-top.c (gdb_setup_readline): New function. Code moved from
1238 _initialize_event_loop().
1239 (_initialize_event_loop): Call gdb_setup_readline().
1241 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1243 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1244 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1245 * gdbarch.h, gdbarch.c: Re-generate.
1247 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1250 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1252 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1253 of fill_in_vptr_fieldno.
1255 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1257 * inferior.h (registers_info, stepi_command, nexti_command,
1258 continue_command, interrupt_target_command): Export from infcmd.c.
1259 * frame.h (args_info, selected_frame_level_changed_hook,
1260 return_command): Export from stack.c.
1261 * v850ice.c (stepi_command, nexti_command, continue_command): use
1262 prototypes from inferior.h.
1263 * tracepoint.c (registers_info, args_info, locals_info): Use
1264 prototypes from frame.h and inferior.h.
1265 * Makefile.in (mi-main.o): Add dependency on frame.h.
1267 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1269 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1270 value in register 3 adjusted by ppc_gp0_regnum.
1272 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1274 2002-10-02 Marko Mlinar <markom@opencores.org>
1276 * MAINTAINERS: Add myself to the Write After Approval list.
1278 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1280 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1281 of the section for the N64 ABI, fixed.
1283 * config/mips/tm-irix6.h: Include solib.h.
1285 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1287 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1290 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1292 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1293 and that "mi0" syntax has been removed.
1295 2002-09-30 David Carlton <carlton@math.stanford.edu>
1297 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1298 * ppc-sysv-tdep.c: #include "gdb_string.h".
1299 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1302 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1304 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1305 "vrsave"'s register number.
1307 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1309 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1310 use frame_unwind_signed_register to obtain the PC.
1311 (mips_frame_chain): Handle a generic dummy frame.
1312 (mips_init_extra_frame_info): When a generic dummy frame, don't
1313 re-compute the frame base.
1314 (mips_pop_frame): Handle generic dummy frames.
1315 (mips_gdbarch_init): When generic dummy frames, set
1316 use_generic_dummy_frames, push_dummy_frame to
1317 generic_push_dummy_frame, pc_in_call_dummy to
1318 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1319 generic_save_dummy_frame_tos.
1321 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1323 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1324 against TOP when TOP was explictly set.
1325 (generic_push_dummy_frame): Set TOP to zero.
1327 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1329 * event-loop.c (start_event_loop): Rename variable 'result' to
1330 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1332 2002-09-30 Keith Seitz <keiths@redhat.com>
1334 * gdb-events.sh (selected_thread_changed): New event.
1335 * gdb-events.c: Regenerated.
1336 * gdb-events.h: Regenerated.
1338 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1340 * MAINTAINERS: Add self to Write After Approval list.
1342 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1344 * disasm.c: New file.
1345 * disasm.h: New file.
1346 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1347 (compare_lines): Ditto.
1348 (dump_insns): Ditto.
1349 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1351 (do_assembly_only): Ditto.
1352 (do_disassembly): Renamed to gdb_disassembly and moved to
1353 disasm.c. Sdded uiout argument.
1354 * Makefile.in: Add new files. Reorder SFILES list. Update
1355 dependencies. Include libgdb.a later in the insight executable.
1357 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1359 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1360 bfd/elf64-alpha-fbsd.c.
1362 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1364 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1367 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1369 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1371 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1373 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1374 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1375 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1376 (S_msg_sig_post_reply): Ditto.
1378 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1380 * sh-tdep.c (sh_use_struct_convention): Use definition according
1382 (sh_push_arguments): Store in register with correct endianess.
1383 (sh_default_store_return_value): Ditto.
1384 (sh_gdbarch_init): Set sizeof long double to 8.
1386 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1388 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1389 Fix some whitespace problems.
1391 2002-09-27 David Carlton <carlton@math.stanford.edu>
1393 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1394 (mcore-tdep.o): Ditto.
1395 (ns32k-tdep.o): Ditto.
1396 (ns32knbsd-tdep.o): Ditto.
1398 (vax-tdep.o): Ditto.
1399 * cris-tdep.c: #include "gdb_string.h"
1400 * mcore-tdep.c: Ditto.
1401 * ns32k-tdep.c: Ditto.
1402 * ns32knbsd-tdep.c: Ditto.
1404 * vax-tdep.c: Ditto.
1406 2002-09-27 David Carlton <carlton@math.stanford.edu>
1408 * config/djgpp/fnchange.lst: Add entries for
1409 gdb/testsuite/gdb.c++/m-static files.
1411 2002-09-27 Jim Wilson <wilson@redhat.com>
1413 * MAINTAINERS: Add myself to the Write After Approval list.
1415 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1417 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1420 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1422 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1425 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1427 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1428 (rs6000_struct_return_address): Delete variable.
1429 (rs6000_store_struct_return): Update.
1430 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1431 deprecated_extract_struct_value_address.
1432 (rs6000_frame_align): New function.
1433 (rs6000_gdbarch_init): Set frame_align.
1435 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1437 From Grace Sainsbury <graces@redhat.com>:
1438 * Makefile.in (gdbtk-main.o): New target.
1439 (gdb.o): New target.
1441 (main.o): Update dependencies.
1442 (gdb$(EXEEXT)): Add gdb.o.
1443 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1444 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1445 (SUBDIR_GDBTK_CLEAN): Set.
1446 (install-gdbtk): Install the insight binary.
1447 (uninstall-gdbtk): New target.
1448 (all-gdbtk, clean-gdbtk): New rule.
1449 * top.c (use_windows): Default to zero.
1450 * main.c: Include "main.h".
1452 (struct captured_main_args): Delete.
1453 (gdb_main): New function.
1457 2002-09-25 Andrew Cagney <cagney@redhat.com>
1459 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1460 (frame_map_regnum_to_name): New function.
1461 (frame_map_name_to_regnum): New function.
1462 * frame.h (frame_map_name_to_regnum): Declare.
1463 (frame_map_regnum_to_name): Declare.
1464 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1465 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1466 * parse.c: Do not include "builtin-regs.h".
1467 (target_map_name_to_register): Delete function.
1468 (write_dollar_variable): Use frame_map_name_to_regnum.
1469 * parser-defs.h (target_map_name_to_register): Delete declaration.
1470 * expprint.c: Include "frame.h".
1471 (print_subexp): Use frame_map_regnum_to_name.
1472 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1473 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1475 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1477 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1478 wasn't saved, and the next innermost frame is a dummy, return the
1479 dummy frame's link register.
1481 2002-09-24 Jim Blandy <jimb@redhat.com>
1483 Fix from Paul Breed:
1484 * main.c (captured_main): Add a `break' after the case for 'b'.
1486 2002-09-24 Keith Seitz <keiths@redhat.com>
1488 * varobj.c (c_type_of_child): Use get_target_type instead
1489 of TYPE_TARGET_TYPE.
1491 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1493 * source.c (get_current_or_default_source_symtab_and_line): Remove
1495 (set_default_source_symtab_and_line): New function. Attempts to
1496 determine a source file to list lines from if one is not currently
1498 (get_current_source_symtab_and_line): Initialize sal.pc and
1500 (set_current_source_symtab_and_line): Mark argument as const.
1501 * source.h: Update declarations and comments.
1502 * linespec.c (decode_line_1): Replace call to removed routine above.
1503 * stack.c (print_frame_info_base): Ditto.
1504 * cli/cli-cmds.c (edit_command): Ditto.
1505 (list_command): Ditto.
1507 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1509 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1510 sal.pc and sal.end fields.
1511 (get_current_or_default_source_symtab_and_line): Ditto.
1512 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1513 so we do not cause a new source symtab to be searched for (reverting an
1514 unintentional change from the 2002-09-20 patch).
1515 * scm-lang.c (scm_unpac): Ditto.
1517 2002-09-21 Andrew Cagney <cagney@redhat.com>
1519 * complaints.c (symfile_explanations): Remove new-line from
1520 ``isolated_message''.
1521 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1522 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1524 2002-09-20 Nick Clifton <nickc@redhat.com>
1526 * NEWS: Announce that V850EA ISA is no longer supported.
1527 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1529 2002-09-20 David Carlton <carlton@math.stanford.edu>
1531 * Makefile.in (c-lang.o): Correct dependencies.
1532 (utils.o): Gather dependencies.
1534 * c-lang.c: #include "gdb_string.h"
1536 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1538 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1539 * cli/cli-cmds.c (list_command): New function. Implements the new
1541 (_init_cli_cmds): Add new command definition.
1542 * gdb.1: Document edit command.
1543 * doc/gdb.texinfo: Document edit command.
1545 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1547 * source.c: Make global variables current_source_symtab and
1548 current_source_line static.
1549 (list_command): Moved to cli/cli-cmds.c.
1550 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1551 (get_first_line_listed): New accessor function.
1552 (get_lines_to_list): New accessor function.
1553 (get_current_source_symtab_and_line): New function. Retrieves the
1554 position in the source code that we consider current.
1555 (get_current_or_default_source_symtab_and_line): New function.
1556 Like the above but attempts to determine a default position if one
1557 is not currently defined.
1558 (set_current_source_symtab_and_line): New function. Sets the source
1559 code position considered current and returns the previously set one.
1560 (clear_current_source_symtab_and_line): Reset stored information about
1561 a current source line.
1562 (_initialize_source): Remove registration for the "list" command and
1564 * source.h: Add declarations for the new functions above.
1565 * symtab.h: Remove declarations for the global variables mentioned
1567 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1568 obtain current source line.
1569 * linespec.c (decode_line_1): Ditto.
1570 * macroscope.c (default_macro_scope): Ditto.
1571 * scm-lang.c (scm_unpac): Ditto.
1572 * stack.c (print_frame_info_base): Ditto.
1573 * symfile.c (clear_symtab_users): Ditto.
1574 * symtab.c (decode_line_spec): Ditto.
1575 * cli/cli-cmds.c (list_command): Moved here from source.c.
1576 (ambiguous_line_spec): Moved here from source.c.
1577 (_init_cli_cmds): Add definition for "list" and its alias.
1578 * Makefile.in: Update dependencies.
1580 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1582 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1583 with what gcc thinks is correct.
1585 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1587 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1588 multiple register push instruction.
1590 2002-09-19 Jim Blandy <jimb@redhat.com>
1592 Add support for distinct host and target character sets.
1593 * charset.c, charset.h: New files.
1594 * c-exp.y: #include "charset.h".
1595 (yylex): Convert character and string literals to the target
1596 character set, before returning them as the semantic value of the
1598 * c-lang.c: #include "charset.h".
1599 (c_emit_char): Use charset-specific methods to recognize
1600 characters with backslash escape forms, to decide which characters
1601 to print literally and which to print using numeric escape
1602 sequences, and to convert target characters to host characters
1604 * utils.c: #include "charset.h".
1605 (no_control_char_error): New function.
1606 (parse_escape): Use charset-specific methods to recognize
1607 backslash escapes, parse `control character' notation, and convert
1608 characters from the host character set to the target character set.
1609 * configure.in: Set the default host character set.
1610 Check where to find iconv, and what its argument types might be.
1611 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1612 * Makefile.in (SFILES): List charset.c.
1613 (COMMON_OBS): List charset.o.
1614 (charset.o): New rule.
1615 (charset_h): New header dependency variable.
1616 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1617 (LIBICONV): New variable, set by configure.
1618 (CLIBS): Include $(LIBICONV) here.
1619 * aclocal.m4, config.in, configure: Regenerated.
1621 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1623 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1626 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1628 * gdb_mbuild.sh: New file.
1630 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1632 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1634 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1636 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1637 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1638 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1639 valops.c, value.h: Revert previous change.
1641 2002-09-18 Michael Snyder <msnyder@redhat.com>
1643 Preliminary support for Objective-C:
1644 * defs.h (language_objc): New enum value.
1645 (puts_filtered_tabular): Declaration only, exported from utils.c.
1646 (skip_quoted): Delete, declared in completer.h.
1647 * c-exp.y: Include completer.h.
1650 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1651 New operator enum values.
1652 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1653 * language.c (binop_result_type): Handle language_objc case.
1654 (integral_type, character_type, string_type, boolean_type,
1655 structured_type, binop_type_check): Ditto.
1656 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1657 (struct objc_specific): Add to general_symbol_info.
1658 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1659 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1660 * parser-defs.h (struct objc_class_str): New struct type.
1661 (start_msglist, end_msglist, add_msglist): Declaration only,
1662 exported from objc-lang.c.
1663 * value.h (value_of_local, value_nsstring,
1664 call_function_by_hand_expecting_type): Exported from valops.c.
1665 * valops.c (find_function_addr): Export.
1666 (call_function_by_hand_expecting_type): New function.
1667 (value_of_local): New function.
1668 * symfile.c (init_filename_language_table): Add ".m" extension
1670 * utils.c (puts_filtered_tabular): New function.
1671 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1672 (set/show demangle): Extend help-string to refer to ObjC.
1673 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1674 * stabsread.c (symbol_reference_defined): Objective-C symbols
1675 may contain colons: make allowances when scanning stabs strings
1677 (objc_find_colon): New function.
1678 * printcmd.c (address_info): If language == objc then print
1679 "self" instead of "this".
1680 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1681 OP_NSSTRING, and OP_SELF.
1682 (prefixify_subexp): Ditto.
1683 * source.c (print_source_lines): Mention objc in comment.
1684 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1687 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1689 * complaints.h: Update copyright.
1690 (struct complaints): Declare.
1691 (struct complaint): Make `message' constant.
1692 (internal_complaint): Declare.
1693 (complaint): Declare.
1694 (complaint_root): Delete declaration.
1695 (symfile_complaints): Delete declaration.
1696 (struct complaints): Add opaque declaration.
1697 (clear_complaints): Add a complaints parameter.
1698 * complaints.c: Update copyright.
1699 (enum complaint_series): Define.
1700 (complaint_root): Delete.
1701 (struct complaints): Define.
1702 (complaint_sentinel, symfile_complaint_book): New variables.
1703 (symfile_explanations, symfile_complaints): New variables.
1705 (get_complaints): New function.
1706 (vcomplaint): New function.
1707 (complaint): New function.
1708 (internal_complaint): New function.
1709 (complain): Call vcomplain with symfile_complaint.
1710 (clear_complaints): Rewrite.
1711 (_initialize_complaints): Use add_setshow_command.
1712 * Makefile.in (complaints.o): Update dependencies.
1713 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1714 to call to clear_complaints.
1715 (new_symfile_objfile, reread_symbols): Ditto.
1716 (oldsyms_complaint): Delete.
1717 (empty_symtab_complaint, unknown_option_complaint): Delete.
1718 (free_named_symtabs): Use complaint instead of complain.
1720 2002-09-18 Michael Snyder <msnyder@redhat.com>
1722 Contributed by Apple Computer, Inc. Merged with current sources
1723 by Adam Fedor <fedor@doc.com> [cagney].
1725 * objc-lang.c: First clean-up round: comments, indentation.
1726 * objc-lang.h: Ditto.
1727 * objc-lang.y: Ditto.
1729 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1731 * maint.c (maintenance_internal_error): Print the parameter as the
1733 (maintenance_internal_warning): New function.
1734 (_initialize_maint_cmds): Add command `maint internal-warning'.
1736 * defs.h (internal_warning, internal_vwarning): Declare.
1737 * utils.c (struct internal_problem): Define.
1738 (internal_vproblem): New function.
1739 (internal_warning): New function.
1740 (internal_vwarning): New function.
1741 (internal_warning_problem, internal_error_problem): New variables.
1742 (internal_verror): Just call internal_vproblem.
1744 2002-09-18 Michael Snyder <msnyder@redhat.com>
1746 * objc-lang.c: New file, support for Objective-C.
1747 Preliminary check-in, not yet integrated into gdb.
1748 * objc-lang.h: New file.
1749 * objc-exp.y: New file.
1751 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1753 * infrun.c (signal_stop_update): Convert definition to ISO C.
1754 (signal_print_update): Ditto.
1755 (signal_pass_update): Ditto.
1756 * inflow.c (terminal_save_ours): Ditto.
1758 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1761 * config/djgpp/fnchange.lst: Handle name clashes between
1762 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1765 * i386-linux-tdep.h: Fix tipo.
1767 2002-09-18 Adam Fedor <fedor@gnu.org>
1769 * MAINTAINERS: Add myself to the Write After Approval list.
1771 2002-09-18 Jim Blandy <jimb@redhat.com>
1773 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1774 texthigh and textlow to reader-specific structs caused
1775 objfile_relocate to miss them. This is fixable, but the work that
1776 the change was supposed to prepare GDB for never got done anyway.
1778 2002-09-18 David Carlton <carlton@math.stanford.edu>
1780 * MAINTAINERS: Alphabetize Write After Approval list.
1782 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1785 * values.c (value_static_field): Call read_var_value.
1787 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1789 * valops.c (hand_function_call): Align the initial stack pointer
1790 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1791 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1793 * mips-tdep.c (mips_frame_align): New function.
1794 (mips_gdbarch_init): Set frame_align.
1795 * gdbarch.sh (FRAME_ALIGN): New method.
1796 * gdbarch.h, gdbarch.c: Re-generate.
1798 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1800 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1803 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1805 * NEWS: Mention that MIPS $fp behavior changed.
1806 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1807 reference to FP_REGNUM.
1808 (mipsnbsd_cannot_store_register): Ditto.
1809 * mips-linux-nat.c: Update copyright.
1810 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1811 (mips_linux_cannot_store_register): Ditto.
1812 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1813 * config/mips/tm-mips.h: Update copyright.
1814 (FP_REGNUM): Delete macro.
1815 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1816 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1817 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1818 (mips_r3041_reg_names, mips_r3051_reg_names)
1819 (mips_r3081_reg_names): Replace "fp" with "".
1822 2002-09-17 Theodore A. Roth <troth@verinet.com>
1824 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1825 generic_read_register_dummy() (PR gdb/703).
1826 (avr_push_return_address): #if 0 out unused vars.
1827 (avr_gdbarch_init): Enable use of avr_push_return_address().
1829 2002-09-17 Michael Snyder <msnyder@redhat.com>
1831 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1832 RTE will take care of it.
1834 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1836 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1837 invalid, return SP_REGNUM.
1839 2002-09-17 Michael Snyder <msnyder@redhat.com>
1841 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1842 point registers without sign extension.
1844 2002-09-17 Andrew Cagney <cagney@redhat.com>
1846 * blockframe.c (deprecated_read_register_dummy): Rename
1847 generic_read_register_dummy.
1848 * frame.c (frame_unwind_signed_register): New function.
1849 (frame_unwind_unsigned_register): New function.
1850 * frame.h (frame_unwind_signed_register): Declare.
1851 (frame_unwind_unsigned_register): Declare.
1852 (deprecated_read_register_dummy): Rename
1853 generic_read_register_dummy.
1855 * h8300-tdep.c (h8300_frame_chain): Update.
1856 (h8300_frame_saved_pc): Update.
1857 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1858 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1859 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1860 (s390_frame_chain): Update.
1861 * v850-tdep.c (v850_find_callers_reg): Update.
1862 (v850_frame_saved_pc): Update.
1863 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1864 (m32r_find_callers_reg): Update.
1865 (m32r_frame_saved_pc): Update.
1866 * sh-tdep.c (sh_find_callers_reg): Update.
1867 (sh64_get_saved_pr): Update.
1868 (sh_init_extra_frame_info): Update.
1869 (sh_init_extra_frame_info): Update.
1870 (sh64_init_extra_frame_info): Update.
1871 (sh64_init_extra_frame_info): Update.
1872 * mcore-tdep.c (mcore_find_callers_reg): Update.
1873 (mcore_frame_saved_pc): Update.
1874 (mcore_init_extra_frame_info): Update.
1875 * i386-tdep.c (i386_frame_saved_pc): Update.
1876 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1877 (ia64_init_extra_frame_info): Update.
1878 (ia64_init_extra_frame_info): Update.
1879 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1880 * cris-tdep.c (cris_init_extra_frame_info): Update.
1881 * avr-tdep.c (avr_frame_chain): Update.
1882 (avr_init_extra_frame_info): Update.
1883 (avr_frame_saved_pc): Update.
1884 * arm-tdep.c (arm_find_callers_reg): Update.
1885 (arm_init_extra_frame_info): Update.
1886 (arm_frame_saved_pc): Update.
1888 2002-09-17 Tom Tromey <tromey@redhat.com>
1890 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1893 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1895 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1896 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1898 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1901 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1903 * osfsolib.c: Remove file, replaced by solib-osf.c.
1904 * Makefile.in: Remove compilation rules for osfsolib.c.
1906 2002-09-16 David Carlton <carlton@math.stanford.edu>
1908 * cp-valprint.c (cp_print_class_method): Correct args to
1909 check_stub_method_group.
1911 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1913 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1914 `set architecture'. Unify naming convention of functions.
1915 (h8300_skip_prologue): Improve prologue analysis.
1916 (h8300_push_arguments): Rewritten to more closely match GCC's
1917 bizarre argument-passing behavior, along with the comment describing
1919 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1920 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1921 sim, remote-e7000.c, remote-hms.c and remote.c
1923 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1925 * i386-tdep.c (gdb_print_insn_i386): Removed.
1926 (i386_print_insn): New function.
1927 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1928 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1931 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1933 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1936 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1938 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1939 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1940 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1942 2002-09-13 Christopher Faylor <cgf@redhat.com>
1944 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1946 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1948 * gdbtypes.c (check_stub_method): Make static.
1949 (check_stub_method_group): New function.
1950 * gdbtypes.h: Update prototypes.
1951 * cp-support.c: New file.
1952 * cp-support.h: New file.
1954 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1955 (update_method_name_from_physname): New function.
1956 (read_member_functions): Correct method names for operators
1957 and v3 constructors/destructors. Separate v2 constructors and
1959 * Makefile.in (stabsread.o): Update dependencies.
1960 (SFILES): Add cp-support.c.
1961 (COMMON_OBS): Add cp-support.o.
1962 (cp_support_h, cp-support.o): Add.
1964 * cp-valprint.c (cp_print_class_method): Call
1965 check_stub_method_group instead of check_stub_method. Remove
1967 * p-valprint.c (pascal_object_print_class_method): Likewise.
1968 * valops.c (search_struct_method): Likewise.
1969 (find_method_list, value_struct_elt_for_reference): Likewise.
1971 2002-09-13 Andrew Cagney <cagney@redhat.com>
1973 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1974 * gdbarch.h, gdbarch.c: Regenerate.
1976 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1978 * frame.c (find_saved_register): Delete function.
1979 * frame.h (find_saved_register): Delete declaration.
1982 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1984 * mips-tdep.c (read_next_frame_reg): Re-hack using
1985 frame_register_unwind.
1987 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1989 * mips-tdep.c (mips_get_saved_register): Re-hack using
1990 frame_register_unwind.
1992 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1994 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1995 vector. Will be useful for Interix.
1996 * gdbarch.h, gdbarch.c: Regenerate.
1998 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1999 name of the malloc function by NAME_OF_MALLOC.
2001 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2003 * value.h (find_function_in_inferior): Add const keyword to
2004 one of the parameters. Allows us to invoke this function with
2006 * valops.c (find_function_in_inferior): Likewise.
2008 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2010 * exec.c (xfer_memory): Fix compilation warning with old versions
2012 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2014 2002-09-12 David Carlton <carlton@math.stanford.edu>
2016 * symtab.h: Run through gdb_indent.h.
2017 Add 2002 to Copyright year list.
2019 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2021 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2023 * MAINTAINERS: Add myself to write after approval list.
2025 2002-09-11 J. Brobecker <brobecker@gnat.com>
2027 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2029 2002-09-11 J. Brobecker <brobecker@gnat.com>
2031 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2034 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2036 * procfs.c (do_detach): Clear current signal, not just fault.
2037 Corrects problem with breakpoint trap signal leaking to detached
2040 2002-09-10 Michael Snyder <msnyder@redhat.com>
2042 * buildsym.c (finish_block): Protect against null pointer.
2044 2002-09-10 Andrew Cagney <cagney@redhat.com>
2046 * infcmd.c (default_print_registers_info): Send all output to
2047 ``file'' instead of ``gdb_stdout''.
2049 2002-09-10 Michael Snyder <msnyder@redhat.com>
2051 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2052 LONGEST, and use signed register read (addresses are sign-
2055 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2057 * event-loop.c (gdb_do_one_event): Make public.
2058 * event-loop.h (gdb_do_one_event): Declare.
2060 2002-09-10 Jeff Law <law@redhat.com>
2062 * infttrace.c (child_resume): Simplify and rework to avoid
2065 2002-09-09 Fred Fish <fnf@intrinsity.com>
2067 * printcmd.c (print_scalar_formatted): "len" is the number of
2068 target bytes, NOT the number of target bits.
2070 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2072 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2073 * top.c (init_main): Set rl_terminal_name.
2075 2002-09-08 Aidan Skinner <aidan@velvet.net>
2077 * ada-lang.c (ada_array_bound, ada_type_match,
2078 _initialize_ada_language): Fix K&R definitions.
2079 * ada-tasks.c (get_current_task): Fix K&R definitions.
2080 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2082 2002-09-07 Christopher Faylor <cgf@redhat.com>
2084 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2087 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2089 * i386-tdep.c (i386_register_virtual_type,
2090 i386_register_convertible, i386_register_convert_to_virtual,
2091 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2092 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2093 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2094 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2095 Don't set push_arguments twice.
2097 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2098 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2099 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2100 sigtramp_end to NULL.
2101 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2103 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2105 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2108 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2109 * gdbarch.h, gdbarch.c: Re-generate.
2110 * blockframe.c (find_pc_sect_partial_function): Convert to use
2111 SIGTRAMP_START_P predicate.
2113 2002-09-05 Michael Snyder <msnyder@redhat.com>
2115 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2116 generic_dummy_frame method and old method. Also distinguish
2117 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2118 (arm_extract_return_value): Use new regcache method.
2120 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2121 adjustment that doesn't conform to the ABI.
2122 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2123 saved regcache, not from current regcache.
2125 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2127 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2130 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2132 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2133 if arm_apcs_32 is false.
2135 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2137 GDB 5.3 branch created.
2139 2002-09-03 Theodore A. Roth <troth@verinet.com>
2141 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2142 generic_unwind_get_saved_register.
2144 2002-09-03 David Carlton <carlton@math.stanford.edu>
2146 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2147 argument (PR gdb/653). Update call to smash_to_method_type.
2148 (read_structure_scope): Update call to dwarf2_add_member_fn.
2150 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2152 * x86-64-linux-tdep.c: Include gdb_string.h
2153 * x86-64-linux-nat.c: Ditto.
2155 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2157 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2158 when YYDEBUG is set to 1.
2159 * c-exp.y: Likewise.
2160 * f-exp.y: Likewise.
2161 * jv-exp.y: Likewise.
2162 * m2-exp.y: Likewise.
2163 * p-exp.y: Likewise.
2165 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2167 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2169 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2170 solib_svr4_fetch_link_map_offsets to
2171 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2172 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2173 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2174 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2175 solib-svr4.o, and solib-legacy.o.
2176 * config/i386/tm-nbsd.h: Include solib.h.
2178 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2180 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2181 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2182 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2183 comment noting that this needs its own target configuration.
2184 * config/i386/nbsd.mt: New file.
2185 * config/i386/nbsdaout.mt: Remove.
2186 * config/i386/nbsdelf.mt: Ditto.
2187 * config/i386/tm-nbsdaout.h: Ditto.
2189 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2191 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2192 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2193 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2195 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2196 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2197 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2199 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2201 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2202 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2203 * i386-tdep.h (i386bsd_init_abi): New prototype.
2204 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2205 function declaration.
2206 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2207 for NetBSD-a.out or NetBSD-ELF.
2208 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2209 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2210 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2211 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2213 (i386nbsd_pc_in_sigtramp): New function.
2214 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2215 i386nbsd_pc_in_sigtramp.
2216 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2217 and i386nbsdelf_init_abi OS ABI handlers.
2218 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2219 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2221 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2223 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2224 registers if the target really has them.
2226 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2228 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2231 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2233 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2235 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2236 (alphanbsd_skip_sigtramp_frame): New functions.
2237 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2238 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2239 to alphanbsd_sigcontext_addr.
2241 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2243 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2245 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2246 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2247 nbsd_pc_in_sigtramp.
2248 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2249 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2250 * nbsd-tdep.c: Include gdb_string.h.
2251 (nbsd_pc_in_sigtramp): New function.
2252 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2253 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2254 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2255 ppcnbsd_pc_in_sigtramp.
2256 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2257 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2258 shnbsd_pc_in_sigtramp.
2259 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2260 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2261 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2263 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2265 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2266 watchpoints to NULL.
2267 (insert_breakpoints): set val field of watchpoints if NULL.
2270 2002-08-29 Jim Blandy <jimb@redhat.com>
2272 * symtab.c (lookup_symbol_aux): In the cases where we find a
2273 minimal symbol of an appropriate name and use its address to
2274 select a symtab to read and search, use `name' (as passed to us)
2275 as the demangled name when searching the symtab's global and
2276 static blocks, not the minsym's name.
2278 2002-08-29 Keith Seitz <keiths@redhat.com>
2280 * stack.c (print_frame_info_base): Always set current_source_symtab
2281 and current_source_line.
2283 2002-08-29 Donn Terry <donnte@microsoft.com>
2285 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2287 2002-08-28 Keith Seitz <keiths@redhat.com>
2289 * stack.c (select_frame): Add FIXME concerning selected-frame
2291 (select_frame_command): Send selected-frame-level-changed
2292 event notification, but only if the level actually changed.
2293 (up_silently_base): Add selected-frame-level-changed event
2295 (down_silently_base): Likewise.
2297 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2299 * Makefile.in: Update dependencies for all gdb/*.c files.
2301 2002-08-27 Tom Tromey <tromey@redhat.com>
2303 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2304 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2305 Update dependencies.
2306 * i387-tdep.c: Include gdb_string.h.
2307 * osabi.c: Likewise.
2308 * i386-linux-nat.c: Likewise.
2309 * lin-lwp.c: Likewise.
2310 * ax-gdb.c: Likewise.
2311 * signals/signals.c: Likewise.
2312 * jv-valprint.c: Likewise.
2313 * p-lang.c: Likewise.
2314 * c-valprint.c: Likewise.
2315 * cp-abi.c: Likewise.
2317 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2319 * cli/cli-script.h (copy_command_lines): Export.
2320 * breakpoint.c: Include cli/cli-script.h.
2321 * Makefile.in (breakpoint.o): Update dependencies.
2323 2002-08-26 Michael Snyder <msnyder@redhat.com>
2325 * breakpoint.c (insert_breakpoints): Protect all references
2326 to 'process_warning'. Shorten long lines.
2328 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2330 * cli/cli-script.c (copy_command_lines): New function.
2331 * defs.h (copy_command_lines): Export.
2332 * testsuite/gdb.base/commands.exp: New tests for commands
2333 attached to a temporary breakpoint, and for commands that
2334 delete the breakpoint they are attached to.
2336 2002-08-26 Michael Snyder <msnyder@redhat.com>
2338 * breakpoint.c (bpstat_stop_status): Instead of copying the
2339 pointer to the breakpoint commands struct, make a new copy
2340 of the struct and point to that.
2341 (bpstat_clear): Free the commands struct.
2342 (bpstat_clear_actions): Free the commands struct.
2343 (bpstat_do_actions): Free the command actions. Also execute
2344 the local cleanups, instead of deleting them.
2345 (delete_breakpoint): Leave the commands field of the bpstat
2346 chain alone -- it will be freed later.
2348 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2350 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2351 deleted in 2002-08-20 commit. This function is still used by
2354 2002-08-26 Keith Seitz <keiths@redhat.com>
2356 * gdb-events.sh: Add selected-frame-level-changed event.
2357 * gdb-events.c: Regenerated.
2358 * gdb-events.h: Regenerated.
2360 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2363 * inflow.c (terminal_save_ours): New function to save terminal
2365 * inferior.h (terminal_save_ours): Declare.
2366 * target.c (debug_to_terminal_save_ours): New function.
2367 (cleanup_target): Defaults to_terminal_save_ours.
2368 (update_current_target): Inherit to_terminal_save_ours.
2369 (setup_target_debug): Set to_terminal_save_ours.
2370 * target.h (target_terminal_save_ours): New to save terminal settings.
2371 (target_ops): New member to_terminal_save_ours.
2372 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2373 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2374 * inftarg.c (init_child_ops): Likewise.
2375 * m3-nat.c (init_m3_ops): Likewise.
2376 * procfs.c (init_procfs_ops): Likewise.
2377 * wince.c (init_child_ops): Likewise.
2378 * win32-nat.c (init_child_ops): Likewise.
2379 * sol-thread.c (init_sol_thread_ops): Likewise.
2381 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2383 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2384 use regcache_* functions.
2385 (i386_gdbarch_init): Set store_return_value instead of
2386 deprecated_store_return_value.
2388 * regcache.c (regcache_raw_write_signed,
2389 regcache_raw_write_unsigned): New functions.
2390 * regcache.h (regcache_raw_write_signed,
2391 regcache_raw_write_unsigned): New prototypes.
2393 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2395 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2396 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2397 source file dependencies. Cleanup corresponding generator rules.
2399 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2401 * regcache.h (register_offset_hack): Declare.
2402 (regcache_cooked_read_using_offset_hack): Declare.
2403 (regcache_cooked_write_using_offset_hack): Declare.
2405 * regcache.c (register_offset_hack): New function.
2406 (regcache_cooked_read_using_offset_hack): New function.
2407 (regcache_cooked_write_using_offset_hack): New function.
2408 (regcache_dump): Check that the registers, according to their
2409 offset, are packed hard against each other.
2410 (cooked_xfer_using_offset_hack): New function.
2412 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2414 * regcache.c (struct regcache_descr): Add field register_type.
2415 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2417 (init_regcache_descr): Initialize register_type. Pass the descr
2418 to init_legacy_regcache_descr. Use register_type instead of
2419 REGISTER_VIRTUAL_TYPE.
2420 (register_type): New function.
2421 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2422 * regcache.h (register_type): Declare.
2424 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2426 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2427 instead of deprecated_store_return_value. Fix fallout from
2428 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2430 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2432 * regcache.c (max_register_size): New function.
2433 (init_legacy_regcache_descr): Ensure that max_register_size is
2434 large enough for REGISTER_VIRTUAL_SIZE.
2435 * regcache.h (max_register_size): Declare.
2437 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2439 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2441 (e500_extract_return_value): Change type of valbuf pointer to
2444 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2446 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2449 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2450 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2451 long long) to prevent compiler warning on 64-bit systems.
2453 2002-08-23 Andrew Cagney <cagney@redhat.com>
2455 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2456 (DEPRECATED_STORE_RETURN_VALUE): New method.
2457 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2458 * gdbarch.h, gdbarch.c: Re-generate.
2460 * values.c (set_return_value): Pass current_regcache to
2462 * arch-utils.h (legacy_store_return_value): Declare.
2463 * arch-utils.c (legacy_store_return_value): New function.
2464 (legacy_extract_return_value): Update parameters.
2466 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2468 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2469 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2470 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2471 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2472 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2473 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2474 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2475 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2476 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2477 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2480 * i386-tdep.c (i386_extract_return_value): Update.
2481 * arch-utils.c (legacy_extract_return_value): Update.
2482 * frv-tdep.c (frv_gdbarch_init): Update.
2483 * cris-tdep.c (cris_gdbarch_init): Update.
2484 * d10v-tdep.c (d10v_gdbarch_init): Update.
2485 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2486 * m68k-tdep.c (m68k_gdbarch_init): Update.
2487 * mcore-tdep.c (mcore_gdbarch_init): Update.
2488 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2489 * s390-tdep.c (s390_gdbarch_init): Update.
2490 * sparc-tdep.c (sparc_gdbarch_init): Update.
2491 * sh-tdep.c (sh_gdbarch_init): Update.
2492 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2493 * v850-tdep.c (v850_gdbarch_init): Update.
2494 * avr-tdep.c (avr_gdbarch_init): Update.
2495 * ia64-tdep.c (ia64_gdbarch_init): Update.
2496 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2497 * vax-tdep.c (vax_gdbarch_init): Update.
2498 * alpha-tdep.c (alpha_gdbarch_init): Update.
2499 * arm-tdep.c (arm_gdbarch_init): Update.
2500 * mips-tdep.c (mips_gdbarch_init): Update.
2501 * i386-tdep.c (i386_gdbarch_init): Update.
2503 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2505 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2506 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2508 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2510 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2513 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2515 * infrun.c (handle_inferior_event): Move a comment outside of a
2516 function call, in order to avoid indent reformatting this part
2517 of the code in an unreadable way.
2519 2002-08-23 Grace Sainsbury <graces@redhat.com>
2521 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2522 when breakpoints fail. Move general breakpoint error messages to
2524 * breakpoint.c (insert_breakpoints): Change warnings when
2525 breakpoints are nto inserted to specify the type. Remove call to
2526 memory_error when hardware breakpoints can't be inserted. Remove
2527 multiple calls to warning so all messages are sent to the user at
2529 (delete_breakpoints): Make insert error messsages more explicit.
2531 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2533 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2534 gdbserver/ChangeLog.
2536 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2538 * i386-tdep.c: Include "objfiles.h".
2539 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2540 skip_trampoline_code.
2541 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2542 (CPLUS_MARKER): Define to '.'.
2544 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2546 (linux_corefile_thread_callback): Increase args->num_notes.
2547 (linux_make_note_section): Initialize thread_args.num_notes, and
2548 use it to determine whether notes for any threads were created.
2550 2002-08-23 Donn Terry <donnte@microsoft.com>
2552 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2553 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2555 (write_with_trace): Conditionalize out the switch branch handling
2556 PCSHOLD if the corresponding macro is not defined. Likewise for
2557 PRSABORT and PRSTOP.
2558 This change will be needed by the Interix port.
2560 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2562 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2563 write_register wherever possible instead of manipulating the
2564 register bytes directly.
2565 Assign VALUE_CONTENTS to a variable and use that.
2566 The GPR numbers are now dependent on the architecture.
2568 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2570 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2572 (skip_prologue): Add support for BookE/e500 instructions.
2573 (e500_extract_return_value): New function.
2574 (frame_get_saved_regs): Add support for saving ev registers and
2576 (e500_store_return_value): New function.
2577 (rs6000_gdbarch_init): Move up default intializations of
2578 deprecated_extract_return_value and store_return_value. Overwrite
2579 init of store_return_value with e500 specific version.
2580 Set extract_return_value for e500.
2582 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2584 * blockframe.c (generic_call_dummy_register_unwind): Use
2585 regcache_cooked_read to catch cases in which the variable is
2586 stored in a pseudo register.
2588 2002-08-22 Andrew Cagney <cagney@redhat.com>
2590 * NEWS: Mention that the i960 has been made obsolete.
2591 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2593 (remote-nrom.o): Obsolete target.
2594 (remote-nindy.o, i960-tdep.o): Ditto.
2595 * remote-nrom.c: Make file obsolete.
2596 * remote-nindy.c, remote-vx960.c: Ditto.
2597 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2598 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2599 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2600 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2601 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2602 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2603 i960-*-vxworks* obsolete.
2604 * MAINTAINERS: Note that the i960 is obsolete.
2606 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2608 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2609 detach to allow reinitialization.
2611 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2613 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2616 2002-08-22 Jim Blandy <jimb@redhat.com>
2618 * coffread.c (coff_symfile_read): Don't try to read the line
2619 number table from disk if the image file doesn't have a symbol
2620 table; we'll never actually look at the info anyway, and Windows
2621 ships DLL's with bogus file offsets for the line number data.
2623 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2625 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2628 2002-08-21 Michael Snyder <msnyder@redhat.com>
2630 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2631 (MSYMBOL_SIZE): Replace macro with function.
2632 (DEFAULT_MIPS_TYPE): Delete unused macro.
2633 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2634 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2636 2002-08-21 Jim Blandy <jimb@redhat.com>
2638 * valops.c (value_cast): Simplify and correct logic for doing a
2639 static cast from a pointer to a base class to a pointer to a
2642 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2644 * infcmd.c (default_print_registers_info): Replace
2646 (registers_info): Use gdbarch_print_registers_info instead of
2648 * inferior.h (default_print_registers_info): Replace
2650 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2651 (DO_REGISTERS_INFO): Change to a predicate function.
2652 * gdbarch.h, gdbarch.c: Regenerate.
2654 2002-08-21 Keith Seitz <keiths@redhat.com>
2656 * gdb-events.sh: Add target-changed event.
2657 * gdb-events.c: Regenerated.
2658 * gdb-events.c: Regenerated.
2659 * valops.c (value_assign): Add target-changed event notification
2660 to inlval_register, lval_memory, and lval_reg_frame_relative.
2662 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2664 * NEWS: Add an entry regarding the improvement of the next/step
2665 operation on Alpha Tru64 multi-processor machines.
2667 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2669 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2671 * Makefile.in: Update all _h macro definitions.
2672 * Makefile.in (install-gdbtk): Move to install section.
2673 (rdi-share/libangsd.a): Move to end of file.
2675 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2677 * frame.c (frame_register_unwind): When a register, set addrp to
2678 the register's byte.
2680 2002-08-20 Michael Snyder <msnyder@redhat.com>
2682 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2683 used locally, so move them from the target machine header to here.
2684 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2685 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2687 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2689 2002-08-20 Andrew Cagney <cagney@redhat.com>
2691 * NEWS: Mention that the Apollo line was made obsolete.
2692 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2693 m68*-hp-hpux* obsolete.
2694 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2695 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2696 * buildsym.c (make_blockvector): Make static.
2697 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2698 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2699 (ALLDEPFILES): Remove dstread.c.
2700 (dstread.o): Obsolete make rule.
2701 * dstread.c: Makefile obsolete.
2703 * config/m68k/hp300hpux.mt: Ditto.
2704 * config/m68k/hp300hpux.mh: Ditto.
2705 * config/m68k/hp300bsd.mt: Ditto.
2706 * config/m68k/hp300bsd.mh: Ditto.
2707 * config/m68k/apollo68b.mt: Ditto.
2708 * config/m68k/apollo68v.mh: Ditto.
2709 * config/m68k/apollo68b.mh: Ditto.
2711 2002-08-20 Michael Snyder <msnyder@redhat.com>
2713 * mips-tdep.c (mips_in_return_stub): Make static.
2714 (mips_gdbarch_init): Set in_solib_return_trampoline.
2715 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2717 2002-08-20 Michael Snyder <msnyder@redhat.com>
2719 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2720 * gdbarch.c, gdbarch.h: Regenerate.
2721 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2723 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2725 2002-08-20 Michael Snyder <msnyder@redhat.com>
2727 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2728 (mips_gdbarch_init): Set skip_trampoline_code,
2729 in_solib_call_trampoline.
2730 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2731 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2733 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2735 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2737 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2738 vector type for ev registers.
2739 (e500_pseudo_register_read): New function.
2740 (e500_pseudo_register_write): New function.
2741 (e500_dwarf2_reg_to_regnum): New function.
2742 (PPC_UISA_NOFP_SPRS): New macro.
2743 (PPC_EV_REGS): New macro.
2744 (PPC_GPRS_PSEUDO_REGS): New macro.
2745 (registers_e500): New register set for e500.
2746 (variants): Add e500 variant.
2747 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2748 before setting architectural dependent variations. Initialize ev
2749 registers numbers. Add case for e500 architecture. Set the
2750 number of pseudo registers.
2752 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2754 * rs6000-tdep.c: Clean up comments.
2756 2002-08-20 Andrew Cagney <cagney@redhat.com>
2758 * h8300-tdep.c: Re-indent file.
2760 2002-08-20 Jim Blandy <jimb@redhat.com>
2762 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2765 2002-08-20 Keith Seitz <keiths@redhat.com>
2767 * breakpoints.c (watch_command_1): Use internal breakpoint
2768 when setting a watchpoint_scope breakpoint.
2770 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2772 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2773 (build_builtin_type_vec64i): Ditto.
2774 (build_builtin_type_vec128): Ditto.
2775 (build_builtin_type_vec128i): Ditto.
2777 2002-08-19 Michael Snyder <msnyder@redhat.com>
2779 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2780 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2781 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2782 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2783 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2784 CALL_DUMMY_ADDRESS): Delete.
2785 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2786 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2787 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2788 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2789 push_return_address.
2790 (mips_register_raw_size, mips_eabi_use_struct_convention,
2791 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2792 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2793 mips_init_extra_frame_info, mips_eabi_push_arguments,
2794 mips_n32n64_push_arguments, mips_push_return_address,
2795 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2796 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2798 2002-08-19 Michael Snyder <msnyder@redhat.com>
2800 * mips-tdep.c (mips_frame_num_args): New function.
2801 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2802 frame_saved_pc, frame_args_address, frame_locals_address,
2803 frame_num_args, and frame_args_skip.
2804 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2805 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2806 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2807 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2809 2002-08-20 Michael Snyder <msnyder@redhat.com>
2811 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2812 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2813 * mips-tdep.c (mips_store_struct_return): New function.
2814 (mips_extract_struct_value_address): New function.
2815 (mips_gdbarch_init): Set store_struct_return and
2816 extract_struct_value_address.
2818 2002-08-20 David Carlton <carlton@math.stanford.edu>
2820 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2821 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2822 (read_file_scope): Check that line_header is nonzero before
2823 decoding macro information.
2825 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2827 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2828 flag the general-purpose registers as floating-point on targets
2829 that don't support the floating-point registers.
2831 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2833 * rs6000-tdep.c (altivec_register_p): Delete.
2834 (rs6000_do_altivec_registers): Delete.
2835 (rs6000_altivec_registers_info): Delete.
2836 (rs6000_do_registers_info): Delete.
2837 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2838 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2840 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2842 * infcmd.c (do_registers_info): Print vector registers in hex
2844 (print_vector_info): Check that printing registers
2846 (print_float_info): Ditto.
2848 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2850 * mips-tdep.c (mips_gdbarch_init): Update.
2851 (mips_o32_extract_return_value): Rewrite.
2852 (mips_o32_store_return_value): Rewrite.
2853 (mips_o32_xfer_return_value): New function.
2854 (mips_xfer_register): Tweak debug print message. Allow for
2855 buf_offset when dumping the value transfered.
2857 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2859 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2860 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2861 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2862 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2863 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2865 2002-08-14 Michael Snyder <msnyder@redhat.com>
2867 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2869 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2871 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2873 (P): New macro to define a register as a pseudo register.
2874 (R, R4, R8, R16, FR32, R64, R0): Updated.
2875 (struct variant): Add new fields for number of pseudo registers
2876 and number of total registers.
2877 (tot_num_registers): New macro replacing....
2878 (num_registers): ...deleted macro.
2879 (num_registers): New function.
2880 (num_pseudo_registers): New function.
2881 (variants): Update all variants to intialize new fields correctly.
2882 Postpone initialization of number of pseudo regs and real regs.
2883 (init_variants): New function.
2884 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2887 2002-08-19 David Carlton <carlton@math.stanford.edu>
2889 * valops.c (search_struct_field): Change error message to treat
2890 return value of 0 from value_static_field as meaning that field is
2892 (value_struct_elt_for_reference): Ditto.
2893 * values.c (value_static_field): Treat an unresolved location the
2894 same as a nonexistent symbol. Fix PR gdb/635.
2895 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2896 enclosed. Fix PR gdb/574.
2897 * MAINTAINERS: Add self to Write After Approval list.
2899 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2901 * mips-tdep.c (mips_xfer_register): New function.
2902 (mips_n32n64_extract_return_value): Rewrite.
2903 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2904 instead of deprecated_extract_return_value.
2906 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2908 * rs6000-tdep.c (TDEP): Delete macro.
2909 (branch_dest): Replace use of TDEP macro with its body.
2910 (rs6000_pop_frame): Ditto.
2911 (rs6000_push_arguments): Ditto.
2912 (rs6000_skip_trampoline_code): Ditto.
2913 (rs6000_frame_saved_pc): Ditto.
2914 (rs6000_frame_chain): Ditto.
2915 (rs6000_register_name): Ditto.
2916 (rs6000_register_byte): Ditto.
2917 (rs6000_register_raw_size): Ditto.
2918 (rs6000_register_virtual_type): Ditto.
2919 (rs6000_register_convertible): Ditto.
2920 (rs6000_convert_from_func_ptr_addr): Ditto.
2922 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2924 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2926 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2927 MIPS_LINUX_JB_ELEMENT_SIZE.
2928 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2929 for MAX_REGISTER_RAW_SIZE arrays.
2930 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2931 MIPS_LINUX_JB_ELEMENT_SIZE.
2933 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2935 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2937 2002-08-19 Aidan Skinner <aidan@velvet.net>
2939 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2940 ada-valprint.c ada-tasks.c.
2941 (YYFILES): Add ada-exp.y.
2942 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2943 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2944 (ada-exp.tab.o): New target.
2946 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2948 * regcache.c (regcache_xfer_part): New function.
2949 (regcache_raw_read_part): New function.
2950 (regcache_raw_write_part): New function.
2951 (regcache_cooked_read_part): New function.
2952 (regcache_cooked_write_part): New function.
2953 * regcache.h (regcache_raw_read_part): Declare.
2954 (regcache_raw_write_part): Declare.
2955 (regcache_cooked_read_part): Declare.
2956 (regcache_cooked_write_part): Declare.
2958 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2960 * remote.c (remote_open_1): Add async_p.
2961 (remote_async_open_1): Delete.
2962 (open_remote_target): Delete.
2963 (remote_open, extended_remote_open): Update calls to remote_open_1.
2964 (remote_async_open, extended_remote_async_open): Call
2965 remote_open_1 instead of remote_async_open_1.
2967 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2969 * blockframe.c: Fix a few coding standard violations.
2971 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2973 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2975 * config/i386/tm-i386sco5.h: ... here. File removed.
2976 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2978 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2979 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2980 (TM_FILE): Set to tm-i386.h.
2981 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2982 * config/i386/tm-i386v.h: Remove file.
2983 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2984 instead of "i386/tm-i386v.h".
2985 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2986 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2988 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2989 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2992 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2994 * config/i386/nm-i386v.h: Add protection against
2996 (i386_register_u_addr): Remove prototype.
2997 (register_u_addr): New prototype.
2998 (REGISTER_U_ADDR): Redefine accordingly.
2999 * i386v-nat.c: Improve several comments.
3000 (i386_register_u_addr): Change signature and rename to
3001 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3004 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3006 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3007 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3008 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3009 deprecated_extract_return_value.
3010 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3011 rename mips_o32o64_push_arguments.
3012 (mips_gdbarch_init): Update.
3013 (mips_extract_return_value): Delete.
3014 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3015 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3016 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3017 (mips_n32n64_extract_return_value): Clone
3018 mips_extract_return_value.
3019 (mips_store_return_value): Delete.
3020 (mips_o32_store_return_value): Clone mips_store_return_value.
3021 (mips_o64_store_return_value): Clone mips_store_return_value.
3022 (mips_eabi_store_return_value): Clone mips_store_return_value.
3023 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3025 2002-08-18 Aidan Skinner <aidan@velvet.net>
3027 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3028 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3030 2002-08-18 Aidan Skinner <aidan@velvet.net>
3032 * ada-lang.c: Run through gdb_indent.sh.
3033 * ada-lang.h: Run through gdb_indent.sh.
3034 * ada-tasks.c: Run through gdb_indent.sh.
3035 * ada-typeprint.c: Run through gdb_indent.sh.
3036 * ada-valprint.c: Run through gdb_indent.sh.
3038 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3040 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3043 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3045 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3047 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3048 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3050 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3051 write_register_gen instead of write_register_bytes.
3053 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3054 i[3456]-*-osf1mk* configurations have been made obsolete.
3055 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3056 i[3456]86-*-osf1mk* hosts obsolete.
3057 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3059 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3060 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3061 config/i386/i386m3.mt, config/i386/nm-m3.h,
3062 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3063 config/i386/i386mk.mh, config/i386/i386mk.mt,
3064 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3066 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3067 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3068 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3070 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3072 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3073 (hppa_value_returned_from_stack): Declare.
3074 (hppa_extract_return_value): Declare.
3075 * config/pa/hppa.mt: New file.
3076 * configure.tgt: Recognize hppa*-*-*.
3077 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3079 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3081 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3084 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3086 * top.c (gdb_rl_operate_and_get_next): Make sure
3087 operate-and-get-next functions correctly even when the history
3088 list is completely filled.
3090 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3092 * MAINTAINERS (Target Instruction Set Architectures): Rename
3093 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3094 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3095 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3096 already listed under Host/Native.
3098 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3099 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3102 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3104 * config/ia64/ia64.mt: New file.
3105 * config/alpha/alpha.mt: New file.
3106 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3107 ia64-linux-gnu. Mention that ia64-elf is broken.
3108 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3110 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3112 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3113 generic_func_frame_valid instead of func_frame_valid.
3115 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3117 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3118 procfs appears to be broken when debugging on multi-processor
3119 machines. So enable software single stepping in order to avoid
3120 using the procfs interface to do next/step operations, using
3121 internal breakpoints instead.
3123 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3124 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3125 make this pc address equal to the value it would have if the
3126 system stepping capability was used. Also set a new flag used
3127 to ensure that we don't readjust the PC one more time later.
3129 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3130 address by DECR_PC_AFTER_BREAK when software single step is
3131 in use for this architecture, as this has already been taken
3132 care of in handle_inferior_event().
3134 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3136 * infrun.c (handle_inferior_event): Minor reformatting, to make
3137 a rather long condition expression easier to read.
3139 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3141 * Makefile.in (gdbtk.o): Move to end of file.
3142 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3143 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3144 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3145 (gdbtk-wrapper.o, gdbres.o): Ditto.
3147 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3149 * Makefile.in (copying.o): Separate out compile rule.
3150 (hpux-thread.o, procfs.o, signals.o): Ditto.
3151 (v850ice.o, z8k-tdep.o): Ditto.
3152 (tui-file.o): Move to TUI section.
3153 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3154 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3156 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3158 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3159 skip_trampoline_code, for better namespace-proofing.
3161 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3163 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3165 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3167 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3169 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3170 signal, check whether we hit a breakpoint before checking for a
3171 single step breakpoint. Otherwise, GDB fails to notice that a
3172 breakpoint has been hit when stepping onto a breakpoint.
3174 2002-08-16 Keith Seitz <keiths@redhat.com>
3176 * gdb-events.sh (clear_gdb_event_hooks): New function.
3177 * gdb-events.c: Regenerate.
3178 * gdb-events.h: Regenerate.
3180 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3182 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3183 not_a_sw_breakpoint.
3184 * breakpoint.h (bpstat_stop_status): Add parameter names.
3186 2002-08-16 Grace Sainsbury <graces@redhat.com>
3188 * remote.c (remote_insert_hw_breakpoint)
3189 (remote_remove_hw_breakpoint): Fix calculation of length field
3192 2002-08-15 Michael Snyder <msnyder@redhat.com>
3194 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3195 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3196 (supply_fpregset): Ditto.
3198 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3199 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3200 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3201 (TARGET_READ_SP): Delete.
3202 (DO_REGISTERS_INFO): Delete.
3203 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3205 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3206 from macros to functions.
3208 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3209 (mips_register_convertible, mips_register_convert_to_virtual,
3210 mips_register_convert_to_raw): Make static.
3211 (mips_read_sp): New function.
3212 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3213 (mips_do_registers_info): Make static.
3214 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3215 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3216 (mips_register_convert_from_type, mips_register_convert_to_type):
3218 (mips_gdbarch_init): Set up function_start_offset,
3219 register_virtual_size, pc_in_sigtramp.
3221 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3223 * infcmd.c (vector_info): New function.
3224 (_initialize_infcmd): Add command "info vector".
3225 (print_vector_info): New function.
3227 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3228 * gdbarch.h, gdbarch.c: Regenerate.
3230 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3232 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3233 ``print_all''. Only print vector registers when ``print_all''.
3235 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3237 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3238 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3240 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3241 Add `args' parameter.
3242 * gdbarch.h, gdbarch.c: Regenerate.
3244 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3246 * infcmd.c (float_info): Call print_float_info.
3247 (print_float_info): New function. By default, print the
3248 floating-point registers.
3250 * arch-utils.h (default_print_float_info): Delete declaration.
3251 * arch-utils.c (default_print_float_info): Delete function.
3253 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3255 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3258 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3261 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3262 * configure.host: Make i[3456]86-*-aix host obsolete.
3263 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3264 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3265 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3266 config/i386/xm-i386aix.h: Make files obsolete.
3267 * i386aix-nat.c: Make file obsolete.
3268 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3269 (i386aix-nat.o): Make target obsolete.
3271 * config/i386/nm-gnu.h: Removed.
3272 * config/i386/nm-i386gnu.h: New file.
3273 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3274 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3276 * config/i386/tm-i386gnu.h: ... here. Removed.
3277 * config/i386/xm-i386gnu.h: Removed.
3278 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3279 (NAT_FILE): Set to nm-i386gnu.h.
3280 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3281 * i386-tdep.c: New file.
3282 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3283 (i386gnu-tdep.o): Specify dependencies.
3285 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3287 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3288 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3289 Adjust a few comments to reflect reality a bit closer.
3290 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3291 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3292 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3293 target_insert_watchpoint, target_remove_watchpoint):
3295 * config/i386/nm-i386sco5.h: ... here.
3296 (kernel_u_size): Add prototype. Improve a few comments and add
3297 protection against multiple inclusion.
3299 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3302 * uw-thread.c (SP_ARG0): Define if not already defined.
3303 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3305 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3307 * config/i386/tm-i386.h: Don't include "regcache.h".
3309 * i387-tdep.h (i387_print_float_info): New prototype.
3310 * i387-tdep.c (print_i387_value, print_i387_ext,
3311 print_i387_status_word, print_i387_control_word): Add `struct
3312 ui_file *' argument and use it for output.
3313 (i387_print_float_info): Renamed from i387_float_info. Add
3314 `struct gdbarch *' and `struct ui_file *' arguments and use the
3316 * i386-tdep.c: Include "i387-tdep.h".
3317 (i386_gdbarch_init): Set print_float_info.
3318 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3319 (FLOAT_INFO): Remove define.
3321 2002-08-13 Michael Snyder <msnyder@redhat.com>
3323 * mips-tdep.c (mips_push_arguments): Rename to
3324 mips_eabi_push_arguments, and tune for EABI.
3325 (MIPS_REGS_HAVE_HOME_P): Delete.
3326 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3327 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3328 Delete references to mips_regs_have_home_p.
3330 2002-08-14 Keith Seitz <keiths@redhat.com>
3332 * Makefile.in (install-gdbtk): Create insight plugin directory.
3333 Install plugins.tcl file.
3335 2002-08-14 Keith Seitz <keiths@redhat.com>
3337 * configure.in: Move SUBDIRS to near top of the file so that
3338 --enable options may add things to it.
3339 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3340 * configure: Regenerate.
3342 2002-08-13 Michael Snyder <msnyder@redhat.com>
3344 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3345 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3346 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3348 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3350 * vax-tdep.c (vax_get_saved_register): Delete function.
3351 (vax_gdbarch_init): Update.
3352 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3353 (ns32k_gdbarch_init): Update.
3354 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3355 (alpha_gdbarch_init): Update.
3357 2002-08-13 Andrew Cagney <cagney@redhat.com>
3359 * regcache.c (init_regcache_descr): Overallocate the
3360 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3361 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3363 (set_register_cached): Add range checking assertions. Use
3366 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3368 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3369 numbers for MMX registers.
3371 2002-08-13 Andrew Cagney <cagney@redhat.com>
3373 * i386-tdep.c (i386_gdbarch_init): Use
3374 generic_unwind_get_saved_register.
3376 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3378 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3379 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3381 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3382 Delete. Add comment regarding this now-deleted target method.
3384 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3386 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3387 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3388 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3389 real PC and the page number (if it's within the memory bank window).
3390 (m68hc11_pseudo_register_write): Likewise when saving.
3391 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3392 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3393 (m68hc11_register_raw_size): And use 32-bit for it.
3394 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3395 16K memory bank is used by the prog; also use the virtual pc.
3397 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3399 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3400 (m68hc11_gdbarch_init): Install it in gdbarch.
3401 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3402 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3403 (MSYMBOL_SIZE): New for documentation.
3404 (insn_return_kind): Enum to specify how a function returns.
3405 (frame_extra_info): Cleanup and record the return mode.
3406 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3407 register in address computation.
3408 (m68hc11_get_return_insn): New to obtain the return instruction used
3410 (m68hc11_frame_init_saved_regs): Take into account the return
3411 instruction used by the function for far and interrupt functions.
3412 (m68hc11_init_extra_frame_info): Take into account page register.
3413 (m68hc11_frame_args_address): Adjust according to the return mode.
3414 (show_regs): Print page register only when it's used.
3416 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3418 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3419 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3420 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3422 (m68hc11_register_raw_size): Likewise.
3424 2002-08-13 Andrew Cagney <cagney@redhat.com>
3426 * i386-tdep.c (i386_register_name): Handle mmx registers.
3427 (mmx_regnum_p): New function.
3428 (i386_mmx_names): New array.
3429 (mmx_num_regs): New variable.
3430 (i386_pseudo_register_read): New function.
3431 (i386_pseudo_register_write): New function.
3432 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3434 * regcache.c (regcache_raw_read_unsigned): New function.
3435 (regcache_raw_read_signed): New function.
3436 * regcache.h (regcache_raw_read_unsigned): Declare.
3437 (regcache_raw_read_signed): Declare.
3439 2002-08-13 Andrew Cagney <cagney@redhat.com>
3441 * regcache.c (regcache_raw_read_as_address): Delete function.
3442 (regcache_cooked_read_signed): New function.
3443 (regcache_cooked_read_unsigned): New function.
3444 * regcache.h (regcache_cooked_read_signed): Declare.
3445 (regcache_cooked_read_unsigned): Declare.
3446 (regcache_raw_read_as_address): Delete declaration.
3448 * blockframe.c (generic_read_register_dummy): Use
3449 regcache_cooked_read_unsigned.
3450 * i386-tdep.c (i386_extract_struct_value_address): Use
3451 regcache_cooked_read_unsigned.
3453 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3456 double sizes according to ELF ABI flags.
3457 (gdbarch_tdep): Record elf_flags.
3459 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3461 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3462 (m6812_prolog): They can appear in 68HC12 function prologue.
3463 (m68hc11_frame_chain): Cleanup.
3465 2002-08-12 Andrew Cagney <cagney@redhat.com>
3467 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3469 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3470 (i386_linux_register_raw_size): Delete function.
3471 (i386_linux_init_abi): Update.
3472 * i386-tdep.c (i386_register_raw_size): Delete function.
3473 (i386_register_byte): Delete function.
3474 (i386_gdbarch_init): Update.
3475 (i386_register_size): Delete array.
3476 (i386_register_offset): Delete array.
3478 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3479 (REGISTER_RAW_SIZE): Delete macro.
3480 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3481 (REGISTER_BYTE): Delete macro.
3483 2002-08-11 Aidan Skinner <aidan@velvet.net>
3485 * ada-lang.c (ada_lookup_partial_symbol)
3486 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3487 prototype names so that grep ^func works properly.
3489 * ada-lang.c (ada_array_element_type)
3490 (ada_lookup_partial_symbol): Fix typos in parameter list.
3492 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3493 Fix prototype names so that grep ^func works properly.
3495 2002-08-10 Andrew Cagney <cagney@redhat.com>
3496 Elena Zannoni <ezannoni@redhat.com>
3497 Martin M. Hunt <hunt@redhat.com>
3499 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3500 (build_builtin_type_vec128i): Set the vector bit.
3501 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3502 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3503 (build_builtin_type_vec64): New function.
3504 (build_builtin_type_vec64i): New function.
3505 (build_gdbtypes): Initialize builtin_type_vec64 and
3506 builtin_type_vec64i.
3508 2002-08-09 Andrew Cagney <cagney@redhat.com>
3510 * regcache.c (regcache_dump): Compare the register offset
3512 * arch-utils.c (generic_register_byte): New function.
3513 * arch-utils.h (generic_register_byte): Declare.
3514 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3515 * gdbarch.h, gdbarch.c: Regenerate.
3517 2002-08-09 Andrew Cagney <cagney@redhat.com>
3519 * regcache.c: Include "gdbcmd.h"
3520 (_initialize_regcache): Add commands "maintenance print
3521 registers", "maintenance print raw-registers" and "maintenance
3522 print cooked-registers".
3523 (enum regcache_dump_what): Define.
3524 (dump_endian_bytes): New function.
3525 (regcache_dump): New function.
3526 (regcache_print): New function.
3527 (maintenance_print_registers): New function.
3528 (maintenance_print_raw_registers): New function.
3529 (maintenance_print_cooked_registers): New function.
3530 * Makefile.in (regcache.o): Update dependencies.
3532 2002-08-09 Michael Snyder <msnyder@redhat.com>
3534 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3535 (mips_push_arguments): Correct some comments. Use paddr_nz
3536 for printing addresses in debug output. Replace static
3537 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3538 (mips_n32n64_push_arguments): New function, cloned from
3539 mips_push_arguments and tuned for the n32/n64 ABI.
3540 (mips_push_register): Buffer needs dynamic allocation.
3541 (mips_print_register): Ditto.
3542 (do_gp_register_row): Ditto.
3543 (mips_store_return_value): Ditto.
3544 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3546 2002-08-09 Don Howard <dhoward@redhat.com>
3548 * memattr.c (mem_info_command): Print special case of upper bound
3549 as max CORE_ADDR + 1.
3551 2002-08-08 Michael Snyder <msnyder@redhat.com>
3553 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3554 returns structs by ref if they're too big to fit in two registers.
3556 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3558 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3560 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3561 mips_find_saved_regs().
3562 (mips_pop_frame): Likewise.
3564 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3566 * blockframe.c (frame_saved_regs_register_unwind): Revise
3567 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3570 2002-08-09 Grace Sainsbury <graces@redhat.com>
3572 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3573 T-packets; the 'a' is not taken as a register number.
3574 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3575 (remote_stopped_data_address): New functions; add to target
3577 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3578 prototypes to match other implementations of this
3579 function. replace integer argument with pointer -- the length
3580 field in the Z-packet is the length of what is pointed to or 1 if
3581 pointer is null. Add to target vector.
3582 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3586 * remote.c (remote_wait): Add support to extract optional
3587 watchpoint information from T-packet. Ignore unrecognized
3588 optional info in T-packet.
3589 (remote_async_wait): Ditto.
3591 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3593 * cli/cli-dump.c: Change fopen modes to use binary open modes
3594 as defined in include/fopen-bin.h throughout.
3596 2002-08-08 Michael Snyder <msnyder@redhat.com>
3598 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3600 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3602 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3603 assertion failure by returning early after a warning.
3605 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3607 * mips-tdep.c (mips_find_saved_regs): Make static.
3608 (mips_frame_init_saved_regs): New function.
3609 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3610 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3611 (mips_find_saved_regs): Delete declaration.
3613 2002-08-08 Grace Sainsbury <graces@redhat.com>
3615 * remote.c (remote_wait, remote_async_wait): Change
3616 thread_num from int to ULONGEST.
3617 (unpack_varlen_hex): Change result parameter from
3618 int * to ULONGEST *.
3620 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3622 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3623 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3625 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3627 2002-08-08 Andrew Cagney <cagney@redhat.com>
3629 * gcore.c (override_derive_stack_segment): Delete variable.
3630 (preempt_derive_stack_segment): Delete function.
3631 (derive_stack_segment): Delete function.
3632 (default_derive_stack_segment): Renamed to derive_stack_segment.
3633 (override_derive_heap_segment): Delete variable.
3634 (preempt_derive_heap_segment): Delete function.
3635 (derive_heap_segment): Delete function.
3636 (default_derive_heap_segment): Rename to derive_heap_segment.
3638 2002-08-06 Michael Snyder <msnyder@redhat.com>
3640 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3641 * mips-tdep.c (mips_EABI_use_struct_convention,
3642 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3643 New functions. (mips_use_struct_convention): Delete.
3644 (mips_gdbarch_init): set use_gdbarch_convention.
3646 2002-08-06 Michael Snyder <msnyder@redhat.com>
3648 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3649 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3650 mips_o32_reg_struct_has_addr): New functions.
3651 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3653 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3655 * regcache.c (pseudo_register): Delete function.
3656 (fetch_register): Delete function.
3657 (store_register): Delete function.
3658 (regcache_raw_read, legacy_read_register_gen): Use
3659 target_fetch_registers instead of fetch_register.
3660 (legacy_write_register_gen, regcache_raw_write): Use
3661 target_store_register instead of store_register.
3662 (write_register_bytes): Ditto.
3664 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3665 (STORE_PSEUDO_REGISTER): Delete.
3666 * gdbarch.h, gdbarch.c: Regenerate.
3668 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3670 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3671 write dump file binary.
3673 2002-08-05 Michael Snyder <msnyder@redhat.com>
3675 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3676 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3677 (mips_gdbarch_init): Set N32 target to be mips64.
3679 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3681 * frame.c (find_saved_register): Break out of loop once saved
3682 register address is found. Don't mention sparc in loop comment
3685 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3687 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3688 mips_default_saved_regsize to 8.
3690 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3692 * gcore.c: Do not include <sys/procfs.h>.
3693 * Makefile.in (gcore.o): Update dependencies.
3695 2002-08-06 Andrew Cagney <cagney@redhat.com>
3697 * configure.tgt: Make arc-*-* obsolete.
3698 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3699 * MAINTAINERS: Make arc-elf obsolete.
3700 * arc-tdep.c: Make file obsolete.
3701 * config/arc/arc.mt: Ditto.
3702 * config/arc/tm-arc.h: Ditto.
3704 2002-08-05 Theodore A. Roth <troth@verinet.com>
3706 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3708 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3710 * mcore-tdep.c (mcore_gdbarch_init): Use
3711 generic_unwind_get_saved_register instead of
3712 generic_get_saved_register.
3713 * v850-tdep.c (v850_gdbarch_init): Ditto.
3714 * frv-tdep.c (frv_gdbarch_init): Ditto.
3715 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3716 * s390-tdep.c (s390_gdbarch_init): Ditto.
3717 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3718 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3719 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3721 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3723 * objfiles.h: Add missing #include "symfile.h"
3725 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3727 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3729 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3730 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3733 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3735 * NEWS: Cleanup and nitpick.
3737 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3739 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3741 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3743 * Makefile.in (gdbtk-bp.o): Update dependencies.
3744 (gdbtk-register.o): Ditto.
3745 (gdbtk-varobj.o): Ditto.
3747 2002-08-03 Andrew Cagney <cagney@redhat.com>
3749 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3750 m68hc11_fetch_pseudo_register.
3751 (m68hc11_pseudo_register_write): Replace
3752 m68hc11_store_pseudo_register.
3753 (m68hc11_gdbarch_init): Update.
3755 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3757 * gdbarch.sh: Include "gdb_string.h".
3758 * gdbarch.c: Regenerate.
3760 * regcache.c: Include "gdb_string.h".
3761 * ax-general.c: Ditto.
3763 * std-regs.c: Ditto.
3764 * fbsd-proc.c: Ditto.
3767 * Makefile.in (regcache.o): Update dependencies.
3768 (thread.o, gdbarch.o): Ditto.
3769 (ax-general.o, gdbarch.o): Ditto.
3770 (varobj.o, std-regs.o): Ditto.
3771 (fbsd-proc.o): Specify dependencies.
3773 2002-08-02 Andrew Cagney <cagney@redhat.com>
3775 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3777 (regcache_cooked_write): Ditto.
3779 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3781 * regcache.c (regcache_cooked_read): New function.
3782 (regcache_cooked_write): New function.
3783 (read_register_gen): Rewrite using regcache_cooked_read.
3784 (write_register_gen): Rewrite using regcache_cooked_write.
3786 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3789 2002-08-02 Andrew Cagney <cagney@redhat.com>
3791 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3792 Replace the architecture methods register_read and register_write.
3793 * gdbarch.h, gdbarch.c: Regenerate.
3794 * regcache.c (init_regcache_descr): Update.
3795 (read_register_gen): Update.
3796 (write_register_gen): Update.
3797 (supply_register): Update comment.
3799 * sh-tdep.c (sh_gdbarch_init): Update.
3800 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3801 `regcache' and `gdbarch' parameters. Make `buffer' a void
3802 pointer. Update code.
3803 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3804 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3805 void pointer. Update code.
3806 (sh64_register_write): Delete.
3807 (sh4_register_read): Delete.
3808 (sh64_register_read): Delete.
3809 (sh4_register_write): Delete.
3810 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3811 void pointer, `to' parameter a void pointer.
3812 (sh_sh64_register_convert_to_raw): Ditto.
3814 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3816 * mips-tdep.c (mips_register_virtual_type): Use architecture
3817 invariant return values.
3819 2002-08-01 Andrew Cagney <cagney@redhat.com>
3821 * linux-proc.c: Include "gdb_string.h".
3822 * Makefile.in (linux-proc.o): Update dependency list.
3824 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3826 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3829 2002-08-01 Grace Sainsbury <graces@redhat.com>
3831 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3832 to_insert_watchpoint, to_remove_watchpoint,
3833 to_stopped_by_watchpoint, to_stopped_data_address,
3834 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3835 target vecctor. Define their corresponding macros so they call
3838 * target.c: Add default and debug versions of for
3839 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3840 to_insert_watchpoint, to_remove_watchpoint,
3841 to_stopped_by_watchpoint, to_stopped_data_address,
3842 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3844 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3846 * mips-tdep.c (mips_register_virtual_type): New function.
3847 (mips_gdbarch_init): Register mips_register_virtual_type()
3848 with gdbarch machinery.
3849 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3850 this file instead of tm-bigmips.h.
3851 (MIPS_REGSIZE): Delete this macro.
3852 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3853 multiarch version in mips-tdep.c will be found.
3855 2002-08-01 Andrew Cagney <cagney@redhat.com>
3857 * NEWS: Menion that CHILL has been made obsolete.
3859 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3860 * stabsread.c (read_range_type): Ditto.
3861 * gdbtypes.h: Ditto.
3862 * language.c (binop_type_check): Ditto.
3863 (binop_result_type): Ditto.
3864 (integral_type): Ditto.
3865 (character_type): Ditto.
3866 (string_type): Ditto.
3867 (boolean_type): Ditto.
3868 (structured_type): Ditto.
3869 (lang_bool_type): Ditto.
3870 (binop_type_check): Ditto.
3871 * language.h (_LANG_chill): Ditto.
3872 * dwarfread.c (set_cu_language): Ditto.
3873 * dwarfread.c (CHILL_PRODUCER): Ditto.
3874 * dwarfread.c (handle_producer): Ditto.
3875 * expression.h (enum exp_opcode): Ditto.
3876 * eval.c: Ditto for comments.
3877 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3878 * expprint.c (print_subexp): Ditto.
3879 (print_subexp): Ditto.
3880 * valops.c (value_cast): Ditto.
3881 (search_struct_field): Ditto.
3882 * value.h (COERCE_VARYING_ARRAY): Ditto.
3883 * symfile.c (init_filename_language_table): Ditto.
3884 (add_psymbol_with_dem_name_to_list): Ditto.
3885 * valarith.c (value_binop): Ditto.
3887 * valops.c (value_slice): Ditto.
3888 * symtab.h (union language_specific): Ditto.
3889 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3890 (SYMBOL_DEMANGLED_NAME): Ditto.
3891 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3892 * defs.h (enum language): Ditto.
3893 * symtab.c (got_symtab): Ditto.
3894 * utils.c (fprintf_symbol_filtered): Ditto.
3896 * ch-typeprint.c: Make file obsolete.
3897 * ch-valprint.c: Make file obsolete.
3898 * ch-lang.h: Make file obsolete.
3899 * ch-exp.c: Make file obsolete.
3900 * ch-lang.c: Make file obsolete.
3902 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3904 (TARGET_FLAGS_TO_PASS): Ditto.
3905 (CHILLFLAGS): Obsolete.
3907 (CHILL_FOR_TARGET): Obsolete.
3908 (CHILL_LIB): Obsolete.
3909 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3911 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3912 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3914 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3917 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3919 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3920 This does not change anything at the moment, but will be helpful
3921 later when full Ada support is integrated.
3923 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3925 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3928 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3930 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3931 and save it in a local variable. Use variable in later test.
3933 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3935 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3936 test. (Thanks to Daniel Jacobowitz.)
3938 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3940 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3941 (mips_abi_strings): Add "n64".
3942 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3944 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3946 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3947 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3949 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3951 * utils.c (host_pointer_to_address, address_to_host_pointer):
3952 Use gdb_assert() instead of explicit call to internal_error().
3954 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3956 * Makefile.in (rs6000-nat.o): Update dependencies.
3958 From Nicholas Duffek:
3959 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3960 (aix-thread.o): New rule.
3961 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3962 * config/powerpc/aix432.mh: New file.
3964 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3966 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3967 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3968 (fetch_core_registers, ppc_linux_supply_gregset)
3969 (ppc_linux_supply_fpregset): New functions.
3970 (ppc_linux_regset_core_fns): New.
3971 (_initialize_ppc_linux_tdep): Call add_core_fns.
3972 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3973 and ppc_linux_supply_gregset.
3974 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3975 (supply_fpregset): Call ppc_linux_supply_fpregset.
3976 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3978 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3980 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3982 * symtab.c (lookup_symbol): Demangle before lowercasing.
3984 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3986 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3988 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3989 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3990 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3991 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3993 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3994 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3995 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3996 (avr-tdep.o, mon960-rom.o): Ditto.
3997 (aout_stabs_gnu_h): Define.
3998 (symtab_h): Remove $(gdb_obstack_h).
4000 2002-07-30 Jim Blandy <jimb@redhat.com>
4002 Patch from David Carlton <carlton@math.stanford.edu>:
4003 * gdbinit.in: Move the `dir' commands that add GDB's own source
4004 directory to the search path to the end, so that the `gdb' source
4005 directory will be searched first.
4007 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4009 * gdb_obstack.h: New file.
4010 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4011 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4012 * objfiles.h: Include "gdb_obstack.h".
4013 * Makefile.in (gdb_obstack_h): Define.
4014 (symtab_h): Add $(gdb_obstack_h).
4015 (objfiles_h): Add $(gdb_obstack_h).
4017 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4018 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4019 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4020 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4021 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4022 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4023 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4024 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4026 * Makefile.in (bcache.o): Update dependencies.
4027 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4028 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4029 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4030 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4031 (stabsread.o, symfile.o, symmisc.o): Ditto.
4032 (symtab.o, typeprint.o, macroexp.o): Ditto.
4033 (macrotab.o, mdebugread.o): Ditto.
4034 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4035 (coff_ecoff_h, aout_aout64_h): Define.
4036 (aout_stabs_gnu_h, libaout_h): Define.
4038 2002-07-29 Andrew Cagney <cagney@redhat.com>
4040 * regcache.c (struct regcache_descr): Rename nr_registers to
4041 nr_cooked_registers. Revise comments describing the structure
4043 (init_regcache_descr): Update.
4044 (init_legacy_regcache_descr): Update.
4045 (read_register_gen, write_register_gen): When a cooked register in
4046 the raw register range, directly access the value from the raw
4049 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4051 * z8k-tdep.c: Do not include "obstack.h".
4052 * h8300-tdep.c, h8500-tdep.c: Ditto.
4053 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4054 * valprint.c, v850-tdep.c: Ditto.
4055 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4056 * mn10200-tdep.c: Ditto.
4058 * Makefile.in (z8k-tdep.o): Update dependencies.
4059 (m68hc11-tdep.o, valprint.o): Ditto.
4060 (v850-tdep.o, d10v-tdep.o): Ditto.
4061 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4062 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4063 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4064 (sh_opc_h, gdb_sim_sh_h): Define.
4065 (elf_sh_h, elf_bfd_h): Define.
4066 (opcode_m68hc11_h): Define.
4067 (OPCODES_SRC, OPCODES_DIR): define.
4068 (OPCODES): Use $(OPCODES_DIR).
4069 (gdb_sim_d10v_h): Rename sim_d10v_h.
4070 (gdb_sim_arm_h): Rename sim_arm_h.
4072 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4074 * utils.c (host_pointer_to_address, address_to_host_pointer):
4075 Change internal_error() message to indicate function responsible
4078 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4080 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4081 calls to local_hex_string_custom().
4083 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4085 * irix5-nat.c: Move IRIX shared library support from here...
4086 * solib-irix.c: ...to here. Revised substantially to work with
4087 generic solib framework.
4089 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4090 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4091 * mips-irix-tdep.c: New file.
4093 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4094 (mips-irix-tdep.o, solib-irix.o): New rules.
4095 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4097 * config/mips/irix6.mt (TDEPFILES): Likewise.
4098 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4100 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4102 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4103 disabled (via ``#if 0'') includes.
4105 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4107 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4108 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4109 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4110 Add support for the fpscr register.
4111 * rs6000-nat.c (regmap, fetch_inferior_registers)
4112 (store_inferior_registers, fetch_core_registers): Likewise.
4114 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4116 * rs6000-nat.c (language.h): Include.
4117 (special_regs): Delete this array.
4118 (regmap): New function.
4119 (fetch_register, store_register): Use regmap() to map gdb
4120 register numbers to ptrace register numbers. Also, use
4121 outputs from regmap() to make decisions regarding type of
4122 ptrace() call to make. In particular, don't compare against
4123 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4124 (fetch_inferior_registers, store_inferior_registers): Where
4125 possible, obtain register numbers from tdep struct. Don't
4126 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4127 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4128 (LAST_UISA_SP_REGNUM): Delete.
4130 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4132 * rs6000-nat.c (ppc-tdep.h): Include.
4133 (fetch_registers, store_register, fetch_core_registers): Don't
4134 access registers[] directly. Instead, use supply_register() or
4135 regcache_collect() as appropriate.
4136 (find_toc_address): Format hex address with local_hex_string().
4138 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4140 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4143 2002-07-24 Tom Tromey <tromey@redhat.com>
4145 * jv-exp.y: Marked all strings with _().
4146 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4148 (MethodInvocation, CastExpression, parse_number, yyerror,
4149 java_type_from_name, push_expression_name, yylex): Typo fixes.
4151 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4153 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4154 (tee_file_flush, tee_file_write, tee_file_fputs)
4155 (tee_file_isatty): New.
4156 * ui-file.h (tee_file_new): Add prototype.
4158 2002-07-24 Aidan Skinner <aidan@velvet.net>
4160 * ada-lang.c: Change k&r style function definitions to prototyped
4162 * ada-typeprint.c: Change k&r style function definitions to prototyped
4164 * ada-valprint.c: Change k&r style function definitions to prototyped
4167 2002-07-24 Andrew Cagney <cagney@redhat.com>
4169 * README: Remove reference to remote-bug.
4170 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4172 (m88k-nat.o): Delete rule.
4173 (m88k-tdep.o): Delete rule.
4174 (remote-bug.o): Delete rule.
4175 * MAINTAINERS: Mark as obsolete.
4176 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4177 * m88k-tdep.c: Make file obsolete.
4178 * config/m88k/m88k.mh: Ditto.
4179 * config/m88k/delta88v4.mh: Ditto.
4180 * config/m88k/delta88v4.mt: Ditto.
4181 * config/m88k/delta88.mt: Ditto.
4182 * config/m88k/delta88.mh: Ditto.
4183 * remote-bug.c: Ditto.
4184 * config/m88k/tm-delta88.h: Ditto.
4185 * config/m88k/nm-delta88v4.h: Ditto.
4186 * config/m88k/xm-delta88.h: Ditto.
4187 * config/m88k/xm-dgux.h: Ditto.
4188 * config/m88k/tm-m88k.h: Ditto.
4189 * config/m88k/nm-m88k.h: Ditto.
4190 * config/m88k/tm-delta88v4.h: Ditto.
4191 * m88k-nat.c: Ditto.
4192 * cxux-nat.c: Ditto.
4193 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4194 and m88*-*-* obsolete.
4195 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4198 2002-07-24 Andrew Cagney <cagney@redhat.com>
4200 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4201 constant. Same for local pointer variables.
4202 (extract_signed_integer): Ditto.
4203 * defs.h (extract_unsigned_integer): Update.
4204 (extract_signed_integer): Update.
4206 2002-07-24 Andrew Cagney <cagney@redhat.com>
4208 * regcache.c (regcache_raw_write): Change buf parameter to a
4209 constant void pointer.
4210 (regcache_raw_read): Change buf parameter to a void pointer.
4211 (legacy_write_register_gen): Change myaddr parameter a constant
4213 (supply_register): Change val parameter to a const void pointer.
4214 * regcache.h (regcache_raw_write): Update declaration.
4215 (regcache_raw_read): Update declaration.
4216 (supply_register): Update declaration.
4218 2002-07-24 Tom Tromey <tromey@redhat.com>
4220 * defs.h (gdb_readline_wrapper): Declare.
4221 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4222 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4223 * top.c (gdb_readline_wrapper): New function.
4224 (command_line_input): Use it.
4226 2002-07-24 Andrew Cagney <cagney@redhat.com>
4228 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4229 regcache_read and regcache_write.
4230 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4231 * regcache.c: Update.
4232 * sh-tdep.c (sh64_push_arguments): Update comment.
4233 (sh_pseudo_register_read): Update.
4234 (sh_pseudo_register_write): Update.
4235 (sh4_register_read): Update.
4236 (sh4_register_write): Update.
4237 (sh64_pseudo_register_read): Update.
4238 (sh64_pseudo_register_write): Update.
4239 (sh64_register_read): Update.
4240 (sh64_register_write): Update.
4241 * i386-tdep.c (i386_extract_return_value): Update.
4242 (i386_extract_struct_value_address): Update.
4243 (i386_extract_return_value): Update.
4244 * blockframe.c (generic_read_register_dummy): Update.
4245 (generic_call_dummy_register_unwind): Update
4246 * infrun.c (write_inferior_status_register): Update.
4248 2002-07-23 Jim Blandy <jimb@redhat.com>
4250 * parser-defs.h (expression_context_pc): Make this extern.
4251 (Thanks to Michael Snyder.)
4253 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4255 GDB 5.2.1 released from 5.2 branch.
4256 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4257 * README: Update to mention 5.2.1.
4259 2002-07-23 Mark Salter <msalter@redhat.com>
4261 * remote.c (remote_read_bytes): Fix check for error.
4263 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4265 * aix-thread.c (language.h): Include.
4266 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4267 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4268 Print newlines at end of debug messages.
4269 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4270 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4272 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4274 * aix-thread.c (ppc-tdep.h): Include.
4275 (special_register_p): New function.
4276 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4277 (store_regs_user_thread): Use register number information from
4278 gdbarch_tdep struct instead of hardcoded offsets relative to
4279 FIRST_UISA_SP_REGNUM.
4280 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4281 special_register_p() instead of using FPLAST_REGNUM and
4282 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4283 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4284 will be MQ's register number.
4286 2002-07-22 Michael Snyder <msnyder@redhat.com>
4288 * aix-thread.c (ops): Rename to aix_thread_ops.
4289 (base_ops): Rename to base_target.
4290 (ops_attach): Rename to aix_thread_attach.
4291 (ops_detach): Rename to aix_thread_detach.
4292 (ops_resume): Rename to aix_thread_detach.
4293 (ops_wait): Rename to aix_thread_wait.
4294 (ops_kill): Rename to aix_thread_kill.
4295 (init_ops): Rename to init_aix_thread_ops.
4296 (ops_fetch_register): Rename to aix_thread_fetch_register.
4297 (ops_store_register): Rename to aix_thread_store_register.
4298 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4299 (ops_thread_alive): Rename to aix_thread_thread_alive.
4300 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4301 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4302 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4303 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4304 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4305 (store_regs_lib): Rename to store_regs_user_thread.
4306 (store_regs_kern): Rename to store_regs_kernel_thread.
4308 2002-07-22 Michael Snyder <msnyder@redhat.com>
4310 * aix-thread.c (ops_prepare_to_store): Eliminate.
4311 (init_ops): Don't initialize ops.prepare_to_store.
4312 (store_regs_kern): Pre-fetch register buffers from child,
4313 because some registers may not be in the cache. Copy
4314 regs from register cache only if they are cached.
4315 (store_regs_lib): Copy regs from register cache only
4317 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4318 fill_gprs64): Ditto.
4320 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4322 * aix-thread.c (gdb_assert.h): Include.
4323 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4324 register sizes (from register cache) match size of buffer holding
4326 (fill_sprs32): Change parameter types to match those in the ptrace()
4328 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4329 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4331 2002-07-22 Michael Snyder <msnyder@redhat.com>
4333 * aix-thread.c (supply_sprs64): Cosmetic change.
4334 (supply_sprs32): Cosmetic change.
4335 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4336 (fill_sprs64): Use regcache_collect instead of read_register.
4337 (store_regs_lib): Use regcache_collect instead of
4338 read_register. Use fill_sprs32 instead of fill_sprs64,
4339 if debugging a 32-bit architecture.
4340 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4341 out of the register cache, instead of passing a pointer into
4342 the register cache directly to ptrace. Use regcache_collect
4343 insteaad of read_register.
4344 (ops_prepare_to_store): Use target_read_registers instead
4345 of read_register_bytes.
4347 2002-07-20 Aidan Skinner <aidan@velvet.net>
4349 * MAINTAINERS: Add self under write after approval.
4351 2002-07-20 Aidan Skinner <aidan@velvet.net>
4353 * ada-tasks.c: Change k&r style function definitions to prototyped
4356 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4358 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4359 * x86-64-tdep.c: Include "objfiles.h".
4360 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4361 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4363 2002-07-17 Michal Ludvig <michal@suse.cz>
4365 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4366 (update_context): Initialise cfa variable.
4368 2002-07-17 Michael Snyder <msnyder@redhat.com>
4370 * aix-thread.c: Shorten some long lines.
4371 Bring comments into line with code spec.
4373 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4375 * infrun.c: Re-indent using gdb_indent.sh.
4377 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4379 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4380 Leave the indentation temporarily untouched, to minimize the diffs.
4382 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4384 * stabsread.c: Make os9k sections of the code obsolete,
4386 * stabsread.h: Make os9k sections of the code obsolete.
4388 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4390 * linux-low.c (regsets_store_inferior_registers): Add free()
4391 at the end of a loop to prevent memory leak.
4392 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4393 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4394 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4396 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4398 2002-07-17 Jim Blandy <jimb@redhat.com>
4400 * macrocmd.c (info_macro_command): Remove newline from error
4403 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4405 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4406 (sh_gdbarch_init): Use it for sh-dsp.
4408 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4410 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4411 64-bit DWARF2 format.
4413 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4415 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4416 <sys/proc.h> when not available.
4418 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4420 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4421 * stabsread.c: Make os9k sections of the code obsolete.
4422 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4423 * config/i386/i386os9k.mt: Make file obsolete.
4424 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4425 (COMMON_OBS): Remove os9kread.o
4426 (SFILES): Remove os9kread.c.
4427 (os9kread.o, remote-os9k.o): Make target obsolete.
4428 * remote-os9k.c: Make file obsolete.
4429 * os9kread.c: Make file obsolete.
4432 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4434 * NEWS: Mention that the FR30 has been made obsolete.
4435 * fr30-tdep.c: Make file obsolete.
4436 * config/fr30/tm-fr30.h: Ditto.
4437 * config/fr30/fr30.mt: Ditto.
4438 * configure.tgt: Make fr30-*-elf obsolete.
4439 * MAINTAINERS: Make fr30-elf obsolete.
4441 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4443 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4444 found is not inside a section.
4446 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4448 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4450 (pdc_realloc): Use xrealloc() instead of realloc().
4452 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4454 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4455 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4456 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4459 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4461 * aix-thread.c (ptrace_check): Eliminate goto.
4462 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4465 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4467 * aix-thread.c (gdbcmd.h): Include.
4468 (DEBUG, DBG, DBG2, dbg): Eliminate.
4469 (debug_aix_thread): New static global.
4470 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4471 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4472 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4473 invocations to DBG and DBG2 macros to test against
4474 ``debug_aix_thread'' and call fprintf_unfiltered().
4475 (_initialize_aix_thread): Add new command "set debug aix-thread".
4477 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4479 From Gerhard Tonn <TON@de.ibm.com>:
4480 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4481 instead of supply_register.
4483 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4485 * dwarf2cfi.c: Include "gdb_assert.h".
4486 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4488 (update_context): Do not use __func__. Add missing ``break''.
4489 (update_context): Do not use __func__.
4491 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4493 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4494 and its setting. Set gdbarch instruction printing functions
4495 directly. For non-rs6000 case use new function
4496 gdb_print_insn_powerpc.
4497 (gdb_print_insn_powerpc): New function.
4499 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4501 * NEWS: Mention that the d30v has been marked obsolete.
4502 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4503 * configure.tgt: Mark d30v-*-* as obsolete.
4504 * d30v-tdep.c: Mark file as obsolete.
4505 * config/d30v/d30v.mt: Ditto.
4506 * config/d30v/tm-d30v.h: Ditto.
4508 2002-07-13 Aidan Skinner <aidan@velvet.net>
4510 * ada-tasks.c (add_task_entry): replace calls to
4511 malloc() with xmalloc
4512 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4514 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4515 ada_finish_decode_line_1, all_sals_for_line
4516 ada_breakpoint_rewrite): replace calls to free() with xfree()
4518 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4520 From Nicholas Duffek (with minor changes by Martin Hunt,
4521 Louis Hamilton, and Kevin Buettner):
4522 * aix-thread.c: New file.
4524 2002-07-12 Petr Sorfa <petrs@caldera.com>
4526 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4527 complaint for invalid attribute class or form.
4528 (read_func_scope): DW_AT_frame_base
4529 better handling of DW_AT_block*.
4530 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4531 better handling of DW_AT_block*.
4532 (read_common_block): DW_AT_location
4533 better handling of DW_AT_block*.
4534 (read_partial_die): DW_AT_location better handling
4536 (new_symbol): DW_AT_external better handling of
4537 DW_AT_block*. Proper initialization of variable
4539 (attr_form_is_block): New function that returns true
4540 if the attribute's form is of DW_FORM_block*.
4542 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4544 * valops.c (find_method_list): Remove comment about
4545 removed STATIC_MEMFUNCP argument.
4546 (value_find_oload_method_list): Likewise.
4548 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4550 From Nicholas Duffek:
4551 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4552 target_new_objfile_hook.
4554 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4556 From Nicholas Duffek:
4557 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4560 2002-07-12 Andrew Cagney <cagney@redhat.com>
4562 * MAINTAINERS: Mention --enable-sim-build-warnings.
4563 (m68hc11-elf): Disable sim build warnings.
4564 (m32r-elf): Mark as broken obsolete candidate.
4565 (x86_64-linux-gnu): Mark as buildable with -Werror.
4566 (arm-elf): Change -w to ``,'' which enables warnings but not
4569 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4571 * bcache.h: Update copyright.
4572 (struct bstring, struct bcache): Move definition to "bcache.c".
4573 Replaced by opaque declaration.
4574 (bcache_xfree): Replace free_bcache.
4575 (bcache_xmalloc, bcache_memory_used): Declare.
4577 * bcache.c: Update copyright.
4578 (struct bstring, struct bcache): Moved to here from "bcache.h".
4580 (bcache_xmalloc, bcache_memory_used): New functions.
4581 (bcache_xfree): Replace function free_bcache.
4583 * Makefile.in (objfiles.o): Add $(bcache_h).
4584 (objfiles_h): Remove $(bcache_h).
4585 (symfile.o): Add $(bcache_h).
4587 * symmisc.c: Update copyright.
4588 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4589 (print_objfile_statistics): Use bcache_memory_used.
4591 * symfile.c: Include "bcache.h".
4592 (reread_symbols): Use bcache_xfree.
4593 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4594 (add_psymbol_to_list): Pass psymbol_cache by value.
4595 (add_psymbol_with_dem_name_to_list): Ditto.
4597 * objfiles.h: Update copyright.
4598 (struct bcache): Declare opaque. Do not include "bcache.h".
4599 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4601 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4603 * objfiles.c: Include "bcache.h". Update copyright.
4604 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4606 (free_objfile): Use bcache_xfree.
4608 2002-07-11 Grace Sainsbury <graces@redhat.com>
4610 * monitor.c (monitor_fetch_register): Make name a constant.
4611 (monitor_store_register): Same.
4613 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4615 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4616 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4617 (finish_block) For non-function blocks, hash the symbol table. For
4618 function blocks, mark the symbol table as unhashed.
4619 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4620 (msymbol_hash_iw): Likewise.
4621 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4623 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4624 (lookup_minimal_symbol): Likewise for both.
4625 * symtab.h (struct block): Add `hashtable' flag. Comment the
4627 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4628 (ALL_BLOCK_SYMBOLS): Update.
4629 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4630 (struct symbol): Add `hash_next' pointer.
4631 * symtab.c (lookup_block_symbol): Search using the hash table when
4633 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4634 (search_symbols, find_addr_symbol): Likewise.
4636 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4637 (read_dst_symtab): Likewise.
4638 * jv-lang.c (get_java_class_symtab): Likewise.
4639 * mdebugread.c: Include "gdb_assert.h".
4640 (shrink_block): Assert that the block being modified is not hashed.
4641 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4642 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4644 (dump_symtab): Recognize hashed blocks.
4645 * printcmd.c (print_frame_args): Assert that function blocks do not
4646 have hashed symbol tables.
4647 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4648 (fill_in_ada_prototype, debug_print_block): Likewise.
4649 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4651 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4653 * stack.c (print_frame): Use result of frame_address_in_block()
4654 instead of fi->pc when evaluating symbols.
4655 (backtrace_command_1): Ditto.
4657 2002-07-11 Andrew Cagney <cagney@redhat.com>
4659 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4662 * arm-tdep.c (arm_register_name): Make return type constant.
4664 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4666 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4668 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4669 * s390-tdep.c (s390_fp_regnum): Ditto.
4670 (s390_read_fp): Ditto.
4671 (s390_pop_frame): Ditto.
4672 (_initialize_s390_tdep): Ditto.
4673 * remote.c (get_remote_state): Ditto.
4674 * procfs.c (mappingflags): Ditto.
4675 * memattr.c (_initialize_mem): Ditto.
4676 * mcore-tdep.c (mcore_pop_frame): Ditto.
4677 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4678 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4679 * language.c (set_case_str): Ditto.
4680 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4681 * frv-tdep.c (new_variant): Ditto.
4682 (frv_stopped_data_address): Ditto.
4683 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4684 (context_alloc): Ditto.
4685 (frame_state_alloc): Ditto.
4686 (unwind_tmp_obstack_init): Ditto.
4687 (unwind_tmp_obstack_free): Ditto.
4688 (cfi_read_fp): Ditto.
4689 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4690 (cris_pop_frame): Ditto.
4691 * c-lang.c (scanning_macro_expansion): Ditto.
4692 (finished_macro_expansion): Ditto.
4693 (c_preprocess_and_parse): Ditto.
4694 * gdbarch.sh: Ditto.
4695 * gdbarch.h, gdbarch.c: Regenerate.
4696 * config/mn10200/tm-mn10200.h: Adjust indentation.
4697 * target.c: Adjust indentation.
4698 * symtab.h: Adjust indentation.
4699 * stabsread.h: Adjust indentation.
4700 * remote-es.c: Adjust indentation.
4701 * os9kread.c: Adjust indentation.
4703 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4705 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4706 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4708 2002-07-10 Grace Sainsbury <graces@redhat.com>
4710 * NEWS: Mention m68k, mcore multi-arching.
4711 * MAINTAINERS: Change status of m68k, mcore to reflect
4714 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4716 * valops.c (find_overload_match): Free oload_syms.
4718 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4720 Define HAVE_SYS_PROC_H if sys/proc.h exists
4721 * configure.in: Add check for sys/proc.h
4722 * config.in: Regenerate.
4723 * configure: Regenerate.
4725 2002-07-09 Grace Sainsbury <graces@redhat.com>
4727 * config/m68k/tm-m68k.h: Remove macros wrapped in
4728 #if !GDB_MULTI_ARCH.
4730 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4732 * config.in, configure: Regenerate.
4734 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4736 * dwarf2cfi.c: Include "gcore.h".
4737 (execute_stack_op): Fix implementation of the
4738 DW_OP_deref and DW_OP_deref_size operators by letting do their
4739 lookup in the target.
4741 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4743 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4744 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4747 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4749 Fix PR gdb/595, gdb/602
4750 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4751 Don't call value_cast, just read the vtable pointer; update comments
4754 2002-07-05 Grace Sainsbury <graces@redhat.com>
4756 * config/mcore/tm-mcore.h: Remove file.
4757 * config/mcore/mcore.mt: Remove definition of TM_FILE
4758 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4760 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4762 * i386bsd-tdep.c: Include "gdb_string.h".
4764 2002-07-04 Grace Sainsbury <graces@redhat.com>
4766 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4767 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4769 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4770 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4771 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4772 (RETVAL_REGNUM): Move macros from tm-mcore.h
4773 (mcore_reg_struct_has_addr): New function.
4774 (mcore_gdbarch_init): Added initializations for the macros removed
4777 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4779 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4780 traditonal string branding within the ELF header.
4782 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4784 * symtab.c (remove_params): New function.
4785 (make_symbol_overload_list): Use it instead of cplus_demangle.
4786 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4788 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4790 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4792 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4794 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4795 and tdep->sigtramp_end.
4796 * i386obsd-nat.c: New file.
4797 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4799 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4800 Don't call get_current_frame().
4802 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4804 * i386-nat.c (child_post_startup_inferior): New function
4805 calling i386_cleanup_dregs if
4806 I386_USE_GENERIC_WATCHPOINTS is defined.
4807 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4808 conditional to acknowledge that i386-nat.c has its
4809 own child_post_startup_inferior function.
4811 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4813 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4814 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4815 instead of MAX_REGISTER_RAW_SIZE.
4816 (i386_extract_return_value, i386_extract_struct_value_address):
4817 Convert to use regcache.
4818 (i386_gdbarch_init): Set max_register_raw_size and
4819 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4820 Set extract_return_value and extract_struct_value_address instead
4821 of their deprecated variants.
4823 Convert i386 target to generic dummy frames.
4824 * i386-tdep.c: Include "symfile.h".
4825 (i386_frameless_signal_p): Consider a function to be frameless if
4826 the pc points at the first instruction of the function.
4827 (i386_frame_chain): Handle (generic) call dummies.
4828 (i386_frame_saved_pc): Likewise.
4829 (i386_frame_init_saved_regs): Remove code dealing with call
4830 dummies on the stack.
4831 (i386_push_dummy_frame): Removed.
4832 (i386_call_dummy_words): Removed.
4833 (i386_fix_call_dummy): Removed.
4834 (i386_push_return_address): New function.
4835 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4836 parameter, and don't call get_current_frame.
4837 (i386_pop_frame): New function.
4838 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4839 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4840 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4841 call_dummy_length to 0, set call_dummy_words to NULL, set
4842 sizeof_call_dummy_words to 0, set fix_call_dummy to
4843 generic_fix_call_dummy, set pc_in_call_dummy to
4844 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4845 generic_push_dummy_frame, set push_return_address to
4846 i386_push_return_address and set frame_chain_valid to
4847 generic_file_frame_chain_valid.
4849 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4851 * gdbarch.sh (struct regcache): Add opaque declaration.
4852 (EXTRACT_RETURN_VALUE): New architecture method.
4853 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4854 * gdbarch.h, gdbarch.c: Regenerate.
4855 * arch-utils.c (legacy_extract_return_value): New function.
4856 * arch-utils.h (legacy_extract_return_value): Declare.
4857 * values.c (value_being_returned): Re-enable code handling
4858 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4859 deprecated_grub_regcache_for_registers call to block handling
4860 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4861 (EXTRACT_RETURN_VALUE): Do not define.
4863 2002-07-03 Grace Sainsbury <graces@redhat.com>
4865 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4866 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4867 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4868 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4869 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4870 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4871 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4872 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4873 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4874 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4875 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4876 argument so the function fits the prototype in the architecture
4878 (mcore_pop_frame): Remove argument so the function fits the
4879 prototype. Use get_current_frame instead of the argument.
4880 (mcore_push_arguments): Change type of struct_return so the
4881 function can be used in the architecture vector.
4882 (mcore_store_struct_return): Add.
4883 (mcore_frame_init_saved_regs): Add.
4884 (mcore_gdbarch_init): Add function calls to replace the macros
4885 removed from tm-mcore.h
4887 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4889 * infcmd.c (print_return_value): Remove compatibility code calling
4890 deprecated_grub_regcache_for_registers.
4892 * values.c: Include "regcache.h".
4893 (value_being_returned): Update. Use
4894 deprecated_grub_regcache_for_registers to extract the register
4896 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4897 ``struct regcache''.
4898 * Makefile.in (values.o): Add dependency on $(regcache_h).
4900 * inferior.h (run_stack_dummy): Change type of second parameter to
4901 a ``struct regcache''.
4902 * valops.c (hand_function_call): Change type of retbuf to ``struct
4903 regcache''. Allocate using regcache_xmalloc, clean using
4904 make_cleanup_regcache_xfree.
4905 * infcmd.c (run_stack_dummy): Update. Use
4906 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4908 * regcache.c (do_regcache_xfree): New function.
4909 (make_cleanup_regcache_xfree): New function.
4910 * regcache.h (make_cleanup_regcache_xfree): Declare.
4912 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4914 * event-top.c (command_line_handler): Don't read past
4915 beginning of buffer.
4917 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4919 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4921 (varobj_create): Store frame_id for root.
4922 (varobj_gen_name): Use xasprintf.
4923 (varobj_update): Save and restore frame using get_frame_id() and
4925 (create_child): Use xasprintf.
4926 (new_root_variable): Initialize frame_id.
4927 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4928 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4929 to prevent memory leak.
4931 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4933 * valops.c (hand_function_call): Move declaration of retbuf to
4934 start of function, allocate using malloc, add a cleanup but before
4935 the inf_status cleanup, cleanup the buffer. Rename local variable
4936 old_chain to inf_status_cleanup.
4938 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4940 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4942 * cli/cli-decode.c (cmd_func_p): New function.
4943 (cmd_func): New function.
4945 * command.h: Add cmd_func() and cmd_func_p().
4947 2002-07-03 Grace Sainsbury <graces@redhat.com>
4949 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4950 (REGISTER_SIZE): Remove.
4951 (MAX_REGISTER_RAW_SIZE): Remove.
4952 (REGISTER_VIRTUAL_TYPE): Remove.
4953 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4954 (REGISTER_NAME): Remove.
4955 (USE_GENERIC_DUMMY_FRAMES): Remove.
4956 (CALL_DUMMY): Remove.
4957 (CALL_DUMMY_START_OFFSET): Remove.
4958 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4959 (CALL_DUMMY_LOCATION): Remove.
4960 (FIX_CALL_DUMMY): Remove.
4961 (CALL_DUMMY_ADDRESS): Remove.
4962 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4963 (SAVE_DUMMY_FRAME_TOS): Remove.
4964 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4965 (mcore_register_virtual_type): New function.
4966 (mcore_register_byte): New function.
4967 (mcore_register_size): New function.
4968 (mcore_register_name): New function.
4969 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4970 macros removed from tm-mcore.h.
4971 (mcore_dump_tdep): Add.
4972 (_initialize_mcore_tdep): Add gdbarch_register call.
4974 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4976 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4977 frameless_look_for_prologue, such that we actually call this
4980 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4982 * frame.h (frame_address_in_block): New function.
4984 * blockframe.c (frame_address_in_block): New function extracted
4985 from get_frame_block().
4986 (get_frame_block): Use frame_address_in_block().
4987 (block_innermost_frame): Use frame_address_in_block() to match
4988 the frame pc address against the block boundaries rather than
4989 the frame pc directly. This prevents a failure when a frame pc
4990 is actually a return-address pointing immediately after the end
4993 2002-07-02 Grace Sainsbury <graces@redhat.com>
4995 * MAINTAINERS: Add self under write after approval.
4997 2002-07-02 Grace Sainsbury <graces@redhat.com>
4999 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5000 used in architecture vector. The default is
5001 m68k_local_breakpoint_from_pc.
5002 (m68k_local_breakpoint_from_pc): Add.
5003 (enum): Add register numbers from tm-m68k.h.
5004 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5006 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5007 GDB_MULTI_ARCH_PARTIAL.
5008 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5009 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5011 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5012 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5013 to enum in m68k-tdep.c
5015 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5017 * solib-osf.c (open_map): Compute the list of shared libraries
5018 loaded by the inferior, rather than the list of libraries loaded
5019 by GDB itself. Otherwise, GDB ends up reading the symbols from
5020 the wrong shared libraries...
5022 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5024 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5025 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5027 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5029 (FRAMELESS_SIGNAL): Remove function.
5030 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5031 i386_linux_saved_pc_after_call): Removed.
5032 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5033 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5034 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5036 * i386-tdep.c (i386_frameless_signal_p): New function.
5037 (i386_frame_chain): Deal with frameless signals.
5038 (i386_sigtramp_saved_sp): New function.
5039 (i386_frame_saved_pc): Deal with frameless signals.
5040 (i386_saved_pc_after_call): Make sure the correct value is
5041 returned just after entry into a sigtramp.
5042 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5043 i386fbsd4_sc_sp_offset): New variables.
5044 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5045 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5046 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5047 similiar to what we already did for sc_pc_offset.
5048 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5051 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5053 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5055 * config/i386/tm-x86-64linux.h: New.
5056 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5058 * config/i386/nm-x86-64.h: Rename to ...
5059 * config/i386/nm-x86-64linux.h: ... this one.
5060 * config/i386/x86-64linux.mh: Reflect the above change.
5062 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5064 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5065 with sigcontext_addr. Add sc_sp_offset.
5066 (i386bsd_sigtramp_saved_pc): Remove prototype.
5067 (i386bsd_sicontext_addr): Add prototype.
5068 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5069 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5070 (i386_svr4_sigtramp_saved_pc): Removed.
5071 (i386_svr4_sigcontext_addr): New function.
5072 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5073 Initialize tdep->sigcontext_addr instead. Initialize
5074 tdep->sc_pc_offset and tdep->sc_sp_offset.
5075 (i386_gdbarch_init): Likewise.
5076 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5078 (i386bsd_sigtramp_saved_pc): Remove function.
5079 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5080 Initialize tdep->sigcontext_addr instead. Initialize
5082 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5083 of tdep->sigtramp_saved_pc.
5084 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5085 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5088 * i386-tdep.c (i386_frameless_function_invocation,
5089 i386_frame_num_args, i386_frame_init_saved_regs,
5090 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5091 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5092 i386_extract_return_value, i386_store_return_value,
5093 i386_extract_struct_value_address, i386_register_virtual_type,
5094 i386_register_convertible, i386_register_convert_to_virtual,
5095 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5096 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5099 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5101 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5103 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5104 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5105 this macro. Include "value.h".
5107 2002-06-30 Aidan Skinner <aidan@velvet.net>
5109 * ada-exp.tab.c: remove as it's a generated file
5110 * ada-lex.c: remove as it's a generated file
5112 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5114 * config/i386/tm-i386.h (struct frame_info, struct
5115 frame_saved_regs, struct value, struct type): Remove forward
5118 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5119 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5120 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5121 (FILL_FPXREGSET): Define.
5123 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5125 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5126 i[3456]86-*-netbsd* case.
5127 * config/i386/tm-obsd.h: Removed.
5128 * config/i386/obsd.mt: Removed.
5129 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5131 (MH_CFLAGS): Add -DYYDEBUG=0.
5133 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5134 i386nbsd_sc_pc_offset on OpenBSD too.
5136 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5137 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5138 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5140 * i386bsd-tdep.c: Include "arch-utils.h".
5141 (i386bsd_aout_in_solib_call_trampoline): New function.
5142 (i386bsd_init_abi): Set in_solib_call_trampoline to
5143 i386bsd_aout_in_solib_call_trampoline.
5144 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5145 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5147 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5149 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5150 (struct obstack, struct bcache): Add opaque declarations.
5151 * Makefile.in (macrotab_h): Update
5153 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5155 * blockframe.c (generic_find_dummy_frame): Change return type to
5156 ``struct regcache''.
5157 (struct dummy_frame): Replace field ``registers'' with regcache, a
5158 struct regcache object.
5159 (generic_find_dummy_frame): Update.
5160 (generic_push_dummy_frame): Update. Use regcache_xfree,
5161 regcache_xmalloc and regcache_cpy.
5162 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5164 (deprecated_generic_find_dummy_frame): Update.
5165 (generic_read_register_dummy): Update. Use
5166 regcache_read_as_address.
5167 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5168 (generic_get_saved_register): Update. Use regcache_read.
5170 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5172 * Makefile.in (objfiles_h): Add $(bcache_h).
5173 * objfiles.h: Include "bcache.h".
5175 * Makefile.in (symtab_h): Remove $(bcache_h).
5176 * symtab.h: Do not include "bcache.h".
5178 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5180 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5181 generic_func_frame_chain_valid.
5183 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5185 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5186 * config/i386/tm-fbsd.h: Likewise.
5188 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5190 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5191 generic_unwind_get_saved_register.
5193 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5195 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5196 * regcache.c (supply_register): Add missing argument to
5197 register_buffer call.
5199 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5201 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5202 Solaris /bin/grep does not not like it. From Peter Schauer.
5204 2002-06-26 Tom Tromey <tromey@redhat.com>
5206 * command.h (add_setshow_cmd): Declare.
5207 (add_setshow_cmd_full): Declare.
5208 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5209 returns void. Use add_setshow_cmd_full.
5210 (add_setshow_cmd_full): New function.
5211 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5212 (add_setshow_boolean_cmd): Likewise.
5214 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5216 * config/vax/tm-vax.h: Protect from multiple inclusion.
5217 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5218 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5219 * config/vax/tm-vaxbsd.h: ...here. New file.
5220 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5222 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5224 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5225 (BELIEVE_PCC_PROMOTION): Remove.
5226 (AP_REGNUM): Move to...
5227 * config/vax/nm-vax.h: ...here.
5228 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5229 (vax_breakpoint_from_pc): New function.
5230 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5231 and gdbarch_believe_pcc_promotion.
5233 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5235 * Makefile.in (vax_tdep_h): Define.
5236 (vax-tdep.o): Use $(vax_tdep_h).
5237 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5238 (vax_dump_tdep): New function.
5239 (_initialize_vax_tdep): Register vax_dump_tdep.
5240 * vax-tdep.h: Include osabi.h.
5241 (struct gdbarch_tdep): New.
5243 2002-06-26 Andrew Cagney <cagney@redhat.com>
5245 * frame.h (deprecated_generic_find_dummy_frame): Rename
5246 generic_find_dummy_frame.
5247 * blockframe.c (generic_find_dummy_frame): Make static.
5248 (deprecated_generic_find_dummy_frame): New function.
5249 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5250 generic_find_dummy_frame with deprecated_find_dummy_frame.
5251 (sh64_nofp_frame_init_saved_regs): Ditto.
5252 (sh_fp_frame_init_saved_regs): Ditto.
5253 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5254 (s390_frame_chain): Ditto.
5255 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5257 2002-06-26 Grace Sainsbury <graces@redhat.com>
5259 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5260 gdbarch vector are at the top.
5262 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5263 (FRAME_ARGS_ADDRESS): Remove.
5264 (FRAME_LOCALS_ADDRESS): Remove.
5265 (FRAME_NUM_ARGS): Remove.
5266 (FRAME_ARGS_SKIP): Remove.
5267 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5268 (m68k_gdbarch_init): Add gdbarch initializations for macros
5269 undefined in tm-m68k.h
5271 2002-06-26 Grace Sainsbury <graces@redhat.com>
5273 * monitor.h: Add the function regname to monitor_ops
5274 structure. This way NUM_REGS does not have to be a constant.
5275 * monitor.c (monitor_fetch_register): Added support for regname
5276 function. The function is called if the array regnames is NULL.
5277 (monitor_store_register): Same.
5278 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5280 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5281 cpu32bug_cmds.regname to point to new function.
5282 * abug-rom.c (abug_regname): Same as above.
5283 (init_abug_cmds): Same.
5284 * dbug-rom.c (dbug_regname): Same as above.
5285 (init_dbug_cmds): Same.
5286 * remote-est.c (est_regname): Same.
5287 (init_est_cmds): Same.
5288 * rom68k-rom.c (rom68k_regname): Same.
5289 (init_rom68k_cmds): Same.
5291 2002-06-25 Tom Tromey <tromey@redhat.com>
5293 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5295 2002-06-25 Andrew Cagney <cagney@redhat.com>
5297 * infrun.c (stop_registers): Change variable's type to ``struct
5299 (xmalloc_inferior_status): Delete function.
5300 (free_inferior_status): Delete function.
5301 (normal_stop): Use regcache_cpy.
5302 (struct inferior_status): Change type of fields ``stop_registers''
5303 and ``registers'' to ``struct regcache''.
5304 (write_inferior_status_register): Use regcache_write.
5305 (save_inferior_status): Instead of calling
5306 xmalloc_inferior_status, allocate the inf_status buffer directly.
5307 Use regcache_dup_no_passthrough and regcache_dup to save the
5309 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5310 Replace the stop_registers regcache instead of overriding it. Use
5311 regcache_xfree. Instead of calling free_inferior_status, xfree
5312 the buffer directly.
5313 (discard_inferior_status): Use regcache_xfree. Instead of calling
5314 free_inferior_status, xfree the buffer directly.
5315 (build_infrun): Use regcache_xmalloc.
5316 (_initialize_infrun): Delete redundant call to build_infrun.
5318 * Makefile.in (infcmd.o): Add $(regcache_h).
5320 * infcmd.c: Include "regcache.h".
5321 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5322 obtain the address of `stop_registers' register buffer.
5323 (print_return_value): Ditto.
5325 * inferior.h (struct regcache): Add opaque declaration.
5326 (stop_registers): Change variable's declared type to ``struct
5329 2002-06-24 Tom Tromey <tromey@redhat.com>
5331 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5332 * target.c (initialize_targets): Fixed typo in
5333 trust-readonly-sections `show' documentation.
5335 * main.c: Marked all strings with _().
5337 2002-06-24 Don Howard <dhoward@redhat.com>
5339 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5340 that means max CORE_ADDR+1.
5341 (lookup_mem_region): Ditto.
5342 (mem_info_command): Ditto.
5344 2002-06-24 Grace Sainsbury <graces@redhat.com>
5346 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5347 (REGISTER_BYTES_OK): Remove.
5348 (REGISTER_BYTES): Remove.
5349 (STORE_STRUCT_RETURN): Remove.
5350 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5351 (STORE_RETURN_VALUE): Remove.
5352 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5353 (FRAME_CHAIN): Remove.
5354 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5355 (FRAME_SAVED_PC): Remove.
5356 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5357 (m68k_store_struct_return): Add.
5358 (m68k_deprecated_extract_return_value): Add.
5359 (m68k_deprecated_extract_struct_value_address): Add.
5360 (m68k_store_return_value): Add.
5361 (m68k_frame_chain): Add.
5362 (m68k_frameless_function_invocation): Add.
5363 (m68k_frame_saved_pc): Add.
5364 (m68k_gdbarch_init): added set_gdbarch calls for new
5365 functions and deleted macros.
5367 2002-06-23 Tom Tromey <tromey@redhat.com>
5369 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5370 (ALLDEPFILES): Likewise.
5371 (udiheaders): Removed.
5372 (udip2soc.o): Likewise.
5373 (udi2go32.o): Likewise.
5375 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5377 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5379 * infrun.c (_initialize_infrun): Delete unnecessary call to
5382 * regcache.h: Update comments describing the regcache_cpy family
5384 (regcache_save, regcache_restore): Delete declaration.
5385 (regcache_save_no_passthrough): Delete declaration.
5386 (regcache_restore_no_passthrough): Delete declaration.
5387 * regcache.c (regcache_save): Delete function.
5388 (regcache_save_no_passthrough): Delete function.
5389 (regcache_restore): Delete function.
5390 (regcache_restore_no_passthrough): Delete function.
5392 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5394 * config/m68k/tm-m68k.h: Fix typo.
5395 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5396 (m68k_frame_init_saved_regs): Declare.
5398 2002-06-21 Jim Blandy <jimb@redhat.com>
5400 Remove some vestiges of Harris 88k support.
5401 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5402 register numbering quirk.
5403 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5404 odd symbols occurring in Harris 88k ELF targets.
5406 2002-06-21 Tom Tromey <tromey@redhat.com>
5408 * gdb_locale.h: New file.
5409 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5410 (defs_h): Added gdb_locale.h.
5411 * configure, config.in: Rebuilt.
5412 * configure.in (PACKAGE): Define.
5413 * defs.h: Include gdb_locale.h.
5414 * main.c (captured_main): Call setlocale, bindtextdomain,
5417 2002-06-21 Dave Brolley <brolley@redhat.com>
5419 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5420 * config/frv/frv.mt: New file.
5421 * config/frv/tm-frv.h: New file.
5422 * configure.tgt: Support frv-*-*.
5423 * Makefile.in (frv-tdep.o): New target.
5424 * frv-tdep.c: New file.
5425 * NEWS: Mention frv.
5427 2002-06-21 Dave Brolley <brolley@redhat.com>
5429 * MAINTAINERS: Add self to "Write After Approval" list.
5431 2002-06-21 Grace Sainsbury <graces@redhat.com>
5433 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5434 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5435 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5436 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5437 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5439 * m68k-tdep.c: Include arch-utils.h
5440 (m68k_register_raw_size): Add.
5441 (m68k_register_virtual_size): Add.
5442 (m68k_register_virtual_type): Add.
5443 (m68k_register_name): Add.
5444 (m68k_stack_align): Add.
5445 (m68k_register_byte): Add.
5446 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5449 2002-06-21 Grace Sainsbury <graces@redhat.com>
5451 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5452 m68k_find_saved_regs.
5453 (m68k_pop_frame): Removed saved_regs structure, and replaced
5454 references to it with frame->saved_regs.
5455 (m68k_gdbarch_init): Added function calls to initialize the
5457 (m68k_fix_call_dummy): Add.
5458 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5459 (CALL_DUMMY): Remove.
5460 (CALL_DUMMY_LENGTH): Remove.
5461 (CALL_DUMMY_START_OFFSET): Remove.
5462 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5463 (FIX_CALL_DUMMY): Remove.
5464 (PUSH_DUMMY_FRAME): Remove.
5465 (POP_FRAME): Remove.
5467 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5469 * parse.c (parse_fprintf): New function used to avoid calls to
5470 fprintf in bison parser generated debug code.
5471 * parser-defs.h: Declaration of new parse_fprintf function.
5472 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5473 Set YYDEBUG to 1 by default.
5474 Set YYFPRINTF as parse_fprintf.
5476 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5478 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5480 (pointer_encoding, enum ptr_encoding): New.
5481 (execute_cfa_program): Take care about pointer encoding.
5482 (dwarf2_build_frame_info): Only call parse_frame_info for
5483 .debug_frame and .eh_frame.
5484 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5485 fixed augmentation handling, added relative addressing,
5486 ignore duplicate FDEs. Added comments.
5487 * dwarf2cfi.c: Reindented.
5489 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5491 * event-top.c (command_handler): Don't use space_at_cmd_start
5492 unless there is sbrk() on the host. Assign time and space data
5493 to union fields of the appropriate length.
5495 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5497 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5498 x86_64_register_name. Return type changed to 'const char *'.
5499 (x86_64_register_name2nr): Rename to x86_64_register_number.
5500 (x86_64_gdbarch_init): Update to reflect the change.
5501 * x86-64-tdep.h: Ditto.
5502 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5503 (supply_fpregset): Ditto.
5505 2002-06-19 Andrew Cagney <cagney@redhat.com>
5507 * regcache.h: Update copyright.
5508 (struct regcache, struct gdbarch): Add opaque declarations.
5509 (current_regcache): Declare global variable.
5510 (regcache_read, regcache_write): Add gdbarch parameter.
5511 (regcache_save, regcache_save_no_passthrough)
5512 (regcache_restore, regcache_restore_no_passthrough)
5513 (regcache_dup, regcache_dup_no_passthrough)
5514 (regcache_cpy, regcache_cpy_no_passthrough)
5515 (deprecated_grub_regcache_for_registers)
5516 (deprecated_grub_regcache_for_register_valid)
5517 (regcache_valid_p): Add function declarations.
5519 * regcache.c: Update copyright.
5520 (regcache_descr_handle): New global variable.
5521 (struct regcache_descr): Define.
5522 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5523 (regcache_descr, xfree_regcache_descr): New functions.
5524 (struct regcache): Define.
5525 (regcache_xmalloc, regcache_xfree): New functions.
5526 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5527 (regcache_dup, regcache_dup_no_passthrough): New functions.
5528 (regcache_valid_p, regcache_read_as_address): New functions.
5529 (deprecated_grub_regcache_for_registers): New function.
5530 (deprecated_grub_regcache_for_register_valid): New function.
5531 (current_regcache): New global variable.
5532 (register_buffer): Add regcache parameter. Update calls.
5533 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5534 (read_register_gen, write_register_gen): Update register_buffer
5535 call. Test for legacy_p instead of gdbarch_register_read_p or
5536 gdbarch_register_write_p.
5537 (regcache_collect): Update register_buffer call.
5538 (build_regcache): Rewrite. Use deprecated grub functions.
5539 (regcache_save, regcache_save_no_passthrough): New functions.
5540 (regcache_restore, regcache_restore_no_passthrough): New
5542 (_initialize_regcache): Create the regcache_data_handle. Swap
5543 current_regcache global variable.
5545 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5546 parameter to regcache_read and regcache_write calls.
5547 (sh4_register_read): Ditto.
5548 (sh64_pseudo_register_read): Ditto.
5549 (sh64_register_read): Ditto.
5550 (sh_pseudo_register_write): Ditto.
5551 (sh4_register_write): Ditto.
5552 (sh64_pseudo_register_write): Ditto.
5553 (sh64_register_write): Ditto.
5555 * defs.h (XCALLOC): Define.
5557 2002-06-19 Grace Sainsbury <graces@redhat.com>
5559 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5560 * m68k-tdep.c (m68k_gdbarch_init): Added.
5561 (m68k_dump_tdep): Added.
5563 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5565 * ada-lang.c (fill_in_ada_prototype): Update comment.
5567 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5569 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5571 (mips_abi_string, mips_abi_strings): New.
5572 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5573 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5574 tdep->mips_abi_string. Honor mips_abi_string. Default to
5575 O32 if no ABI is found.
5576 (mips_dump_tdep): Use mips_abi_strings.
5577 (mips_abi_update): New function.
5578 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5579 ``set mips abi'' and ``show mips abi''. Check the size of
5582 2002-06-19 Andrew Cagney <cagney@redhat.com>
5584 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5587 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5589 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5590 current frame using only the first stack size adjustment. All
5591 subsequent size adjustments are not considered to be part of
5592 the "static" part of the current frame.
5593 Compute the address of the saved registers relative to the
5594 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5595 in use in this frame.
5597 2002-06-18 Don Howard <dhoward@redhat.com>
5599 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5600 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5601 suggesting this solution.
5603 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5605 * config/romp/xm-rtbsd.h: Delete file.
5606 * config/romp/rtbsd.mh: Delete file.
5608 2002-06-18 Keith Seitz <keiths@redhat.com>
5610 * breakpoint.c (condition_command): Post breakpoint_modify
5611 when a condition is added to an existing breakpoint.
5612 (commands_command): Likewise for commands.
5613 (set_ignore_count): Likewise for ignore counts.
5614 If no tty, do not simply return, still need to send event
5616 (ignore_command): Only print a newline if the command came
5618 Don't call breakpoints_changed, since this is now properly
5619 handled by set_ignore_count.
5621 2002-06-18 Andrew Cagney <cagney@redhat.com>
5623 * MAINTAINERS: Note that cris-elf target can be compiled with
5625 * cris-tdep.c (cris_register_name): Make return type constant.
5626 (cris_breakpoint_from_pc): Ditto.
5628 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5630 * frame.h (struct frame_info): Change type of context to
5633 2002-06-17 Andrew Cagney <cagney@redhat.com>
5635 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5637 * gdbarch.h, gdbarch.c: Regenerate.
5638 * config/mips/tm-mips.h (mips_register_name): Update.
5639 * i386-tdep.h (i386_register_name): Update.
5640 * mips-tdep.c (mips_register_name): Update
5641 * alpha-tdep.c (alpha_register_name): Update.
5642 * arch-utils.c (legacy_register_name): Update.
5643 * arch-utils.h (legacy_register_name): Update.
5644 * avr-tdep.c (avr_register_name): Update.
5645 * ia64-tdep.c (ia64_register_name): Update.
5646 * i386-tdep.c (i386_register_name): Update.
5647 * sparc-tdep.c (sparc32_register_name): Update.
5648 (sparc64_register_name): Update.
5649 (sparclite_register_name): Update.
5650 (sparclet_register_name): Update.
5651 * sh-tdep.c (sh_generic_register_name): Update.
5652 (sh_sh_register_name): Update.
5653 (sh_sh3_register_name): Update.
5654 (sh_sh3e_register_name): Update.
5655 (sh_sh_dsp_register_name): Update.
5656 (sh_sh3_dsp_register_name): Update.
5657 (sh_sh4_register_name): Update.
5658 (sh_sh64_register_name): Update.
5659 * s390-tdep.c (s390_register_name): Update.
5660 * rs6000-tdep.c (rs6000_register_name): Update.
5661 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5662 (ns32k_register_name_32382): Update.
5663 * d10v-tdep.c (d10v_ts2_register_name): Update.
5664 (d10v_ts3_register_name): Update.
5665 * xstormy16-tdep.c (xstormy16_register_name): Update.
5666 * vax-tdep.c (vax_register_name): Update.
5667 * v850-tdep.c (v850_register_name): Update.
5668 * m68hc11-tdep.c (m68hc11_register_name): Update.
5669 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5670 (am33_register_name): Update.
5672 2002-06-17 Grace Sainsbury <graces@redhat.com>
5674 * m68k-tdep.c: Reindented.
5676 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5678 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5679 list of predefined types.
5681 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5683 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5684 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5685 REGISTER_CONVERT_TO_RAW): Remove defines.
5686 (i386_register_virtual_type, i386_register_convertible,
5687 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5689 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5690 macros mentioned above.
5692 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5693 (i386lynx_saved_pc_after_call): Remove prototype.
5694 * i386ly-tdep.c: Include "i386-tdep.h".
5695 (i386lynx_saved_pc_after_call): Make static. Use
5696 read_memory_nobpt instead of read_memory. Use
5697 read_memory_unsigned_integer instead of read_memory_integer.
5698 (i386lynx_init_abi): New function.
5699 (i386lynx_coff_osabi_sniffer): New function.
5700 (_initialize_i386bsd_tdep): New function.
5702 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5703 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5704 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5705 (i386_fix_call_dummy): Remove prototype.
5706 * i386-tdep.c (i386_call_dummy_words): New variable.
5707 (i386_gdbarch_init): Adjust for removal of the
5708 macros mentioned above.
5710 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5712 * command.h (add_setshow_auto_boolean_cmd): Replace
5713 add_set_auto_boolean_cmd.
5714 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5715 add_set_auto_boolean_cmd.
5716 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5717 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5718 mask-address'' command.
5719 (show_mask_address): Add cmd parameter.
5720 * remote.c (add_packet_config_cmd): Update. Change type of
5721 set_func and show_func to cmd_sfunc_ftype.
5722 (_initialize_remote): Update `set remote Z-packet'
5723 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5724 (show_remote_protocol_e_packet_cmd): Ditto.
5725 (show_remote_protocol_E_packet_cmd): Ditto.
5726 (show_remote_protocol_P_packet_cmd): Ditto.
5727 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5728 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5729 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5730 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5731 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5732 (show_remote_protocol_Z_packet_cmd): Ditto.
5733 (show_remote_protocol_binary_download_cmd): Ditto.
5734 (show_remote_cmd): Pass NULL to all of above.
5736 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5738 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5739 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5740 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5741 POP_FRAME): Remove defines.
5742 (i386_push_arguments, i386_store_struct_return,
5743 i386_extract_return_value, i386_store_return_value,
5744 i386_extract_struct_value_address, i386_push_dummy_frame,
5745 i386_pop_frame): Renove prototypes.
5746 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5747 macros mentioned above.
5749 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5751 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5752 add_set_boolean_cmd.
5753 (add_setshow_cmd): New function.
5754 * command.h (add_setshow_boolean_cmd): Replace
5755 add_set_boolean_cmd.
5756 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5757 and ``set rdiromatzero''.
5758 * maint.c (_initialize_maint_cmds): Update commented out code.
5759 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5760 * target.c (initialize_targets): Update `set
5761 trust-readonly-sections'.
5762 * remote.c (_initialize_remote): Update `set remotebreak'.
5764 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5766 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5767 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5768 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5769 fit into multi-arch framework.
5770 (i386_breakpoint_from_pc): New function.
5771 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5774 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5775 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5776 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5777 (i386_frameless_function_invocation, i386_frame_num_args,
5778 i386_frame_init_saved_regs): Remove prototypes.
5779 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5780 macros mentioned above.
5782 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5784 * cli/cli-decode.c (set_cmd_cfunc): Update.
5785 (set_cmd_sfunc): Update.
5786 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5787 (set_cmd_sfunc, set_cmd_cfunc): Update.
5788 * cli/cli-decode.h: Update.
5790 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5792 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5793 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5795 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5797 * defs.h (auto_boolean): Declare enum.
5798 * command.h (cmd_auto_boolean): Delete enum.
5799 * mips-tdep.c (mask_address_var): Update.
5800 (mips_mask_address_p): Update.
5801 (show_mask_address): Update.
5802 * remote.c (struct packet_config): Update.
5803 (update_packet_config): Update.
5804 (show_packet_config_cmd): Update.
5805 (packet_ok): Update.
5806 (add_packet_config_cmd): Update.
5807 (_initialize_remote):
5808 * command.h: Update.
5809 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5810 (do_setshow_command): Update.
5811 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5812 * cli/cli-decode.h: Update.
5814 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5816 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5817 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5818 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5819 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5820 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5821 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5823 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5824 list of DJGPP COFF targets.
5826 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5827 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5828 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5829 (FP0_REGNUM): Remove define.
5830 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5831 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5832 (i386_register_virtual_size): Remove protoype.
5833 * i386-tdep.c (i386_register_virtual_size): Removed.
5834 (i386_extract_return_value, i386_store_return_value): Use
5835 FP0_REGNUM instead of NUM_FREGS to determine whether the
5836 floating-point registers are available.
5837 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5838 Adjust for removal of macros mentioned above.
5840 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5842 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5844 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5846 (supply_gregset, fill_gregset): Remove use of register keyword and
5847 remove declaration for regmap. Use I386_NUM_GREGS instead of
5848 NUM_REGS and NUM_FREGS.
5849 (FPREGSET_FSAVE_OFFSET): Remove.
5850 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5851 NUM_FREGS to determine whether the floating-point registers are
5854 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5855 gnu_store_registers): Replace usage of NUM_GREGS with
5858 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5859 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5860 usage of NUM_GREGS with I386_NUM_GREGS.
5862 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5864 * i386bsd-nat.c: Include "i386-tdep.h".
5865 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5868 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5869 and associated comment. They no longer make any sense, since we
5870 don't use this file anymore on Linux.
5872 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5873 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5874 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5875 elements in these arrays.
5876 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5879 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5881 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5882 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5884 2002-06-14 Andrew Cagney <cagney@redhat.com>
5886 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5887 EXTRACT_RETURN_VALUE.
5888 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5889 EXTRACT_STRUCT_VALUE_ADDRESS.
5890 * gdbarch.h, gdbarch.c: Regenerate.
5892 * values.c (value_being_returned): Handle
5893 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5894 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5896 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5897 * arm-tdep.c (arm_gdbarch_init): Update.
5898 * avr-tdep.c (avr_gdbarch_init): Update.
5899 * cris-tdep.c (cris_gdbarch_init): Update.
5900 * d10v-tdep.c (d10v_gdbarch_init): Update.
5901 * ia64-tdep.c (ia64_gdbarch_init): Update.
5902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5903 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5904 * s390-tdep.c (s390_gdbarch_init): Update.
5905 * sh-tdep.c (sh_gdbarch_init): Update.
5906 * s390-tdep.c (s390_gdbarch_init): Update.
5907 * sparc-tdep.c (sparc_gdbarch_init): Update.
5908 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5909 * v850-tdep.c (v850_gdbarch_init): Update.
5910 * vax-tdep.c (vax_gdbarch_init): Update.
5911 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5914 * config/arc/tm-arc.h: Update.
5915 * config/d30v/tm-d30v.h: Update.
5916 * config/fr30/tm-fr30.h: Update.
5917 * config/h8300/tm-h8300.h: Update.
5918 * config/h8500/tm-h8500.h: Update.
5919 * config/i386/tm-i386.h: Update.
5920 * config/i386/tm-ptx.h: Update.
5921 * config/i386/tm-symmetry.h: Update.
5922 * config/i960/tm-i960.h: Update.
5923 * config/m32r/tm-m32r.h: Update.
5924 * config/m68k/tm-delta68.h: Update.
5925 * config/m68k/tm-linux.h: Update.
5926 * config/m68k/tm-m68k.h: Update.
5927 * config/m88k/tm-m88k.h: Update.
5928 * config/mcore/tm-mcore.h: Update.
5929 * config/mips/tm-mips.h: Update.
5930 * config/mn10200/tm-mn10200.h: Update.
5931 * config/pa/tm-hppa.h: Update.
5932 * config/pa/tm-hppa64.h: Update.
5933 * config/sparc/tm-sp64.h: Update.
5934 * config/sparc/tm-sparc.h: Update.
5935 * config/sparc/tm-sparclet.h: Update.
5936 * config/z8k/tm-z8k.h: Update.
5938 2002-06-14 Andrew Cagney <cagney@redhat.com>
5940 * Makefile.in (i386_linux_tdep_h): Define.
5941 (i386_tdep_h, i387_tdep_h): Define.
5942 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5943 $(i386_tdep_h) and $(i387_tdep_h).
5944 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5946 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5948 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5949 Already covered by the default.
5951 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5952 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5953 (i386_gdbarch_init): Initialize long_double_format and long_double
5956 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5957 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5959 * config/i386/i386sol2.mh: ... here.
5960 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5961 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5962 (SIGCONTEXT_PC_OFFSET): Remove define.
5963 (IN_SIGTRAMP): Remove define.
5964 * i386-sol2-tdep.c: New file.
5966 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5967 * config/i386/tm-i386nw.h: Removed.
5969 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5970 USE_STRUCT_CONVENTION): Remove defines.
5971 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5972 (get_longjmp_target): Remove prototype.
5973 (IN_SIGTRAMP): Remove define.
5974 (i386bsd_in_sigtramp): Remove prototype.
5975 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5976 function. Update comment accordingly
5977 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5978 (FRAME_SAVED_PC): Remove define.
5979 (i386bsd_frame_saved_pc): Remove prototype.
5980 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5981 GET_LONGJMP_TARGET): Remove defines.
5982 (get_longjmp_target): Remove prototype.
5983 (IN_SIGTRAMP): Remove define.
5984 (i386bsd_in_sigtramp): Remove prototype.
5985 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5986 function. Update comment accordingly
5987 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5988 (FRAME_SAVED_PC): Remove define.
5989 (i386bsd_frame_saved_pc): Remove prototype.
5990 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5992 (USE_STRUCT_CONVENTION): Remove prototype.
5993 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5995 (_initialize_i386bsd_nat): Revise logic to determine some
5996 constants at compile time when compiling a native GDB. Warn if
5997 things don't match up with what we expect.
5998 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6000 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6001 to use date stored in `struct gdbarch_tdep'.
6002 (i386bsd_sigcontext_offset): Remove varaible.
6003 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6004 stored in `struct gdbarch_tdep'.
6005 (i386bsd_frame_saved_pc): Make static.
6006 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6007 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6008 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6009 i386fbsd4_sc_pc_offset): New variables.
6010 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6011 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6013 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6015 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6016 Modify the value of i386fbsd_sigtramp_start and
6017 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6018 i386fbsd_sigtramp_end.
6019 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6022 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6023 define to i386-linux-tdep.h.
6024 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6025 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6027 (i386_linux_register_name, i386_linux_register_byte,
6028 i386_linux_register_raw_size): Remove prototypes.
6029 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6030 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6031 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6032 TARGET_WRITE_PC): Remove defines.
6033 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6034 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6035 i386_linux_write_pc): Remove prototypes.
6036 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6037 (get_longjmp_target): Remove prototype.
6038 * i386-linux-tdep.h: New file.
6039 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6040 * i386-linux-tdep.c: Include "i386-tdep.h" and
6041 "i386-linux-tdep.h".
6042 (i386_linux_register_name, i386_linux_register_byte,
6043 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6044 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6046 (i386_linux_init_abi): New function.
6047 (_initialize_i386_linux_tdep): New function.
6049 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6050 (i386_saved_pc_after_call): Remove prototype.
6051 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6052 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6053 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6054 (i386_register_name, i386_stab_reg_to_regnum,
6055 i386_dwarf_reg_to_regnum): Remove prototypes.
6056 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6057 SIZEOF_SSE_REGS): Remove defines.
6058 (REGISTER_BYTES): Remove define.
6059 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6060 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6061 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6062 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6063 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6064 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6065 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6066 (get_longjmp_target): Remove prototype.
6067 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6068 (sigtramp_saved_pc): Remove define.
6069 (i386v4_sigtramp_saved_pc): Remove prototype.
6070 * config/i386/tm-go32.h (FRAME_CHAIN,
6071 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6072 (i386go32_frame_saved_pc): Remove prototype.
6073 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6074 (get_longjmp_target): Remove prototype.
6075 * i386-tdep.h: Include "osabi.h".
6076 (enum i386_abi): Removed.
6077 (enum struct_return): New enum.
6078 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6079 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6080 sc_pc_offset members.
6081 (i386_gdbarch_register_os_abi): Remove prototype.
6082 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6083 I386_SSE_NUM_REGS): New defines.
6084 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6085 I386_SSE_SIZEOF_REGS): New defines.
6086 (i386_register_name, i386_register_byte, i386_register_raw_size):
6088 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6089 (i386bsd_sigtramp_saved_pc): New prototype.
6090 * i386-tdep.c: Don't include "elf-bfd.h".
6091 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6092 i386_frame_chain, i386_saved_pc_after_call): Make static.
6093 (i386_frame_saved_pc): Rewrite to call architecture dependent
6094 function to deal with signal handlers. Make static.
6095 (i386go32_frame_saved_pc): Removed.
6096 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6098 (i386_get_longjmp_target): New function.
6099 (default_struct_convention, pcc_struct_convention,
6100 reg_struct_convention, valid_conventions, struct_convention): New
6102 (i386_use_struct_convention): New function.
6103 (i386v4_sigtramp_saved_pc): Renamed to
6104 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6105 (i386_pc_in_sigtramp): New function.
6106 (i386_abi_names): Removed.
6107 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6108 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6110 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6111 i386_gdbarch_register_os_abi): Removed.
6112 (struct i386_abi_handler): Removed.
6113 (i386_abi_handler_list): Removed.
6114 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6116 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6117 i386_nw_init_abi): New functions.
6118 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6119 Use set_gdbarch_xxx() calls instead of relying on macros for a
6121 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6122 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6123 Register the various architecture variants defined in this file.
6125 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6127 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6128 (struct main_type): Remove arg_types member. Update comments for
6130 (TYPE_ARG_TYPES): Remove.
6131 (TYPE_FN_FIELD_ARGS): Update.
6132 (smash_to_method_type): Update prototype.
6134 * c-typeprint.c (cp_type_print_method_args): Take method type
6135 instead of argument list. Use new argument layout. Simplify.
6136 (c_type_print_args): Use new argument layout. Simplify.
6137 (c_type_print_base): Update call to cp_type_print_method_args.
6138 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6139 argument; use die->type instead. Update call to
6140 smash_to_method_type.
6141 (read_structure_scope): Update call to dwarf2_add_member_fn.
6142 * gdbtypes.c (allocate_stub_method): Update comment.
6143 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6144 Use new argument layout.
6145 (check_stub_method): Use new argument layout. Don't count
6146 void as an argument.
6147 (print_arg_types): Update comments. Use new argument layout.
6148 (recursive_dump_type): Don't print arg_types member.
6149 * hpread.c (hpread_read_struct_type): Use new argument layout.
6150 (fixup_class_method_type): Likewise.
6151 (hpread_type_lookup): Likewise.
6152 * stabsread.c (read_type): Update calls to read_args and
6153 smash_to_method_type.
6154 (read_args): Use new argument layout. Simplify.
6155 * valops.c (typecmp): Use new argument layout. Update parameters
6156 and comments. Simplify.
6157 (hand_function_call): Use new argument layout.
6158 (search_struct_method): Update call to typecmp.
6159 (find_overload_match): Use new argument layout.
6161 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6163 * NEWS: Mention multithreaded debug support for gdbserver.
6165 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6167 * MAINTAINERS: Mention NEWS.
6169 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6171 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6172 (struct mips_objfile_private, compare_pdr_entries): New.
6173 (non_heuristic_proc_desc): Read the ".pdr" section if it
6176 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6178 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6179 (arm_debug): New static variable.
6180 (_initialize_arm_tdep): Add ``set debug arm'' command.
6182 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6184 * Makefile.in (sim_arm_h): Define.
6185 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6186 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6187 (arm_register_sim_regno): New function, map an internal REGNUM
6188 onto a simulator register number.
6189 (arm_gdbarch_init): Set register_sim_regno.
6191 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6193 * MAINTAINERS: Add self.
6195 2002-06-11 Jim Blandy <jimb@redhat.com>
6197 * source.c (source_info): Mention whether the symtab has
6198 information about preprocessor macros.
6200 Call the command `info macro', not `show macro'.
6201 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6203 (_initialize_macrocmd): Register `info_macro_command' in
6204 `infolist', not `showlist'.
6206 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6208 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6209 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6210 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6211 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6212 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6214 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6215 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6216 (_initialize_mips_tdep): Remove dead code.
6217 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6218 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6219 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6220 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6221 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6222 MIPS_LAST_FP_ARG_REGNUM): Remove.
6224 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6226 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6227 (unwind_tmp_obstack_free, parse_frame_info)
6228 (update_context, cfi_read_fp, cfi_write_fp)
6229 (cfi_frame_chain, cfi_init_extra_frame_info)
6230 (cfi_virtual_frame_pointer): Use the above function.
6231 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6233 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6235 * v850-tdep.c (v850_type_is_scalar): New function.
6236 (v850_use_struct_convention): Match current gcc implementation
6237 as close as possible.
6238 (v850_push_arguments): Fix stack_offset handling. Don't write
6239 struct_addr into register. This is done by v850_store_struct_return.
6240 (v850_extract_return_value): Care for structs.
6241 (v850_store_return_value): Ditto.
6242 (v850_store_struct_return): Actually write address.
6244 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6246 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6247 without debug information too.
6249 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6251 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6252 Make multi-arch pure.
6253 * gdbarch.h, gdbarch.c: Re-generate.
6254 * arm-tdep.c (arm_print_float_info): Update.
6255 * arch-utils.h (default_print_float_info): Update.
6256 * arch-utils.c (default_print_float_info): Update.
6257 * infcmd.c (float_info): Update call.
6259 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6261 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6262 the front of the initialize list.
6264 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6266 * infrun.c (struct inferior_status): Replace fields
6267 selected_frame_address and selected_level with field
6269 (save_inferior_status): Update. Use get_frame_id.
6270 (struct restore_selected_frame_args): Delete.
6271 (restore_selected_frame): Update. Use frame_find_by_id.
6272 (restore_inferior_status): Update.
6274 * breakpoint.h (struct breakpoint): Change type of
6275 watchpoint_frame to frame_id.
6276 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6277 call to get_current_frame.
6278 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6280 (watchpoint_check): Use frame_find_by_id.
6282 * frame.h (record_selected_frame): Delete declaration.
6283 * stack.c (record_selected_frame): Delete function.
6285 * frame.h (struct frame_id): Define.
6286 (get_frame_id): Declare.
6287 (frame_find_by_id): Declare.
6288 * frame.c (frame_find_by_id): New function.
6289 (get_frame_id): New function.
6291 2002-06-10 Andrey Volkov <avolkov@transas.com>
6293 * ser-e7kpc.c: Fix duplicated define and call of
6294 _initialize_ser_e7000pc
6296 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6298 * signals/signals.c (target_signal_from_host): Fix #ifdef
6300 (do_target_signal_to_host): Likewise.
6302 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6304 * mips-tdep.c (mips_find_abi_section): New function.
6305 (mips_gdbarch_init): Call it.
6307 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6309 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6310 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6311 after Andrew's 2002-06-08 gdbarch change.
6313 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6315 * i386-linux-nat.c (suppy_gregset): Don't supply
6316 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6318 (fill_gregset): Don't fetch it under the same circumstances.
6320 2002-06-09 Andrew Cagney <cagney@redhat.com>
6322 * Makefile.in (callback_h): Define.
6323 (remote_sim_h): Update path to remote-sim.h.
6324 (remote-rdp.o): Add $(callback_h).
6325 (remote-sim.o): Use $(callback_h).
6326 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6327 * remote-rdp.c: Include "gdb/callback.h".
6329 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6331 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6332 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6334 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6336 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6337 * rdi-share/serpardr.c: Ditto.
6338 * rdi-share/unixcomm.c: Ditto.
6339 * rdi-share/serdrv.c: Ditto.
6340 * rdi-share/hostchan.h: Ditto.
6341 * rdi-share/hostchan.c: Ditto.
6342 * rdi-share/host.h: Ditto.
6343 * rdi-share/devsw.c: Ditto.
6345 * objfiles.h: Change type of obj_private to void pointer.
6346 * pa64solib.c: Update copyright. Don't include "assert.h", use
6347 strcmp instead of STREQ, use LONGEST, do not use PTR
6348 * somsolib.c: Ditto.
6350 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6351 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6352 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6354 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6356 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6357 (default_get_saved_register): Delete function.
6358 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6359 generic_unwind_get_saved_register.
6360 * gdbarch.h, gdbarch.c: Re-generate.
6362 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6364 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6365 generic_func_frame_chain_valid.
6366 * gdbarch.h, gdbarch.c: Re-generate.
6367 * blockframe.c (generic_func_frame_chain_valid): Only check
6368 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6369 passing FP to PC_IN_CALL_DUMMY.
6372 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6374 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6375 (register_gdbarch_data): Initialize init_p.
6376 (gdbarch_data): Initialize data pointer using the init function.
6377 (init_gdbarch_data): Delete function.
6378 (gdbarch_update_p): Update.
6379 (initialize_non_multiarch): Update.
6380 (struct gdbarch): Add field initialized_p.
6381 * gdbarch.h, gdbarch.c: Re-generate.
6383 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6385 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6386 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6387 better do the things actually here.
6388 * x86-64-tdep.c (x86_64_register_name2nr): New.
6389 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6390 (x86_64_gdbarch_init): Respect the above change.
6391 * x86-64-tdep.h (x86_64_register_name2nr)
6392 (x86_64_register_nr2name): Add prototypes.
6393 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6395 2002-06-06 Michael Snyder <msnyder@redhat.com>
6397 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6398 Delete extra braces and re-indent.
6399 (d10v_store_return_value): Char return values
6400 must be shifted over by one byte in R0.
6401 (d10v_extract_return_value): Delete extra braces, re-indent.
6403 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6405 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6406 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6407 (d10v_integer_to_address): Rewrite.
6408 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6409 the d10v specific functions which take care of converting to the
6412 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6414 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6415 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6417 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6419 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6421 * config/tm-linux.h: Ditto.
6422 * config/alpha/tm-alphalinux.h: Ditto.
6423 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6424 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6425 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6426 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6427 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6428 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6429 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6430 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6431 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6432 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6433 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6434 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6435 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6436 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6437 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6438 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6439 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6440 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6441 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6442 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6443 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6444 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6445 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6446 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6447 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6448 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6449 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6450 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6451 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6452 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6453 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6454 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6455 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6456 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6457 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6458 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6459 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6461 2002-05-04 Aidan Skinner <aidan@velvet.net>
6463 * ada-exp.tab.c: New file
6464 * ada-exp.y: New file
6465 * ada-lang.c: New file
6466 * ada-lang.h: New file
6467 * ada-lex.c: New file
6468 * ada-lex.l: New file
6469 * ada-tasks.c: New file
6470 * ada-typeprint.c: New file
6471 * ada-valprint.c: New file
6473 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6475 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6476 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6478 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6480 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6481 insetead of ppc-linux-tdep.o.
6482 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6483 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6485 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6487 2002-05-07 Christian Groessler <chris@groessler.org>
6488 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6489 bit register contents for little endian hosts.
6491 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6493 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6496 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6498 * gdbarch.h: Regenerate.
6500 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6502 * MAINTAINERS: Add everyone to write-after-approval list.
6504 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6506 * stack.c (frame_info): Use frame_register_unwind instead of
6507 saved_regs. Mention when the SP is on the stack or in a register.
6509 * frame.h (frame_register_unwind_ftype): Define. Document.
6510 (struct frame_info): Add field register_unwind and
6511 register_unwind_cache.
6512 (frame_register_unwind): Declare.
6513 (generic_unwind_get_saved_register): Declare.
6515 * frame.c (frame_register_unwind): New function.
6516 (generic_unwind_get_saved_register): New function.
6518 * blockframe.c (generic_call_dummy_register_unwind): New function.
6519 (frame_saved_regs_register_unwind): New function.
6520 (set_unwind_by_pc): New function.
6521 (create_new_frame): New function.
6522 (get_prev_frame): New function.
6524 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6526 * a29k-share/: Delete directory.
6527 * remote-vx29k.c: Delete file.
6529 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6531 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6532 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6534 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6536 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6537 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6540 (sparcnbsd-tdep.o): New dependency lists.
6541 * NEWS: Note new UltraSPARC NetBSD native configuration.
6542 * configure.host (sparc64-*-netbsd*): New host.
6543 * configure.tgt (sparc-*-netbsdelf*)
6544 (sparc-*-netbsd*): Set gdb_target to nbsd.
6545 (sparc64-*-netbsd*): New target.
6546 * sparc64nbsd-nat.c: New file.
6547 * sparcnbsd-nat.c: New file.
6548 * sparcnbsd-tdep.c: New file.
6549 * sparcnbsd-tdep.h: New file.
6550 * config/sparc/nbsd.mt: New file.
6551 * config/sparc/nbsd64.mh: New file.
6552 * config/sparc/nbsd64.mt: New file.
6553 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6554 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6556 * config/sparc/nbsdaout.mt: Remove.
6557 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6558 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6560 * config/sparc/nbsdelf.mt: Remove.
6561 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6562 sparc-nat.c compatiblity defines.
6563 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6564 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6565 * config/sparc/tm-nbsd64.h: New file.
6566 * config/sparc/tm-nbsdaout.h: Remove.
6567 * config/sparc/xm-nbsd.h: Remove.
6569 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6571 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6572 * sparc-tdep.c: Include osabi.h.
6573 (gdbarch_tdep): Add osabi member.
6574 (_initialize_sparc_tdep): Use gdbarch_register.
6575 (sparc_gdbarch_init): Use generic OS ABI framework.
6576 (sparc_dump_tdep): New function.
6578 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6580 * corefile.c (do_captured_read_memory_integer): Return non-zero
6582 (safe_read_memory_integer): Copy result of memory read when
6583 status is non-zero. Also, add comments.
6585 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6587 * Makefile.in (ppc_tdep_h): Define.
6590 (rs6000-tdep.o): Use $(ppc_tdep_h).
6593 (ppcnbsd-tdep.o): New dependency lists.
6594 * ppc-tdep.h: Use generic OS ABI framework.
6595 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6596 (ppc_linux_init_abi): New functions.
6597 (ppc_sysv_abi_broken_use_struct_convention)
6598 (ppc_sysv_abi_use_struct_convention)
6599 (ppc_sysv_abi_push_arguments): Move to...
6600 * ppc-sysv-tdep.c: ...here.
6601 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6602 * rs6000-tdep.c (process_note_abi_tag_sections)
6603 (get_elfosabi): Remove.
6604 (rs6000_gdbarch_init): Use generic OS ABI framework.
6605 (rs6000_dump_tdep): New function.
6606 (_initialize_rs6000_tdep): Use gdbarch_register.
6607 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6608 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6609 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6610 of ppc-linux-tdep.o.
6611 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6612 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6613 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6614 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6615 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6616 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6618 2002-05-29 Jim Blandy <jimb@redhat.com>
6620 * macroscope.c (default_macro_scope): Put `void' in empty argument
6623 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6625 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6626 * arch-utils.c: Include "sim-regno.h".
6627 * gdbarch.sh: Don't include "sim-regno.h".
6628 * gdbarch.h, gdbarch.c: Regenerate.
6629 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6631 * arch-utils.h (legacy_register_sim_regno): To here.
6632 * remote-sim.c (legacy_register_sim_regno): Move function from
6634 * arch-utils.c (legacy_register_sim_regno): To here.
6636 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6638 * sim-regno.h: New file.
6639 * Makefile.in (sim_regno_h): Define.
6640 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6641 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6642 (legacy_register_sim_regno): New function.
6643 (one2one_register_sim_regno): New function.
6644 (gdbsim_fetch_register): Rewrite.
6645 (gdbsim_store_register): Only store a register when
6646 REGISTER_SIM_REGNO is valid.
6647 * d10v-tdep.c: Include "sim-regno.h".
6648 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6649 (d10v_ts3_register_sim_regno): Ditto.
6650 * gdbarch.sh: Include "sim-regno.h".
6651 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6652 * gdbarch.h, gdbarch.c: Regenerate.
6653 * arch-utils.h (default_register_sim_regno): Delete declaration.
6654 * arch-utils.c (default_register_sim_regno): Delete function.
6656 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6658 * ppcnbsd-nat.c: Rewrite.
6659 * ppcnbsd-tdep.c: New file.
6660 * ppcnbsd-tdep.h: New file.
6661 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6662 solib.o, and solib-svr4.o.
6663 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6664 nbsd-tdep.o, and corelow.o.
6666 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6668 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6669 `tr' and `sed'. Mention that `broken' targets are not expected to
6672 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6674 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6675 Let PC point right after the prologue before looking up symbols.
6677 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6679 * i386-tdep.c (i386_register_virtual_type): Return
6680 builtin_type_vec128i for SSE registers.
6682 * gdbtypes.h (builtin_type_vec128i): Declare.
6684 * gdbtypes.c (build_builtin_type_vec128i): New function.
6685 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6686 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6687 (build_gdbtypes): Initialize new builtin vector types.
6688 (_initialize_gdbtypes): Register new vector types with gdbarch.
6690 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6692 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6693 since it has been multi-arch'd.
6694 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6695 Move Alpha and VAX multi-arch news entries to same section
6696 as other multi-arch news.
6698 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6700 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6701 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6702 static. Rename some register numbers to put them in ns32k-tdep
6704 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6705 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6707 (_initialize_ns32k_tdep): Use gdbarch_register.
6708 * ns32k-tdep.h: New file.
6709 * ns32knbsd-tdep.c: New file.
6710 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6711 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6712 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6713 REGISTER_BYTES, REGISTER_BYTE): Remove.
6714 * config/ns32k/tm-ns32k.h: New file.
6715 * config/ns32k/tm-umax.h: Remove.
6717 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6719 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6720 ns32k_store_struct_return, ns32k_extract_return_value,
6721 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6723 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6724 ns32k_saved_pc_after_call.
6725 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6726 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6727 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6728 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6729 ns32k_extract_struct_value_address.
6731 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6733 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6734 ns32k_fix_call_dummy): New.
6735 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6736 ns32k_call_dummy_words.
6737 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6738 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6739 CALL_DUMMY_NARGS): Remove.
6740 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6742 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6744 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6745 ns32k_frame_saved_pc, ns32k_frame_args_address,
6746 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6747 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6748 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6749 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6750 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6751 (BREAKPOINT): Remove..
6752 (FRAME_CHAIN): Define as ns32k_frame_chain.
6753 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6754 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6755 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6756 (FRAME_FIND_SAVED_REGS): Remove.
6757 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6758 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6759 (POP_FRAME): Define as ns32k_pop_frame.
6761 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6763 * ns32k-tdep.c (ns32k_register_byte_32082,
6764 ns32k_register_byte_32382, ns32k_register_raw_size,
6765 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6767 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6768 ns32k_register_byte_32382.
6769 * config/ns32k/tm-umax.h: Update copyright years.
6770 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6771 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6772 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6773 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6774 (ns32k_get_enter_addr): Fix prototype.
6776 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6778 * ns32k-tdep.c: Update copyright years.
6779 (ns32k_register_name_32082): New function.
6780 (ns32k_register_name_32382): Ditto.
6781 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6782 (REGISTER_NAME): Define as ns32k_register_name_32382.
6783 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6784 (REGISTER_NAME): Define as ns32k_register_name_32082.
6786 2002-05-24 Jim Blandy <jimb@redhat.com>
6788 * dwarf2read.c (free_line_header): Use xfree, not free.
6790 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6792 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6793 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6795 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6797 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6799 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6801 From Ross Alexander at NEC Europe:
6802 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6804 2002-05-23 Michael Snyder <msnyder@redhat.com>
6806 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6807 for input, rather than parse_and_eval_address.
6809 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6811 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6812 * Makefile.in (sim_d10v_h): Update definition.
6814 2002-05-24 Andrew Cagney <cagney@redhat.com>
6816 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6817 change `2002-05-22 Michael Snyder' below.
6818 (d10v_push_arguments): Ditto.
6819 (d10v_extract_return_value): Ditto.
6821 2002-05-23 Jim Blandy <jimb@redhat.com>
6823 * macrotab.c (check_for_redefinition): Don't complain if the new
6824 definition is the same as the previous one. Take more arguments
6825 to allow the comparison.
6826 (macro_define_object, macro_define_function): Pass more arguments
6827 to check_for_redefinition.
6829 2002-05-22 Michael Snyder <msnyder@redhat.com>
6831 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6832 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6833 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6834 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6835 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6836 Add a temp variable to save a call (and a memory read).
6837 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6838 if possible (so that PC_IN_CALL_DUMMY will work).
6840 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6842 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6844 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6846 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6848 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6849 (dwarf2_build_frame_info): Add offset to fde->initial_location
6850 so that frames of shared libraries are mapped correctly.
6851 (execute_stack_op): Change type of 'result' from ULONGEST to
6854 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6856 * config/alpha/tm-nbsd.h: Include solib.h.
6858 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6860 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6861 assumptions about the host's byte order.
6863 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6865 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6867 * alphanbsd-tdep.c: Include solib-svr4.h.
6868 * shnbsd-tdep.c: Ditto.
6870 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6872 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6873 nbsd-tdep.h to dependency list.
6874 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6875 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6876 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6877 nbsdaout.mh and nbsdelf.mh consistently.
6878 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6879 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6880 nbsdaout.mt and nbsdelf.mh consistently.
6881 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6882 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6883 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6884 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6885 a.out shared library stuff from here...
6886 * config/nm-nbsdaout.h: ...to here.
6887 * config/tm-nbsd.h: Remove.
6888 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6889 * config/arm/nbsd.mh: Remove.
6890 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6892 * config/arm/nbsdaout.mh: New file.
6893 * config/arm/nbsdelf.mh: New file.
6894 * config/arm/nm-nbsdaout.h: New file.
6895 * config/i386/nbsd.mh: Remove.
6896 * config/i386/nbsd.mt: Remove.
6897 * config/i386/nbsdaout.mh: New file.
6898 * config/i386/nbsdaout.mt: New file.
6899 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6900 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6901 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6902 i386_register_u_addr): Remove.
6903 * config/i386/nm-nbsdaout.h: New file.
6904 * config/i386/nm-nbsdelf.h: Remove.
6905 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6906 (USE_STRUCT_CONVENTION): Remove.
6907 * config/i386/tm-nbsdaout.h: New file.
6908 * config/i386/tm-nbsdelf.h: Remove.
6909 * config/m68k/nbsd.mh: Remove.
6910 * config/m68k/nbsd.mt: Remove.
6911 * config/m68k/nbsdaout.mh: New file.
6912 * config/m68k/nbsdaout.mt: New file.
6913 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6914 * config/m68k/nm-nbsdaout.h: New file.
6915 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6916 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6917 * config/ns32k/nbsd.mh: Remove.
6918 * config/ns32k/nbsd.mt: Remove.
6919 * config/ns32k/nbsdaout.mh: New file.
6920 * config/ns32k/nbsdaout.mt: New file.
6921 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6922 * config/ns32k/nm-nbsdaout.h: New file.
6923 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6924 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6925 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6926 (SVR4_SHARED_LIBS): Remove.
6927 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6928 * config/sparc/nbsd.mh: Remove.
6929 * config/sparc/nbsd.mt: Remove.
6930 * config/sparc/nbsdaout.mh: New file.
6931 * config/sparc/nbsdaout.mt: New file.
6932 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6933 * config/sparc/nbsdelf.mt: New file.
6934 * config/sparc/nm-nbsdaout.h: New file.
6935 * config/sparc/nm-nbsdelf.h: Remove.
6936 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6937 * config/sparc/tm-nbsdaout.h: New file.
6939 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6941 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6943 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6945 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6947 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6949 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6951 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6953 * NEWS: Note new MIPS NetBSD native configuration.
6954 * configure.host (mips*-*-netbsd*): New host.
6955 * configure.tgt (mips*-*-netbsd*): New target.
6956 * mipsnbsd-nat.c: New file.
6957 * mipsnbsd-tdep.c: New file.
6958 * mipsnbsd-tdep.h: New file.
6959 * config/mips/nbsd.mh: New file.
6960 * config/mips/nbsd.mt: New file.
6961 * config/mips/nm-nbsd.h: New file.
6962 * config/mips/tm-nbsd.h: New file.
6964 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6966 * Makefile.in (SFILES): Add osabi.c.
6967 (COMMON_OBS): Add osabi.o.
6968 (osabi.o): New dependency list.
6969 * osabi.c: New file.
6970 * osabi.h: New file.
6971 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6973 * Makefile.in (alpha_tdep_h): Define and use instead of
6975 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6976 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6978 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6979 * alpha-tdep.h: Include osabi.h.
6980 (alpha_abi): Remove.
6981 (gdbarch_tdep): Use generic OS ABI framework.
6982 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6983 gdbarch_register_osabi.
6984 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6985 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6986 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6988 * Makefile.in (sh_tdep_h): Add osabi.h.
6989 * sh-tdep.h (sh_osabi): Remove.
6990 (gdbarch_tdep): Use generic OS ABI framework.
6991 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6992 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6993 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6994 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6996 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6997 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6998 gdbarch_register_osabi.
6999 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7000 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7001 (get_elfosabi): Rename to...
7002 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7003 ABI framework support routines.
7004 (arm_gdbarch_init): Use generic OS ABI framework.
7005 (arm_dump_tdep): Likewise.
7006 (_initialize_arm_tdep): Likewise.
7007 * arm-tdep.h: Include osabi.h.
7009 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7011 (arm_gdbarch_register_os_abi): Remove prototype.
7012 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7013 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7015 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7016 * mips-tdep.c: Include osabi.h.
7017 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7020 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7022 * h8300-tdep.c: Fix formatting.
7024 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7026 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7027 printing vector registers.
7029 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7031 From Fernando Nasser:
7032 * remote.c (remote_async_open_1): Re-throw the exception when the
7034 (remote_cisco_open): Ditto.
7035 (remote_open_1): Ditto.
7037 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7039 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7040 (remote_start_remote): Add uiout parameter. Pass through to
7041 remote_start_remote_dummy.
7042 (remote_open_1): Use catch_exception instead of catch_errors.
7043 (remote_async_open_1): Ditto.
7044 (remote_cisco_open): Ditto.
7046 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7048 * remote.c (remote_start_remote): Replace PTR with void pointer.
7049 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7052 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7054 * gdb_indent.sh: Allow the script to be run in the sim directory.
7056 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7058 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7059 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7061 * corelow.c (core_open): Only call set_gdbarch_from_file if
7064 2002-05-17 Andrey Volkov <avolkov@transas.com>
7066 * h8300-tdep.c: Add support of EXR register
7067 * config/h8300/tm-h8300.h: Ditto.
7069 2002-05-17 Andrey Volkov <avolkov@transas.com>
7071 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7073 2002-05-17 Andrey Volkov <avolkov@transas.com>
7075 * h8300-tdep.c: Change literal regnums to REGNO.
7077 2002-05-17 Jim Blandy <jimb@redhat.com>
7079 * NEWS: Note addition of macro support.
7081 Expand preprocessor macros in C expressions.
7082 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7083 (scan_macro_expansion, scanning_macro_expansion,
7084 finished_macro_expansion): New function declarations.
7085 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7086 variable declarations.
7087 * parser-defs.h (expression_context_pc): New declaration.
7088 * parse.c (expression_context_pc): New variable.
7089 (parse_exp_1): Set expression_context_pc, as well as
7090 expression_context_block.
7091 * c-exp.y (yylex): If we're not already reading the result of a
7092 macro expansion, try to macro-expand the next token. When we're
7093 done scanning a macro expansion, switch back to the mainline text.
7094 Commas and `if's in a macro's expansion don't terminate the input.
7095 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7096 (macro_original_text, macro_expanded_text,
7097 expression_macro_lookup_func, expression_macro_lookup_baton): New
7099 (scan_macro_expansion, scanning_macro_expansion,
7100 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7101 c_preprocess_and_parse): New functions.
7102 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7103 c_preprocess_and_parse, instead of c_parse.
7104 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7105 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7107 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7109 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7110 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7111 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7113 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7115 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7117 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7119 * Makefile.in (sh_tdep_h): Define and use.
7120 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7121 register enum): Move to...
7122 * * sh-tdep.h: ...here.
7123 * sh-tdep.c: Include sh-tdep.h.
7124 * sh3-rom.c: Likewise.
7125 * shnbsd-tdep.c: Likewise.
7127 2002-05-16 Michael Snyder <msnyder@redhat.com>
7129 * arm-tdep.c: Spelling fix in comment.
7131 2002-05-16 Jim Blandy <jimb@redhat.com>
7133 Add commands for manually expanding macros and showing their
7135 * macrocmd.c, macroscope.c, macroscope.h: New files.
7136 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7137 (macroscope_h): New variable.
7138 (HFILES_NO_SRCDIR): Add macroscope.h.
7139 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7140 (macroscope.o, macrocmd.o): New rules.
7142 Teach the Dwarf 2 reader to read macro information.
7143 * dwarf2read.c: #include "macrotab.h".
7144 (dwarf_macinfo_buffer): New variable.
7145 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7147 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7148 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7149 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7150 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7151 dwarf2_macro_spaces_in_definition): New complaints.
7152 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7153 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7154 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7155 the partial symbol table.
7156 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7157 from what's recorded in the partial symbol table.
7158 (read_file_scope): If the compilation unit has a
7159 `DW_AT_macro_info' attribute, read its macro information.
7160 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7162 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7165 * ser-tcp.c: Don't include <netinet/udp.h>.
7167 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7169 * MAINTAINERS: Update my email address.
7171 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7173 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7174 include file of the same name.
7176 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7178 * configure.tgt: Mark v850 as multi-arched.
7179 * config/v850/tm-v850.h: Remove file.
7180 * config/v850/v850.mt: Eliminate TM_FILE.
7182 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7184 * v850-tdep.c: Full multi-arch.
7185 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7186 Define GDB_MULTI_ARCH to 2.
7188 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7190 * p-exp.y (current_type): New static variable.
7191 Carries the type of the expression at the position that is parsed.
7192 (push_current_type, pop_current_type): Two new functions. Used
7193 to store/restore current_type in expression on specific tokens.
7194 (search_field): New static variable. Set to one after parsing a point
7195 as at that point only a FIELDNAME token should be searched.
7196 (FIELDNAME): New token. After a point only a token belonging to
7197 current_type type definition is allowed.
7198 (all over token rules): reset and change current_type according
7200 (exp '[' rule): insert implicit array index field if
7201 exp is a pascal string type.
7203 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7205 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7206 frame info. Use frame_info's saved_regs instead of matching member
7207 in extra_frame_info throughout.
7208 (v850_frame_init_saved_regs): New function.
7209 (v850_init_extra_frame_info): Move most functionality into
7210 v850_frame_init_saved_regs().
7211 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7212 (v850_frame_find_saved_regs): Remove declaration.
7213 (FRAME_FIND_SAVED_REGS): Remove definition.
7214 (v850_frame_init_saved_regs): Add declaration.
7215 (FRAME_INIT_SAVED_REGS): Add definition.
7217 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7219 * v850-tdep.c: Begin multi-arch'ing v850.
7220 (v850_target_architecture_hook): Remove function.
7221 (v850_gdbarch_init): New function. Add code previously in
7222 v850_target_architecture_hook().
7223 (_initialize_v850_tdep): Don't set target_architecture_hook.
7224 Call register_gdbarch_init() instead.
7226 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7228 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7229 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7230 (fixup_class_method_type): Likewise.
7232 2002-05-15 Jim Blandy <jimb@redhat.com>
7234 Add macro structures to GDB's symbol tables. Nobody puts anything
7236 * symtab.h (struct symtab): New member: `macro_table'.
7237 * buildsym.h (pending_macros): New global variable.
7238 * buildsym.c: #include "macrotab.h".
7239 (buildsym_init): Initialize `pending_macros'.
7240 (end_symtab): If we found macro information while reading a CU's
7241 debugging info, do build a symtab structure for it. Make the
7242 symtab point to the macro information, and clear the
7243 `pending_macros' pointer which held it while we were reading the
7245 (really_free_pendings): Free any pending macro table.
7246 * objfiles.h (struct objfile): New member: `macro_cache'.
7247 * objfiles.c (allocate_objfile): Set allocate and free functions
7248 for the macro cache's objstack.
7249 (free_objfile): Empty the macro cache's obstack.
7250 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7251 set new allocate and free functions for it.
7252 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7253 free functions for the macro cache's objstack. (Why is this
7254 function building its own objfile?)
7255 * symmisc.c (print_objfile_statistics): Print statistics on the
7257 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7259 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7261 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7262 (REGISTER_U_ADDR): Delete definition.
7263 (arm_register_u_addr): Delete declaration.
7265 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7267 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7268 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7270 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7272 * regcache.c (register_valid): Revise comments refering to "Not
7273 available" and "unavailable".
7274 * frame.c (frame_register_read): Ditto.
7275 * findvar.c (value_of_register): Ditto.
7277 2002-05-15 Andrew Cagney <cagney@redhat.com>
7279 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7280 (remote-sim.o): Update dependencies.
7281 (d10v-tdep.o): Specify dependencies.
7282 (sim_d10v_h): Define.
7284 2002-05-14 Jim Blandy <jimb@redhat.com>
7286 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7287 * macrotab.c (macro_lookup_inclusion, find_definition,
7288 new_macro_table): Same.
7290 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7291 not `! strcmp ()'. This is a dubious improvement.
7292 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7294 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7295 although it's not necessary, to avoid a warning.
7297 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7299 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7300 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7301 TYPE_INSTANCE_FLAGS.
7302 (struct main_type): New.
7303 (struct type): Move most members to struct main_type. Change
7304 cv_type and as_type to new type_chain member. Add instance_flags.
7305 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7306 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7307 (finish_cv_type): Remove prototype.
7308 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7310 (alloc_type_instance): New function.
7311 (smash_type): New function.
7312 (make_pointer_type, make_reference_type, make_function_type)
7313 (smash_to_member_type, smash_to_method_type): Call smash_type.
7314 (make_qualified_type): New function.
7315 (make_type_with_address_space): Call make_qualified_type.
7316 (make_cv_type): Likewise.
7317 (finish_cv_type): Remove unnecessary function.
7318 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7319 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7320 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7321 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7322 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7323 * hpread.c (hpread_read_struct_type): Likewise.
7324 * stabsread.c (read_struct_type): Likewise.
7326 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7328 * configure.tgt: Add a catch all sh* target, for cases like
7329 sh[2,3,4]-elf and sh-hms.
7331 2002-05-14 Keith Seitz <keiths@redhat.com>
7333 * event-loop.c (create_file_handler): Don't do anything but
7334 update data when we are given a fd which we are already
7337 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7339 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7340 (update_context): Use __func__ in warnings.
7342 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7344 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7345 and tcp_close to net_open and net_close.
7346 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7347 using UDP if requested. Don't try to disable Nagle on UDP
7349 * remote.c (remote_serial_open): New function. Warn about UDP.
7350 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7352 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7354 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7356 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7358 * configure.tgt: Remove sh-hms target.
7359 * MAINTAINERS: Don't list sh-hms as a separate target.
7361 2002-05-13 Jim Blandy <jimb@redhat.com>
7363 Add first preprocessor macro-expansion files.
7364 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7365 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7366 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7367 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7368 (COMMON_OBS): Add macrotab.o, macroexp.o.
7369 (macroexp.o, macrotab.o): New rules.
7371 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7373 * config/m88k/tm-m88k.h: Update copyright.
7374 (m88k_target_write_pc): Declare
7375 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7376 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7377 (SHIFT_INST_REGS): Update definition.
7378 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7379 using old definition of TARGET_WRITE_PC.
7380 * regcache.c (generic_target_write_pc): Delete code handling
7382 * gdbarch.sh (NNPC_REGNUM): Delete.
7383 * gdbarch.h, gdbarch.c: Regenerate.
7385 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7387 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7390 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7392 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7393 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7394 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7396 * c-typeprint.c (cp_type_print_method_args): Likewise.
7397 (c_type_print_args): Likewise.
7398 * d10v-tdep.c (d10v_push_arguments): Likewise.
7399 (d10v_extract_return_value): Likewise.
7400 * expprint.c (print_subexp): Likewise.
7401 * gdbtypes.c (lookup_primitive_typename): Likewise.
7402 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7403 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7404 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7405 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7406 (TYPE_VECTOR): Likewise.
7407 * hpread.c (hpread_read_struct_type)
7408 (fix_static_member_physnames, fixup_class_method_type)
7409 (hpread_type_lookup): Likewise.
7410 * mdebugread.c (parse_symbol, parse_type): Likewise.
7411 * p-lang.c (is_pascal_string_type): Likewise.
7412 * valops.c (hand_function_call): Likewise.
7413 * x86-64-tdep.c (classify_argument): Likewise.
7415 * hpread.c (hpread_read_function_type)
7416 (hpread_read_doc_function_type): Call replace_type.
7417 * dstread.c (create_new_type): Delete.
7418 (decode_dst_structure, process_dst_function): Call alloc_type.
7419 Use type access macros.
7421 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7423 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7424 the're not supported by the current architecture.
7425 (i387_fill_fxsave): Likewise.
7427 2002-05-12 Fred Fish <fnf@redhat.com>
7429 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7430 sect_index_xxx members to index the first slot in section_offsets
7431 if all of the section_offsets are zero.
7433 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7435 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7436 checked in with last change.
7438 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7440 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7441 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7444 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7446 * Makefile.in: Update dependencies.
7448 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7450 * language.c (local_hex_string_custom): Simplify. Do not depend
7451 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7453 * memattr.c (mem_info_command): Replace calls to
7454 longest_local_hex_string and longest_local_hex_string_custom.
7455 * buildsym.c (make_blockvector): Ditto.
7456 * solib.c (info_sharedlibrary_command): Ditto.
7457 * tracepoint.c (tracepoints_info): Ditto.
7458 * symtab.c (print_msymbol_info): Ditto.
7460 * language.c (local_hex_string): Delete.
7461 (local_hex_string_custom): Delete.
7462 (longest_local_hex_string): Rename to local_hex_string.
7463 (longest_local_hex_string_custom): Rename to
7464 local_hex_string_custom.
7465 * language.h (local_hex_string): Change parameter type to LONGEST.
7466 (local_hex_string_custom): Ditto.
7467 (longest_local_hex_string): Delete declaration.
7468 (longest_local_hex_string_custom): Ditto.
7470 * solib.c: Update copyright.
7471 * memattr.c: Update copyright.
7473 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7475 * arch-utils.h (legacy_register_to_value): Declare.
7476 (legacy_value_to_register): Declare.
7477 (legacy_convert_register_p): Declare.
7478 * arch-utils.c (legacy_register_to_value): New function.
7479 (legacy_value_to_register): New function.
7480 (legacy_convert_register_p): New function.
7482 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7483 (VALUE_TO_REGISTER): Define.
7484 (CONVERT_REGISTER_P): Define.
7485 * gdbarch.h, gdbarch.c: Regenerate.
7487 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7489 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7492 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7493 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7495 * Makefile.in: Update dependencies for valops.c.
7496 * valops.c: Include "gdb_assert.h".
7497 (typecmp): Skip THIS parameter to methods.
7498 (find_method_list): Remove static_memfuncp argument,
7499 update callers. Check for stub methods.
7500 (find_value_oload_method_list): Don't set *static_memfuncp.
7501 (find_overload_match): Don't check for stub methods. Assert
7502 that methods are not stubbed. Handle static methods.
7503 (value_find_oload_method_list): Remove static_memfuncp argument.
7504 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7505 to the argument list for static stub methods.
7506 * value.h (value_find_oload_method_list): Update prototype.
7508 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7510 * arch-utils.h (generic_register_size): Declare.
7511 (generic_register_raw_size, generic_register_virtual_size): Delete
7513 * arch-utils.c (generic_register_raw_size): Delete.
7514 (generic_register_size): New function.
7515 (generic_register_virtual_size): Delete.
7517 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7518 default generic_register_size.
7519 * gdbarch.h, gdbarch.c: Re-generate.
7521 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7522 register_virtual_size.
7523 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7524 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7526 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7528 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7529 * gdbarch.h, gdbarch.c: Regenerate.
7530 * gnu-v3-abi.c: Update copyright.
7531 (vtable_address_point_offset): Update.
7532 (gnuv3_rtti_type): Update.
7533 (gnuv3_baseclass_offset): Update.
7534 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7535 (init_fetch_link_map_offsets): Update.
7536 * remote.c (get_remote_state): Update.
7538 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7540 * TODO: Remove value_headof/value_from_vtable_info comment.
7541 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7542 * values.c (value_headof, value_from_vtable_info): Delete.
7543 * value.h (value_from_vtable_info): Delete prototype.
7545 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7547 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7548 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7550 (gdb_assert_h): Define.
7551 (gdb_wait_h): Define.
7552 (gdb_regex_h): Define.
7554 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7556 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7557 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7559 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7561 * nbsd-tdep.c: Fix comment.
7563 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7565 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7566 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7567 (nbsd-tdep.o): New dependency list.
7568 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7570 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7571 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7572 * nbsd-tdep.c: New file.
7573 * nbsd-tdep.h: New file.
7574 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7576 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7577 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7578 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7579 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7581 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7583 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7584 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7585 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7586 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7587 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7588 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7590 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7592 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7593 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7594 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7595 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7596 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7597 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7598 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7600 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7602 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7603 fetch_elfcore_registers to...
7604 * i386nbsd-tdep.c: ...here.
7605 (i386nbsd_use_struct_convention): Rename to...
7606 (i386nbsd_aout_use_struct_convention): ...this.
7607 (i386nbsd_supply_reg): New function.
7608 (i386nbsd_fill_reg): New function.
7609 (fetch_core_registers): Use i386nbsd_supply_reg.
7610 (fetch_elfcore_registers): Likewise.
7611 (_initialize_i386nbsd_tdep): New function.
7612 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7613 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7614 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7615 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7616 (i386nbsd_aout_use_struct_convention): ...this.
7618 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7620 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7621 (store_inferior_registers): Use shnbsd_fill_reg.
7622 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7623 sh_nbsd_supply_register): Collapse into...
7624 (shnbsd_supply_reg): ...this.
7625 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7626 (shnbsd_fill_reg): ...this.
7627 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7628 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7629 (fetch_core_registers): Use shnbsd_supply_reg.
7630 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7631 (sh_nbsd_core_fns): Rename to...
7632 (shnbsd_core_fns): ...this.
7633 (sh_nbsd_elfcore_fns): Rename to...
7634 (shnbsd_elfcore_fns): ...this.
7635 (sh_nbsd_init_abi): Rename to...
7636 (shnbsd_init_abi): ...this.
7637 (_initialize_sh_nbsd_tdep): Rename to...
7638 (_initialize_shnbsd_tdep): ...this.
7639 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7640 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7641 sh_nbsd_fill_register): Remove prototypes.
7642 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7644 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7646 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7647 (i387-nat.o): Delete dependency list.
7648 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7649 (x86-64-linux-nat.o): Likewise.
7650 * i387-nat.c: Delete file, moving contents to...
7651 * i387-tdep.c: ...here.
7652 * i387-nat.h: Rename...
7653 * i387-tdep.h: ...to this.
7654 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7655 * i386-linux-nat.c: Likewise.
7656 * i386bsd-nat.c: Likewise.
7657 * i386gnu-nat.c: Likewise.
7658 * i386nbsd-nat.c: Likewise.
7659 * i386v4-nat.c: Likewise.
7660 * x86-64-linux-nat.c: Likewise.
7661 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7662 * config/i386/go32.mh (NATDEPFILES): Likewise.
7663 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7664 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7665 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7666 * config/i386/linux.mh (NATDEPFILES): Likewise.
7667 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7668 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7669 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7670 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7672 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7674 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7675 (alphanbsd-nat.o): Remove dependency list.
7676 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7677 * alphanbsd-nat.c: Delete. Contents moved to...
7678 * alphanbsd-tdep.c: ...here.
7679 (_initialize_alphanbsd_tdep): Register core functions.
7680 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7682 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7684 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7685 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7686 (alphanbsd-nat.o): Likewise.
7687 (alphabsd-tdep.o): New dependency list.
7688 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7689 (fill_gregset): Use alphabsd_fill_reg.
7690 (supply_fpregset): Use alphabsd_supply_fpreg.
7691 (fill_fpregset): Use alphabsd_fill_fpreg.
7692 (fetch_inferior_registers): Use struct reg and struct fpreg
7693 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7694 and alphabsd_supply_fpreg.
7695 (store_inferior_registers): Use struct reg and struct fpreg
7696 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7697 and alphabsd_fill_fpreg.
7698 * alphabsd-tdep.c: New file.
7699 * alphabsd-tdep.h: New file.
7700 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7701 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7702 alphabsd_supply_fpreg.
7703 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7704 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7706 2002-05-11 Eric Christopher <echristo@redhat.com>
7708 * mips-tdep.c (mips_double_register_type): Fix thinko.
7709 (mips_single_register_type): Ditto.
7710 * MAINTAINERS: Add self.
7712 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7714 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7715 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7716 right thing on architectures with different endianness and/or
7719 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7721 From Christian Limpach <chris@Pin.LU>
7722 * configure.in: Change sed expression which comments out
7723 NATDEPFILES to also comment out continuation lines.
7724 * configure: Regenerate.
7726 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7728 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7731 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7733 * sh-tdep.c: Include correct file.
7735 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7737 New support for sh64-elf (sh5) target.
7739 * configure.tgt: For sh64-elf target, default to sh-elf.
7741 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7742 (struct gdbarch_tdep): Add new fields for new registers and ABI
7745 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7746 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7747 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7748 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7749 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7750 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7751 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7752 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7753 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7754 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7755 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7756 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7757 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7758 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7759 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7760 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7761 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7762 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7763 sign_extend, sh64_nofp_frame_init_saved_regs,
7764 sh64_init_extra_frame_info, sh64_get_saved_register,
7765 sh64_extract_struct_value_address, sh64_pop_frame,
7766 sh64_push_arguments, sh64_extract_return_value,
7767 sh64_store_return_value, sh64_show_media_regs,
7768 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7769 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7770 sh_sh64_register_virtual_type,
7771 sh_sh64_register_convert_to_virtual,
7772 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7773 sh64_register_read, sh64_pseudo_register_write,
7774 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7775 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7776 sh64_do_pseudo_register, sh_compact_do_registers_info,
7777 sh64_do_registers_info, sh_gdbarch_init): New functions.
7779 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7781 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7783 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7785 * linespec.c (decode_line_1): Check for a double quote after
7786 a filename correctly.
7788 2002-05-10 Jim Blandy <jimb@redhat.com>
7790 Properly track the size of the current objfile's .debug_line section.
7791 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7792 (DWARF_LINE_SIZE): New macro.
7793 (dwarf2_build_psymtabs_hard): Record the line section's size in
7794 the partial symbol table.
7795 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7798 2002-05-10 Petr Sorfa <petrs@caldera.com>
7800 * ia64-tdep.c: Handle breakpoints on L instruction type
7801 in MLX instruction bundle by moving the breakpoint to
7802 the third slot (X instruction type) as L holds only data.
7804 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7806 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7807 (process_one_symbol): Complain about discarding local symbols
7808 due to a misplaced N_LBRAC entry.
7810 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7812 From Daniel Berlin <dan@cgsoftware.com>
7813 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7814 decrease the depth we are at, in the case of templates.
7816 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7818 * mips-tdep.c (mips_float_register_type): New function.
7819 (mips_double_register_type): New function.
7820 (mips_print_register): Use them.
7821 (do_fp_register_row): Likewise.
7823 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7825 * signals/signals.c (signals): Remove conditional compilation around
7826 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7827 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7829 2002-05-09 Michael Snyder <msnyder@redhat.com>
7831 * remote-rdp.c (remote_rdp_can_run): Remove.
7833 2002-05-09 Tom Tromey <tromey@redhat.com>
7835 * jv-valprint.c (java_val_print): Handle `char' as a special case
7838 2002-05-09 Michael Snyder <msnyder@redhat.com>
7840 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7841 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7842 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7843 str r(0123),[sp,#nn].
7844 (arm_skip_prologue): Ditto. Also make disassembly
7845 order-independent by placing it in a loop.
7847 2002-05-06 Michael Snyder <msnyder@redhat.com>
7849 * stabsread.c (read_type): Add recognition for new attribute:
7850 "@V;" means that an array type is actually a vector.
7851 This is analogous to the vector flag that's been added to dwarf2.
7853 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7855 * i386-tdep.h (i386_abi): New enum.
7856 (struct gdbarch_tdep): Replace os_ident member with abi.
7857 (i386_gdbarch_register_os_abi): New prototype.
7858 * i386-tdep.c (i386_abi_names): New array.
7859 (process_note_abi_tag_sections): Removed.
7860 (process_note_sections): New function.
7861 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7862 (struct i386_abi_handler): New struct.
7863 (i386_abi_handler_list): New variable.
7864 (i386_gdbarch_register_os_abi): New function.
7865 (i386_gdbarch_init): Adapt for the changes given above.
7867 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7869 * gregset.h: Say "GNU/Linux".
7871 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7873 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7874 (build_gdbtypes): Build builtin_type_v2_float.
7875 (_initialize_gdbtypes): Register new builtin type.
7877 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7879 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7880 (clear_gdbarch_swap): New function.
7881 (initialize_non_multiarch): Call.
7882 (gdbarch_update_p): Before calling init(), swap out and clear the
7883 existing architecture.
7884 * gdbarch.c: Regenerate.
7886 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7888 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7891 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7893 * sh-nbsd-nat.c: Rename to...
7894 * shnbsd-nat.c: ...this.
7895 * sh-nbsd-tdep.c: Rename to...
7896 * shnbsd-tdep.c: ...this.
7897 * sh-nbsd-tdep.h: Rename to...
7898 * shnbsd-tdep.h: ...this.
7899 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7900 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7902 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7904 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7905 concatenation for command help messages.
7907 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7909 * NEWS: Note new sh*-*-netbsdelf* configuration.
7910 * configure.host: Set gdb_host_cpu to sh for all sh*.
7911 (sh*-*-netbsdelf*): New host.
7912 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7913 (sh*-*-netbsdelf*): New target.
7914 * sh-nbsd-nat.c: New file.
7915 * sh-nbsd-tdep.c: New file.
7916 * sh-nbsd-tdep.h: New file.
7917 * config/sh/nbsd.mh: New file.
7918 * config/sh/nbsd.mt: New file.
7919 * config/sh/nm-nbsd.h: New file.
7920 * config/sh/tm-nbsd.h: New file.
7922 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7924 * sh-tdep.c (sh_osabi_names): Declare.
7925 (process_note_abi_tag_sections): New function.
7926 (get_elfosabi): Ditto.
7927 (sh_gdbarch_register_os_abi): Ditto.
7928 (sh_dump_tdep): Ditto.
7929 _initialize_sh_tdep): Use gdbarch_register to register
7930 sh_gdbarch_init and sh_dump_tdep.
7931 * config/sh/tm-sh.h (sh_osabi): Declare.
7932 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7934 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7936 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7937 (thumb_scan_prologue): Ditto.
7938 (arm_find_callers_reg): Ditto.
7939 (arm_frame_chain): Ditto.
7940 (arm_init_extra_frame_info): Ditto.
7941 (arm_frame_saved_pc): Ditto.
7942 (arm_pop_frame): Ditto.
7943 (arm_push_return_address): New function.
7944 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7945 call_dummy_location, call_dummy_breakpoint_offset_p,
7946 call_dummy_breakpoint_offset, call_dummy_p,
7947 call_dummy_stack_adjust_p, call_dummy_words,
7948 sizeof_call_dummy_words, call_dummy_start_offset,
7949 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7950 call_dummy_address, push_return_address and push_dummy_frame for
7951 generic dummy frames.
7953 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7955 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7956 size computation for alloca.
7957 (sh_fp_frame_init_saved_regs): Likewise.
7959 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7961 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7962 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7963 * arm-tdep.c (arm_store_return_value): Use them.
7964 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7965 * remote-rdp.c (remote_rdp_fetch_register): Use
7966 ARM_MAX_REGISTER_RAW_SIZE.
7967 (remote_rdp_store_register): Likewise.
7969 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7971 * dwarf2cfi.c: Code cleanup, removed unused variables,
7972 added default labels to switch {} statements.
7973 * x86-64-tdep.c: Ditto.
7974 * x86-64-linux-nat.c: Ditto.
7976 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7978 * solib.h: Protect against multiple inclusion.
7980 2002-05-06 Jim Blandy <jimb@redhat.com>
7982 Add first preprocessor macro-expansion files.
7983 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7984 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7985 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7986 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7987 (COMMON_OBS): Add macrotab.o, macroexp.o.
7988 (macroexp.o, macrotab.o): New rules.
7990 Separate the job of reading the line number info statement program
7991 header (...expialidocious) out into its own function.
7992 * dwarf2read.c (struct line_head, struct filenames, struct
7993 directories): Replace with...
7994 (struct line_header): New structure, containing the full
7995 contents of the statement program header, including the
7996 include directory and file name tables.
7997 (read_file_scope): If we have line number info, instead of just
7998 calling dwarf_decode_lines to do all the work, call
7999 dwarf_decode_line_header first to get a `struct line_header'
8000 containing the data in the statement program header, and then
8001 pass that to dwarf_decode_lines, which will pick up where that
8002 left off. Be sure to clean up the `struct line_header' object.
8003 (dwarf_decode_line_header, free_line_header, add_include_dir,
8004 add_file_name): New functions.
8005 (dwarf_decode_lines): Move all the code to read the statement
8006 program header into dwarf_decode_line_header. Take the line
8007 header it built as the first argument, instead of the offset to
8008 the compilation unit's line number info. Use the new `struct
8009 line_header' type instead of the old structures. No need to do
8010 cleanups here now, since we don't allocate anything.
8011 (dwarf2_statement_list_fits_in_line_number_section,
8012 dwarf2_line_header_too_long): New complaints.
8014 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8016 * gdbtypes.c (init_vector_type): New function.
8017 (build_builtin_type_vec128): Simplify the representation of SIMD
8019 (build_gdbtypes): Initialize new builtin vector types.
8020 (_initialize_gdbtypes): Register new vector types with gdbarch.
8021 (builtin_type_v4_float, builtin_type_v4_int32,
8022 builtin_type_v8_int16, builtin_type_v16_int8,
8023 builtin_type_v2_int32, builtin_type_v4_int16,
8024 builtin_type_v8_int8): New (renamed) SIMD types.
8026 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8028 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8029 (i387_fill_fxsave): Likewise.
8031 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8033 * alpha-tdep.c (alpha_extract_return_value): Don't use
8034 non-constant array size in prototype.
8036 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8038 From Brian Taylor <briant at model dot com>:
8039 * ui-out.c (ui_out_field_core_addr): Use the function
8040 longest_local_hex_string_custom'to format addresses > 32 bits
8043 * ui-out.c (ui_out_field_core_addr): Update comment.
8045 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8047 * stack.c (select_and_print_frame): Make static. Delete the
8049 (func_command): Update call.
8050 (select_frame_command): Delete code computing the frame level.
8051 * frame.h (select_and_print_frame): Delete declaration.
8053 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8055 * sparc-tdep.c (sparc_get_saved_register): Comment why
8056 get_prev_frame call is safe.
8058 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8060 * frame.h (select_frame): Delete level parameter.
8061 * stack.c (select_frame): Update. Use frame_relative_level to
8062 obtain the frame's level.
8063 (select_and_print_frame): Update call.
8064 (select_frame_command): Ditto.
8065 (up_silently_base): Ditto.
8066 (down_silently_base): Ditto.
8067 * ocd.c (ocd_start_remote): Ditto.
8068 * remote-rdp.c (remote_rdp_open): Ditto.
8069 * remote-mips.c (mips_initialize): Ditto.
8070 (common_open): Ditto.
8071 * remote-e7000.c (e7000_start_remote): Ditto.
8072 * m3-nat.c (select_thread): Ditto.
8073 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8074 (child_get_current_exception_event): Ditto.
8075 * varobj.c (varobj_create): Ditto.
8076 (varobj_update): Ditto.
8077 (c_value_of_root): Ditto.
8078 * tracepoint.c (finish_tfind_command): Ditto.
8079 * corelow.c (core_open): Ditto.
8080 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8081 * thread.c (info_threads_command): Ditto.
8082 (switch_to_thread): Ditto.
8083 * infrun.c (normal_stop): Ditto.
8084 (restore_selected_frame): Ditto.
8085 (restore_inferior_status): Ditto.
8086 * breakpoint.c (insert_breakpoints): Ditto.
8087 (watchpoint_check): Ditto.
8088 (bpstat_stop_status): Ditto.
8089 (do_enable_breakpoint): Ditto.
8090 * blockframe.c (flush_cached_frames): Ditto.
8091 (reinit_frame_cache): Ditto.
8093 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8095 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8098 2002-05-04 Jim Blandy <jimb@redhat.com>
8100 * gdbtypes.c (replace_type): Doc fix.
8102 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8104 * valprint.c (strcat_longest): Delete commented out function.
8107 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8109 * MAINTAINERS: Mark a29k as deleted.
8110 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8111 Move new configurations to the top.
8112 * configure.tgt: Remove a29k.
8113 * config/a29k/tm-vx29k.h: Delete.
8114 * config/a29k/vx29k.mt: Delete.
8115 * config/a29k/tm-a29k.h: Delete.
8116 * config/a29k/a29k-udi.mt: Delete.
8117 * config/a29k/a29k.mt: Delete.
8118 * a29k-tdep.c: Delete.
8119 * remote-udi.c: Delete.
8120 * remote-mm.c: Delete.
8121 * remote-eb.c: Delete.
8122 * remote-adapt.c: Delete.
8123 * Makefile.in: Remove obsolete code.
8124 * config/s390/s390x.mt: Ditto.
8125 * config/s390/s390.mt: Ditto.
8126 * config/sparc/sparclynx.mh: Ditto.
8127 * config/sparc/linux.mh: Ditto.
8128 * config/pa/hppaosf.mh: Ditto.
8129 * config/pa/hppabsd.mh: Ditto.
8130 * config/ns32k/nbsd.mt: Ditto.
8131 * config/mips/vr5000.mt: Ditto.
8132 * config/m68k/sun3os4.mh: Ditto.
8133 * config/m68k/nbsd.mt: Ditto.
8134 * config/m68k/m68klynx.mh: Ditto.
8135 * config/m32r/m32r.mt: Ditto.
8136 * config/i386/x86-64linux.mt: Ditto.
8137 * config/i386/nbsdelf.mt: Ditto.
8138 * config/i386/nbsd.mt: Ditto.
8139 * config/i386/i386lynx.mh: Ditto.
8141 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8143 * target.c (debug_print_register): New function. Handle oversize
8145 (debug_to_fetch_registers): Call.
8146 (debug_to_store_registers): Call.
8148 2002-05-03 Jim Blandy <jimb@redhat.com>
8150 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8151 (read_type): Doc fix.
8152 * gdbtypes.c (replace_type): Doc fix.
8154 * stabsread.c (multiply_defined_struct): New complaint.
8155 (read_struct_type): If the type we were passed isn't empty, or
8156 incomplete, don't read the new struct type into it; complain,
8157 and return the original type unchanged. Take a new `type_code'
8158 argument, which is the type code for the new type.
8159 (read_type): Rather than storing the type's type code here, pass
8160 it as an argument to read_struct_type, and let that take care of
8161 storing it. That way, we don't overwrite the original type code,
8162 so read_struct_type can use it to decide whether we're overwriting
8163 something we shouldn't.
8164 (complain_about_struct_wipeout): New function.
8166 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8168 * gdbarch.sh: Assert that gdbarch is non-NULL.
8169 * gdbarch.c: Regenerate.
8171 2002-05-03 Jason Merrill <jason@redhat.com>
8173 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8176 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8178 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8179 (x86_64_dwarf2gdb_regno_map_length),
8180 (x86_64_dwarf2_reg_to_regnum): Added.
8181 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8182 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8183 (_initialize_x86_64_tdep): Synced with the change above.
8184 (x86_64_skip_prologue): Reformulated message.
8186 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8188 * f-exp.y: Also use new prev_lexptr variable
8189 to improve error reporting. Based on Michael Snyder
8190 2002-04-24 dated patch to c-exp.y.
8191 * jv-exp.y: Likewise.
8192 * m2-exp.y: Likewise.
8194 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8196 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8197 we are dealing with vectors.
8199 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8201 * config/m68k/tm-nbsd.h: Obvious fix,
8202 correct machine name.
8204 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8206 * p-typeprint.c (pascal_type_print_base): Add support
8207 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8209 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8211 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8212 for fondamental pascal 'char' type.
8214 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8216 * p-lang.h (is_pascal_string_type): Declaration changed,
8217 new sixth argument of type char ** added.
8218 * p-lang.c (is_pascal_string_type): Implementation
8219 changed. Args length_pos, length_size, string_pos, char_size
8220 can now be NULL. New argument arrayname set to the field
8221 name of the char array. Return value set to char array
8222 field index plus one.
8223 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8224 is_pascal_string_type function.
8226 2002-05-02 Andrew Cagney <cagney@redhat.com>
8228 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8229 <cagney@redhat.com> change.
8230 * gdbarch.c: Regenerate.
8232 2002-05-02 Andrew Cagney <cagney@redhat.com>
8234 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8235 before probing for a new one. Detect errorenous gdbarch_init
8237 * gdbarch.c: Regenerate.
8239 2002-05-01 Andrew Cagney <cagney@redhat.com>
8241 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8242 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8243 * config/v850/tm-v850.h: Ditto. Update copyright.
8245 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8247 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8250 2002-04-30 Michael Snyder <msnyder@redhat.com>
8252 * arm-tdep.c: Whitespace clean-ups.
8253 (arm_skip_prologue): Fix thinko; two lines
8254 should have been removed as part of 4/24 change.
8256 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8258 * rs6000-tdep.c: Added comment describing how fpscr register
8259 numbers were chosen.
8261 2002-04-30 Michael Snyder <msnyder@redhat.com>
8263 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8265 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8267 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8268 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8269 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8271 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8273 From Louis Hamilton <hamilton@redhat.com>:
8274 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8275 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8276 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8277 not bfd-private xcoff data, to determine wordsize.
8278 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8280 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8282 GDB 5.2 released from 5.2 branch.
8284 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8286 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8287 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8288 (x86_64_register_info_table): Added comments with register numbers.
8290 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8292 * rs6000-tdep.c (rs6000_extract_return_value,
8293 rs6000_store_return_value): Handle returning vectors.
8294 (rs6000_gdbarch_init): Use
8295 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8296 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8298 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8300 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8301 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8303 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8305 * hpread.c (hpread_psymtab_to_symtab_1,
8306 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8307 with fprintf_unfiltered (gdb_stderr,...).
8309 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8311 * remote-array.c (printf_monitor, write_monitor,
8312 array_insert_breakpoint, array_remove_breakpoint ):
8313 Replace fprintf (stderr,...
8314 with fprintf_unfiltered (gdb_stderr,....
8315 * remote-es.c: Likewise.
8316 * remote-os9k.c: Likewise.
8317 * remote-st.c: Likewise.
8319 2002-04-28 Andreas Schwab <schwab@suse.de>
8321 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8322 linux-proc.o and gcore.o.
8324 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8326 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8327 code without frame pointers.
8329 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8331 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8334 2002-04-26 Ben Elliston <bje@redhat.com>
8336 * target.c (do_xfer_memory): Correct reference to the new option
8337 "trust-readonly-sections".
8339 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8341 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8342 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8343 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8345 (read_array_type): Record the fact that this array type is really a
8346 vector (i.e. are passed in by value).
8348 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8350 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8351 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8352 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8353 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8354 * alpha-linux-tdep.c: Include frame.h.
8355 (alpha_linux_sigcontext_addr): New function.
8356 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8357 alpha_linux_sigcontext_addr.
8358 * alpha-osf1-tdep.c: Include gdbcore.h.
8359 (alpha_osf1_sigcontext_addr): New function.
8360 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8361 alpha_osf1_sigcontext_addr.
8362 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8363 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8365 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8367 * stack.c (selected_frame_level):
8368 (select_frame): Do not set selected_frame_level.
8369 * frame.h (selected_frame_level): Delete declaration.
8371 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8373 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8374 convert_from_func_ptr-addr when AIX / PowerOpen.
8376 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8378 * valops.c (hand_function_call): Call
8379 generic_save_call_dummy_addr.
8380 * frame.h (generic_save_call_dummy_addr): Declare.
8381 * blockframe.c (struct dummy_frame): Add fields call_lo and
8383 (generic_find_dummy_frame): Check for PC in range call_lo to
8384 call_hi instead of entry_point_address.
8385 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8386 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8387 (generic_save_call_dummy_addr): New function.
8389 2002-04-24 David S. Miller <davem@redhat.com>
8391 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8392 sparc_skip_prologue.
8393 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8394 information to find prologue when possible.
8395 (sparc_prologue_frameless_p): Call examine_prologue directly.
8396 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8397 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8399 (SKIP_PROLOGUE): Likewise.
8401 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8403 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8404 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8405 indicate that the condition it was testing is always true.
8406 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8407 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8408 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8410 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8412 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8413 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8414 tdep->jb_pc and tdep->jb_elt_size.
8415 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8416 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8417 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8418 * alpha-nat.c (get_longjmp_target): Remove.
8419 (JB_ELEMENT_SIZE): Ditto.
8421 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8422 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8423 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8424 to alpha_get_longjmp_target.
8425 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8426 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8427 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8429 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8431 * README: Update to GDB 5.2.
8433 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8435 * gdbarch.sh (LC_ALL): Set to `c'.
8437 2002-04-25 Theodore A. Roth <troth@verinet.com>
8439 * avr-tdep.c: Ran through gdb_indent.sh.
8441 2002-04-25 Theodore A. Roth <troth@verinet.com>
8443 * MAINTAINERS: Add myself as AVR maintainer.
8444 * NEWS: Note new target avr.
8446 2002-04-25 Theodore A. Roth <troth@verinet.com>
8448 * Makefile.in: Add support for AVR target.
8449 * configure.tgt: Add support for AVR target.
8450 * avr-tdep.c: New file
8451 * config/avr/avr.mt: New file.
8453 2002-04-25 Theodore A. Roth <troth@verinet.com>
8455 * MAINTAINERS: Add myself to write-after-approval.
8457 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8459 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8460 with fprintf_unfiltered (gdb_stderr,....
8462 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8465 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8467 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8469 * p-exp.y: Also use new prev_lexptr variable
8470 to improve error reporting. Based on Michael Snyder
8471 2002-04-24 dated patch to c-exp.y.
8473 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8475 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8476 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8477 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8479 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8481 (FUNCTION_START_OFFSET): Remove.
8482 (BREAKPOINT): Ditto.
8484 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8486 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8489 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8491 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8492 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8493 alpha_linux_pc_in_sigtramp.
8494 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8495 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8496 alpha_osf1_pc_in_sigtramp.
8497 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8498 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8499 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8500 alphafbsd_pc_in_sigtramp.
8501 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8502 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8503 alphanbsd_pc_in_sigtramp.
8504 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8505 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8507 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8509 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8511 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8513 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8515 (alphanbsd-nat.o): New dependency list.
8516 (alphanbsd-tdep.o): Ditto.
8517 * NEWS: Note new native NetBSD/alpha configuration.
8518 * alphanbsd-nat.c: New file.
8519 * alphanbsd-tdep.c: Ditto.
8520 * configure.host (alpha*-*-netbsd*): New host.
8521 * configure.tgt (alpha*-*-netbsd*): New target.
8522 * config/alpha/nbsd.mh: New file.
8523 * config/alpha/nbsd.mt: Ditto.
8524 * config/alpha/nm-nbsd.h: Ditto.
8525 * config/alpha/tm-nbsd.h: Ditto.
8527 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8529 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8530 (alpha-osf1-tdep.o): New dependency list.
8531 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8532 and skip_sigtramp_frame members.
8533 * alpha-linux-tdep.c: Include gdbcore.h.
8534 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8535 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8536 * alpha-osf1-tdep.c: New file.
8537 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8539 (alpha_frame_past_sigtramp_frame): New function.
8540 (alpha_dynamic_sigtramp_offset): Ditto.
8541 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8542 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8543 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8544 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8545 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8546 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8547 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8548 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8549 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8550 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8551 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8552 to find_solib_trampoline_target.
8553 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8554 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8555 (SKIP_TRAMPOLINE_CODE): Remove.
8556 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8557 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8558 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8559 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8560 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8561 (PROC_SIGTRAMP_MAGIC): Ditto.
8562 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8563 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8564 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8565 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8566 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8568 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8570 * NEWS: Note that Alpha targets are now multi-arch.
8572 2002-04-24 Michael Snyder <msnyder@redhat.com>
8574 * parser-defs.h (prev_lexptr): New external variable.
8575 * parse.c (parse_exp_1): Set prev_lexptr to null before
8576 calling the language-specific parser.
8577 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8578 (yyerror): Use prev_lexptr in error reporting.
8580 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8582 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8583 * gregset.h: If FILL_FPXREGSET is defined, provide
8584 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8585 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8586 is defined, call fill_fpxregset.
8588 2002-04-24 Roland McGrath <roland@frob.com>
8590 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8591 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8592 (supply_gregset, supply_fpregset): New functions.
8594 * gnu-nat.c (gnu_find_memory_regions): New function.
8595 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8596 (gnu_xfer_memory): Add a cast.
8598 2002-04-24 Michael Snyder <msnyder@redhat.com>
8600 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8601 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8602 of argument regs ("str r(0123), [r11, #-nn"]).
8603 (arm_skip_prologue): Better handling for frameless functions.
8604 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8605 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8607 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8609 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8610 NUM_PSEUDO_REGS can be used.
8612 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8614 * arch-utils.h: Update copyright.
8616 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8617 * gdbarch.h, gdbarch.c: Re-generate.
8619 * inferior.h (IN_SIGTRAMP): Delete definition.
8620 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8621 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8623 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8624 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8625 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8626 (find_proc_framesize): Ditto.
8627 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8628 (alpha_init_extra_frame_info): Ditto.
8629 * infrun.c (handle_inferior_event): Ditto.
8630 (handle_inferior_event): Ditto.
8631 (check_sigtramp2): Ditto.
8632 * blockframe.c (create_new_frame): Ditto.
8633 (get_prev_frame): Ditto.
8634 * ppc-linux-tdep.c: Update comments.
8635 * i386-linux-tdep.c: Update comments.
8636 * breakpoint.c (bpstat_what): Update comment.
8638 2002-04-24 David S. Miller <davem@redhat.com>
8640 * i960-tdep.c (register_in_window_p): New function.
8641 (i960_find_saved_register): Use it instead of
8642 REGISTER_IN_WINDOW_P.
8643 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8645 * symtab.h (find_stab_function_addr): Kill extern.
8646 * minsyms.c (find_stab_function_addr): Remove from here...
8647 * dbxread.c: ... to here, and mark it static.
8649 2002-04-20 David S. Miller <davem@redhat.com>
8651 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8652 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8654 2002-04-21 David S. Miller <davem@redhat.com>
8656 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8657 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8658 (vx_write_register): Likewise.
8660 2002-04-23 J. Brobecker <brobecker@gnat.com>
8662 * source.c (is_regular_file): New function.
8663 (openp): Check wether file to open is a regular file
8664 to avoid opening directories.
8666 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8668 * findvar.c (extract_signed_integer): Cast printf argument
8669 to suppress format warning.
8670 (extract_unsigned_integer): Likewise.
8671 * infcmd.c (registers_info): Likewise.
8672 * top.c (get_prompt_1): Likewise.
8673 * valops.c (value_assign): Likewise.
8674 * valprint.c (print_decimal): Likewise.
8676 2002-04-22 H.J. Lu (hjl@gnu.org)
8678 * c-exp.y (typebase): Support
8680 [long|long long|short] [signed|unsigned] [int|]
8684 signed [long|long long|short] int
8686 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8688 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8690 * vax-tdep.h: New file.
8691 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8692 Make several routines static.
8693 (vax_get_saved_register): New function.
8694 (vax_gdbarch_init): New function.
8695 (_initialize_vax_tdep): Register vax_gdbarch_init.
8696 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8697 Remove macros now under the control of gdbarch.
8699 2002-04-22 Michael Snyder <msnyder@redhat.com>
8701 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8702 Some whitespace and coding standards tweaks.
8704 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8706 * vax-tdep.c: Include regcache.h.
8707 (vax_call_dummy_words): New.
8708 (sizeof_vax_call_dummy_words): New.
8709 (vax_fix_call_dummy): New function.
8710 (vax_saved_pc_after_call): Ditto.
8711 * config/vax/tm-vax.h: Don't include regcache.h.
8712 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8713 (CALL_DUMMY): Remove.
8714 (CALL_DUMMY_WORDS): Define.
8715 (SIZEOF_CALL_DUMMY_WORDS): Define.
8716 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8718 2002-04-18 Michael Snyder <msnyder@redhat.com>
8720 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8722 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8724 * vax-tdep.c (vax_frame_chain): New function.
8725 (vax_push_dummy_frame): Ditto.
8726 (vax_pop_frame): Ditto.
8727 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8728 (FRAMELESS_FUNCTION_INVOCATION): Use
8729 generic_frameless_function_invocation_not.
8730 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8731 (POP_FRAME): Use vax_pop_frame.
8733 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8735 * vax-tdep.c (vax_store_struct_return): New function.
8736 (vax_extract_return_value): Ditto.
8737 (vax_store_return_value): Ditto.
8738 (vax_extract_struct_value_address): Ditto.
8739 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8740 vax_store_struct_return.
8741 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8742 (STORE_RETURN_VALUE): Use vax_store_return_value.
8743 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8745 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8747 * vax-tdep.c (vax_frame_saved_pc): New function.
8748 (vax_frame_args_address_correct): Ditto.
8749 (vax_frame_args_address): Ditto.
8750 (vax_frame_locals_address): Ditto.
8751 (vax_frame_num_args): Move code to be in proximity to
8752 other frame-related functions.
8753 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8754 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8755 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8756 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8757 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8759 2002-04-22 H.J. Lu (hjl@gnu.org)
8761 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8764 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8766 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8767 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8768 (FRAME_INIT_SAVED_REGS): New macro.
8770 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8772 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8774 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8776 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8778 (fetch_osf_core_registers): Likewise.
8779 (supply_gregset): Likewise.
8781 2002-04-22 J. Brobecker <brobecker@gnat.com>
8783 * symfile.h (get_section_index): Define.
8784 * symfile.c (get_section_index): New function.
8785 * mdebugread.c (SC_IS_SBSS): New macro.
8786 (SC_IS_BSS): Return true for the scBss storage class only, as
8787 the scSBss storage class refers to the .sbss section.
8788 (parse_partial_symbols): Discard the symbols which associated
8789 section does not exist.
8790 Make sure to use the .sbss section index for symbols which
8791 storage class is scBss, rather than using the .bss section index.
8793 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8795 * vax-tdep.c: Update copyright years.
8796 (vax_register_name): New function.
8797 (vax_register_byte): Ditto.
8798 (vax_register_raw_size): Ditto.
8799 (vax_register_virtual_size): Ditto.
8800 (vax_register_virtual_type): Ditto.
8801 * config/vax/tm-vax.h: Update copyright years.
8802 (REGISTER_NAMES): Remove.
8803 (REGISTER_NAME): Define.
8804 (REGISTER_BYTE): Use vax_register_byte.
8805 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8806 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8807 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8809 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8811 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8813 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8815 2002-04-21 David S. Miller <davem@redhat.com>
8817 * arch-utils.c (generic_prologue_frameless_p): Kill
8818 SKIP_PROLOGUE_FRAMELESS_P code.
8819 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8821 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8822 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8823 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8825 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8826 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8827 (sparc_gdbarch_init): Pass it to
8828 set_gdbarch_prologue_frameless_p.
8830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8832 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8833 (alphabsd-nat.o): New dependency list.
8835 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8837 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8839 (alpha-linux-tdep.o): New dependency list.
8840 (alphafbsd-tdep.o): Likewise.
8842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8844 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8846 * alpha-tdep.c: ...from here.
8847 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8849 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8851 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8852 prototype from here...
8853 * alpha-tdep.h: ...to here.
8855 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8857 * frame.h (selected_frame_level): Document as deprecated.
8858 (frame_relative_level): Declare.
8859 * stack.c (frame_relative_level): New function.
8860 (selected_frame_level): Document as deprecated.
8861 (select_frame): Do not set the selected_frame_level.
8863 * stack.c (frame_info, record_selected_frame): Update.
8864 (frame_command, current_frame_command): Update.
8865 (up_silently_base, up_command, down_silently_base): Update.
8866 (down_command): Update.
8867 * inflow.c (kill_command): Update.
8868 * tracepoint.c (finish_tfind_command): Update.
8869 * corelow.c (core_open): Update.
8870 * thread.c (info_threads_command): Update.
8871 (do_captured_thread_select): Update.
8872 * infcmd.c (finish_command): Update.
8873 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8875 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8877 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8879 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8881 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8886 * alphafbsd-tdep.c: Update copyright years. Include
8888 (alphafbsd_use_struct_convention): Make static.
8889 (alphafbsd_init_abi): New function.
8890 (_initialize_alphafbsd_tdep): New function.
8891 * config/alpha/tm-fbsd.h: Update copyright years.
8892 (USE_STRUCT_CONVENTION): Remove.
8894 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8896 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8897 an Alpha ABI variant.
8898 (alpha_abi_handler_list): Declare.
8899 (alpha_gdbarch_register_os_abi): New function.
8900 (alpha_gdbarch_init): Give registered ABI variant handlers a
8901 chance to tweak the gdbarch once we have set up defaults.
8902 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8904 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8906 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8907 to standard_coerce_float_to_double.
8908 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8910 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8912 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8913 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8914 from gdbarch_tdep rather than a constant.
8915 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8916 the default text address for all Alpha Unix ABIs.
8917 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8918 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8920 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8922 * alpha-tdep.h: New file. Includes several Alpha target constants
8924 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8925 let gdbarch deal with.
8926 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8927 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8929 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8930 Alpha target register names.
8931 * alphabsd-nat.c: Likewise.
8932 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8933 Alpha target register names. Make serveral routines static.
8934 (alpha_get_saved_register): New function.
8935 (alpha_abi_names): New.
8936 (process_note_abi_tag_sections): New function.
8937 (get_elfosabi): New function.
8938 (alpha_gdbarch_init): New function.
8939 (alpha_dump_tdep): New function.
8940 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8942 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8944 * frame.c (find_saved_register): Delete #ifdef
8945 HAVE_REGISTER_WINDOWS code.
8946 * config/sparc/tm-sparc.h: Update comments.
8947 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8949 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8951 * i960-tdep.c (i960_find_saved_register): New function.
8952 (i960_get_saved_register): New function.
8953 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8954 (i960_get_saved_register): Declare.
8955 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8957 2002-04-20 David S. Miller <davem@redhat.com>
8959 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8961 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8963 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8964 instead of NUM_PSEUDO_REGS.
8966 2002-04-20 David S. Miller <davem@redhat.com>
8968 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8969 GDB_MULTI_ARCH_PARTIAL
8970 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8971 define, let tm-sp64.h do it.
8973 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8975 * frame.c (find_saved_register): Avoid a NULL pointer
8976 dereference and actually walk the frame list.
8978 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8980 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8981 sorted in most most-recent-used order. Document.
8982 * gdbarch.h, gdbarch.c: Regenerate.
8984 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8986 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8988 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8989 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8990 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8993 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8996 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8997 (build_builtin_type_vec128): Ditto.
8998 (append_composite_type_field): Fix calculation of type length in
9001 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9003 * config/djgpp/README: Update.
9005 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9008 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9010 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9011 (alpha_setup_arbitrary_frame): ...to this.
9012 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9013 for alpha_setup_arbitrary_frame.
9015 2002-04-18 Andrew Cagney <cagney@redhat.com>
9017 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9018 * gdbarch.h, gdbarch.c: Regenerate.
9020 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9021 * target.h (memory_breakpoint_from_pc): Update declaration.
9022 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9024 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9025 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9026 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9027 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9028 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9029 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9030 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9031 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9032 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9033 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9034 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9035 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9037 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9039 * monitor.c (monitor_insert_breakpoint): Ditto.
9040 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9042 * config/mcore/tm-mcore.h: Update copyright.
9043 * mem-break.c: Ditto.
9044 * xstormy16-tdep.c: Ditto.
9046 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9048 * p-exp.y: Add precedence rule for '^' token.
9049 This removes the shift/reduce conflicts.
9050 Remove the comment concerning these shift/reduce conflicts.
9052 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9054 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9055 (registers_powerpc_nofp): New register set for processors
9056 without floating point unit.
9058 2002-04-18 David S. Miller <davem@redhat.com>
9060 * MAINTAINERS: Add myself to write-after-approval.
9062 2002-04-17 Michael Snyder <msnyder@redhat.com>
9064 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9066 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9068 * rs6000-tdep.c (frame_initial_stack_address): Use
9069 frame_register_read to read the alloca_reg.
9071 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9073 * frame.c (find_saved_register): Find saved registers in the next
9077 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9079 * gdbarch.sh (LANG): Set to ``c''.
9081 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9083 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9085 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9087 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9090 * hpread.c (hpread_get_lntt): Add declaration.
9091 Also fix PR gdb/391.
9093 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9095 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9096 * aclocal.m4, configure: Re-generate.
9099 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9101 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9102 instead of tm_print_insn.
9104 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9106 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9108 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9110 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9111 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9112 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9114 2002-04-12 Don Howard <dhoward@redhat.com>
9116 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9117 max_user_call_depth.
9118 (init_cmd_lists): Initialize the new value;
9119 * cli/cli-script.c (execute_user_command): Limit the call depth of
9120 user defined commands. This avoids a core-dump when user commands
9121 are infinitly recursive.
9123 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9125 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9126 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9127 from tdep struct instead of DEFAULT_LR_SAVE.
9128 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9129 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9130 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9132 2002-04-12 Michael Snyder <msnyder@redhat.com>
9134 * Remote.c: Spelling fix.
9135 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9136 If no symbol found for "sbrk", try "_sbrk".
9137 (make_output_phdrs): Use bfd_section_name.
9138 (gcore_copy_callback): Use bfd_section_name.
9139 * eval.c: Indentation fix-ups.
9140 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9141 in case it gets applied to an address that is already
9142 in the instruction space.
9143 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9144 * symfile.c: Fix indentation, long lines.
9145 * source.c: White space fix-up.
9147 2002-04-12 Andrew Cagney <cagney@redhat.com>
9149 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9150 * frame.c (frame_register_read): New function. Return non-zero on
9152 (read_relative_register_raw_bytes_for_frame): Delete.
9153 (read_relative_register_raw_bytes): Delete.
9154 * frame.h (frame_register_read): Declare.
9155 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9157 * infcmd.c (do_registers_info): Ditto.
9158 * hppa-tdep.c: Ditto.
9159 * rs6000-tdep.c: Ditto.
9160 * h8500-tdep.c: Ditto.
9161 * mips-tdep.c: Ditto.
9162 * h8300-tdep.c: Ditto.
9163 * z8k-tdep.c: Ditto.
9165 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9167 From Jimi X <jimix@watson.ibm.com>:
9168 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9171 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9173 From Jimi X <jimix@watson.ibm.com>:
9174 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9177 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9179 From Jimi X <jimix@watson.ibm.com>:
9180 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9181 register sets for these processor variants.
9183 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9185 * regformats/reg-ppc.dat: Support FPSCR.
9187 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9189 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9190 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9191 Add fpscr as an invalid/unfetchable register.
9192 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9193 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9194 (fill_fpregset): Add support for register fpscr.
9195 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9196 (fill_gregset): Account for the fact that register ``mq'' might
9198 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9199 (registers_power): Add fpscr to register set at slot 71.
9200 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9201 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9203 2002-04-11 Michael Snyder <msnyder@redhat.com>
9205 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9206 * configure: Regenerate.
9207 * config.in: Regenerate.
9208 * acconfig.h: Add define for _SYSCALL32.
9209 * core-sol2.c: Remove #define _SYSCALL32.
9210 * solib-legacy.c: Remove #define _SYSCALL32.
9212 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9214 * stack.c (select_frame): Cleanup internal error message, do not
9217 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9219 * stack.c (select_frame): Check that selected_frame and the
9220 specified level are as expected.
9221 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9223 * frame.h (struct frame_info): Add field `level'. Update
9225 Work-in-progress PR gdb/464.
9227 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9229 * maint.c (maint_print_section_info): Rename print_section_info.
9230 (print_bfd_section_info, print_objfile_section_info): Update.
9231 * inferior.h (struct gdbarch): Add opaque declaration.
9232 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9233 * gdbarch.h: Regenerate.
9235 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9237 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9238 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9239 (kernel_u_size): Added.
9240 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9241 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9243 2002-04-04 Jim Ingham <jingham@apple.com>
9245 * valarith.c (find_size_for_pointer_math): New function, either returns
9246 the size for a pointer's target, returns 1 for void *, or errors for
9248 (value_add, value_sub): use find_size_for_pointer_math.
9250 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9252 * linux-low.c (linux_look_up_symbols): New hook.
9253 (linux_target_ops): Add linux_look_up_symbols.
9254 * remote-utils.c (decode_address): New function.
9255 (look_up_one_symbol): New function.
9256 * server.c (handle_query): Call target look_up_symbols hook.
9257 * server.h (look_up_one_symbol): Add prototype.
9258 * target.h (struct target_ops): Add look_up_symbols hook.
9260 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9262 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9263 override FP_REGNUM with frame->fp. Update copyright.
9264 * parse.c (num_std_regs, std_regs): Delete.
9265 (target_map_name_to_register): Do not search std_regs. Update
9266 function description.
9267 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9268 declarations. Update copyright.
9271 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9273 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9274 after the last symbol in a block.
9276 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9278 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9279 is non zero as a found symbol.
9281 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9283 * findvar.c: Include "builtin-regs.h".
9284 (value_of_register): Call value_of_builtin_reg when applicable.
9285 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9286 (target_map_name_to_register): Call
9287 builtin_reg_map_name_to_regnum.
9288 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9289 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9290 (builtin_regs_h): Define.
9291 (builtin-regs.o): New target.
9292 (findvar.o): Add $(builtin_regs_h).
9293 * builtin-regs.c, builtin-regs.h: New files.
9294 * std-regs.c: New file.
9295 Partial fix for PR gdb/251.
9297 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9299 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9300 it's no longer required.
9302 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9304 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9306 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9308 From Jimi X <jimix@watson.ibm.com>:
9309 * rs6000-tdep.c (rs6000_software_single_step): Use
9310 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9311 and size. Use target_insert_breakpoint() and
9312 target_remove_breakpoint() to insert and remove breakpoints
9313 instead of explicit memory reads and writes.
9315 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9317 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9318 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9319 ELF_OBJECT_FORMAT ifdef.
9321 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9323 From Jimi X <jimix@watson.ibm.com>:
9324 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9326 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9328 From Jimi X <jimix@watson.ibm.com>:
9329 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9330 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9332 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9334 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9335 s/asprintf/xasprintf/.
9336 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9338 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9340 I believe Jeff Law denies responsability for this one:
9341 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9342 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9343 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9344 Work-around for PR gdb/366.
9346 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9348 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9349 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9350 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9352 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9354 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9355 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9358 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9360 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9363 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9365 * README (Reporting Bugs in GDB): Document the bug web page as the
9366 prefered way of submitting bugs.
9369 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9371 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9373 * gdbarch.h, gdbarch.c: Re-generate.
9375 2002-04-07 Andreas Schwab <schwab@suse.de>
9377 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9378 buffer to regcache_collect.
9380 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9382 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9383 * gdbarch.c, gdbarch.h: Re-generate.
9385 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9387 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9388 declaration. Fix -Werror.
9390 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9392 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9393 * gdbarch.c: Regenerate.
9395 2002-04-05 Michael Snyder <msnyder@redhat.com>
9397 * breakpoint.c (clear_command): Rewrite middle section to
9398 combine two loops with identical control conditions.
9399 Add a cleanup to eliminate a memory leak.
9400 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9402 2002-04-05 H.J. Lu (hjl@gnu.org)
9404 * solib-svr4.c (bkpt_names): Add "__start".
9406 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9408 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9409 as test for 64 bit target.
9411 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9413 * h8500-tdep.c (h8500_write_fp): Delete function.
9414 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9415 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9416 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9418 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9419 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9421 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9422 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9423 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9424 (d10v_write_fp): Delete function.
9425 * inferior.h (write_fp, generic_target_write_fp): Delete
9427 * regcache.c (generic_target_write_fp): Delete function.
9428 (write_fp): Delete function.
9429 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9430 * gdbarch.h, gdbarch.c: Regenerate.
9431 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9432 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9433 (sparc64_write_fp): Delete declaration.
9434 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9435 (h8500_write_fp): Delete declaration.
9437 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9439 * sparc-tdep.c (sparc64_write_fp): Delete.
9440 (sparc_push_dummy_frame): Replace write_fp call with code to store
9442 (sparc_gdbarch_init): Do not initialize write_fp.
9444 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9446 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9449 2002-03-29 Jim Blandy <jimb@redhat.com>
9451 * stack.c (get_selected_block): Add new argument `addr_in_block',
9452 used to return the exact code address we used to select the block,
9454 * blockframe.c (get_frame_block, get_current_block): Same.
9455 * frame.h (get_frame_block, get_current_block,
9456 get_selected_block): Update declarations.
9457 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9458 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9460 2002-04-05 Michael Snyder <msnyder@redhat.com>
9462 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9465 2002-04-05 J. Brobecker <brobecker@gnat.com>
9467 * utils.c (xfullpath): New function.
9468 * defs.h (xfullpath): Add declaration.
9469 * source.c (openp): Use xfullpath in place of gdb_realpath to
9470 avoid resolving the basename part of filenames when the
9471 associated file is a symbolic link. This fixes a potential
9472 inconsistency between the filenames known to GDB and the
9473 filenames it prints in the annotations.
9474 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9475 to be able to match a filename with either the real filename, or
9476 the name of any symbolic link to this file.
9477 (lookup_partial_symtab): Ditto.
9479 2002-04-04 Michael Snyder <msnyder@redhat.com>
9481 * breakpoint.c: Add support for hardware breakpoints in overlays.
9482 (overlay_events_enabled): New state variable.
9483 (insert_breakpoints): Use overlay_events_enabled to decide
9484 whether to attempt to set a breakpoint at the overlay load addr.
9485 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9486 (remove_breakpoint): Use overlay_events_enabled to decide
9487 whether breakpoints need to be removed from overlay load addr.
9488 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9489 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9490 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9491 disable_overlay_breakpoints): Update overlay_events_enabled.
9493 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9495 * dwarf2read.c (struct function_range): New.
9496 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9497 (check_cu_functions): New.
9498 (read_file_scope): Initialize global function lists.
9499 Call dwarf_decode_line after processing children.
9500 (read_func_scope): Add to global function list.
9501 (dwarf_decode_lines): Call check_cu_functions everywhere
9502 record_line is called. Call record_line with a linenumber
9503 of 0 to mark sequence ends.
9505 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9507 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9508 change sync with glibc.
9510 2002-04-03 Jim Blandy <jimb@redhat.com>
9512 * configure.in: Call AC_C_INLINE.
9513 * configure: Regenerated.
9515 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9517 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9518 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9520 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9522 * NEWS: Mention gcore support on FreeBSD/i386.
9524 * fbsd-proc.c: New file.
9525 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9526 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9528 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9531 2002-03-29 Jim Blandy <jimb@redhat.com>
9533 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9534 unescaped newlines in string literals, but newer ones don't. So
9537 2002-03-26 Michael Snyder <msnyder@redhat.com>
9538 Andrew Cagney <cagney@redhat.com>
9540 * cli/cli-dump.c: New file. Dump memory to file,
9541 restore file to memory.
9542 * cli/cli-dump.h: New file.
9543 * Makefile.in: Add rules, dependencies for cli-dump.o.
9544 * NEWS: Mention new commands.
9546 2002-03-28 Michael Snyder <msnyder@redhat.com>
9548 * symfile.c (symbol_file_add): Move test for null symbols to later.
9550 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9552 From veksler at il.ibm.com:
9553 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9554 the xstrduped original path.
9557 2002-03-27 Michael Snyder <msnyder@redhat.com>
9559 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9560 * infcmd.c (_initialize_infcmd): Ditto.
9561 * language.c (_initialize_language): Ditto.
9562 * symfile.c (_initialize_symfile): Ditto.
9563 * top.c (_init_main): Ditto.
9564 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9566 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9568 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9569 vector registers handling.
9570 (skip_prologue): Handle new AltiVec instructions. Fill in new
9571 fields of frame data.
9572 (frame_get_saved_regs): Fill in information for AltiVec registers.
9574 2002-03-27 Jim Blandy <jimb@redhat.com>
9576 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9577 a function; leave this macro here to invoke that function.
9578 (symbol_init_mangled_name): Declaration for that function.
9579 * symtab.c (symbol_init_mangled_name): New function.
9581 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9583 * valarith.c: Replace strerror with safe_strerror.
9584 * tracepoint.c: Ditto.
9586 * go32-nat.c: Ditto.
9590 2002-03-27 Andreas Schwab <schwab@suse.de>
9592 * event-top.c (command_line_handler): Remove useless if.
9594 2002-03-27 Andreas Jaeger <aj@suse.de>
9596 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9599 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9601 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9602 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9603 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9604 (x86_64_linux_dr_get_status, supply_gregset),
9605 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9606 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9607 (x86_64_register_info_table): Add.
9608 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9609 (x86_64_register_raw_size, x86_64_register_virtual_type),
9610 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9611 general x86_64_register_info_table.
9612 (i386_gdbarch_init): gdbarch_register_bytes is now set
9613 dynamicaly during initialization.
9614 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9615 * gdbserver/linux-x86-64-low.c: Ditto.
9617 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9619 * gdbserver/server.c (main): Call target_signal_to_host_p
9620 and target_signal_to_host on signals received from the remote.
9621 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9622 target_signal_from_host on signals sent to the remote.
9623 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9624 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9626 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9628 * signals/signals.c: Include "server.h" in gdbserver build.
9629 (target_signal_from_name): Don't use STREQ.
9630 (_initialize_signals): Likewise. Don't include function in
9633 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9635 * signals.c: Moved to...
9636 * signals/signals.c: Here.
9637 * Makefile (signals.o): Update.
9639 2002-03-26 Jeff Law (law@redhat.com)
9641 * somread.c (som_symtab_read): Remove some commented out code and
9642 updated related comments. Do not set the minimal symbol table to
9643 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9644 in a dynamic executable.
9645 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9646 where we are unable to find the minimal symbol for the given
9649 2002-03-25 Jeff Law (law@redhat.com)
9651 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9653 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9655 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9657 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9659 * command.h: Update copyright.
9660 (struct cmd_list_element): Replace definition with opaque
9662 (enum cmd_types): Document that it will eventually be moved to
9664 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9665 (MALLOCED_REPLACEMENT): Delete macro.
9666 * Makefile.in (cli_decode_h): Add $(command_h).
9667 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9668 * top.c: Include "cli/cli-decode.h".
9669 * completer.c: Include "cli/cli-decode.h".
9670 * maint.c: Include "cli/cli-decode.h".
9671 * cli/cli-decode.h: Include "command.h".
9672 (enum command_class): Delete.
9673 (enum cmd_types): Comment out.
9674 (enum cmd_auto_boolean): Delete.
9675 (enum var_types): Delete.
9677 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9679 * cli/cli-decode.c: Include "gdb_assert.h".
9680 (add_set_or_show_cmd): New static function.
9681 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9682 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9683 all fields, such as func, from the set command.
9685 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9687 * MAINTAINERS (sh-elf): Change warning flag to -w.
9689 2002-03-23 Andrew Cagney <cagney@redhat.com>
9691 * defs.h (error): Add printf format attribute.
9692 * thread-db.c (thread_from_lwp): Fix error format string.
9693 * stack.c (parse_frame_specification): Ditto.
9694 * cli/cli-decode.c (undef_cmd_error): Ditto.
9695 * scm-lang.c (scm_lookup_name): Ditto.
9696 * tracepoint.c (trace_error): Ditto.
9697 * remote-utils.c (usage): Ditto.
9698 * remote.c (compare_sections_command): Ditto.
9701 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9703 * gdbtypes.c (append_composite_type_field): New function.
9704 (init_composite_type): New function.
9705 * gdbtypes.h (append_composite_type_field): Declare.
9706 (init_composite_type): Ditto.
9708 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9710 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9712 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9713 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9714 structure returning convention for SYSV ABI case, but not
9715 for GNU/Linux, FreeBSD, or NetBSD.
9717 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9719 * symtab.h (lookup_block_symbol): Add mangled_name argument
9722 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9723 with new mangled_name argument.
9724 * linespec.c (decode_line_1): Likewise.
9725 * valops (value_of_this): Likewise.
9726 * symtab.c (lookup_transparent_type): Likewise.
9727 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9728 (lookup_symbol): If we are given a mangled name, pass it down
9729 to lookup_symbol_aux.
9730 (lookup_block_symbol): If we are given a mangled name to check
9731 against, only return symbols which match it.
9733 2002-03-22 Christopher Faylor <cgf@redhat.com>
9735 * win32-nat.c (child_create_inferior): Check for proper shell to use
9736 here, in case the user changes it on the fly.
9737 (_initialize_inftarg): Remove shell path considerations.
9739 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9742 for gdbarch_max_register_raw_size and max_register_virtual_size.
9743 Adjust copyright year.
9745 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9747 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9748 in a function to cover the entire beginning of the function
9749 as well if it does not already.
9751 2002-03-21 Tom Rix <trix@redhat.com>
9753 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9754 (rs6000_ptrace64): Renamed from ptrace64.
9756 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9758 * gdbserver/remote-utils.c (remote_open): Don't call
9759 getprotobyname, we're all using TCP here so just use
9761 * gdbserver/gdbreplay.c (remote_open): Ditto.
9763 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9765 * regcache.c (_initialize_regcache): No need to call
9766 build_regcache() at this time; it gets called whenever
9767 the gdbarch changes.
9769 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9771 * sparc-nat.c: Include sys/param.h where possible.
9773 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9776 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9777 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9778 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9780 * stabsread.c (rs6000_builtin_type): Likewise.
9781 (read_sun_floating_type): Likewise.
9783 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9785 * stabsread.c (read_member_functions): Remove skip code for duplicate
9786 constructor/destructor methods. Use standard parsing for these
9787 methods and just do not chain them to the list of methods after
9790 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9792 * coffread.c: Remove redundant static declarations. Replace
9793 occurrences of `PTR' with `void *'.
9794 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9795 * top.h (quit_cover): Likewise.
9796 * defs.h (catch_errors): Likewise.
9798 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9800 * defs.h (XMALLOC): Define.
9801 * gdb-events.sh (XMALLOC): Delete macro.
9802 * gdb-events.c, gdb-events.h: Regenerate.
9803 * gdbarch.sh (XMALLOC): Delete macro.
9804 * gdbarch.c: Regenerate.
9805 * serial.c (XMALLOC): Delete macro.
9806 * ui-file.c (XMALLOC): Ditto.
9807 * ser-unix.h (XMALLOC): Ditto.
9808 * sh-tdep.c (XMALLOC): Ditto.
9809 * ui-out.c (XMALLOC): Ditto.
9810 * utils.c (XMALLOC): Ditto.
9811 * i386-tdep.c (XMALLOC): Ditto.
9812 * gdb-events.c (XMALLOC): Ditto.
9813 * d10v-tdep.c (XMALLOC): Ditto.
9814 * cli-out.c (XMALLOC): Ditto.
9816 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9817 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9818 * ui-file.c, ui-out.c: Ditto.
9820 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9822 * command.h (struct cmd_list_element): Add field context.
9823 (set_cmd_context, get_cmd_context): Declare.
9824 * cli/cli-decode.h: Ditto.
9825 * cli/cli-decode.c (get_cmd_context): New function.
9826 (set_cmd_context): New function.
9827 (add_cmd): Initialize context.
9828 Part of fixing PR gdb/145 and PR gdb/146.
9830 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9832 * cli/cli-decode.c (cmd_type): New function.
9833 * command.h (cmd_type): Declare.
9834 * infrun.c (set_schedlock_func): Call function cmd_type.
9835 * kod.c (kod_set_os): Call cmd_type.
9836 * cris-tdep.c (cris_version_update): Use function cmd_type.
9837 (cris_mode_update, cris_abi_update): Ditto.
9839 * command.h: (execute_cmd_post_hook): Declare.
9840 (execute_cmd_pre_hook): Declare.
9841 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9842 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9843 functions. Execute pre/post hook while ensuring that afterwords
9845 * top.c (execute_command): Use execute_cmd_post_hook, and
9846 execute_cmd_pre_hook to execute pre/post commands.
9847 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9849 (hook_stop_stub): Call execute_cmd_pre_hook.
9851 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9853 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9854 set'' and this leads to a core dump. Move xstrdup of
9855 operating_system to after check that it is not NULL.
9857 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9859 * kod.c (kod_set_os): Remove unnecessary check that
9860 ``command->type'' is set_cmd.
9862 * valprint.c (set_input_radix): Use input_radix.
9863 (set_output_radix): Use output_radix.
9864 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9867 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9869 * value.h (struct value): Delete field ``substring_addr''. Change
9870 aligner fields to force_doublest_align, force_longest_align,
9871 force_core_addr_align and force_pointer_aligh.
9873 * value.h (struct value): Fix typo in above change.
9875 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9877 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9878 to fix internal_error from ``maintenance print architecture''.
9880 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9882 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9883 for gcc versions after gcc-2.8.1.
9885 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9887 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9888 for method resolution. Restore adjustment of ``this'' pointer after
9889 calling value_struct_elt, which was accidentally removed during the
9892 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9894 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9896 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9898 * value.h (value_of_register): Update.
9900 2002-03-14 Richard Henderson <rth@redhat.com>
9902 * configure.in: Detect declaration for canonicalize_file_name.
9903 * utils.c (canonicalize_file_name): Declare, if needed.
9904 (gdb_realpath): Prefer realpath if available and usable.
9905 * config.in, configure: Rebuild.
9907 2002-03-14 Richard Henderson <rth@redhat.com>
9909 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9910 a constant array bound.
9912 * MAINTAINERS: Add myself to write-after-approval.
9914 2002-03-14 Michael Snyder <msnyder@redhat.com>
9916 * symfile.c (syms_from_objfile): Return immediately if no syms.
9917 (symbol_file_add): Return immediately if no syms.
9918 (find_sym_fns): Return immediately if no syms.
9920 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9922 * gdbserver/remote-util.c (remote_open): Print remote-side's
9923 IP address when remote debugging over the network.
9925 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9927 * config/sparc/fbsd.mh: Fix copyright.
9928 * config/sparc/fbsd.mt: Likewise.
9930 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9932 * MAINTAINERS: Fix typo in name of gdb warnings option.
9933 (x86-64): Fix formating so that this can be parsed by awk.
9935 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9937 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9938 * defs.h: Include "gdb/signals.h".
9939 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9941 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9943 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9944 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9947 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9948 Don Howard <dhoward@redhat.com>
9950 * mips-tdep.c (ST0_FR): Define.
9951 (mips2_fp_compat): New function, temporarily disabled.
9952 (mips_read_fp_register_single): New function.
9953 (mips_read_fp_register_double): New function.
9954 (mips_print_register): Use them.
9955 (do_fp_register_row): Likewise.
9957 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9959 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9962 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9964 * stabsread.c (read_member_functions): Fix is_stub test for
9965 static member functions, improve comment.
9967 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9969 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9970 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9971 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9972 commands that set boolean values.
9973 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9974 (arm_rdi_resume): Always initialize PC.
9975 (arm_rdi_open): Don't use rslt as a boolean.
9976 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9977 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9978 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9979 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9981 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9983 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9984 * configure: Rebuilt.
9986 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9988 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9989 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9991 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9993 * cli/cli-decode.c (set_cmd_completer): New function.
9994 * command.h (set_cmd_completer): Declare.
9995 * cli/cli-decode.h (set_cmd_completer): Ditto.
9997 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9998 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9999 * win32-nat.c (_initialize_inftarg): Ditto.
10000 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10001 * proc-api.c (_initialize_proc_api): Ditto.
10002 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10003 * source.c (_initialize_source): Ditto.
10004 * exec.c (_initialize_exec): Ditto.
10005 * solib.c (_initialize_solib): Ditto.
10006 * top.c (init_main): Ditto.
10007 * tracepoint.c (_initialize_tracepoint): Ditto.
10008 * symfile.c (_initialize_symfile): Ditto.
10009 * printcmd.c (_initialize_printcmd): Ditto.
10010 * infcmd.c (_initialize_infcmd): Ditto.
10011 * corefile.c (_initialize_core): Ditto.
10013 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10015 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10017 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10019 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10021 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10023 * NEWS: Update headings, 5.2 has branched.
10025 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10027 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10028 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10029 (register_addr, REGISTER_RAW_SIZE): Likewise.
10030 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10031 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10033 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10035 * MAINTAINERS (x86-64): Add myself.
10036 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10037 changed value_ptr -> struct value *
10039 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10041 * configure.host (sparc64-*-freebsd): Add.
10042 * configure.tgt: Likewise.
10043 * config/sparc/fbsd.mh: New file.
10044 * config/sparc/fbsd.mt: Likewise.
10045 * config/sparc/nm-fbsd.h: Likewise.
10046 * config/sparc/tm-fbsd.h: Likewise.
10048 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10050 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10051 regformats/reg-s390x.dat.
10053 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10055 * utils.c: Add FIXME explaining true/false problem.
10057 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10059 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10061 2002-02-28 Michael Chastain <mec@shout.net>
10063 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10065 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10067 * gdbserver/linux-s390-low.c: New file.
10068 * regformats/reg-s390.dat: New file.
10069 * regformats/reg-s390x.dat: New file.
10070 * gdbserver/configure.srv: Add S/390.
10071 * gdbserver/Makefile.in: Add S/390.
10072 * configure.tgt: Enable gdbserver for S/390.
10074 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10076 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10077 first line of the doc string for "info dos", except at the end of
10078 the sentence, since the short help stops at the first period.
10080 2002-02-28 Jason Merrill <jason@redhat.com>
10082 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10084 2002-02-27 Fred Fish <fnf@redhat.com>
10086 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10087 comment (dumy -> dummy).
10089 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10091 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10093 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10095 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10097 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10099 * gdbserver/acconfig.h: New file.
10100 * gdbserver/i387-fp.c: New file.
10101 * gdbserver/i387-fp.h: New file.
10102 * gdbserver/linux-x86-64.c: New file.
10103 * regformats/reg-x86-64.dat: New file.
10104 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10105 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10106 * gdbserver/configure.in: Add support for regsets.
10107 * gdbserver/config.in: Regenerate.
10108 * gdbserver/configure: Regenerate.
10109 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10110 * gdbserver/linux-low.h: New file.
10111 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10113 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10114 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10115 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10116 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10117 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10118 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10119 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10120 "i387-fp.h". Add PTRACE_GETREGS and friends.
10121 * gdbserver/regcache.c (supply_register): New function.
10122 (supply_register_by_name): New function.
10123 (collect_register): New function.
10124 (collect_register_by_name): New function.
10126 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10128 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10129 (config.status): Add configure.srv dependency.
10130 (server_h): Add config.h dependency.
10132 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10134 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10135 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10136 * gdbserver/configure.srv: Change i386-*-linux* to use
10139 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10141 * x86-64-tdep.c: Re-indent. Update copyright date.
10143 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10145 From Michal Ludvig <mludvig@suse.cz>:
10146 * x86-64-tdep.c (value.h): Delete.
10147 (gdb_assert.h): Include.
10148 (x86_64_register_convert_to_virtual,
10149 x86_64_register_convert_to_raw ): Add check which lets only
10150 floating-point values to be converted.
10151 (value_push): Delete.
10152 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10153 (i386_gdbarch_init): Number of register_bytes fixed.
10155 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10157 * MAINTAINERS: Add x86-64 target.
10159 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10161 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10162 * osfsolib.c (solib_map_sections): Ditto.
10163 * irix5-nat.c (solib_map_sections): Ditto.
10164 * corelow.c (gdb_check_format): Ditto.
10165 * symfile.c (symfile_bfd_open): Ditto.
10166 * solib.c (solib_map_sections): Ditto.
10169 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10171 * remote.c (_initialize_remote): By default, disable ``e'' and
10172 ``E'' step out-of-range packets.
10174 2002-02-26 Andreas Schwab <schwab@suse.de>
10176 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10177 m68k_linux_frame_saved_pc.
10178 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10180 (SIGCONTEXT_PC_OFFSET): Remove.
10181 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10182 m68k_linux_sigtramp_saved_pc): New functions.
10183 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10184 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10185 (UCONTEXT_PC_OFFSET): Define.
10186 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10187 non-RT and RT signal trampolines.
10189 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10191 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10192 (TARGET_NBPG, STACK_END_ADDR): Delete
10193 (VARIABLES_INSIDE_BLOCK): Delete.
10195 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10197 * utils.c (perror_with_name): Make string parameter constant.
10198 (print_sys_errmsg): Ditto.
10200 * defs.h (perror_with_name): Update.
10201 (print_sys_errmsg): Update.
10204 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10206 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10207 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10209 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10211 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10212 if it already matches the current architecture from the exec file.
10213 Include arch-utils.h for gdbarch_info_init prototype.
10214 * Makefile.in (rs6000-nat.o): Update dependencies.
10216 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10218 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10219 list of exported variables.
10221 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10223 * gdbserver/configure.srv: New file.
10224 * gdbserver/configure.in: Use configure.srv instead
10225 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10227 * gdbserver/configure: Regenerated.
10228 * gdbserver/terminal.h: New file.
10229 * gdbserver/Makefile.in: Update for configure changes. Remove
10230 more unneeded include paths.
10232 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10234 From wiz at danbala:
10235 * config/sparc/tm-sp64.h: Fix grammar and typos.
10238 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10240 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10241 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10242 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10243 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10244 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10245 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10246 * s390-tdep.c: Ditto.
10247 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10248 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10249 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10250 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10251 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10252 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10253 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10254 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10255 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10256 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10259 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10261 * lin-thread.c: Delete file.
10262 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10263 to gdb_proc_service.h.
10264 * configure: Re-generate.
10266 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10267 * serial.c (serial_open): Delete check for "ocd".
10270 * Makefile.in (linux-thread.o): Delete target.
10271 * linux-thread.c: Delete file.
10273 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10274 renamed SH files to be consistent.
10276 * symtab.c (sort_search_symbols): Use xfree.
10278 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10280 * arm-linux-tdep.c (arm_linux_init_abi): Register
10281 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10282 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10283 definition with undef, since we don't want the sysvr4 definition.
10284 (SKIP_TRAMPOLINE_CODE): Likewise.
10286 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10288 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10290 * configure.in: (AC_CHECK_FUNCS) Added test for
10291 canonicalize_file_name Regenerated.
10292 * config.in, configure: Regenerated.
10293 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10294 defined use canonicalize_file_name.
10296 2002-02-23 Michael Chastain <mec@shout.net>
10298 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10300 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10302 * README: Remove references to cygnus.com.
10303 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10304 dot com'' form. Remove references to cygnus.com and sourceware.
10306 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10308 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10309 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10310 1003.1-2001 no longer allows "head -1".
10311 * gdb/Makefile.in (version.c): Likewise.
10312 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10313 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10314 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10316 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10318 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10319 * command.h (cmd_cfunc_eq): Declare.
10320 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10322 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10323 ``struct cmd_list_element *''.
10324 * cli/cli-cmds.c (is_complete_command): Update. Use
10326 * top.c (execute_command): Pass the command to
10327 is_complete_command.
10328 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10330 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10332 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10333 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10334 architecture defines.
10335 * s390-tdep.c (s390_gdbarch_init): Likewise.
10337 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10339 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10340 (arm_linux_push_arguments): Likewise.
10341 (arm_linux_init_abi): Register them. Also register linux-specific
10343 (find_minsym_and_objfile): Use strcmp, not STREQ.
10344 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10345 (arm_linux_call_dummy_words): Delete declaration.
10346 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10347 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10349 (LOWEST_PC): Delete.
10351 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10353 * maint.c (print_section_info): Do not prepend `0x' to filepos
10354 output, it will be handled by local_hex_string_custom.
10356 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10358 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10359 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10360 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10362 2002-02-22 Jim Blandy <jimb@redhat.com>
10364 Indicate that the bcache functions don't change the strings
10366 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10367 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10369 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10371 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10373 2002-02-21 Christopher Faylor <cgf@redhat.com>
10375 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10376 find the complete path to a loaded DLL.
10378 2002-02-21 Fred Fish <fnf@redhat.com>
10380 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10381 that marks the end of the range of a function, enter a line number
10382 entry that has a line number of zero and a PC offset that matches
10383 the end of the function. This starts a range of PC's for which no
10384 line number information is known.
10385 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10386 PC's for which no line number info is found (line number is zero)
10387 then we didn't find any valid line information.
10388 * symtab.h: Document use of zero line number entry.
10390 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10392 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10393 (have_ptrace_getvrregs): Define for run time checks.
10394 (gdb_vrregset_t): New type for Altivec register handling.
10395 (fetch_register, store_register): Fetch/store altivec register
10397 (fetch_altivec_register, store_altivec_register): New functions.
10398 (supply_vrregset, fill_vrregset): New functions.
10399 (fetch_altivec_registers, store_altivec_registers): New functions.
10400 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10403 2002-02-21 Jiri Smid <smid@suse.cz>
10405 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10407 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10409 * Makefile.in (armnbsd-nat.o): Update dependencies.
10410 * armnbsd-nat.c (supply_gregset): New function. Common code to
10411 supply the integer register set.
10412 (supply_fparegset): New function. Similar for FPA registers.
10413 (fetch_regs, fetch_fp_regs): Use them.
10414 (fetch_core_registers): Likewise.
10415 (fetch_elfcore_registers): New function.
10416 (arm_netbsd_elfcore_fns): New core-file type specification.
10417 (_initialize_arm_netbsd_nat): Register it.
10419 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10421 * armnbsd-nat.c: Include gdbcore.h.
10422 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10423 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10424 'void' to declaration, to shut up ARI.
10425 (fetch_core_registers): Make static. Rewrite using supply_register.
10426 (arm_netbsd_core_fns): New core-file type specification.
10427 (_initialize_arm_netbsd_nat): New function.
10429 2002-02-21 Christopher Faylor <cgf@redhat.com>
10431 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10434 2002-02-20 Christopher Faylor <cgf@redhat.com>
10436 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10439 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10441 * jv-exp.y (parse_number): Change type of implicit longs
10442 to builtin_type_uint64.
10444 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10446 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10447 to be an integer instead of a `union wait'.
10449 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10451 * mips-linux-nat.c: Call the operating system GNU/Linux.
10452 * mips-linux-tdep.c: Likewise.
10453 * mips-tdep.c: Likewise.
10455 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10458 * jv-exp.y (parse_number): Handle 64-bit integers.
10460 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10462 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10463 AC_STDC_HEADERS to AC_HEADER_STDC.
10464 * gdbserver/configure: Regenerated.
10466 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10468 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10470 * sparc-tdep.c (get_longjmp_target): Likewise.
10472 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10474 * News: Add news about ARM and Multi-arch. Mention the new target
10477 2002-02-19 Jim Blandy <jimb@redhat.com>
10479 * stabsread.c (error_type_complaint): Improve error message.
10481 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10483 * gdbserver/README: Update documentation.
10484 * gdbserver/configure.in: Update configury to match documentation.
10485 * gdbserver/Makefile.in: Likewise.
10486 * gdbserver/configure: Regenerated.
10487 * gdbserver/aclocal.m4: New file, generated by aclocal.
10488 * gdbserver/config.in: New file, generated by autoheader.
10490 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10492 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10495 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10497 * arm-tdep.h (enum arm_float_model): New enum.
10498 (struct gdbarch_tdep): Add fp_model.
10499 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10500 up floating-point conversions until we know the floating-point model
10501 in use by the inferior. Don't complain about being unable to
10502 determine the ABI of the inferior when we don't have one.
10503 (arm_extract_return_value): Support different floating-point models.
10504 (arm_store_return_value): Likewise.
10505 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10507 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10509 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10511 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10512 of ``current_gdbarch''.
10514 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10516 * armnbsd-nat.c : ANSIfy all function declarations.
10517 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10518 (fetch_inferior_registers): Re-implement in terms of above.
10519 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10520 (store_inferior_registers): Re-implement in terms of above.
10522 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10524 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10526 * arm-linux-tdep.c: Likewise.
10527 * config/arm/tm-linux.h: Likewise.
10529 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10531 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10532 * config/arm/nbsd.mt (TM_FILE): Delete.
10533 * config/arm/tm-nbsd.h: Delete.
10535 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10537 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10538 Initialize CALL_DUMMY_LENGTH.
10540 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10542 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10544 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10545 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10546 defines one thing and that is incorrect for this port.
10547 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10549 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10551 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10553 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10555 * win32-nat.c (display_selector): New function. Displays information
10556 about the information returned by GetThreadSelectorEntry API function.
10557 (display_selectors): New function. Displays the infomation of
10558 the selector given as argument, or of CS, DS ans FS selectors
10559 if no argument is given.
10560 ( _initialize_inftarg): Add "w32" as info prefix command.
10561 Add "info w32 selector" as command calling display_selectors.
10563 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10565 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10566 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10569 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10571 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10573 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10575 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10576 (arm_fix_call_dummy): Call it.
10577 (arm_call_dummy_breakpoint_offset): Delete.
10578 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10579 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10581 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10583 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10584 Default to func_frame_chain_valid.
10585 * gdbarch.h, gdbarch.c: Re-generate.
10586 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10588 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10590 * ppc-linux-nat.c: Update copyright.
10591 (fetch_register, store_register): Add tid parameter, don't compute
10593 (fetch_ppc_registers, store_ppc_registers): Add tid
10594 parameter. Pass it along to callees.
10595 (fetch_inferior_registers, store_inferior_registers): Compute tid
10596 here, and pass it to calleed functions.
10597 (fill_gregset, supply_fpregset): Clean up formatting.
10599 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10601 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10602 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10604 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10606 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10607 * gdbarch.c gdbarch.h: Regenerate.
10608 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10610 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10611 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10612 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10614 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10615 * arm-tdep.c (arm_get_longjmp_target): New function.
10616 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10617 this to a positive value register arm_get_longjmp_target as the
10619 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10620 (arm_linux_init_abi): Set up longjmp description in tdep.
10621 * armnbsd-nat.c (get_longjmp_target): Delete.
10622 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10623 description in tdep.
10624 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10625 (get_longjmp_target): Delete declaration.
10626 (GET_LONGJMP_TARGET): Delete.
10627 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10628 (GET_LONGJMP_TARGET): Delete.
10630 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10632 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10633 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10634 of ``current_gdbarch''.
10636 2002-02-17 Tom Tromey <tromey@redhat.com>
10638 * cli/cli-cmds.c (compare_strings): New function.
10639 (complete_command): Only print each unique item once.
10640 * completer.h (complete_line): Declare.
10641 * completer.c (complete_line): New function.
10642 (line_completion_function): Use it.
10644 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10646 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10647 * gdbarch.h, gdbarch.c: Re-generate.
10649 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10651 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10653 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10655 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10656 * valops.c (value_arg_coerce): Don't take the address of a reference
10657 to convert an argument to a reference.
10659 2002-02-15 Christopher Faylor <cgf@redhat.com>
10661 * win32-nat.c (get_image_name): New function.
10662 (handle_load_dll): Use get_image_name function.
10663 (get_child_debug_event): Avoid registering debug events until possibly
10664 execed process is started.
10665 (child_create_inferior): Allow invocation via shell so that command
10666 line redirection, etc. works ok.
10667 (_initialize_inftarg): Add new command: "set shell" to control whether
10668 a shell is used to start a process.
10670 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10672 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10673 instead of find_register_by_number.
10674 (cannot_store_register): Likewise.
10676 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10678 * dwarf2read.c: Replace fprintf (stderr, ...) by
10679 fprintf_unfiltered (gdb_stderr, ...).
10681 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10683 * gdbserver/gdbserver.1: Document --attach.
10685 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10687 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10689 * arm-tdep.c (arm_default_arm_le_breakpoint)
10690 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10691 (arm_default_thumb_be_breakpoint): New. Initialize them from
10692 traditional breakpoint defines.
10693 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10694 (arm_gdbarch_init): Initialize new breakpoint variables.
10695 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10696 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10697 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10698 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10700 (arm_netbsd_init_abi_common): ... here; new function.
10701 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10702 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10703 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10704 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10706 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10708 * arm-tdep.h (enum arm_abi): New enum.
10709 (struct gdbarch_tdep): New structure.
10710 (LOWEST_PC): Provide a default.
10711 (arm_gdbarch_register_os_abi): Declare new function.
10712 * arm-tdep.c (arm_abi_names): New array.
10713 (process_note_abi_tag_sections): New function.
10714 (get_elfosabi): New function.
10715 (arm_gdbarch_register_os_abi): New function.
10716 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10717 support for that ABI has been built in, then call the appropriate
10718 configuration routine. Use gdbarch_num_regs() to get the number
10720 (arm_dump_tdep): New function.
10721 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10722 place-holder functions.
10723 (_initialize_arm_tdep): Register them.
10724 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10726 * armnbsd-tdep.c: New file.
10727 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10728 * config/arm/nbsd.mt (TDEPFILES): Add it.
10729 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10731 * armnbsd-nat.c: Include regcache.h.
10732 * Makefile.in (armnbsd-nat.o): Update dependency list.
10734 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10736 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10738 * gdbserver/Makefile.in: Fix typos in target rules.
10740 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10742 Fix part of PR gdb/267.
10743 * linespec.c (find_methods): Handle constructors specially for now.
10745 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10747 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10749 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10750 standard_coerce_float_to_double().
10752 2002-02-14 Christopher Faylor <cgf@redhat.com>
10754 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10757 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10759 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10760 find_variant_by_name, because it confuses the multiarch
10761 framework. Return NULL if there isn't an architecture with the
10762 user supplied name, instead of forcing a different one without
10763 recording the change with the multiarch machinery.
10764 (find_variant_by_name): Delete.
10766 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10768 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10769 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10771 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10773 * stack.c (print_frame_info_base): When calling
10774 print_frame_info_listing_hook, set current_source_symtab.
10776 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10778 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10779 and remove unused $(INCLUDE_DIR).
10780 Add regcache.c to OBS.
10781 Add generated register protocol files to clean target.
10782 Update dependencies for new objects, obsolete old target code.
10784 * gdbserver/linux-low.c: Remove all platform-specific code to
10785 new files. Remove various dead code. Update to use regcache
10787 * gdbserver/remote-utils.c (fromhex): Add return statement
10789 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10791 (input_interrupt): Add integer parameter to match prototype
10792 of a signal handler.
10793 (outreg): Use register_data ().
10794 (prepare_resume_reply): Use gdbserver_expedite_regs.
10795 * gdbserver/server.c (main): Dynamically allocate own_buf because
10796 PBUFSIZ is no longer constant. Use registers_to_string () and
10797 registers_from_string ().
10798 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10799 for error (), fatal (), and warning (). Update definition of
10800 PBUFSIZ to use regcache functionality. Add include guard.
10801 * gdbserver/utils.c (fatal): Add missing ``const''.
10802 (warning): New function.
10804 * regformats/regdat.sh: Include "regcache.h" in generated files.
10805 Provide init_registers () function.
10806 * regformats/regdef.h: Add prototype for set_register_cache ().
10809 * gdbserver/linux-arm-low.c: New file.
10810 * gdbserver/linux-i386-low.c: New file.
10811 * gdbserver/linux-ia64-low.c: New file.
10812 * gdbserver/linux-m68k-low.c: New file.
10813 * gdbserver/linux-mips-low.c: New file.
10814 * gdbserver/linux-ppc-low.c: New file.
10815 * gdbserver/linux-sh-low.c: New file.
10817 * gdbserver/regcache.c: New file.
10818 * gdbserver/regcache.h: New file.
10820 * gdbserver/low-linux.c: Removed obsolete file.
10822 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10824 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10825 * config/i386/linux.mt: Likewise.
10826 * config/ia64/linux.mt: Likewise.
10827 * config/m68k/linux.mh: Likewise.
10828 * config/powerpc/linux.mh: Likewise.
10829 * config/mips/linux.mt: Likewise.
10831 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10833 * config/i386/i386lynx.mh: Mark gdbserver variables
10834 as (currently) obsolete for this target.
10835 * config/i386/nbsd.mt: Likewise.
10836 * config/i386/nbsdelf.mt: Likewise.
10837 * config/m32r/m32r.mt: Likewise.
10838 * config/m68k/m68klynx.mh: Likewise.
10839 * config/m68k/nbsd.mt: Likewise.
10840 * config/m68k/sun3os4.mh: Likewise.
10841 * config/mips/vr5000.mt: Likewise.
10842 * config/ns32k/nbsd.mt: Likewise.
10843 * config/pa/hppabsd.mh: Likewise.
10844 * config/pa/hppaosf.mh: Likewise.
10845 * config/powerpc/nbsd.mt: Likewise.
10846 * config/rs6000/rs6000lynx.mh: Likewise.
10847 * config/s390/s390.mt: Likewise.
10848 * config/s390/s390x.mt: Likewise.
10849 * config/sparc/sparclynx.mh: Likewise.
10850 * config/sparc/sun4os4.mh: Likewise.
10851 * config/i386/x86-64linux.mt: Likewise.
10852 * config/sparc/linux.mh: Likewise.
10854 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10856 * configure.tgt: Configure gdbserver only for known working
10857 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10858 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10859 SUBDIRS if it is configured. Update comment for ${nativefile}.
10860 * configure: Regenerated.
10862 2002-02-13 Michael Snyder <msnyder@redhat.com>
10864 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10866 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10867 (default_gcore_mach): Just return 0, work around a problem in bfd.
10868 (default_gcore_target): OK to return NULL if exec_bfd is null.
10869 (make_mem_sec): Use a cast, avoid a warning.
10871 * procfs.c (find_memory_regions_callback): Use a cast instead of
10872 calling host_pointer_to_address (which complains if
10873 sizeof (host pointer) != sizeof (target pointer)).
10874 (procfs_make_note_section): Avoid overflow in psargs string.
10876 * procfs.c (procfs_make_note_section): Make the default
10877 implementation return an error.
10879 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10881 * procfs.c (procfs_make_note_section): Provide a default definition
10882 (for alpha-dec-osf4.0f). Fix typos.
10884 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10886 * linux-proc.c: Add include of regcache.h.
10887 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10889 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10891 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10892 * memattr.c (create_mem_region): Disallow useless empty region.
10893 Regions are half-open intervals, so allow [A..B) [B..C) as
10896 2002-02-13 Michael Chastain <mec@shout.net>
10898 * defs.h: Kill CONST_PTR.
10899 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10900 * c-lang.c (c_builtin_types): Likewise.
10901 * ch-lang.c (ch_builtin_types): Likewise.
10902 * f-lang.c (f_builtin_types): Likewise.
10903 * language.c (unknown_builtin_types): Likewise.
10904 * m2-lang.c (m2_builtin_types): Likewise.
10905 * p-lang.c (pascal_builtin_types): Likewise.
10906 * scm-lang.c (c_builtin_types): Likewise.
10908 2002-02-13 Keith Seitz <keiths@redhat.com>
10910 * arm-tdep.h (arm_get_next_pc): Add declaration.
10912 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10914 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10915 with other related struct-returning functions.
10916 (arm_extract_struct_value_address): New function.
10917 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10918 initialize float_format, double_format and long_double_format as
10919 appropriate to the endianness of the target.
10920 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10921 (arm_use_struct_convention): Delete declaration.
10922 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10924 2002-02-13 Keith Seitz <keiths@redhat.com>
10926 * defs.h (core_addr_to_string_nz): New function.
10928 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10930 Apply missing bits of 2002-01-15 patch.
10931 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10932 (fill_fpregset): Use i387_fill_fsave.
10934 2002-02-12 Keith Seitz <keiths@redhat.com>
10936 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10937 (core_addr_to_string_nz): New function.
10939 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10941 * arm-linux-nat.c: Really include arm-tdep.h.
10942 * config/arm/tm-linux.h (struct type, struct value): Declare.
10944 2002-02-11 Michael Snyder <msnyder@redhat.com>
10946 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10947 (gcore section): Ifdef for Solaris and Unixware only.
10948 (procfs_do_thread_registers): Unixware needs one lwpstatus
10949 per thread (not one prstatus or pstatus).
10950 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10951 not over all gdb threads. For unixware, call elfcore_write_pstatus
10952 once before iterating over threads.
10954 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10956 * arm-tdep.h: New file.
10957 * arm-tdep.c: Include arm-tdep.h.
10958 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10959 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10960 (arm_print_float_info, arm_register_type, convert_to_extended)
10961 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10962 (arm_extract_return_value, arm_register_name): Make static.
10963 (arm_software_single_step): Similarly. Fix types in declaration.
10964 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10965 (arm_store_return_value, arm_store_struct_return): New functions.
10966 (arm_gdbarch_init): Register the above functions. Also register
10967 call_dummy_start_offset, sizeof_call_dummy_words,
10968 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10969 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10970 max_register_virtual_size, register_size. Set up
10971 prologue_cache.saved_regs here, rather than ...
10972 (_initialize_arm_tdep): ... here.
10973 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10975 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10976 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10977 (arm_print_float_info, arm_register_type, convert_to_extended)
10978 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10979 (arm_extract_return_value, arm_register_name): Delete declarations.
10980 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10981 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10982 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10983 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10984 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10985 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10986 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10987 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10988 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10989 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10990 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10991 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10993 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10994 * remote-rdi.c remote-rdp.c: Likewise.
10995 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10996 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10997 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11000 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11001 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11002 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11003 from non-ARM_ prefixed definitions.
11004 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11006 * remote-rdi.c remote-rdp.c: Likewise.
11007 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11009 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11011 * arm-tdep.c (arm_frameless_function_invocation)
11012 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11013 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11014 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11015 (arm_pop_frame, arm_get_next_pc): Make static.
11016 (arm_gdbarch_init): Register above in gdbarch structure.
11017 (arm_read_fp): Renamed from arm_target_read_fp.
11018 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11019 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11020 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11021 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11022 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11023 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11024 (arm_pc_is_thumb_dummy): Delete declarations.
11025 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11026 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11027 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11028 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11030 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11032 * symtab.c (compare_search_syms): New function.
11033 (sort_search_symbols): New function.
11034 (search_symbols): Sort symbols after searching rather than
11037 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11039 * NEWS: Linux -> GNU/Linux.
11041 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11043 * gdbarch.sh: For for level one methods, disallow a definition
11044 when partially multi-arched. Add comments explaining rationale.
11045 * gdbarch.h: Re-generate.
11047 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11049 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11050 multi-arch partial.
11052 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11054 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11055 field. Use diff -u.
11056 * gdbarch.c: Re-generate.
11058 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11060 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11061 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11064 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11066 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11067 multi-arch partial.
11068 (PUSH_ARGUMENTS): Switch to using predefault.
11069 * gdbarch.c: Regenerate.
11071 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11073 * valops.c (PUSH_ARGUMENTS): Delete definition.
11074 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11075 partial. Default to default_push_arguments.
11076 * gdbarch.h, gdbarch.c: Regenerate.
11078 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11080 * defs.h (throw_exception): Rename return_to_top_level. Update
11082 * utils.c (error_stream, internal_verror, quit): Ditto.
11083 * top.c (throw_exception, catcher): Ditto.
11084 * sparclet-rom.c (sparclet_load): Ditto.
11085 * remote.c (interrupt_query, minitelnet): Ditto.
11086 * remote-sds.c (interrupt_query): Ditto.
11087 * remote-mips.c (mips_error, mips_kill): Ditto.
11088 * ocd.c (interrupt_query): Ditto.
11089 * monitor.c (monitor_interrupt_query): Ditto.
11090 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11091 * target.h: Update comment.
11093 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11095 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11097 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11098 default_double_format.
11099 * gdbarch.h, gdbarch.c: Re-generate.
11100 * findvar.c (floatformat_unknown): Delete variable definition.
11101 * doublest.h (floatformat_unknown): Delete variable declaration.
11103 2002-02-09 Jim Blandy <jimb@redhat.com>
11105 * stabsread.c (read_type): Add code to parse Sun's syntax for
11106 prototyped function types.
11108 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11110 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11111 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11113 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11115 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11116 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11117 now _initialize_xcoffsolib gets called again and overrides the
11118 commands from solib.c in a native configuration.
11120 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11122 * doublest.c (store_typed_floating): Don't try to return a value.
11125 2002-02-08 Jim Blandy <jimb@redhat.com>
11127 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11128 is prototyped and has no arguments, print its argument list as
11131 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11133 * MAINTAINERS (write-after-approval): Add myself.
11134 (paper-trail): I've escaped!
11136 2002-02-08 Christopher Faylor <cgf@redhat.com>
11138 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11140 (_initialize_check_for_gdb_ini): Ditto.
11142 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11144 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11145 xaprintf -> xasprintf.
11147 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11149 * win32-nat.c: Remove use of printf and sprintf functions.
11151 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11153 * arm-tdep.c (arm_frame_chain_valid): Make static.
11154 (arm_push_arguments): Likewise.
11155 (arm_gdbarch_init): New function.
11156 (_initialize_arm_tdep): Call it.
11157 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11158 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11159 (FRAME_CHAIN_VALID): Delete.
11160 (arm_frame_chain_valid): Delete declaration.
11161 (PUSH_ARGUMENTS): Delete.
11162 (arm_push_arguments): Delete declaration.
11163 (CALL_DUMMY_P): Delete.
11165 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11166 Corinna Vinschen <vinschen@redhat.com>
11168 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11169 on builtin float types.
11171 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11173 * utils.c: Include <curses.h> before "bfd.h".
11174 * tui/tui-hooks.c: Likewise.
11175 * tui/tui.c: Likewise.
11176 * tui/tuiCommand.c: Likewise.
11177 * tui/tuiData.c: Likewise.
11178 * tui/tuiDataWin.c: Likewise.
11179 * tui/tuiDisassem.c: Likewise.
11180 * tui/tuiGeneralWin.c: Likewise.
11181 * tui/tuiIO.c: Likewise.
11182 * tui/tuiLayout.c: Likewise.
11183 * tui/tuiRegs.c: Likewise.
11184 * tui/tuiSource.c: Likewise.
11185 * tui/tuiSourceWin.c: Likewise.
11186 * tui/tuiStack.c: Likewise.
11187 * tui/tuiWin.c: Likewise.
11189 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11191 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11192 to include space for pseudoregs as well. Update loops accordingly.
11193 (sh_fp_frame_init_saved_regs): Ditto.
11194 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11196 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11198 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11199 Add Richard Earnshaw to Arm maintainers.
11201 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11203 * defs.h (warning_begin): Delete declaration.
11205 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11208 2002-02-07 Michael Snyder <msnyder@redhat.com>
11210 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11211 Logic bug, remove misplaced else.
11213 2002-02-07 Klee Dienes <klee@apple.com>
11215 * fork-inferior.c (fork_inferior): Add '!' to the list of
11216 characters that need to be quoted when building a string for the
11217 shell. Quote '!' specifically with a backslash, since CSH chokes
11218 when trying to evaluate "str!str".
11220 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11222 * rdi-share/host.h: Only provide a typedef for bool if it is not
11225 2002-02-04 Michael Snyder <msnyder@redhat.com>
11227 * breakpoint.h (enum bptype): Add new overlay event bp type.
11228 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11230 * breakpoint.c (create_internal_breakpoint): New function.
11231 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11232 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11233 (create_thread_event_breakpoint): Ditto.
11234 (create_solib_event_breakpoint): Ditto.
11235 (create_overlay_event_breakpoint): New function.
11236 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11237 (update_breakpoints_after_exec): Delete and re-initialize
11238 overlay event breakpoints after an exec. Add FIXME comment
11239 about longjmp breakpoint.
11240 (print_it_typical): Ignore overlay event breakpoints.
11241 (print_one_breakpoint): Ditto.
11243 (bpstat_what): Do not stop for overlay event breakpoints.
11244 (delete_breakpoint): Don't delete overlay event breakpoints.
11245 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11246 (breakpoint_re_set): Re-create overlay event breakpoint.
11248 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11249 (overlay_manual_command): Disable overlay breakpoints.
11250 (overlay_off_command): Disable overlay breakpoints.
11252 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11254 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11255 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11256 to here from config/tm-arm.h.
11257 (coff_sym_is_thumb): Make static.
11258 (arm_elf_make_msymbol_special): New function.
11259 (arm_coff_make_msymbol_special): New function.
11260 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11261 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11262 (coff_sym_is_thumb): Delete declaration.
11263 (arm_elf_make_msymbol_special): Declare.
11264 (arm_coff_make_msymbol_special): Declare.
11265 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11266 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11268 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11270 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11272 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11274 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11275 * gdbarch.c gdbarch.h: Regenerate.
11276 * arch-utils.c (default_print_float_info): New function.
11277 * arch-utils.h (default_print_float_info): Prototype it.
11278 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11279 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11280 (PRINT_FLOAT_INFO): Document it.
11282 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11283 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11284 (PRINT_FLOAT_INFO): Define.
11286 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11288 * win32-nat.c (_initialize_check_for_gdb_ini):
11289 Add typecast to sprintf argument to suppress a warning.
11291 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11293 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11294 to allow easier handling of pass state.
11295 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11296 that gives exception name and address.
11297 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11298 and set last_sig value to ourstatus->value.sig. Some missing
11300 (child_continue): Correctly report continue_status.
11301 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11302 TARGET_SIGNAL_0 (new default value).
11303 (child_resume): consider sig argument passed to decide if
11304 the exception should be passed to debuggee or not.
11306 2002-02-05 Michael Snyder <msnyder@redhat.com>
11308 * regcache.c (fetch_register): Call target_fetch_register
11309 only if we don't call FETCH_PSEUDO_REGISTER.
11310 (store_register): Call target_store_register only if we
11311 don't call STORE_PSEUDO_REGISTER.
11313 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11315 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11316 ELF_MAKE_MSYMBOL_SPECIAL.
11317 * gdbarch.c, gdbarch.h: Regenerate.
11318 * arch-utils.c (default_make_msymbol_special): New function.
11319 * arch-utils.h (default_make_msymbol_special): Export.
11320 * elfread.c (elf_symtab_read): Compile use of
11321 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11323 * coffread.c (coff_symtab_read): Ditto, for
11324 COFF_MAKE_MSYMBOL_SPECIAL.
11326 2002-02-05 Jim Blandy <jimb@redhat.com>
11328 * solib-svr4.c (svr4_truncate_ptr): New function.
11329 (svr4_relocate_section_addresses): Do the address arithmetic with
11330 the appropriate truncation for target addresses, even when
11331 CORE_ADDR is larger than a target address.
11333 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11335 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11338 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11340 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11343 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11345 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11347 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11349 * gdbserver/linux-low.c: Remove unused include files.
11351 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11353 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11354 (read_inferior_memory): Use it.
11355 (write_inferior_memory): Likewise.
11357 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11359 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11360 grubbing through sys_errlist.
11362 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11364 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11366 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11367 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11369 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11371 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11372 (do_sfunc, set_cmd_sfunc): New functions.
11374 * command.h (struct cmd_list_element): Add field func.
11375 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11376 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11377 * cli/cli-decode.h: Ditto.
11379 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11380 (help_all, help_cmd_list): Ditto.
11381 (find_cmd, complete_on_cmdlist): Ditto.
11382 * top.c (execute_command): Ditto.
11384 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11387 * infcmd.c (notice_args_read): Fix function signature.
11389 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11390 * cli/cli-decode.c (add_set_cmd): Ditto.
11391 * utils.c (initialize_utils): Ditto.
11392 * maint.c (_initialize_maint_cmds): Ditto.
11393 * infrun.c (_initialize_infrun): Ditto.
11394 * demangle.c (_initialize_demangler): Ditto.
11395 * remote.c (add_packet_config_cmd): Ditto.
11396 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11397 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11398 * proc-api.c (_initialize_proc_api): Ditto.
11399 * kod.c (_initialize_kod): Ditto.
11400 * valprint.c (_initialize_valprint): Ditto.
11401 * top.c (init_main): Ditto.
11402 * infcmd.c (_initialize_infcmd): Ditto.
11403 * corefile.c (_initialize_core): Ditto.
11404 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11405 * arch-utils.c (initialize_current_architecture): Ditto.
11406 (_initialize_gdbarch_utils): Ditto.
11407 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11409 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11410 * wince.c (_initialize_inftarg): Ditto.
11411 * symfile.c (_initialize_symfile): Ditto.
11412 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11413 * language.c (_initialize_language): Ditto.
11414 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11416 2002-02-04 Michael Snyder <msnyder@redhat.com>
11418 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11420 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11422 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11423 Add rules for building the register data files.
11425 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11427 * regformats/regdat.sh: Add braces to the definition of
11428 expedite_regs_${arch}.
11430 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11432 * regformats/regdef.h (struct reg): Add comment describing the
11433 requirements for offset and size fields.
11435 2002-02-04 Andreas Schwab <schwab@suse.de>
11437 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11438 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11440 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11442 * gdbarch.sh (copyright): Update years in generated header.
11443 (SMASH_TEXT_ADDRESS): Add rule.
11444 * gdbarch.h, gdbarch.c: Re-generate.
11445 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11446 * dbxread.c: Likewise.
11447 * dwarfread.c: Likewise.
11448 * elfread.c: Likewise.
11449 * somread.c: Likewise.
11451 * arm-tdep.c (arm_smash_text_address): New function.
11452 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11454 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11456 Add support for hardware watchpoints on win32 native.
11457 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11458 CONTEXT_DEBUG_REGISTERS.
11459 (dr variable): New variable. Static array containing a local copy
11460 of debug registers.
11461 (debug_registers_changed): New variable. Reflects when debug registers
11462 are changed and need to be written to inferior.
11463 (debug_registers_used): New variable. Reflects when any debug register
11464 was set, used when new threads are created.
11465 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11467 (thread_rec): Set dr array if id is the thread of current_event .
11468 (child_continue, child_resume): Change the debug registers for all
11469 threads if debug_registers_changed.
11470 (child_add_thread): Change the debug registers if debug_registers_used.
11471 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11472 Link nm.h to new nm-cygwin.h file.
11473 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11474 of hardware registers.
11476 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11478 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11479 Restore behavour broken by 2002-01-20 Andrew Cagney
11480 <ac131313@redhat.com> IEEE_FLOAT removal.
11482 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11484 * c-valprint.c (c_val_print): Pass a proper valaddr to
11485 cp_print_class_method.
11486 * valops.c (search_struct_method): If there is only one method
11487 and args is NULL, return that method.
11489 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11491 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11492 accessing tag_name directly.
11494 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11496 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11497 of accessing tag_name directly.
11499 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11502 * gdbtypes.c (replace_type): New function.
11503 * gdbtypes.h (replace_type): Add prototype.
11504 * stabsread.c (read_type): Use replace_type.
11506 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11508 * Makefile.in (memattr.o): Add missing dependencies rule.
11510 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11512 * breakpoint.c (break_at_finish_command): Really export.
11513 (break_at_finish_at_depth_command): Ditto.
11514 (tbreak_at_finish_command): Ditto.
11515 * hppa-tdep.c: Include completer.h.
11516 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11517 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11519 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11521 * utils.c (do_write): New function.
11522 (error_stream): Rewrite combining the code from error_begin and
11524 (verror): Rewrite using error_stream.
11525 (error_begin): Delete function.
11527 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11529 * utils.c (error_begin): Make static.
11530 * defs.h (error_begin): Delete declaration.
11532 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11533 (decode_line_1): Use cplusplus_error instead of error_begin,
11534 cplusplus_hint and return_to_top_level.
11535 * coffread.c (coff_symfile_read): Use error instead of error_begin
11536 and return_to_top_level.
11537 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11539 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11541 * language.h (type_error, range_error): Make string parameter
11543 * language.c (warning_pre_print): Delete extern declaration.
11544 * dwarfread.c (warning_pre_print): Ditto.
11545 * language.c (type_error, range_error): Rewrite to use verror and
11546 vwarning instead of warning_begin.
11548 2002-02-01 Michael Snyder <msnyder@redhat.com>
11550 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11551 (set_ignore_count): Move misplaced comment back where it belongs.
11553 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11555 * command.h (NO_FUNCTION): Delete macro.
11556 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11557 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11558 * tracepoint.c (_initialize_tracepoint): Ditto.
11559 * cli/cli-decode.c (add_set_cmd): Ditto.
11560 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11562 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11564 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11565 Update ``this'' pointer when calling virtual functions.
11567 2002-02-01 Michael Snyder <msnyder@redhat.com>
11569 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11570 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11572 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11574 * regformats/reg-arm.dat: New file.
11575 * regformats/reg-i386.dat: New file.
11576 * regformats/reg-ia64.dat: New file.
11577 * regformats/reg-m68k.dat: New file.
11578 * regformats/reg-mips.dat: New file.
11579 * regformats/reg-ppc.dat: New file.
11580 * regformats/reg-sh.dat: New file.
11581 * regformats/regdef.h: New file.
11582 * regformats/regdat.sh: New file.
11584 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11586 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11587 (arm_frame_args_address, arm_frame_locals_address): New functions.
11588 (arm_frame_num_args): New function.
11589 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11590 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11591 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11593 2002-01-31 Michael Snyder <msnyder@redhat.com>
11595 * breakpoint.c (break_at_finish_command): Export.
11596 (break_at_finish_at_depth_command): Export.
11597 (tbreak_at_finish_command): Export.
11598 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11599 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11600 "txbreak" commands, which are HPPA specific.
11602 * printcmd.c (disassemble_command): Remove an ancient
11603 artifact of an old merge.
11605 * symfile.h (enum overlay_debugging_state):
11606 Define enum constant values for overlay mode.
11607 * symfile.c (overlay_debugging): Use enums instead of literals.
11608 (overlay_is_mapped, overlay_auto_command,
11609 overlay_manual_command): Ditto.
11611 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11612 breakpoint_here_p, breakpoint_inserted_here_p,
11613 breakpoint_thread_match, bpstat_stop_status,
11614 describe_other_breakpoints, check_duplicates, clear_command):
11615 Coding standard fixes.
11617 * target.c (target_xfer_memory): Add spaces, coding standard.
11618 (do_xfer_memory): Add missing line to trust-readonly
11619 code: check bfd SEC_READONLY flag for section.
11621 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11623 * PROBLEMS: Fix typo, 5.1->5.1.1.
11625 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11627 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11628 data symbols, since we search based on textlow and texthigh.
11629 (find_pc_sect_symtab): Likewise.
11631 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11633 * defs.h (vwarning): Declare.
11634 * utils.c (vwarning): New function.
11635 (warning): Call vwarning.
11636 (warning_begin): Delete function.
11638 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11639 the warning message.
11640 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11643 2002-01-30 Michael Snyder <msnyder@redhat.com>
11645 * NEWS: Mention "set trust-readonly-sections" command.
11646 Mention generate-core-file command.
11648 2002-01-15 Michael Snyder <msnyder@redhat.com>
11650 * target.c: New command, "set trust-readonly-sections on".
11651 (do_xfer_memory): Honor the suggestion to trust readonly sections
11652 by reading them from the object file instead of from the target.
11653 (initialize_targets): Register command "set trust-readonly-sections".
11655 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11657 * parse.c (target_map_name_to_register): Simplify, search regs and
11658 pseudo-regs using a single loop.
11660 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11662 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11664 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11666 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11667 * config/i386/i386v42mp.mh: Add i387-nat.o .
11668 * i386v4-nat.c: Include i387-nat.h.
11669 (supply_fpregset): Use i387_supply_fsave.
11670 (fill_fpregset): Use i387_fill_fsave.
11672 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11674 * arm-tdep.c (arm_call_dummy_words): Define.
11675 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11676 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11677 (CALL_DUMMY_WORDS): Define.
11678 (arm_call_dummy_words): Declare.
11679 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11680 (arm_linux_call_dummy_words): Declare.
11682 2002-01-30 Andreas Schwab <schwab@suse.de>
11684 * m68klinux-nat.c: Fix last change to use regcache_collect
11685 instead of referencing registers[] directly.
11687 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11689 * parse.c (target_map_name_to_register): Delete code wrapped in
11690 #ifdef REGISTER_NAME_ALIAS_HOOK.
11692 2002-01-28 Michael Snyder <msnyder@redhat.com>
11694 * regcache.c (legacy_read_register_gen): Need to be able to
11695 read pseudo-register as well as real register.
11696 (legacy_write_register_gen): Ditto.
11698 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11700 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11701 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11702 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11703 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11704 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11705 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11706 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11707 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11708 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11709 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11710 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11711 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11712 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11713 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11714 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11715 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11716 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11717 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11718 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11719 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11721 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11723 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11724 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11725 (initialize_current_architecture): Update target_byte_order using
11726 information from BFD.
11727 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11728 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11730 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11732 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11733 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11735 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11736 #ifdef INVALID_FLOAT.
11737 * infcmd.c (do_registers_info): Ditto.
11738 * values.c (unpack_double): Ditto. Add comment.
11740 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11741 already commented out.
11743 2002-01-26 Andreas Schwab <schwab@suse.de>
11745 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11746 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11747 registers and add support for PTRACE_GETREGS.
11749 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11751 GDB 5.1.1 released from 5.1 branch.
11752 * NEWS: Add 5.1.1 news.
11753 * README: Sync with 5.1 branch.
11755 2002-01-23 Fred Fish <fnf@redhat.com>
11757 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11758 stabstring on initial malloc. Reallocing will copy it for us,
11761 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11763 * Makefile.in (hpread_h): Delete.
11764 (HFILES_NO_SRCDIR): Remove hpread.h.
11765 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11766 (hpread.o): Update dependencies.
11767 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11769 * hp-psymtab-read.c: Remove file.
11770 * hp-symtab-read.c: Remove file.
11771 * hpread.h: Remove file.
11773 * hpread.c: Merge all contents of hp-psymtab-read.c,
11774 hp-symtab-read.c and hpread.h into this file, as it was prior to
11777 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11778 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11779 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11780 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11782 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11784 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11785 fill_gregset): Call gdbarch_tdep() just once, assign result to
11786 variable and use that, instead of calling the function several
11789 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11791 * configure.host: Accept sparcv9 as alias for sparc64.
11792 * configure.tgt: Likewise.
11794 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11796 * solib-aix5.c (build_so_list_from_mapfile)
11797 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11798 arguments is not reversed.
11799 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11800 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11802 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11804 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11805 modified version of obsolete sh_fetch_pseudo_register.
11806 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11807 (sh4_register_read): New function.
11808 (sh_pseudo_register_write): New function. Renamed and modified
11809 version of obsolete sh_store_pseudo_register.
11810 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11811 (sh4_register_write): New function.
11812 (sh_gdbarch_init): Remove setting of gdbarch function
11813 fetch_pseudo_register and store_pseudo_register. Remove setting of
11814 register_convert_to_raw, register_convert_to_virtual,
11815 register_convertible.
11816 (sh_sh4_register_convertible): Delete. No longer needed. All is
11817 taken care by architecture specific functions
11818 register_read/register_write.
11819 (sh_sh4_register_convert_to_virtual): Make static.
11820 (sh_sh4_register_convert_to_raw): Ditto.
11822 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11824 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11825 (floatformat_is_nan, floatformat_mantissa): Ditto.
11827 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11828 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11829 builtin_type_ieee_double_little,
11830 builtin_type_ieee_double_littlebyte_bigword,
11831 builtin_type_m68881_ext, builtin_type_i960_ext,
11832 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11833 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11834 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11835 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11837 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11839 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11840 parameter. Set frameless flag if it exists and depended of
11841 whether the scanned function is frameless or not.
11842 (xstormy16_skip_prologue): If function is frameless, return
11843 result of xstormy16_scan_prologue().
11844 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11847 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11849 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11850 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11851 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11852 sh_sh4_register_byte, sh_sh4_register_raw_size,
11853 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11854 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11855 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11856 sh_store_pseudo_register, sh_do_pseudo_register): Call
11857 gdbarch_tdep() just once, assign result to variable and use that,
11858 instead of calling the function several times.
11860 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11862 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11863 macros instead of LAST_FPU_CTRL_REGNUM.
11864 (store_register): Likewise.
11866 2002-01-21 Jim Blandy <jimb@redhat.com>
11868 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11869 is up-to-date before running the program, not just when a program
11872 2002-01-21 Fred Fish <fnf@redhat.com>
11874 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11875 when we have found all instructions we are looking for.
11877 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11879 * arm-tdep.c (arm_register_name): New function.
11880 (arm_registers_names): Make static.
11881 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11882 (arm_register_name): Declare.
11883 (REGISTER_NAME): Use it.
11885 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11886 Kevin Buettner <kevinb@redhat.com>
11888 Convert arm targets to new FRAME interface.
11889 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11890 (arm_frame_find_save_regs): Delete.
11891 (arm_frame_init_saved_regs): New.
11892 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11893 Allocate extra_info as required. Convert all uses of fsr.regs
11894 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11896 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11897 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11898 (check_prologue_cache, save_prologue_cache): Likewise.
11899 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11900 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11901 (FRAME_FIND_SAVED_REGS): Delete.
11902 (arm_frame_find_saved_regs): Delete prototype.
11903 (arm_frame_init_saved_regs): New prototype.
11904 (FRAME_INIT_SAVED_REGS): Define.
11906 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11908 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11910 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11912 From Jeff Law <law@redhat.com>:
11913 * infttrace.c: Include <sys/pstat.h>.
11914 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11915 exec file if the ttrace equivalent fails.
11917 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11919 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11920 (closeLogFile): Ditto.
11922 2002-01-20 Michael Chastain <mec@shout.net>
11924 * top.c (print_gdb_version): Bump copyright year to 2002.
11926 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11928 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11929 Zannoni and Eli Zaretskii.
11931 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11933 * buildsym.c: Update copyright years.
11934 * c-typeprint.c: Likewise.
11935 * dwarf2read.c: Likewise.
11936 * f-typeprint.c: Likewise.
11937 * gdbtypes.c: Likewise.
11938 * gdbtypes.h: Likewise.
11939 * hp-symtab-read.c: Likewise.
11940 * hpread.c: Likewise.
11941 * mdebugread.c: Likewise.
11942 * p-typeprint.c: Likewise.
11944 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11946 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11947 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11948 byte-order selectable.
11949 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11950 * arch-utils.c: Ditto.
11951 (set_endian): Ditto.
11952 (set_endian_from_file): Ditto.
11953 * gdbserver/low-sim.c (create_inferior): Ditto.
11954 * gdbarch.sh: Ditto.
11955 * gdbarch.h: Re-generate.
11956 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11957 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11958 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11959 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11960 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11961 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11962 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11963 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11965 * config/mips/tm-wince.h: Remove #undef of macro
11966 TARGET_BYTE_ORDER_SELECTABLE.
11967 * config/sh/tm-wince.h: Ditto.
11969 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11971 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11972 member function fields. Add accessor macro
11973 TYPE_FN_FIELD_ARTIFICIAL.
11974 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11975 * c-typeprint.c (c_type_print_base): Skip artificial member
11978 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11980 * f-typeprint.c: Delete unused function f_type_print_args.
11981 * p-typeprint.c: Delete unused function pascal_type_print_args.
11983 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11985 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11986 comment. Add ``artificial'' to ``union field_location''.
11988 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11990 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11991 * mdebugread.c (parse_symbol): Likewise.
11992 * stabsread.c (define_symbol): Likewise.
11993 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11994 initializing TYPE_FIELD_BITPOS to n (obsolete).
11995 (hpread_doc_function_type): Likewise.
11996 * hpread.c (hpread_function_type): Likewise.
11998 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12000 * configure.in (host_makefile_frag): Only require a host makefile
12001 fragment when a native build.
12002 * configure: Re-generate.
12004 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12006 * doublest.h (floatformat_from_type): Declare.
12007 * doublest.c (floatformat_from_type): New function.
12008 (convert_typed_floating): Use.
12010 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12011 call to function floatformat_from_type.
12013 * gdbarch.sh (IEEE_FLOAT): Delete.
12014 * gdbarch.h, gdbarch.c: Re-generate.
12015 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12016 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12017 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12018 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12019 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12020 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12021 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12022 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12023 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12024 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12025 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12026 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12028 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12029 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12030 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12031 * sh-tdep.c (sh_gdbarch_init): Ditto.
12032 * mips-tdep.c (mips_gdbarch_init): Ditto.
12033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12034 * cris-tdep.c (cris_gdbarch_init): Ditto.
12036 2002-01-20 Jiri Smid <smid@suse.cz>
12038 * configure.host, configure.tgt: Support x86-64.
12039 * NEWS: Note new target x86-64.
12041 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12042 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12043 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12044 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12045 x86-64-linux-nat.o): Fix dependencies.
12047 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12049 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12050 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12051 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12052 * config/sparc/xm-sun4os4.h: Delete file.
12053 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12055 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12057 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12058 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12059 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12060 * config/i386/i386lynx.mh (XM_FILE): Delete.
12061 * config/rs6000/xm-rs6000ly.h: Delete file.
12062 * config/sparc/xm-sparclynx.h: Delete file.
12063 * config/m68k/xm-m68klynx.h: Delete file.
12064 * config/i386/xm-i386lynx.h: Delete file.
12065 * config/xm-lynx.h: Delete file.
12066 * config/djgpp/fnchange.lst: Update.
12068 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12070 * alpha-tdep.c (alpha_register_byte): New function.
12071 (alpha_register_raw_size): Ditto.
12072 (alpha_register_virtual_size): Ditto.
12073 (alpha_skip_prologue_internal): Renamed from
12074 alpha_skip_prologue.
12075 (alpha_skip_prologue): New version that calls
12076 alpha_skip_prologue_internal.
12077 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12078 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12079 second argument from alpha_skip_prologue.
12080 (REGISTER_BYTE): Use alpha_register_byte.
12081 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12082 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12083 (FRAMELESS_FUNCTION_INVOCATION): Use
12084 generic_frameless_function_invocation_not.
12085 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12086 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12088 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12090 * config/mips/xm-news-mips.h: Delete file.
12091 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12093 * config/m88k/xm-m88k.h: Delete file.
12094 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12095 * config/m88k/xm-delta88v4.h: Ditto.
12096 * config/m88k/xm-delta88.h: Ditto.
12098 * config/alpha/xm-fbsd.h: Delete file.
12099 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12101 * config/sparc/xm-sparc.h: Delete file.
12102 * Makefile.in (xm-sun4os4.h): Delete dependency.
12103 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12104 * config/sparc/xm-sun4os4.h: Ditto.
12105 * config/sparc/xm-linux.h: Ditto.
12107 * config/i386/xm-windows.h: Delete file.
12109 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12111 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12112 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12114 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12116 * alpha-tdep.c (alpha_call_dummy_words): New.
12117 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12118 (CALL_DUMMY_P): Define.
12119 (CALL_DUMMY_WORDS): Define.
12120 (SIZEOF_CALL_DUMMY_WORDS): Define.
12122 2002-01-19 Per Bothner <per@bothner.com>
12124 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12125 isn't NULL, which can happen with some gcj-3.x-produced code.
12127 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12129 * alpha-tdep.c (alpha_register_virtual_type): New function.
12130 (alpha_init_frame_pc_first): Ditto.
12131 (alpha_fix_call_dummy): Ditto.
12132 (alpha_store_struct_return): Ditto.
12133 (alpha_extract_struct_value_address): Ditto.
12134 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12135 alpha_register_virtual_type.
12136 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12137 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12138 alpha_extract_struct_value_address.
12139 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12140 (INIT_FRAME_PC): Use init_frame_pc_noop.
12141 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12143 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12145 * i386gnu-nat.c: Include "i386-tdep.h".
12146 (fetch_fpregs): Simplify code dealing with uninitialized floating
12147 point states such that it doesn't require FP7_REGNUM.
12149 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12151 * alpha-tdep.c (frame_extra_info): New.
12152 (alpha_find_saved_regs): Make static. Use
12154 (alpha_frame_init_saved_regs): New function.
12155 (alpha_frame_saved_pc): Use frame->extra_info.
12156 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12157 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12158 (init_extra_frame_info): Rename to...
12159 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12160 (alpha_print_extra_frame_info): New function.
12161 (alpha_frame_locals_address): Ditto.
12162 (alpha_frame_args_address): Ditto.
12163 (alpha_pop_frame): Use frame->extra_info.
12164 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12165 alpha_frame_args_address.
12166 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12167 (alpha_find_saved_regs): Remove prototype.
12168 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12169 (EXTRA_FRAME_INFO): Remove.
12170 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12171 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12173 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12175 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12176 (alpha_cannot_fetch_register): Ditto.
12177 (alpha_cannot_store_register): Ditto.
12178 (alpha_register_convertible): Ditto.
12179 (alpha_use_struct_convention): Ditto.
12180 * config/alpha/tm-alpha.h: Update copyright years.
12181 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12182 (INNER_THAN): Use core_addr_lessthan.
12183 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12184 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12185 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12186 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12187 (FRAME_CHAIN): Remove unnecessary cast.
12189 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12191 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12194 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12196 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12197 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12198 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12199 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12200 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12201 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12202 * x86-64-linux-nat.c: Ditto.
12204 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12206 * alpha-tdep.c (alpha_register_name): New function.
12207 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12208 (REGISTER_NAME): Define.
12210 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12212 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12214 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12216 * alpha-tdep.c: Update copyright years.
12217 (alpha_next_pc): New function.
12218 (alpha_software_single_step): Ditto.
12219 * config/alpha/tm-alpha.h: Add prototype for
12220 alpha_software_single_step.
12222 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12224 * alphabsd-nat.c: Update copyright years.
12225 (fill_gregset): Use regcache_collect.
12226 (fill_fpregset): Likewise.
12227 (fetch_inferior_registers): Only fetch integer registers
12228 if requested to do so.
12229 (store_inferior_registers): Only store integer registers
12230 if requested to do so.
12232 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12234 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12235 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12236 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12237 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12238 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12239 * config/arm/linux.mh (XDEPFILES): Delete.
12240 * config/arm/nbsd.mh (XDEPFILES): Delete.
12241 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12242 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12243 * config/i386/i386m3.mh (XDEPFILES): Delete.
12244 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12245 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12246 * config/i386/fbsd.mh (XDEPFILES): Delete.
12247 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12248 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12249 * config/i386/i386v4.mh (XDEPFILES): Delete.
12250 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12251 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12252 * config/i386/i386aix.mh (XDEPFILES): Delete.
12253 * config/i386/go32.mh (XDEPFILES): Delete.
12254 * config/i386/cygwin.mh (XDEPFILES): Delete.
12255 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12256 * config/i386/i386mach.mh (XDEPFILES): Delete.
12257 * config/i386/i386v32.mh (XDEPFILES): Delete.
12258 * config/i386/linux.mh (XDEPFILES): Delete.
12259 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12260 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12261 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12262 * config/i386/i386sco.mh (XDEPFILES): Delete.
12263 * config/i386/i386v.mh (XDEPFILES): Delete.
12264 * config/i386/nbsd.mh (XDEPFILES): Delete.
12265 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12266 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12267 * config/i386/symmetry.mh (XDEPFILES): Delete.
12268 * config/i386/obsd.mh (XDEPFILES): Delete.
12269 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12270 * config/ia64/linux.mh (XDEPFILES): Delete.
12271 * config/ia64/aix.mh (XDEPFILES): Delete.
12272 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12273 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12274 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12275 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12276 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12277 * config/m68k/linux.mh (XDEPFILES): Delete.
12278 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12279 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12280 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12281 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12282 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12283 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12284 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12285 * config/m88k/delta88.mh (XDEPFILES): Delete.
12286 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12287 * config/m88k/m88k.mh (XDEPFILES): Delete.
12288 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12289 * config/mips/linux.mh (XDEPFILES): Delete.
12290 * config/mips/irix6.mh (XDEPFILES): Delete.
12291 * config/mips/irix5.mh (XDEPFILES): Delete.
12292 * config/mips/irix4.mh (XDEPFILES): Delete.
12293 * config/mips/irix3.mh (XDEPFILES): Delete.
12294 * config/mips/decstation.mh (XDEPFILES): Delete.
12295 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12296 (NATDEPFILES): Move core-aout.o to here.
12297 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12298 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12299 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12300 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12301 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12302 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12303 * config/pa/hpux11.mh (XDEPFILES): Delete.
12304 * config/powerpc/aix.mh (XDEPFILES): Delete.
12305 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12306 * config/powerpc/linux.mh (XDEPFILES): Delete.
12307 * config/romp/rtbsd.mh: Rename XDEPFILES.
12308 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12309 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12310 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12311 * config/s390/s390.mh (XDEPFILES): Delete.
12312 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12313 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12314 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12315 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12316 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12317 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12318 * config/sparc/linux.mh (XDEPFILES): Delete.
12319 * config/vax/vaxult.mh (XDEPFILES): Delete.
12320 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12321 * Makefile.in (DEPFILES): Remove XDEPFILES.
12323 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12325 * utils.c (internal_verror): Fix comments, default is yes not no.
12326 Update queries to match. Default to quit and dump core.
12328 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12330 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12332 * defs.h, event-top.c, gdbcmd.h: Ditto.
12333 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12334 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12335 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12336 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12337 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12338 * mi/mi-main.c:Ditto.
12340 * stack.c, symfile.c: Update copyright.
12342 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12344 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12345 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12346 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12347 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12349 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12351 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12352 * gdbserver/low-lynx.c (myattach): Likewise.
12353 * gdbserver/low-nbsd.c (myattach): Likewise.
12354 * gdbserver/low-sim.c (myattach): Likewise.
12355 * gdbserver/low-sparc.c (myattach): Likewise.
12356 * gdbserver/low-sun3.c (myattach): Likewise.
12358 * gdbserver/low-linux.c (myattach): New function.
12360 * gdbserver/server.c (attach_inferior): New function.
12361 (main): Handle "--attach".
12363 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12365 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12368 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12370 * c-typeprint.c (is_type_conversion_operator): Add additional
12371 check for non-conversion operators.
12373 2002-01-15 Michael Snyder <msnyder@redhat.com>
12375 * linux-proc.c: Add "info proc" command, a la procfs.c.
12376 (read_mapping): New function, abstract and re-use code.
12377 (linux_find_memory_regions): Use new func read_mapping.
12378 (linux_info_proc_cmd): New function, implement "info proc".
12379 (_initialize_linux_proc): Add new command "info proc".
12381 2002-01-15 Michael Snyder <msnyder@redhat.com>
12383 * symfile.c (generic_load): Use bfd_map_over_sections method
12384 instead of manipulating bfd structure members directly.
12385 (add_section_size_callback): New function, bfd sections callback
12386 used by generic_load.
12387 (load_sections_callback): New function, bfd sections callback
12388 used by generic_load.
12390 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12392 [Based on work by Jim Blandy]
12393 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12394 (builtin_type_vec128): Export.
12395 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12397 (builtin_type_vec128): New builtin type for 128 bit vector
12399 (build_gdbtypes): Initialize builtin_type_v16qi and
12400 builtin_type_v8hi. Create the vec128 register builtin type
12402 (build_builtin_type_vec128): New function.
12403 (_initialize_gdbtypes): Register builtin_type_v16qi and
12404 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12405 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12406 AltiVec register to new builtin type.
12408 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12410 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12413 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12415 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12416 CLEAN_UP_REGISTER_VALUE.
12417 * regcache.c (supply_register): Update only call.
12419 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12421 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12422 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12423 a29k-*-vxworks* targets as obsolete.
12425 2002-01-14 Michael Snyder <msnyder@redhat.com>
12427 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12428 until we can resolve portability issues.
12429 * gregset.h: Remove references to fpxregs.
12430 * gcore.c (gcore_command): Initialize note_sec to NULL.
12432 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12434 * signals.c (target_signal_to_name): Rewrite. Only use
12435 signals[].name when in bounds and non-NULL.
12437 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12439 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12440 * signals.c (target_signal_to_name): Verify that SIG is within the
12441 bounds of the signals array.
12443 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12445 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12447 2002-01-13 Keith Seitz <keiths@redhat.com>
12449 * stack.c (print_frame_info_base): Print the frame's pc
12450 only if when print_frame_info_listing_hook is not defined.
12452 2002-01-13 Keith Seitz <keiths@redhat.com>
12454 * varobj.c (varobj_set_value): Make sure that there were no
12455 errors evaluating the object before attempting to set its
12457 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12458 so this offset adjustment is no longer necessary.
12459 (create_child): Don't set the error flag if the child is
12460 a CPLUS_FAKE_CHILD.
12461 (value_of_child): If value_fetch_lazy fails, return NULL
12462 so that callers will be notified that an error occurred.
12463 (c_value_of_variable): Delay check of variable's validity
12464 until later. We actually want all structs and unions to have
12466 Do not return "???" for variables which could not be evaluated.
12467 This error condition must be returned to the caller so that it
12468 can get the error condition from gdb.
12469 (cplus_name_of_child): Adjust index for vptr before figuring
12470 out the name of the child.
12471 (cplus_value_of_child): If a child's (real) parent is not valid,
12472 don't even bother trying to give a value for it. Just return
12473 an error. Change all instances in this function.
12474 (cplus_type_of_child): If our parent is one of the "fake"
12475 parents, we need to get at the type of the real parent, and
12476 derive the child's true type using this information.
12478 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12480 From 2002-01-09 John Marshall <johnm@falch.net>:
12481 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12482 sources.redhat.com, and tweak some related URLs which had
12483 suffered from linkrot.
12485 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12488 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12489 structures passed in registers.
12491 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12493 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12494 white space which prevented compilation. Reported by DSK
12495 <dsk@student.unsw.edu.au>.
12497 2002-01-11 Michael Snyder <msnyder@redhat.com>
12499 * symfile.c (build_section_addr_info_from_section_tab):
12500 Use bfd access method instead of manipulating bfd directly.
12501 (syms_from_objfile): Ditto.
12502 (simple_overlay_update_1): Ditto.
12503 (simple_overlay_update): Ditto.
12504 (generic_load): Ditto.
12505 (overlay_unmapped_address): FIXME comment, bfd access methods.
12506 (sections_overlap): FIXME comment, bfd access methods.
12507 (pc_in_mapped_range): FIXME comment, bfd access methods.
12508 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12509 (section_is_mapped): FIXME comment, bfd access methods.
12510 (section_is_overlay): FIXME comment, bfd access methods.
12512 * symfile.c (generic_load): Whitespace and long line cleanups.
12513 Remove duplicate variable, change several local variables to
12514 more appropriate data types.
12515 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12517 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12519 From Peter Schauer:
12520 * language.c (longest_local_hex_string_custom): Use phex_nz to
12521 convert NUM to a hex string.
12523 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12525 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12527 Update Copyright year.
12529 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12531 * language.c (longest_raw_hex_string): Delete unused function.
12533 2002-01-11 Petr Sorfa <petrs@caldera.com>
12535 * MAINTAINERS (write-after-approval): Add myself.
12536 * dwarf2read.c (read_tag_string_type): Handling of
12538 (read_tag_string_type): FORTRAN fix to prevent propagation of
12540 (set_cu_language): Handling of DW_LANG_Fortran95
12542 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12544 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12545 GETPID(inferior_ptid).
12546 (store_inferior_registers): Likewise.
12548 2002-01-10 Jason Merrill <jason@redhat.com>
12550 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12553 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12555 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12556 and bfd/elf32-sh-nbsd.c.
12558 2002-01-10 Michael Snyder <msnyder@redhat.com>
12560 * NEWS: Mention --pid and corefile/proc-id behavior change.
12562 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12563 * gcore.c: Include cli/cli-decode.h instead of command.h.
12565 * main.c (captured_main): Add new command line option "--pid".
12566 If the second command line argument (following the symbol-file)
12567 begins with a digit, try to attach to it before trying to open
12569 (print_gdb_help): Document the "--pid" argument.
12571 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12573 * completer.c (command_completer): New function.
12575 * completer.h <command_completer>: Add prototype.
12577 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12578 completer for the "help" command.
12580 2002-01-09 Jason Merrill <jason@redhat.com>
12582 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12584 2002-01-09 Michael Snyder <msnyder@redhat.com>
12586 * i386-linux-nat.c (fill_fpxregset): Make global.
12587 (store_fpxregset): Ditto.
12589 * gregset.h (gdb_fpxregset_t): Define.
12590 (supply_fpxregset): Prototype.
12591 (fill_fpxregset): Prototype.
12593 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12595 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12597 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12598 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12599 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12601 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12603 * MAINTAINERS: Update target maintainer rules so that any
12604 Maintainer can approve a tested patch for a maintenance-only
12607 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12609 * MAINTAINERS (write-after-approval): Add myself.
12611 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12614 2002-01-08 Michael Snyder <msnyder@redhat.com>
12616 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12617 real name of the executable, rather than the /proc name.
12619 2002-01-03 Michael Snyder <msnyder@redhat.com>
12621 Implement a "generate-core-file" command in gdb, save target state.
12622 * gcore.c: New file. Implement new command 'generate-core-file'.
12623 Save a corefile image of the current state of the inferior.
12624 * linux-proc.c: Add linux-specific code for saving corefiles.
12625 * target.h (struct target_ops): Add new target vectors for saving
12626 corefiles; to_find_memory_regions and to_make_corefile_notes.
12627 (target_find_memory_regions): New macro.
12628 (target_make_corefile_notes): New macro.
12629 * target.c (update_current_target): Inherit new target methods.
12630 (dummy_find_memory_regions): New place-holder method.
12631 (dummy_make_corefile_notes): New place-holder method.
12632 (init_dummy_target): Initialize new dummy target vectors.
12633 * exec.c (exec_set_find_memory_regions): New function.
12634 Allow the exec_ops vector for memory regions to be taken over.
12635 (exec_make_note_section): New function, target vector method.
12636 * defs.h (exec_set_find_memory_regions): Export prototype.
12637 * procfs.c (proc_find_memory_regions): New function, corefile method.
12638 (procfs_make_note_section): New function, corefile method.
12639 (init_procfs_ops): Set new target vector pointers.
12640 (find_memory_regions_callback): New function.
12641 (procfs_do_thread_registers): New function.
12642 (procfs_corefile_thread_callback): New function.
12643 * sol-thread.c (sol_find_memory_regions): New function.
12644 (sol_make_note_section): New function.
12645 (init_sol_thread_ops): Initialize new target vectors.
12646 * inftarg.c (inftarg_set_find_memory_regions): New function.
12647 Allow to_find_memory_regions vector to be taken over.
12648 (inftarg_set_make_corefile_notes): New function.
12649 Allow to_make_corefile_notes vector to be taken over.
12650 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12651 interface layer if not target_has_execution (may be a corefile).
12652 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12653 * config/sparc/sun4sol2.mh: Ditto.
12654 * config/alpha/alpha-linux.mh: Ditto.
12655 * config/arm/linux.mh: Ditto.
12656 * config/i386/x86-64linux.mh: Ditto.
12657 * config/ia64/linux.mh: Ditto.
12658 * config/m68k/linux.mh: Ditto.
12659 * config/mips/linux.mh: Ditto.
12660 * config/powerpc/linux.mh: Ditto.
12661 * config/sparc/linux.mh: Ditto.
12663 2002-01-07 Michael Snyder <msnyder@redhat.com>
12665 * arm-linux-nat.c: Remove references to regcache.c internal data
12666 (registers[] and register_valid[]).
12668 2002-01-07 Michael Snyder <msnyder@redhat.com>
12670 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12671 so that attaching to a pid will automatically read the process's
12672 symbol file and shlibs.
12673 * Makefile.in: Add rule for linux-proc.o.
12674 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12675 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12676 * config/arm/linux.mh: Ditto.
12677 * config/i386/linux.mh: Ditto.
12678 * config/i386/x86-64linux.mh: Ditto.
12679 * config/ia64/linux.mh: Ditto.
12680 * config/m68k/linux.mh: Ditto.
12681 * config/mips/linux.mh: Ditto.
12682 * config/powerpc/linux.mh: Ditto.
12683 * config/sparc/linux.mh: Ditto.
12685 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12687 * win32-nat.c: Add i386-tdep.h dependency.
12689 2002-01-07 Michael Snyder <msnyder@redhat.com>
12691 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12692 instead of bfd_get_arch_size. Don't bail out just because
12693 there's no exec_bfd.
12695 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12696 * p-valprint.c (pascal_object_print_value): Ditto.
12697 * somread.c (som_symtab_read): Ditto.
12698 * symfile.c (simple_free_overlay_region_table): Ditto.
12699 * valops.c (value_assign): Ditto.
12701 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12702 use tilde_expand and strerror for opening save-tracepoints file.
12704 * thread-db.c (thread_db_new_objfile): Indendation fix.
12706 * infptrace.c (GDB_MAX_ALLOCA): New define.
12707 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12708 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12709 can be overridden with whatever value is appropriate to the host).
12710 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12711 alloca to allocate potentially large buffer.
12712 * rs6000-nat.c (child_xfer_memory): Ditto.
12713 * symm-nat.c (child_xfer_memory): Ditto.
12714 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12716 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12718 From Nick Clifton <nickc@redhat.com>
12719 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12721 2002-01-07 Michael Snyder <msnyder@redhat.com>
12723 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12724 Don't use exec_bfd if it's NULL.
12726 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12728 * valops.c (value_arg_coerce): Fix formatting.
12730 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12732 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12733 * gnu-nat.c: Ditto.
12735 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12737 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12738 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12739 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12740 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12741 z8k-coff have not been multi-arched. Update z8k-coff build
12744 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12746 * MAINTAINERS: Mark a29k target as obsolete.
12747 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12748 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12750 * NEWS: Note that a29k targets are obsolete.
12751 * a29k-tdep.c: Mark as obsolete.
12752 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12753 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12754 a29k-*-vxworks* targets as obsolete.
12755 * remote-adapt.c: Obsolete.
12756 * remote-eb.c: Obsolete.
12757 * remote-mm.c: Obsolete.
12758 * remote-udi.c: Obsolete.
12759 * config/a29k/a29k-udi.mt: Obsolete.
12760 * config/a29k/a29k.mt: Obsolete.
12761 * config/a29k/tm-a29k.h: Obsolete.
12762 * config/a29k/tm-vx29k.h: Obsolete.
12763 * config/a29k/vx29k.mt: Obsolete.
12765 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12767 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12768 with BFD_ENDIAN_BIG.
12770 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12772 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12773 * configure, config.in: Re-generate.
12774 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12775 * defs.h: Do not include <endian.h>.
12777 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12779 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12780 * config.in: Regenerate.
12781 * configure.in: Update copyright years.
12782 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12783 * configure: Regenerate.
12784 * i386bsd-nat.c: Update copyright years.
12785 (fill_gregset): Use regcache_collect.
12786 (fetch_inferior_registers): Only fetch integer registers
12787 if requested to do so. Add support for XMM registers
12788 using PT_GETXMMREGS.
12789 (store_inferior_registers): Only store integer registers
12790 if requested to do so. Add support for XMM registers
12791 using PT_SETXMMREGS.
12792 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12793 (store_inferior_registers): Remove.
12794 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12795 (fetch_elfcore_registers): New function.
12796 (i386nbsd_elfcore_fns): New.
12797 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12798 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12800 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12801 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12802 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12803 * config/i386/tm-nbsd.h: Update copyright years.
12804 (HAVE_SSE_REGS): Define.
12805 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12806 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12807 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12808 (SIGCONTEXT_PC_OFFSET): Remove.
12809 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12811 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12813 * configure.tgt: Remove powerpc-*-macos* target.
12814 * config/m68k/xm-mpw.h: Delete file.
12815 * config/xm-mpw.h: Delete file.
12816 * ser-mac.c: Delete file.
12817 * mpw-make.sed: Delete file.
12818 * mpw-config.in: Delete file.
12819 * mac-xdep.c: Delete file.
12820 * mac-gdb.r: Delete file.
12821 * mac-defs.h: Delete file.
12822 * mac-nat.c: Delete file.
12823 * config/powerpc/macos.mh: Delete file.
12824 * config/powerpc/macos.mt: Delete file.
12825 * config/powerpc/nm-macos.h: Delete file.
12826 * config/powerpc/tm-macos.h: Delete file.
12827 * source.c (openp, open_source_file): Remove obsolete code.
12828 * top.c (gdb_readline): Ditto.
12829 * utils.c (query): Ditto.
12830 * event-top.c (display_gdb_prompt): Ditto.
12831 * Makefile.in (ser-mac.o): Delete obsolete target.
12834 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12836 * defs.h (BIG_ENDIAN): Delete macro definition.
12837 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12838 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12839 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12840 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12841 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12842 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12843 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12844 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12845 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12846 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12847 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12848 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12849 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12850 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12851 * gdbarch.c: Re-generate.
12853 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12855 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12858 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12860 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12862 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12864 * value.h (value_ptr): Delete typedef.
12866 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12868 * i386nbsd-nat.c: Update copyright years.
12869 Include i386-tdep.h.
12871 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12873 * stabsread.c: Update copyright years.
12875 From Debashis Mahata <debashis.mahata@wipro.com>:
12876 (read_struct_fields): Deal with Sun C compiler erroneous stab
12877 output for structs and unions.
12880 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12882 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12885 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12887 * cp-abi.c: Fix whitespace.
12888 (baseclass_offset): New wrapper function.
12889 * cp-abi.h (baseclass_offset): Add prototype.
12890 (struct cp_abi_ops): Add baseclass_offset pointer.
12892 * valops.c (vb_match): Move to...
12893 * gnu-v2-abi.c (vb_match): here.
12894 * valops.c (baseclass_offset): Move to...
12895 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12897 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12899 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12900 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12901 * hpacc-abi.c (init_hpacc_ops): Likewise.
12903 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12905 * valops.c (find_overload_match): Accept obj as a
12906 reference parameter. Update it before returning.
12907 * value.h (find_overload_match): Update prototype.
12908 * eval.c (evaluate_subexp_standard): Pass object to
12909 find_overload_match by reference.
12911 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12913 * valarith.c: Replace value_ptr with struct value pointer. Remove
12914 register attribute from value declarations.
12917 * scm-lang.c (scm_lookup_name): Ditto.
12919 2002-01-03 Michael Snyder <msnyder@redhat.com>
12921 Abstract the functionality of iterating over mapped memory
12922 regions into a general purpose iterator function.
12923 * procfs.c (iterate_over_mappings): New function, general purpose
12924 iterator for memory sections.
12925 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12926 (solib_mappings_callback): New function, callback for above.
12927 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12928 (info_mappings_callback): New function, callback for above.
12930 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12932 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12934 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12935 * i386-tdep.c: Include "elf-bfd.h".
12936 (process_note_abi_tag_sections): New function.
12937 (i386_gdbarch_init): Add code to recognize various OS/ABI
12940 * maint.c (_initialize_maint_cmds): Add missing \ in
12943 For older changes see ChangeLog-2001
12949 version-control: never