1 2002-11-14 Andrew Cagney <ac131313@redhat.com>
3 * regcache.h (deprecated_registers): Rename registers.
4 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
5 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
6 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
7 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
8 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
9 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
10 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
11 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
12 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
13 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
14 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
17 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
19 * utils.c (gdb_realpath): Add comment mentioning realpath with a
22 2002-11-13 Andrew Cagney <cagney@redhat.com>
24 * regcache.h (deprecated_read_register_bytes): Rename
26 (deprecated_write_register_bytes): Rename write_register_bytes.
27 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
28 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
29 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
30 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
31 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
32 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
33 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
34 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
35 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
36 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
37 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
38 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
39 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
40 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
42 2002-11-13 Jim Blandy <jimb@redhat.com>
44 * findvar.c (read_var_value): Doc fix.
46 2002-11-13 Andrew Cagney <cagney@redhat.com>
48 * regcache.c (struct regcache): Replace passthough_p with
50 (regcache_xmalloc): Initialize readonly_p.
51 (build_regcache): Initialize readonly_p.
52 (regcache_save): New function.
53 (regcache_restore): New function.
54 (regcache_cpy): Re-implement using regcache_save and
56 (regcache_raw_read): Update.
57 (regcache_cooked_read): When a read-only cache, checked for cached
58 pseudo register values.
59 (regcache_raw_write): Assert that the cache is not read-only.
60 Remove code handling a non-passthrough cache.
61 * regcache.h (regcache_save): Declare.
62 (regcache_restore): Declare.
64 2002-11-13 Andrew Cagney <cagney@redhat.com>
66 * regcache.c (struct regcache_descr): Add fields
67 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
68 (init_legacy_regcache_descr): Compute the size of a cooked
69 register cache and then assign that to sizeof_raw_registers. Set
70 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
71 (init_legacy_regcache_descr): Ditto.
73 2002-11-13 Andrew Cagney <cagney@redhat.com>
75 * regcache.c (register_buffer): Move to near start of file, update
77 (regcache_raw_read): Use.
78 (regcache_raw_write): Use.
79 (struct regcache): Rename raw_registers to registers and
80 raw_register_valid_p to register_valid_p.
81 (regcache_xmalloc): Update.
82 (regcache_xfree): Update.
83 (register_buffer): Update.
84 (regcache_cpy): Update.
85 (regcache_cpy_no_passthrough): Update.
86 (regcache_valid_p): Update.
87 (deprecated_grub_regcache_for_registers): Update.
88 (deprecated_grub_regcache_for_register_valid): Update.
89 (set_register_cached): Update.
90 (regcache_raw_write): Update.
92 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
94 * p-exp.y (name_not_typename): Use copy_name to
95 set current_type variable for fields of THIS.
97 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
99 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
100 * monitor.c (init_base_monitor_ops): Likewise.
101 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
102 * remote-array.c (init_array_ops): Likewise.
103 * remote-e7000.c (init_e7000_ops): Likewise.
104 * remote-es.c (init_es1800_ops): Likewise.
105 (init_es1800_child_ops): Likewise.
106 * remote-rdp.c (init_remote_rdp_ops): Likewise.
107 * remote-sim.c (init_gdbsim_ops): Likewise.
108 * remote-st.c (init_st2000_ops): Likewise.
109 * sol-thread.c (init_sol_core_ops): Likewise.
110 (init_sol_thread_ops): Likewise.
111 * v850ice.c (init_850ice_ops): Likewise.
112 * win32-nat.c (init_child_ops): Likewise.
113 * wince.c (init_child_ops): Likewise.
115 2002-11-12 Andrew Cagney <ac131313@redhat.com>
117 * utils.c (gdb_realpath): Make rp a constant pointer.
119 2002-11-12 Andrew Cagney <ac131313@redhat.com>
121 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
122 a constant buffer; cannonicalize_file_name(); realpath() with a
123 pathconf() defined buffer, xstrdup().
125 2002-11-12 Andrew Cagney <ac131313@redhat.com>
127 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
128 to hang2.C; hang3.c to hang3.C.
130 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
132 * findvar.c (read_var_value): Reenable TLS code.
134 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
135 Jim Blandy <jimb@redhat.com>
137 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
138 * target.c (update_current_target): Add
139 to_get_thread_local_address.
140 * target.h (to_get_thread_local_address): Export.
141 (target_get_thread_local_address): Define.
142 (target_get_thread_local_address_p): Define.
143 * thread-db.c: Include solib-svr4.h.
144 (td_thr_tls_get_addr_p): Define.
145 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
146 (thread_db_get_thread_local_address): New function.
147 (init_thread_db_ops): Initialize to_get_thread_local_address.
148 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
149 * configure: Regenerate.
150 * config.in: Regenerate.
152 2002-11-11 David Carlton <carlton@math.stanford.edu>
154 * linespec.c (set_flags): New function.
155 (decode_line_1): Move code into set_flags.
157 2002-11-11 David Carlton <carlton@math.stanford.edu>
159 * linespec.c (decode_line_1): Move chunks of code to separate
161 (initialize_defaults): New function.
162 (decode_indirect): New function.
164 2002-11-11 Andrew Cagney <ac131313@redhat.com>
166 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
167 instead of void_code_ptr.
168 (sigtramp_saved_pc): Ditto.
170 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
173 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
175 * gdbtypes.h (struct main_type): Move artificial flag out of
176 loc. New member of ``struct field'' named static_kind. Reduce
177 overloaded meaning of bitsize.
178 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
179 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
180 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
182 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
184 (template_to_fixed_record_type, template_to_static_fixed_type)
185 (to_record_with_fixed_variant_part): Likewise.
186 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
187 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
188 * dwarfread.c (struct_type, enum_type): Likewise.
189 * hpread.c (hpread_read_enum_type)
190 (hpread_read_function_type, hpread_read_doc_function_type)
191 (hpread_read_struct_type): Likewise.
192 * mdebugread.c (parse_symbol): Likewise.
194 2002-11-10 Andrew Cagney <ac131313@redhat.com>
196 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
197 * stack.c (print_frame_info_base): Update.
198 (print_frame_info_base, frame_info): Update.
199 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
200 (sparc_frame_saved_pc): Update.
201 * ada-lang.c (find_printable_frame): Update.
202 * breakpoint.c (deprecated_frame_in_dummy): Update.
204 2002-11-09 Mark Kettenis <kettenis@gnu.org>
206 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
208 (regmap): Extend to cover all registers.
209 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
210 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
212 (fetch_register, sore_register): Simplify.
213 (old_fetch_inferior_registers, old_store_inferior_registers):
215 (cannot_fetch_register, cannot_store_register): Change
216 implementation to use regmap array to decide which registers
217 cannot be fetched/stored. This removes $orig_eax from the
218 registers that cannot be fetched/stored.
219 (fetch_inferior_registers): Call fetch_register directly instead
220 of calling old_fetch_inferior_registers.
221 (store_inferior_registers): Call store_register directly instead
222 of calling old_store_inferior_registers.
223 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
224 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
225 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
227 2002-11-09 Klee Dienes <kdienes@apple.com>
229 * i387-tdep.c (i387_supply_register): When called with NULL as a
230 buffer, mark the register as not provided (to mirror the behavior
232 (i387_supply_fxsave): Ditto.
233 (i387_supply_fsave): Ditto (inherits the behavior from
234 i387_supply_register).
236 2002-11-09 Klee Dienes <kdienes@apple.com>
238 * blockframe.c (sigtramp_saved_pc): Use
239 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
240 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
241 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
243 2002-11-09 Andrew Cagney <ac131313@redhat.com>
245 * frame.c (get_prev_frame): Test prev_p to identify a previously
246 unwound frame. Initialize prev_p.
247 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
250 2002-11-09 Andrew Cagney <ac131313@redhat.com>
252 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
253 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
254 more comments. Zap dead code.
256 2002-11-09 Mark Kettenis <kettenis@gnu.org>
258 * infcmd.c (print_vector_info, print_float_info): Move code that
259 checks whether the target has any registers and whether there is a
260 selected frame up, such that it is also used if a target provides
261 multi-arch definitions of these functions.
263 2002-11-08 Andrew Cagney <ac131313@redhat.com>
265 * Makefile.in (DESTDIR): Define.
266 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
269 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
270 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
272 2002-11-08 Andrew Cagney <ac131313@redhat.com>
274 * i386-linux-tdep.c: Include "reggroups.h".
275 (i386_linux_register_reggroup_p): New function.
276 (i386_linux_init_abi): Set register_reggroup_p to
277 i386_linux_register_reggroup_p.
278 * i386-tdep.h (i386_register_reggroup_p): Declare.
279 * i386-tdep.c: Include "reggroups.h".
280 (i386_init_reggroups): New function.
281 (i386_add_reggroups): New function.
282 (i386_register_reggroup_p): New function.
283 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
284 (_initialize_i386_tdep): Call i386_init_reggroups.
285 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
288 2002-11-09 Mark Kettenis <kettenis@gnu.org>
290 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
291 request that's available in *BSD.
293 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
295 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
298 2002-11-08 Andrew Cagney <ac131313@redhat.com>
300 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
301 * dummy-frame.c (find_dummy_frame): Rename
302 generic_find_dummy_frame, make static. Return the dummy frame
303 instead of the regcache.
304 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
305 (cached_find_dummy_frame): New function. Use find_dummy_frame.
306 (dummy_frame_register_unwind): Rename
307 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
308 * dummy-frame.h (dummy_frame_register_unwind): Rename
309 generic_call_dummy_register_unwind.
311 2002-11-08 Mark Kettenis <kettenis@gnu.org>
313 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
314 except the inclusion of "i386/tm-i386.h", to...
315 * config/i386/nm-i386v42mp.h: ...here.
316 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
318 2002-11-08 Andrew Cagney <ac131313@redhat.com>
320 * Makefile.in (frame.o): Update dependencies.
321 * blockframe.c (current_frame, frame_obstack_alloc)
322 (frame_saved_regs_zalloc, get_current_frame)
323 (set_current_frame, create_new_frame)
324 (set_unwind_by_pc, get_next_frame)
325 (flush_cached_frames, reinit_frame_cache)
326 (frame_saved_regs_register_unwind)
327 (deprecated_generic_get_saved_register)
328 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
329 (_initialize_blockframe): Move frame code from here...
330 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
331 "annotate.h" and "dummy-frame.h".
332 (_initialize_frame): New function.
334 2002-11-08 Jim Blandy <jimb@redhat.com>
336 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
337 when we finish a function a context.
338 * buildsym.h (outermost_context_p): New macro.
339 (Bug analyzed by David Edelsohn.)
341 2002-11-08 Andrew Cagney <ac131313@redhat.com>
343 * blockframe.c: Include "dummy-frame.h".
344 (struct dummy_frame, dummy_frame_stack)
345 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
346 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
347 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
348 (generic_save_call_dummy_addr, generic_pop_current_frame)
349 (generic_pop_dummy_frame, generic_fix_call_dummy)
350 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
351 dummy frame code from here...
352 * dummy-frame.c: ...to here. New file.
353 * dummy-frame.h: New file.
354 (generic_call_dummy_register_unwind): Declare.
355 (generic_find_dummy_frame): Declare.
356 * Makefile.in (SFILES): Add dummy-frame.c.
357 (dummy-frame.o): Specify dependencies.
358 (dummy_frame_h): Define.
359 (COMMON_OBS): Add dummy-frame.o.
360 (blockframe.o): Update dependencies.
362 2002-11-08 Jim Blandy <jimb@redhat.com>
364 * dwarf2read.c (read_func_scope): Restore local_symbols and
365 param_symbols after we finish the function context. (Based on a
366 patch from David Edelsohn.)
368 2002-11-08 David Carlton <carlton@math.stanford.edu>
370 * linespec.c (symbol_found): New function.
371 (minsym_found): New function.
372 (decode_line_1): Separate out some code into separate functions.
374 2002-11-08 Joel Brobecker <brobecker@gnat.com>
376 * i386-tdep.c (i386_frameless_signal_p): Make non static for
377 the benefit of the interix target.
378 * i386-tdep.h (i386_frameless_signal_p): Declare.
380 2002-11-08 Andrew Cagney <ac131313@redhat.com>
382 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
383 declaration that snuck in from change below.
385 2002-11-06 Andrew Cagney <cagney@redhat.com>
387 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
389 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
390 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
391 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
392 (i386_mxcsr_regnum_p): new function. Use instead of
394 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
395 (i386_sse_regnum_p): Declare.
396 (i386_mxcsr_regnum_p): Declare.
397 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
398 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
399 (IS_FP_REGNUM): Update definition.
400 (IS_FPU_CTRL_REGNUM): Update definition..
401 (IS_SSE_REGNUM): Update definition..
402 * i386v-nat.c (register_u_addr): Update.
403 * go32-nat.c (fetch_register): Update.
404 (store_register): Update.
406 2002-11-07 Joel Brobecker <brobecker@gnat.com>
408 Preparation work to convert the hppa targets to multiarch partial.
410 * hppa-tdep.c: Add new functions replacing macro bodies from
411 config/pa/tm-hppa.h. These function will be used to initialize
412 the gdbarch structure. Import some comments from tm-hppa.h,
413 and place them where appropriate, to avoid loosing them when
414 we cleanup this file.
415 (hppa_reg_struct_has_addr): New function.
416 (hppa_inner_than): New function.
417 (hppa_stack_align): New function.
418 (hppa_pc_requires_run_before_use): New function.
419 (hppa_instruction_nullified): New function.
420 (hppa_register_byte): New function.
421 (hppa_register_virtual_type): New function.
422 (hppa_store_struct_return): New function.
423 (hppa_cannot_store_register): New function.
424 (hppa_frame_args_address): New function.
425 (hppa_frame_locals_address): New function.
426 (hppa_smash_text_address): New function.
427 (hppa_coerce_float_to_double): New function. Requires the inclusion
430 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
432 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
433 gdbarch-eligible macro to a call to the new associated function
434 created in hppa-tdep.c.
435 (INNER_THAN): Likewise.
436 (STACK_ALIGN): Likewise.
437 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
438 (INSTRUCTION_NULLIFIED): Likewise.
439 (REGISTER_BYTE): Likewise.
440 (REGISTER_VIRTUAL_TYPE): Likewise.
441 (STORE_STRUCT_RETURN): Likewise.
442 (CANNOT_STORE_REGISTER): Likewise.
443 (FRAME_ARGS_ADDRESS): Likewise.
444 (FRAME_LOCALS_ADDRESS): Likewise.
445 (SMASH_TEXT_ADDRESS): Likewise.
446 (COERCE_FLOAT_TO_DOUBLE): Likewise.
447 (ABOUT_TO_RETURN): Delete, as no longer used.
449 2002-11-07 Fernando Nasser <fnasser@redhat.com>
451 * printcmd.c (disassemble_command): Remove obsolete function.
452 (_initialize_printcmd): Do not create disassemble command here.
453 * cli/cli-cmds.c (disassemble_command): New function. Implements
455 (init_cli_cmds): Create disassemble command here instead.
457 2002-11-07 Andrew Cagney <ac131313@redhat.com>
459 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
461 2002-11-07 Andrew Cagney <ac131313@redhat.com>
463 * regcache.h (regcache_cooked_read_using_offset_hack)
464 (regcache_cooked_write_using_offset_hack): Delete declarations.
465 (register_changed): Delete declaration.
466 * regcache.c (regcache_cooked_read_using_offset_hack)
467 (regcache_cooked_write_using_offset_hack): Delete functions.
468 (cooked_xfer_using_offset_hack): Delete function.
469 (register_changed): Delete function.
471 2002-11-07 Jim Blandy <jimb@redhat.com>
473 * macroscope.c: #include "complaints.h".
474 (sal_macro_scope): Cope with filenames that appear in the symtabs,
475 but not in the macro table.
476 * Makefile.in (macroscope.o): Record dependency.
478 2002-11-07 Joel Brobecker <brobecker@gnat.com>
480 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
482 2002-11-07 Andrew Cagney <ac131313@redhat.com>
484 * regcache.c (deprecated_registers_fetched): Update.
485 * regcache.h (deprecated_registers_fetched): Rename
487 * remote-vxsparc.c (vx_read_register): Update.
488 * remote-vxmips.c (vx_read_register): Update.
489 * remote-vx68.c (vx_read_register): Update.
490 * irix5-nat.c (fetch_core_registers): Update.
491 * mipsm3-nat.c (fetch_inferior_registers): Update.
492 * sun3-nat.c (fetch_inferior_registers): Update.
493 * symm-nat.c (fetch_inferior_registers): Update.
494 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
495 (fetch_core_registers): Update.
496 (fetch_kcore_registers): Update.
497 * mips-nat.c (fetch_inferior_registers): Update.
498 * corelow.c (get_core_registers): Update.
499 * a68v-nat.c (fetch_inferior_registers): Update.
501 2002-11-06 Joel Brobecker <brobecker@gnat.com>
503 Put in place the framework necessary for multiarching the hppa targets.
504 * hppa-tdep.c (hppa_gdbarch_init): New function.
505 (hppa_dump_tdep): New function.
506 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
507 tdep structure dumper.
508 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
509 until the multi-arching conversion has partially been completed.
511 2002-11-06 Andrew Cagney <ac131313@redhat.com>
513 * valops.c (value_assign): Merge lval_register case into
514 lval_reg_frame_relative. Use frame_register and
515 regcache_cooked_write instead of get_saved_register and
516 write_register_bytes. After flushing the register cache, try to
517 re-select the selected frame.
519 2002-11-06 Andrew Cagney <ac131313@redhat.com>
521 * regcache.h (deprecated_register_valid): Rename register_valid.
522 * regcache.c: Update.
523 * ia64-aix-nat.c: Update.
524 * i386gnu-nat.c: Update.
525 * alpha-nat.c: Update.
526 * sparc-nat.c: Update.
527 * lynx-nat.c: Update.
528 * remote-mips.c: Update.
530 2002-11-06 Joel Brobecker <brobecker@gnat.com>
532 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
533 to end of file, to be more consistent with the pratice followed
536 2002-11-06 Andrew Cagney <ac131313@redhat.com>
538 * infcmd.c: Include "reggroups.h" and <ctype.h>.
539 (print_float_info): Print registers in float_reggroup.
540 (print_vector_info): Print registers in vector_reggroup.
541 (default_print_registers_info): When all, print registers in
542 all_reggroup. Otherwize, print registers in general_reggroup.
543 (registers_info): Rewrite. Add support for register groups.
546 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
548 * symtab.c (methods_info): Delete. It has been ifdeffed out for
550 (symtab_symbol_info): Remove eons old ifdeffed out code.
551 (_initialize_symtab): Remove prehistoric disabled 'info methods'
554 2002-11-06 Theodore A. Roth <troth@openavr.org>
556 * c-exp.y: Add missing semi-colons.
557 * f-exp.y: Add missing semi-colons.
558 * m2-exp.y: Add missing semi-colons.
559 * p-exp.y: Add missing semi-colons.
560 Add empty action to start rule to avoid a type clash error when
561 building with bison >= 1.50.
563 2002-11-06 Jim Blandy <jimb@redhat.com>
565 * macrotab.h (struct macro_source_file): Doc fix.
567 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
569 * varobj.c (child_exists, cplus_number_of_children): Change
570 STREQ macro references to strcmp.
571 (cplus_name_of_child): Change code to handle the fact that
572 fields are not necessarily contiguous with regards to their
573 access control. This is a fix for PR gdb/792.
575 2002-11-05 Andrew Cagney <ac131313@redhat.com>
577 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
578 * gdbarch.h, gdbarch.c: Regnerate.
579 * frame.h (frame_register): Declare.
580 * frame.c (frame_register): New function.
581 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
582 GET_SAVED_REGISTER, otherwize call
583 generic_unwind_get_saved_register.
584 (frame_register_read): Use frame_register instead of
587 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
589 From Jim Ingham <jingham@apple.com>:
590 * event-top.c (gdb_disable_readline): New function.
591 (_initialize_event_loop): Move comment.
593 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
595 * event-loop.c (start_event_loop): Add comment.
598 2002-11-05 Andrew Cagney <ac131313@redhat.com>
600 * infcmd.c (default_print_registers_info): Do not call
603 2002-11-05 Andrew Cagney <ac131313@redhat.com>
605 * sparc-tdep.c (sparc_print_register_hook): Make static.
606 (sparc_print_registers_info): New function.
607 (sparc_do_registers_info): New function.
608 (sparclet_print_registers_info): New function.
609 (sparclet_do_registers_info): New function.
610 (do_sparc_print_registers_info): New function.
611 (sparc_print_registers): New static function, clone of infcmd.c's
612 default_print_registers_info.
613 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
614 (sparclet_do_registers_info): Declare.
615 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
616 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
618 (sparc_do_registers_info): Declare.
619 (PRINT_REGISTER_HOOK): Delete macro.
620 (sparc_print_register_hook): Delete declaration.
622 2002-11-05 David Carlton <carlton@math.stanford.edu>
624 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
626 (lookup_symbol_aux_local): New function.
627 (lookup_symbol_aux_symtabs): New function.
628 (lookup_symbol_aux_psymtabs): New function.
630 2002-11-05 David Carlton <carlton@math.stanford.edu>
632 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
633 previous values of 'objfile' and 'block'.
635 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
637 * values.c (value_change_enclosing_type): Set
638 enclosing_type field correctly also for the case where
639 more memory needs to be allocated.
641 2002-11-03 Mark Kettenis <kettenis@gnu.org>
643 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
646 * i387-tdep.c (i387_print_float_info): Replace calls to
647 register_read and deprecated_read_register_gen with calls to
648 frame_register_read, and make the necessary adjustments to the
651 2002-11-02 Andrew Cagney <ac131313@redhat.com>
653 * gdbarch.sh (register_reggroup_p): Allow default value.
654 * gdbarch.h, gdbarch.c: Regenerate.
656 2002-11-02 Andrew Cagney <ac131313@redhat.com>
658 * regcache.h: Add coment indicating replacements for deprecated
661 2002-11-02 Andrew Cagney <cagney@redhat.com>
663 * reggroups.h, reggroups.c: New files.
664 * regcache.c: Include "reggroups.h".
665 (enum regcache_dump_what): Add `regcache_dump_groups'.
666 (regcache_dump): Contract size of the "Type" column. When
667 specified, dump the register's groups.
668 (maintenance_print_register_groups): New function.
669 (_initialize_regcache): Add command `maint print register-groups'.
670 * Makefile.in (COMMON_OBS): Add reggroups.o
671 (SFILES): Add reggroups.c.
672 (reggroups_h): Define.
673 (regcache.o, gdbarch.o): Update dependencies.
674 (reggroups.o): Specify dependencies.
675 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
676 Add opaque declaration for `struct reggroup' in generated .h file.
677 Include "reggroups.h" in generated .c file.
678 gdbarch.h, gdbarch.c: Re-generate.
680 2002-11-02 Andrew Cagney <cagney@redhat.com>
682 * regcache.h (deprecated_read_register_gen): Rename
684 (deprecated_write_register_gen): Rename write_register_gen.
685 * i387-tdep.c: Update.
686 * x86-64-linux-nat.c: Update
688 * thread-db.c: Update.
689 * win32-nat.c: Update.
690 * mips-tdep.c: Update.
691 * d10v-tdep.c: Update.
692 * cris-tdep.c: Update.
693 * remote-sim.c: Update.
694 * remote-rdi.c: Update.
695 * remote-rdp.c: Update.
698 * blockframe.c: Update.
699 * x86-64-tdep.c: Update.
700 * xstormy16-tdep.c: Update.
702 * s390-tdep.c: Update.
703 * rs6000-tdep.c: Update.
704 * sparc-tdep.c: Update.
705 * i386-tdep.c: Update.
706 * dwarf2cfi.c: Update.
707 * regcache.c: Update.
709 2002-11-01 Joel Brobecker <brobecker@gnat.com>
711 New interix-specific files:
712 * config/i386/nm-interix.h: New file.
713 * config/i386/interix.mh: New file.
714 * config/i386/interix.mt: New file.
715 * i386-interix-nat.c: New file.
716 * i386-interix-tdep.c: New file.
718 2002-11-01 Andrew Cagney <cagney@redhat.com>
720 * frame.h (deprecated_generic_get_saved_register): Rename
721 generic_get_saved_register.
722 * blockframe.c (deprecated_generic_get_saved_register): Update.
723 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
724 (xstormy16_frame_saved_register): Update.
725 * sh-tdep.c (sh_gdbarch_init): Update.
726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
727 * ia64-tdep.c (ia64_get_saved_register): Update.
728 * cris-tdep.c (cris_gdbarch_init): Update.
729 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
730 * arm-tdep.c (arm_gdbarch_init): Update.
732 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
734 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
736 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
738 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
739 trampolines in sigaction.
741 2002-10-31 Andrew Cagney <cagney@redhat.com>
743 * h8300-tdep.c: Include "gdb_assert.h".
744 (h8300_print_register): Add gdbarch, file and frame parameters.
745 Use frame_read_unsigned_register to read the register's value.
746 Use fprintf_filtered to display output.
747 (h8300_print_registers_info): Replace h8300_do_registers_info.
748 (h8300_gdbarch_init): Set print_registers_info.
750 2002-10-31 Andrew Cagney <cagney@redhat.com>
752 * frame.c (frame_read_unsigned_register): New function.
753 (frame_read_signed_register): New function.
754 * frame.h (frame_read_unsigned_register): Declare.
755 (frame_read_signed_register): Declare.
757 2002-10-31 Andrew Cagney <cagney@redhat.com>
759 * h8500-tdep.c (h8500_print_registers_info): New static function,
760 clone of infcmd.c's default_print_registers_info.
761 (h8500_do_registers_info): New funtion.
762 (h8500_print_register_hook): Rename print_register_hook, make
765 * config/h8500/tm-h8500.h: Update copyright.
766 (DEPRECATED_DO_REGISTERS_INFO): Define.
767 (h8500_do_registers_info: Declare.
768 (PRINT_REGISTER_HOOK): Delete macro.
769 (print_register_hook): Delete function.
771 2002-10-31 Andrew Cagney <cagney@redhat.com>
773 * z8k-tdep.c (z8k_print_register_hook): Make static.
774 (z8k_print_registers_info): New static function, clone of
775 infcmd.c's default_print_registers_info.
776 (z8k_do_registers_info): New function. Wrap
777 z8k_print_registers_info.
778 * config/z8k/tm-z8k.h: Update copyright.
779 (PRINT_REGISTER_HOOK): Delete macro.
780 (z8k_print_register_hook): Delete declaration.
781 (DEPRECATED_DO_REGISTERS_INFO): Define.
782 (z8k_do_registers_info): Declare.
784 2002-10-30 Joel Brobecker <brobecker@gnat.com>
786 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
787 as this is already provided by value.h, and was actually causing
788 a compilation error because of a conflict in parameter type
789 declaration due to a missing const keyword.
790 (low_text_segment_addres): Fix a compilation warning.
792 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
794 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
795 registers without a name.
796 (mips_linux_cannot_store_register): Don't store registers without
799 2002-10-28 David Carlton <carlton@math.stanford.edu>
801 * symtab.c (find_addr_symbol): Delete. (It was already commented
803 * symtab.h: Delete prototype for find_addr_symbol.
805 2002-10-26 Andrew Cagney <cagney@redhat.com>
807 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
809 gdbarch.h, gdbarch.c: Re-generate.
810 * infcmd.c (default_print_registers_info): Update reference.
811 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
812 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
813 * sh-tdep.c (sh_gdbarch_init): Ditto.
814 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
815 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
817 2002-10-26 Mark Kettenis <kettenis@gnu.org>
819 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
820 cfi_init_extra_frame_info.
821 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
822 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
824 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
825 target where necessary. Add more comments and remove the ones
826 that don't provide any useful information.
828 * i386-tdep.c (i386_frame_saved_pc): Replace call to
829 deprecated_read_register_dummy with
830 frame_unwind_unsigned_register.
832 * i386-tdep.c (i386_extract_struct_value_address): Use
833 regcache_raw_read_unsigned instead of
834 regcache_cooked_read_unsigned since we know that the register
835 we're reading isn't a pseudo register. Rename variable 'val' into
836 the more descriptive 'addr'.
838 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
839 (x86_64_push_return_address): Add comment.
840 (x86_64_pop_frame): Make static.
841 (examine_argument): Clarify comment.
842 (x86_64_skip_prologue): Make prolog_expact variable static.
844 * dwarf2cfi.c: Fix some formatting problems.
845 (context_cpy, read_encoded_pointer): Clarify comments.
847 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
848 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
849 i386 target back into x86_64_gdbarch_init. Add some comments and
850 remove meaningless ones.
852 2002-10-25 Andrew Cagney <cagney@redhat.com>
854 * complaints.h (struct deprecated_complaint): Rename `struct
856 * complaints.c (complain): Update.
857 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
858 incorrect comment indicating that "symfile.h" was being included
859 for the `struct complaint' definition.
860 * remote-vx.c: Update.
861 * objc-lang.c: Update.
862 * xcoffread.c: Update.
864 * mdebugread.c: Update.
865 * stabsread.c: Update.
866 * dwarf2read.c: Update.
867 * dwarfread.c: Update.
869 * coffread.c: Update.
870 * stabsread.h: Update.
872 * buildsym.c: Update.
873 * gdbtypes.c: Update.
874 * macrotab.c: Update.
876 2002-10-25 Mark Kettenis <kettenis@gnu.org>
878 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
879 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
880 (x86_64_init_abi): ...new function.
882 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
883 * i386v-nat.c: Include "i386-tdep.h".
885 2002-10-25 Andrew Cagney <cagney@redhat.com>
887 * gdbtypes.c (address_space_name_to_int): Update.
888 (address_space_int_to_name): Update.
889 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
890 multi-arch predicate.
891 (address_class_name_to_type_flags): Ditto.
892 * gdbarch.h, gdbarch.c: Re-generate.
894 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
896 2002-10-24 Martin M. Hunt <hunt@redhat.com>
898 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
900 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
902 * symtab.h (INIT_SAL): Delete macro.
904 * symtab.c (init_sal): New function.
906 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
907 to init_sal function call.
908 (find_sal_from_funcs_and_line): Ditto.
909 (all_sals_for_line): Ditto.
910 * breakpoint.c (create_internal_breakpoint): Ditto.
911 (create_fork_vfork_event_catchpoint): Ditto.
912 (create_exec_event_catchpoint): Ditto.
913 (parse_breakpoint_sals): Ditto.
914 (watch_command_1): Ditto.
915 (handle_gnu_4_16_catch_command): Ditto.
916 (clear_command): Ditto.
917 * hppa-tdep.c (child_enable_exception_callback): Ditto.
918 * infcmd.c (run_stack_dummy): Ditto.
919 * infrun.c (process_event_stop_test): Ditto.
920 (check_sigtramp2): Ditto.
921 (step_over_function): Ditto.
922 * linespec.c (decode_line_2): Ditto.
923 (decode_line_1): Ditto.
924 * source.c (line_info): Ditto.
925 * symtab.c (find_pc_sect_line): Ditto.
927 2002-10-24 Michal Ludvig <mludvig@suse.cz>
929 * dwarf2cfi.c (struct context)
930 (struct context_reg): Moved to dwarf2cfi.h
931 (context_alloc, frame_state_alloc, context_cpy):
932 Made extern instead of static, removed prototypes.
933 * dwarf2cfi.h (struct context)
934 (struct context_reg): New, moved from dwarf2cfi.c
935 (context_alloc, frame_state_alloc, context_cpy):
937 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
938 Changed from static to extern.
939 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
940 (LINUX_SIGCONTEXT_FP_OFFSET)
941 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
942 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
943 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
944 * x86-64-tdep.c (x86_64_gdbarch_init): Several
945 set_gdbarch_*() calls now use x86-64 specific functions
946 instead of DWARF2 CFI ones.
947 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
948 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
949 (x86_64_init_extra_frame_info): New prototypes.
951 2002-10-23 David Carlton <carlton@math.stanford.edu>
953 * linespec.c: #include "parser-defs.h".
954 Delete prototype for find_template_name_end.
955 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
957 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
959 * NEWS: add recent mi fixes.
960 * varobj.c (struct varobj): Add new "updated" flag.
961 (new_variable): Default "updated" flag to 0.
962 (varobj_set_value): Set "updated" flag to 1 if value
964 (varobj_update): Check varobj "updated" flag before
965 comparing old and refreshed values. Fix for
968 2002-10-23 David Carlton <carlton@math.stanford.edu>
970 * parse.c (parse_exp_1): Use BLOCK_START.
971 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
973 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
975 2002-10-23 David Carlton <carlton@math.stanford.edu>
977 * symtab.c: Delete cplusplus_hint.
978 Delete prototype for find_template_name_end.
980 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
982 * symtab.h: Update comment.
984 2002-10-23 Michael Snyder <msnyder@redhat.com>
986 * printcmd.c (address_info): Restore quotes in output.
987 * valops.c (value_of_local): Restore quotes in error message.
989 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
991 * symtab.c (symbol_demangled_name): New function.
992 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
993 turning most of it into a function.
994 (symbol_demangled_name): Export.
996 2002-10-23 Michael Snyder <msnyder@redhat.com>
998 * valops.c (value_of_local): Restore quotes in error message.
1000 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1002 * symtab.c (symbol_init_language_specific): New function.
1003 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1004 turning most of it into a function.
1005 (symbol_init_language_specific): Export.
1007 2002-10-23 David Carlton <carlton@math.stanford.edu>
1009 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1010 (dwarf_attr_name): Ditto.
1011 (dwarf_type_encoding_name): Ditto.
1012 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1013 (process_die): Handle DW_TAG_namespace,
1014 DW_TAG_imported_declaration, DW_TAG_imported_module.
1015 (read_namespace): New function.
1017 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1019 * configure.in: Define NEW_PROC_API on Interix too.
1020 * configure: Regenerate.
1022 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1024 * configure: Regenerate using the proper version of autoconf.
1026 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1028 * findvar.c (read_var_value): Temporarily disable TLS code, until
1029 complete TLS support is added.
1031 2002-10-21 Jim Blandy <jimb@redhat.com>
1032 Elena Zannoni <ezannoni@redhat.com>
1034 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1035 for thread local storage locations.
1036 (struct symbol): Add objfile field.
1037 (SYMBOL_OBJFILE): Define.
1038 * dwarf2read.c (is_thread_local): New static variable.
1039 (new_symbol): If variable is in thread local fill in address class
1040 and objfile appropriately.
1041 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1043 * printcmd.c (address_info): Print the information for thread
1044 local storage variable.
1045 * findvar.c (read_var_value): In case of thread local variable,
1046 defer to the target vector code to compute address.
1048 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1050 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1051 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1053 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1055 * symtab.h (address_class): Rename
1056 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1057 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1058 * printcmd.c (address_info): Ditto.
1059 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1061 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1063 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1064 DBREG_DRX macro to acces debug registers.
1066 * Makefile.in (i386obsd-tdep.o): New target.
1068 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1069 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1071 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1072 * config/i386/obsd.mt: New file.
1073 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1074 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1075 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1076 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1077 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1078 * i386obsd-tdep.c: New file.
1080 2002-10-19 Adam Fedor <fedor@gnu.org>
1082 * objc-exp.y (name_not_typename): Fix invalid comment.
1084 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1086 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1087 to allocate partial syms and macro byte caches.
1089 2002-10-18 David Carlton <carlton@math.stanford.edu>
1091 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1093 2002-10-18 Adam Fedor <fedor@gnu.org>
1095 * stabsread.c (find_name_end): New function.
1096 (define_symbol): Use it.
1098 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1100 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1101 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1102 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1103 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1105 2002-10-17 David Carlton <carlton@math.stanford.edu>
1107 * symfile.h: Add opaque declaration for struct obstack.
1108 Declare obsavestring to take a const char *.
1109 * symfile.c (obsavestring): Make first argument a const char *.
1111 2002-10-16 Adam Fedor <fedor@gnu.org>
1113 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1114 names when matching breakpoints in current file.
1116 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1118 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1119 (read_tag_pointer_type): Add address class support.
1120 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1121 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1123 * gdbarch.h, gdbarch.c: Regenerate.
1124 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1125 (make_type_with_address_space, recursive_type_dump): Add address
1127 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1128 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1129 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1131 2002-10-16 Klee Dienes <kdienes@apple.com>
1133 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1134 to get the last character of a char[] buffer, not
1135 name[sizeof(vptr_name)-1].
1137 2002-10-14 Adam Fedor <fedor@gnu.org>
1139 * symtab.h: New objc_specific struct.
1140 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1141 (SYMBOL_DEMANGLED_NAME): Likewise.
1143 2002-10-14 Adam Fedor <fedor@gnu.org>
1145 * symfile.c (init_filename_language_table): Add ObjC file extension.
1147 2002-10-14 Adam Fedor <fedor@gnu.org>
1149 * utils.c (puts_filtered_tabular): New function.
1150 (fprintf_symbol_filtered): Get ObjC demangled name.
1151 * defs.h (puts_filtered_tabular): Declared.
1153 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1155 * c-lang.h (c_type_print_varspec_prefix): Delete.
1156 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1157 ``need_post_space'' parameter. Adjust all callers.
1159 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1161 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1162 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1163 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1164 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1166 2002-10-13 Adam Fedor <fedor@gnu.org>
1168 * source.c (print_source_lines): Update comments.
1170 2002-10-13 Adam Fedor <fedor@gnu.org>
1172 * valops.c (value_of_local): New function.
1173 (value_of_this): Use it.
1174 * value.h (value_of_local): Declared.
1176 2002-10-13 Adam Fedor <fedor@gnu.org>
1178 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1179 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1181 2002-10-12 Adam Fedor <fedor@gnu.org>
1183 * language.c (binop_result_type): Add language_objc to case.
1184 (integral_type): Likewise.
1185 (character_type): Likewise.
1186 (string_type): Likewise.
1187 (boolean_type): Likewise.
1188 (structured_type): Likewise.
1189 (binop_type_check): Likewise.
1191 2002-10-11 Adam Fedor <fedor@gnu.org>
1193 * printcmd.c (address_info): Print 'self' for ObjC.
1195 2002-10-11 Adam Fedor <fedor@gnu.org>
1197 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1200 2002-10-11 Adam Fedor <fedor@gnu.org>
1202 * language.h (CAST_IS_CONVERSION): Add language_objc.
1204 2002-10-11 Adam Fedor <fedor@gnu.org>
1206 * defs.h (enum language): Add language_objc.
1208 2002-10-11 Klee Dienes <kdienes@apple.com>
1210 * corefile.c (read_memory_typed_address): New function.
1211 * gdbcore.h (read_memory_typed_address): Add prototype.
1212 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1213 to read a value destined for a CORE_ADDR, not read_memory_integer.
1214 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1215 (f77_get_dynamic_lowerbound): Ditto.
1217 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1219 * utils.c (string_to_core_addr): After turning string into
1220 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1221 which will do necessary sign-extension, etc.
1223 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1225 * c-exp.y (THIS): Delete token and grammar rule.
1226 (yylex): Don't return THIS.
1227 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1228 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1229 * demangle.c (cplus_markers): Update comment. Put '$'
1230 first. Remove CPLUS_MARKER.
1231 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1232 * jv-exp.y (THIS): Delete token and grammar rule.
1233 (yylex): Don't return THIS.
1234 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1235 * objc-exp.y (THIS): Delete token and grammar rule.
1236 (yylex): Don't return THIS.
1237 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1238 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1239 (read_member_functions): Likewise for opname.
1240 (read_tilde_fields): Use is_cplus_marker.
1242 * defs.h (CPLUS_MARKER): Don't define.
1243 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1244 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1245 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1246 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1247 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1249 * config/i386/tm-i386v4.h: Delete file.
1250 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1251 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1252 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1253 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1254 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1255 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1256 * config/i386/i386v4.mt (TM_FILE): Likewise.
1257 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1259 2002-10-10 Marko Mlinar <markom@opencores.org>
1261 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1262 accidentially not commited 2002-10-09
1263 * gdbarch.h, gdbarch.c: Re-generate.
1265 2002-10-09 Marko Mlinar <markom@opencores.org>
1267 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1268 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1269 * gdbarch.h, gdbarch.c: Re-generate.
1271 2002-10-08 Petr Sorfa <petrs@caldera.com>
1273 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1275 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1276 so we can work on more than one compilation unit at a time. This
1277 helps prepare GDB to handle inter-CU die references.
1278 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1279 the code to be defined before struct comp_unit_head.
1280 (comp_unit_head): Added new members - offset, cu_head,
1281 begin_die, next and dwarf2_abbrevs.
1282 (dwarf2_abbrevs): Removed single static var; now member of
1283 struct comp_unit_head.
1284 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1286 (psymtab_to_symtab_1): Changed to work with the new
1287 struct comp_unit_head.
1288 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1289 constructs the dwarf2_abbrevs[] inside the cu_header.
1290 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1291 dwarf2_abbrev table to clean up.
1292 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1293 handling of dwarf2_abbrevs inside the cu_header.
1294 (read_partial_die): Now supports the call to the new
1295 dwarf2_lookup_abbrev.
1296 (read_full_die): Now supports the call to the new
1297 dwarf2_lookup_abbrev.
1299 2002-10-06 Christopher Faylor <cgf@redhat.com>
1301 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1302 insure that shell variables, such as "transformed_name" are propagated
1303 to later shell statements in rule.
1305 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1307 * config/i386/nm-i386sco.h: Add protection against
1308 multiple-inclusion. Include "i386/nm-i386v.h".
1309 (REGISTER_U_ADDR): Remove define.
1310 (i386_register_u_addr): Remove prototype.
1312 2002-10-04 Michael Snyder <msnyder@redhat.com>
1314 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1315 before treating it as a single-step event.
1317 2002-10-03 Adam Fedor <fedor@gnu.org>
1319 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1320 (objc_demangle): Remove assignment in if statements, Replace
1322 (add_msglist): Likewise.
1323 (end_msglist): Likewise.
1324 (complare_selectors): Likewise.
1325 (selectors_info): Likewise.
1326 (compare_classes): Likewise.
1327 (classes_info): Likewise.
1328 (print_object_command): Likewise.
1329 (find_objc_msgcall_submethod): Replace PTR with void *.
1330 * objc-lang.h: Remove check for __STDC__.
1332 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1334 * ui-out.h (ui_out_field_fmt_int): New prototype.
1335 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1336 of field width and alignment.
1337 * stack.c (print_frame_info_base): When printing frame level, use
1338 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1341 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1343 * MAINTAINERS: Add self to Write After Approval list.
1345 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1347 * infcmd.c (interrupt_target_command_wrapper): Delete.
1348 (interrupt_target_command): Make non static.
1349 (nofp_registers_info): Make static.
1350 * stack.c (return_command_wrapper): Delete.
1351 (return_command): Make non static.
1353 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1355 * event-top.c (gdb_setup_readline): New function. Code moved from
1356 _initialize_event_loop().
1357 (_initialize_event_loop): Call gdb_setup_readline().
1359 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1361 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1362 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1363 * gdbarch.h, gdbarch.c: Re-generate.
1365 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1368 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1370 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1371 of fill_in_vptr_fieldno.
1373 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1375 * inferior.h (registers_info, stepi_command, nexti_command,
1376 continue_command, interrupt_target_command): Export from infcmd.c.
1377 * frame.h (args_info, selected_frame_level_changed_hook,
1378 return_command): Export from stack.c.
1379 * v850ice.c (stepi_command, nexti_command, continue_command): use
1380 prototypes from inferior.h.
1381 * tracepoint.c (registers_info, args_info, locals_info): Use
1382 prototypes from frame.h and inferior.h.
1383 * Makefile.in (mi-main.o): Add dependency on frame.h.
1385 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1387 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1388 value in register 3 adjusted by ppc_gp0_regnum.
1390 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1392 2002-10-02 Marko Mlinar <markom@opencores.org>
1394 * MAINTAINERS: Add myself to the Write After Approval list.
1396 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1398 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1399 of the section for the N64 ABI, fixed.
1401 * config/mips/tm-irix6.h: Include solib.h.
1403 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1405 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1408 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1410 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1411 and that "mi0" syntax has been removed.
1413 2002-09-30 David Carlton <carlton@math.stanford.edu>
1415 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1416 * ppc-sysv-tdep.c: #include "gdb_string.h".
1417 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1420 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1422 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1423 "vrsave"'s register number.
1425 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1427 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1428 use frame_unwind_signed_register to obtain the PC.
1429 (mips_frame_chain): Handle a generic dummy frame.
1430 (mips_init_extra_frame_info): When a generic dummy frame, don't
1431 re-compute the frame base.
1432 (mips_pop_frame): Handle generic dummy frames.
1433 (mips_gdbarch_init): When generic dummy frames, set
1434 use_generic_dummy_frames, push_dummy_frame to
1435 generic_push_dummy_frame, pc_in_call_dummy to
1436 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1437 generic_save_dummy_frame_tos.
1439 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1441 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1442 against TOP when TOP was explictly set.
1443 (generic_push_dummy_frame): Set TOP to zero.
1445 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1447 * event-loop.c (start_event_loop): Rename variable 'result' to
1448 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1450 2002-09-30 Keith Seitz <keiths@redhat.com>
1452 * gdb-events.sh (selected_thread_changed): New event.
1453 * gdb-events.c: Regenerated.
1454 * gdb-events.h: Regenerated.
1456 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1458 * MAINTAINERS: Add self to Write After Approval list.
1460 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1462 * disasm.c: New file.
1463 * disasm.h: New file.
1464 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1465 (compare_lines): Ditto.
1466 (dump_insns): Ditto.
1467 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1469 (do_assembly_only): Ditto.
1470 (do_disassembly): Renamed to gdb_disassembly and moved to
1471 disasm.c. Sdded uiout argument.
1472 * Makefile.in: Add new files. Reorder SFILES list. Update
1473 dependencies. Include libgdb.a later in the insight executable.
1475 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1477 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1478 bfd/elf64-alpha-fbsd.c.
1480 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1482 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1485 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1487 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1489 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1491 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1492 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1493 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1494 (S_msg_sig_post_reply): Ditto.
1496 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1498 * sh-tdep.c (sh_use_struct_convention): Use definition according
1500 (sh_push_arguments): Store in register with correct endianess.
1501 (sh_default_store_return_value): Ditto.
1502 (sh_gdbarch_init): Set sizeof long double to 8.
1504 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1506 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1507 Fix some whitespace problems.
1509 2002-09-27 David Carlton <carlton@math.stanford.edu>
1511 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1512 (mcore-tdep.o): Ditto.
1513 (ns32k-tdep.o): Ditto.
1514 (ns32knbsd-tdep.o): Ditto.
1516 (vax-tdep.o): Ditto.
1517 * cris-tdep.c: #include "gdb_string.h"
1518 * mcore-tdep.c: Ditto.
1519 * ns32k-tdep.c: Ditto.
1520 * ns32knbsd-tdep.c: Ditto.
1522 * vax-tdep.c: Ditto.
1524 2002-09-27 David Carlton <carlton@math.stanford.edu>
1526 * config/djgpp/fnchange.lst: Add entries for
1527 gdb/testsuite/gdb.c++/m-static files.
1529 2002-09-27 Jim Wilson <wilson@redhat.com>
1531 * MAINTAINERS: Add myself to the Write After Approval list.
1533 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1535 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1538 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1540 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1543 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1545 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1546 (rs6000_struct_return_address): Delete variable.
1547 (rs6000_store_struct_return): Update.
1548 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1549 deprecated_extract_struct_value_address.
1550 (rs6000_frame_align): New function.
1551 (rs6000_gdbarch_init): Set frame_align.
1553 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1555 From Grace Sainsbury <graces@redhat.com>:
1556 * Makefile.in (gdbtk-main.o): New target.
1557 (gdb.o): New target.
1559 (main.o): Update dependencies.
1560 (gdb$(EXEEXT)): Add gdb.o.
1561 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1562 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1563 (SUBDIR_GDBTK_CLEAN): Set.
1564 (install-gdbtk): Install the insight binary.
1565 (uninstall-gdbtk): New target.
1566 (all-gdbtk, clean-gdbtk): New rule.
1567 * top.c (use_windows): Default to zero.
1568 * main.c: Include "main.h".
1570 (struct captured_main_args): Delete.
1571 (gdb_main): New function.
1575 2002-09-25 Andrew Cagney <cagney@redhat.com>
1577 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1578 (frame_map_regnum_to_name): New function.
1579 (frame_map_name_to_regnum): New function.
1580 * frame.h (frame_map_name_to_regnum): Declare.
1581 (frame_map_regnum_to_name): Declare.
1582 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1583 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1584 * parse.c: Do not include "builtin-regs.h".
1585 (target_map_name_to_register): Delete function.
1586 (write_dollar_variable): Use frame_map_name_to_regnum.
1587 * parser-defs.h (target_map_name_to_register): Delete declaration.
1588 * expprint.c: Include "frame.h".
1589 (print_subexp): Use frame_map_regnum_to_name.
1590 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1591 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1593 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1595 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1596 wasn't saved, and the next innermost frame is a dummy, return the
1597 dummy frame's link register.
1599 2002-09-24 Jim Blandy <jimb@redhat.com>
1601 Fix from Paul Breed:
1602 * main.c (captured_main): Add a `break' after the case for 'b'.
1604 2002-09-24 Keith Seitz <keiths@redhat.com>
1606 * varobj.c (c_type_of_child): Use get_target_type instead
1607 of TYPE_TARGET_TYPE.
1609 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1611 * source.c (get_current_or_default_source_symtab_and_line): Remove
1613 (set_default_source_symtab_and_line): New function. Attempts to
1614 determine a source file to list lines from if one is not currently
1616 (get_current_source_symtab_and_line): Initialize sal.pc and
1618 (set_current_source_symtab_and_line): Mark argument as const.
1619 * source.h: Update declarations and comments.
1620 * linespec.c (decode_line_1): Replace call to removed routine above.
1621 * stack.c (print_frame_info_base): Ditto.
1622 * cli/cli-cmds.c (edit_command): Ditto.
1623 (list_command): Ditto.
1625 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1627 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1628 sal.pc and sal.end fields.
1629 (get_current_or_default_source_symtab_and_line): Ditto.
1630 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1631 so we do not cause a new source symtab to be searched for (reverting an
1632 unintentional change from the 2002-09-20 patch).
1633 * scm-lang.c (scm_unpac): Ditto.
1635 2002-09-21 Andrew Cagney <cagney@redhat.com>
1637 * complaints.c (symfile_explanations): Remove new-line from
1638 ``isolated_message''.
1639 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1640 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1642 2002-09-20 Nick Clifton <nickc@redhat.com>
1644 * NEWS: Announce that V850EA ISA is no longer supported.
1645 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1647 2002-09-20 David Carlton <carlton@math.stanford.edu>
1649 * Makefile.in (c-lang.o): Correct dependencies.
1650 (utils.o): Gather dependencies.
1652 * c-lang.c: #include "gdb_string.h"
1654 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1656 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1657 * cli/cli-cmds.c (list_command): New function. Implements the new
1659 (_init_cli_cmds): Add new command definition.
1660 * gdb.1: Document edit command.
1661 * doc/gdb.texinfo: Document edit command.
1663 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1665 * source.c: Make global variables current_source_symtab and
1666 current_source_line static.
1667 (list_command): Moved to cli/cli-cmds.c.
1668 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1669 (get_first_line_listed): New accessor function.
1670 (get_lines_to_list): New accessor function.
1671 (get_current_source_symtab_and_line): New function. Retrieves the
1672 position in the source code that we consider current.
1673 (get_current_or_default_source_symtab_and_line): New function.
1674 Like the above but attempts to determine a default position if one
1675 is not currently defined.
1676 (set_current_source_symtab_and_line): New function. Sets the source
1677 code position considered current and returns the previously set one.
1678 (clear_current_source_symtab_and_line): Reset stored information about
1679 a current source line.
1680 (_initialize_source): Remove registration for the "list" command and
1682 * source.h: Add declarations for the new functions above.
1683 * symtab.h: Remove declarations for the global variables mentioned
1685 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1686 obtain current source line.
1687 * linespec.c (decode_line_1): Ditto.
1688 * macroscope.c (default_macro_scope): Ditto.
1689 * scm-lang.c (scm_unpac): Ditto.
1690 * stack.c (print_frame_info_base): Ditto.
1691 * symfile.c (clear_symtab_users): Ditto.
1692 * symtab.c (decode_line_spec): Ditto.
1693 * cli/cli-cmds.c (list_command): Moved here from source.c.
1694 (ambiguous_line_spec): Moved here from source.c.
1695 (_init_cli_cmds): Add definition for "list" and its alias.
1696 * Makefile.in: Update dependencies.
1698 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1700 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1701 with what gcc thinks is correct.
1703 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1705 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1706 multiple register push instruction.
1708 2002-09-19 Jim Blandy <jimb@redhat.com>
1710 Add support for distinct host and target character sets.
1711 * charset.c, charset.h: New files.
1712 * c-exp.y: #include "charset.h".
1713 (yylex): Convert character and string literals to the target
1714 character set, before returning them as the semantic value of the
1716 * c-lang.c: #include "charset.h".
1717 (c_emit_char): Use charset-specific methods to recognize
1718 characters with backslash escape forms, to decide which characters
1719 to print literally and which to print using numeric escape
1720 sequences, and to convert target characters to host characters
1722 * utils.c: #include "charset.h".
1723 (no_control_char_error): New function.
1724 (parse_escape): Use charset-specific methods to recognize
1725 backslash escapes, parse `control character' notation, and convert
1726 characters from the host character set to the target character set.
1727 * configure.in: Set the default host character set.
1728 Check where to find iconv, and what its argument types might be.
1729 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1730 * Makefile.in (SFILES): List charset.c.
1731 (COMMON_OBS): List charset.o.
1732 (charset.o): New rule.
1733 (charset_h): New header dependency variable.
1734 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1735 (LIBICONV): New variable, set by configure.
1736 (CLIBS): Include $(LIBICONV) here.
1737 * aclocal.m4, config.in, configure: Regenerated.
1739 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1741 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1744 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1746 * gdb_mbuild.sh: New file.
1748 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1750 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1752 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1754 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1755 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1756 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1757 valops.c, value.h: Revert previous change.
1759 2002-09-18 Michael Snyder <msnyder@redhat.com>
1761 Preliminary support for Objective-C:
1762 * defs.h (language_objc): New enum value.
1763 (puts_filtered_tabular): Declaration only, exported from utils.c.
1764 (skip_quoted): Delete, declared in completer.h.
1765 * c-exp.y: Include completer.h.
1768 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1769 New operator enum values.
1770 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1771 * language.c (binop_result_type): Handle language_objc case.
1772 (integral_type, character_type, string_type, boolean_type,
1773 structured_type, binop_type_check): Ditto.
1774 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1775 (struct objc_specific): Add to general_symbol_info.
1776 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1777 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1778 * parser-defs.h (struct objc_class_str): New struct type.
1779 (start_msglist, end_msglist, add_msglist): Declaration only,
1780 exported from objc-lang.c.
1781 * value.h (value_of_local, value_nsstring,
1782 call_function_by_hand_expecting_type): Exported from valops.c.
1783 * valops.c (find_function_addr): Export.
1784 (call_function_by_hand_expecting_type): New function.
1785 (value_of_local): New function.
1786 * symfile.c (init_filename_language_table): Add ".m" extension
1788 * utils.c (puts_filtered_tabular): New function.
1789 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1790 (set/show demangle): Extend help-string to refer to ObjC.
1791 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1792 * stabsread.c (symbol_reference_defined): Objective-C symbols
1793 may contain colons: make allowances when scanning stabs strings
1795 (objc_find_colon): New function.
1796 * printcmd.c (address_info): If language == objc then print
1797 "self" instead of "this".
1798 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1799 OP_NSSTRING, and OP_SELF.
1800 (prefixify_subexp): Ditto.
1801 * source.c (print_source_lines): Mention objc in comment.
1802 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1805 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1807 * complaints.h: Update copyright.
1808 (struct complaints): Declare.
1809 (struct complaint): Make `message' constant.
1810 (internal_complaint): Declare.
1811 (complaint): Declare.
1812 (complaint_root): Delete declaration.
1813 (symfile_complaints): Delete declaration.
1814 (struct complaints): Add opaque declaration.
1815 (clear_complaints): Add a complaints parameter.
1816 * complaints.c: Update copyright.
1817 (enum complaint_series): Define.
1818 (complaint_root): Delete.
1819 (struct complaints): Define.
1820 (complaint_sentinel, symfile_complaint_book): New variables.
1821 (symfile_explanations, symfile_complaints): New variables.
1823 (get_complaints): New function.
1824 (vcomplaint): New function.
1825 (complaint): New function.
1826 (internal_complaint): New function.
1827 (complain): Call vcomplain with symfile_complaint.
1828 (clear_complaints): Rewrite.
1829 (_initialize_complaints): Use add_setshow_command.
1830 * Makefile.in (complaints.o): Update dependencies.
1831 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1832 to call to clear_complaints.
1833 (new_symfile_objfile, reread_symbols): Ditto.
1834 (oldsyms_complaint): Delete.
1835 (empty_symtab_complaint, unknown_option_complaint): Delete.
1836 (free_named_symtabs): Use complaint instead of complain.
1838 2002-09-18 Michael Snyder <msnyder@redhat.com>
1840 Contributed by Apple Computer, Inc. Merged with current sources
1841 by Adam Fedor <fedor@doc.com> [cagney].
1843 * objc-lang.c: First clean-up round: comments, indentation.
1844 * objc-lang.h: Ditto.
1845 * objc-lang.y: Ditto.
1847 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1849 * maint.c (maintenance_internal_error): Print the parameter as the
1851 (maintenance_internal_warning): New function.
1852 (_initialize_maint_cmds): Add command `maint internal-warning'.
1854 * defs.h (internal_warning, internal_vwarning): Declare.
1855 * utils.c (struct internal_problem): Define.
1856 (internal_vproblem): New function.
1857 (internal_warning): New function.
1858 (internal_vwarning): New function.
1859 (internal_warning_problem, internal_error_problem): New variables.
1860 (internal_verror): Just call internal_vproblem.
1862 2002-09-18 Michael Snyder <msnyder@redhat.com>
1864 * objc-lang.c: New file, support for Objective-C.
1865 Preliminary check-in, not yet integrated into gdb.
1866 * objc-lang.h: New file.
1867 * objc-exp.y: New file.
1869 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1871 * infrun.c (signal_stop_update): Convert definition to ISO C.
1872 (signal_print_update): Ditto.
1873 (signal_pass_update): Ditto.
1874 * inflow.c (terminal_save_ours): Ditto.
1876 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1879 * config/djgpp/fnchange.lst: Handle name clashes between
1880 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1883 * i386-linux-tdep.h: Fix tipo.
1885 2002-09-18 Adam Fedor <fedor@gnu.org>
1887 * MAINTAINERS: Add myself to the Write After Approval list.
1889 2002-09-18 Jim Blandy <jimb@redhat.com>
1891 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1892 texthigh and textlow to reader-specific structs caused
1893 objfile_relocate to miss them. This is fixable, but the work that
1894 the change was supposed to prepare GDB for never got done anyway.
1896 2002-09-18 David Carlton <carlton@math.stanford.edu>
1898 * MAINTAINERS: Alphabetize Write After Approval list.
1900 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1903 * values.c (value_static_field): Call read_var_value.
1905 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1907 * valops.c (hand_function_call): Align the initial stack pointer
1908 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1909 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1911 * mips-tdep.c (mips_frame_align): New function.
1912 (mips_gdbarch_init): Set frame_align.
1913 * gdbarch.sh (FRAME_ALIGN): New method.
1914 * gdbarch.h, gdbarch.c: Re-generate.
1916 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1918 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1921 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1923 * NEWS: Mention that MIPS $fp behavior changed.
1924 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1925 reference to FP_REGNUM.
1926 (mipsnbsd_cannot_store_register): Ditto.
1927 * mips-linux-nat.c: Update copyright.
1928 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1929 (mips_linux_cannot_store_register): Ditto.
1930 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1931 * config/mips/tm-mips.h: Update copyright.
1932 (FP_REGNUM): Delete macro.
1933 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1934 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1935 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1936 (mips_r3041_reg_names, mips_r3051_reg_names)
1937 (mips_r3081_reg_names): Replace "fp" with "".
1940 2002-09-17 Theodore A. Roth <troth@verinet.com>
1942 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1943 generic_read_register_dummy() (PR gdb/703).
1944 (avr_push_return_address): #if 0 out unused vars.
1945 (avr_gdbarch_init): Enable use of avr_push_return_address().
1947 2002-09-17 Michael Snyder <msnyder@redhat.com>
1949 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1950 RTE will take care of it.
1952 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1954 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1955 invalid, return SP_REGNUM.
1957 2002-09-17 Michael Snyder <msnyder@redhat.com>
1959 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1960 point registers without sign extension.
1962 2002-09-17 Andrew Cagney <cagney@redhat.com>
1964 * blockframe.c (deprecated_read_register_dummy): Rename
1965 generic_read_register_dummy.
1966 * frame.c (frame_unwind_signed_register): New function.
1967 (frame_unwind_unsigned_register): New function.
1968 * frame.h (frame_unwind_signed_register): Declare.
1969 (frame_unwind_unsigned_register): Declare.
1970 (deprecated_read_register_dummy): Rename
1971 generic_read_register_dummy.
1973 * h8300-tdep.c (h8300_frame_chain): Update.
1974 (h8300_frame_saved_pc): Update.
1975 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1976 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1977 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1978 (s390_frame_chain): Update.
1979 * v850-tdep.c (v850_find_callers_reg): Update.
1980 (v850_frame_saved_pc): Update.
1981 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1982 (m32r_find_callers_reg): Update.
1983 (m32r_frame_saved_pc): Update.
1984 * sh-tdep.c (sh_find_callers_reg): Update.
1985 (sh64_get_saved_pr): Update.
1986 (sh_init_extra_frame_info): Update.
1987 (sh_init_extra_frame_info): Update.
1988 (sh64_init_extra_frame_info): Update.
1989 (sh64_init_extra_frame_info): Update.
1990 * mcore-tdep.c (mcore_find_callers_reg): Update.
1991 (mcore_frame_saved_pc): Update.
1992 (mcore_init_extra_frame_info): Update.
1993 * i386-tdep.c (i386_frame_saved_pc): Update.
1994 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1995 (ia64_init_extra_frame_info): Update.
1996 (ia64_init_extra_frame_info): Update.
1997 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1998 * cris-tdep.c (cris_init_extra_frame_info): Update.
1999 * avr-tdep.c (avr_frame_chain): Update.
2000 (avr_init_extra_frame_info): Update.
2001 (avr_frame_saved_pc): Update.
2002 * arm-tdep.c (arm_find_callers_reg): Update.
2003 (arm_init_extra_frame_info): Update.
2004 (arm_frame_saved_pc): Update.
2006 2002-09-17 Tom Tromey <tromey@redhat.com>
2008 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2011 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2013 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2014 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2016 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2019 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2021 * osfsolib.c: Remove file, replaced by solib-osf.c.
2022 * Makefile.in: Remove compilation rules for osfsolib.c.
2024 2002-09-16 David Carlton <carlton@math.stanford.edu>
2026 * cp-valprint.c (cp_print_class_method): Correct args to
2027 check_stub_method_group.
2029 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2031 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2032 `set architecture'. Unify naming convention of functions.
2033 (h8300_skip_prologue): Improve prologue analysis.
2034 (h8300_push_arguments): Rewritten to more closely match GCC's
2035 bizarre argument-passing behavior, along with the comment describing
2037 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2038 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2039 sim, remote-e7000.c, remote-hms.c and remote.c
2041 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2043 * i386-tdep.c (gdb_print_insn_i386): Removed.
2044 (i386_print_insn): New function.
2045 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2046 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2049 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2051 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2054 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2056 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2057 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2058 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2060 2002-09-13 Christopher Faylor <cgf@redhat.com>
2062 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2064 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2066 * gdbtypes.c (check_stub_method): Make static.
2067 (check_stub_method_group): New function.
2068 * gdbtypes.h: Update prototypes.
2069 * cp-support.c: New file.
2070 * cp-support.h: New file.
2072 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2073 (update_method_name_from_physname): New function.
2074 (read_member_functions): Correct method names for operators
2075 and v3 constructors/destructors. Separate v2 constructors and
2077 * Makefile.in (stabsread.o): Update dependencies.
2078 (SFILES): Add cp-support.c.
2079 (COMMON_OBS): Add cp-support.o.
2080 (cp_support_h, cp-support.o): Add.
2082 * cp-valprint.c (cp_print_class_method): Call
2083 check_stub_method_group instead of check_stub_method. Remove
2085 * p-valprint.c (pascal_object_print_class_method): Likewise.
2086 * valops.c (search_struct_method): Likewise.
2087 (find_method_list, value_struct_elt_for_reference): Likewise.
2089 2002-09-13 Andrew Cagney <cagney@redhat.com>
2091 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2092 * gdbarch.h, gdbarch.c: Regenerate.
2094 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2096 * frame.c (find_saved_register): Delete function.
2097 * frame.h (find_saved_register): Delete declaration.
2100 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2102 * mips-tdep.c (read_next_frame_reg): Re-hack using
2103 frame_register_unwind.
2105 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2107 * mips-tdep.c (mips_get_saved_register): Re-hack using
2108 frame_register_unwind.
2110 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2112 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2113 vector. Will be useful for Interix.
2114 * gdbarch.h, gdbarch.c: Regenerate.
2116 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2117 name of the malloc function by NAME_OF_MALLOC.
2119 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2121 * value.h (find_function_in_inferior): Add const keyword to
2122 one of the parameters. Allows us to invoke this function with
2124 * valops.c (find_function_in_inferior): Likewise.
2126 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2128 * exec.c (xfer_memory): Fix compilation warning with old versions
2130 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2132 2002-09-12 David Carlton <carlton@math.stanford.edu>
2134 * symtab.h: Run through gdb_indent.h.
2135 Add 2002 to Copyright year list.
2137 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2139 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2141 * MAINTAINERS: Add myself to write after approval list.
2143 2002-09-11 J. Brobecker <brobecker@gnat.com>
2145 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2147 2002-09-11 J. Brobecker <brobecker@gnat.com>
2149 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2152 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2154 * procfs.c (do_detach): Clear current signal, not just fault.
2155 Corrects problem with breakpoint trap signal leaking to detached
2158 2002-09-10 Michael Snyder <msnyder@redhat.com>
2160 * buildsym.c (finish_block): Protect against null pointer.
2162 2002-09-10 Andrew Cagney <cagney@redhat.com>
2164 * infcmd.c (default_print_registers_info): Send all output to
2165 ``file'' instead of ``gdb_stdout''.
2167 2002-09-10 Michael Snyder <msnyder@redhat.com>
2169 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2170 LONGEST, and use signed register read (addresses are sign-
2173 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2175 * event-loop.c (gdb_do_one_event): Make public.
2176 * event-loop.h (gdb_do_one_event): Declare.
2178 2002-09-10 Jeff Law <law@redhat.com>
2180 * infttrace.c (child_resume): Simplify and rework to avoid
2183 2002-09-09 Fred Fish <fnf@intrinsity.com>
2185 * printcmd.c (print_scalar_formatted): "len" is the number of
2186 target bytes, NOT the number of target bits.
2188 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2190 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2191 * top.c (init_main): Set rl_terminal_name.
2193 2002-09-08 Aidan Skinner <aidan@velvet.net>
2195 * ada-lang.c (ada_array_bound, ada_type_match,
2196 _initialize_ada_language): Fix K&R definitions.
2197 * ada-tasks.c (get_current_task): Fix K&R definitions.
2198 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2200 2002-09-07 Christopher Faylor <cgf@redhat.com>
2202 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2205 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2207 * i386-tdep.c (i386_register_virtual_type,
2208 i386_register_convertible, i386_register_convert_to_virtual,
2209 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2210 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2211 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2212 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2213 Don't set push_arguments twice.
2215 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2216 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2217 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2218 sigtramp_end to NULL.
2219 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2221 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2223 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2226 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2227 * gdbarch.h, gdbarch.c: Re-generate.
2228 * blockframe.c (find_pc_sect_partial_function): Convert to use
2229 SIGTRAMP_START_P predicate.
2231 2002-09-05 Michael Snyder <msnyder@redhat.com>
2233 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2234 generic_dummy_frame method and old method. Also distinguish
2235 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2236 (arm_extract_return_value): Use new regcache method.
2238 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2239 adjustment that doesn't conform to the ABI.
2240 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2241 saved regcache, not from current regcache.
2243 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2245 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2248 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2250 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2251 if arm_apcs_32 is false.
2253 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2255 GDB 5.3 branch created.
2257 2002-09-03 Theodore A. Roth <troth@verinet.com>
2259 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2260 generic_unwind_get_saved_register.
2262 2002-09-03 David Carlton <carlton@math.stanford.edu>
2264 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2265 argument (PR gdb/653). Update call to smash_to_method_type.
2266 (read_structure_scope): Update call to dwarf2_add_member_fn.
2268 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2270 * x86-64-linux-tdep.c: Include gdb_string.h
2271 * x86-64-linux-nat.c: Ditto.
2273 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2275 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2276 when YYDEBUG is set to 1.
2277 * c-exp.y: Likewise.
2278 * f-exp.y: Likewise.
2279 * jv-exp.y: Likewise.
2280 * m2-exp.y: Likewise.
2281 * p-exp.y: Likewise.
2283 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2285 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2287 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2288 solib_svr4_fetch_link_map_offsets to
2289 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2290 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2291 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2292 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2293 solib-svr4.o, and solib-legacy.o.
2294 * config/i386/tm-nbsd.h: Include solib.h.
2296 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2298 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2299 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2300 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2301 comment noting that this needs its own target configuration.
2302 * config/i386/nbsd.mt: New file.
2303 * config/i386/nbsdaout.mt: Remove.
2304 * config/i386/nbsdelf.mt: Ditto.
2305 * config/i386/tm-nbsdaout.h: Ditto.
2307 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2309 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2310 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2311 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2313 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2314 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2315 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2317 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2319 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2320 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2321 * i386-tdep.h (i386bsd_init_abi): New prototype.
2322 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2323 function declaration.
2324 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2325 for NetBSD-a.out or NetBSD-ELF.
2326 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2327 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2328 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2329 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2331 (i386nbsd_pc_in_sigtramp): New function.
2332 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2333 i386nbsd_pc_in_sigtramp.
2334 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2335 and i386nbsdelf_init_abi OS ABI handlers.
2336 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2337 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2339 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2341 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2342 registers if the target really has them.
2344 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2346 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2349 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2351 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2353 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2354 (alphanbsd_skip_sigtramp_frame): New functions.
2355 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2356 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2357 to alphanbsd_sigcontext_addr.
2359 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2361 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2363 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2364 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2365 nbsd_pc_in_sigtramp.
2366 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2367 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2368 * nbsd-tdep.c: Include gdb_string.h.
2369 (nbsd_pc_in_sigtramp): New function.
2370 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2371 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2372 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2373 ppcnbsd_pc_in_sigtramp.
2374 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2375 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2376 shnbsd_pc_in_sigtramp.
2377 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2378 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2379 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2381 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2383 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2384 watchpoints to NULL.
2385 (insert_breakpoints): set val field of watchpoints if NULL.
2388 2002-08-29 Jim Blandy <jimb@redhat.com>
2390 * symtab.c (lookup_symbol_aux): In the cases where we find a
2391 minimal symbol of an appropriate name and use its address to
2392 select a symtab to read and search, use `name' (as passed to us)
2393 as the demangled name when searching the symtab's global and
2394 static blocks, not the minsym's name.
2396 2002-08-29 Keith Seitz <keiths@redhat.com>
2398 * stack.c (print_frame_info_base): Always set current_source_symtab
2399 and current_source_line.
2401 2002-08-29 Donn Terry <donnte@microsoft.com>
2403 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2405 2002-08-28 Keith Seitz <keiths@redhat.com>
2407 * stack.c (select_frame): Add FIXME concerning selected-frame
2409 (select_frame_command): Send selected-frame-level-changed
2410 event notification, but only if the level actually changed.
2411 (up_silently_base): Add selected-frame-level-changed event
2413 (down_silently_base): Likewise.
2415 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2417 * Makefile.in: Update dependencies for all gdb/*.c files.
2419 2002-08-27 Tom Tromey <tromey@redhat.com>
2421 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2422 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2423 Update dependencies.
2424 * i387-tdep.c: Include gdb_string.h.
2425 * osabi.c: Likewise.
2426 * i386-linux-nat.c: Likewise.
2427 * lin-lwp.c: Likewise.
2428 * ax-gdb.c: Likewise.
2429 * signals/signals.c: Likewise.
2430 * jv-valprint.c: Likewise.
2431 * p-lang.c: Likewise.
2432 * c-valprint.c: Likewise.
2433 * cp-abi.c: Likewise.
2435 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2437 * cli/cli-script.h (copy_command_lines): Export.
2438 * breakpoint.c: Include cli/cli-script.h.
2439 * Makefile.in (breakpoint.o): Update dependencies.
2441 2002-08-26 Michael Snyder <msnyder@redhat.com>
2443 * breakpoint.c (insert_breakpoints): Protect all references
2444 to 'process_warning'. Shorten long lines.
2446 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2448 * cli/cli-script.c (copy_command_lines): New function.
2449 * defs.h (copy_command_lines): Export.
2450 * testsuite/gdb.base/commands.exp: New tests for commands
2451 attached to a temporary breakpoint, and for commands that
2452 delete the breakpoint they are attached to.
2454 2002-08-26 Michael Snyder <msnyder@redhat.com>
2456 * breakpoint.c (bpstat_stop_status): Instead of copying the
2457 pointer to the breakpoint commands struct, make a new copy
2458 of the struct and point to that.
2459 (bpstat_clear): Free the commands struct.
2460 (bpstat_clear_actions): Free the commands struct.
2461 (bpstat_do_actions): Free the command actions. Also execute
2462 the local cleanups, instead of deleting them.
2463 (delete_breakpoint): Leave the commands field of the bpstat
2464 chain alone -- it will be freed later.
2466 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2468 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2469 deleted in 2002-08-20 commit. This function is still used by
2472 2002-08-26 Keith Seitz <keiths@redhat.com>
2474 * gdb-events.sh: Add selected-frame-level-changed event.
2475 * gdb-events.c: Regenerated.
2476 * gdb-events.h: Regenerated.
2478 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2481 * inflow.c (terminal_save_ours): New function to save terminal
2483 * inferior.h (terminal_save_ours): Declare.
2484 * target.c (debug_to_terminal_save_ours): New function.
2485 (cleanup_target): Defaults to_terminal_save_ours.
2486 (update_current_target): Inherit to_terminal_save_ours.
2487 (setup_target_debug): Set to_terminal_save_ours.
2488 * target.h (target_terminal_save_ours): New to save terminal settings.
2489 (target_ops): New member to_terminal_save_ours.
2490 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2491 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2492 * inftarg.c (init_child_ops): Likewise.
2493 * m3-nat.c (init_m3_ops): Likewise.
2494 * procfs.c (init_procfs_ops): Likewise.
2495 * wince.c (init_child_ops): Likewise.
2496 * win32-nat.c (init_child_ops): Likewise.
2497 * sol-thread.c (init_sol_thread_ops): Likewise.
2499 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2501 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2502 use regcache_* functions.
2503 (i386_gdbarch_init): Set store_return_value instead of
2504 deprecated_store_return_value.
2506 * regcache.c (regcache_raw_write_signed,
2507 regcache_raw_write_unsigned): New functions.
2508 * regcache.h (regcache_raw_write_signed,
2509 regcache_raw_write_unsigned): New prototypes.
2511 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2513 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2514 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2515 source file dependencies. Cleanup corresponding generator rules.
2517 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2519 * regcache.h (register_offset_hack): Declare.
2520 (regcache_cooked_read_using_offset_hack): Declare.
2521 (regcache_cooked_write_using_offset_hack): Declare.
2523 * regcache.c (register_offset_hack): New function.
2524 (regcache_cooked_read_using_offset_hack): New function.
2525 (regcache_cooked_write_using_offset_hack): New function.
2526 (regcache_dump): Check that the registers, according to their
2527 offset, are packed hard against each other.
2528 (cooked_xfer_using_offset_hack): New function.
2530 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2532 * regcache.c (struct regcache_descr): Add field register_type.
2533 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2535 (init_regcache_descr): Initialize register_type. Pass the descr
2536 to init_legacy_regcache_descr. Use register_type instead of
2537 REGISTER_VIRTUAL_TYPE.
2538 (register_type): New function.
2539 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2540 * regcache.h (register_type): Declare.
2542 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2544 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2545 instead of deprecated_store_return_value. Fix fallout from
2546 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2548 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2550 * regcache.c (max_register_size): New function.
2551 (init_legacy_regcache_descr): Ensure that max_register_size is
2552 large enough for REGISTER_VIRTUAL_SIZE.
2553 * regcache.h (max_register_size): Declare.
2555 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2557 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2559 (e500_extract_return_value): Change type of valbuf pointer to
2562 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2564 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2567 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2568 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2569 long long) to prevent compiler warning on 64-bit systems.
2571 2002-08-23 Andrew Cagney <cagney@redhat.com>
2573 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2574 (DEPRECATED_STORE_RETURN_VALUE): New method.
2575 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2576 * gdbarch.h, gdbarch.c: Re-generate.
2578 * values.c (set_return_value): Pass current_regcache to
2580 * arch-utils.h (legacy_store_return_value): Declare.
2581 * arch-utils.c (legacy_store_return_value): New function.
2582 (legacy_extract_return_value): Update parameters.
2584 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2586 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2587 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2588 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2589 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2590 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2591 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2592 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2593 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2594 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2595 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2598 * i386-tdep.c (i386_extract_return_value): Update.
2599 * arch-utils.c (legacy_extract_return_value): Update.
2600 * frv-tdep.c (frv_gdbarch_init): Update.
2601 * cris-tdep.c (cris_gdbarch_init): Update.
2602 * d10v-tdep.c (d10v_gdbarch_init): Update.
2603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2604 * m68k-tdep.c (m68k_gdbarch_init): Update.
2605 * mcore-tdep.c (mcore_gdbarch_init): Update.
2606 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2607 * s390-tdep.c (s390_gdbarch_init): Update.
2608 * sparc-tdep.c (sparc_gdbarch_init): Update.
2609 * sh-tdep.c (sh_gdbarch_init): Update.
2610 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2611 * v850-tdep.c (v850_gdbarch_init): Update.
2612 * avr-tdep.c (avr_gdbarch_init): Update.
2613 * ia64-tdep.c (ia64_gdbarch_init): Update.
2614 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2615 * vax-tdep.c (vax_gdbarch_init): Update.
2616 * alpha-tdep.c (alpha_gdbarch_init): Update.
2617 * arm-tdep.c (arm_gdbarch_init): Update.
2618 * mips-tdep.c (mips_gdbarch_init): Update.
2619 * i386-tdep.c (i386_gdbarch_init): Update.
2621 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2623 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2624 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2626 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2628 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2631 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2633 * infrun.c (handle_inferior_event): Move a comment outside of a
2634 function call, in order to avoid indent reformatting this part
2635 of the code in an unreadable way.
2637 2002-08-23 Grace Sainsbury <graces@redhat.com>
2639 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2640 when breakpoints fail. Move general breakpoint error messages to
2642 * breakpoint.c (insert_breakpoints): Change warnings when
2643 breakpoints are nto inserted to specify the type. Remove call to
2644 memory_error when hardware breakpoints can't be inserted. Remove
2645 multiple calls to warning so all messages are sent to the user at
2647 (delete_breakpoints): Make insert error messsages more explicit.
2649 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2651 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2652 gdbserver/ChangeLog.
2654 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2656 * i386-tdep.c: Include "objfiles.h".
2657 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2658 skip_trampoline_code.
2659 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2660 (CPLUS_MARKER): Define to '.'.
2662 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2664 (linux_corefile_thread_callback): Increase args->num_notes.
2665 (linux_make_note_section): Initialize thread_args.num_notes, and
2666 use it to determine whether notes for any threads were created.
2668 2002-08-23 Donn Terry <donnte@microsoft.com>
2670 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2671 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2673 (write_with_trace): Conditionalize out the switch branch handling
2674 PCSHOLD if the corresponding macro is not defined. Likewise for
2675 PRSABORT and PRSTOP.
2676 This change will be needed by the Interix port.
2678 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2681 write_register wherever possible instead of manipulating the
2682 register bytes directly.
2683 Assign VALUE_CONTENTS to a variable and use that.
2684 The GPR numbers are now dependent on the architecture.
2686 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2688 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2690 (skip_prologue): Add support for BookE/e500 instructions.
2691 (e500_extract_return_value): New function.
2692 (frame_get_saved_regs): Add support for saving ev registers and
2694 (e500_store_return_value): New function.
2695 (rs6000_gdbarch_init): Move up default intializations of
2696 deprecated_extract_return_value and store_return_value. Overwrite
2697 init of store_return_value with e500 specific version.
2698 Set extract_return_value for e500.
2700 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2702 * blockframe.c (generic_call_dummy_register_unwind): Use
2703 regcache_cooked_read to catch cases in which the variable is
2704 stored in a pseudo register.
2706 2002-08-22 Andrew Cagney <cagney@redhat.com>
2708 * NEWS: Mention that the i960 has been made obsolete.
2709 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2711 (remote-nrom.o): Obsolete target.
2712 (remote-nindy.o, i960-tdep.o): Ditto.
2713 * remote-nrom.c: Make file obsolete.
2714 * remote-nindy.c, remote-vx960.c: Ditto.
2715 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2716 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2717 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2718 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2719 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2720 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2721 i960-*-vxworks* obsolete.
2722 * MAINTAINERS: Note that the i960 is obsolete.
2724 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2726 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2727 detach to allow reinitialization.
2729 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2731 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2734 2002-08-22 Jim Blandy <jimb@redhat.com>
2736 * coffread.c (coff_symfile_read): Don't try to read the line
2737 number table from disk if the image file doesn't have a symbol
2738 table; we'll never actually look at the info anyway, and Windows
2739 ships DLL's with bogus file offsets for the line number data.
2741 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2743 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2746 2002-08-21 Michael Snyder <msnyder@redhat.com>
2748 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2749 (MSYMBOL_SIZE): Replace macro with function.
2750 (DEFAULT_MIPS_TYPE): Delete unused macro.
2751 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2752 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2754 2002-08-21 Jim Blandy <jimb@redhat.com>
2756 * valops.c (value_cast): Simplify and correct logic for doing a
2757 static cast from a pointer to a base class to a pointer to a
2760 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2762 * infcmd.c (default_print_registers_info): Replace
2764 (registers_info): Use gdbarch_print_registers_info instead of
2766 * inferior.h (default_print_registers_info): Replace
2768 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2769 (DO_REGISTERS_INFO): Change to a predicate function.
2770 * gdbarch.h, gdbarch.c: Regenerate.
2772 2002-08-21 Keith Seitz <keiths@redhat.com>
2774 * gdb-events.sh: Add target-changed event.
2775 * gdb-events.c: Regenerated.
2776 * gdb-events.c: Regenerated.
2777 * valops.c (value_assign): Add target-changed event notification
2778 to inlval_register, lval_memory, and lval_reg_frame_relative.
2780 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2782 * NEWS: Add an entry regarding the improvement of the next/step
2783 operation on Alpha Tru64 multi-processor machines.
2785 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2787 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2789 * Makefile.in: Update all _h macro definitions.
2790 * Makefile.in (install-gdbtk): Move to install section.
2791 (rdi-share/libangsd.a): Move to end of file.
2793 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2795 * frame.c (frame_register_unwind): When a register, set addrp to
2796 the register's byte.
2798 2002-08-20 Michael Snyder <msnyder@redhat.com>
2800 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2801 used locally, so move them from the target machine header to here.
2802 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2803 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2805 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2807 2002-08-20 Andrew Cagney <cagney@redhat.com>
2809 * NEWS: Mention that the Apollo line was made obsolete.
2810 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2811 m68*-hp-hpux* obsolete.
2812 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2813 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2814 * buildsym.c (make_blockvector): Make static.
2815 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2816 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2817 (ALLDEPFILES): Remove dstread.c.
2818 (dstread.o): Obsolete make rule.
2819 * dstread.c: Makefile obsolete.
2821 * config/m68k/hp300hpux.mt: Ditto.
2822 * config/m68k/hp300hpux.mh: Ditto.
2823 * config/m68k/hp300bsd.mt: Ditto.
2824 * config/m68k/hp300bsd.mh: Ditto.
2825 * config/m68k/apollo68b.mt: Ditto.
2826 * config/m68k/apollo68v.mh: Ditto.
2827 * config/m68k/apollo68b.mh: Ditto.
2829 2002-08-20 Michael Snyder <msnyder@redhat.com>
2831 * mips-tdep.c (mips_in_return_stub): Make static.
2832 (mips_gdbarch_init): Set in_solib_return_trampoline.
2833 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2835 2002-08-20 Michael Snyder <msnyder@redhat.com>
2837 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2838 * gdbarch.c, gdbarch.h: Regenerate.
2839 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2841 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2843 2002-08-20 Michael Snyder <msnyder@redhat.com>
2845 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2846 (mips_gdbarch_init): Set skip_trampoline_code,
2847 in_solib_call_trampoline.
2848 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2849 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2851 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2853 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2855 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2856 vector type for ev registers.
2857 (e500_pseudo_register_read): New function.
2858 (e500_pseudo_register_write): New function.
2859 (e500_dwarf2_reg_to_regnum): New function.
2860 (PPC_UISA_NOFP_SPRS): New macro.
2861 (PPC_EV_REGS): New macro.
2862 (PPC_GPRS_PSEUDO_REGS): New macro.
2863 (registers_e500): New register set for e500.
2864 (variants): Add e500 variant.
2865 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2866 before setting architectural dependent variations. Initialize ev
2867 registers numbers. Add case for e500 architecture. Set the
2868 number of pseudo registers.
2870 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2872 * rs6000-tdep.c: Clean up comments.
2874 2002-08-20 Andrew Cagney <cagney@redhat.com>
2876 * h8300-tdep.c: Re-indent file.
2878 2002-08-20 Jim Blandy <jimb@redhat.com>
2880 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2883 2002-08-20 Keith Seitz <keiths@redhat.com>
2885 * breakpoints.c (watch_command_1): Use internal breakpoint
2886 when setting a watchpoint_scope breakpoint.
2888 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2890 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2891 (build_builtin_type_vec64i): Ditto.
2892 (build_builtin_type_vec128): Ditto.
2893 (build_builtin_type_vec128i): Ditto.
2895 2002-08-19 Michael Snyder <msnyder@redhat.com>
2897 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2898 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2899 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2900 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2901 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2902 CALL_DUMMY_ADDRESS): Delete.
2903 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2904 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2905 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2906 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2907 push_return_address.
2908 (mips_register_raw_size, mips_eabi_use_struct_convention,
2909 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2910 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2911 mips_init_extra_frame_info, mips_eabi_push_arguments,
2912 mips_n32n64_push_arguments, mips_push_return_address,
2913 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2914 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2916 2002-08-19 Michael Snyder <msnyder@redhat.com>
2918 * mips-tdep.c (mips_frame_num_args): New function.
2919 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2920 frame_saved_pc, frame_args_address, frame_locals_address,
2921 frame_num_args, and frame_args_skip.
2922 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2923 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2924 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2925 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2927 2002-08-20 Michael Snyder <msnyder@redhat.com>
2929 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2930 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2931 * mips-tdep.c (mips_store_struct_return): New function.
2932 (mips_extract_struct_value_address): New function.
2933 (mips_gdbarch_init): Set store_struct_return and
2934 extract_struct_value_address.
2936 2002-08-20 David Carlton <carlton@math.stanford.edu>
2938 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2939 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2940 (read_file_scope): Check that line_header is nonzero before
2941 decoding macro information.
2943 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2945 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2946 flag the general-purpose registers as floating-point on targets
2947 that don't support the floating-point registers.
2949 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2951 * rs6000-tdep.c (altivec_register_p): Delete.
2952 (rs6000_do_altivec_registers): Delete.
2953 (rs6000_altivec_registers_info): Delete.
2954 (rs6000_do_registers_info): Delete.
2955 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2956 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2958 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2960 * infcmd.c (do_registers_info): Print vector registers in hex
2962 (print_vector_info): Check that printing registers
2964 (print_float_info): Ditto.
2966 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2968 * mips-tdep.c (mips_gdbarch_init): Update.
2969 (mips_o32_extract_return_value): Rewrite.
2970 (mips_o32_store_return_value): Rewrite.
2971 (mips_o32_xfer_return_value): New function.
2972 (mips_xfer_register): Tweak debug print message. Allow for
2973 buf_offset when dumping the value transfered.
2975 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2977 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2978 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2979 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2980 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2981 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2983 2002-08-14 Michael Snyder <msnyder@redhat.com>
2985 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2987 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2989 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2991 (P): New macro to define a register as a pseudo register.
2992 (R, R4, R8, R16, FR32, R64, R0): Updated.
2993 (struct variant): Add new fields for number of pseudo registers
2994 and number of total registers.
2995 (tot_num_registers): New macro replacing....
2996 (num_registers): ...deleted macro.
2997 (num_registers): New function.
2998 (num_pseudo_registers): New function.
2999 (variants): Update all variants to intialize new fields correctly.
3000 Postpone initialization of number of pseudo regs and real regs.
3001 (init_variants): New function.
3002 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3005 2002-08-19 David Carlton <carlton@math.stanford.edu>
3007 * valops.c (search_struct_field): Change error message to treat
3008 return value of 0 from value_static_field as meaning that field is
3010 (value_struct_elt_for_reference): Ditto.
3011 * values.c (value_static_field): Treat an unresolved location the
3012 same as a nonexistent symbol. Fix PR gdb/635.
3013 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3014 enclosed. Fix PR gdb/574.
3015 * MAINTAINERS: Add self to Write After Approval list.
3017 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3019 * mips-tdep.c (mips_xfer_register): New function.
3020 (mips_n32n64_extract_return_value): Rewrite.
3021 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3022 instead of deprecated_extract_return_value.
3024 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3026 * rs6000-tdep.c (TDEP): Delete macro.
3027 (branch_dest): Replace use of TDEP macro with its body.
3028 (rs6000_pop_frame): Ditto.
3029 (rs6000_push_arguments): Ditto.
3030 (rs6000_skip_trampoline_code): Ditto.
3031 (rs6000_frame_saved_pc): Ditto.
3032 (rs6000_frame_chain): Ditto.
3033 (rs6000_register_name): Ditto.
3034 (rs6000_register_byte): Ditto.
3035 (rs6000_register_raw_size): Ditto.
3036 (rs6000_register_virtual_type): Ditto.
3037 (rs6000_register_convertible): Ditto.
3038 (rs6000_convert_from_func_ptr_addr): Ditto.
3040 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3042 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3044 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3045 MIPS_LINUX_JB_ELEMENT_SIZE.
3046 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3047 for MAX_REGISTER_RAW_SIZE arrays.
3048 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3049 MIPS_LINUX_JB_ELEMENT_SIZE.
3051 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3053 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3055 2002-08-19 Aidan Skinner <aidan@velvet.net>
3057 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3058 ada-valprint.c ada-tasks.c.
3059 (YYFILES): Add ada-exp.y.
3060 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3061 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3062 (ada-exp.tab.o): New target.
3064 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3066 * regcache.c (regcache_xfer_part): New function.
3067 (regcache_raw_read_part): New function.
3068 (regcache_raw_write_part): New function.
3069 (regcache_cooked_read_part): New function.
3070 (regcache_cooked_write_part): New function.
3071 * regcache.h (regcache_raw_read_part): Declare.
3072 (regcache_raw_write_part): Declare.
3073 (regcache_cooked_read_part): Declare.
3074 (regcache_cooked_write_part): Declare.
3076 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3078 * remote.c (remote_open_1): Add async_p.
3079 (remote_async_open_1): Delete.
3080 (open_remote_target): Delete.
3081 (remote_open, extended_remote_open): Update calls to remote_open_1.
3082 (remote_async_open, extended_remote_async_open): Call
3083 remote_open_1 instead of remote_async_open_1.
3085 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3087 * blockframe.c: Fix a few coding standard violations.
3089 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3091 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3093 * config/i386/tm-i386sco5.h: ... here. File removed.
3094 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3096 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3097 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3098 (TM_FILE): Set to tm-i386.h.
3099 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3100 * config/i386/tm-i386v.h: Remove file.
3101 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3102 instead of "i386/tm-i386v.h".
3103 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3104 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3106 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3107 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3110 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3112 * config/i386/nm-i386v.h: Add protection against
3114 (i386_register_u_addr): Remove prototype.
3115 (register_u_addr): New prototype.
3116 (REGISTER_U_ADDR): Redefine accordingly.
3117 * i386v-nat.c: Improve several comments.
3118 (i386_register_u_addr): Change signature and rename to
3119 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3122 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3124 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3125 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3126 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3127 deprecated_extract_return_value.
3128 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3129 rename mips_o32o64_push_arguments.
3130 (mips_gdbarch_init): Update.
3131 (mips_extract_return_value): Delete.
3132 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3133 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3134 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3135 (mips_n32n64_extract_return_value): Clone
3136 mips_extract_return_value.
3137 (mips_store_return_value): Delete.
3138 (mips_o32_store_return_value): Clone mips_store_return_value.
3139 (mips_o64_store_return_value): Clone mips_store_return_value.
3140 (mips_eabi_store_return_value): Clone mips_store_return_value.
3141 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3143 2002-08-18 Aidan Skinner <aidan@velvet.net>
3145 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3146 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3148 2002-08-18 Aidan Skinner <aidan@velvet.net>
3150 * ada-lang.c: Run through gdb_indent.sh.
3151 * ada-lang.h: Run through gdb_indent.sh.
3152 * ada-tasks.c: Run through gdb_indent.sh.
3153 * ada-typeprint.c: Run through gdb_indent.sh.
3154 * ada-valprint.c: Run through gdb_indent.sh.
3156 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3158 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3161 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3163 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3165 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3166 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3168 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3169 write_register_gen instead of write_register_bytes.
3171 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3172 i[3456]-*-osf1mk* configurations have been made obsolete.
3173 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3174 i[3456]86-*-osf1mk* hosts obsolete.
3175 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3177 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3178 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3179 config/i386/i386m3.mt, config/i386/nm-m3.h,
3180 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3181 config/i386/i386mk.mh, config/i386/i386mk.mt,
3182 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3184 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3185 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3186 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3188 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3190 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3191 (hppa_value_returned_from_stack): Declare.
3192 (hppa_extract_return_value): Declare.
3193 * config/pa/hppa.mt: New file.
3194 * configure.tgt: Recognize hppa*-*-*.
3195 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3197 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3199 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3202 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3204 * top.c (gdb_rl_operate_and_get_next): Make sure
3205 operate-and-get-next functions correctly even when the history
3206 list is completely filled.
3208 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3210 * MAINTAINERS (Target Instruction Set Architectures): Rename
3211 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3212 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3213 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3214 already listed under Host/Native.
3216 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3217 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3220 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3222 * config/ia64/ia64.mt: New file.
3223 * config/alpha/alpha.mt: New file.
3224 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3225 ia64-linux-gnu. Mention that ia64-elf is broken.
3226 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3228 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3230 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3231 generic_func_frame_valid instead of func_frame_valid.
3233 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3235 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3236 procfs appears to be broken when debugging on multi-processor
3237 machines. So enable software single stepping in order to avoid
3238 using the procfs interface to do next/step operations, using
3239 internal breakpoints instead.
3241 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3242 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3243 make this pc address equal to the value it would have if the
3244 system stepping capability was used. Also set a new flag used
3245 to ensure that we don't readjust the PC one more time later.
3247 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3248 address by DECR_PC_AFTER_BREAK when software single step is
3249 in use for this architecture, as this has already been taken
3250 care of in handle_inferior_event().
3252 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3254 * infrun.c (handle_inferior_event): Minor reformatting, to make
3255 a rather long condition expression easier to read.
3257 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3259 * Makefile.in (gdbtk.o): Move to end of file.
3260 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3261 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3262 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3263 (gdbtk-wrapper.o, gdbres.o): Ditto.
3265 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3267 * Makefile.in (copying.o): Separate out compile rule.
3268 (hpux-thread.o, procfs.o, signals.o): Ditto.
3269 (v850ice.o, z8k-tdep.o): Ditto.
3270 (tui-file.o): Move to TUI section.
3271 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3272 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3274 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3276 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3277 skip_trampoline_code, for better namespace-proofing.
3279 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3281 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3283 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3285 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3287 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3288 signal, check whether we hit a breakpoint before checking for a
3289 single step breakpoint. Otherwise, GDB fails to notice that a
3290 breakpoint has been hit when stepping onto a breakpoint.
3292 2002-08-16 Keith Seitz <keiths@redhat.com>
3294 * gdb-events.sh (clear_gdb_event_hooks): New function.
3295 * gdb-events.c: Regenerate.
3296 * gdb-events.h: Regenerate.
3298 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3300 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3301 not_a_sw_breakpoint.
3302 * breakpoint.h (bpstat_stop_status): Add parameter names.
3304 2002-08-16 Grace Sainsbury <graces@redhat.com>
3306 * remote.c (remote_insert_hw_breakpoint)
3307 (remote_remove_hw_breakpoint): Fix calculation of length field
3310 2002-08-15 Michael Snyder <msnyder@redhat.com>
3312 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3313 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3314 (supply_fpregset): Ditto.
3316 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3317 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3318 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3319 (TARGET_READ_SP): Delete.
3320 (DO_REGISTERS_INFO): Delete.
3321 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3323 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3324 from macros to functions.
3326 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3327 (mips_register_convertible, mips_register_convert_to_virtual,
3328 mips_register_convert_to_raw): Make static.
3329 (mips_read_sp): New function.
3330 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3331 (mips_do_registers_info): Make static.
3332 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3333 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3334 (mips_register_convert_from_type, mips_register_convert_to_type):
3336 (mips_gdbarch_init): Set up function_start_offset,
3337 register_virtual_size, pc_in_sigtramp.
3339 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3341 * infcmd.c (vector_info): New function.
3342 (_initialize_infcmd): Add command "info vector".
3343 (print_vector_info): New function.
3345 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3346 * gdbarch.h, gdbarch.c: Regenerate.
3348 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3350 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3351 ``print_all''. Only print vector registers when ``print_all''.
3353 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3355 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3356 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3358 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3359 Add `args' parameter.
3360 * gdbarch.h, gdbarch.c: Regenerate.
3362 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3364 * infcmd.c (float_info): Call print_float_info.
3365 (print_float_info): New function. By default, print the
3366 floating-point registers.
3368 * arch-utils.h (default_print_float_info): Delete declaration.
3369 * arch-utils.c (default_print_float_info): Delete function.
3371 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3373 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3376 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3379 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3380 * configure.host: Make i[3456]86-*-aix host obsolete.
3381 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3382 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3383 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3384 config/i386/xm-i386aix.h: Make files obsolete.
3385 * i386aix-nat.c: Make file obsolete.
3386 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3387 (i386aix-nat.o): Make target obsolete.
3389 * config/i386/nm-gnu.h: Removed.
3390 * config/i386/nm-i386gnu.h: New file.
3391 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3392 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3394 * config/i386/tm-i386gnu.h: ... here. Removed.
3395 * config/i386/xm-i386gnu.h: Removed.
3396 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3397 (NAT_FILE): Set to nm-i386gnu.h.
3398 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3399 * i386-tdep.c: New file.
3400 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3401 (i386gnu-tdep.o): Specify dependencies.
3403 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3405 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3406 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3407 Adjust a few comments to reflect reality a bit closer.
3408 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3409 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3410 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3411 target_insert_watchpoint, target_remove_watchpoint):
3413 * config/i386/nm-i386sco5.h: ... here.
3414 (kernel_u_size): Add prototype. Improve a few comments and add
3415 protection against multiple inclusion.
3417 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3420 * uw-thread.c (SP_ARG0): Define if not already defined.
3421 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3423 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3425 * config/i386/tm-i386.h: Don't include "regcache.h".
3427 * i387-tdep.h (i387_print_float_info): New prototype.
3428 * i387-tdep.c (print_i387_value, print_i387_ext,
3429 print_i387_status_word, print_i387_control_word): Add `struct
3430 ui_file *' argument and use it for output.
3431 (i387_print_float_info): Renamed from i387_float_info. Add
3432 `struct gdbarch *' and `struct ui_file *' arguments and use the
3434 * i386-tdep.c: Include "i387-tdep.h".
3435 (i386_gdbarch_init): Set print_float_info.
3436 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3437 (FLOAT_INFO): Remove define.
3439 2002-08-13 Michael Snyder <msnyder@redhat.com>
3441 * mips-tdep.c (mips_push_arguments): Rename to
3442 mips_eabi_push_arguments, and tune for EABI.
3443 (MIPS_REGS_HAVE_HOME_P): Delete.
3444 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3445 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3446 Delete references to mips_regs_have_home_p.
3448 2002-08-14 Keith Seitz <keiths@redhat.com>
3450 * Makefile.in (install-gdbtk): Create insight plugin directory.
3451 Install plugins.tcl file.
3453 2002-08-14 Keith Seitz <keiths@redhat.com>
3455 * configure.in: Move SUBDIRS to near top of the file so that
3456 --enable options may add things to it.
3457 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3458 * configure: Regenerate.
3460 2002-08-13 Michael Snyder <msnyder@redhat.com>
3462 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3463 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3464 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3466 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3468 * vax-tdep.c (vax_get_saved_register): Delete function.
3469 (vax_gdbarch_init): Update.
3470 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3471 (ns32k_gdbarch_init): Update.
3472 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3473 (alpha_gdbarch_init): Update.
3475 2002-08-13 Andrew Cagney <cagney@redhat.com>
3477 * regcache.c (init_regcache_descr): Overallocate the
3478 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3479 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3481 (set_register_cached): Add range checking assertions. Use
3484 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3486 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3487 numbers for MMX registers.
3489 2002-08-13 Andrew Cagney <cagney@redhat.com>
3491 * i386-tdep.c (i386_gdbarch_init): Use
3492 generic_unwind_get_saved_register.
3494 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3496 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3497 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3499 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3500 Delete. Add comment regarding this now-deleted target method.
3502 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3504 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3505 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3506 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3507 real PC and the page number (if it's within the memory bank window).
3508 (m68hc11_pseudo_register_write): Likewise when saving.
3509 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3510 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3511 (m68hc11_register_raw_size): And use 32-bit for it.
3512 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3513 16K memory bank is used by the prog; also use the virtual pc.
3515 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3517 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3518 (m68hc11_gdbarch_init): Install it in gdbarch.
3519 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3520 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3521 (MSYMBOL_SIZE): New for documentation.
3522 (insn_return_kind): Enum to specify how a function returns.
3523 (frame_extra_info): Cleanup and record the return mode.
3524 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3525 register in address computation.
3526 (m68hc11_get_return_insn): New to obtain the return instruction used
3528 (m68hc11_frame_init_saved_regs): Take into account the return
3529 instruction used by the function for far and interrupt functions.
3530 (m68hc11_init_extra_frame_info): Take into account page register.
3531 (m68hc11_frame_args_address): Adjust according to the return mode.
3532 (show_regs): Print page register only when it's used.
3534 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3536 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3537 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3538 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3540 (m68hc11_register_raw_size): Likewise.
3542 2002-08-13 Andrew Cagney <cagney@redhat.com>
3544 * i386-tdep.c (i386_register_name): Handle mmx registers.
3545 (mmx_regnum_p): New function.
3546 (i386_mmx_names): New array.
3547 (mmx_num_regs): New variable.
3548 (i386_pseudo_register_read): New function.
3549 (i386_pseudo_register_write): New function.
3550 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3552 * regcache.c (regcache_raw_read_unsigned): New function.
3553 (regcache_raw_read_signed): New function.
3554 * regcache.h (regcache_raw_read_unsigned): Declare.
3555 (regcache_raw_read_signed): Declare.
3557 2002-08-13 Andrew Cagney <cagney@redhat.com>
3559 * regcache.c (regcache_raw_read_as_address): Delete function.
3560 (regcache_cooked_read_signed): New function.
3561 (regcache_cooked_read_unsigned): New function.
3562 * regcache.h (regcache_cooked_read_signed): Declare.
3563 (regcache_cooked_read_unsigned): Declare.
3564 (regcache_raw_read_as_address): Delete declaration.
3566 * blockframe.c (generic_read_register_dummy): Use
3567 regcache_cooked_read_unsigned.
3568 * i386-tdep.c (i386_extract_struct_value_address): Use
3569 regcache_cooked_read_unsigned.
3571 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3574 double sizes according to ELF ABI flags.
3575 (gdbarch_tdep): Record elf_flags.
3577 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3579 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3580 (m6812_prolog): They can appear in 68HC12 function prologue.
3581 (m68hc11_frame_chain): Cleanup.
3583 2002-08-12 Andrew Cagney <cagney@redhat.com>
3585 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3587 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3588 (i386_linux_register_raw_size): Delete function.
3589 (i386_linux_init_abi): Update.
3590 * i386-tdep.c (i386_register_raw_size): Delete function.
3591 (i386_register_byte): Delete function.
3592 (i386_gdbarch_init): Update.
3593 (i386_register_size): Delete array.
3594 (i386_register_offset): Delete array.
3596 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3597 (REGISTER_RAW_SIZE): Delete macro.
3598 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3599 (REGISTER_BYTE): Delete macro.
3601 2002-08-11 Aidan Skinner <aidan@velvet.net>
3603 * ada-lang.c (ada_lookup_partial_symbol)
3604 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3605 prototype names so that grep ^func works properly.
3607 * ada-lang.c (ada_array_element_type)
3608 (ada_lookup_partial_symbol): Fix typos in parameter list.
3610 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3611 Fix prototype names so that grep ^func works properly.
3613 2002-08-10 Andrew Cagney <cagney@redhat.com>
3614 Elena Zannoni <ezannoni@redhat.com>
3615 Martin M. Hunt <hunt@redhat.com>
3617 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3618 (build_builtin_type_vec128i): Set the vector bit.
3619 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3620 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3621 (build_builtin_type_vec64): New function.
3622 (build_builtin_type_vec64i): New function.
3623 (build_gdbtypes): Initialize builtin_type_vec64 and
3624 builtin_type_vec64i.
3626 2002-08-09 Andrew Cagney <cagney@redhat.com>
3628 * regcache.c (regcache_dump): Compare the register offset
3630 * arch-utils.c (generic_register_byte): New function.
3631 * arch-utils.h (generic_register_byte): Declare.
3632 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3633 * gdbarch.h, gdbarch.c: Regenerate.
3635 2002-08-09 Andrew Cagney <cagney@redhat.com>
3637 * regcache.c: Include "gdbcmd.h"
3638 (_initialize_regcache): Add commands "maintenance print
3639 registers", "maintenance print raw-registers" and "maintenance
3640 print cooked-registers".
3641 (enum regcache_dump_what): Define.
3642 (dump_endian_bytes): New function.
3643 (regcache_dump): New function.
3644 (regcache_print): New function.
3645 (maintenance_print_registers): New function.
3646 (maintenance_print_raw_registers): New function.
3647 (maintenance_print_cooked_registers): New function.
3648 * Makefile.in (regcache.o): Update dependencies.
3650 2002-08-09 Michael Snyder <msnyder@redhat.com>
3652 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3653 (mips_push_arguments): Correct some comments. Use paddr_nz
3654 for printing addresses in debug output. Replace static
3655 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3656 (mips_n32n64_push_arguments): New function, cloned from
3657 mips_push_arguments and tuned for the n32/n64 ABI.
3658 (mips_push_register): Buffer needs dynamic allocation.
3659 (mips_print_register): Ditto.
3660 (do_gp_register_row): Ditto.
3661 (mips_store_return_value): Ditto.
3662 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3664 2002-08-09 Don Howard <dhoward@redhat.com>
3666 * memattr.c (mem_info_command): Print special case of upper bound
3667 as max CORE_ADDR + 1.
3669 2002-08-08 Michael Snyder <msnyder@redhat.com>
3671 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3672 returns structs by ref if they're too big to fit in two registers.
3674 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3676 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3678 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3679 mips_find_saved_regs().
3680 (mips_pop_frame): Likewise.
3682 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3684 * blockframe.c (frame_saved_regs_register_unwind): Revise
3685 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3688 2002-08-09 Grace Sainsbury <graces@redhat.com>
3690 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3691 T-packets; the 'a' is not taken as a register number.
3692 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3693 (remote_stopped_data_address): New functions; add to target
3695 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3696 prototypes to match other implementations of this
3697 function. replace integer argument with pointer -- the length
3698 field in the Z-packet is the length of what is pointed to or 1 if
3699 pointer is null. Add to target vector.
3700 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3704 * remote.c (remote_wait): Add support to extract optional
3705 watchpoint information from T-packet. Ignore unrecognized
3706 optional info in T-packet.
3707 (remote_async_wait): Ditto.
3709 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3711 * cli/cli-dump.c: Change fopen modes to use binary open modes
3712 as defined in include/fopen-bin.h throughout.
3714 2002-08-08 Michael Snyder <msnyder@redhat.com>
3716 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3718 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3720 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3721 assertion failure by returning early after a warning.
3723 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3725 * mips-tdep.c (mips_find_saved_regs): Make static.
3726 (mips_frame_init_saved_regs): New function.
3727 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3728 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3729 (mips_find_saved_regs): Delete declaration.
3731 2002-08-08 Grace Sainsbury <graces@redhat.com>
3733 * remote.c (remote_wait, remote_async_wait): Change
3734 thread_num from int to ULONGEST.
3735 (unpack_varlen_hex): Change result parameter from
3736 int * to ULONGEST *.
3738 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3740 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3741 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3743 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3745 2002-08-08 Andrew Cagney <cagney@redhat.com>
3747 * gcore.c (override_derive_stack_segment): Delete variable.
3748 (preempt_derive_stack_segment): Delete function.
3749 (derive_stack_segment): Delete function.
3750 (default_derive_stack_segment): Renamed to derive_stack_segment.
3751 (override_derive_heap_segment): Delete variable.
3752 (preempt_derive_heap_segment): Delete function.
3753 (derive_heap_segment): Delete function.
3754 (default_derive_heap_segment): Rename to derive_heap_segment.
3756 2002-08-06 Michael Snyder <msnyder@redhat.com>
3758 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3759 * mips-tdep.c (mips_EABI_use_struct_convention,
3760 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3761 New functions. (mips_use_struct_convention): Delete.
3762 (mips_gdbarch_init): set use_gdbarch_convention.
3764 2002-08-06 Michael Snyder <msnyder@redhat.com>
3766 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3767 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3768 mips_o32_reg_struct_has_addr): New functions.
3769 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3771 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3773 * regcache.c (pseudo_register): Delete function.
3774 (fetch_register): Delete function.
3775 (store_register): Delete function.
3776 (regcache_raw_read, legacy_read_register_gen): Use
3777 target_fetch_registers instead of fetch_register.
3778 (legacy_write_register_gen, regcache_raw_write): Use
3779 target_store_register instead of store_register.
3780 (write_register_bytes): Ditto.
3782 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3783 (STORE_PSEUDO_REGISTER): Delete.
3784 * gdbarch.h, gdbarch.c: Regenerate.
3786 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3788 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3789 write dump file binary.
3791 2002-08-05 Michael Snyder <msnyder@redhat.com>
3793 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3794 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3795 (mips_gdbarch_init): Set N32 target to be mips64.
3797 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3799 * frame.c (find_saved_register): Break out of loop once saved
3800 register address is found. Don't mention sparc in loop comment
3803 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3805 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3806 mips_default_saved_regsize to 8.
3808 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3810 * gcore.c: Do not include <sys/procfs.h>.
3811 * Makefile.in (gcore.o): Update dependencies.
3813 2002-08-06 Andrew Cagney <cagney@redhat.com>
3815 * configure.tgt: Make arc-*-* obsolete.
3816 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3817 * MAINTAINERS: Make arc-elf obsolete.
3818 * arc-tdep.c: Make file obsolete.
3819 * config/arc/arc.mt: Ditto.
3820 * config/arc/tm-arc.h: Ditto.
3822 2002-08-05 Theodore A. Roth <troth@verinet.com>
3824 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3826 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3828 * mcore-tdep.c (mcore_gdbarch_init): Use
3829 generic_unwind_get_saved_register instead of
3830 generic_get_saved_register.
3831 * v850-tdep.c (v850_gdbarch_init): Ditto.
3832 * frv-tdep.c (frv_gdbarch_init): Ditto.
3833 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3834 * s390-tdep.c (s390_gdbarch_init): Ditto.
3835 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3836 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3837 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3839 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3841 * objfiles.h: Add missing #include "symfile.h"
3843 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3845 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3847 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3848 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3851 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3853 * NEWS: Cleanup and nitpick.
3855 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3857 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3859 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3861 * Makefile.in (gdbtk-bp.o): Update dependencies.
3862 (gdbtk-register.o): Ditto.
3863 (gdbtk-varobj.o): Ditto.
3865 2002-08-03 Andrew Cagney <cagney@redhat.com>
3867 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3868 m68hc11_fetch_pseudo_register.
3869 (m68hc11_pseudo_register_write): Replace
3870 m68hc11_store_pseudo_register.
3871 (m68hc11_gdbarch_init): Update.
3873 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3875 * gdbarch.sh: Include "gdb_string.h".
3876 * gdbarch.c: Regenerate.
3878 * regcache.c: Include "gdb_string.h".
3879 * ax-general.c: Ditto.
3881 * std-regs.c: Ditto.
3882 * fbsd-proc.c: Ditto.
3885 * Makefile.in (regcache.o): Update dependencies.
3886 (thread.o, gdbarch.o): Ditto.
3887 (ax-general.o, gdbarch.o): Ditto.
3888 (varobj.o, std-regs.o): Ditto.
3889 (fbsd-proc.o): Specify dependencies.
3891 2002-08-02 Andrew Cagney <cagney@redhat.com>
3893 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3895 (regcache_cooked_write): Ditto.
3897 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3899 * regcache.c (regcache_cooked_read): New function.
3900 (regcache_cooked_write): New function.
3901 (read_register_gen): Rewrite using regcache_cooked_read.
3902 (write_register_gen): Rewrite using regcache_cooked_write.
3904 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3907 2002-08-02 Andrew Cagney <cagney@redhat.com>
3909 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3910 Replace the architecture methods register_read and register_write.
3911 * gdbarch.h, gdbarch.c: Regenerate.
3912 * regcache.c (init_regcache_descr): Update.
3913 (read_register_gen): Update.
3914 (write_register_gen): Update.
3915 (supply_register): Update comment.
3917 * sh-tdep.c (sh_gdbarch_init): Update.
3918 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3919 `regcache' and `gdbarch' parameters. Make `buffer' a void
3920 pointer. Update code.
3921 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3922 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3923 void pointer. Update code.
3924 (sh64_register_write): Delete.
3925 (sh4_register_read): Delete.
3926 (sh64_register_read): Delete.
3927 (sh4_register_write): Delete.
3928 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3929 void pointer, `to' parameter a void pointer.
3930 (sh_sh64_register_convert_to_raw): Ditto.
3932 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3934 * mips-tdep.c (mips_register_virtual_type): Use architecture
3935 invariant return values.
3937 2002-08-01 Andrew Cagney <cagney@redhat.com>
3939 * linux-proc.c: Include "gdb_string.h".
3940 * Makefile.in (linux-proc.o): Update dependency list.
3942 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3944 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3947 2002-08-01 Grace Sainsbury <graces@redhat.com>
3949 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3950 to_insert_watchpoint, to_remove_watchpoint,
3951 to_stopped_by_watchpoint, to_stopped_data_address,
3952 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3953 target vecctor. Define their corresponding macros so they call
3956 * target.c: Add default and debug versions of for
3957 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3958 to_insert_watchpoint, to_remove_watchpoint,
3959 to_stopped_by_watchpoint, to_stopped_data_address,
3960 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3962 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3964 * mips-tdep.c (mips_register_virtual_type): New function.
3965 (mips_gdbarch_init): Register mips_register_virtual_type()
3966 with gdbarch machinery.
3967 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3968 this file instead of tm-bigmips.h.
3969 (MIPS_REGSIZE): Delete this macro.
3970 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3971 multiarch version in mips-tdep.c will be found.
3973 2002-08-01 Andrew Cagney <cagney@redhat.com>
3975 * NEWS: Menion that CHILL has been made obsolete.
3977 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3978 * stabsread.c (read_range_type): Ditto.
3979 * gdbtypes.h: Ditto.
3980 * language.c (binop_type_check): Ditto.
3981 (binop_result_type): Ditto.
3982 (integral_type): Ditto.
3983 (character_type): Ditto.
3984 (string_type): Ditto.
3985 (boolean_type): Ditto.
3986 (structured_type): Ditto.
3987 (lang_bool_type): Ditto.
3988 (binop_type_check): Ditto.
3989 * language.h (_LANG_chill): Ditto.
3990 * dwarfread.c (set_cu_language): Ditto.
3991 * dwarfread.c (CHILL_PRODUCER): Ditto.
3992 * dwarfread.c (handle_producer): Ditto.
3993 * expression.h (enum exp_opcode): Ditto.
3994 * eval.c: Ditto for comments.
3995 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3996 * expprint.c (print_subexp): Ditto.
3997 (print_subexp): Ditto.
3998 * valops.c (value_cast): Ditto.
3999 (search_struct_field): Ditto.
4000 * value.h (COERCE_VARYING_ARRAY): Ditto.
4001 * symfile.c (init_filename_language_table): Ditto.
4002 (add_psymbol_with_dem_name_to_list): Ditto.
4003 * valarith.c (value_binop): Ditto.
4005 * valops.c (value_slice): Ditto.
4006 * symtab.h (union language_specific): Ditto.
4007 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4008 (SYMBOL_DEMANGLED_NAME): Ditto.
4009 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4010 * defs.h (enum language): Ditto.
4011 * symtab.c (got_symtab): Ditto.
4012 * utils.c (fprintf_symbol_filtered): Ditto.
4014 * ch-typeprint.c: Make file obsolete.
4015 * ch-valprint.c: Make file obsolete.
4016 * ch-lang.h: Make file obsolete.
4017 * ch-exp.c: Make file obsolete.
4018 * ch-lang.c: Make file obsolete.
4020 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4022 (TARGET_FLAGS_TO_PASS): Ditto.
4023 (CHILLFLAGS): Obsolete.
4025 (CHILL_FOR_TARGET): Obsolete.
4026 (CHILL_LIB): Obsolete.
4027 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4029 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4030 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4032 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4035 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4037 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4038 This does not change anything at the moment, but will be helpful
4039 later when full Ada support is integrated.
4041 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4043 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4046 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4048 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4049 and save it in a local variable. Use variable in later test.
4051 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4053 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4054 test. (Thanks to Daniel Jacobowitz.)
4056 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4058 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4059 (mips_abi_strings): Add "n64".
4060 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4062 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4064 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4065 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4067 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4069 * utils.c (host_pointer_to_address, address_to_host_pointer):
4070 Use gdb_assert() instead of explicit call to internal_error().
4072 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4074 * Makefile.in (rs6000-nat.o): Update dependencies.
4076 From Nicholas Duffek:
4077 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4078 (aix-thread.o): New rule.
4079 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4080 * config/powerpc/aix432.mh: New file.
4082 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4084 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4085 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4086 (fetch_core_registers, ppc_linux_supply_gregset)
4087 (ppc_linux_supply_fpregset): New functions.
4088 (ppc_linux_regset_core_fns): New.
4089 (_initialize_ppc_linux_tdep): Call add_core_fns.
4090 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4091 and ppc_linux_supply_gregset.
4092 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4093 (supply_fpregset): Call ppc_linux_supply_fpregset.
4094 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4096 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4098 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4100 * symtab.c (lookup_symbol): Demangle before lowercasing.
4102 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4104 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4106 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4107 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4108 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4109 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4111 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4112 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4113 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4114 (avr-tdep.o, mon960-rom.o): Ditto.
4115 (aout_stabs_gnu_h): Define.
4116 (symtab_h): Remove $(gdb_obstack_h).
4118 2002-07-30 Jim Blandy <jimb@redhat.com>
4120 Patch from David Carlton <carlton@math.stanford.edu>:
4121 * gdbinit.in: Move the `dir' commands that add GDB's own source
4122 directory to the search path to the end, so that the `gdb' source
4123 directory will be searched first.
4125 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4127 * gdb_obstack.h: New file.
4128 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4129 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4130 * objfiles.h: Include "gdb_obstack.h".
4131 * Makefile.in (gdb_obstack_h): Define.
4132 (symtab_h): Add $(gdb_obstack_h).
4133 (objfiles_h): Add $(gdb_obstack_h).
4135 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4136 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4137 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4138 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4139 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4140 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4141 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4142 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4144 * Makefile.in (bcache.o): Update dependencies.
4145 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4146 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4147 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4148 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4149 (stabsread.o, symfile.o, symmisc.o): Ditto.
4150 (symtab.o, typeprint.o, macroexp.o): Ditto.
4151 (macrotab.o, mdebugread.o): Ditto.
4152 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4153 (coff_ecoff_h, aout_aout64_h): Define.
4154 (aout_stabs_gnu_h, libaout_h): Define.
4156 2002-07-29 Andrew Cagney <cagney@redhat.com>
4158 * regcache.c (struct regcache_descr): Rename nr_registers to
4159 nr_cooked_registers. Revise comments describing the structure
4161 (init_regcache_descr): Update.
4162 (init_legacy_regcache_descr): Update.
4163 (read_register_gen, write_register_gen): When a cooked register in
4164 the raw register range, directly access the value from the raw
4167 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4169 * z8k-tdep.c: Do not include "obstack.h".
4170 * h8300-tdep.c, h8500-tdep.c: Ditto.
4171 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4172 * valprint.c, v850-tdep.c: Ditto.
4173 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4174 * mn10200-tdep.c: Ditto.
4176 * Makefile.in (z8k-tdep.o): Update dependencies.
4177 (m68hc11-tdep.o, valprint.o): Ditto.
4178 (v850-tdep.o, d10v-tdep.o): Ditto.
4179 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4180 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4181 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4182 (sh_opc_h, gdb_sim_sh_h): Define.
4183 (elf_sh_h, elf_bfd_h): Define.
4184 (opcode_m68hc11_h): Define.
4185 (OPCODES_SRC, OPCODES_DIR): define.
4186 (OPCODES): Use $(OPCODES_DIR).
4187 (gdb_sim_d10v_h): Rename sim_d10v_h.
4188 (gdb_sim_arm_h): Rename sim_arm_h.
4190 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4192 * utils.c (host_pointer_to_address, address_to_host_pointer):
4193 Change internal_error() message to indicate function responsible
4196 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4198 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4199 calls to local_hex_string_custom().
4201 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4203 * irix5-nat.c: Move IRIX shared library support from here...
4204 * solib-irix.c: ...to here. Revised substantially to work with
4205 generic solib framework.
4207 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4208 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4209 * mips-irix-tdep.c: New file.
4211 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4212 (mips-irix-tdep.o, solib-irix.o): New rules.
4213 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4215 * config/mips/irix6.mt (TDEPFILES): Likewise.
4216 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4218 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4220 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4221 disabled (via ``#if 0'') includes.
4223 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4225 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4226 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4227 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4228 Add support for the fpscr register.
4229 * rs6000-nat.c (regmap, fetch_inferior_registers)
4230 (store_inferior_registers, fetch_core_registers): Likewise.
4232 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4234 * rs6000-nat.c (language.h): Include.
4235 (special_regs): Delete this array.
4236 (regmap): New function.
4237 (fetch_register, store_register): Use regmap() to map gdb
4238 register numbers to ptrace register numbers. Also, use
4239 outputs from regmap() to make decisions regarding type of
4240 ptrace() call to make. In particular, don't compare against
4241 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4242 (fetch_inferior_registers, store_inferior_registers): Where
4243 possible, obtain register numbers from tdep struct. Don't
4244 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4245 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4246 (LAST_UISA_SP_REGNUM): Delete.
4248 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4250 * rs6000-nat.c (ppc-tdep.h): Include.
4251 (fetch_registers, store_register, fetch_core_registers): Don't
4252 access registers[] directly. Instead, use supply_register() or
4253 regcache_collect() as appropriate.
4254 (find_toc_address): Format hex address with local_hex_string().
4256 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4258 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4261 2002-07-24 Tom Tromey <tromey@redhat.com>
4263 * jv-exp.y: Marked all strings with _().
4264 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4266 (MethodInvocation, CastExpression, parse_number, yyerror,
4267 java_type_from_name, push_expression_name, yylex): Typo fixes.
4269 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4271 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4272 (tee_file_flush, tee_file_write, tee_file_fputs)
4273 (tee_file_isatty): New.
4274 * ui-file.h (tee_file_new): Add prototype.
4276 2002-07-24 Aidan Skinner <aidan@velvet.net>
4278 * ada-lang.c: Change k&r style function definitions to prototyped
4280 * ada-typeprint.c: Change k&r style function definitions to prototyped
4282 * ada-valprint.c: Change k&r style function definitions to prototyped
4285 2002-07-24 Andrew Cagney <cagney@redhat.com>
4287 * README: Remove reference to remote-bug.
4288 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4290 (m88k-nat.o): Delete rule.
4291 (m88k-tdep.o): Delete rule.
4292 (remote-bug.o): Delete rule.
4293 * MAINTAINERS: Mark as obsolete.
4294 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4295 * m88k-tdep.c: Make file obsolete.
4296 * config/m88k/m88k.mh: Ditto.
4297 * config/m88k/delta88v4.mh: Ditto.
4298 * config/m88k/delta88v4.mt: Ditto.
4299 * config/m88k/delta88.mt: Ditto.
4300 * config/m88k/delta88.mh: Ditto.
4301 * remote-bug.c: Ditto.
4302 * config/m88k/tm-delta88.h: Ditto.
4303 * config/m88k/nm-delta88v4.h: Ditto.
4304 * config/m88k/xm-delta88.h: Ditto.
4305 * config/m88k/xm-dgux.h: Ditto.
4306 * config/m88k/tm-m88k.h: Ditto.
4307 * config/m88k/nm-m88k.h: Ditto.
4308 * config/m88k/tm-delta88v4.h: Ditto.
4309 * m88k-nat.c: Ditto.
4310 * cxux-nat.c: Ditto.
4311 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4312 and m88*-*-* obsolete.
4313 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4316 2002-07-24 Andrew Cagney <cagney@redhat.com>
4318 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4319 constant. Same for local pointer variables.
4320 (extract_signed_integer): Ditto.
4321 * defs.h (extract_unsigned_integer): Update.
4322 (extract_signed_integer): Update.
4324 2002-07-24 Andrew Cagney <cagney@redhat.com>
4326 * regcache.c (regcache_raw_write): Change buf parameter to a
4327 constant void pointer.
4328 (regcache_raw_read): Change buf parameter to a void pointer.
4329 (legacy_write_register_gen): Change myaddr parameter a constant
4331 (supply_register): Change val parameter to a const void pointer.
4332 * regcache.h (regcache_raw_write): Update declaration.
4333 (regcache_raw_read): Update declaration.
4334 (supply_register): Update declaration.
4336 2002-07-24 Tom Tromey <tromey@redhat.com>
4338 * defs.h (gdb_readline_wrapper): Declare.
4339 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4340 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4341 * top.c (gdb_readline_wrapper): New function.
4342 (command_line_input): Use it.
4344 2002-07-24 Andrew Cagney <cagney@redhat.com>
4346 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4347 regcache_read and regcache_write.
4348 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4349 * regcache.c: Update.
4350 * sh-tdep.c (sh64_push_arguments): Update comment.
4351 (sh_pseudo_register_read): Update.
4352 (sh_pseudo_register_write): Update.
4353 (sh4_register_read): Update.
4354 (sh4_register_write): Update.
4355 (sh64_pseudo_register_read): Update.
4356 (sh64_pseudo_register_write): Update.
4357 (sh64_register_read): Update.
4358 (sh64_register_write): Update.
4359 * i386-tdep.c (i386_extract_return_value): Update.
4360 (i386_extract_struct_value_address): Update.
4361 (i386_extract_return_value): Update.
4362 * blockframe.c (generic_read_register_dummy): Update.
4363 (generic_call_dummy_register_unwind): Update
4364 * infrun.c (write_inferior_status_register): Update.
4366 2002-07-23 Jim Blandy <jimb@redhat.com>
4368 * parser-defs.h (expression_context_pc): Make this extern.
4369 (Thanks to Michael Snyder.)
4371 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4373 GDB 5.2.1 released from 5.2 branch.
4374 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4375 * README: Update to mention 5.2.1.
4377 2002-07-23 Mark Salter <msalter@redhat.com>
4379 * remote.c (remote_read_bytes): Fix check for error.
4381 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4383 * aix-thread.c (language.h): Include.
4384 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4385 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4386 Print newlines at end of debug messages.
4387 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4388 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4390 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4392 * aix-thread.c (ppc-tdep.h): Include.
4393 (special_register_p): New function.
4394 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4395 (store_regs_user_thread): Use register number information from
4396 gdbarch_tdep struct instead of hardcoded offsets relative to
4397 FIRST_UISA_SP_REGNUM.
4398 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4399 special_register_p() instead of using FPLAST_REGNUM and
4400 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4401 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4402 will be MQ's register number.
4404 2002-07-22 Michael Snyder <msnyder@redhat.com>
4406 * aix-thread.c (ops): Rename to aix_thread_ops.
4407 (base_ops): Rename to base_target.
4408 (ops_attach): Rename to aix_thread_attach.
4409 (ops_detach): Rename to aix_thread_detach.
4410 (ops_resume): Rename to aix_thread_detach.
4411 (ops_wait): Rename to aix_thread_wait.
4412 (ops_kill): Rename to aix_thread_kill.
4413 (init_ops): Rename to init_aix_thread_ops.
4414 (ops_fetch_register): Rename to aix_thread_fetch_register.
4415 (ops_store_register): Rename to aix_thread_store_register.
4416 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4417 (ops_thread_alive): Rename to aix_thread_thread_alive.
4418 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4419 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4420 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4421 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4422 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4423 (store_regs_lib): Rename to store_regs_user_thread.
4424 (store_regs_kern): Rename to store_regs_kernel_thread.
4426 2002-07-22 Michael Snyder <msnyder@redhat.com>
4428 * aix-thread.c (ops_prepare_to_store): Eliminate.
4429 (init_ops): Don't initialize ops.prepare_to_store.
4430 (store_regs_kern): Pre-fetch register buffers from child,
4431 because some registers may not be in the cache. Copy
4432 regs from register cache only if they are cached.
4433 (store_regs_lib): Copy regs from register cache only
4435 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4436 fill_gprs64): Ditto.
4438 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4440 * aix-thread.c (gdb_assert.h): Include.
4441 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4442 register sizes (from register cache) match size of buffer holding
4444 (fill_sprs32): Change parameter types to match those in the ptrace()
4446 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4447 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4449 2002-07-22 Michael Snyder <msnyder@redhat.com>
4451 * aix-thread.c (supply_sprs64): Cosmetic change.
4452 (supply_sprs32): Cosmetic change.
4453 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4454 (fill_sprs64): Use regcache_collect instead of read_register.
4455 (store_regs_lib): Use regcache_collect instead of
4456 read_register. Use fill_sprs32 instead of fill_sprs64,
4457 if debugging a 32-bit architecture.
4458 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4459 out of the register cache, instead of passing a pointer into
4460 the register cache directly to ptrace. Use regcache_collect
4461 insteaad of read_register.
4462 (ops_prepare_to_store): Use target_read_registers instead
4463 of read_register_bytes.
4465 2002-07-20 Aidan Skinner <aidan@velvet.net>
4467 * MAINTAINERS: Add self under write after approval.
4469 2002-07-20 Aidan Skinner <aidan@velvet.net>
4471 * ada-tasks.c: Change k&r style function definitions to prototyped
4474 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4476 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4477 * x86-64-tdep.c: Include "objfiles.h".
4478 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4479 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4481 2002-07-17 Michal Ludvig <michal@suse.cz>
4483 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4484 (update_context): Initialise cfa variable.
4486 2002-07-17 Michael Snyder <msnyder@redhat.com>
4488 * aix-thread.c: Shorten some long lines.
4489 Bring comments into line with code spec.
4491 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4493 * infrun.c: Re-indent using gdb_indent.sh.
4495 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4497 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4498 Leave the indentation temporarily untouched, to minimize the diffs.
4500 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4502 * stabsread.c: Make os9k sections of the code obsolete,
4504 * stabsread.h: Make os9k sections of the code obsolete.
4506 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4508 * linux-low.c (regsets_store_inferior_registers): Add free()
4509 at the end of a loop to prevent memory leak.
4510 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4511 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4512 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4514 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4516 2002-07-17 Jim Blandy <jimb@redhat.com>
4518 * macrocmd.c (info_macro_command): Remove newline from error
4521 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4523 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4524 (sh_gdbarch_init): Use it for sh-dsp.
4526 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4528 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4529 64-bit DWARF2 format.
4531 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4533 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4534 <sys/proc.h> when not available.
4536 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4538 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4539 * stabsread.c: Make os9k sections of the code obsolete.
4540 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4541 * config/i386/i386os9k.mt: Make file obsolete.
4542 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4543 (COMMON_OBS): Remove os9kread.o
4544 (SFILES): Remove os9kread.c.
4545 (os9kread.o, remote-os9k.o): Make target obsolete.
4546 * remote-os9k.c: Make file obsolete.
4547 * os9kread.c: Make file obsolete.
4550 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4552 * NEWS: Mention that the FR30 has been made obsolete.
4553 * fr30-tdep.c: Make file obsolete.
4554 * config/fr30/tm-fr30.h: Ditto.
4555 * config/fr30/fr30.mt: Ditto.
4556 * configure.tgt: Make fr30-*-elf obsolete.
4557 * MAINTAINERS: Make fr30-elf obsolete.
4559 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4561 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4562 found is not inside a section.
4564 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4566 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4568 (pdc_realloc): Use xrealloc() instead of realloc().
4570 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4572 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4573 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4574 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4577 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4579 * aix-thread.c (ptrace_check): Eliminate goto.
4580 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4583 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4585 * aix-thread.c (gdbcmd.h): Include.
4586 (DEBUG, DBG, DBG2, dbg): Eliminate.
4587 (debug_aix_thread): New static global.
4588 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4589 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4590 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4591 invocations to DBG and DBG2 macros to test against
4592 ``debug_aix_thread'' and call fprintf_unfiltered().
4593 (_initialize_aix_thread): Add new command "set debug aix-thread".
4595 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4597 From Gerhard Tonn <TON@de.ibm.com>:
4598 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4599 instead of supply_register.
4601 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4603 * dwarf2cfi.c: Include "gdb_assert.h".
4604 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4606 (update_context): Do not use __func__. Add missing ``break''.
4607 (update_context): Do not use __func__.
4609 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4611 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4612 and its setting. Set gdbarch instruction printing functions
4613 directly. For non-rs6000 case use new function
4614 gdb_print_insn_powerpc.
4615 (gdb_print_insn_powerpc): New function.
4617 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4619 * NEWS: Mention that the d30v has been marked obsolete.
4620 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4621 * configure.tgt: Mark d30v-*-* as obsolete.
4622 * d30v-tdep.c: Mark file as obsolete.
4623 * config/d30v/d30v.mt: Ditto.
4624 * config/d30v/tm-d30v.h: Ditto.
4626 2002-07-13 Aidan Skinner <aidan@velvet.net>
4628 * ada-tasks.c (add_task_entry): replace calls to
4629 malloc() with xmalloc
4630 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4632 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4633 ada_finish_decode_line_1, all_sals_for_line
4634 ada_breakpoint_rewrite): replace calls to free() with xfree()
4636 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4638 From Nicholas Duffek (with minor changes by Martin Hunt,
4639 Louis Hamilton, and Kevin Buettner):
4640 * aix-thread.c: New file.
4642 2002-07-12 Petr Sorfa <petrs@caldera.com>
4644 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4645 complaint for invalid attribute class or form.
4646 (read_func_scope): DW_AT_frame_base
4647 better handling of DW_AT_block*.
4648 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4649 better handling of DW_AT_block*.
4650 (read_common_block): DW_AT_location
4651 better handling of DW_AT_block*.
4652 (read_partial_die): DW_AT_location better handling
4654 (new_symbol): DW_AT_external better handling of
4655 DW_AT_block*. Proper initialization of variable
4657 (attr_form_is_block): New function that returns true
4658 if the attribute's form is of DW_FORM_block*.
4660 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4662 * valops.c (find_method_list): Remove comment about
4663 removed STATIC_MEMFUNCP argument.
4664 (value_find_oload_method_list): Likewise.
4666 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4668 From Nicholas Duffek:
4669 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4670 target_new_objfile_hook.
4672 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4674 From Nicholas Duffek:
4675 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4678 2002-07-12 Andrew Cagney <cagney@redhat.com>
4680 * MAINTAINERS: Mention --enable-sim-build-warnings.
4681 (m68hc11-elf): Disable sim build warnings.
4682 (m32r-elf): Mark as broken obsolete candidate.
4683 (x86_64-linux-gnu): Mark as buildable with -Werror.
4684 (arm-elf): Change -w to ``,'' which enables warnings but not
4687 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4689 * bcache.h: Update copyright.
4690 (struct bstring, struct bcache): Move definition to "bcache.c".
4691 Replaced by opaque declaration.
4692 (bcache_xfree): Replace free_bcache.
4693 (bcache_xmalloc, bcache_memory_used): Declare.
4695 * bcache.c: Update copyright.
4696 (struct bstring, struct bcache): Moved to here from "bcache.h".
4698 (bcache_xmalloc, bcache_memory_used): New functions.
4699 (bcache_xfree): Replace function free_bcache.
4701 * Makefile.in (objfiles.o): Add $(bcache_h).
4702 (objfiles_h): Remove $(bcache_h).
4703 (symfile.o): Add $(bcache_h).
4705 * symmisc.c: Update copyright.
4706 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4707 (print_objfile_statistics): Use bcache_memory_used.
4709 * symfile.c: Include "bcache.h".
4710 (reread_symbols): Use bcache_xfree.
4711 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4712 (add_psymbol_to_list): Pass psymbol_cache by value.
4713 (add_psymbol_with_dem_name_to_list): Ditto.
4715 * objfiles.h: Update copyright.
4716 (struct bcache): Declare opaque. Do not include "bcache.h".
4717 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4719 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4721 * objfiles.c: Include "bcache.h". Update copyright.
4722 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4724 (free_objfile): Use bcache_xfree.
4726 2002-07-11 Grace Sainsbury <graces@redhat.com>
4728 * monitor.c (monitor_fetch_register): Make name a constant.
4729 (monitor_store_register): Same.
4731 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4733 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4734 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4735 (finish_block) For non-function blocks, hash the symbol table. For
4736 function blocks, mark the symbol table as unhashed.
4737 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4738 (msymbol_hash_iw): Likewise.
4739 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4741 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4742 (lookup_minimal_symbol): Likewise for both.
4743 * symtab.h (struct block): Add `hashtable' flag. Comment the
4745 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4746 (ALL_BLOCK_SYMBOLS): Update.
4747 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4748 (struct symbol): Add `hash_next' pointer.
4749 * symtab.c (lookup_block_symbol): Search using the hash table when
4751 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4752 (search_symbols, find_addr_symbol): Likewise.
4754 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4755 (read_dst_symtab): Likewise.
4756 * jv-lang.c (get_java_class_symtab): Likewise.
4757 * mdebugread.c: Include "gdb_assert.h".
4758 (shrink_block): Assert that the block being modified is not hashed.
4759 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4760 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4762 (dump_symtab): Recognize hashed blocks.
4763 * printcmd.c (print_frame_args): Assert that function blocks do not
4764 have hashed symbol tables.
4765 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4766 (fill_in_ada_prototype, debug_print_block): Likewise.
4767 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4769 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4771 * stack.c (print_frame): Use result of frame_address_in_block()
4772 instead of fi->pc when evaluating symbols.
4773 (backtrace_command_1): Ditto.
4775 2002-07-11 Andrew Cagney <cagney@redhat.com>
4777 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4780 * arm-tdep.c (arm_register_name): Make return type constant.
4782 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4784 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4786 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4787 * s390-tdep.c (s390_fp_regnum): Ditto.
4788 (s390_read_fp): Ditto.
4789 (s390_pop_frame): Ditto.
4790 (_initialize_s390_tdep): Ditto.
4791 * remote.c (get_remote_state): Ditto.
4792 * procfs.c (mappingflags): Ditto.
4793 * memattr.c (_initialize_mem): Ditto.
4794 * mcore-tdep.c (mcore_pop_frame): Ditto.
4795 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4796 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4797 * language.c (set_case_str): Ditto.
4798 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4799 * frv-tdep.c (new_variant): Ditto.
4800 (frv_stopped_data_address): Ditto.
4801 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4802 (context_alloc): Ditto.
4803 (frame_state_alloc): Ditto.
4804 (unwind_tmp_obstack_init): Ditto.
4805 (unwind_tmp_obstack_free): Ditto.
4806 (cfi_read_fp): Ditto.
4807 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4808 (cris_pop_frame): Ditto.
4809 * c-lang.c (scanning_macro_expansion): Ditto.
4810 (finished_macro_expansion): Ditto.
4811 (c_preprocess_and_parse): Ditto.
4812 * gdbarch.sh: Ditto.
4813 * gdbarch.h, gdbarch.c: Regenerate.
4814 * config/mn10200/tm-mn10200.h: Adjust indentation.
4815 * target.c: Adjust indentation.
4816 * symtab.h: Adjust indentation.
4817 * stabsread.h: Adjust indentation.
4818 * remote-es.c: Adjust indentation.
4819 * os9kread.c: Adjust indentation.
4821 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4823 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4824 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4826 2002-07-10 Grace Sainsbury <graces@redhat.com>
4828 * NEWS: Mention m68k, mcore multi-arching.
4829 * MAINTAINERS: Change status of m68k, mcore to reflect
4832 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4834 * valops.c (find_overload_match): Free oload_syms.
4836 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4838 Define HAVE_SYS_PROC_H if sys/proc.h exists
4839 * configure.in: Add check for sys/proc.h
4840 * config.in: Regenerate.
4841 * configure: Regenerate.
4843 2002-07-09 Grace Sainsbury <graces@redhat.com>
4845 * config/m68k/tm-m68k.h: Remove macros wrapped in
4846 #if !GDB_MULTI_ARCH.
4848 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4850 * config.in, configure: Regenerate.
4852 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4854 * dwarf2cfi.c: Include "gcore.h".
4855 (execute_stack_op): Fix implementation of the
4856 DW_OP_deref and DW_OP_deref_size operators by letting do their
4857 lookup in the target.
4859 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4861 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4862 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4865 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4867 Fix PR gdb/595, gdb/602
4868 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4869 Don't call value_cast, just read the vtable pointer; update comments
4872 2002-07-05 Grace Sainsbury <graces@redhat.com>
4874 * config/mcore/tm-mcore.h: Remove file.
4875 * config/mcore/mcore.mt: Remove definition of TM_FILE
4876 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4878 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4880 * i386bsd-tdep.c: Include "gdb_string.h".
4882 2002-07-04 Grace Sainsbury <graces@redhat.com>
4884 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4885 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4887 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4888 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4889 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4890 (RETVAL_REGNUM): Move macros from tm-mcore.h
4891 (mcore_reg_struct_has_addr): New function.
4892 (mcore_gdbarch_init): Added initializations for the macros removed
4895 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4897 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4898 traditonal string branding within the ELF header.
4900 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4902 * symtab.c (remove_params): New function.
4903 (make_symbol_overload_list): Use it instead of cplus_demangle.
4904 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4906 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4908 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4910 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4912 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4913 and tdep->sigtramp_end.
4914 * i386obsd-nat.c: New file.
4915 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4917 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4918 Don't call get_current_frame().
4920 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4922 * i386-nat.c (child_post_startup_inferior): New function
4923 calling i386_cleanup_dregs if
4924 I386_USE_GENERIC_WATCHPOINTS is defined.
4925 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4926 conditional to acknowledge that i386-nat.c has its
4927 own child_post_startup_inferior function.
4929 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4931 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4932 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4933 instead of MAX_REGISTER_RAW_SIZE.
4934 (i386_extract_return_value, i386_extract_struct_value_address):
4935 Convert to use regcache.
4936 (i386_gdbarch_init): Set max_register_raw_size and
4937 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4938 Set extract_return_value and extract_struct_value_address instead
4939 of their deprecated variants.
4941 Convert i386 target to generic dummy frames.
4942 * i386-tdep.c: Include "symfile.h".
4943 (i386_frameless_signal_p): Consider a function to be frameless if
4944 the pc points at the first instruction of the function.
4945 (i386_frame_chain): Handle (generic) call dummies.
4946 (i386_frame_saved_pc): Likewise.
4947 (i386_frame_init_saved_regs): Remove code dealing with call
4948 dummies on the stack.
4949 (i386_push_dummy_frame): Removed.
4950 (i386_call_dummy_words): Removed.
4951 (i386_fix_call_dummy): Removed.
4952 (i386_push_return_address): New function.
4953 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4954 parameter, and don't call get_current_frame.
4955 (i386_pop_frame): New function.
4956 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4957 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4958 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4959 call_dummy_length to 0, set call_dummy_words to NULL, set
4960 sizeof_call_dummy_words to 0, set fix_call_dummy to
4961 generic_fix_call_dummy, set pc_in_call_dummy to
4962 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4963 generic_push_dummy_frame, set push_return_address to
4964 i386_push_return_address and set frame_chain_valid to
4965 generic_file_frame_chain_valid.
4967 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4969 * gdbarch.sh (struct regcache): Add opaque declaration.
4970 (EXTRACT_RETURN_VALUE): New architecture method.
4971 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4972 * gdbarch.h, gdbarch.c: Regenerate.
4973 * arch-utils.c (legacy_extract_return_value): New function.
4974 * arch-utils.h (legacy_extract_return_value): Declare.
4975 * values.c (value_being_returned): Re-enable code handling
4976 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4977 deprecated_grub_regcache_for_registers call to block handling
4978 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4979 (EXTRACT_RETURN_VALUE): Do not define.
4981 2002-07-03 Grace Sainsbury <graces@redhat.com>
4983 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4984 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4985 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4986 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4987 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4988 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4989 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4990 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4991 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4992 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4993 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4994 argument so the function fits the prototype in the architecture
4996 (mcore_pop_frame): Remove argument so the function fits the
4997 prototype. Use get_current_frame instead of the argument.
4998 (mcore_push_arguments): Change type of struct_return so the
4999 function can be used in the architecture vector.
5000 (mcore_store_struct_return): Add.
5001 (mcore_frame_init_saved_regs): Add.
5002 (mcore_gdbarch_init): Add function calls to replace the macros
5003 removed from tm-mcore.h
5005 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5007 * infcmd.c (print_return_value): Remove compatibility code calling
5008 deprecated_grub_regcache_for_registers.
5010 * values.c: Include "regcache.h".
5011 (value_being_returned): Update. Use
5012 deprecated_grub_regcache_for_registers to extract the register
5014 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5015 ``struct regcache''.
5016 * Makefile.in (values.o): Add dependency on $(regcache_h).
5018 * inferior.h (run_stack_dummy): Change type of second parameter to
5019 a ``struct regcache''.
5020 * valops.c (hand_function_call): Change type of retbuf to ``struct
5021 regcache''. Allocate using regcache_xmalloc, clean using
5022 make_cleanup_regcache_xfree.
5023 * infcmd.c (run_stack_dummy): Update. Use
5024 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5026 * regcache.c (do_regcache_xfree): New function.
5027 (make_cleanup_regcache_xfree): New function.
5028 * regcache.h (make_cleanup_regcache_xfree): Declare.
5030 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5032 * event-top.c (command_line_handler): Don't read past
5033 beginning of buffer.
5035 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5037 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5039 (varobj_create): Store frame_id for root.
5040 (varobj_gen_name): Use xasprintf.
5041 (varobj_update): Save and restore frame using get_frame_id() and
5043 (create_child): Use xasprintf.
5044 (new_root_variable): Initialize frame_id.
5045 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5046 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5047 to prevent memory leak.
5049 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5051 * valops.c (hand_function_call): Move declaration of retbuf to
5052 start of function, allocate using malloc, add a cleanup but before
5053 the inf_status cleanup, cleanup the buffer. Rename local variable
5054 old_chain to inf_status_cleanup.
5056 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5058 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5060 * cli/cli-decode.c (cmd_func_p): New function.
5061 (cmd_func): New function.
5063 * command.h: Add cmd_func() and cmd_func_p().
5065 2002-07-03 Grace Sainsbury <graces@redhat.com>
5067 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5068 (REGISTER_SIZE): Remove.
5069 (MAX_REGISTER_RAW_SIZE): Remove.
5070 (REGISTER_VIRTUAL_TYPE): Remove.
5071 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5072 (REGISTER_NAME): Remove.
5073 (USE_GENERIC_DUMMY_FRAMES): Remove.
5074 (CALL_DUMMY): Remove.
5075 (CALL_DUMMY_START_OFFSET): Remove.
5076 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5077 (CALL_DUMMY_LOCATION): Remove.
5078 (FIX_CALL_DUMMY): Remove.
5079 (CALL_DUMMY_ADDRESS): Remove.
5080 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5081 (SAVE_DUMMY_FRAME_TOS): Remove.
5082 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5083 (mcore_register_virtual_type): New function.
5084 (mcore_register_byte): New function.
5085 (mcore_register_size): New function.
5086 (mcore_register_name): New function.
5087 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5088 macros removed from tm-mcore.h.
5089 (mcore_dump_tdep): Add.
5090 (_initialize_mcore_tdep): Add gdbarch_register call.
5092 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5094 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5095 frameless_look_for_prologue, such that we actually call this
5098 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5100 * frame.h (frame_address_in_block): New function.
5102 * blockframe.c (frame_address_in_block): New function extracted
5103 from get_frame_block().
5104 (get_frame_block): Use frame_address_in_block().
5105 (block_innermost_frame): Use frame_address_in_block() to match
5106 the frame pc address against the block boundaries rather than
5107 the frame pc directly. This prevents a failure when a frame pc
5108 is actually a return-address pointing immediately after the end
5111 2002-07-02 Grace Sainsbury <graces@redhat.com>
5113 * MAINTAINERS: Add self under write after approval.
5115 2002-07-02 Grace Sainsbury <graces@redhat.com>
5117 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5118 used in architecture vector. The default is
5119 m68k_local_breakpoint_from_pc.
5120 (m68k_local_breakpoint_from_pc): Add.
5121 (enum): Add register numbers from tm-m68k.h.
5122 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5124 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5125 GDB_MULTI_ARCH_PARTIAL.
5126 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5127 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5129 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5130 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5131 to enum in m68k-tdep.c
5133 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5135 * solib-osf.c (open_map): Compute the list of shared libraries
5136 loaded by the inferior, rather than the list of libraries loaded
5137 by GDB itself. Otherwise, GDB ends up reading the symbols from
5138 the wrong shared libraries...
5140 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5142 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5143 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5145 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5147 (FRAMELESS_SIGNAL): Remove function.
5148 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5149 i386_linux_saved_pc_after_call): Removed.
5150 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5151 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5152 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5154 * i386-tdep.c (i386_frameless_signal_p): New function.
5155 (i386_frame_chain): Deal with frameless signals.
5156 (i386_sigtramp_saved_sp): New function.
5157 (i386_frame_saved_pc): Deal with frameless signals.
5158 (i386_saved_pc_after_call): Make sure the correct value is
5159 returned just after entry into a sigtramp.
5160 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5161 i386fbsd4_sc_sp_offset): New variables.
5162 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5163 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5164 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5165 similiar to what we already did for sc_pc_offset.
5166 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5169 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5171 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5173 * config/i386/tm-x86-64linux.h: New.
5174 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5176 * config/i386/nm-x86-64.h: Rename to ...
5177 * config/i386/nm-x86-64linux.h: ... this one.
5178 * config/i386/x86-64linux.mh: Reflect the above change.
5180 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5182 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5183 with sigcontext_addr. Add sc_sp_offset.
5184 (i386bsd_sigtramp_saved_pc): Remove prototype.
5185 (i386bsd_sicontext_addr): Add prototype.
5186 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5187 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5188 (i386_svr4_sigtramp_saved_pc): Removed.
5189 (i386_svr4_sigcontext_addr): New function.
5190 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5191 Initialize tdep->sigcontext_addr instead. Initialize
5192 tdep->sc_pc_offset and tdep->sc_sp_offset.
5193 (i386_gdbarch_init): Likewise.
5194 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5196 (i386bsd_sigtramp_saved_pc): Remove function.
5197 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5198 Initialize tdep->sigcontext_addr instead. Initialize
5200 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5201 of tdep->sigtramp_saved_pc.
5202 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5203 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5206 * i386-tdep.c (i386_frameless_function_invocation,
5207 i386_frame_num_args, i386_frame_init_saved_regs,
5208 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5209 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5210 i386_extract_return_value, i386_store_return_value,
5211 i386_extract_struct_value_address, i386_register_virtual_type,
5212 i386_register_convertible, i386_register_convert_to_virtual,
5213 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5214 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5217 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5219 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5221 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5222 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5223 this macro. Include "value.h".
5225 2002-06-30 Aidan Skinner <aidan@velvet.net>
5227 * ada-exp.tab.c: remove as it's a generated file
5228 * ada-lex.c: remove as it's a generated file
5230 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5232 * config/i386/tm-i386.h (struct frame_info, struct
5233 frame_saved_regs, struct value, struct type): Remove forward
5236 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5237 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5238 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5239 (FILL_FPXREGSET): Define.
5241 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5243 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5244 i[3456]86-*-netbsd* case.
5245 * config/i386/tm-obsd.h: Removed.
5246 * config/i386/obsd.mt: Removed.
5247 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5249 (MH_CFLAGS): Add -DYYDEBUG=0.
5251 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5252 i386nbsd_sc_pc_offset on OpenBSD too.
5254 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5255 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5256 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5258 * i386bsd-tdep.c: Include "arch-utils.h".
5259 (i386bsd_aout_in_solib_call_trampoline): New function.
5260 (i386bsd_init_abi): Set in_solib_call_trampoline to
5261 i386bsd_aout_in_solib_call_trampoline.
5262 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5263 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5265 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5267 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5268 (struct obstack, struct bcache): Add opaque declarations.
5269 * Makefile.in (macrotab_h): Update
5271 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5273 * blockframe.c (generic_find_dummy_frame): Change return type to
5274 ``struct regcache''.
5275 (struct dummy_frame): Replace field ``registers'' with regcache, a
5276 struct regcache object.
5277 (generic_find_dummy_frame): Update.
5278 (generic_push_dummy_frame): Update. Use regcache_xfree,
5279 regcache_xmalloc and regcache_cpy.
5280 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5282 (deprecated_generic_find_dummy_frame): Update.
5283 (generic_read_register_dummy): Update. Use
5284 regcache_read_as_address.
5285 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5286 (generic_get_saved_register): Update. Use regcache_read.
5288 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5290 * Makefile.in (objfiles_h): Add $(bcache_h).
5291 * objfiles.h: Include "bcache.h".
5293 * Makefile.in (symtab_h): Remove $(bcache_h).
5294 * symtab.h: Do not include "bcache.h".
5296 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5298 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5299 generic_func_frame_chain_valid.
5301 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5303 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5304 * config/i386/tm-fbsd.h: Likewise.
5306 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5308 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5309 generic_unwind_get_saved_register.
5311 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5313 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5314 * regcache.c (supply_register): Add missing argument to
5315 register_buffer call.
5317 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5319 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5320 Solaris /bin/grep does not not like it. From Peter Schauer.
5322 2002-06-26 Tom Tromey <tromey@redhat.com>
5324 * command.h (add_setshow_cmd): Declare.
5325 (add_setshow_cmd_full): Declare.
5326 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5327 returns void. Use add_setshow_cmd_full.
5328 (add_setshow_cmd_full): New function.
5329 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5330 (add_setshow_boolean_cmd): Likewise.
5332 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5334 * config/vax/tm-vax.h: Protect from multiple inclusion.
5335 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5336 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5337 * config/vax/tm-vaxbsd.h: ...here. New file.
5338 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5340 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5342 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5343 (BELIEVE_PCC_PROMOTION): Remove.
5344 (AP_REGNUM): Move to...
5345 * config/vax/nm-vax.h: ...here.
5346 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5347 (vax_breakpoint_from_pc): New function.
5348 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5349 and gdbarch_believe_pcc_promotion.
5351 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5353 * Makefile.in (vax_tdep_h): Define.
5354 (vax-tdep.o): Use $(vax_tdep_h).
5355 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5356 (vax_dump_tdep): New function.
5357 (_initialize_vax_tdep): Register vax_dump_tdep.
5358 * vax-tdep.h: Include osabi.h.
5359 (struct gdbarch_tdep): New.
5361 2002-06-26 Andrew Cagney <cagney@redhat.com>
5363 * frame.h (deprecated_generic_find_dummy_frame): Rename
5364 generic_find_dummy_frame.
5365 * blockframe.c (generic_find_dummy_frame): Make static.
5366 (deprecated_generic_find_dummy_frame): New function.
5367 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5368 generic_find_dummy_frame with deprecated_find_dummy_frame.
5369 (sh64_nofp_frame_init_saved_regs): Ditto.
5370 (sh_fp_frame_init_saved_regs): Ditto.
5371 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5372 (s390_frame_chain): Ditto.
5373 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5375 2002-06-26 Grace Sainsbury <graces@redhat.com>
5377 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5378 gdbarch vector are at the top.
5380 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5381 (FRAME_ARGS_ADDRESS): Remove.
5382 (FRAME_LOCALS_ADDRESS): Remove.
5383 (FRAME_NUM_ARGS): Remove.
5384 (FRAME_ARGS_SKIP): Remove.
5385 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5386 (m68k_gdbarch_init): Add gdbarch initializations for macros
5387 undefined in tm-m68k.h
5389 2002-06-26 Grace Sainsbury <graces@redhat.com>
5391 * monitor.h: Add the function regname to monitor_ops
5392 structure. This way NUM_REGS does not have to be a constant.
5393 * monitor.c (monitor_fetch_register): Added support for regname
5394 function. The function is called if the array regnames is NULL.
5395 (monitor_store_register): Same.
5396 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5398 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5399 cpu32bug_cmds.regname to point to new function.
5400 * abug-rom.c (abug_regname): Same as above.
5401 (init_abug_cmds): Same.
5402 * dbug-rom.c (dbug_regname): Same as above.
5403 (init_dbug_cmds): Same.
5404 * remote-est.c (est_regname): Same.
5405 (init_est_cmds): Same.
5406 * rom68k-rom.c (rom68k_regname): Same.
5407 (init_rom68k_cmds): Same.
5409 2002-06-25 Tom Tromey <tromey@redhat.com>
5411 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5413 2002-06-25 Andrew Cagney <cagney@redhat.com>
5415 * infrun.c (stop_registers): Change variable's type to ``struct
5417 (xmalloc_inferior_status): Delete function.
5418 (free_inferior_status): Delete function.
5419 (normal_stop): Use regcache_cpy.
5420 (struct inferior_status): Change type of fields ``stop_registers''
5421 and ``registers'' to ``struct regcache''.
5422 (write_inferior_status_register): Use regcache_write.
5423 (save_inferior_status): Instead of calling
5424 xmalloc_inferior_status, allocate the inf_status buffer directly.
5425 Use regcache_dup_no_passthrough and regcache_dup to save the
5427 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5428 Replace the stop_registers regcache instead of overriding it. Use
5429 regcache_xfree. Instead of calling free_inferior_status, xfree
5430 the buffer directly.
5431 (discard_inferior_status): Use regcache_xfree. Instead of calling
5432 free_inferior_status, xfree the buffer directly.
5433 (build_infrun): Use regcache_xmalloc.
5434 (_initialize_infrun): Delete redundant call to build_infrun.
5436 * Makefile.in (infcmd.o): Add $(regcache_h).
5438 * infcmd.c: Include "regcache.h".
5439 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5440 obtain the address of `stop_registers' register buffer.
5441 (print_return_value): Ditto.
5443 * inferior.h (struct regcache): Add opaque declaration.
5444 (stop_registers): Change variable's declared type to ``struct
5447 2002-06-24 Tom Tromey <tromey@redhat.com>
5449 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5450 * target.c (initialize_targets): Fixed typo in
5451 trust-readonly-sections `show' documentation.
5453 * main.c: Marked all strings with _().
5455 2002-06-24 Don Howard <dhoward@redhat.com>
5457 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5458 that means max CORE_ADDR+1.
5459 (lookup_mem_region): Ditto.
5460 (mem_info_command): Ditto.
5462 2002-06-24 Grace Sainsbury <graces@redhat.com>
5464 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5465 (REGISTER_BYTES_OK): Remove.
5466 (REGISTER_BYTES): Remove.
5467 (STORE_STRUCT_RETURN): Remove.
5468 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5469 (STORE_RETURN_VALUE): Remove.
5470 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5471 (FRAME_CHAIN): Remove.
5472 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5473 (FRAME_SAVED_PC): Remove.
5474 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5475 (m68k_store_struct_return): Add.
5476 (m68k_deprecated_extract_return_value): Add.
5477 (m68k_deprecated_extract_struct_value_address): Add.
5478 (m68k_store_return_value): Add.
5479 (m68k_frame_chain): Add.
5480 (m68k_frameless_function_invocation): Add.
5481 (m68k_frame_saved_pc): Add.
5482 (m68k_gdbarch_init): added set_gdbarch calls for new
5483 functions and deleted macros.
5485 2002-06-23 Tom Tromey <tromey@redhat.com>
5487 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5488 (ALLDEPFILES): Likewise.
5489 (udiheaders): Removed.
5490 (udip2soc.o): Likewise.
5491 (udi2go32.o): Likewise.
5493 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5495 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5497 * infrun.c (_initialize_infrun): Delete unnecessary call to
5500 * regcache.h: Update comments describing the regcache_cpy family
5502 (regcache_save, regcache_restore): Delete declaration.
5503 (regcache_save_no_passthrough): Delete declaration.
5504 (regcache_restore_no_passthrough): Delete declaration.
5505 * regcache.c (regcache_save): Delete function.
5506 (regcache_save_no_passthrough): Delete function.
5507 (regcache_restore): Delete function.
5508 (regcache_restore_no_passthrough): Delete function.
5510 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5512 * config/m68k/tm-m68k.h: Fix typo.
5513 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5514 (m68k_frame_init_saved_regs): Declare.
5516 2002-06-21 Jim Blandy <jimb@redhat.com>
5518 Remove some vestiges of Harris 88k support.
5519 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5520 register numbering quirk.
5521 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5522 odd symbols occurring in Harris 88k ELF targets.
5524 2002-06-21 Tom Tromey <tromey@redhat.com>
5526 * gdb_locale.h: New file.
5527 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5528 (defs_h): Added gdb_locale.h.
5529 * configure, config.in: Rebuilt.
5530 * configure.in (PACKAGE): Define.
5531 * defs.h: Include gdb_locale.h.
5532 * main.c (captured_main): Call setlocale, bindtextdomain,
5535 2002-06-21 Dave Brolley <brolley@redhat.com>
5537 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5538 * config/frv/frv.mt: New file.
5539 * config/frv/tm-frv.h: New file.
5540 * configure.tgt: Support frv-*-*.
5541 * Makefile.in (frv-tdep.o): New target.
5542 * frv-tdep.c: New file.
5543 * NEWS: Mention frv.
5545 2002-06-21 Dave Brolley <brolley@redhat.com>
5547 * MAINTAINERS: Add self to "Write After Approval" list.
5549 2002-06-21 Grace Sainsbury <graces@redhat.com>
5551 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5552 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5553 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5554 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5555 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5557 * m68k-tdep.c: Include arch-utils.h
5558 (m68k_register_raw_size): Add.
5559 (m68k_register_virtual_size): Add.
5560 (m68k_register_virtual_type): Add.
5561 (m68k_register_name): Add.
5562 (m68k_stack_align): Add.
5563 (m68k_register_byte): Add.
5564 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5567 2002-06-21 Grace Sainsbury <graces@redhat.com>
5569 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5570 m68k_find_saved_regs.
5571 (m68k_pop_frame): Removed saved_regs structure, and replaced
5572 references to it with frame->saved_regs.
5573 (m68k_gdbarch_init): Added function calls to initialize the
5575 (m68k_fix_call_dummy): Add.
5576 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5577 (CALL_DUMMY): Remove.
5578 (CALL_DUMMY_LENGTH): Remove.
5579 (CALL_DUMMY_START_OFFSET): Remove.
5580 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5581 (FIX_CALL_DUMMY): Remove.
5582 (PUSH_DUMMY_FRAME): Remove.
5583 (POP_FRAME): Remove.
5585 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5587 * parse.c (parse_fprintf): New function used to avoid calls to
5588 fprintf in bison parser generated debug code.
5589 * parser-defs.h: Declaration of new parse_fprintf function.
5590 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5591 Set YYDEBUG to 1 by default.
5592 Set YYFPRINTF as parse_fprintf.
5594 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5596 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5598 (pointer_encoding, enum ptr_encoding): New.
5599 (execute_cfa_program): Take care about pointer encoding.
5600 (dwarf2_build_frame_info): Only call parse_frame_info for
5601 .debug_frame and .eh_frame.
5602 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5603 fixed augmentation handling, added relative addressing,
5604 ignore duplicate FDEs. Added comments.
5605 * dwarf2cfi.c: Reindented.
5607 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5609 * event-top.c (command_handler): Don't use space_at_cmd_start
5610 unless there is sbrk() on the host. Assign time and space data
5611 to union fields of the appropriate length.
5613 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5615 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5616 x86_64_register_name. Return type changed to 'const char *'.
5617 (x86_64_register_name2nr): Rename to x86_64_register_number.
5618 (x86_64_gdbarch_init): Update to reflect the change.
5619 * x86-64-tdep.h: Ditto.
5620 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5621 (supply_fpregset): Ditto.
5623 2002-06-19 Andrew Cagney <cagney@redhat.com>
5625 * regcache.h: Update copyright.
5626 (struct regcache, struct gdbarch): Add opaque declarations.
5627 (current_regcache): Declare global variable.
5628 (regcache_read, regcache_write): Add gdbarch parameter.
5629 (regcache_save, regcache_save_no_passthrough)
5630 (regcache_restore, regcache_restore_no_passthrough)
5631 (regcache_dup, regcache_dup_no_passthrough)
5632 (regcache_cpy, regcache_cpy_no_passthrough)
5633 (deprecated_grub_regcache_for_registers)
5634 (deprecated_grub_regcache_for_register_valid)
5635 (regcache_valid_p): Add function declarations.
5637 * regcache.c: Update copyright.
5638 (regcache_descr_handle): New global variable.
5639 (struct regcache_descr): Define.
5640 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5641 (regcache_descr, xfree_regcache_descr): New functions.
5642 (struct regcache): Define.
5643 (regcache_xmalloc, regcache_xfree): New functions.
5644 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5645 (regcache_dup, regcache_dup_no_passthrough): New functions.
5646 (regcache_valid_p, regcache_read_as_address): New functions.
5647 (deprecated_grub_regcache_for_registers): New function.
5648 (deprecated_grub_regcache_for_register_valid): New function.
5649 (current_regcache): New global variable.
5650 (register_buffer): Add regcache parameter. Update calls.
5651 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5652 (read_register_gen, write_register_gen): Update register_buffer
5653 call. Test for legacy_p instead of gdbarch_register_read_p or
5654 gdbarch_register_write_p.
5655 (regcache_collect): Update register_buffer call.
5656 (build_regcache): Rewrite. Use deprecated grub functions.
5657 (regcache_save, regcache_save_no_passthrough): New functions.
5658 (regcache_restore, regcache_restore_no_passthrough): New
5660 (_initialize_regcache): Create the regcache_data_handle. Swap
5661 current_regcache global variable.
5663 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5664 parameter to regcache_read and regcache_write calls.
5665 (sh4_register_read): Ditto.
5666 (sh64_pseudo_register_read): Ditto.
5667 (sh64_register_read): Ditto.
5668 (sh_pseudo_register_write): Ditto.
5669 (sh4_register_write): Ditto.
5670 (sh64_pseudo_register_write): Ditto.
5671 (sh64_register_write): Ditto.
5673 * defs.h (XCALLOC): Define.
5675 2002-06-19 Grace Sainsbury <graces@redhat.com>
5677 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5678 * m68k-tdep.c (m68k_gdbarch_init): Added.
5679 (m68k_dump_tdep): Added.
5681 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5683 * ada-lang.c (fill_in_ada_prototype): Update comment.
5685 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5687 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5689 (mips_abi_string, mips_abi_strings): New.
5690 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5691 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5692 tdep->mips_abi_string. Honor mips_abi_string. Default to
5693 O32 if no ABI is found.
5694 (mips_dump_tdep): Use mips_abi_strings.
5695 (mips_abi_update): New function.
5696 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5697 ``set mips abi'' and ``show mips abi''. Check the size of
5700 2002-06-19 Andrew Cagney <cagney@redhat.com>
5702 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5705 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5707 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5708 current frame using only the first stack size adjustment. All
5709 subsequent size adjustments are not considered to be part of
5710 the "static" part of the current frame.
5711 Compute the address of the saved registers relative to the
5712 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5713 in use in this frame.
5715 2002-06-18 Don Howard <dhoward@redhat.com>
5717 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5718 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5719 suggesting this solution.
5721 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5723 * config/romp/xm-rtbsd.h: Delete file.
5724 * config/romp/rtbsd.mh: Delete file.
5726 2002-06-18 Keith Seitz <keiths@redhat.com>
5728 * breakpoint.c (condition_command): Post breakpoint_modify
5729 when a condition is added to an existing breakpoint.
5730 (commands_command): Likewise for commands.
5731 (set_ignore_count): Likewise for ignore counts.
5732 If no tty, do not simply return, still need to send event
5734 (ignore_command): Only print a newline if the command came
5736 Don't call breakpoints_changed, since this is now properly
5737 handled by set_ignore_count.
5739 2002-06-18 Andrew Cagney <cagney@redhat.com>
5741 * MAINTAINERS: Note that cris-elf target can be compiled with
5743 * cris-tdep.c (cris_register_name): Make return type constant.
5744 (cris_breakpoint_from_pc): Ditto.
5746 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5748 * frame.h (struct frame_info): Change type of context to
5751 2002-06-17 Andrew Cagney <cagney@redhat.com>
5753 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5755 * gdbarch.h, gdbarch.c: Regenerate.
5756 * config/mips/tm-mips.h (mips_register_name): Update.
5757 * i386-tdep.h (i386_register_name): Update.
5758 * mips-tdep.c (mips_register_name): Update
5759 * alpha-tdep.c (alpha_register_name): Update.
5760 * arch-utils.c (legacy_register_name): Update.
5761 * arch-utils.h (legacy_register_name): Update.
5762 * avr-tdep.c (avr_register_name): Update.
5763 * ia64-tdep.c (ia64_register_name): Update.
5764 * i386-tdep.c (i386_register_name): Update.
5765 * sparc-tdep.c (sparc32_register_name): Update.
5766 (sparc64_register_name): Update.
5767 (sparclite_register_name): Update.
5768 (sparclet_register_name): Update.
5769 * sh-tdep.c (sh_generic_register_name): Update.
5770 (sh_sh_register_name): Update.
5771 (sh_sh3_register_name): Update.
5772 (sh_sh3e_register_name): Update.
5773 (sh_sh_dsp_register_name): Update.
5774 (sh_sh3_dsp_register_name): Update.
5775 (sh_sh4_register_name): Update.
5776 (sh_sh64_register_name): Update.
5777 * s390-tdep.c (s390_register_name): Update.
5778 * rs6000-tdep.c (rs6000_register_name): Update.
5779 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5780 (ns32k_register_name_32382): Update.
5781 * d10v-tdep.c (d10v_ts2_register_name): Update.
5782 (d10v_ts3_register_name): Update.
5783 * xstormy16-tdep.c (xstormy16_register_name): Update.
5784 * vax-tdep.c (vax_register_name): Update.
5785 * v850-tdep.c (v850_register_name): Update.
5786 * m68hc11-tdep.c (m68hc11_register_name): Update.
5787 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5788 (am33_register_name): Update.
5790 2002-06-17 Grace Sainsbury <graces@redhat.com>
5792 * m68k-tdep.c: Reindented.
5794 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5796 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5797 list of predefined types.
5799 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5801 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5802 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5803 REGISTER_CONVERT_TO_RAW): Remove defines.
5804 (i386_register_virtual_type, i386_register_convertible,
5805 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5807 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5808 macros mentioned above.
5810 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5811 (i386lynx_saved_pc_after_call): Remove prototype.
5812 * i386ly-tdep.c: Include "i386-tdep.h".
5813 (i386lynx_saved_pc_after_call): Make static. Use
5814 read_memory_nobpt instead of read_memory. Use
5815 read_memory_unsigned_integer instead of read_memory_integer.
5816 (i386lynx_init_abi): New function.
5817 (i386lynx_coff_osabi_sniffer): New function.
5818 (_initialize_i386bsd_tdep): New function.
5820 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5821 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5822 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5823 (i386_fix_call_dummy): Remove prototype.
5824 * i386-tdep.c (i386_call_dummy_words): New variable.
5825 (i386_gdbarch_init): Adjust for removal of the
5826 macros mentioned above.
5828 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5830 * command.h (add_setshow_auto_boolean_cmd): Replace
5831 add_set_auto_boolean_cmd.
5832 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5833 add_set_auto_boolean_cmd.
5834 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5835 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5836 mask-address'' command.
5837 (show_mask_address): Add cmd parameter.
5838 * remote.c (add_packet_config_cmd): Update. Change type of
5839 set_func and show_func to cmd_sfunc_ftype.
5840 (_initialize_remote): Update `set remote Z-packet'
5841 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5842 (show_remote_protocol_e_packet_cmd): Ditto.
5843 (show_remote_protocol_E_packet_cmd): Ditto.
5844 (show_remote_protocol_P_packet_cmd): Ditto.
5845 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5846 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5847 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5848 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5849 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5850 (show_remote_protocol_Z_packet_cmd): Ditto.
5851 (show_remote_protocol_binary_download_cmd): Ditto.
5852 (show_remote_cmd): Pass NULL to all of above.
5854 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5856 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5857 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5858 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5859 POP_FRAME): Remove defines.
5860 (i386_push_arguments, i386_store_struct_return,
5861 i386_extract_return_value, i386_store_return_value,
5862 i386_extract_struct_value_address, i386_push_dummy_frame,
5863 i386_pop_frame): Renove prototypes.
5864 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5865 macros mentioned above.
5867 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5869 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5870 add_set_boolean_cmd.
5871 (add_setshow_cmd): New function.
5872 * command.h (add_setshow_boolean_cmd): Replace
5873 add_set_boolean_cmd.
5874 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5875 and ``set rdiromatzero''.
5876 * maint.c (_initialize_maint_cmds): Update commented out code.
5877 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5878 * target.c (initialize_targets): Update `set
5879 trust-readonly-sections'.
5880 * remote.c (_initialize_remote): Update `set remotebreak'.
5882 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5884 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5885 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5886 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5887 fit into multi-arch framework.
5888 (i386_breakpoint_from_pc): New function.
5889 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5892 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5893 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5894 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5895 (i386_frameless_function_invocation, i386_frame_num_args,
5896 i386_frame_init_saved_regs): Remove prototypes.
5897 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5898 macros mentioned above.
5900 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5902 * cli/cli-decode.c (set_cmd_cfunc): Update.
5903 (set_cmd_sfunc): Update.
5904 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5905 (set_cmd_sfunc, set_cmd_cfunc): Update.
5906 * cli/cli-decode.h: Update.
5908 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5910 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5911 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5913 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5915 * defs.h (auto_boolean): Declare enum.
5916 * command.h (cmd_auto_boolean): Delete enum.
5917 * mips-tdep.c (mask_address_var): Update.
5918 (mips_mask_address_p): Update.
5919 (show_mask_address): Update.
5920 * remote.c (struct packet_config): Update.
5921 (update_packet_config): Update.
5922 (show_packet_config_cmd): Update.
5923 (packet_ok): Update.
5924 (add_packet_config_cmd): Update.
5925 (_initialize_remote):
5926 * command.h: Update.
5927 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5928 (do_setshow_command): Update.
5929 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5930 * cli/cli-decode.h: Update.
5932 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5934 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5935 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5936 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5937 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5938 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5939 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5941 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5942 list of DJGPP COFF targets.
5944 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5945 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5946 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5947 (FP0_REGNUM): Remove define.
5948 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5949 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5950 (i386_register_virtual_size): Remove protoype.
5951 * i386-tdep.c (i386_register_virtual_size): Removed.
5952 (i386_extract_return_value, i386_store_return_value): Use
5953 FP0_REGNUM instead of NUM_FREGS to determine whether the
5954 floating-point registers are available.
5955 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5956 Adjust for removal of macros mentioned above.
5958 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5960 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5962 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5964 (supply_gregset, fill_gregset): Remove use of register keyword and
5965 remove declaration for regmap. Use I386_NUM_GREGS instead of
5966 NUM_REGS and NUM_FREGS.
5967 (FPREGSET_FSAVE_OFFSET): Remove.
5968 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5969 NUM_FREGS to determine whether the floating-point registers are
5972 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5973 gnu_store_registers): Replace usage of NUM_GREGS with
5976 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5977 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5978 usage of NUM_GREGS with I386_NUM_GREGS.
5980 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5982 * i386bsd-nat.c: Include "i386-tdep.h".
5983 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5986 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5987 and associated comment. They no longer make any sense, since we
5988 don't use this file anymore on Linux.
5990 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5991 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5992 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5993 elements in these arrays.
5994 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5997 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5999 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6000 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6002 2002-06-14 Andrew Cagney <cagney@redhat.com>
6004 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6005 EXTRACT_RETURN_VALUE.
6006 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6007 EXTRACT_STRUCT_VALUE_ADDRESS.
6008 * gdbarch.h, gdbarch.c: Regenerate.
6010 * values.c (value_being_returned): Handle
6011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6012 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6014 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6015 * arm-tdep.c (arm_gdbarch_init): Update.
6016 * avr-tdep.c (avr_gdbarch_init): Update.
6017 * cris-tdep.c (cris_gdbarch_init): Update.
6018 * d10v-tdep.c (d10v_gdbarch_init): Update.
6019 * ia64-tdep.c (ia64_gdbarch_init): Update.
6020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6022 * s390-tdep.c (s390_gdbarch_init): Update.
6023 * sh-tdep.c (sh_gdbarch_init): Update.
6024 * s390-tdep.c (s390_gdbarch_init): Update.
6025 * sparc-tdep.c (sparc_gdbarch_init): Update.
6026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6027 * v850-tdep.c (v850_gdbarch_init): Update.
6028 * vax-tdep.c (vax_gdbarch_init): Update.
6029 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6032 * config/arc/tm-arc.h: Update.
6033 * config/d30v/tm-d30v.h: Update.
6034 * config/fr30/tm-fr30.h: Update.
6035 * config/h8300/tm-h8300.h: Update.
6036 * config/h8500/tm-h8500.h: Update.
6037 * config/i386/tm-i386.h: Update.
6038 * config/i386/tm-ptx.h: Update.
6039 * config/i386/tm-symmetry.h: Update.
6040 * config/i960/tm-i960.h: Update.
6041 * config/m32r/tm-m32r.h: Update.
6042 * config/m68k/tm-delta68.h: Update.
6043 * config/m68k/tm-linux.h: Update.
6044 * config/m68k/tm-m68k.h: Update.
6045 * config/m88k/tm-m88k.h: Update.
6046 * config/mcore/tm-mcore.h: Update.
6047 * config/mips/tm-mips.h: Update.
6048 * config/mn10200/tm-mn10200.h: Update.
6049 * config/pa/tm-hppa.h: Update.
6050 * config/pa/tm-hppa64.h: Update.
6051 * config/sparc/tm-sp64.h: Update.
6052 * config/sparc/tm-sparc.h: Update.
6053 * config/sparc/tm-sparclet.h: Update.
6054 * config/z8k/tm-z8k.h: Update.
6056 2002-06-14 Andrew Cagney <cagney@redhat.com>
6058 * Makefile.in (i386_linux_tdep_h): Define.
6059 (i386_tdep_h, i387_tdep_h): Define.
6060 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6061 $(i386_tdep_h) and $(i387_tdep_h).
6062 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6064 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6066 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6067 Already covered by the default.
6069 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6070 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6071 (i386_gdbarch_init): Initialize long_double_format and long_double
6074 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6075 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6077 * config/i386/i386sol2.mh: ... here.
6078 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6079 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6080 (SIGCONTEXT_PC_OFFSET): Remove define.
6081 (IN_SIGTRAMP): Remove define.
6082 * i386-sol2-tdep.c: New file.
6084 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6085 * config/i386/tm-i386nw.h: Removed.
6087 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6088 USE_STRUCT_CONVENTION): Remove defines.
6089 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6090 (get_longjmp_target): Remove prototype.
6091 (IN_SIGTRAMP): Remove define.
6092 (i386bsd_in_sigtramp): Remove prototype.
6093 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6094 function. Update comment accordingly
6095 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6096 (FRAME_SAVED_PC): Remove define.
6097 (i386bsd_frame_saved_pc): Remove prototype.
6098 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6099 GET_LONGJMP_TARGET): Remove defines.
6100 (get_longjmp_target): Remove prototype.
6101 (IN_SIGTRAMP): Remove define.
6102 (i386bsd_in_sigtramp): Remove prototype.
6103 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6104 function. Update comment accordingly
6105 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6106 (FRAME_SAVED_PC): Remove define.
6107 (i386bsd_frame_saved_pc): Remove prototype.
6108 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6110 (USE_STRUCT_CONVENTION): Remove prototype.
6111 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6113 (_initialize_i386bsd_nat): Revise logic to determine some
6114 constants at compile time when compiling a native GDB. Warn if
6115 things don't match up with what we expect.
6116 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6118 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6119 to use date stored in `struct gdbarch_tdep'.
6120 (i386bsd_sigcontext_offset): Remove varaible.
6121 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6122 stored in `struct gdbarch_tdep'.
6123 (i386bsd_frame_saved_pc): Make static.
6124 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6125 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6126 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6127 i386fbsd4_sc_pc_offset): New variables.
6128 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6129 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6131 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6133 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6134 Modify the value of i386fbsd_sigtramp_start and
6135 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6136 i386fbsd_sigtramp_end.
6137 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6140 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6141 define to i386-linux-tdep.h.
6142 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6143 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6145 (i386_linux_register_name, i386_linux_register_byte,
6146 i386_linux_register_raw_size): Remove prototypes.
6147 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6148 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6149 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6150 TARGET_WRITE_PC): Remove defines.
6151 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6152 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6153 i386_linux_write_pc): Remove prototypes.
6154 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6155 (get_longjmp_target): Remove prototype.
6156 * i386-linux-tdep.h: New file.
6157 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6158 * i386-linux-tdep.c: Include "i386-tdep.h" and
6159 "i386-linux-tdep.h".
6160 (i386_linux_register_name, i386_linux_register_byte,
6161 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6162 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6164 (i386_linux_init_abi): New function.
6165 (_initialize_i386_linux_tdep): New function.
6167 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6168 (i386_saved_pc_after_call): Remove prototype.
6169 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6170 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6171 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6172 (i386_register_name, i386_stab_reg_to_regnum,
6173 i386_dwarf_reg_to_regnum): Remove prototypes.
6174 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6175 SIZEOF_SSE_REGS): Remove defines.
6176 (REGISTER_BYTES): Remove define.
6177 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6178 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6179 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6180 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6181 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6182 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6183 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6184 (get_longjmp_target): Remove prototype.
6185 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6186 (sigtramp_saved_pc): Remove define.
6187 (i386v4_sigtramp_saved_pc): Remove prototype.
6188 * config/i386/tm-go32.h (FRAME_CHAIN,
6189 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6190 (i386go32_frame_saved_pc): Remove prototype.
6191 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6192 (get_longjmp_target): Remove prototype.
6193 * i386-tdep.h: Include "osabi.h".
6194 (enum i386_abi): Removed.
6195 (enum struct_return): New enum.
6196 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6197 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6198 sc_pc_offset members.
6199 (i386_gdbarch_register_os_abi): Remove prototype.
6200 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6201 I386_SSE_NUM_REGS): New defines.
6202 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6203 I386_SSE_SIZEOF_REGS): New defines.
6204 (i386_register_name, i386_register_byte, i386_register_raw_size):
6206 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6207 (i386bsd_sigtramp_saved_pc): New prototype.
6208 * i386-tdep.c: Don't include "elf-bfd.h".
6209 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6210 i386_frame_chain, i386_saved_pc_after_call): Make static.
6211 (i386_frame_saved_pc): Rewrite to call architecture dependent
6212 function to deal with signal handlers. Make static.
6213 (i386go32_frame_saved_pc): Removed.
6214 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6216 (i386_get_longjmp_target): New function.
6217 (default_struct_convention, pcc_struct_convention,
6218 reg_struct_convention, valid_conventions, struct_convention): New
6220 (i386_use_struct_convention): New function.
6221 (i386v4_sigtramp_saved_pc): Renamed to
6222 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6223 (i386_pc_in_sigtramp): New function.
6224 (i386_abi_names): Removed.
6225 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6226 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6228 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6229 i386_gdbarch_register_os_abi): Removed.
6230 (struct i386_abi_handler): Removed.
6231 (i386_abi_handler_list): Removed.
6232 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6234 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6235 i386_nw_init_abi): New functions.
6236 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6237 Use set_gdbarch_xxx() calls instead of relying on macros for a
6239 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6240 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6241 Register the various architecture variants defined in this file.
6243 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6245 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6246 (struct main_type): Remove arg_types member. Update comments for
6248 (TYPE_ARG_TYPES): Remove.
6249 (TYPE_FN_FIELD_ARGS): Update.
6250 (smash_to_method_type): Update prototype.
6252 * c-typeprint.c (cp_type_print_method_args): Take method type
6253 instead of argument list. Use new argument layout. Simplify.
6254 (c_type_print_args): Use new argument layout. Simplify.
6255 (c_type_print_base): Update call to cp_type_print_method_args.
6256 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6257 argument; use die->type instead. Update call to
6258 smash_to_method_type.
6259 (read_structure_scope): Update call to dwarf2_add_member_fn.
6260 * gdbtypes.c (allocate_stub_method): Update comment.
6261 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6262 Use new argument layout.
6263 (check_stub_method): Use new argument layout. Don't count
6264 void as an argument.
6265 (print_arg_types): Update comments. Use new argument layout.
6266 (recursive_dump_type): Don't print arg_types member.
6267 * hpread.c (hpread_read_struct_type): Use new argument layout.
6268 (fixup_class_method_type): Likewise.
6269 (hpread_type_lookup): Likewise.
6270 * stabsread.c (read_type): Update calls to read_args and
6271 smash_to_method_type.
6272 (read_args): Use new argument layout. Simplify.
6273 * valops.c (typecmp): Use new argument layout. Update parameters
6274 and comments. Simplify.
6275 (hand_function_call): Use new argument layout.
6276 (search_struct_method): Update call to typecmp.
6277 (find_overload_match): Use new argument layout.
6279 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6281 * NEWS: Mention multithreaded debug support for gdbserver.
6283 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6285 * MAINTAINERS: Mention NEWS.
6287 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6289 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6290 (struct mips_objfile_private, compare_pdr_entries): New.
6291 (non_heuristic_proc_desc): Read the ".pdr" section if it
6294 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6296 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6297 (arm_debug): New static variable.
6298 (_initialize_arm_tdep): Add ``set debug arm'' command.
6300 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6302 * Makefile.in (sim_arm_h): Define.
6303 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6304 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6305 (arm_register_sim_regno): New function, map an internal REGNUM
6306 onto a simulator register number.
6307 (arm_gdbarch_init): Set register_sim_regno.
6309 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6311 * MAINTAINERS: Add self.
6313 2002-06-11 Jim Blandy <jimb@redhat.com>
6315 * source.c (source_info): Mention whether the symtab has
6316 information about preprocessor macros.
6318 Call the command `info macro', not `show macro'.
6319 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6321 (_initialize_macrocmd): Register `info_macro_command' in
6322 `infolist', not `showlist'.
6324 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6326 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6327 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6328 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6329 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6330 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6332 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6333 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6334 (_initialize_mips_tdep): Remove dead code.
6335 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6336 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6337 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6338 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6339 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6340 MIPS_LAST_FP_ARG_REGNUM): Remove.
6342 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6344 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6345 (unwind_tmp_obstack_free, parse_frame_info)
6346 (update_context, cfi_read_fp, cfi_write_fp)
6347 (cfi_frame_chain, cfi_init_extra_frame_info)
6348 (cfi_virtual_frame_pointer): Use the above function.
6349 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6351 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6353 * v850-tdep.c (v850_type_is_scalar): New function.
6354 (v850_use_struct_convention): Match current gcc implementation
6355 as close as possible.
6356 (v850_push_arguments): Fix stack_offset handling. Don't write
6357 struct_addr into register. This is done by v850_store_struct_return.
6358 (v850_extract_return_value): Care for structs.
6359 (v850_store_return_value): Ditto.
6360 (v850_store_struct_return): Actually write address.
6362 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6364 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6365 without debug information too.
6367 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6369 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6370 Make multi-arch pure.
6371 * gdbarch.h, gdbarch.c: Re-generate.
6372 * arm-tdep.c (arm_print_float_info): Update.
6373 * arch-utils.h (default_print_float_info): Update.
6374 * arch-utils.c (default_print_float_info): Update.
6375 * infcmd.c (float_info): Update call.
6377 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6379 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6380 the front of the initialize list.
6382 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6384 * infrun.c (struct inferior_status): Replace fields
6385 selected_frame_address and selected_level with field
6387 (save_inferior_status): Update. Use get_frame_id.
6388 (struct restore_selected_frame_args): Delete.
6389 (restore_selected_frame): Update. Use frame_find_by_id.
6390 (restore_inferior_status): Update.
6392 * breakpoint.h (struct breakpoint): Change type of
6393 watchpoint_frame to frame_id.
6394 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6395 call to get_current_frame.
6396 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6398 (watchpoint_check): Use frame_find_by_id.
6400 * frame.h (record_selected_frame): Delete declaration.
6401 * stack.c (record_selected_frame): Delete function.
6403 * frame.h (struct frame_id): Define.
6404 (get_frame_id): Declare.
6405 (frame_find_by_id): Declare.
6406 * frame.c (frame_find_by_id): New function.
6407 (get_frame_id): New function.
6409 2002-06-10 Andrey Volkov <avolkov@transas.com>
6411 * ser-e7kpc.c: Fix duplicated define and call of
6412 _initialize_ser_e7000pc
6414 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6416 * signals/signals.c (target_signal_from_host): Fix #ifdef
6418 (do_target_signal_to_host): Likewise.
6420 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6422 * mips-tdep.c (mips_find_abi_section): New function.
6423 (mips_gdbarch_init): Call it.
6425 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6427 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6428 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6429 after Andrew's 2002-06-08 gdbarch change.
6431 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6433 * i386-linux-nat.c (suppy_gregset): Don't supply
6434 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6436 (fill_gregset): Don't fetch it under the same circumstances.
6438 2002-06-09 Andrew Cagney <cagney@redhat.com>
6440 * Makefile.in (callback_h): Define.
6441 (remote_sim_h): Update path to remote-sim.h.
6442 (remote-rdp.o): Add $(callback_h).
6443 (remote-sim.o): Use $(callback_h).
6444 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6445 * remote-rdp.c: Include "gdb/callback.h".
6447 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6449 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6450 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6452 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6454 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6455 * rdi-share/serpardr.c: Ditto.
6456 * rdi-share/unixcomm.c: Ditto.
6457 * rdi-share/serdrv.c: Ditto.
6458 * rdi-share/hostchan.h: Ditto.
6459 * rdi-share/hostchan.c: Ditto.
6460 * rdi-share/host.h: Ditto.
6461 * rdi-share/devsw.c: Ditto.
6463 * objfiles.h: Change type of obj_private to void pointer.
6464 * pa64solib.c: Update copyright. Don't include "assert.h", use
6465 strcmp instead of STREQ, use LONGEST, do not use PTR
6466 * somsolib.c: Ditto.
6468 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6469 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6470 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6472 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6474 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6475 (default_get_saved_register): Delete function.
6476 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6477 generic_unwind_get_saved_register.
6478 * gdbarch.h, gdbarch.c: Re-generate.
6480 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6482 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6483 generic_func_frame_chain_valid.
6484 * gdbarch.h, gdbarch.c: Re-generate.
6485 * blockframe.c (generic_func_frame_chain_valid): Only check
6486 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6487 passing FP to PC_IN_CALL_DUMMY.
6490 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6492 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6493 (register_gdbarch_data): Initialize init_p.
6494 (gdbarch_data): Initialize data pointer using the init function.
6495 (init_gdbarch_data): Delete function.
6496 (gdbarch_update_p): Update.
6497 (initialize_non_multiarch): Update.
6498 (struct gdbarch): Add field initialized_p.
6499 * gdbarch.h, gdbarch.c: Re-generate.
6501 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6503 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6504 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6505 better do the things actually here.
6506 * x86-64-tdep.c (x86_64_register_name2nr): New.
6507 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6508 (x86_64_gdbarch_init): Respect the above change.
6509 * x86-64-tdep.h (x86_64_register_name2nr)
6510 (x86_64_register_nr2name): Add prototypes.
6511 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6513 2002-06-06 Michael Snyder <msnyder@redhat.com>
6515 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6516 Delete extra braces and re-indent.
6517 (d10v_store_return_value): Char return values
6518 must be shifted over by one byte in R0.
6519 (d10v_extract_return_value): Delete extra braces, re-indent.
6521 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6523 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6524 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6525 (d10v_integer_to_address): Rewrite.
6526 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6527 the d10v specific functions which take care of converting to the
6530 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6532 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6533 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6535 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6537 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6539 * config/tm-linux.h: Ditto.
6540 * config/alpha/tm-alphalinux.h: Ditto.
6541 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6542 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6543 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6544 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6545 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6546 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6547 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6548 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6549 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6550 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6551 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6552 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6553 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6554 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6555 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6556 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6557 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6558 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6559 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6560 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6561 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6562 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6563 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6564 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6565 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6566 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6567 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6568 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6569 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6570 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6571 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6572 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6573 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6574 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6575 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6576 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6577 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6579 2002-05-04 Aidan Skinner <aidan@velvet.net>
6581 * ada-exp.tab.c: New file
6582 * ada-exp.y: New file
6583 * ada-lang.c: New file
6584 * ada-lang.h: New file
6585 * ada-lex.c: New file
6586 * ada-lex.l: New file
6587 * ada-tasks.c: New file
6588 * ada-typeprint.c: New file
6589 * ada-valprint.c: New file
6591 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6593 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6594 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6596 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6598 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6599 insetead of ppc-linux-tdep.o.
6600 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6601 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6603 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6605 2002-05-07 Christian Groessler <chris@groessler.org>
6606 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6607 bit register contents for little endian hosts.
6609 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6611 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6614 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6616 * gdbarch.h: Regenerate.
6618 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6620 * MAINTAINERS: Add everyone to write-after-approval list.
6622 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6624 * stack.c (frame_info): Use frame_register_unwind instead of
6625 saved_regs. Mention when the SP is on the stack or in a register.
6627 * frame.h (frame_register_unwind_ftype): Define. Document.
6628 (struct frame_info): Add field register_unwind and
6629 register_unwind_cache.
6630 (frame_register_unwind): Declare.
6631 (generic_unwind_get_saved_register): Declare.
6633 * frame.c (frame_register_unwind): New function.
6634 (generic_unwind_get_saved_register): New function.
6636 * blockframe.c (generic_call_dummy_register_unwind): New function.
6637 (frame_saved_regs_register_unwind): New function.
6638 (set_unwind_by_pc): New function.
6639 (create_new_frame): New function.
6640 (get_prev_frame): New function.
6642 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6644 * a29k-share/: Delete directory.
6645 * remote-vx29k.c: Delete file.
6647 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6649 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6650 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6652 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6654 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6655 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6658 (sparcnbsd-tdep.o): New dependency lists.
6659 * NEWS: Note new UltraSPARC NetBSD native configuration.
6660 * configure.host (sparc64-*-netbsd*): New host.
6661 * configure.tgt (sparc-*-netbsdelf*)
6662 (sparc-*-netbsd*): Set gdb_target to nbsd.
6663 (sparc64-*-netbsd*): New target.
6664 * sparc64nbsd-nat.c: New file.
6665 * sparcnbsd-nat.c: New file.
6666 * sparcnbsd-tdep.c: New file.
6667 * sparcnbsd-tdep.h: New file.
6668 * config/sparc/nbsd.mt: New file.
6669 * config/sparc/nbsd64.mh: New file.
6670 * config/sparc/nbsd64.mt: New file.
6671 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6672 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6674 * config/sparc/nbsdaout.mt: Remove.
6675 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6676 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6678 * config/sparc/nbsdelf.mt: Remove.
6679 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6680 sparc-nat.c compatiblity defines.
6681 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6682 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6683 * config/sparc/tm-nbsd64.h: New file.
6684 * config/sparc/tm-nbsdaout.h: Remove.
6685 * config/sparc/xm-nbsd.h: Remove.
6687 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6689 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6690 * sparc-tdep.c: Include osabi.h.
6691 (gdbarch_tdep): Add osabi member.
6692 (_initialize_sparc_tdep): Use gdbarch_register.
6693 (sparc_gdbarch_init): Use generic OS ABI framework.
6694 (sparc_dump_tdep): New function.
6696 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6698 * corefile.c (do_captured_read_memory_integer): Return non-zero
6700 (safe_read_memory_integer): Copy result of memory read when
6701 status is non-zero. Also, add comments.
6703 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6705 * Makefile.in (ppc_tdep_h): Define.
6708 (rs6000-tdep.o): Use $(ppc_tdep_h).
6711 (ppcnbsd-tdep.o): New dependency lists.
6712 * ppc-tdep.h: Use generic OS ABI framework.
6713 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6714 (ppc_linux_init_abi): New functions.
6715 (ppc_sysv_abi_broken_use_struct_convention)
6716 (ppc_sysv_abi_use_struct_convention)
6717 (ppc_sysv_abi_push_arguments): Move to...
6718 * ppc-sysv-tdep.c: ...here.
6719 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6720 * rs6000-tdep.c (process_note_abi_tag_sections)
6721 (get_elfosabi): Remove.
6722 (rs6000_gdbarch_init): Use generic OS ABI framework.
6723 (rs6000_dump_tdep): New function.
6724 (_initialize_rs6000_tdep): Use gdbarch_register.
6725 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6726 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6727 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6728 of ppc-linux-tdep.o.
6729 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6730 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6731 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6732 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6733 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6734 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6736 2002-05-29 Jim Blandy <jimb@redhat.com>
6738 * macroscope.c (default_macro_scope): Put `void' in empty argument
6741 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6743 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6744 * arch-utils.c: Include "sim-regno.h".
6745 * gdbarch.sh: Don't include "sim-regno.h".
6746 * gdbarch.h, gdbarch.c: Regenerate.
6747 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6749 * arch-utils.h (legacy_register_sim_regno): To here.
6750 * remote-sim.c (legacy_register_sim_regno): Move function from
6752 * arch-utils.c (legacy_register_sim_regno): To here.
6754 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6756 * sim-regno.h: New file.
6757 * Makefile.in (sim_regno_h): Define.
6758 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6759 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6760 (legacy_register_sim_regno): New function.
6761 (one2one_register_sim_regno): New function.
6762 (gdbsim_fetch_register): Rewrite.
6763 (gdbsim_store_register): Only store a register when
6764 REGISTER_SIM_REGNO is valid.
6765 * d10v-tdep.c: Include "sim-regno.h".
6766 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6767 (d10v_ts3_register_sim_regno): Ditto.
6768 * gdbarch.sh: Include "sim-regno.h".
6769 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6770 * gdbarch.h, gdbarch.c: Regenerate.
6771 * arch-utils.h (default_register_sim_regno): Delete declaration.
6772 * arch-utils.c (default_register_sim_regno): Delete function.
6774 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6776 * ppcnbsd-nat.c: Rewrite.
6777 * ppcnbsd-tdep.c: New file.
6778 * ppcnbsd-tdep.h: New file.
6779 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6780 solib.o, and solib-svr4.o.
6781 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6782 nbsd-tdep.o, and corelow.o.
6784 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6786 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6787 `tr' and `sed'. Mention that `broken' targets are not expected to
6790 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6792 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6793 Let PC point right after the prologue before looking up symbols.
6795 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6797 * i386-tdep.c (i386_register_virtual_type): Return
6798 builtin_type_vec128i for SSE registers.
6800 * gdbtypes.h (builtin_type_vec128i): Declare.
6802 * gdbtypes.c (build_builtin_type_vec128i): New function.
6803 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6804 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6805 (build_gdbtypes): Initialize new builtin vector types.
6806 (_initialize_gdbtypes): Register new vector types with gdbarch.
6808 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6810 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6811 since it has been multi-arch'd.
6812 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6813 Move Alpha and VAX multi-arch news entries to same section
6814 as other multi-arch news.
6816 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6818 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6819 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6820 static. Rename some register numbers to put them in ns32k-tdep
6822 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6823 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6825 (_initialize_ns32k_tdep): Use gdbarch_register.
6826 * ns32k-tdep.h: New file.
6827 * ns32knbsd-tdep.c: New file.
6828 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6829 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6830 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6831 REGISTER_BYTES, REGISTER_BYTE): Remove.
6832 * config/ns32k/tm-ns32k.h: New file.
6833 * config/ns32k/tm-umax.h: Remove.
6835 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6837 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6838 ns32k_store_struct_return, ns32k_extract_return_value,
6839 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6841 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6842 ns32k_saved_pc_after_call.
6843 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6844 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6845 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6846 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6847 ns32k_extract_struct_value_address.
6849 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6851 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6852 ns32k_fix_call_dummy): New.
6853 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6854 ns32k_call_dummy_words.
6855 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6856 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6857 CALL_DUMMY_NARGS): Remove.
6858 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6860 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6862 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6863 ns32k_frame_saved_pc, ns32k_frame_args_address,
6864 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6865 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6866 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6867 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6868 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6869 (BREAKPOINT): Remove..
6870 (FRAME_CHAIN): Define as ns32k_frame_chain.
6871 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6872 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6873 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6874 (FRAME_FIND_SAVED_REGS): Remove.
6875 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6876 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6877 (POP_FRAME): Define as ns32k_pop_frame.
6879 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6881 * ns32k-tdep.c (ns32k_register_byte_32082,
6882 ns32k_register_byte_32382, ns32k_register_raw_size,
6883 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6885 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6886 ns32k_register_byte_32382.
6887 * config/ns32k/tm-umax.h: Update copyright years.
6888 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6889 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6890 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6891 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6892 (ns32k_get_enter_addr): Fix prototype.
6894 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6896 * ns32k-tdep.c: Update copyright years.
6897 (ns32k_register_name_32082): New function.
6898 (ns32k_register_name_32382): Ditto.
6899 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6900 (REGISTER_NAME): Define as ns32k_register_name_32382.
6901 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6902 (REGISTER_NAME): Define as ns32k_register_name_32082.
6904 2002-05-24 Jim Blandy <jimb@redhat.com>
6906 * dwarf2read.c (free_line_header): Use xfree, not free.
6908 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6910 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6911 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6913 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6915 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6917 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6919 From Ross Alexander at NEC Europe:
6920 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6922 2002-05-23 Michael Snyder <msnyder@redhat.com>
6924 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6925 for input, rather than parse_and_eval_address.
6927 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6929 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6930 * Makefile.in (sim_d10v_h): Update definition.
6932 2002-05-24 Andrew Cagney <cagney@redhat.com>
6934 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6935 change `2002-05-22 Michael Snyder' below.
6936 (d10v_push_arguments): Ditto.
6937 (d10v_extract_return_value): Ditto.
6939 2002-05-23 Jim Blandy <jimb@redhat.com>
6941 * macrotab.c (check_for_redefinition): Don't complain if the new
6942 definition is the same as the previous one. Take more arguments
6943 to allow the comparison.
6944 (macro_define_object, macro_define_function): Pass more arguments
6945 to check_for_redefinition.
6947 2002-05-22 Michael Snyder <msnyder@redhat.com>
6949 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6950 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6951 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6952 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6953 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6954 Add a temp variable to save a call (and a memory read).
6955 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6956 if possible (so that PC_IN_CALL_DUMMY will work).
6958 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6960 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6962 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6964 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6966 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6967 (dwarf2_build_frame_info): Add offset to fde->initial_location
6968 so that frames of shared libraries are mapped correctly.
6969 (execute_stack_op): Change type of 'result' from ULONGEST to
6972 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6974 * config/alpha/tm-nbsd.h: Include solib.h.
6976 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6978 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6979 assumptions about the host's byte order.
6981 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6983 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6985 * alphanbsd-tdep.c: Include solib-svr4.h.
6986 * shnbsd-tdep.c: Ditto.
6988 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6990 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6991 nbsd-tdep.h to dependency list.
6992 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6993 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6994 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6995 nbsdaout.mh and nbsdelf.mh consistently.
6996 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6997 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6998 nbsdaout.mt and nbsdelf.mh consistently.
6999 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7000 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7001 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7002 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7003 a.out shared library stuff from here...
7004 * config/nm-nbsdaout.h: ...to here.
7005 * config/tm-nbsd.h: Remove.
7006 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7007 * config/arm/nbsd.mh: Remove.
7008 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7010 * config/arm/nbsdaout.mh: New file.
7011 * config/arm/nbsdelf.mh: New file.
7012 * config/arm/nm-nbsdaout.h: New file.
7013 * config/i386/nbsd.mh: Remove.
7014 * config/i386/nbsd.mt: Remove.
7015 * config/i386/nbsdaout.mh: New file.
7016 * config/i386/nbsdaout.mt: New file.
7017 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7018 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7019 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7020 i386_register_u_addr): Remove.
7021 * config/i386/nm-nbsdaout.h: New file.
7022 * config/i386/nm-nbsdelf.h: Remove.
7023 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7024 (USE_STRUCT_CONVENTION): Remove.
7025 * config/i386/tm-nbsdaout.h: New file.
7026 * config/i386/tm-nbsdelf.h: Remove.
7027 * config/m68k/nbsd.mh: Remove.
7028 * config/m68k/nbsd.mt: Remove.
7029 * config/m68k/nbsdaout.mh: New file.
7030 * config/m68k/nbsdaout.mt: New file.
7031 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7032 * config/m68k/nm-nbsdaout.h: New file.
7033 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7034 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7035 * config/ns32k/nbsd.mh: Remove.
7036 * config/ns32k/nbsd.mt: Remove.
7037 * config/ns32k/nbsdaout.mh: New file.
7038 * config/ns32k/nbsdaout.mt: New file.
7039 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7040 * config/ns32k/nm-nbsdaout.h: New file.
7041 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7042 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7043 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7044 (SVR4_SHARED_LIBS): Remove.
7045 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7046 * config/sparc/nbsd.mh: Remove.
7047 * config/sparc/nbsd.mt: Remove.
7048 * config/sparc/nbsdaout.mh: New file.
7049 * config/sparc/nbsdaout.mt: New file.
7050 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7051 * config/sparc/nbsdelf.mt: New file.
7052 * config/sparc/nm-nbsdaout.h: New file.
7053 * config/sparc/nm-nbsdelf.h: Remove.
7054 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7055 * config/sparc/tm-nbsdaout.h: New file.
7057 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7059 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7061 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7063 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7065 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7067 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7069 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7071 * NEWS: Note new MIPS NetBSD native configuration.
7072 * configure.host (mips*-*-netbsd*): New host.
7073 * configure.tgt (mips*-*-netbsd*): New target.
7074 * mipsnbsd-nat.c: New file.
7075 * mipsnbsd-tdep.c: New file.
7076 * mipsnbsd-tdep.h: New file.
7077 * config/mips/nbsd.mh: New file.
7078 * config/mips/nbsd.mt: New file.
7079 * config/mips/nm-nbsd.h: New file.
7080 * config/mips/tm-nbsd.h: New file.
7082 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7084 * Makefile.in (SFILES): Add osabi.c.
7085 (COMMON_OBS): Add osabi.o.
7086 (osabi.o): New dependency list.
7087 * osabi.c: New file.
7088 * osabi.h: New file.
7089 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7091 * Makefile.in (alpha_tdep_h): Define and use instead of
7093 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7094 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7096 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7097 * alpha-tdep.h: Include osabi.h.
7098 (alpha_abi): Remove.
7099 (gdbarch_tdep): Use generic OS ABI framework.
7100 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7101 gdbarch_register_osabi.
7102 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7103 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7104 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7106 * Makefile.in (sh_tdep_h): Add osabi.h.
7107 * sh-tdep.h (sh_osabi): Remove.
7108 (gdbarch_tdep): Use generic OS ABI framework.
7109 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7110 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7111 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7112 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7114 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7115 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7116 gdbarch_register_osabi.
7117 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7118 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7119 (get_elfosabi): Rename to...
7120 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7121 ABI framework support routines.
7122 (arm_gdbarch_init): Use generic OS ABI framework.
7123 (arm_dump_tdep): Likewise.
7124 (_initialize_arm_tdep): Likewise.
7125 * arm-tdep.h: Include osabi.h.
7127 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7129 (arm_gdbarch_register_os_abi): Remove prototype.
7130 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7131 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7133 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7134 * mips-tdep.c: Include osabi.h.
7135 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7138 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7140 * h8300-tdep.c: Fix formatting.
7142 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7144 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7145 printing vector registers.
7147 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7149 From Fernando Nasser:
7150 * remote.c (remote_async_open_1): Re-throw the exception when the
7152 (remote_cisco_open): Ditto.
7153 (remote_open_1): Ditto.
7155 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7157 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7158 (remote_start_remote): Add uiout parameter. Pass through to
7159 remote_start_remote_dummy.
7160 (remote_open_1): Use catch_exception instead of catch_errors.
7161 (remote_async_open_1): Ditto.
7162 (remote_cisco_open): Ditto.
7164 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7166 * remote.c (remote_start_remote): Replace PTR with void pointer.
7167 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7170 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7172 * gdb_indent.sh: Allow the script to be run in the sim directory.
7174 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7176 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7177 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7179 * corelow.c (core_open): Only call set_gdbarch_from_file if
7182 2002-05-17 Andrey Volkov <avolkov@transas.com>
7184 * h8300-tdep.c: Add support of EXR register
7185 * config/h8300/tm-h8300.h: Ditto.
7187 2002-05-17 Andrey Volkov <avolkov@transas.com>
7189 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7191 2002-05-17 Andrey Volkov <avolkov@transas.com>
7193 * h8300-tdep.c: Change literal regnums to REGNO.
7195 2002-05-17 Jim Blandy <jimb@redhat.com>
7197 * NEWS: Note addition of macro support.
7199 Expand preprocessor macros in C expressions.
7200 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7201 (scan_macro_expansion, scanning_macro_expansion,
7202 finished_macro_expansion): New function declarations.
7203 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7204 variable declarations.
7205 * parser-defs.h (expression_context_pc): New declaration.
7206 * parse.c (expression_context_pc): New variable.
7207 (parse_exp_1): Set expression_context_pc, as well as
7208 expression_context_block.
7209 * c-exp.y (yylex): If we're not already reading the result of a
7210 macro expansion, try to macro-expand the next token. When we're
7211 done scanning a macro expansion, switch back to the mainline text.
7212 Commas and `if's in a macro's expansion don't terminate the input.
7213 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7214 (macro_original_text, macro_expanded_text,
7215 expression_macro_lookup_func, expression_macro_lookup_baton): New
7217 (scan_macro_expansion, scanning_macro_expansion,
7218 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7219 c_preprocess_and_parse): New functions.
7220 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7221 c_preprocess_and_parse, instead of c_parse.
7222 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7223 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7225 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7227 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7228 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7229 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7231 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7233 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7235 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7237 * Makefile.in (sh_tdep_h): Define and use.
7238 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7239 register enum): Move to...
7240 * * sh-tdep.h: ...here.
7241 * sh-tdep.c: Include sh-tdep.h.
7242 * sh3-rom.c: Likewise.
7243 * shnbsd-tdep.c: Likewise.
7245 2002-05-16 Michael Snyder <msnyder@redhat.com>
7247 * arm-tdep.c: Spelling fix in comment.
7249 2002-05-16 Jim Blandy <jimb@redhat.com>
7251 Add commands for manually expanding macros and showing their
7253 * macrocmd.c, macroscope.c, macroscope.h: New files.
7254 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7255 (macroscope_h): New variable.
7256 (HFILES_NO_SRCDIR): Add macroscope.h.
7257 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7258 (macroscope.o, macrocmd.o): New rules.
7260 Teach the Dwarf 2 reader to read macro information.
7261 * dwarf2read.c: #include "macrotab.h".
7262 (dwarf_macinfo_buffer): New variable.
7263 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7265 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7266 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7267 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7268 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7269 dwarf2_macro_spaces_in_definition): New complaints.
7270 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7271 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7272 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7273 the partial symbol table.
7274 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7275 from what's recorded in the partial symbol table.
7276 (read_file_scope): If the compilation unit has a
7277 `DW_AT_macro_info' attribute, read its macro information.
7278 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7280 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7283 * ser-tcp.c: Don't include <netinet/udp.h>.
7285 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7287 * MAINTAINERS: Update my email address.
7289 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7291 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7292 include file of the same name.
7294 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7296 * configure.tgt: Mark v850 as multi-arched.
7297 * config/v850/tm-v850.h: Remove file.
7298 * config/v850/v850.mt: Eliminate TM_FILE.
7300 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7302 * v850-tdep.c: Full multi-arch.
7303 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7304 Define GDB_MULTI_ARCH to 2.
7306 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7308 * p-exp.y (current_type): New static variable.
7309 Carries the type of the expression at the position that is parsed.
7310 (push_current_type, pop_current_type): Two new functions. Used
7311 to store/restore current_type in expression on specific tokens.
7312 (search_field): New static variable. Set to one after parsing a point
7313 as at that point only a FIELDNAME token should be searched.
7314 (FIELDNAME): New token. After a point only a token belonging to
7315 current_type type definition is allowed.
7316 (all over token rules): reset and change current_type according
7318 (exp '[' rule): insert implicit array index field if
7319 exp is a pascal string type.
7321 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7323 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7324 frame info. Use frame_info's saved_regs instead of matching member
7325 in extra_frame_info throughout.
7326 (v850_frame_init_saved_regs): New function.
7327 (v850_init_extra_frame_info): Move most functionality into
7328 v850_frame_init_saved_regs().
7329 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7330 (v850_frame_find_saved_regs): Remove declaration.
7331 (FRAME_FIND_SAVED_REGS): Remove definition.
7332 (v850_frame_init_saved_regs): Add declaration.
7333 (FRAME_INIT_SAVED_REGS): Add definition.
7335 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7337 * v850-tdep.c: Begin multi-arch'ing v850.
7338 (v850_target_architecture_hook): Remove function.
7339 (v850_gdbarch_init): New function. Add code previously in
7340 v850_target_architecture_hook().
7341 (_initialize_v850_tdep): Don't set target_architecture_hook.
7342 Call register_gdbarch_init() instead.
7344 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7346 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7347 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7348 (fixup_class_method_type): Likewise.
7350 2002-05-15 Jim Blandy <jimb@redhat.com>
7352 Add macro structures to GDB's symbol tables. Nobody puts anything
7354 * symtab.h (struct symtab): New member: `macro_table'.
7355 * buildsym.h (pending_macros): New global variable.
7356 * buildsym.c: #include "macrotab.h".
7357 (buildsym_init): Initialize `pending_macros'.
7358 (end_symtab): If we found macro information while reading a CU's
7359 debugging info, do build a symtab structure for it. Make the
7360 symtab point to the macro information, and clear the
7361 `pending_macros' pointer which held it while we were reading the
7363 (really_free_pendings): Free any pending macro table.
7364 * objfiles.h (struct objfile): New member: `macro_cache'.
7365 * objfiles.c (allocate_objfile): Set allocate and free functions
7366 for the macro cache's objstack.
7367 (free_objfile): Empty the macro cache's obstack.
7368 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7369 set new allocate and free functions for it.
7370 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7371 free functions for the macro cache's objstack. (Why is this
7372 function building its own objfile?)
7373 * symmisc.c (print_objfile_statistics): Print statistics on the
7375 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7377 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7379 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7380 (REGISTER_U_ADDR): Delete definition.
7381 (arm_register_u_addr): Delete declaration.
7383 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7385 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7386 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7388 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7390 * regcache.c (register_valid): Revise comments refering to "Not
7391 available" and "unavailable".
7392 * frame.c (frame_register_read): Ditto.
7393 * findvar.c (value_of_register): Ditto.
7395 2002-05-15 Andrew Cagney <cagney@redhat.com>
7397 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7398 (remote-sim.o): Update dependencies.
7399 (d10v-tdep.o): Specify dependencies.
7400 (sim_d10v_h): Define.
7402 2002-05-14 Jim Blandy <jimb@redhat.com>
7404 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7405 * macrotab.c (macro_lookup_inclusion, find_definition,
7406 new_macro_table): Same.
7408 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7409 not `! strcmp ()'. This is a dubious improvement.
7410 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7412 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7413 although it's not necessary, to avoid a warning.
7415 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7417 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7418 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7419 TYPE_INSTANCE_FLAGS.
7420 (struct main_type): New.
7421 (struct type): Move most members to struct main_type. Change
7422 cv_type and as_type to new type_chain member. Add instance_flags.
7423 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7424 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7425 (finish_cv_type): Remove prototype.
7426 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7428 (alloc_type_instance): New function.
7429 (smash_type): New function.
7430 (make_pointer_type, make_reference_type, make_function_type)
7431 (smash_to_member_type, smash_to_method_type): Call smash_type.
7432 (make_qualified_type): New function.
7433 (make_type_with_address_space): Call make_qualified_type.
7434 (make_cv_type): Likewise.
7435 (finish_cv_type): Remove unnecessary function.
7436 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7437 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7438 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7439 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7440 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7441 * hpread.c (hpread_read_struct_type): Likewise.
7442 * stabsread.c (read_struct_type): Likewise.
7444 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7446 * configure.tgt: Add a catch all sh* target, for cases like
7447 sh[2,3,4]-elf and sh-hms.
7449 2002-05-14 Keith Seitz <keiths@redhat.com>
7451 * event-loop.c (create_file_handler): Don't do anything but
7452 update data when we are given a fd which we are already
7455 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7457 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7458 (update_context): Use __func__ in warnings.
7460 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7462 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7463 and tcp_close to net_open and net_close.
7464 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7465 using UDP if requested. Don't try to disable Nagle on UDP
7467 * remote.c (remote_serial_open): New function. Warn about UDP.
7468 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7470 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7472 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7474 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7476 * configure.tgt: Remove sh-hms target.
7477 * MAINTAINERS: Don't list sh-hms as a separate target.
7479 2002-05-13 Jim Blandy <jimb@redhat.com>
7481 Add first preprocessor macro-expansion files.
7482 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7483 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7484 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7485 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7486 (COMMON_OBS): Add macrotab.o, macroexp.o.
7487 (macroexp.o, macrotab.o): New rules.
7489 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7491 * config/m88k/tm-m88k.h: Update copyright.
7492 (m88k_target_write_pc): Declare
7493 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7494 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7495 (SHIFT_INST_REGS): Update definition.
7496 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7497 using old definition of TARGET_WRITE_PC.
7498 * regcache.c (generic_target_write_pc): Delete code handling
7500 * gdbarch.sh (NNPC_REGNUM): Delete.
7501 * gdbarch.h, gdbarch.c: Regenerate.
7503 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7505 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7508 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7510 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7511 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7512 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7514 * c-typeprint.c (cp_type_print_method_args): Likewise.
7515 (c_type_print_args): Likewise.
7516 * d10v-tdep.c (d10v_push_arguments): Likewise.
7517 (d10v_extract_return_value): Likewise.
7518 * expprint.c (print_subexp): Likewise.
7519 * gdbtypes.c (lookup_primitive_typename): Likewise.
7520 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7521 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7522 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7523 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7524 (TYPE_VECTOR): Likewise.
7525 * hpread.c (hpread_read_struct_type)
7526 (fix_static_member_physnames, fixup_class_method_type)
7527 (hpread_type_lookup): Likewise.
7528 * mdebugread.c (parse_symbol, parse_type): Likewise.
7529 * p-lang.c (is_pascal_string_type): Likewise.
7530 * valops.c (hand_function_call): Likewise.
7531 * x86-64-tdep.c (classify_argument): Likewise.
7533 * hpread.c (hpread_read_function_type)
7534 (hpread_read_doc_function_type): Call replace_type.
7535 * dstread.c (create_new_type): Delete.
7536 (decode_dst_structure, process_dst_function): Call alloc_type.
7537 Use type access macros.
7539 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7541 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7542 the're not supported by the current architecture.
7543 (i387_fill_fxsave): Likewise.
7545 2002-05-12 Fred Fish <fnf@redhat.com>
7547 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7548 sect_index_xxx members to index the first slot in section_offsets
7549 if all of the section_offsets are zero.
7551 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7553 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7554 checked in with last change.
7556 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7558 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7559 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7562 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7564 * Makefile.in: Update dependencies.
7566 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7568 * language.c (local_hex_string_custom): Simplify. Do not depend
7569 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7571 * memattr.c (mem_info_command): Replace calls to
7572 longest_local_hex_string and longest_local_hex_string_custom.
7573 * buildsym.c (make_blockvector): Ditto.
7574 * solib.c (info_sharedlibrary_command): Ditto.
7575 * tracepoint.c (tracepoints_info): Ditto.
7576 * symtab.c (print_msymbol_info): Ditto.
7578 * language.c (local_hex_string): Delete.
7579 (local_hex_string_custom): Delete.
7580 (longest_local_hex_string): Rename to local_hex_string.
7581 (longest_local_hex_string_custom): Rename to
7582 local_hex_string_custom.
7583 * language.h (local_hex_string): Change parameter type to LONGEST.
7584 (local_hex_string_custom): Ditto.
7585 (longest_local_hex_string): Delete declaration.
7586 (longest_local_hex_string_custom): Ditto.
7588 * solib.c: Update copyright.
7589 * memattr.c: Update copyright.
7591 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7593 * arch-utils.h (legacy_register_to_value): Declare.
7594 (legacy_value_to_register): Declare.
7595 (legacy_convert_register_p): Declare.
7596 * arch-utils.c (legacy_register_to_value): New function.
7597 (legacy_value_to_register): New function.
7598 (legacy_convert_register_p): New function.
7600 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7601 (VALUE_TO_REGISTER): Define.
7602 (CONVERT_REGISTER_P): Define.
7603 * gdbarch.h, gdbarch.c: Regenerate.
7605 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7607 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7610 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7611 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7613 * Makefile.in: Update dependencies for valops.c.
7614 * valops.c: Include "gdb_assert.h".
7615 (typecmp): Skip THIS parameter to methods.
7616 (find_method_list): Remove static_memfuncp argument,
7617 update callers. Check for stub methods.
7618 (find_value_oload_method_list): Don't set *static_memfuncp.
7619 (find_overload_match): Don't check for stub methods. Assert
7620 that methods are not stubbed. Handle static methods.
7621 (value_find_oload_method_list): Remove static_memfuncp argument.
7622 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7623 to the argument list for static stub methods.
7624 * value.h (value_find_oload_method_list): Update prototype.
7626 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7628 * arch-utils.h (generic_register_size): Declare.
7629 (generic_register_raw_size, generic_register_virtual_size): Delete
7631 * arch-utils.c (generic_register_raw_size): Delete.
7632 (generic_register_size): New function.
7633 (generic_register_virtual_size): Delete.
7635 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7636 default generic_register_size.
7637 * gdbarch.h, gdbarch.c: Re-generate.
7639 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7640 register_virtual_size.
7641 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7642 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7644 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7646 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7647 * gdbarch.h, gdbarch.c: Regenerate.
7648 * gnu-v3-abi.c: Update copyright.
7649 (vtable_address_point_offset): Update.
7650 (gnuv3_rtti_type): Update.
7651 (gnuv3_baseclass_offset): Update.
7652 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7653 (init_fetch_link_map_offsets): Update.
7654 * remote.c (get_remote_state): Update.
7656 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7658 * TODO: Remove value_headof/value_from_vtable_info comment.
7659 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7660 * values.c (value_headof, value_from_vtable_info): Delete.
7661 * value.h (value_from_vtable_info): Delete prototype.
7663 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7665 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7666 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7668 (gdb_assert_h): Define.
7669 (gdb_wait_h): Define.
7670 (gdb_regex_h): Define.
7672 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7674 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7675 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7677 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7679 * nbsd-tdep.c: Fix comment.
7681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7683 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7684 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7685 (nbsd-tdep.o): New dependency list.
7686 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7688 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7689 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7690 * nbsd-tdep.c: New file.
7691 * nbsd-tdep.h: New file.
7692 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7694 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7695 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7696 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7697 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7701 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7702 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7703 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7704 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7705 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7706 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7708 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7710 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7711 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7712 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7713 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7714 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7715 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7716 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7718 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7720 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7721 fetch_elfcore_registers to...
7722 * i386nbsd-tdep.c: ...here.
7723 (i386nbsd_use_struct_convention): Rename to...
7724 (i386nbsd_aout_use_struct_convention): ...this.
7725 (i386nbsd_supply_reg): New function.
7726 (i386nbsd_fill_reg): New function.
7727 (fetch_core_registers): Use i386nbsd_supply_reg.
7728 (fetch_elfcore_registers): Likewise.
7729 (_initialize_i386nbsd_tdep): New function.
7730 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7731 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7732 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7733 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7734 (i386nbsd_aout_use_struct_convention): ...this.
7736 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7738 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7739 (store_inferior_registers): Use shnbsd_fill_reg.
7740 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7741 sh_nbsd_supply_register): Collapse into...
7742 (shnbsd_supply_reg): ...this.
7743 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7744 (shnbsd_fill_reg): ...this.
7745 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7746 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7747 (fetch_core_registers): Use shnbsd_supply_reg.
7748 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7749 (sh_nbsd_core_fns): Rename to...
7750 (shnbsd_core_fns): ...this.
7751 (sh_nbsd_elfcore_fns): Rename to...
7752 (shnbsd_elfcore_fns): ...this.
7753 (sh_nbsd_init_abi): Rename to...
7754 (shnbsd_init_abi): ...this.
7755 (_initialize_sh_nbsd_tdep): Rename to...
7756 (_initialize_shnbsd_tdep): ...this.
7757 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7758 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7759 sh_nbsd_fill_register): Remove prototypes.
7760 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7764 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7765 (i387-nat.o): Delete dependency list.
7766 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7767 (x86-64-linux-nat.o): Likewise.
7768 * i387-nat.c: Delete file, moving contents to...
7769 * i387-tdep.c: ...here.
7770 * i387-nat.h: Rename...
7771 * i387-tdep.h: ...to this.
7772 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7773 * i386-linux-nat.c: Likewise.
7774 * i386bsd-nat.c: Likewise.
7775 * i386gnu-nat.c: Likewise.
7776 * i386nbsd-nat.c: Likewise.
7777 * i386v4-nat.c: Likewise.
7778 * x86-64-linux-nat.c: Likewise.
7779 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7780 * config/i386/go32.mh (NATDEPFILES): Likewise.
7781 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7782 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7783 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7784 * config/i386/linux.mh (NATDEPFILES): Likewise.
7785 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7786 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7787 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7788 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7790 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7792 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7793 (alphanbsd-nat.o): Remove dependency list.
7794 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7795 * alphanbsd-nat.c: Delete. Contents moved to...
7796 * alphanbsd-tdep.c: ...here.
7797 (_initialize_alphanbsd_tdep): Register core functions.
7798 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7800 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7802 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7803 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7804 (alphanbsd-nat.o): Likewise.
7805 (alphabsd-tdep.o): New dependency list.
7806 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7807 (fill_gregset): Use alphabsd_fill_reg.
7808 (supply_fpregset): Use alphabsd_supply_fpreg.
7809 (fill_fpregset): Use alphabsd_fill_fpreg.
7810 (fetch_inferior_registers): Use struct reg and struct fpreg
7811 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7812 and alphabsd_supply_fpreg.
7813 (store_inferior_registers): Use struct reg and struct fpreg
7814 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7815 and alphabsd_fill_fpreg.
7816 * alphabsd-tdep.c: New file.
7817 * alphabsd-tdep.h: New file.
7818 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7819 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7820 alphabsd_supply_fpreg.
7821 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7822 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7824 2002-05-11 Eric Christopher <echristo@redhat.com>
7826 * mips-tdep.c (mips_double_register_type): Fix thinko.
7827 (mips_single_register_type): Ditto.
7828 * MAINTAINERS: Add self.
7830 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7832 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7833 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7834 right thing on architectures with different endianness and/or
7837 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7839 From Christian Limpach <chris@Pin.LU>
7840 * configure.in: Change sed expression which comments out
7841 NATDEPFILES to also comment out continuation lines.
7842 * configure: Regenerate.
7844 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7846 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7849 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7851 * sh-tdep.c: Include correct file.
7853 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7855 New support for sh64-elf (sh5) target.
7857 * configure.tgt: For sh64-elf target, default to sh-elf.
7859 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7860 (struct gdbarch_tdep): Add new fields for new registers and ABI
7863 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7864 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7865 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7866 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7867 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7868 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7869 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7870 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7871 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7872 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7873 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7874 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7875 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7876 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7877 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7878 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7879 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7880 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7881 sign_extend, sh64_nofp_frame_init_saved_regs,
7882 sh64_init_extra_frame_info, sh64_get_saved_register,
7883 sh64_extract_struct_value_address, sh64_pop_frame,
7884 sh64_push_arguments, sh64_extract_return_value,
7885 sh64_store_return_value, sh64_show_media_regs,
7886 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7887 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7888 sh_sh64_register_virtual_type,
7889 sh_sh64_register_convert_to_virtual,
7890 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7891 sh64_register_read, sh64_pseudo_register_write,
7892 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7893 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7894 sh64_do_pseudo_register, sh_compact_do_registers_info,
7895 sh64_do_registers_info, sh_gdbarch_init): New functions.
7897 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7899 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7901 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7903 * linespec.c (decode_line_1): Check for a double quote after
7904 a filename correctly.
7906 2002-05-10 Jim Blandy <jimb@redhat.com>
7908 Properly track the size of the current objfile's .debug_line section.
7909 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7910 (DWARF_LINE_SIZE): New macro.
7911 (dwarf2_build_psymtabs_hard): Record the line section's size in
7912 the partial symbol table.
7913 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7916 2002-05-10 Petr Sorfa <petrs@caldera.com>
7918 * ia64-tdep.c: Handle breakpoints on L instruction type
7919 in MLX instruction bundle by moving the breakpoint to
7920 the third slot (X instruction type) as L holds only data.
7922 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7924 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7925 (process_one_symbol): Complain about discarding local symbols
7926 due to a misplaced N_LBRAC entry.
7928 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7930 From Daniel Berlin <dan@cgsoftware.com>
7931 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7932 decrease the depth we are at, in the case of templates.
7934 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7936 * mips-tdep.c (mips_float_register_type): New function.
7937 (mips_double_register_type): New function.
7938 (mips_print_register): Use them.
7939 (do_fp_register_row): Likewise.
7941 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7943 * signals/signals.c (signals): Remove conditional compilation around
7944 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7945 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7947 2002-05-09 Michael Snyder <msnyder@redhat.com>
7949 * remote-rdp.c (remote_rdp_can_run): Remove.
7951 2002-05-09 Tom Tromey <tromey@redhat.com>
7953 * jv-valprint.c (java_val_print): Handle `char' as a special case
7956 2002-05-09 Michael Snyder <msnyder@redhat.com>
7958 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7959 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7960 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7961 str r(0123),[sp,#nn].
7962 (arm_skip_prologue): Ditto. Also make disassembly
7963 order-independent by placing it in a loop.
7965 2002-05-06 Michael Snyder <msnyder@redhat.com>
7967 * stabsread.c (read_type): Add recognition for new attribute:
7968 "@V;" means that an array type is actually a vector.
7969 This is analogous to the vector flag that's been added to dwarf2.
7971 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7973 * i386-tdep.h (i386_abi): New enum.
7974 (struct gdbarch_tdep): Replace os_ident member with abi.
7975 (i386_gdbarch_register_os_abi): New prototype.
7976 * i386-tdep.c (i386_abi_names): New array.
7977 (process_note_abi_tag_sections): Removed.
7978 (process_note_sections): New function.
7979 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7980 (struct i386_abi_handler): New struct.
7981 (i386_abi_handler_list): New variable.
7982 (i386_gdbarch_register_os_abi): New function.
7983 (i386_gdbarch_init): Adapt for the changes given above.
7985 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7987 * gregset.h: Say "GNU/Linux".
7989 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7991 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7992 (build_gdbtypes): Build builtin_type_v2_float.
7993 (_initialize_gdbtypes): Register new builtin type.
7995 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7997 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7998 (clear_gdbarch_swap): New function.
7999 (initialize_non_multiarch): Call.
8000 (gdbarch_update_p): Before calling init(), swap out and clear the
8001 existing architecture.
8002 * gdbarch.c: Regenerate.
8004 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8006 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8009 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8011 * sh-nbsd-nat.c: Rename to...
8012 * shnbsd-nat.c: ...this.
8013 * sh-nbsd-tdep.c: Rename to...
8014 * shnbsd-tdep.c: ...this.
8015 * sh-nbsd-tdep.h: Rename to...
8016 * shnbsd-tdep.h: ...this.
8017 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8018 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8020 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8022 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8023 concatenation for command help messages.
8025 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8027 * NEWS: Note new sh*-*-netbsdelf* configuration.
8028 * configure.host: Set gdb_host_cpu to sh for all sh*.
8029 (sh*-*-netbsdelf*): New host.
8030 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8031 (sh*-*-netbsdelf*): New target.
8032 * sh-nbsd-nat.c: New file.
8033 * sh-nbsd-tdep.c: New file.
8034 * sh-nbsd-tdep.h: New file.
8035 * config/sh/nbsd.mh: New file.
8036 * config/sh/nbsd.mt: New file.
8037 * config/sh/nm-nbsd.h: New file.
8038 * config/sh/tm-nbsd.h: New file.
8040 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8042 * sh-tdep.c (sh_osabi_names): Declare.
8043 (process_note_abi_tag_sections): New function.
8044 (get_elfosabi): Ditto.
8045 (sh_gdbarch_register_os_abi): Ditto.
8046 (sh_dump_tdep): Ditto.
8047 _initialize_sh_tdep): Use gdbarch_register to register
8048 sh_gdbarch_init and sh_dump_tdep.
8049 * config/sh/tm-sh.h (sh_osabi): Declare.
8050 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8052 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8054 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8055 (thumb_scan_prologue): Ditto.
8056 (arm_find_callers_reg): Ditto.
8057 (arm_frame_chain): Ditto.
8058 (arm_init_extra_frame_info): Ditto.
8059 (arm_frame_saved_pc): Ditto.
8060 (arm_pop_frame): Ditto.
8061 (arm_push_return_address): New function.
8062 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8063 call_dummy_location, call_dummy_breakpoint_offset_p,
8064 call_dummy_breakpoint_offset, call_dummy_p,
8065 call_dummy_stack_adjust_p, call_dummy_words,
8066 sizeof_call_dummy_words, call_dummy_start_offset,
8067 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8068 call_dummy_address, push_return_address and push_dummy_frame for
8069 generic dummy frames.
8071 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8073 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8074 size computation for alloca.
8075 (sh_fp_frame_init_saved_regs): Likewise.
8077 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8079 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8080 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8081 * arm-tdep.c (arm_store_return_value): Use them.
8082 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8083 * remote-rdp.c (remote_rdp_fetch_register): Use
8084 ARM_MAX_REGISTER_RAW_SIZE.
8085 (remote_rdp_store_register): Likewise.
8087 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8089 * dwarf2cfi.c: Code cleanup, removed unused variables,
8090 added default labels to switch {} statements.
8091 * x86-64-tdep.c: Ditto.
8092 * x86-64-linux-nat.c: Ditto.
8094 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8096 * solib.h: Protect against multiple inclusion.
8098 2002-05-06 Jim Blandy <jimb@redhat.com>
8100 Add first preprocessor macro-expansion files.
8101 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8102 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8103 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8104 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8105 (COMMON_OBS): Add macrotab.o, macroexp.o.
8106 (macroexp.o, macrotab.o): New rules.
8108 Separate the job of reading the line number info statement program
8109 header (...expialidocious) out into its own function.
8110 * dwarf2read.c (struct line_head, struct filenames, struct
8111 directories): Replace with...
8112 (struct line_header): New structure, containing the full
8113 contents of the statement program header, including the
8114 include directory and file name tables.
8115 (read_file_scope): If we have line number info, instead of just
8116 calling dwarf_decode_lines to do all the work, call
8117 dwarf_decode_line_header first to get a `struct line_header'
8118 containing the data in the statement program header, and then
8119 pass that to dwarf_decode_lines, which will pick up where that
8120 left off. Be sure to clean up the `struct line_header' object.
8121 (dwarf_decode_line_header, free_line_header, add_include_dir,
8122 add_file_name): New functions.
8123 (dwarf_decode_lines): Move all the code to read the statement
8124 program header into dwarf_decode_line_header. Take the line
8125 header it built as the first argument, instead of the offset to
8126 the compilation unit's line number info. Use the new `struct
8127 line_header' type instead of the old structures. No need to do
8128 cleanups here now, since we don't allocate anything.
8129 (dwarf2_statement_list_fits_in_line_number_section,
8130 dwarf2_line_header_too_long): New complaints.
8132 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8134 * gdbtypes.c (init_vector_type): New function.
8135 (build_builtin_type_vec128): Simplify the representation of SIMD
8137 (build_gdbtypes): Initialize new builtin vector types.
8138 (_initialize_gdbtypes): Register new vector types with gdbarch.
8139 (builtin_type_v4_float, builtin_type_v4_int32,
8140 builtin_type_v8_int16, builtin_type_v16_int8,
8141 builtin_type_v2_int32, builtin_type_v4_int16,
8142 builtin_type_v8_int8): New (renamed) SIMD types.
8144 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8146 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8147 (i387_fill_fxsave): Likewise.
8149 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8151 * alpha-tdep.c (alpha_extract_return_value): Don't use
8152 non-constant array size in prototype.
8154 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8156 From Brian Taylor <briant at model dot com>:
8157 * ui-out.c (ui_out_field_core_addr): Use the function
8158 longest_local_hex_string_custom'to format addresses > 32 bits
8161 * ui-out.c (ui_out_field_core_addr): Update comment.
8163 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8165 * stack.c (select_and_print_frame): Make static. Delete the
8167 (func_command): Update call.
8168 (select_frame_command): Delete code computing the frame level.
8169 * frame.h (select_and_print_frame): Delete declaration.
8171 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8173 * sparc-tdep.c (sparc_get_saved_register): Comment why
8174 get_prev_frame call is safe.
8176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8178 * frame.h (select_frame): Delete level parameter.
8179 * stack.c (select_frame): Update. Use frame_relative_level to
8180 obtain the frame's level.
8181 (select_and_print_frame): Update call.
8182 (select_frame_command): Ditto.
8183 (up_silently_base): Ditto.
8184 (down_silently_base): Ditto.
8185 * ocd.c (ocd_start_remote): Ditto.
8186 * remote-rdp.c (remote_rdp_open): Ditto.
8187 * remote-mips.c (mips_initialize): Ditto.
8188 (common_open): Ditto.
8189 * remote-e7000.c (e7000_start_remote): Ditto.
8190 * m3-nat.c (select_thread): Ditto.
8191 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8192 (child_get_current_exception_event): Ditto.
8193 * varobj.c (varobj_create): Ditto.
8194 (varobj_update): Ditto.
8195 (c_value_of_root): Ditto.
8196 * tracepoint.c (finish_tfind_command): Ditto.
8197 * corelow.c (core_open): Ditto.
8198 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8199 * thread.c (info_threads_command): Ditto.
8200 (switch_to_thread): Ditto.
8201 * infrun.c (normal_stop): Ditto.
8202 (restore_selected_frame): Ditto.
8203 (restore_inferior_status): Ditto.
8204 * breakpoint.c (insert_breakpoints): Ditto.
8205 (watchpoint_check): Ditto.
8206 (bpstat_stop_status): Ditto.
8207 (do_enable_breakpoint): Ditto.
8208 * blockframe.c (flush_cached_frames): Ditto.
8209 (reinit_frame_cache): Ditto.
8211 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8213 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8216 2002-05-04 Jim Blandy <jimb@redhat.com>
8218 * gdbtypes.c (replace_type): Doc fix.
8220 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8222 * valprint.c (strcat_longest): Delete commented out function.
8225 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8227 * MAINTAINERS: Mark a29k as deleted.
8228 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8229 Move new configurations to the top.
8230 * configure.tgt: Remove a29k.
8231 * config/a29k/tm-vx29k.h: Delete.
8232 * config/a29k/vx29k.mt: Delete.
8233 * config/a29k/tm-a29k.h: Delete.
8234 * config/a29k/a29k-udi.mt: Delete.
8235 * config/a29k/a29k.mt: Delete.
8236 * a29k-tdep.c: Delete.
8237 * remote-udi.c: Delete.
8238 * remote-mm.c: Delete.
8239 * remote-eb.c: Delete.
8240 * remote-adapt.c: Delete.
8241 * Makefile.in: Remove obsolete code.
8242 * config/s390/s390x.mt: Ditto.
8243 * config/s390/s390.mt: Ditto.
8244 * config/sparc/sparclynx.mh: Ditto.
8245 * config/sparc/linux.mh: Ditto.
8246 * config/pa/hppaosf.mh: Ditto.
8247 * config/pa/hppabsd.mh: Ditto.
8248 * config/ns32k/nbsd.mt: Ditto.
8249 * config/mips/vr5000.mt: Ditto.
8250 * config/m68k/sun3os4.mh: Ditto.
8251 * config/m68k/nbsd.mt: Ditto.
8252 * config/m68k/m68klynx.mh: Ditto.
8253 * config/m32r/m32r.mt: Ditto.
8254 * config/i386/x86-64linux.mt: Ditto.
8255 * config/i386/nbsdelf.mt: Ditto.
8256 * config/i386/nbsd.mt: Ditto.
8257 * config/i386/i386lynx.mh: Ditto.
8259 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8261 * target.c (debug_print_register): New function. Handle oversize
8263 (debug_to_fetch_registers): Call.
8264 (debug_to_store_registers): Call.
8266 2002-05-03 Jim Blandy <jimb@redhat.com>
8268 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8269 (read_type): Doc fix.
8270 * gdbtypes.c (replace_type): Doc fix.
8272 * stabsread.c (multiply_defined_struct): New complaint.
8273 (read_struct_type): If the type we were passed isn't empty, or
8274 incomplete, don't read the new struct type into it; complain,
8275 and return the original type unchanged. Take a new `type_code'
8276 argument, which is the type code for the new type.
8277 (read_type): Rather than storing the type's type code here, pass
8278 it as an argument to read_struct_type, and let that take care of
8279 storing it. That way, we don't overwrite the original type code,
8280 so read_struct_type can use it to decide whether we're overwriting
8281 something we shouldn't.
8282 (complain_about_struct_wipeout): New function.
8284 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8286 * gdbarch.sh: Assert that gdbarch is non-NULL.
8287 * gdbarch.c: Regenerate.
8289 2002-05-03 Jason Merrill <jason@redhat.com>
8291 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8294 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8296 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8297 (x86_64_dwarf2gdb_regno_map_length),
8298 (x86_64_dwarf2_reg_to_regnum): Added.
8299 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8300 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8301 (_initialize_x86_64_tdep): Synced with the change above.
8302 (x86_64_skip_prologue): Reformulated message.
8304 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8306 * f-exp.y: Also use new prev_lexptr variable
8307 to improve error reporting. Based on Michael Snyder
8308 2002-04-24 dated patch to c-exp.y.
8309 * jv-exp.y: Likewise.
8310 * m2-exp.y: Likewise.
8312 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8314 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8315 we are dealing with vectors.
8317 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8319 * config/m68k/tm-nbsd.h: Obvious fix,
8320 correct machine name.
8322 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8324 * p-typeprint.c (pascal_type_print_base): Add support
8325 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8327 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8329 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8330 for fondamental pascal 'char' type.
8332 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8334 * p-lang.h (is_pascal_string_type): Declaration changed,
8335 new sixth argument of type char ** added.
8336 * p-lang.c (is_pascal_string_type): Implementation
8337 changed. Args length_pos, length_size, string_pos, char_size
8338 can now be NULL. New argument arrayname set to the field
8339 name of the char array. Return value set to char array
8340 field index plus one.
8341 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8342 is_pascal_string_type function.
8344 2002-05-02 Andrew Cagney <cagney@redhat.com>
8346 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8347 <cagney@redhat.com> change.
8348 * gdbarch.c: Regenerate.
8350 2002-05-02 Andrew Cagney <cagney@redhat.com>
8352 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8353 before probing for a new one. Detect errorenous gdbarch_init
8355 * gdbarch.c: Regenerate.
8357 2002-05-01 Andrew Cagney <cagney@redhat.com>
8359 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8360 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8361 * config/v850/tm-v850.h: Ditto. Update copyright.
8363 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8365 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8368 2002-04-30 Michael Snyder <msnyder@redhat.com>
8370 * arm-tdep.c: Whitespace clean-ups.
8371 (arm_skip_prologue): Fix thinko; two lines
8372 should have been removed as part of 4/24 change.
8374 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8376 * rs6000-tdep.c: Added comment describing how fpscr register
8377 numbers were chosen.
8379 2002-04-30 Michael Snyder <msnyder@redhat.com>
8381 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8383 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8385 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8386 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8387 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8389 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8391 From Louis Hamilton <hamilton@redhat.com>:
8392 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8393 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8394 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8395 not bfd-private xcoff data, to determine wordsize.
8396 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8398 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8400 GDB 5.2 released from 5.2 branch.
8402 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8404 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8405 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8406 (x86_64_register_info_table): Added comments with register numbers.
8408 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8410 * rs6000-tdep.c (rs6000_extract_return_value,
8411 rs6000_store_return_value): Handle returning vectors.
8412 (rs6000_gdbarch_init): Use
8413 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8414 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8416 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8418 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8419 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8421 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8423 * hpread.c (hpread_psymtab_to_symtab_1,
8424 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8425 with fprintf_unfiltered (gdb_stderr,...).
8427 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8429 * remote-array.c (printf_monitor, write_monitor,
8430 array_insert_breakpoint, array_remove_breakpoint ):
8431 Replace fprintf (stderr,...
8432 with fprintf_unfiltered (gdb_stderr,....
8433 * remote-es.c: Likewise.
8434 * remote-os9k.c: Likewise.
8435 * remote-st.c: Likewise.
8437 2002-04-28 Andreas Schwab <schwab@suse.de>
8439 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8440 linux-proc.o and gcore.o.
8442 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8444 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8445 code without frame pointers.
8447 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8449 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8452 2002-04-26 Ben Elliston <bje@redhat.com>
8454 * target.c (do_xfer_memory): Correct reference to the new option
8455 "trust-readonly-sections".
8457 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8459 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8460 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8461 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8463 (read_array_type): Record the fact that this array type is really a
8464 vector (i.e. are passed in by value).
8466 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8468 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8469 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8470 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8471 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8472 * alpha-linux-tdep.c: Include frame.h.
8473 (alpha_linux_sigcontext_addr): New function.
8474 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8475 alpha_linux_sigcontext_addr.
8476 * alpha-osf1-tdep.c: Include gdbcore.h.
8477 (alpha_osf1_sigcontext_addr): New function.
8478 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8479 alpha_osf1_sigcontext_addr.
8480 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8481 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8483 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8485 * stack.c (selected_frame_level):
8486 (select_frame): Do not set selected_frame_level.
8487 * frame.h (selected_frame_level): Delete declaration.
8489 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8491 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8492 convert_from_func_ptr-addr when AIX / PowerOpen.
8494 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8496 * valops.c (hand_function_call): Call
8497 generic_save_call_dummy_addr.
8498 * frame.h (generic_save_call_dummy_addr): Declare.
8499 * blockframe.c (struct dummy_frame): Add fields call_lo and
8501 (generic_find_dummy_frame): Check for PC in range call_lo to
8502 call_hi instead of entry_point_address.
8503 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8504 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8505 (generic_save_call_dummy_addr): New function.
8507 2002-04-24 David S. Miller <davem@redhat.com>
8509 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8510 sparc_skip_prologue.
8511 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8512 information to find prologue when possible.
8513 (sparc_prologue_frameless_p): Call examine_prologue directly.
8514 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8515 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8517 (SKIP_PROLOGUE): Likewise.
8519 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8521 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8522 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8523 indicate that the condition it was testing is always true.
8524 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8525 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8526 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8528 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8530 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8531 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8532 tdep->jb_pc and tdep->jb_elt_size.
8533 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8534 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8535 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8536 * alpha-nat.c (get_longjmp_target): Remove.
8537 (JB_ELEMENT_SIZE): Ditto.
8539 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8540 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8541 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8542 to alpha_get_longjmp_target.
8543 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8544 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8545 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8549 * README: Update to GDB 5.2.
8551 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8553 * gdbarch.sh (LC_ALL): Set to `c'.
8555 2002-04-25 Theodore A. Roth <troth@verinet.com>
8557 * avr-tdep.c: Ran through gdb_indent.sh.
8559 2002-04-25 Theodore A. Roth <troth@verinet.com>
8561 * MAINTAINERS: Add myself as AVR maintainer.
8562 * NEWS: Note new target avr.
8564 2002-04-25 Theodore A. Roth <troth@verinet.com>
8566 * Makefile.in: Add support for AVR target.
8567 * configure.tgt: Add support for AVR target.
8568 * avr-tdep.c: New file
8569 * config/avr/avr.mt: New file.
8571 2002-04-25 Theodore A. Roth <troth@verinet.com>
8573 * MAINTAINERS: Add myself to write-after-approval.
8575 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8577 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8578 with fprintf_unfiltered (gdb_stderr,....
8580 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8583 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8585 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8587 * p-exp.y: Also use new prev_lexptr variable
8588 to improve error reporting. Based on Michael Snyder
8589 2002-04-24 dated patch to c-exp.y.
8591 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8593 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8594 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8595 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8597 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8599 (FUNCTION_START_OFFSET): Remove.
8600 (BREAKPOINT): Ditto.
8602 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8604 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8607 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8609 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8610 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8611 alpha_linux_pc_in_sigtramp.
8612 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8613 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8614 alpha_osf1_pc_in_sigtramp.
8615 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8616 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8617 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8618 alphafbsd_pc_in_sigtramp.
8619 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8620 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8621 alphanbsd_pc_in_sigtramp.
8622 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8623 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8625 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8627 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8629 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8631 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8633 (alphanbsd-nat.o): New dependency list.
8634 (alphanbsd-tdep.o): Ditto.
8635 * NEWS: Note new native NetBSD/alpha configuration.
8636 * alphanbsd-nat.c: New file.
8637 * alphanbsd-tdep.c: Ditto.
8638 * configure.host (alpha*-*-netbsd*): New host.
8639 * configure.tgt (alpha*-*-netbsd*): New target.
8640 * config/alpha/nbsd.mh: New file.
8641 * config/alpha/nbsd.mt: Ditto.
8642 * config/alpha/nm-nbsd.h: Ditto.
8643 * config/alpha/tm-nbsd.h: Ditto.
8645 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8647 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8648 (alpha-osf1-tdep.o): New dependency list.
8649 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8650 and skip_sigtramp_frame members.
8651 * alpha-linux-tdep.c: Include gdbcore.h.
8652 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8653 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8654 * alpha-osf1-tdep.c: New file.
8655 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8657 (alpha_frame_past_sigtramp_frame): New function.
8658 (alpha_dynamic_sigtramp_offset): Ditto.
8659 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8660 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8661 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8662 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8663 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8664 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8665 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8666 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8667 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8668 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8669 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8670 to find_solib_trampoline_target.
8671 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8672 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8673 (SKIP_TRAMPOLINE_CODE): Remove.
8674 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8675 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8676 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8677 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8678 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8679 (PROC_SIGTRAMP_MAGIC): Ditto.
8680 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8681 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8682 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8683 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8684 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8686 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8688 * NEWS: Note that Alpha targets are now multi-arch.
8690 2002-04-24 Michael Snyder <msnyder@redhat.com>
8692 * parser-defs.h (prev_lexptr): New external variable.
8693 * parse.c (parse_exp_1): Set prev_lexptr to null before
8694 calling the language-specific parser.
8695 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8696 (yyerror): Use prev_lexptr in error reporting.
8698 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8700 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8701 * gregset.h: If FILL_FPXREGSET is defined, provide
8702 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8703 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8704 is defined, call fill_fpxregset.
8706 2002-04-24 Roland McGrath <roland@frob.com>
8708 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8709 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8710 (supply_gregset, supply_fpregset): New functions.
8712 * gnu-nat.c (gnu_find_memory_regions): New function.
8713 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8714 (gnu_xfer_memory): Add a cast.
8716 2002-04-24 Michael Snyder <msnyder@redhat.com>
8718 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8719 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8720 of argument regs ("str r(0123), [r11, #-nn"]).
8721 (arm_skip_prologue): Better handling for frameless functions.
8722 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8723 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8725 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8727 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8728 NUM_PSEUDO_REGS can be used.
8730 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8732 * arch-utils.h: Update copyright.
8734 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8735 * gdbarch.h, gdbarch.c: Re-generate.
8737 * inferior.h (IN_SIGTRAMP): Delete definition.
8738 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8739 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8741 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8742 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8743 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8744 (find_proc_framesize): Ditto.
8745 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8746 (alpha_init_extra_frame_info): Ditto.
8747 * infrun.c (handle_inferior_event): Ditto.
8748 (handle_inferior_event): Ditto.
8749 (check_sigtramp2): Ditto.
8750 * blockframe.c (create_new_frame): Ditto.
8751 (get_prev_frame): Ditto.
8752 * ppc-linux-tdep.c: Update comments.
8753 * i386-linux-tdep.c: Update comments.
8754 * breakpoint.c (bpstat_what): Update comment.
8756 2002-04-24 David S. Miller <davem@redhat.com>
8758 * i960-tdep.c (register_in_window_p): New function.
8759 (i960_find_saved_register): Use it instead of
8760 REGISTER_IN_WINDOW_P.
8761 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8763 * symtab.h (find_stab_function_addr): Kill extern.
8764 * minsyms.c (find_stab_function_addr): Remove from here...
8765 * dbxread.c: ... to here, and mark it static.
8767 2002-04-20 David S. Miller <davem@redhat.com>
8769 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8770 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8772 2002-04-21 David S. Miller <davem@redhat.com>
8774 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8775 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8776 (vx_write_register): Likewise.
8778 2002-04-23 J. Brobecker <brobecker@gnat.com>
8780 * source.c (is_regular_file): New function.
8781 (openp): Check wether file to open is a regular file
8782 to avoid opening directories.
8784 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8786 * findvar.c (extract_signed_integer): Cast printf argument
8787 to suppress format warning.
8788 (extract_unsigned_integer): Likewise.
8789 * infcmd.c (registers_info): Likewise.
8790 * top.c (get_prompt_1): Likewise.
8791 * valops.c (value_assign): Likewise.
8792 * valprint.c (print_decimal): Likewise.
8794 2002-04-22 H.J. Lu (hjl@gnu.org)
8796 * c-exp.y (typebase): Support
8798 [long|long long|short] [signed|unsigned] [int|]
8802 signed [long|long long|short] int
8804 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8806 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8808 * vax-tdep.h: New file.
8809 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8810 Make several routines static.
8811 (vax_get_saved_register): New function.
8812 (vax_gdbarch_init): New function.
8813 (_initialize_vax_tdep): Register vax_gdbarch_init.
8814 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8815 Remove macros now under the control of gdbarch.
8817 2002-04-22 Michael Snyder <msnyder@redhat.com>
8819 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8820 Some whitespace and coding standards tweaks.
8822 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8824 * vax-tdep.c: Include regcache.h.
8825 (vax_call_dummy_words): New.
8826 (sizeof_vax_call_dummy_words): New.
8827 (vax_fix_call_dummy): New function.
8828 (vax_saved_pc_after_call): Ditto.
8829 * config/vax/tm-vax.h: Don't include regcache.h.
8830 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8831 (CALL_DUMMY): Remove.
8832 (CALL_DUMMY_WORDS): Define.
8833 (SIZEOF_CALL_DUMMY_WORDS): Define.
8834 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8836 2002-04-18 Michael Snyder <msnyder@redhat.com>
8838 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8840 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8842 * vax-tdep.c (vax_frame_chain): New function.
8843 (vax_push_dummy_frame): Ditto.
8844 (vax_pop_frame): Ditto.
8845 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8846 (FRAMELESS_FUNCTION_INVOCATION): Use
8847 generic_frameless_function_invocation_not.
8848 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8849 (POP_FRAME): Use vax_pop_frame.
8851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8853 * vax-tdep.c (vax_store_struct_return): New function.
8854 (vax_extract_return_value): Ditto.
8855 (vax_store_return_value): Ditto.
8856 (vax_extract_struct_value_address): Ditto.
8857 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8858 vax_store_struct_return.
8859 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8860 (STORE_RETURN_VALUE): Use vax_store_return_value.
8861 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8863 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8865 * vax-tdep.c (vax_frame_saved_pc): New function.
8866 (vax_frame_args_address_correct): Ditto.
8867 (vax_frame_args_address): Ditto.
8868 (vax_frame_locals_address): Ditto.
8869 (vax_frame_num_args): Move code to be in proximity to
8870 other frame-related functions.
8871 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8872 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8873 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8874 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8875 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8877 2002-04-22 H.J. Lu (hjl@gnu.org)
8879 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8882 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8884 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8885 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8886 (FRAME_INIT_SAVED_REGS): New macro.
8888 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8890 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8892 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8894 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8896 (fetch_osf_core_registers): Likewise.
8897 (supply_gregset): Likewise.
8899 2002-04-22 J. Brobecker <brobecker@gnat.com>
8901 * symfile.h (get_section_index): Define.
8902 * symfile.c (get_section_index): New function.
8903 * mdebugread.c (SC_IS_SBSS): New macro.
8904 (SC_IS_BSS): Return true for the scBss storage class only, as
8905 the scSBss storage class refers to the .sbss section.
8906 (parse_partial_symbols): Discard the symbols which associated
8907 section does not exist.
8908 Make sure to use the .sbss section index for symbols which
8909 storage class is scBss, rather than using the .bss section index.
8911 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8913 * vax-tdep.c: Update copyright years.
8914 (vax_register_name): New function.
8915 (vax_register_byte): Ditto.
8916 (vax_register_raw_size): Ditto.
8917 (vax_register_virtual_size): Ditto.
8918 (vax_register_virtual_type): Ditto.
8919 * config/vax/tm-vax.h: Update copyright years.
8920 (REGISTER_NAMES): Remove.
8921 (REGISTER_NAME): Define.
8922 (REGISTER_BYTE): Use vax_register_byte.
8923 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8924 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8925 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8927 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8929 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8931 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8933 2002-04-21 David S. Miller <davem@redhat.com>
8935 * arch-utils.c (generic_prologue_frameless_p): Kill
8936 SKIP_PROLOGUE_FRAMELESS_P code.
8937 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8939 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8940 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8941 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8943 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8944 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8945 (sparc_gdbarch_init): Pass it to
8946 set_gdbarch_prologue_frameless_p.
8948 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8950 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8951 (alphabsd-nat.o): New dependency list.
8953 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8955 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8957 (alpha-linux-tdep.o): New dependency list.
8958 (alphafbsd-tdep.o): Likewise.
8960 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8962 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8964 * alpha-tdep.c: ...from here.
8965 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8967 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8969 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8970 prototype from here...
8971 * alpha-tdep.h: ...to here.
8973 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8975 * frame.h (selected_frame_level): Document as deprecated.
8976 (frame_relative_level): Declare.
8977 * stack.c (frame_relative_level): New function.
8978 (selected_frame_level): Document as deprecated.
8979 (select_frame): Do not set the selected_frame_level.
8981 * stack.c (frame_info, record_selected_frame): Update.
8982 (frame_command, current_frame_command): Update.
8983 (up_silently_base, up_command, down_silently_base): Update.
8984 (down_command): Update.
8985 * inflow.c (kill_command): Update.
8986 * tracepoint.c (finish_tfind_command): Update.
8987 * corelow.c (core_open): Update.
8988 * thread.c (info_threads_command): Update.
8989 (do_captured_thread_select): Update.
8990 * infcmd.c (finish_command): Update.
8991 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8993 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8995 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8997 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8999 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9002 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9004 * alphafbsd-tdep.c: Update copyright years. Include
9006 (alphafbsd_use_struct_convention): Make static.
9007 (alphafbsd_init_abi): New function.
9008 (_initialize_alphafbsd_tdep): New function.
9009 * config/alpha/tm-fbsd.h: Update copyright years.
9010 (USE_STRUCT_CONVENTION): Remove.
9012 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9014 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9015 an Alpha ABI variant.
9016 (alpha_abi_handler_list): Declare.
9017 (alpha_gdbarch_register_os_abi): New function.
9018 (alpha_gdbarch_init): Give registered ABI variant handlers a
9019 chance to tweak the gdbarch once we have set up defaults.
9020 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9022 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9024 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9025 to standard_coerce_float_to_double.
9026 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9028 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9030 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9031 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9032 from gdbarch_tdep rather than a constant.
9033 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9034 the default text address for all Alpha Unix ABIs.
9035 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9036 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9040 * alpha-tdep.h: New file. Includes several Alpha target constants
9042 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9043 let gdbarch deal with.
9044 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9045 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9047 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9048 Alpha target register names.
9049 * alphabsd-nat.c: Likewise.
9050 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9051 Alpha target register names. Make serveral routines static.
9052 (alpha_get_saved_register): New function.
9053 (alpha_abi_names): New.
9054 (process_note_abi_tag_sections): New function.
9055 (get_elfosabi): New function.
9056 (alpha_gdbarch_init): New function.
9057 (alpha_dump_tdep): New function.
9058 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9060 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9062 * frame.c (find_saved_register): Delete #ifdef
9063 HAVE_REGISTER_WINDOWS code.
9064 * config/sparc/tm-sparc.h: Update comments.
9065 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9067 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9069 * i960-tdep.c (i960_find_saved_register): New function.
9070 (i960_get_saved_register): New function.
9071 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9072 (i960_get_saved_register): Declare.
9073 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9075 2002-04-20 David S. Miller <davem@redhat.com>
9077 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9079 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9081 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9082 instead of NUM_PSEUDO_REGS.
9084 2002-04-20 David S. Miller <davem@redhat.com>
9086 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9087 GDB_MULTI_ARCH_PARTIAL
9088 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9089 define, let tm-sp64.h do it.
9091 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9093 * frame.c (find_saved_register): Avoid a NULL pointer
9094 dereference and actually walk the frame list.
9096 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9098 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9099 sorted in most most-recent-used order. Document.
9100 * gdbarch.h, gdbarch.c: Regenerate.
9102 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9104 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9106 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9107 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9108 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9111 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9114 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9115 (build_builtin_type_vec128): Ditto.
9116 (append_composite_type_field): Fix calculation of type length in
9119 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9121 * config/djgpp/README: Update.
9123 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9126 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9128 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9129 (alpha_setup_arbitrary_frame): ...to this.
9130 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9131 for alpha_setup_arbitrary_frame.
9133 2002-04-18 Andrew Cagney <cagney@redhat.com>
9135 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9136 * gdbarch.h, gdbarch.c: Regenerate.
9138 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9139 * target.h (memory_breakpoint_from_pc): Update declaration.
9140 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9142 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9143 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9144 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9145 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9146 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9147 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9148 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9149 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9150 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9151 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9152 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9153 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9155 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9157 * monitor.c (monitor_insert_breakpoint): Ditto.
9158 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9160 * config/mcore/tm-mcore.h: Update copyright.
9161 * mem-break.c: Ditto.
9162 * xstormy16-tdep.c: Ditto.
9164 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9166 * p-exp.y: Add precedence rule for '^' token.
9167 This removes the shift/reduce conflicts.
9168 Remove the comment concerning these shift/reduce conflicts.
9170 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9172 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9173 (registers_powerpc_nofp): New register set for processors
9174 without floating point unit.
9176 2002-04-18 David S. Miller <davem@redhat.com>
9178 * MAINTAINERS: Add myself to write-after-approval.
9180 2002-04-17 Michael Snyder <msnyder@redhat.com>
9182 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9184 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9186 * rs6000-tdep.c (frame_initial_stack_address): Use
9187 frame_register_read to read the alloca_reg.
9189 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9191 * frame.c (find_saved_register): Find saved registers in the next
9195 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9197 * gdbarch.sh (LANG): Set to ``c''.
9199 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9201 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9203 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9205 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9208 * hpread.c (hpread_get_lntt): Add declaration.
9209 Also fix PR gdb/391.
9211 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9213 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9214 * aclocal.m4, configure: Re-generate.
9217 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9219 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9220 instead of tm_print_insn.
9222 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9224 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9226 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9228 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9229 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9230 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9232 2002-04-12 Don Howard <dhoward@redhat.com>
9234 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9235 max_user_call_depth.
9236 (init_cmd_lists): Initialize the new value;
9237 * cli/cli-script.c (execute_user_command): Limit the call depth of
9238 user defined commands. This avoids a core-dump when user commands
9239 are infinitly recursive.
9241 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9243 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9244 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9245 from tdep struct instead of DEFAULT_LR_SAVE.
9246 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9247 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9248 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9250 2002-04-12 Michael Snyder <msnyder@redhat.com>
9252 * Remote.c: Spelling fix.
9253 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9254 If no symbol found for "sbrk", try "_sbrk".
9255 (make_output_phdrs): Use bfd_section_name.
9256 (gcore_copy_callback): Use bfd_section_name.
9257 * eval.c: Indentation fix-ups.
9258 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9259 in case it gets applied to an address that is already
9260 in the instruction space.
9261 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9262 * symfile.c: Fix indentation, long lines.
9263 * source.c: White space fix-up.
9265 2002-04-12 Andrew Cagney <cagney@redhat.com>
9267 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9268 * frame.c (frame_register_read): New function. Return non-zero on
9270 (read_relative_register_raw_bytes_for_frame): Delete.
9271 (read_relative_register_raw_bytes): Delete.
9272 * frame.h (frame_register_read): Declare.
9273 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9275 * infcmd.c (do_registers_info): Ditto.
9276 * hppa-tdep.c: Ditto.
9277 * rs6000-tdep.c: Ditto.
9278 * h8500-tdep.c: Ditto.
9279 * mips-tdep.c: Ditto.
9280 * h8300-tdep.c: Ditto.
9281 * z8k-tdep.c: Ditto.
9283 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9285 From Jimi X <jimix@watson.ibm.com>:
9286 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9289 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9291 From Jimi X <jimix@watson.ibm.com>:
9292 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9295 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9297 From Jimi X <jimix@watson.ibm.com>:
9298 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9299 register sets for these processor variants.
9301 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9303 * regformats/reg-ppc.dat: Support FPSCR.
9305 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9307 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9308 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9309 Add fpscr as an invalid/unfetchable register.
9310 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9311 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9312 (fill_fpregset): Add support for register fpscr.
9313 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9314 (fill_gregset): Account for the fact that register ``mq'' might
9316 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9317 (registers_power): Add fpscr to register set at slot 71.
9318 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9319 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9321 2002-04-11 Michael Snyder <msnyder@redhat.com>
9323 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9324 * configure: Regenerate.
9325 * config.in: Regenerate.
9326 * acconfig.h: Add define for _SYSCALL32.
9327 * core-sol2.c: Remove #define _SYSCALL32.
9328 * solib-legacy.c: Remove #define _SYSCALL32.
9330 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9332 * stack.c (select_frame): Cleanup internal error message, do not
9335 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9337 * stack.c (select_frame): Check that selected_frame and the
9338 specified level are as expected.
9339 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9341 * frame.h (struct frame_info): Add field `level'. Update
9343 Work-in-progress PR gdb/464.
9345 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9347 * maint.c (maint_print_section_info): Rename print_section_info.
9348 (print_bfd_section_info, print_objfile_section_info): Update.
9349 * inferior.h (struct gdbarch): Add opaque declaration.
9350 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9351 * gdbarch.h: Regenerate.
9353 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9355 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9356 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9357 (kernel_u_size): Added.
9358 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9359 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9361 2002-04-04 Jim Ingham <jingham@apple.com>
9363 * valarith.c (find_size_for_pointer_math): New function, either returns
9364 the size for a pointer's target, returns 1 for void *, or errors for
9366 (value_add, value_sub): use find_size_for_pointer_math.
9368 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9370 * linux-low.c (linux_look_up_symbols): New hook.
9371 (linux_target_ops): Add linux_look_up_symbols.
9372 * remote-utils.c (decode_address): New function.
9373 (look_up_one_symbol): New function.
9374 * server.c (handle_query): Call target look_up_symbols hook.
9375 * server.h (look_up_one_symbol): Add prototype.
9376 * target.h (struct target_ops): Add look_up_symbols hook.
9378 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9380 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9381 override FP_REGNUM with frame->fp. Update copyright.
9382 * parse.c (num_std_regs, std_regs): Delete.
9383 (target_map_name_to_register): Do not search std_regs. Update
9384 function description.
9385 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9386 declarations. Update copyright.
9389 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9391 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9392 after the last symbol in a block.
9394 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9396 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9397 is non zero as a found symbol.
9399 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9401 * findvar.c: Include "builtin-regs.h".
9402 (value_of_register): Call value_of_builtin_reg when applicable.
9403 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9404 (target_map_name_to_register): Call
9405 builtin_reg_map_name_to_regnum.
9406 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9407 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9408 (builtin_regs_h): Define.
9409 (builtin-regs.o): New target.
9410 (findvar.o): Add $(builtin_regs_h).
9411 * builtin-regs.c, builtin-regs.h: New files.
9412 * std-regs.c: New file.
9413 Partial fix for PR gdb/251.
9415 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9417 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9418 it's no longer required.
9420 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9422 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9424 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9426 From Jimi X <jimix@watson.ibm.com>:
9427 * rs6000-tdep.c (rs6000_software_single_step): Use
9428 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9429 and size. Use target_insert_breakpoint() and
9430 target_remove_breakpoint() to insert and remove breakpoints
9431 instead of explicit memory reads and writes.
9433 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9435 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9436 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9437 ELF_OBJECT_FORMAT ifdef.
9439 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9441 From Jimi X <jimix@watson.ibm.com>:
9442 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9444 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9446 From Jimi X <jimix@watson.ibm.com>:
9447 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9448 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9450 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9452 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9453 s/asprintf/xasprintf/.
9454 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9456 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9458 I believe Jeff Law denies responsability for this one:
9459 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9460 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9461 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9462 Work-around for PR gdb/366.
9464 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9466 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9467 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9468 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9470 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9472 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9473 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9476 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9478 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9481 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9483 * README (Reporting Bugs in GDB): Document the bug web page as the
9484 prefered way of submitting bugs.
9487 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9489 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9491 * gdbarch.h, gdbarch.c: Re-generate.
9493 2002-04-07 Andreas Schwab <schwab@suse.de>
9495 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9496 buffer to regcache_collect.
9498 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9500 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9501 * gdbarch.c, gdbarch.h: Re-generate.
9503 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9505 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9506 declaration. Fix -Werror.
9508 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9510 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9511 * gdbarch.c: Regenerate.
9513 2002-04-05 Michael Snyder <msnyder@redhat.com>
9515 * breakpoint.c (clear_command): Rewrite middle section to
9516 combine two loops with identical control conditions.
9517 Add a cleanup to eliminate a memory leak.
9518 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9520 2002-04-05 H.J. Lu (hjl@gnu.org)
9522 * solib-svr4.c (bkpt_names): Add "__start".
9524 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9526 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9527 as test for 64 bit target.
9529 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9531 * h8500-tdep.c (h8500_write_fp): Delete function.
9532 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9533 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9534 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9536 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9537 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9539 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9540 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9541 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9542 (d10v_write_fp): Delete function.
9543 * inferior.h (write_fp, generic_target_write_fp): Delete
9545 * regcache.c (generic_target_write_fp): Delete function.
9546 (write_fp): Delete function.
9547 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9548 * gdbarch.h, gdbarch.c: Regenerate.
9549 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9550 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9551 (sparc64_write_fp): Delete declaration.
9552 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9553 (h8500_write_fp): Delete declaration.
9555 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9557 * sparc-tdep.c (sparc64_write_fp): Delete.
9558 (sparc_push_dummy_frame): Replace write_fp call with code to store
9560 (sparc_gdbarch_init): Do not initialize write_fp.
9562 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9564 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9567 2002-03-29 Jim Blandy <jimb@redhat.com>
9569 * stack.c (get_selected_block): Add new argument `addr_in_block',
9570 used to return the exact code address we used to select the block,
9572 * blockframe.c (get_frame_block, get_current_block): Same.
9573 * frame.h (get_frame_block, get_current_block,
9574 get_selected_block): Update declarations.
9575 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9576 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9578 2002-04-05 Michael Snyder <msnyder@redhat.com>
9580 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9583 2002-04-05 J. Brobecker <brobecker@gnat.com>
9585 * utils.c (xfullpath): New function.
9586 * defs.h (xfullpath): Add declaration.
9587 * source.c (openp): Use xfullpath in place of gdb_realpath to
9588 avoid resolving the basename part of filenames when the
9589 associated file is a symbolic link. This fixes a potential
9590 inconsistency between the filenames known to GDB and the
9591 filenames it prints in the annotations.
9592 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9593 to be able to match a filename with either the real filename, or
9594 the name of any symbolic link to this file.
9595 (lookup_partial_symtab): Ditto.
9597 2002-04-04 Michael Snyder <msnyder@redhat.com>
9599 * breakpoint.c: Add support for hardware breakpoints in overlays.
9600 (overlay_events_enabled): New state variable.
9601 (insert_breakpoints): Use overlay_events_enabled to decide
9602 whether to attempt to set a breakpoint at the overlay load addr.
9603 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9604 (remove_breakpoint): Use overlay_events_enabled to decide
9605 whether breakpoints need to be removed from overlay load addr.
9606 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9607 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9608 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9609 disable_overlay_breakpoints): Update overlay_events_enabled.
9611 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9613 * dwarf2read.c (struct function_range): New.
9614 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9615 (check_cu_functions): New.
9616 (read_file_scope): Initialize global function lists.
9617 Call dwarf_decode_line after processing children.
9618 (read_func_scope): Add to global function list.
9619 (dwarf_decode_lines): Call check_cu_functions everywhere
9620 record_line is called. Call record_line with a linenumber
9621 of 0 to mark sequence ends.
9623 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9625 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9626 change sync with glibc.
9628 2002-04-03 Jim Blandy <jimb@redhat.com>
9630 * configure.in: Call AC_C_INLINE.
9631 * configure: Regenerated.
9633 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9635 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9636 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9638 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9640 * NEWS: Mention gcore support on FreeBSD/i386.
9642 * fbsd-proc.c: New file.
9643 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9644 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9646 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9649 2002-03-29 Jim Blandy <jimb@redhat.com>
9651 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9652 unescaped newlines in string literals, but newer ones don't. So
9655 2002-03-26 Michael Snyder <msnyder@redhat.com>
9656 Andrew Cagney <cagney@redhat.com>
9658 * cli/cli-dump.c: New file. Dump memory to file,
9659 restore file to memory.
9660 * cli/cli-dump.h: New file.
9661 * Makefile.in: Add rules, dependencies for cli-dump.o.
9662 * NEWS: Mention new commands.
9664 2002-03-28 Michael Snyder <msnyder@redhat.com>
9666 * symfile.c (symbol_file_add): Move test for null symbols to later.
9668 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9670 From veksler at il.ibm.com:
9671 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9672 the xstrduped original path.
9675 2002-03-27 Michael Snyder <msnyder@redhat.com>
9677 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9678 * infcmd.c (_initialize_infcmd): Ditto.
9679 * language.c (_initialize_language): Ditto.
9680 * symfile.c (_initialize_symfile): Ditto.
9681 * top.c (_init_main): Ditto.
9682 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9684 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9686 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9687 vector registers handling.
9688 (skip_prologue): Handle new AltiVec instructions. Fill in new
9689 fields of frame data.
9690 (frame_get_saved_regs): Fill in information for AltiVec registers.
9692 2002-03-27 Jim Blandy <jimb@redhat.com>
9694 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9695 a function; leave this macro here to invoke that function.
9696 (symbol_init_mangled_name): Declaration for that function.
9697 * symtab.c (symbol_init_mangled_name): New function.
9699 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9701 * valarith.c: Replace strerror with safe_strerror.
9702 * tracepoint.c: Ditto.
9704 * go32-nat.c: Ditto.
9708 2002-03-27 Andreas Schwab <schwab@suse.de>
9710 * event-top.c (command_line_handler): Remove useless if.
9712 2002-03-27 Andreas Jaeger <aj@suse.de>
9714 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9717 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9719 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9720 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9721 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9722 (x86_64_linux_dr_get_status, supply_gregset),
9723 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9724 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9725 (x86_64_register_info_table): Add.
9726 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9727 (x86_64_register_raw_size, x86_64_register_virtual_type),
9728 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9729 general x86_64_register_info_table.
9730 (i386_gdbarch_init): gdbarch_register_bytes is now set
9731 dynamicaly during initialization.
9732 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9733 * gdbserver/linux-x86-64-low.c: Ditto.
9735 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9737 * gdbserver/server.c (main): Call target_signal_to_host_p
9738 and target_signal_to_host on signals received from the remote.
9739 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9740 target_signal_from_host on signals sent to the remote.
9741 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9742 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9744 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9746 * signals/signals.c: Include "server.h" in gdbserver build.
9747 (target_signal_from_name): Don't use STREQ.
9748 (_initialize_signals): Likewise. Don't include function in
9751 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9753 * signals.c: Moved to...
9754 * signals/signals.c: Here.
9755 * Makefile (signals.o): Update.
9757 2002-03-26 Jeff Law (law@redhat.com)
9759 * somread.c (som_symtab_read): Remove some commented out code and
9760 updated related comments. Do not set the minimal symbol table to
9761 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9762 in a dynamic executable.
9763 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9764 where we are unable to find the minimal symbol for the given
9767 2002-03-25 Jeff Law (law@redhat.com)
9769 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9771 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9773 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9775 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9777 * command.h: Update copyright.
9778 (struct cmd_list_element): Replace definition with opaque
9780 (enum cmd_types): Document that it will eventually be moved to
9782 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9783 (MALLOCED_REPLACEMENT): Delete macro.
9784 * Makefile.in (cli_decode_h): Add $(command_h).
9785 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9786 * top.c: Include "cli/cli-decode.h".
9787 * completer.c: Include "cli/cli-decode.h".
9788 * maint.c: Include "cli/cli-decode.h".
9789 * cli/cli-decode.h: Include "command.h".
9790 (enum command_class): Delete.
9791 (enum cmd_types): Comment out.
9792 (enum cmd_auto_boolean): Delete.
9793 (enum var_types): Delete.
9795 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9797 * cli/cli-decode.c: Include "gdb_assert.h".
9798 (add_set_or_show_cmd): New static function.
9799 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9800 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9801 all fields, such as func, from the set command.
9803 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9805 * MAINTAINERS (sh-elf): Change warning flag to -w.
9807 2002-03-23 Andrew Cagney <cagney@redhat.com>
9809 * defs.h (error): Add printf format attribute.
9810 * thread-db.c (thread_from_lwp): Fix error format string.
9811 * stack.c (parse_frame_specification): Ditto.
9812 * cli/cli-decode.c (undef_cmd_error): Ditto.
9813 * scm-lang.c (scm_lookup_name): Ditto.
9814 * tracepoint.c (trace_error): Ditto.
9815 * remote-utils.c (usage): Ditto.
9816 * remote.c (compare_sections_command): Ditto.
9819 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9821 * gdbtypes.c (append_composite_type_field): New function.
9822 (init_composite_type): New function.
9823 * gdbtypes.h (append_composite_type_field): Declare.
9824 (init_composite_type): Ditto.
9826 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9828 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9830 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9831 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9832 structure returning convention for SYSV ABI case, but not
9833 for GNU/Linux, FreeBSD, or NetBSD.
9835 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9837 * symtab.h (lookup_block_symbol): Add mangled_name argument
9840 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9841 with new mangled_name argument.
9842 * linespec.c (decode_line_1): Likewise.
9843 * valops (value_of_this): Likewise.
9844 * symtab.c (lookup_transparent_type): Likewise.
9845 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9846 (lookup_symbol): If we are given a mangled name, pass it down
9847 to lookup_symbol_aux.
9848 (lookup_block_symbol): If we are given a mangled name to check
9849 against, only return symbols which match it.
9851 2002-03-22 Christopher Faylor <cgf@redhat.com>
9853 * win32-nat.c (child_create_inferior): Check for proper shell to use
9854 here, in case the user changes it on the fly.
9855 (_initialize_inftarg): Remove shell path considerations.
9857 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9859 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9860 for gdbarch_max_register_raw_size and max_register_virtual_size.
9861 Adjust copyright year.
9863 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9865 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9866 in a function to cover the entire beginning of the function
9867 as well if it does not already.
9869 2002-03-21 Tom Rix <trix@redhat.com>
9871 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9872 (rs6000_ptrace64): Renamed from ptrace64.
9874 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9876 * gdbserver/remote-utils.c (remote_open): Don't call
9877 getprotobyname, we're all using TCP here so just use
9879 * gdbserver/gdbreplay.c (remote_open): Ditto.
9881 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9883 * regcache.c (_initialize_regcache): No need to call
9884 build_regcache() at this time; it gets called whenever
9885 the gdbarch changes.
9887 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9889 * sparc-nat.c: Include sys/param.h where possible.
9891 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9894 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9895 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9896 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9898 * stabsread.c (rs6000_builtin_type): Likewise.
9899 (read_sun_floating_type): Likewise.
9901 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9903 * stabsread.c (read_member_functions): Remove skip code for duplicate
9904 constructor/destructor methods. Use standard parsing for these
9905 methods and just do not chain them to the list of methods after
9908 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9910 * coffread.c: Remove redundant static declarations. Replace
9911 occurrences of `PTR' with `void *'.
9912 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9913 * top.h (quit_cover): Likewise.
9914 * defs.h (catch_errors): Likewise.
9916 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9918 * defs.h (XMALLOC): Define.
9919 * gdb-events.sh (XMALLOC): Delete macro.
9920 * gdb-events.c, gdb-events.h: Regenerate.
9921 * gdbarch.sh (XMALLOC): Delete macro.
9922 * gdbarch.c: Regenerate.
9923 * serial.c (XMALLOC): Delete macro.
9924 * ui-file.c (XMALLOC): Ditto.
9925 * ser-unix.h (XMALLOC): Ditto.
9926 * sh-tdep.c (XMALLOC): Ditto.
9927 * ui-out.c (XMALLOC): Ditto.
9928 * utils.c (XMALLOC): Ditto.
9929 * i386-tdep.c (XMALLOC): Ditto.
9930 * gdb-events.c (XMALLOC): Ditto.
9931 * d10v-tdep.c (XMALLOC): Ditto.
9932 * cli-out.c (XMALLOC): Ditto.
9934 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9935 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9936 * ui-file.c, ui-out.c: Ditto.
9938 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9940 * command.h (struct cmd_list_element): Add field context.
9941 (set_cmd_context, get_cmd_context): Declare.
9942 * cli/cli-decode.h: Ditto.
9943 * cli/cli-decode.c (get_cmd_context): New function.
9944 (set_cmd_context): New function.
9945 (add_cmd): Initialize context.
9946 Part of fixing PR gdb/145 and PR gdb/146.
9948 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9950 * cli/cli-decode.c (cmd_type): New function.
9951 * command.h (cmd_type): Declare.
9952 * infrun.c (set_schedlock_func): Call function cmd_type.
9953 * kod.c (kod_set_os): Call cmd_type.
9954 * cris-tdep.c (cris_version_update): Use function cmd_type.
9955 (cris_mode_update, cris_abi_update): Ditto.
9957 * command.h: (execute_cmd_post_hook): Declare.
9958 (execute_cmd_pre_hook): Declare.
9959 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9960 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9961 functions. Execute pre/post hook while ensuring that afterwords
9963 * top.c (execute_command): Use execute_cmd_post_hook, and
9964 execute_cmd_pre_hook to execute pre/post commands.
9965 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9967 (hook_stop_stub): Call execute_cmd_pre_hook.
9969 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9971 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9972 set'' and this leads to a core dump. Move xstrdup of
9973 operating_system to after check that it is not NULL.
9975 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9977 * kod.c (kod_set_os): Remove unnecessary check that
9978 ``command->type'' is set_cmd.
9980 * valprint.c (set_input_radix): Use input_radix.
9981 (set_output_radix): Use output_radix.
9982 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9985 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9987 * value.h (struct value): Delete field ``substring_addr''. Change
9988 aligner fields to force_doublest_align, force_longest_align,
9989 force_core_addr_align and force_pointer_aligh.
9991 * value.h (struct value): Fix typo in above change.
9993 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9995 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9996 to fix internal_error from ``maintenance print architecture''.
9998 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10000 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10001 for gcc versions after gcc-2.8.1.
10003 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10005 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10006 for method resolution. Restore adjustment of ``this'' pointer after
10007 calling value_struct_elt, which was accidentally removed during the
10010 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10012 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10014 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10015 get_saved_register.
10016 * value.h (value_of_register): Update.
10018 2002-03-14 Richard Henderson <rth@redhat.com>
10020 * configure.in: Detect declaration for canonicalize_file_name.
10021 * utils.c (canonicalize_file_name): Declare, if needed.
10022 (gdb_realpath): Prefer realpath if available and usable.
10023 * config.in, configure: Rebuild.
10025 2002-03-14 Richard Henderson <rth@redhat.com>
10027 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10028 a constant array bound.
10030 * MAINTAINERS: Add myself to write-after-approval.
10032 2002-03-14 Michael Snyder <msnyder@redhat.com>
10034 * symfile.c (syms_from_objfile): Return immediately if no syms.
10035 (symbol_file_add): Return immediately if no syms.
10036 (find_sym_fns): Return immediately if no syms.
10038 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10040 * gdbserver/remote-util.c (remote_open): Print remote-side's
10041 IP address when remote debugging over the network.
10043 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10045 * config/sparc/fbsd.mh: Fix copyright.
10046 * config/sparc/fbsd.mt: Likewise.
10048 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10050 * MAINTAINERS: Fix typo in name of gdb warnings option.
10051 (x86-64): Fix formating so that this can be parsed by awk.
10053 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10055 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10056 * defs.h: Include "gdb/signals.h".
10057 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10059 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10061 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10062 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10065 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10066 Don Howard <dhoward@redhat.com>
10068 * mips-tdep.c (ST0_FR): Define.
10069 (mips2_fp_compat): New function, temporarily disabled.
10070 (mips_read_fp_register_single): New function.
10071 (mips_read_fp_register_double): New function.
10072 (mips_print_register): Use them.
10073 (do_fp_register_row): Likewise.
10075 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10077 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10080 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10082 * stabsread.c (read_member_functions): Fix is_stub test for
10083 static member functions, improve comment.
10085 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10087 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10088 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10089 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10090 commands that set boolean values.
10091 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10092 (arm_rdi_resume): Always initialize PC.
10093 (arm_rdi_open): Don't use rslt as a boolean.
10094 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10095 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10096 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10097 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10099 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10101 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10102 * configure: Rebuilt.
10104 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10106 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10107 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10109 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10111 * cli/cli-decode.c (set_cmd_completer): New function.
10112 * command.h (set_cmd_completer): Declare.
10113 * cli/cli-decode.h (set_cmd_completer): Ditto.
10115 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10116 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10117 * win32-nat.c (_initialize_inftarg): Ditto.
10118 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10119 * proc-api.c (_initialize_proc_api): Ditto.
10120 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10121 * source.c (_initialize_source): Ditto.
10122 * exec.c (_initialize_exec): Ditto.
10123 * solib.c (_initialize_solib): Ditto.
10124 * top.c (init_main): Ditto.
10125 * tracepoint.c (_initialize_tracepoint): Ditto.
10126 * symfile.c (_initialize_symfile): Ditto.
10127 * printcmd.c (_initialize_printcmd): Ditto.
10128 * infcmd.c (_initialize_infcmd): Ditto.
10129 * corefile.c (_initialize_core): Ditto.
10131 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10133 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10135 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10137 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10139 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10141 * NEWS: Update headings, 5.2 has branched.
10143 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10145 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10146 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10147 (register_addr, REGISTER_RAW_SIZE): Likewise.
10148 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10149 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10151 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10153 * MAINTAINERS (x86-64): Add myself.
10154 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10155 changed value_ptr -> struct value *
10157 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10159 * configure.host (sparc64-*-freebsd): Add.
10160 * configure.tgt: Likewise.
10161 * config/sparc/fbsd.mh: New file.
10162 * config/sparc/fbsd.mt: Likewise.
10163 * config/sparc/nm-fbsd.h: Likewise.
10164 * config/sparc/tm-fbsd.h: Likewise.
10166 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10168 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10169 regformats/reg-s390x.dat.
10171 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10173 * utils.c: Add FIXME explaining true/false problem.
10175 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10177 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10179 2002-02-28 Michael Chastain <mec@shout.net>
10181 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10183 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10185 * gdbserver/linux-s390-low.c: New file.
10186 * regformats/reg-s390.dat: New file.
10187 * regformats/reg-s390x.dat: New file.
10188 * gdbserver/configure.srv: Add S/390.
10189 * gdbserver/Makefile.in: Add S/390.
10190 * configure.tgt: Enable gdbserver for S/390.
10192 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10194 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10195 first line of the doc string for "info dos", except at the end of
10196 the sentence, since the short help stops at the first period.
10198 2002-02-28 Jason Merrill <jason@redhat.com>
10200 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10202 2002-02-27 Fred Fish <fnf@redhat.com>
10204 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10205 comment (dumy -> dummy).
10207 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10209 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10211 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10213 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10215 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10217 * gdbserver/acconfig.h: New file.
10218 * gdbserver/i387-fp.c: New file.
10219 * gdbserver/i387-fp.h: New file.
10220 * gdbserver/linux-x86-64.c: New file.
10221 * regformats/reg-x86-64.dat: New file.
10222 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10223 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10224 * gdbserver/configure.in: Add support for regsets.
10225 * gdbserver/config.in: Regenerate.
10226 * gdbserver/configure: Regenerate.
10227 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10228 * gdbserver/linux-low.h: New file.
10229 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10231 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10232 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10233 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10234 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10235 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10236 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10237 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10238 "i387-fp.h". Add PTRACE_GETREGS and friends.
10239 * gdbserver/regcache.c (supply_register): New function.
10240 (supply_register_by_name): New function.
10241 (collect_register): New function.
10242 (collect_register_by_name): New function.
10244 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10246 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10247 (config.status): Add configure.srv dependency.
10248 (server_h): Add config.h dependency.
10250 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10252 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10253 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10254 * gdbserver/configure.srv: Change i386-*-linux* to use
10257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10259 * x86-64-tdep.c: Re-indent. Update copyright date.
10261 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10263 From Michal Ludvig <mludvig@suse.cz>:
10264 * x86-64-tdep.c (value.h): Delete.
10265 (gdb_assert.h): Include.
10266 (x86_64_register_convert_to_virtual,
10267 x86_64_register_convert_to_raw ): Add check which lets only
10268 floating-point values to be converted.
10269 (value_push): Delete.
10270 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10271 (i386_gdbarch_init): Number of register_bytes fixed.
10273 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10275 * MAINTAINERS: Add x86-64 target.
10277 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10279 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10280 * osfsolib.c (solib_map_sections): Ditto.
10281 * irix5-nat.c (solib_map_sections): Ditto.
10282 * corelow.c (gdb_check_format): Ditto.
10283 * symfile.c (symfile_bfd_open): Ditto.
10284 * solib.c (solib_map_sections): Ditto.
10287 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10289 * remote.c (_initialize_remote): By default, disable ``e'' and
10290 ``E'' step out-of-range packets.
10292 2002-02-26 Andreas Schwab <schwab@suse.de>
10294 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10295 m68k_linux_frame_saved_pc.
10296 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10298 (SIGCONTEXT_PC_OFFSET): Remove.
10299 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10300 m68k_linux_sigtramp_saved_pc): New functions.
10301 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10302 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10303 (UCONTEXT_PC_OFFSET): Define.
10304 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10305 non-RT and RT signal trampolines.
10307 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10309 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10310 (TARGET_NBPG, STACK_END_ADDR): Delete
10311 (VARIABLES_INSIDE_BLOCK): Delete.
10313 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10315 * utils.c (perror_with_name): Make string parameter constant.
10316 (print_sys_errmsg): Ditto.
10318 * defs.h (perror_with_name): Update.
10319 (print_sys_errmsg): Update.
10322 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10324 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10325 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10327 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10329 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10330 if it already matches the current architecture from the exec file.
10331 Include arch-utils.h for gdbarch_info_init prototype.
10332 * Makefile.in (rs6000-nat.o): Update dependencies.
10334 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10336 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10337 list of exported variables.
10339 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10341 * gdbserver/configure.srv: New file.
10342 * gdbserver/configure.in: Use configure.srv instead
10343 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10345 * gdbserver/configure: Regenerated.
10346 * gdbserver/terminal.h: New file.
10347 * gdbserver/Makefile.in: Update for configure changes. Remove
10348 more unneeded include paths.
10350 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10352 From wiz at danbala:
10353 * config/sparc/tm-sp64.h: Fix grammar and typos.
10356 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10358 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10359 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10360 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10361 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10362 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10363 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10364 * s390-tdep.c: Ditto.
10365 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10366 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10367 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10368 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10369 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10370 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10371 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10372 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10373 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10374 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10377 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10379 * lin-thread.c: Delete file.
10380 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10381 to gdb_proc_service.h.
10382 * configure: Re-generate.
10384 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10385 * serial.c (serial_open): Delete check for "ocd".
10388 * Makefile.in (linux-thread.o): Delete target.
10389 * linux-thread.c: Delete file.
10391 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10392 renamed SH files to be consistent.
10394 * symtab.c (sort_search_symbols): Use xfree.
10396 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10398 * arm-linux-tdep.c (arm_linux_init_abi): Register
10399 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10400 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10401 definition with undef, since we don't want the sysvr4 definition.
10402 (SKIP_TRAMPOLINE_CODE): Likewise.
10404 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10406 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10408 * configure.in: (AC_CHECK_FUNCS) Added test for
10409 canonicalize_file_name Regenerated.
10410 * config.in, configure: Regenerated.
10411 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10412 defined use canonicalize_file_name.
10414 2002-02-23 Michael Chastain <mec@shout.net>
10416 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10418 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10420 * README: Remove references to cygnus.com.
10421 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10422 dot com'' form. Remove references to cygnus.com and sourceware.
10424 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10426 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10427 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10428 1003.1-2001 no longer allows "head -1".
10429 * gdb/Makefile.in (version.c): Likewise.
10430 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10431 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10432 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10434 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10436 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10437 * command.h (cmd_cfunc_eq): Declare.
10438 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10440 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10441 ``struct cmd_list_element *''.
10442 * cli/cli-cmds.c (is_complete_command): Update. Use
10444 * top.c (execute_command): Pass the command to
10445 is_complete_command.
10446 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10448 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10450 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10451 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10452 architecture defines.
10453 * s390-tdep.c (s390_gdbarch_init): Likewise.
10455 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10457 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10458 (arm_linux_push_arguments): Likewise.
10459 (arm_linux_init_abi): Register them. Also register linux-specific
10461 (find_minsym_and_objfile): Use strcmp, not STREQ.
10462 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10463 (arm_linux_call_dummy_words): Delete declaration.
10464 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10465 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10467 (LOWEST_PC): Delete.
10469 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10471 * maint.c (print_section_info): Do not prepend `0x' to filepos
10472 output, it will be handled by local_hex_string_custom.
10474 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10476 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10477 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10478 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10480 2002-02-22 Jim Blandy <jimb@redhat.com>
10482 Indicate that the bcache functions don't change the strings
10484 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10485 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10487 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10489 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10491 2002-02-21 Christopher Faylor <cgf@redhat.com>
10493 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10494 find the complete path to a loaded DLL.
10496 2002-02-21 Fred Fish <fnf@redhat.com>
10498 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10499 that marks the end of the range of a function, enter a line number
10500 entry that has a line number of zero and a PC offset that matches
10501 the end of the function. This starts a range of PC's for which no
10502 line number information is known.
10503 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10504 PC's for which no line number info is found (line number is zero)
10505 then we didn't find any valid line information.
10506 * symtab.h: Document use of zero line number entry.
10508 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10510 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10511 (have_ptrace_getvrregs): Define for run time checks.
10512 (gdb_vrregset_t): New type for Altivec register handling.
10513 (fetch_register, store_register): Fetch/store altivec register
10515 (fetch_altivec_register, store_altivec_register): New functions.
10516 (supply_vrregset, fill_vrregset): New functions.
10517 (fetch_altivec_registers, store_altivec_registers): New functions.
10518 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10521 2002-02-21 Jiri Smid <smid@suse.cz>
10523 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10525 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10527 * Makefile.in (armnbsd-nat.o): Update dependencies.
10528 * armnbsd-nat.c (supply_gregset): New function. Common code to
10529 supply the integer register set.
10530 (supply_fparegset): New function. Similar for FPA registers.
10531 (fetch_regs, fetch_fp_regs): Use them.
10532 (fetch_core_registers): Likewise.
10533 (fetch_elfcore_registers): New function.
10534 (arm_netbsd_elfcore_fns): New core-file type specification.
10535 (_initialize_arm_netbsd_nat): Register it.
10537 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10539 * armnbsd-nat.c: Include gdbcore.h.
10540 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10541 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10542 'void' to declaration, to shut up ARI.
10543 (fetch_core_registers): Make static. Rewrite using supply_register.
10544 (arm_netbsd_core_fns): New core-file type specification.
10545 (_initialize_arm_netbsd_nat): New function.
10547 2002-02-21 Christopher Faylor <cgf@redhat.com>
10549 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10552 2002-02-20 Christopher Faylor <cgf@redhat.com>
10554 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10557 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10559 * jv-exp.y (parse_number): Change type of implicit longs
10560 to builtin_type_uint64.
10562 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10564 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10565 to be an integer instead of a `union wait'.
10567 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10569 * mips-linux-nat.c: Call the operating system GNU/Linux.
10570 * mips-linux-tdep.c: Likewise.
10571 * mips-tdep.c: Likewise.
10573 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10576 * jv-exp.y (parse_number): Handle 64-bit integers.
10578 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10580 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10581 AC_STDC_HEADERS to AC_HEADER_STDC.
10582 * gdbserver/configure: Regenerated.
10584 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10586 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10588 * sparc-tdep.c (get_longjmp_target): Likewise.
10590 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10592 * News: Add news about ARM and Multi-arch. Mention the new target
10595 2002-02-19 Jim Blandy <jimb@redhat.com>
10597 * stabsread.c (error_type_complaint): Improve error message.
10599 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10601 * gdbserver/README: Update documentation.
10602 * gdbserver/configure.in: Update configury to match documentation.
10603 * gdbserver/Makefile.in: Likewise.
10604 * gdbserver/configure: Regenerated.
10605 * gdbserver/aclocal.m4: New file, generated by aclocal.
10606 * gdbserver/config.in: New file, generated by autoheader.
10608 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10610 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10613 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10615 * arm-tdep.h (enum arm_float_model): New enum.
10616 (struct gdbarch_tdep): Add fp_model.
10617 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10618 up floating-point conversions until we know the floating-point model
10619 in use by the inferior. Don't complain about being unable to
10620 determine the ABI of the inferior when we don't have one.
10621 (arm_extract_return_value): Support different floating-point models.
10622 (arm_store_return_value): Likewise.
10623 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10625 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10627 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10629 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10630 of ``current_gdbarch''.
10632 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10634 * armnbsd-nat.c : ANSIfy all function declarations.
10635 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10636 (fetch_inferior_registers): Re-implement in terms of above.
10637 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10638 (store_inferior_registers): Re-implement in terms of above.
10640 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10642 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10644 * arm-linux-tdep.c: Likewise.
10645 * config/arm/tm-linux.h: Likewise.
10647 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10649 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10650 * config/arm/nbsd.mt (TM_FILE): Delete.
10651 * config/arm/tm-nbsd.h: Delete.
10653 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10655 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10656 Initialize CALL_DUMMY_LENGTH.
10658 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10660 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10662 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10663 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10664 defines one thing and that is incorrect for this port.
10665 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10667 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10669 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10671 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10673 * win32-nat.c (display_selector): New function. Displays information
10674 about the information returned by GetThreadSelectorEntry API function.
10675 (display_selectors): New function. Displays the infomation of
10676 the selector given as argument, or of CS, DS ans FS selectors
10677 if no argument is given.
10678 ( _initialize_inftarg): Add "w32" as info prefix command.
10679 Add "info w32 selector" as command calling display_selectors.
10681 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10683 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10684 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10687 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10689 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10691 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10693 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10694 (arm_fix_call_dummy): Call it.
10695 (arm_call_dummy_breakpoint_offset): Delete.
10696 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10697 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10699 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10701 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10702 Default to func_frame_chain_valid.
10703 * gdbarch.h, gdbarch.c: Re-generate.
10704 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10706 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10708 * ppc-linux-nat.c: Update copyright.
10709 (fetch_register, store_register): Add tid parameter, don't compute
10711 (fetch_ppc_registers, store_ppc_registers): Add tid
10712 parameter. Pass it along to callees.
10713 (fetch_inferior_registers, store_inferior_registers): Compute tid
10714 here, and pass it to calleed functions.
10715 (fill_gregset, supply_fpregset): Clean up formatting.
10717 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10719 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10720 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10722 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10724 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10725 * gdbarch.c gdbarch.h: Regenerate.
10726 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10728 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10729 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10730 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10732 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10733 * arm-tdep.c (arm_get_longjmp_target): New function.
10734 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10735 this to a positive value register arm_get_longjmp_target as the
10737 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10738 (arm_linux_init_abi): Set up longjmp description in tdep.
10739 * armnbsd-nat.c (get_longjmp_target): Delete.
10740 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10741 description in tdep.
10742 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10743 (get_longjmp_target): Delete declaration.
10744 (GET_LONGJMP_TARGET): Delete.
10745 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10746 (GET_LONGJMP_TARGET): Delete.
10748 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10750 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10751 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10752 of ``current_gdbarch''.
10754 2002-02-17 Tom Tromey <tromey@redhat.com>
10756 * cli/cli-cmds.c (compare_strings): New function.
10757 (complete_command): Only print each unique item once.
10758 * completer.h (complete_line): Declare.
10759 * completer.c (complete_line): New function.
10760 (line_completion_function): Use it.
10762 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10764 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10765 * gdbarch.h, gdbarch.c: Re-generate.
10767 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10769 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10771 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10773 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10774 * valops.c (value_arg_coerce): Don't take the address of a reference
10775 to convert an argument to a reference.
10777 2002-02-15 Christopher Faylor <cgf@redhat.com>
10779 * win32-nat.c (get_image_name): New function.
10780 (handle_load_dll): Use get_image_name function.
10781 (get_child_debug_event): Avoid registering debug events until possibly
10782 execed process is started.
10783 (child_create_inferior): Allow invocation via shell so that command
10784 line redirection, etc. works ok.
10785 (_initialize_inftarg): Add new command: "set shell" to control whether
10786 a shell is used to start a process.
10788 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10790 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10791 instead of find_register_by_number.
10792 (cannot_store_register): Likewise.
10794 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10796 * dwarf2read.c: Replace fprintf (stderr, ...) by
10797 fprintf_unfiltered (gdb_stderr, ...).
10799 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10801 * gdbserver/gdbserver.1: Document --attach.
10803 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10805 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10807 * arm-tdep.c (arm_default_arm_le_breakpoint)
10808 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10809 (arm_default_thumb_be_breakpoint): New. Initialize them from
10810 traditional breakpoint defines.
10811 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10812 (arm_gdbarch_init): Initialize new breakpoint variables.
10813 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10814 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10815 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10816 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10818 (arm_netbsd_init_abi_common): ... here; new function.
10819 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10820 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10821 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10822 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10824 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10826 * arm-tdep.h (enum arm_abi): New enum.
10827 (struct gdbarch_tdep): New structure.
10828 (LOWEST_PC): Provide a default.
10829 (arm_gdbarch_register_os_abi): Declare new function.
10830 * arm-tdep.c (arm_abi_names): New array.
10831 (process_note_abi_tag_sections): New function.
10832 (get_elfosabi): New function.
10833 (arm_gdbarch_register_os_abi): New function.
10834 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10835 support for that ABI has been built in, then call the appropriate
10836 configuration routine. Use gdbarch_num_regs() to get the number
10838 (arm_dump_tdep): New function.
10839 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10840 place-holder functions.
10841 (_initialize_arm_tdep): Register them.
10842 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10844 * armnbsd-tdep.c: New file.
10845 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10846 * config/arm/nbsd.mt (TDEPFILES): Add it.
10847 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10849 * armnbsd-nat.c: Include regcache.h.
10850 * Makefile.in (armnbsd-nat.o): Update dependency list.
10852 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10854 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10856 * gdbserver/Makefile.in: Fix typos in target rules.
10858 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10860 Fix part of PR gdb/267.
10861 * linespec.c (find_methods): Handle constructors specially for now.
10863 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10865 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10867 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10868 standard_coerce_float_to_double().
10870 2002-02-14 Christopher Faylor <cgf@redhat.com>
10872 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10875 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10877 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10878 find_variant_by_name, because it confuses the multiarch
10879 framework. Return NULL if there isn't an architecture with the
10880 user supplied name, instead of forcing a different one without
10881 recording the change with the multiarch machinery.
10882 (find_variant_by_name): Delete.
10884 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10886 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10887 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10889 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10891 * stack.c (print_frame_info_base): When calling
10892 print_frame_info_listing_hook, set current_source_symtab.
10894 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10896 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10897 and remove unused $(INCLUDE_DIR).
10898 Add regcache.c to OBS.
10899 Add generated register protocol files to clean target.
10900 Update dependencies for new objects, obsolete old target code.
10902 * gdbserver/linux-low.c: Remove all platform-specific code to
10903 new files. Remove various dead code. Update to use regcache
10905 * gdbserver/remote-utils.c (fromhex): Add return statement
10907 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10909 (input_interrupt): Add integer parameter to match prototype
10910 of a signal handler.
10911 (outreg): Use register_data ().
10912 (prepare_resume_reply): Use gdbserver_expedite_regs.
10913 * gdbserver/server.c (main): Dynamically allocate own_buf because
10914 PBUFSIZ is no longer constant. Use registers_to_string () and
10915 registers_from_string ().
10916 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10917 for error (), fatal (), and warning (). Update definition of
10918 PBUFSIZ to use regcache functionality. Add include guard.
10919 * gdbserver/utils.c (fatal): Add missing ``const''.
10920 (warning): New function.
10922 * regformats/regdat.sh: Include "regcache.h" in generated files.
10923 Provide init_registers () function.
10924 * regformats/regdef.h: Add prototype for set_register_cache ().
10927 * gdbserver/linux-arm-low.c: New file.
10928 * gdbserver/linux-i386-low.c: New file.
10929 * gdbserver/linux-ia64-low.c: New file.
10930 * gdbserver/linux-m68k-low.c: New file.
10931 * gdbserver/linux-mips-low.c: New file.
10932 * gdbserver/linux-ppc-low.c: New file.
10933 * gdbserver/linux-sh-low.c: New file.
10935 * gdbserver/regcache.c: New file.
10936 * gdbserver/regcache.h: New file.
10938 * gdbserver/low-linux.c: Removed obsolete file.
10940 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10942 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10943 * config/i386/linux.mt: Likewise.
10944 * config/ia64/linux.mt: Likewise.
10945 * config/m68k/linux.mh: Likewise.
10946 * config/powerpc/linux.mh: Likewise.
10947 * config/mips/linux.mt: Likewise.
10949 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10951 * config/i386/i386lynx.mh: Mark gdbserver variables
10952 as (currently) obsolete for this target.
10953 * config/i386/nbsd.mt: Likewise.
10954 * config/i386/nbsdelf.mt: Likewise.
10955 * config/m32r/m32r.mt: Likewise.
10956 * config/m68k/m68klynx.mh: Likewise.
10957 * config/m68k/nbsd.mt: Likewise.
10958 * config/m68k/sun3os4.mh: Likewise.
10959 * config/mips/vr5000.mt: Likewise.
10960 * config/ns32k/nbsd.mt: Likewise.
10961 * config/pa/hppabsd.mh: Likewise.
10962 * config/pa/hppaosf.mh: Likewise.
10963 * config/powerpc/nbsd.mt: Likewise.
10964 * config/rs6000/rs6000lynx.mh: Likewise.
10965 * config/s390/s390.mt: Likewise.
10966 * config/s390/s390x.mt: Likewise.
10967 * config/sparc/sparclynx.mh: Likewise.
10968 * config/sparc/sun4os4.mh: Likewise.
10969 * config/i386/x86-64linux.mt: Likewise.
10970 * config/sparc/linux.mh: Likewise.
10972 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10974 * configure.tgt: Configure gdbserver only for known working
10975 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10976 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10977 SUBDIRS if it is configured. Update comment for ${nativefile}.
10978 * configure: Regenerated.
10980 2002-02-13 Michael Snyder <msnyder@redhat.com>
10982 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10984 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10985 (default_gcore_mach): Just return 0, work around a problem in bfd.
10986 (default_gcore_target): OK to return NULL if exec_bfd is null.
10987 (make_mem_sec): Use a cast, avoid a warning.
10989 * procfs.c (find_memory_regions_callback): Use a cast instead of
10990 calling host_pointer_to_address (which complains if
10991 sizeof (host pointer) != sizeof (target pointer)).
10992 (procfs_make_note_section): Avoid overflow in psargs string.
10994 * procfs.c (procfs_make_note_section): Make the default
10995 implementation return an error.
10997 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10999 * procfs.c (procfs_make_note_section): Provide a default definition
11000 (for alpha-dec-osf4.0f). Fix typos.
11002 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11004 * linux-proc.c: Add include of regcache.h.
11005 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11007 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11009 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11010 * memattr.c (create_mem_region): Disallow useless empty region.
11011 Regions are half-open intervals, so allow [A..B) [B..C) as
11014 2002-02-13 Michael Chastain <mec@shout.net>
11016 * defs.h: Kill CONST_PTR.
11017 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11018 * c-lang.c (c_builtin_types): Likewise.
11019 * ch-lang.c (ch_builtin_types): Likewise.
11020 * f-lang.c (f_builtin_types): Likewise.
11021 * language.c (unknown_builtin_types): Likewise.
11022 * m2-lang.c (m2_builtin_types): Likewise.
11023 * p-lang.c (pascal_builtin_types): Likewise.
11024 * scm-lang.c (c_builtin_types): Likewise.
11026 2002-02-13 Keith Seitz <keiths@redhat.com>
11028 * arm-tdep.h (arm_get_next_pc): Add declaration.
11030 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11032 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11033 with other related struct-returning functions.
11034 (arm_extract_struct_value_address): New function.
11035 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11036 initialize float_format, double_format and long_double_format as
11037 appropriate to the endianness of the target.
11038 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11039 (arm_use_struct_convention): Delete declaration.
11040 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11042 2002-02-13 Keith Seitz <keiths@redhat.com>
11044 * defs.h (core_addr_to_string_nz): New function.
11046 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11048 Apply missing bits of 2002-01-15 patch.
11049 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11050 (fill_fpregset): Use i387_fill_fsave.
11052 2002-02-12 Keith Seitz <keiths@redhat.com>
11054 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11055 (core_addr_to_string_nz): New function.
11057 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11059 * arm-linux-nat.c: Really include arm-tdep.h.
11060 * config/arm/tm-linux.h (struct type, struct value): Declare.
11062 2002-02-11 Michael Snyder <msnyder@redhat.com>
11064 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11065 (gcore section): Ifdef for Solaris and Unixware only.
11066 (procfs_do_thread_registers): Unixware needs one lwpstatus
11067 per thread (not one prstatus or pstatus).
11068 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11069 not over all gdb threads. For unixware, call elfcore_write_pstatus
11070 once before iterating over threads.
11072 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11074 * arm-tdep.h: New file.
11075 * arm-tdep.c: Include arm-tdep.h.
11076 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11077 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11078 (arm_print_float_info, arm_register_type, convert_to_extended)
11079 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11080 (arm_extract_return_value, arm_register_name): Make static.
11081 (arm_software_single_step): Similarly. Fix types in declaration.
11082 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11083 (arm_store_return_value, arm_store_struct_return): New functions.
11084 (arm_gdbarch_init): Register the above functions. Also register
11085 call_dummy_start_offset, sizeof_call_dummy_words,
11086 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11087 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11088 max_register_virtual_size, register_size. Set up
11089 prologue_cache.saved_regs here, rather than ...
11090 (_initialize_arm_tdep): ... here.
11091 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11093 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11094 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11095 (arm_print_float_info, arm_register_type, convert_to_extended)
11096 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11097 (arm_extract_return_value, arm_register_name): Delete declarations.
11098 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11099 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11100 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11101 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11102 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11103 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11104 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11105 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11106 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11107 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11108 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11109 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11111 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11112 * remote-rdi.c remote-rdp.c: Likewise.
11113 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11114 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11115 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11118 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11119 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11120 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11121 from non-ARM_ prefixed definitions.
11122 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11124 * remote-rdi.c remote-rdp.c: Likewise.
11125 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11127 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11129 * arm-tdep.c (arm_frameless_function_invocation)
11130 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11131 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11132 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11133 (arm_pop_frame, arm_get_next_pc): Make static.
11134 (arm_gdbarch_init): Register above in gdbarch structure.
11135 (arm_read_fp): Renamed from arm_target_read_fp.
11136 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11137 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11138 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11139 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11140 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11141 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11142 (arm_pc_is_thumb_dummy): Delete declarations.
11143 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11144 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11145 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11146 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11148 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11150 * symtab.c (compare_search_syms): New function.
11151 (sort_search_symbols): New function.
11152 (search_symbols): Sort symbols after searching rather than
11155 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11157 * NEWS: Linux -> GNU/Linux.
11159 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11161 * gdbarch.sh: For for level one methods, disallow a definition
11162 when partially multi-arched. Add comments explaining rationale.
11163 * gdbarch.h: Re-generate.
11165 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11167 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11168 multi-arch partial.
11170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11172 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11173 field. Use diff -u.
11174 * gdbarch.c: Re-generate.
11176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11178 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11179 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11182 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11184 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11185 multi-arch partial.
11186 (PUSH_ARGUMENTS): Switch to using predefault.
11187 * gdbarch.c: Regenerate.
11189 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11191 * valops.c (PUSH_ARGUMENTS): Delete definition.
11192 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11193 partial. Default to default_push_arguments.
11194 * gdbarch.h, gdbarch.c: Regenerate.
11196 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11198 * defs.h (throw_exception): Rename return_to_top_level. Update
11200 * utils.c (error_stream, internal_verror, quit): Ditto.
11201 * top.c (throw_exception, catcher): Ditto.
11202 * sparclet-rom.c (sparclet_load): Ditto.
11203 * remote.c (interrupt_query, minitelnet): Ditto.
11204 * remote-sds.c (interrupt_query): Ditto.
11205 * remote-mips.c (mips_error, mips_kill): Ditto.
11206 * ocd.c (interrupt_query): Ditto.
11207 * monitor.c (monitor_interrupt_query): Ditto.
11208 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11209 * target.h: Update comment.
11211 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11213 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11215 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11216 default_double_format.
11217 * gdbarch.h, gdbarch.c: Re-generate.
11218 * findvar.c (floatformat_unknown): Delete variable definition.
11219 * doublest.h (floatformat_unknown): Delete variable declaration.
11221 2002-02-09 Jim Blandy <jimb@redhat.com>
11223 * stabsread.c (read_type): Add code to parse Sun's syntax for
11224 prototyped function types.
11226 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11228 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11229 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11231 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11233 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11234 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11235 now _initialize_xcoffsolib gets called again and overrides the
11236 commands from solib.c in a native configuration.
11238 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11240 * doublest.c (store_typed_floating): Don't try to return a value.
11243 2002-02-08 Jim Blandy <jimb@redhat.com>
11245 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11246 is prototyped and has no arguments, print its argument list as
11249 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11251 * MAINTAINERS (write-after-approval): Add myself.
11252 (paper-trail): I've escaped!
11254 2002-02-08 Christopher Faylor <cgf@redhat.com>
11256 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11258 (_initialize_check_for_gdb_ini): Ditto.
11260 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11262 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11263 xaprintf -> xasprintf.
11265 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11267 * win32-nat.c: Remove use of printf and sprintf functions.
11269 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11271 * arm-tdep.c (arm_frame_chain_valid): Make static.
11272 (arm_push_arguments): Likewise.
11273 (arm_gdbarch_init): New function.
11274 (_initialize_arm_tdep): Call it.
11275 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11276 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11277 (FRAME_CHAIN_VALID): Delete.
11278 (arm_frame_chain_valid): Delete declaration.
11279 (PUSH_ARGUMENTS): Delete.
11280 (arm_push_arguments): Delete declaration.
11281 (CALL_DUMMY_P): Delete.
11283 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11284 Corinna Vinschen <vinschen@redhat.com>
11286 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11287 on builtin float types.
11289 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11291 * utils.c: Include <curses.h> before "bfd.h".
11292 * tui/tui-hooks.c: Likewise.
11293 * tui/tui.c: Likewise.
11294 * tui/tuiCommand.c: Likewise.
11295 * tui/tuiData.c: Likewise.
11296 * tui/tuiDataWin.c: Likewise.
11297 * tui/tuiDisassem.c: Likewise.
11298 * tui/tuiGeneralWin.c: Likewise.
11299 * tui/tuiIO.c: Likewise.
11300 * tui/tuiLayout.c: Likewise.
11301 * tui/tuiRegs.c: Likewise.
11302 * tui/tuiSource.c: Likewise.
11303 * tui/tuiSourceWin.c: Likewise.
11304 * tui/tuiStack.c: Likewise.
11305 * tui/tuiWin.c: Likewise.
11307 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11309 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11310 to include space for pseudoregs as well. Update loops accordingly.
11311 (sh_fp_frame_init_saved_regs): Ditto.
11312 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11314 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11316 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11317 Add Richard Earnshaw to Arm maintainers.
11319 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11321 * defs.h (warning_begin): Delete declaration.
11323 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11326 2002-02-07 Michael Snyder <msnyder@redhat.com>
11328 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11329 Logic bug, remove misplaced else.
11331 2002-02-07 Klee Dienes <klee@apple.com>
11333 * fork-inferior.c (fork_inferior): Add '!' to the list of
11334 characters that need to be quoted when building a string for the
11335 shell. Quote '!' specifically with a backslash, since CSH chokes
11336 when trying to evaluate "str!str".
11338 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11340 * rdi-share/host.h: Only provide a typedef for bool if it is not
11343 2002-02-04 Michael Snyder <msnyder@redhat.com>
11345 * breakpoint.h (enum bptype): Add new overlay event bp type.
11346 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11348 * breakpoint.c (create_internal_breakpoint): New function.
11349 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11350 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11351 (create_thread_event_breakpoint): Ditto.
11352 (create_solib_event_breakpoint): Ditto.
11353 (create_overlay_event_breakpoint): New function.
11354 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11355 (update_breakpoints_after_exec): Delete and re-initialize
11356 overlay event breakpoints after an exec. Add FIXME comment
11357 about longjmp breakpoint.
11358 (print_it_typical): Ignore overlay event breakpoints.
11359 (print_one_breakpoint): Ditto.
11361 (bpstat_what): Do not stop for overlay event breakpoints.
11362 (delete_breakpoint): Don't delete overlay event breakpoints.
11363 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11364 (breakpoint_re_set): Re-create overlay event breakpoint.
11366 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11367 (overlay_manual_command): Disable overlay breakpoints.
11368 (overlay_off_command): Disable overlay breakpoints.
11370 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11372 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11373 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11374 to here from config/tm-arm.h.
11375 (coff_sym_is_thumb): Make static.
11376 (arm_elf_make_msymbol_special): New function.
11377 (arm_coff_make_msymbol_special): New function.
11378 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11379 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11380 (coff_sym_is_thumb): Delete declaration.
11381 (arm_elf_make_msymbol_special): Declare.
11382 (arm_coff_make_msymbol_special): Declare.
11383 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11384 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11386 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11388 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11390 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11392 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11393 * gdbarch.c gdbarch.h: Regenerate.
11394 * arch-utils.c (default_print_float_info): New function.
11395 * arch-utils.h (default_print_float_info): Prototype it.
11396 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11397 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11398 (PRINT_FLOAT_INFO): Document it.
11400 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11401 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11402 (PRINT_FLOAT_INFO): Define.
11404 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11406 * win32-nat.c (_initialize_check_for_gdb_ini):
11407 Add typecast to sprintf argument to suppress a warning.
11409 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11411 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11412 to allow easier handling of pass state.
11413 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11414 that gives exception name and address.
11415 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11416 and set last_sig value to ourstatus->value.sig. Some missing
11418 (child_continue): Correctly report continue_status.
11419 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11420 TARGET_SIGNAL_0 (new default value).
11421 (child_resume): consider sig argument passed to decide if
11422 the exception should be passed to debuggee or not.
11424 2002-02-05 Michael Snyder <msnyder@redhat.com>
11426 * regcache.c (fetch_register): Call target_fetch_register
11427 only if we don't call FETCH_PSEUDO_REGISTER.
11428 (store_register): Call target_store_register only if we
11429 don't call STORE_PSEUDO_REGISTER.
11431 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11433 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11434 ELF_MAKE_MSYMBOL_SPECIAL.
11435 * gdbarch.c, gdbarch.h: Regenerate.
11436 * arch-utils.c (default_make_msymbol_special): New function.
11437 * arch-utils.h (default_make_msymbol_special): Export.
11438 * elfread.c (elf_symtab_read): Compile use of
11439 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11441 * coffread.c (coff_symtab_read): Ditto, for
11442 COFF_MAKE_MSYMBOL_SPECIAL.
11444 2002-02-05 Jim Blandy <jimb@redhat.com>
11446 * solib-svr4.c (svr4_truncate_ptr): New function.
11447 (svr4_relocate_section_addresses): Do the address arithmetic with
11448 the appropriate truncation for target addresses, even when
11449 CORE_ADDR is larger than a target address.
11451 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11453 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11456 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11458 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11461 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11463 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11465 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11467 * gdbserver/linux-low.c: Remove unused include files.
11469 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11471 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11472 (read_inferior_memory): Use it.
11473 (write_inferior_memory): Likewise.
11475 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11477 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11478 grubbing through sys_errlist.
11480 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11482 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11484 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11485 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11487 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11489 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11490 (do_sfunc, set_cmd_sfunc): New functions.
11492 * command.h (struct cmd_list_element): Add field func.
11493 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11494 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11495 * cli/cli-decode.h: Ditto.
11497 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11498 (help_all, help_cmd_list): Ditto.
11499 (find_cmd, complete_on_cmdlist): Ditto.
11500 * top.c (execute_command): Ditto.
11502 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11505 * infcmd.c (notice_args_read): Fix function signature.
11507 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11508 * cli/cli-decode.c (add_set_cmd): Ditto.
11509 * utils.c (initialize_utils): Ditto.
11510 * maint.c (_initialize_maint_cmds): Ditto.
11511 * infrun.c (_initialize_infrun): Ditto.
11512 * demangle.c (_initialize_demangler): Ditto.
11513 * remote.c (add_packet_config_cmd): Ditto.
11514 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11515 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11516 * proc-api.c (_initialize_proc_api): Ditto.
11517 * kod.c (_initialize_kod): Ditto.
11518 * valprint.c (_initialize_valprint): Ditto.
11519 * top.c (init_main): Ditto.
11520 * infcmd.c (_initialize_infcmd): Ditto.
11521 * corefile.c (_initialize_core): Ditto.
11522 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11523 * arch-utils.c (initialize_current_architecture): Ditto.
11524 (_initialize_gdbarch_utils): Ditto.
11525 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11527 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11528 * wince.c (_initialize_inftarg): Ditto.
11529 * symfile.c (_initialize_symfile): Ditto.
11530 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11531 * language.c (_initialize_language): Ditto.
11532 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11534 2002-02-04 Michael Snyder <msnyder@redhat.com>
11536 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11538 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11540 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11541 Add rules for building the register data files.
11543 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11545 * regformats/regdat.sh: Add braces to the definition of
11546 expedite_regs_${arch}.
11548 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11550 * regformats/regdef.h (struct reg): Add comment describing the
11551 requirements for offset and size fields.
11553 2002-02-04 Andreas Schwab <schwab@suse.de>
11555 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11556 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11558 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11560 * gdbarch.sh (copyright): Update years in generated header.
11561 (SMASH_TEXT_ADDRESS): Add rule.
11562 * gdbarch.h, gdbarch.c: Re-generate.
11563 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11564 * dbxread.c: Likewise.
11565 * dwarfread.c: Likewise.
11566 * elfread.c: Likewise.
11567 * somread.c: Likewise.
11569 * arm-tdep.c (arm_smash_text_address): New function.
11570 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11572 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11574 Add support for hardware watchpoints on win32 native.
11575 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11576 CONTEXT_DEBUG_REGISTERS.
11577 (dr variable): New variable. Static array containing a local copy
11578 of debug registers.
11579 (debug_registers_changed): New variable. Reflects when debug registers
11580 are changed and need to be written to inferior.
11581 (debug_registers_used): New variable. Reflects when any debug register
11582 was set, used when new threads are created.
11583 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11585 (thread_rec): Set dr array if id is the thread of current_event .
11586 (child_continue, child_resume): Change the debug registers for all
11587 threads if debug_registers_changed.
11588 (child_add_thread): Change the debug registers if debug_registers_used.
11589 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11590 Link nm.h to new nm-cygwin.h file.
11591 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11592 of hardware registers.
11594 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11596 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11597 Restore behavour broken by 2002-01-20 Andrew Cagney
11598 <ac131313@redhat.com> IEEE_FLOAT removal.
11600 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11602 * c-valprint.c (c_val_print): Pass a proper valaddr to
11603 cp_print_class_method.
11604 * valops.c (search_struct_method): If there is only one method
11605 and args is NULL, return that method.
11607 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11609 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11610 accessing tag_name directly.
11612 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11614 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11615 of accessing tag_name directly.
11617 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11620 * gdbtypes.c (replace_type): New function.
11621 * gdbtypes.h (replace_type): Add prototype.
11622 * stabsread.c (read_type): Use replace_type.
11624 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11626 * Makefile.in (memattr.o): Add missing dependencies rule.
11628 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11630 * breakpoint.c (break_at_finish_command): Really export.
11631 (break_at_finish_at_depth_command): Ditto.
11632 (tbreak_at_finish_command): Ditto.
11633 * hppa-tdep.c: Include completer.h.
11634 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11635 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11637 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11639 * utils.c (do_write): New function.
11640 (error_stream): Rewrite combining the code from error_begin and
11642 (verror): Rewrite using error_stream.
11643 (error_begin): Delete function.
11645 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11647 * utils.c (error_begin): Make static.
11648 * defs.h (error_begin): Delete declaration.
11650 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11651 (decode_line_1): Use cplusplus_error instead of error_begin,
11652 cplusplus_hint and return_to_top_level.
11653 * coffread.c (coff_symfile_read): Use error instead of error_begin
11654 and return_to_top_level.
11655 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11657 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11659 * language.h (type_error, range_error): Make string parameter
11661 * language.c (warning_pre_print): Delete extern declaration.
11662 * dwarfread.c (warning_pre_print): Ditto.
11663 * language.c (type_error, range_error): Rewrite to use verror and
11664 vwarning instead of warning_begin.
11666 2002-02-01 Michael Snyder <msnyder@redhat.com>
11668 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11669 (set_ignore_count): Move misplaced comment back where it belongs.
11671 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11673 * command.h (NO_FUNCTION): Delete macro.
11674 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11675 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11676 * tracepoint.c (_initialize_tracepoint): Ditto.
11677 * cli/cli-decode.c (add_set_cmd): Ditto.
11678 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11680 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11682 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11683 Update ``this'' pointer when calling virtual functions.
11685 2002-02-01 Michael Snyder <msnyder@redhat.com>
11687 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11688 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11690 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11692 * regformats/reg-arm.dat: New file.
11693 * regformats/reg-i386.dat: New file.
11694 * regformats/reg-ia64.dat: New file.
11695 * regformats/reg-m68k.dat: New file.
11696 * regformats/reg-mips.dat: New file.
11697 * regformats/reg-ppc.dat: New file.
11698 * regformats/reg-sh.dat: New file.
11699 * regformats/regdef.h: New file.
11700 * regformats/regdat.sh: New file.
11702 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11704 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11705 (arm_frame_args_address, arm_frame_locals_address): New functions.
11706 (arm_frame_num_args): New function.
11707 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11708 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11709 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11711 2002-01-31 Michael Snyder <msnyder@redhat.com>
11713 * breakpoint.c (break_at_finish_command): Export.
11714 (break_at_finish_at_depth_command): Export.
11715 (tbreak_at_finish_command): Export.
11716 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11717 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11718 "txbreak" commands, which are HPPA specific.
11720 * printcmd.c (disassemble_command): Remove an ancient
11721 artifact of an old merge.
11723 * symfile.h (enum overlay_debugging_state):
11724 Define enum constant values for overlay mode.
11725 * symfile.c (overlay_debugging): Use enums instead of literals.
11726 (overlay_is_mapped, overlay_auto_command,
11727 overlay_manual_command): Ditto.
11729 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11730 breakpoint_here_p, breakpoint_inserted_here_p,
11731 breakpoint_thread_match, bpstat_stop_status,
11732 describe_other_breakpoints, check_duplicates, clear_command):
11733 Coding standard fixes.
11735 * target.c (target_xfer_memory): Add spaces, coding standard.
11736 (do_xfer_memory): Add missing line to trust-readonly
11737 code: check bfd SEC_READONLY flag for section.
11739 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11741 * PROBLEMS: Fix typo, 5.1->5.1.1.
11743 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11745 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11746 data symbols, since we search based on textlow and texthigh.
11747 (find_pc_sect_symtab): Likewise.
11749 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11751 * defs.h (vwarning): Declare.
11752 * utils.c (vwarning): New function.
11753 (warning): Call vwarning.
11754 (warning_begin): Delete function.
11756 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11757 the warning message.
11758 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11761 2002-01-30 Michael Snyder <msnyder@redhat.com>
11763 * NEWS: Mention "set trust-readonly-sections" command.
11764 Mention generate-core-file command.
11766 2002-01-15 Michael Snyder <msnyder@redhat.com>
11768 * target.c: New command, "set trust-readonly-sections on".
11769 (do_xfer_memory): Honor the suggestion to trust readonly sections
11770 by reading them from the object file instead of from the target.
11771 (initialize_targets): Register command "set trust-readonly-sections".
11773 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11775 * parse.c (target_map_name_to_register): Simplify, search regs and
11776 pseudo-regs using a single loop.
11778 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11780 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11782 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11784 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11785 * config/i386/i386v42mp.mh: Add i387-nat.o .
11786 * i386v4-nat.c: Include i387-nat.h.
11787 (supply_fpregset): Use i387_supply_fsave.
11788 (fill_fpregset): Use i387_fill_fsave.
11790 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11792 * arm-tdep.c (arm_call_dummy_words): Define.
11793 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11794 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11795 (CALL_DUMMY_WORDS): Define.
11796 (arm_call_dummy_words): Declare.
11797 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11798 (arm_linux_call_dummy_words): Declare.
11800 2002-01-30 Andreas Schwab <schwab@suse.de>
11802 * m68klinux-nat.c: Fix last change to use regcache_collect
11803 instead of referencing registers[] directly.
11805 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11807 * parse.c (target_map_name_to_register): Delete code wrapped in
11808 #ifdef REGISTER_NAME_ALIAS_HOOK.
11810 2002-01-28 Michael Snyder <msnyder@redhat.com>
11812 * regcache.c (legacy_read_register_gen): Need to be able to
11813 read pseudo-register as well as real register.
11814 (legacy_write_register_gen): Ditto.
11816 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11818 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11819 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11820 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11821 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11822 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11823 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11824 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11825 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11826 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11827 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11828 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11829 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11830 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11831 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11832 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11833 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11834 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11835 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11836 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11837 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11839 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11841 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11842 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11843 (initialize_current_architecture): Update target_byte_order using
11844 information from BFD.
11845 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11846 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11848 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11850 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11851 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11853 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11854 #ifdef INVALID_FLOAT.
11855 * infcmd.c (do_registers_info): Ditto.
11856 * values.c (unpack_double): Ditto. Add comment.
11858 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11859 already commented out.
11861 2002-01-26 Andreas Schwab <schwab@suse.de>
11863 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11864 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11865 registers and add support for PTRACE_GETREGS.
11867 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11869 GDB 5.1.1 released from 5.1 branch.
11870 * NEWS: Add 5.1.1 news.
11871 * README: Sync with 5.1 branch.
11873 2002-01-23 Fred Fish <fnf@redhat.com>
11875 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11876 stabstring on initial malloc. Reallocing will copy it for us,
11879 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11881 * Makefile.in (hpread_h): Delete.
11882 (HFILES_NO_SRCDIR): Remove hpread.h.
11883 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11884 (hpread.o): Update dependencies.
11885 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11887 * hp-psymtab-read.c: Remove file.
11888 * hp-symtab-read.c: Remove file.
11889 * hpread.h: Remove file.
11891 * hpread.c: Merge all contents of hp-psymtab-read.c,
11892 hp-symtab-read.c and hpread.h into this file, as it was prior to
11895 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11896 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11897 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11898 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11900 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11902 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11903 fill_gregset): Call gdbarch_tdep() just once, assign result to
11904 variable and use that, instead of calling the function several
11907 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11909 * configure.host: Accept sparcv9 as alias for sparc64.
11910 * configure.tgt: Likewise.
11912 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11914 * solib-aix5.c (build_so_list_from_mapfile)
11915 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11916 arguments is not reversed.
11917 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11918 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11920 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11922 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11923 modified version of obsolete sh_fetch_pseudo_register.
11924 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11925 (sh4_register_read): New function.
11926 (sh_pseudo_register_write): New function. Renamed and modified
11927 version of obsolete sh_store_pseudo_register.
11928 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11929 (sh4_register_write): New function.
11930 (sh_gdbarch_init): Remove setting of gdbarch function
11931 fetch_pseudo_register and store_pseudo_register. Remove setting of
11932 register_convert_to_raw, register_convert_to_virtual,
11933 register_convertible.
11934 (sh_sh4_register_convertible): Delete. No longer needed. All is
11935 taken care by architecture specific functions
11936 register_read/register_write.
11937 (sh_sh4_register_convert_to_virtual): Make static.
11938 (sh_sh4_register_convert_to_raw): Ditto.
11940 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11942 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11943 (floatformat_is_nan, floatformat_mantissa): Ditto.
11945 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11946 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11947 builtin_type_ieee_double_little,
11948 builtin_type_ieee_double_littlebyte_bigword,
11949 builtin_type_m68881_ext, builtin_type_i960_ext,
11950 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11951 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11952 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11953 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11955 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11957 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11958 parameter. Set frameless flag if it exists and depended of
11959 whether the scanned function is frameless or not.
11960 (xstormy16_skip_prologue): If function is frameless, return
11961 result of xstormy16_scan_prologue().
11962 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11965 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11967 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11968 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11969 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11970 sh_sh4_register_byte, sh_sh4_register_raw_size,
11971 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11972 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11973 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11974 sh_store_pseudo_register, sh_do_pseudo_register): Call
11975 gdbarch_tdep() just once, assign result to variable and use that,
11976 instead of calling the function several times.
11978 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11980 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11981 macros instead of LAST_FPU_CTRL_REGNUM.
11982 (store_register): Likewise.
11984 2002-01-21 Jim Blandy <jimb@redhat.com>
11986 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11987 is up-to-date before running the program, not just when a program
11990 2002-01-21 Fred Fish <fnf@redhat.com>
11992 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11993 when we have found all instructions we are looking for.
11995 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11997 * arm-tdep.c (arm_register_name): New function.
11998 (arm_registers_names): Make static.
11999 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12000 (arm_register_name): Declare.
12001 (REGISTER_NAME): Use it.
12003 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12004 Kevin Buettner <kevinb@redhat.com>
12006 Convert arm targets to new FRAME interface.
12007 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12008 (arm_frame_find_save_regs): Delete.
12009 (arm_frame_init_saved_regs): New.
12010 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12011 Allocate extra_info as required. Convert all uses of fsr.regs
12012 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12014 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12015 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12016 (check_prologue_cache, save_prologue_cache): Likewise.
12017 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12018 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12019 (FRAME_FIND_SAVED_REGS): Delete.
12020 (arm_frame_find_saved_regs): Delete prototype.
12021 (arm_frame_init_saved_regs): New prototype.
12022 (FRAME_INIT_SAVED_REGS): Define.
12024 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12026 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12028 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12030 From Jeff Law <law@redhat.com>:
12031 * infttrace.c: Include <sys/pstat.h>.
12032 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12033 exec file if the ttrace equivalent fails.
12035 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12037 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12038 (closeLogFile): Ditto.
12040 2002-01-20 Michael Chastain <mec@shout.net>
12042 * top.c (print_gdb_version): Bump copyright year to 2002.
12044 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12046 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12047 Zannoni and Eli Zaretskii.
12049 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12051 * buildsym.c: Update copyright years.
12052 * c-typeprint.c: Likewise.
12053 * dwarf2read.c: Likewise.
12054 * f-typeprint.c: Likewise.
12055 * gdbtypes.c: Likewise.
12056 * gdbtypes.h: Likewise.
12057 * hp-symtab-read.c: Likewise.
12058 * hpread.c: Likewise.
12059 * mdebugread.c: Likewise.
12060 * p-typeprint.c: Likewise.
12062 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12064 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12065 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12066 byte-order selectable.
12067 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12068 * arch-utils.c: Ditto.
12069 (set_endian): Ditto.
12070 (set_endian_from_file): Ditto.
12071 * gdbserver/low-sim.c (create_inferior): Ditto.
12072 * gdbarch.sh: Ditto.
12073 * gdbarch.h: Re-generate.
12074 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12075 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12076 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12077 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12078 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12079 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12080 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12081 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12083 * config/mips/tm-wince.h: Remove #undef of macro
12084 TARGET_BYTE_ORDER_SELECTABLE.
12085 * config/sh/tm-wince.h: Ditto.
12087 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12089 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12090 member function fields. Add accessor macro
12091 TYPE_FN_FIELD_ARTIFICIAL.
12092 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12093 * c-typeprint.c (c_type_print_base): Skip artificial member
12096 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12098 * f-typeprint.c: Delete unused function f_type_print_args.
12099 * p-typeprint.c: Delete unused function pascal_type_print_args.
12101 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12103 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12104 comment. Add ``artificial'' to ``union field_location''.
12106 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12108 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12109 * mdebugread.c (parse_symbol): Likewise.
12110 * stabsread.c (define_symbol): Likewise.
12111 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12112 initializing TYPE_FIELD_BITPOS to n (obsolete).
12113 (hpread_doc_function_type): Likewise.
12114 * hpread.c (hpread_function_type): Likewise.
12116 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12118 * configure.in (host_makefile_frag): Only require a host makefile
12119 fragment when a native build.
12120 * configure: Re-generate.
12122 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12124 * doublest.h (floatformat_from_type): Declare.
12125 * doublest.c (floatformat_from_type): New function.
12126 (convert_typed_floating): Use.
12128 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12129 call to function floatformat_from_type.
12131 * gdbarch.sh (IEEE_FLOAT): Delete.
12132 * gdbarch.h, gdbarch.c: Re-generate.
12133 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12134 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12135 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12136 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12137 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12138 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12139 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12140 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12141 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12142 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12143 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12144 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12146 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12147 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12148 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12149 * sh-tdep.c (sh_gdbarch_init): Ditto.
12150 * mips-tdep.c (mips_gdbarch_init): Ditto.
12151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12152 * cris-tdep.c (cris_gdbarch_init): Ditto.
12154 2002-01-20 Jiri Smid <smid@suse.cz>
12156 * configure.host, configure.tgt: Support x86-64.
12157 * NEWS: Note new target x86-64.
12159 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12160 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12161 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12162 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12163 x86-64-linux-nat.o): Fix dependencies.
12165 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12167 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12168 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12169 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12170 * config/sparc/xm-sun4os4.h: Delete file.
12171 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12173 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12175 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12176 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12177 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12178 * config/i386/i386lynx.mh (XM_FILE): Delete.
12179 * config/rs6000/xm-rs6000ly.h: Delete file.
12180 * config/sparc/xm-sparclynx.h: Delete file.
12181 * config/m68k/xm-m68klynx.h: Delete file.
12182 * config/i386/xm-i386lynx.h: Delete file.
12183 * config/xm-lynx.h: Delete file.
12184 * config/djgpp/fnchange.lst: Update.
12186 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12188 * alpha-tdep.c (alpha_register_byte): New function.
12189 (alpha_register_raw_size): Ditto.
12190 (alpha_register_virtual_size): Ditto.
12191 (alpha_skip_prologue_internal): Renamed from
12192 alpha_skip_prologue.
12193 (alpha_skip_prologue): New version that calls
12194 alpha_skip_prologue_internal.
12195 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12196 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12197 second argument from alpha_skip_prologue.
12198 (REGISTER_BYTE): Use alpha_register_byte.
12199 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12200 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12201 (FRAMELESS_FUNCTION_INVOCATION): Use
12202 generic_frameless_function_invocation_not.
12203 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12204 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12206 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12208 * config/mips/xm-news-mips.h: Delete file.
12209 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12211 * config/m88k/xm-m88k.h: Delete file.
12212 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12213 * config/m88k/xm-delta88v4.h: Ditto.
12214 * config/m88k/xm-delta88.h: Ditto.
12216 * config/alpha/xm-fbsd.h: Delete file.
12217 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12219 * config/sparc/xm-sparc.h: Delete file.
12220 * Makefile.in (xm-sun4os4.h): Delete dependency.
12221 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12222 * config/sparc/xm-sun4os4.h: Ditto.
12223 * config/sparc/xm-linux.h: Ditto.
12225 * config/i386/xm-windows.h: Delete file.
12227 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12229 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12230 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12232 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12234 * alpha-tdep.c (alpha_call_dummy_words): New.
12235 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12236 (CALL_DUMMY_P): Define.
12237 (CALL_DUMMY_WORDS): Define.
12238 (SIZEOF_CALL_DUMMY_WORDS): Define.
12240 2002-01-19 Per Bothner <per@bothner.com>
12242 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12243 isn't NULL, which can happen with some gcj-3.x-produced code.
12245 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12247 * alpha-tdep.c (alpha_register_virtual_type): New function.
12248 (alpha_init_frame_pc_first): Ditto.
12249 (alpha_fix_call_dummy): Ditto.
12250 (alpha_store_struct_return): Ditto.
12251 (alpha_extract_struct_value_address): Ditto.
12252 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12253 alpha_register_virtual_type.
12254 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12255 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12256 alpha_extract_struct_value_address.
12257 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12258 (INIT_FRAME_PC): Use init_frame_pc_noop.
12259 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12261 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12263 * i386gnu-nat.c: Include "i386-tdep.h".
12264 (fetch_fpregs): Simplify code dealing with uninitialized floating
12265 point states such that it doesn't require FP7_REGNUM.
12267 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12269 * alpha-tdep.c (frame_extra_info): New.
12270 (alpha_find_saved_regs): Make static. Use
12272 (alpha_frame_init_saved_regs): New function.
12273 (alpha_frame_saved_pc): Use frame->extra_info.
12274 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12275 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12276 (init_extra_frame_info): Rename to...
12277 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12278 (alpha_print_extra_frame_info): New function.
12279 (alpha_frame_locals_address): Ditto.
12280 (alpha_frame_args_address): Ditto.
12281 (alpha_pop_frame): Use frame->extra_info.
12282 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12283 alpha_frame_args_address.
12284 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12285 (alpha_find_saved_regs): Remove prototype.
12286 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12287 (EXTRA_FRAME_INFO): Remove.
12288 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12289 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12291 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12293 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12294 (alpha_cannot_fetch_register): Ditto.
12295 (alpha_cannot_store_register): Ditto.
12296 (alpha_register_convertible): Ditto.
12297 (alpha_use_struct_convention): Ditto.
12298 * config/alpha/tm-alpha.h: Update copyright years.
12299 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12300 (INNER_THAN): Use core_addr_lessthan.
12301 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12302 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12303 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12304 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12305 (FRAME_CHAIN): Remove unnecessary cast.
12307 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12309 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12312 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12314 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12315 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12316 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12317 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12318 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12319 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12320 * x86-64-linux-nat.c: Ditto.
12322 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12324 * alpha-tdep.c (alpha_register_name): New function.
12325 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12326 (REGISTER_NAME): Define.
12328 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12330 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12332 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12334 * alpha-tdep.c: Update copyright years.
12335 (alpha_next_pc): New function.
12336 (alpha_software_single_step): Ditto.
12337 * config/alpha/tm-alpha.h: Add prototype for
12338 alpha_software_single_step.
12340 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12342 * alphabsd-nat.c: Update copyright years.
12343 (fill_gregset): Use regcache_collect.
12344 (fill_fpregset): Likewise.
12345 (fetch_inferior_registers): Only fetch integer registers
12346 if requested to do so.
12347 (store_inferior_registers): Only store integer registers
12348 if requested to do so.
12350 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12352 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12353 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12354 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12355 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12356 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12357 * config/arm/linux.mh (XDEPFILES): Delete.
12358 * config/arm/nbsd.mh (XDEPFILES): Delete.
12359 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12360 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12361 * config/i386/i386m3.mh (XDEPFILES): Delete.
12362 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12363 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12364 * config/i386/fbsd.mh (XDEPFILES): Delete.
12365 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12366 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12367 * config/i386/i386v4.mh (XDEPFILES): Delete.
12368 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12369 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12370 * config/i386/i386aix.mh (XDEPFILES): Delete.
12371 * config/i386/go32.mh (XDEPFILES): Delete.
12372 * config/i386/cygwin.mh (XDEPFILES): Delete.
12373 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12374 * config/i386/i386mach.mh (XDEPFILES): Delete.
12375 * config/i386/i386v32.mh (XDEPFILES): Delete.
12376 * config/i386/linux.mh (XDEPFILES): Delete.
12377 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12378 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12379 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12380 * config/i386/i386sco.mh (XDEPFILES): Delete.
12381 * config/i386/i386v.mh (XDEPFILES): Delete.
12382 * config/i386/nbsd.mh (XDEPFILES): Delete.
12383 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12384 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12385 * config/i386/symmetry.mh (XDEPFILES): Delete.
12386 * config/i386/obsd.mh (XDEPFILES): Delete.
12387 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12388 * config/ia64/linux.mh (XDEPFILES): Delete.
12389 * config/ia64/aix.mh (XDEPFILES): Delete.
12390 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12391 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12392 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12393 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12394 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12395 * config/m68k/linux.mh (XDEPFILES): Delete.
12396 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12397 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12398 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12399 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12400 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12401 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12402 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12403 * config/m88k/delta88.mh (XDEPFILES): Delete.
12404 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12405 * config/m88k/m88k.mh (XDEPFILES): Delete.
12406 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12407 * config/mips/linux.mh (XDEPFILES): Delete.
12408 * config/mips/irix6.mh (XDEPFILES): Delete.
12409 * config/mips/irix5.mh (XDEPFILES): Delete.
12410 * config/mips/irix4.mh (XDEPFILES): Delete.
12411 * config/mips/irix3.mh (XDEPFILES): Delete.
12412 * config/mips/decstation.mh (XDEPFILES): Delete.
12413 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12414 (NATDEPFILES): Move core-aout.o to here.
12415 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12416 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12417 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12418 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12419 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12420 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12421 * config/pa/hpux11.mh (XDEPFILES): Delete.
12422 * config/powerpc/aix.mh (XDEPFILES): Delete.
12423 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12424 * config/powerpc/linux.mh (XDEPFILES): Delete.
12425 * config/romp/rtbsd.mh: Rename XDEPFILES.
12426 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12427 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12428 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12429 * config/s390/s390.mh (XDEPFILES): Delete.
12430 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12431 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12432 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12433 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12434 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12435 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12436 * config/sparc/linux.mh (XDEPFILES): Delete.
12437 * config/vax/vaxult.mh (XDEPFILES): Delete.
12438 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12439 * Makefile.in (DEPFILES): Remove XDEPFILES.
12441 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12443 * utils.c (internal_verror): Fix comments, default is yes not no.
12444 Update queries to match. Default to quit and dump core.
12446 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12448 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12450 * defs.h, event-top.c, gdbcmd.h: Ditto.
12451 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12452 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12453 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12454 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12455 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12456 * mi/mi-main.c:Ditto.
12458 * stack.c, symfile.c: Update copyright.
12460 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12462 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12463 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12464 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12465 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12467 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12469 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12470 * gdbserver/low-lynx.c (myattach): Likewise.
12471 * gdbserver/low-nbsd.c (myattach): Likewise.
12472 * gdbserver/low-sim.c (myattach): Likewise.
12473 * gdbserver/low-sparc.c (myattach): Likewise.
12474 * gdbserver/low-sun3.c (myattach): Likewise.
12476 * gdbserver/low-linux.c (myattach): New function.
12478 * gdbserver/server.c (attach_inferior): New function.
12479 (main): Handle "--attach".
12481 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12483 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12486 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12488 * c-typeprint.c (is_type_conversion_operator): Add additional
12489 check for non-conversion operators.
12491 2002-01-15 Michael Snyder <msnyder@redhat.com>
12493 * linux-proc.c: Add "info proc" command, a la procfs.c.
12494 (read_mapping): New function, abstract and re-use code.
12495 (linux_find_memory_regions): Use new func read_mapping.
12496 (linux_info_proc_cmd): New function, implement "info proc".
12497 (_initialize_linux_proc): Add new command "info proc".
12499 2002-01-15 Michael Snyder <msnyder@redhat.com>
12501 * symfile.c (generic_load): Use bfd_map_over_sections method
12502 instead of manipulating bfd structure members directly.
12503 (add_section_size_callback): New function, bfd sections callback
12504 used by generic_load.
12505 (load_sections_callback): New function, bfd sections callback
12506 used by generic_load.
12508 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12510 [Based on work by Jim Blandy]
12511 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12512 (builtin_type_vec128): Export.
12513 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12515 (builtin_type_vec128): New builtin type for 128 bit vector
12517 (build_gdbtypes): Initialize builtin_type_v16qi and
12518 builtin_type_v8hi. Create the vec128 register builtin type
12520 (build_builtin_type_vec128): New function.
12521 (_initialize_gdbtypes): Register builtin_type_v16qi and
12522 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12523 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12524 AltiVec register to new builtin type.
12526 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12528 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12531 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12533 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12534 CLEAN_UP_REGISTER_VALUE.
12535 * regcache.c (supply_register): Update only call.
12537 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12539 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12540 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12541 a29k-*-vxworks* targets as obsolete.
12543 2002-01-14 Michael Snyder <msnyder@redhat.com>
12545 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12546 until we can resolve portability issues.
12547 * gregset.h: Remove references to fpxregs.
12548 * gcore.c (gcore_command): Initialize note_sec to NULL.
12550 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12552 * signals.c (target_signal_to_name): Rewrite. Only use
12553 signals[].name when in bounds and non-NULL.
12555 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12557 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12558 * signals.c (target_signal_to_name): Verify that SIG is within the
12559 bounds of the signals array.
12561 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12563 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12565 2002-01-13 Keith Seitz <keiths@redhat.com>
12567 * stack.c (print_frame_info_base): Print the frame's pc
12568 only if when print_frame_info_listing_hook is not defined.
12570 2002-01-13 Keith Seitz <keiths@redhat.com>
12572 * varobj.c (varobj_set_value): Make sure that there were no
12573 errors evaluating the object before attempting to set its
12575 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12576 so this offset adjustment is no longer necessary.
12577 (create_child): Don't set the error flag if the child is
12578 a CPLUS_FAKE_CHILD.
12579 (value_of_child): If value_fetch_lazy fails, return NULL
12580 so that callers will be notified that an error occurred.
12581 (c_value_of_variable): Delay check of variable's validity
12582 until later. We actually want all structs and unions to have
12584 Do not return "???" for variables which could not be evaluated.
12585 This error condition must be returned to the caller so that it
12586 can get the error condition from gdb.
12587 (cplus_name_of_child): Adjust index for vptr before figuring
12588 out the name of the child.
12589 (cplus_value_of_child): If a child's (real) parent is not valid,
12590 don't even bother trying to give a value for it. Just return
12591 an error. Change all instances in this function.
12592 (cplus_type_of_child): If our parent is one of the "fake"
12593 parents, we need to get at the type of the real parent, and
12594 derive the child's true type using this information.
12596 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12598 From 2002-01-09 John Marshall <johnm@falch.net>:
12599 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12600 sources.redhat.com, and tweak some related URLs which had
12601 suffered from linkrot.
12603 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12606 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12607 structures passed in registers.
12609 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12611 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12612 white space which prevented compilation. Reported by DSK
12613 <dsk@student.unsw.edu.au>.
12615 2002-01-11 Michael Snyder <msnyder@redhat.com>
12617 * symfile.c (build_section_addr_info_from_section_tab):
12618 Use bfd access method instead of manipulating bfd directly.
12619 (syms_from_objfile): Ditto.
12620 (simple_overlay_update_1): Ditto.
12621 (simple_overlay_update): Ditto.
12622 (generic_load): Ditto.
12623 (overlay_unmapped_address): FIXME comment, bfd access methods.
12624 (sections_overlap): FIXME comment, bfd access methods.
12625 (pc_in_mapped_range): FIXME comment, bfd access methods.
12626 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12627 (section_is_mapped): FIXME comment, bfd access methods.
12628 (section_is_overlay): FIXME comment, bfd access methods.
12630 * symfile.c (generic_load): Whitespace and long line cleanups.
12631 Remove duplicate variable, change several local variables to
12632 more appropriate data types.
12633 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12635 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12637 From Peter Schauer:
12638 * language.c (longest_local_hex_string_custom): Use phex_nz to
12639 convert NUM to a hex string.
12641 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12643 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12645 Update Copyright year.
12647 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12649 * language.c (longest_raw_hex_string): Delete unused function.
12651 2002-01-11 Petr Sorfa <petrs@caldera.com>
12653 * MAINTAINERS (write-after-approval): Add myself.
12654 * dwarf2read.c (read_tag_string_type): Handling of
12656 (read_tag_string_type): FORTRAN fix to prevent propagation of
12658 (set_cu_language): Handling of DW_LANG_Fortran95
12660 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12662 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12663 GETPID(inferior_ptid).
12664 (store_inferior_registers): Likewise.
12666 2002-01-10 Jason Merrill <jason@redhat.com>
12668 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12671 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12673 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12674 and bfd/elf32-sh-nbsd.c.
12676 2002-01-10 Michael Snyder <msnyder@redhat.com>
12678 * NEWS: Mention --pid and corefile/proc-id behavior change.
12680 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12681 * gcore.c: Include cli/cli-decode.h instead of command.h.
12683 * main.c (captured_main): Add new command line option "--pid".
12684 If the second command line argument (following the symbol-file)
12685 begins with a digit, try to attach to it before trying to open
12687 (print_gdb_help): Document the "--pid" argument.
12689 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12691 * completer.c (command_completer): New function.
12693 * completer.h <command_completer>: Add prototype.
12695 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12696 completer for the "help" command.
12698 2002-01-09 Jason Merrill <jason@redhat.com>
12700 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12702 2002-01-09 Michael Snyder <msnyder@redhat.com>
12704 * i386-linux-nat.c (fill_fpxregset): Make global.
12705 (store_fpxregset): Ditto.
12707 * gregset.h (gdb_fpxregset_t): Define.
12708 (supply_fpxregset): Prototype.
12709 (fill_fpxregset): Prototype.
12711 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12713 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12715 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12716 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12717 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12719 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12721 * MAINTAINERS: Update target maintainer rules so that any
12722 Maintainer can approve a tested patch for a maintenance-only
12725 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12727 * MAINTAINERS (write-after-approval): Add myself.
12729 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12732 2002-01-08 Michael Snyder <msnyder@redhat.com>
12734 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12735 real name of the executable, rather than the /proc name.
12737 2002-01-03 Michael Snyder <msnyder@redhat.com>
12739 Implement a "generate-core-file" command in gdb, save target state.
12740 * gcore.c: New file. Implement new command 'generate-core-file'.
12741 Save a corefile image of the current state of the inferior.
12742 * linux-proc.c: Add linux-specific code for saving corefiles.
12743 * target.h (struct target_ops): Add new target vectors for saving
12744 corefiles; to_find_memory_regions and to_make_corefile_notes.
12745 (target_find_memory_regions): New macro.
12746 (target_make_corefile_notes): New macro.
12747 * target.c (update_current_target): Inherit new target methods.
12748 (dummy_find_memory_regions): New place-holder method.
12749 (dummy_make_corefile_notes): New place-holder method.
12750 (init_dummy_target): Initialize new dummy target vectors.
12751 * exec.c (exec_set_find_memory_regions): New function.
12752 Allow the exec_ops vector for memory regions to be taken over.
12753 (exec_make_note_section): New function, target vector method.
12754 * defs.h (exec_set_find_memory_regions): Export prototype.
12755 * procfs.c (proc_find_memory_regions): New function, corefile method.
12756 (procfs_make_note_section): New function, corefile method.
12757 (init_procfs_ops): Set new target vector pointers.
12758 (find_memory_regions_callback): New function.
12759 (procfs_do_thread_registers): New function.
12760 (procfs_corefile_thread_callback): New function.
12761 * sol-thread.c (sol_find_memory_regions): New function.
12762 (sol_make_note_section): New function.
12763 (init_sol_thread_ops): Initialize new target vectors.
12764 * inftarg.c (inftarg_set_find_memory_regions): New function.
12765 Allow to_find_memory_regions vector to be taken over.
12766 (inftarg_set_make_corefile_notes): New function.
12767 Allow to_make_corefile_notes vector to be taken over.
12768 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12769 interface layer if not target_has_execution (may be a corefile).
12770 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12771 * config/sparc/sun4sol2.mh: Ditto.
12772 * config/alpha/alpha-linux.mh: Ditto.
12773 * config/arm/linux.mh: Ditto.
12774 * config/i386/x86-64linux.mh: Ditto.
12775 * config/ia64/linux.mh: Ditto.
12776 * config/m68k/linux.mh: Ditto.
12777 * config/mips/linux.mh: Ditto.
12778 * config/powerpc/linux.mh: Ditto.
12779 * config/sparc/linux.mh: Ditto.
12781 2002-01-07 Michael Snyder <msnyder@redhat.com>
12783 * arm-linux-nat.c: Remove references to regcache.c internal data
12784 (registers[] and register_valid[]).
12786 2002-01-07 Michael Snyder <msnyder@redhat.com>
12788 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12789 so that attaching to a pid will automatically read the process's
12790 symbol file and shlibs.
12791 * Makefile.in: Add rule for linux-proc.o.
12792 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12793 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12794 * config/arm/linux.mh: Ditto.
12795 * config/i386/linux.mh: Ditto.
12796 * config/i386/x86-64linux.mh: Ditto.
12797 * config/ia64/linux.mh: Ditto.
12798 * config/m68k/linux.mh: Ditto.
12799 * config/mips/linux.mh: Ditto.
12800 * config/powerpc/linux.mh: Ditto.
12801 * config/sparc/linux.mh: Ditto.
12803 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12805 * win32-nat.c: Add i386-tdep.h dependency.
12807 2002-01-07 Michael Snyder <msnyder@redhat.com>
12809 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12810 instead of bfd_get_arch_size. Don't bail out just because
12811 there's no exec_bfd.
12813 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12814 * p-valprint.c (pascal_object_print_value): Ditto.
12815 * somread.c (som_symtab_read): Ditto.
12816 * symfile.c (simple_free_overlay_region_table): Ditto.
12817 * valops.c (value_assign): Ditto.
12819 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12820 use tilde_expand and strerror for opening save-tracepoints file.
12822 * thread-db.c (thread_db_new_objfile): Indendation fix.
12824 * infptrace.c (GDB_MAX_ALLOCA): New define.
12825 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12826 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12827 can be overridden with whatever value is appropriate to the host).
12828 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12829 alloca to allocate potentially large buffer.
12830 * rs6000-nat.c (child_xfer_memory): Ditto.
12831 * symm-nat.c (child_xfer_memory): Ditto.
12832 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12834 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12836 From Nick Clifton <nickc@redhat.com>
12837 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12839 2002-01-07 Michael Snyder <msnyder@redhat.com>
12841 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12842 Don't use exec_bfd if it's NULL.
12844 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12846 * valops.c (value_arg_coerce): Fix formatting.
12848 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12850 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12851 * gnu-nat.c: Ditto.
12853 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12855 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12856 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12857 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12858 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12859 z8k-coff have not been multi-arched. Update z8k-coff build
12862 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12864 * MAINTAINERS: Mark a29k target as obsolete.
12865 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12866 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12868 * NEWS: Note that a29k targets are obsolete.
12869 * a29k-tdep.c: Mark as obsolete.
12870 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12871 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12872 a29k-*-vxworks* targets as obsolete.
12873 * remote-adapt.c: Obsolete.
12874 * remote-eb.c: Obsolete.
12875 * remote-mm.c: Obsolete.
12876 * remote-udi.c: Obsolete.
12877 * config/a29k/a29k-udi.mt: Obsolete.
12878 * config/a29k/a29k.mt: Obsolete.
12879 * config/a29k/tm-a29k.h: Obsolete.
12880 * config/a29k/tm-vx29k.h: Obsolete.
12881 * config/a29k/vx29k.mt: Obsolete.
12883 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12885 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12886 with BFD_ENDIAN_BIG.
12888 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12890 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12891 * configure, config.in: Re-generate.
12892 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12893 * defs.h: Do not include <endian.h>.
12895 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12897 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12898 * config.in: Regenerate.
12899 * configure.in: Update copyright years.
12900 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12901 * configure: Regenerate.
12902 * i386bsd-nat.c: Update copyright years.
12903 (fill_gregset): Use regcache_collect.
12904 (fetch_inferior_registers): Only fetch integer registers
12905 if requested to do so. Add support for XMM registers
12906 using PT_GETXMMREGS.
12907 (store_inferior_registers): Only store integer registers
12908 if requested to do so. Add support for XMM registers
12909 using PT_SETXMMREGS.
12910 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12911 (store_inferior_registers): Remove.
12912 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12913 (fetch_elfcore_registers): New function.
12914 (i386nbsd_elfcore_fns): New.
12915 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12916 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12918 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12919 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12920 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12921 * config/i386/tm-nbsd.h: Update copyright years.
12922 (HAVE_SSE_REGS): Define.
12923 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12924 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12925 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12926 (SIGCONTEXT_PC_OFFSET): Remove.
12927 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12929 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12931 * configure.tgt: Remove powerpc-*-macos* target.
12932 * config/m68k/xm-mpw.h: Delete file.
12933 * config/xm-mpw.h: Delete file.
12934 * ser-mac.c: Delete file.
12935 * mpw-make.sed: Delete file.
12936 * mpw-config.in: Delete file.
12937 * mac-xdep.c: Delete file.
12938 * mac-gdb.r: Delete file.
12939 * mac-defs.h: Delete file.
12940 * mac-nat.c: Delete file.
12941 * config/powerpc/macos.mh: Delete file.
12942 * config/powerpc/macos.mt: Delete file.
12943 * config/powerpc/nm-macos.h: Delete file.
12944 * config/powerpc/tm-macos.h: Delete file.
12945 * source.c (openp, open_source_file): Remove obsolete code.
12946 * top.c (gdb_readline): Ditto.
12947 * utils.c (query): Ditto.
12948 * event-top.c (display_gdb_prompt): Ditto.
12949 * Makefile.in (ser-mac.o): Delete obsolete target.
12952 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12954 * defs.h (BIG_ENDIAN): Delete macro definition.
12955 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12956 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12957 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12958 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12959 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12960 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12961 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12962 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12963 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12964 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12965 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12966 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12967 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12968 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12969 * gdbarch.c: Re-generate.
12971 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12973 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12976 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12978 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12980 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12982 * value.h (value_ptr): Delete typedef.
12984 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12986 * i386nbsd-nat.c: Update copyright years.
12987 Include i386-tdep.h.
12989 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12991 * stabsread.c: Update copyright years.
12993 From Debashis Mahata <debashis.mahata@wipro.com>:
12994 (read_struct_fields): Deal with Sun C compiler erroneous stab
12995 output for structs and unions.
12998 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13000 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13003 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13005 * cp-abi.c: Fix whitespace.
13006 (baseclass_offset): New wrapper function.
13007 * cp-abi.h (baseclass_offset): Add prototype.
13008 (struct cp_abi_ops): Add baseclass_offset pointer.
13010 * valops.c (vb_match): Move to...
13011 * gnu-v2-abi.c (vb_match): here.
13012 * valops.c (baseclass_offset): Move to...
13013 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13015 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13017 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13018 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13019 * hpacc-abi.c (init_hpacc_ops): Likewise.
13021 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13023 * valops.c (find_overload_match): Accept obj as a
13024 reference parameter. Update it before returning.
13025 * value.h (find_overload_match): Update prototype.
13026 * eval.c (evaluate_subexp_standard): Pass object to
13027 find_overload_match by reference.
13029 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13031 * valarith.c: Replace value_ptr with struct value pointer. Remove
13032 register attribute from value declarations.
13035 * scm-lang.c (scm_lookup_name): Ditto.
13037 2002-01-03 Michael Snyder <msnyder@redhat.com>
13039 Abstract the functionality of iterating over mapped memory
13040 regions into a general purpose iterator function.
13041 * procfs.c (iterate_over_mappings): New function, general purpose
13042 iterator for memory sections.
13043 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13044 (solib_mappings_callback): New function, callback for above.
13045 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13046 (info_mappings_callback): New function, callback for above.
13048 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13050 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13052 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13053 * i386-tdep.c: Include "elf-bfd.h".
13054 (process_note_abi_tag_sections): New function.
13055 (i386_gdbarch_init): Add code to recognize various OS/ABI
13058 * maint.c (_initialize_maint_cmds): Add missing \ in
13061 For older changes see ChangeLog-2001
13067 version-control: never