2002-11-14 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2
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.
15 * v850ice.c: Update.
16
17 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
18
19 * utils.c (gdb_realpath): Add comment mentioning realpath with a
20 NULL buffer.
21
22 2002-11-13 Andrew Cagney <cagney@redhat.com>
23
24 * regcache.h (deprecated_read_register_bytes): Rename
25 read_register_bytes.
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.
41
42 2002-11-13 Jim Blandy <jimb@redhat.com>
43
44 * findvar.c (read_var_value): Doc fix.
45
46 2002-11-13 Andrew Cagney <cagney@redhat.com>
47
48 * regcache.c (struct regcache): Replace passthough_p with
49 readonly_p.
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
55 regcache_restore.
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.
63
64 2002-11-13 Andrew Cagney <cagney@redhat.com>
65
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.
72
73 2002-11-13 Andrew Cagney <cagney@redhat.com>
74
75 * regcache.c (register_buffer): Move to near start of file, update
76 description.
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.
91
92 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
93
94 * p-exp.y (name_not_typename): Use copy_name to
95 set current_type variable for fields of THIS.
96
97 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
98
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.
114
115 2002-11-12 Andrew Cagney <ac131313@redhat.com>
116
117 * utils.c (gdb_realpath): Make rp a constant pointer.
118
119 2002-11-12 Andrew Cagney <ac131313@redhat.com>
120
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().
124
125 2002-11-12 Andrew Cagney <ac131313@redhat.com>
126
127 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
128 to hang2.C; hang3.c to hang3.C.
129
130 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
131
132 * findvar.c (read_var_value): Reenable TLS code.
133
134 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
135 Jim Blandy <jimb@redhat.com>
136
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.
151
152 2002-11-11 David Carlton <carlton@math.stanford.edu>
153
154 * linespec.c (set_flags): New function.
155 (decode_line_1): Move code into set_flags.
156
157 2002-11-11 David Carlton <carlton@math.stanford.edu>
158
159 * linespec.c (decode_line_1): Move chunks of code to separate
160 functions.
161 (initialize_defaults): New function.
162 (decode_indirect): New function.
163
164 2002-11-11 Andrew Cagney <ac131313@redhat.com>
165
166 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
167 instead of void_code_ptr.
168 (sigtramp_saved_pc): Ditto.
169
170 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
171 i386_fp_regnum_p.
172
173 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
174
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.
181
182 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
183 new fields.
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.
193
194 2002-11-10 Andrew Cagney <ac131313@redhat.com>
195
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.
203
204 2002-11-09 Mark Kettenis <kettenis@gnu.org>
205
206 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
207 defined.
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
211 definitions.
212 (fetch_register, sore_register): Simplify.
213 (old_fetch_inferior_registers, old_store_inferior_registers):
214 Remove functions.
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.
226
227 2002-11-09 Klee Dienes <kdienes@apple.com>
228
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
231 of supply_register).
232 (i387_supply_fxsave): Ditto.
233 (i387_supply_fsave): Ditto (inherits the behavior from
234 i387_supply_register).
235
236 2002-11-09 Klee Dienes <kdienes@apple.com>
237
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).
242
243 2002-11-09 Andrew Cagney <ac131313@redhat.com>
244
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
248 comment.
249
250 2002-11-09 Andrew Cagney <ac131313@redhat.com>
251
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.
255
256 2002-11-09 Mark Kettenis <kettenis@gnu.org>
257
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.
262
263 2002-11-08 Andrew Cagney <ac131313@redhat.com>
264
265 * Makefile.in (DESTDIR): Define.
266 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
267 prefix.
268
269 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
270 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
271
272 2002-11-08 Andrew Cagney <ac131313@redhat.com>
273
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
286 specific reggroups.
287
288 2002-11-09 Mark Kettenis <kettenis@gnu.org>
289
290 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
291 request that's available in *BSD.
292
293 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
294
295 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
296 FDOFF_REGNUM.
297
298 2002-11-08 Andrew Cagney <ac131313@redhat.com>
299
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.
310
311 2002-11-08 Mark Kettenis <kettenis@gnu.org>
312
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.
317
318 2002-11-08 Andrew Cagney <ac131313@redhat.com>
319
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.
333
334 2002-11-08 Jim Blandy <jimb@redhat.com>
335
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.)
340
341 2002-11-08 Andrew Cagney <ac131313@redhat.com>
342
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.
361
362 2002-11-08 Jim Blandy <jimb@redhat.com>
363
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.)
367
368 2002-11-08 David Carlton <carlton@math.stanford.edu>
369
370 * linespec.c (symbol_found): New function.
371 (minsym_found): New function.
372 (decode_line_1): Separate out some code into separate functions.
373
374 2002-11-08 Joel Brobecker <brobecker@gnat.com>
375
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.
379
380 2002-11-08 Andrew Cagney <ac131313@redhat.com>
381
382 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
383 declaration that snuck in from change below.
384
385 2002-11-06 Andrew Cagney <cagney@redhat.com>
386
387 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
388 all callers.
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
393 MXCSR_REGNUM_P.
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.
405
406 2002-11-07 Joel Brobecker <brobecker@gnat.com>
407
408 Preparation work to convert the hppa targets to multiarch partial.
409
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
428 of "language.h".
429
430 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
431
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.
448
449 2002-11-07 Fernando Nasser <fnasser@redhat.com>
450
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
454 disassemble command.
455 (init_cli_cmds): Create disassemble command here instead.
456
457 2002-11-07 Andrew Cagney <ac131313@redhat.com>
458
459 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
460
461 2002-11-07 Andrew Cagney <ac131313@redhat.com>
462
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.
470
471 2002-11-07 Jim Blandy <jimb@redhat.com>
472
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.
477
478 2002-11-07 Joel Brobecker <brobecker@gnat.com>
479
480 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
481
482 2002-11-07 Andrew Cagney <ac131313@redhat.com>
483
484 * regcache.c (deprecated_registers_fetched): Update.
485 * regcache.h (deprecated_registers_fetched): Rename
486 registers_fetched.
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.
500
501 2002-11-06 Joel Brobecker <brobecker@gnat.com>
502
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.
510
511 2002-11-06 Andrew Cagney <ac131313@redhat.com>
512
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.
518
519 2002-11-06 Andrew Cagney <ac131313@redhat.com>
520
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.
529
530 2002-11-06 Joel Brobecker <brobecker@gnat.com>
531
532 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
533 to end of file, to be more consistent with the pratice followed
534 by other targets.
535
536 2002-11-06 Andrew Cagney <ac131313@redhat.com>
537
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.
544 Eliminate a goto.
545
546 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
547
548 * symtab.c (methods_info): Delete. It has been ifdeffed out for
549 ages.
550 (symtab_symbol_info): Remove eons old ifdeffed out code.
551 (_initialize_symtab): Remove prehistoric disabled 'info methods'
552 command.
553
554 2002-11-06 Theodore A. Roth <troth@openavr.org>
555
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.
562
563 2002-11-06 Jim Blandy <jimb@redhat.com>
564
565 * macrotab.h (struct macro_source_file): Doc fix.
566
567 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
568
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.
574
575 2002-11-05 Andrew Cagney <ac131313@redhat.com>
576
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
585 get_saved_register.
586
587 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
588
589 From Jim Ingham <jingham@apple.com>:
590 * event-top.c (gdb_disable_readline): New function.
591 (_initialize_event_loop): Move comment.
592
593 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
594
595 * event-loop.c (start_event_loop): Add comment.
596 Update copyright.
597
598 2002-11-05 Andrew Cagney <ac131313@redhat.com>
599
600 * infcmd.c (default_print_registers_info): Do not call
601 PRINT_REGISTER_HOOK.
602
603 2002-11-05 Andrew Cagney <ac131313@redhat.com>
604
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):
617 Re-define.
618 (sparc_do_registers_info): Declare.
619 (PRINT_REGISTER_HOOK): Delete macro.
620 (sparc_print_register_hook): Delete declaration.
621
622 2002-11-05 David Carlton <carlton@math.stanford.edu>
623
624 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
625 functions.
626 (lookup_symbol_aux_local): New function.
627 (lookup_symbol_aux_symtabs): New function.
628 (lookup_symbol_aux_psymtabs): New function.
629
630 2002-11-05 David Carlton <carlton@math.stanford.edu>
631
632 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
633 previous values of 'objfile' and 'block'.
634
635 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
636
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.
640
641 2002-11-03 Mark Kettenis <kettenis@gnu.org>
642
643 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
644 of puts_filtered.
645
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
649 surrounding code.
650
651 2002-11-02 Andrew Cagney <ac131313@redhat.com>
652
653 * gdbarch.sh (register_reggroup_p): Allow default value.
654 * gdbarch.h, gdbarch.c: Regenerate.
655
656 2002-11-02 Andrew Cagney <ac131313@redhat.com>
657
658 * regcache.h: Add coment indicating replacements for deprecated
659 functions.
660
661 2002-11-02 Andrew Cagney <cagney@redhat.com>
662
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.
679
680 2002-11-02 Andrew Cagney <cagney@redhat.com>
681
682 * regcache.h (deprecated_read_register_gen): Rename
683 read_register_gen.
684 (deprecated_write_register_gen): Rename write_register_gen.
685 * i387-tdep.c: Update.
686 * x86-64-linux-nat.c: Update
687 * wince.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.
696 * frame.c: Update.
697 * target.c: Update.
698 * blockframe.c: Update.
699 * x86-64-tdep.c: Update.
700 * xstormy16-tdep.c: Update.
701 * sh-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.
708
709 2002-11-01 Joel Brobecker <brobecker@gnat.com>
710
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.
717
718 2002-11-01 Andrew Cagney <cagney@redhat.com>
719
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.
731
732 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
733
734 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
735
736 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
737
738 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
739 trampolines in sigaction.
740
741 2002-10-31 Andrew Cagney <cagney@redhat.com>
742
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.
749
750 2002-10-31 Andrew Cagney <cagney@redhat.com>
751
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.
756
757 2002-10-31 Andrew Cagney <cagney@redhat.com>
758
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
763 static.
764
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.
770
771 2002-10-31 Andrew Cagney <cagney@redhat.com>
772
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.
783
784 2002-10-30 Joel Brobecker <brobecker@gnat.com>
785
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.
791
792 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
793
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
797 a name.
798
799 2002-10-28 David Carlton <carlton@math.stanford.edu>
800
801 * symtab.c (find_addr_symbol): Delete. (It was already commented
802 out.)
803 * symtab.h: Delete prototype for find_addr_symbol.
804
805 2002-10-26 Andrew Cagney <cagney@redhat.com>
806
807 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
808 DO_REGISTERS_INFO.
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.
816
817 2002-10-26 Mark Kettenis <kettenis@gnu.org>
818
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.
823
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.
827
828 * i386-tdep.c (i386_frame_saved_pc): Replace call to
829 deprecated_read_register_dummy with
830 frame_unwind_unsigned_register.
831
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'.
837
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.
843
844 * dwarf2cfi.c: Fix some formatting problems.
845 (context_cpy, read_encoded_pointer): Clarify comments.
846
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.
851
852 2002-10-25 Andrew Cagney <cagney@redhat.com>
853
854 * complaints.h (struct deprecated_complaint): Rename `struct
855 complaint'.
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.
863 * hpread.c: Update.
864 * mdebugread.c: Update.
865 * stabsread.c: Update.
866 * dwarf2read.c: Update.
867 * dwarfread.c: Update.
868 * elfread.c: Update.
869 * coffread.c: Update.
870 * stabsread.h: Update.
871 * dbxread.c: Update.
872 * buildsym.c: Update.
873 * gdbtypes.c: Update.
874 * macrotab.c: Update.
875
876 2002-10-25 Mark Kettenis <kettenis@gnu.org>
877
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.
881
882 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
883 * i386v-nat.c: Include "i386-tdep.h".
884
885 2002-10-25 Andrew Cagney <cagney@redhat.com>
886
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.
893
894 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
895
896 2002-10-24 Martin M. Hunt <hunt@redhat.com>
897
898 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
899
900 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
901
902 * symtab.h (INIT_SAL): Delete macro.
903 (init_sal): Export.
904 * symtab.c (init_sal): New function.
905
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.
926
927 2002-10-24 Michal Ludvig <mludvig@suse.cz>
928
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):
936 New prototypes.
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.
950
951 2002-10-23 David Carlton <carlton@math.stanford.edu>
952
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).
956
957 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
958
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
963 changes.
964 (varobj_update): Check varobj "updated" flag before
965 comparing old and refreshed values. Fix for
966 PR gdb/702.
967
968 2002-10-23 David Carlton <carlton@math.stanford.edu>
969
970 * parse.c (parse_exp_1): Use BLOCK_START.
971 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
972 SYMBOL_BLOCK_VALUE.
973 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
974
975 2002-10-23 David Carlton <carlton@math.stanford.edu>
976
977 * symtab.c: Delete cplusplus_hint.
978 Delete prototype for find_template_name_end.
979
980 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
981
982 * symtab.h: Update comment.
983
984 2002-10-23 Michael Snyder <msnyder@redhat.com>
985
986 * printcmd.c (address_info): Restore quotes in output.
987 * valops.c (value_of_local): Restore quotes in error message.
988
989 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
990
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.
995
996 2002-10-23 Michael Snyder <msnyder@redhat.com>
997
998 * valops.c (value_of_local): Restore quotes in error message.
999
1000 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1001
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.
1006
1007 2002-10-23 David Carlton <carlton@math.stanford.edu>
1008
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.
1016
1017 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1018
1019 * configure.in: Define NEW_PROC_API on Interix too.
1020 * configure: Regenerate.
1021
1022 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1023
1024 * configure: Regenerate using the proper version of autoconf.
1025
1026 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1027
1028 * findvar.c (read_var_value): Temporarily disable TLS code, until
1029 complete TLS support is added.
1030
1031 2002-10-21 Jim Blandy <jimb@redhat.com>
1032 Elena Zannoni <ezannoni@redhat.com>
1033
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
1042 stack operation.
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.
1047
1048 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1049
1050 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1051 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1052
1053 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1054
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.
1060
1061 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1062
1063 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1064 DBREG_DRX macro to acces debug registers.
1065
1066 * Makefile.in (i386obsd-tdep.o): New target.
1067
1068 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1069 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1070
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.
1079
1080 2002-10-19 Adam Fedor <fedor@gnu.org>
1081
1082 * objc-exp.y (name_not_typename): Fix invalid comment.
1083
1084 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1085
1086 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1087 to allocate partial syms and macro byte caches.
1088
1089 2002-10-18 David Carlton <carlton@math.stanford.edu>
1090
1091 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1092
1093 2002-10-18 Adam Fedor <fedor@gnu.org>
1094
1095 * stabsread.c (find_name_end): New function.
1096 (define_symbol): Use it.
1097
1098 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1099
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.
1104
1105 2002-10-17 David Carlton <carlton@math.stanford.edu>
1106
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 *.
1110
1111 2002-10-16 Adam Fedor <fedor@gnu.org>
1112
1113 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1114 names when matching breakpoints in current file.
1115
1116 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1117
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):
1122 New methods.
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
1126 class support.
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
1130
1131 2002-10-16 Klee Dienes <kdienes@apple.com>
1132
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].
1136
1137 2002-10-14 Adam Fedor <fedor@gnu.org>
1138
1139 * symtab.h: New objc_specific struct.
1140 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1141 (SYMBOL_DEMANGLED_NAME): Likewise.
1142
1143 2002-10-14 Adam Fedor <fedor@gnu.org>
1144
1145 * symfile.c (init_filename_language_table): Add ObjC file extension.
1146
1147 2002-10-14 Adam Fedor <fedor@gnu.org>
1148
1149 * utils.c (puts_filtered_tabular): New function.
1150 (fprintf_symbol_filtered): Get ObjC demangled name.
1151 * defs.h (puts_filtered_tabular): Declared.
1152
1153 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1154
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.
1158
1159 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1160
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.
1165
1166 2002-10-13 Adam Fedor <fedor@gnu.org>
1167
1168 * source.c (print_source_lines): Update comments.
1169
1170 2002-10-13 Adam Fedor <fedor@gnu.org>
1171
1172 * valops.c (value_of_local): New function.
1173 (value_of_this): Use it.
1174 * value.h (value_of_local): Declared.
1175
1176 2002-10-13 Adam Fedor <fedor@gnu.org>
1177
1178 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1179 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1180
1181 2002-10-12 Adam Fedor <fedor@gnu.org>
1182
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.
1190
1191 2002-10-11 Adam Fedor <fedor@gnu.org>
1192
1193 * printcmd.c (address_info): Print 'self' for ObjC.
1194
1195 2002-10-11 Adam Fedor <fedor@gnu.org>
1196
1197 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1198 OP_SELF.
1199
1200 2002-10-11 Adam Fedor <fedor@gnu.org>
1201
1202 * language.h (CAST_IS_CONVERSION): Add language_objc.
1203
1204 2002-10-11 Adam Fedor <fedor@gnu.org>
1205
1206 * defs.h (enum language): Add language_objc.
1207
1208 2002-10-11 Klee Dienes <kdienes@apple.com>
1209
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.
1216
1217 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1218
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.
1222
1223 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1224
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.
1241
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.
1248
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.
1258
1259 2002-10-10 Marko Mlinar <markom@opencores.org>
1260
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.
1264
1265 2002-10-09 Marko Mlinar <markom@opencores.org>
1266
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.
1270
1271 2002-10-08 Petr Sorfa <petrs@caldera.com>
1272
1273 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1274
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
1285 members.
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.
1298
1299 2002-10-06 Christopher Faylor <cgf@redhat.com>
1300
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.
1304
1305 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1306
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.
1311
1312 2002-10-04 Michael Snyder <msnyder@redhat.com>
1313
1314 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1315 before treating it as a single-step event.
1316
1317 2002-10-03 Adam Fedor <fedor@gnu.org>
1318
1319 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1320 (objc_demangle): Remove assignment in if statements, Replace
1321 free with xfree.
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__.
1331
1332 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1333
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
1339 PR gdb/192
1340
1341 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1342
1343 * MAINTAINERS: Add self to Write After Approval list.
1344
1345 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1346
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.
1352
1353 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1354
1355 * event-top.c (gdb_setup_readline): New function. Code moved from
1356 _initialize_event_loop().
1357 (_initialize_event_loop): Call gdb_setup_readline().
1358
1359 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1360
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.
1364
1365 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1366
1367 Fix PR gdb/778
1368 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1369 before recursing.
1370 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1371 of fill_in_vptr_fieldno.
1372
1373 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1374
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.
1384
1385 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1386
1387 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1388 value in register 3 adjusted by ppc_gp0_regnum.
1389
1390 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1391
1392 2002-10-02 Marko Mlinar <markom@opencores.org>
1393
1394 * MAINTAINERS: Add myself to the Write After Approval list.
1395
1396 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1397
1398 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1399 of the section for the N64 ABI, fixed.
1400
1401 * config/mips/tm-irix6.h: Include solib.h.
1402
1403 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1404
1405 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1406 GNU operators.
1407
1408 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1409
1410 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1411 and that "mi0" syntax has been removed.
1412
1413 2002-09-30 David Carlton <carlton@math.stanford.edu>
1414
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
1418 pacify GCC.
1419
1420 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1421
1422 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1423 "vrsave"'s register number.
1424
1425 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1426
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.
1438
1439 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1440
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.
1444
1445 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1446
1447 * event-loop.c (start_event_loop): Rename variable 'result' to
1448 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1449
1450 2002-09-30 Keith Seitz <keiths@redhat.com>
1451
1452 * gdb-events.sh (selected_thread_changed): New event.
1453 * gdb-events.c: Regenerated.
1454 * gdb-events.h: Regenerated.
1455
1456 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1457
1458 * MAINTAINERS: Add self to Write After Approval list.
1459
1460 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1461
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
1468 argument.
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.
1474
1475 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1476
1477 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1478 bfd/elf64-alpha-fbsd.c.
1479
1480 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1481
1482 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1483 i386gnu-tdep.c.
1484
1485 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1486
1487 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1488 __FUNCTION__.
1489 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1490 function name.
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.
1495
1496 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1497
1498 * sh-tdep.c (sh_use_struct_convention): Use definition according
1499 to ABI.
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.
1503
1504 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1505
1506 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1507 Fix some whitespace problems.
1508
1509 2002-09-27 David Carlton <carlton@math.stanford.edu>
1510
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.
1515 (sh3-rom.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.
1521 * sh3-rom.c: Ditto.
1522 * vax-tdep.c: Ditto.
1523
1524 2002-09-27 David Carlton <carlton@math.stanford.edu>
1525
1526 * config/djgpp/fnchange.lst: Add entries for
1527 gdb/testsuite/gdb.c++/m-static files.
1528
1529 2002-09-27 Jim Wilson <wilson@redhat.com>
1530
1531 * MAINTAINERS: Add myself to the Write After Approval list.
1532
1533 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1534
1535 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1536
1537
1538 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1539
1540 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1541 frame.
1542
1543 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1544
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.
1552
1553 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1554
1555 From Grace Sainsbury <graces@redhat.com>:
1556 * Makefile.in (gdbtk-main.o): New target.
1557 (gdb.o): New target.
1558 (main_h): Define.
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".
1569 (main): Delete.
1570 (struct captured_main_args): Delete.
1571 (gdb_main): New function.
1572 * main.h: New file.
1573 * gdb.c: New File.
1574
1575 2002-09-25 Andrew Cagney <cagney@redhat.com>
1576
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.
1592
1593 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1594
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.
1598
1599 2002-09-24 Jim Blandy <jimb@redhat.com>
1600
1601 Fix from Paul Breed:
1602 * main.c (captured_main): Add a `break' after the case for 'b'.
1603
1604 2002-09-24 Keith Seitz <keiths@redhat.com>
1605
1606 * varobj.c (c_type_of_child): Use get_target_type instead
1607 of TYPE_TARGET_TYPE.
1608
1609 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1610
1611 * source.c (get_current_or_default_source_symtab_and_line): Remove
1612 function.
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
1615 defined.
1616 (get_current_source_symtab_and_line): Initialize sal.pc and
1617 sal.end fields.
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.
1624
1625 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1626
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.
1634
1635 2002-09-21 Andrew Cagney <cagney@redhat.com>
1636
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.
1641
1642 2002-09-20 Nick Clifton <nickc@redhat.com>
1643
1644 * NEWS: Announce that V850EA ISA is no longer supported.
1645 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1646
1647 2002-09-20 David Carlton <carlton@math.stanford.edu>
1648
1649 * Makefile.in (c-lang.o): Correct dependencies.
1650 (utils.o): Gather dependencies.
1651 (charset.o): Move.
1652 * c-lang.c: #include "gdb_string.h"
1653
1654 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1655
1656 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1657 * cli/cli-cmds.c (list_command): New function. Implements the new
1658 cli edit command.
1659 (_init_cli_cmds): Add new command definition.
1660 * gdb.1: Document edit command.
1661 * doc/gdb.texinfo: Document edit command.
1662
1663 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1664
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
1681 its alias.
1682 * source.h: Add declarations for the new functions above.
1683 * symtab.h: Remove declarations for the global variables mentioned
1684 above.
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.
1697
1698 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1699
1700 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1701 with what gcc thinks is correct.
1702
1703 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1704
1705 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1706 multiple register push instruction.
1707
1708 2002-09-19 Jim Blandy <jimb@redhat.com>
1709
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
1715 token.
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
1721 before printing.
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.
1738
1739 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1740
1741 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1742 bison 1.35 warning.
1743
1744 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1745
1746 * gdb_mbuild.sh: New file.
1747
1748 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1749
1750 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1751
1752 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1753
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.
1758
1759 2002-09-18 Michael Snyder <msnyder@redhat.com>
1760
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.
1766 * p-exp.y: Ditto.
1767 * jv-exp.y: Ditto.
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
1787 for Objective-C.
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
1794 for colons.
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
1803 method names.
1804
1805 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1806
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.
1822 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.
1837
1838 2002-09-18 Michael Snyder <msnyder@redhat.com>
1839
1840 Contributed by Apple Computer, Inc. Merged with current sources
1841 by Adam Fedor <fedor@doc.com> [cagney].
1842
1843 * objc-lang.c: First clean-up round: comments, indentation.
1844 * objc-lang.h: Ditto.
1845 * objc-lang.y: Ditto.
1846
1847 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1848
1849 * maint.c (maintenance_internal_error): Print the parameter as the
1850 error message.
1851 (maintenance_internal_warning): New function.
1852 (_initialize_maint_cmds): Add command `maint internal-warning'.
1853
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.
1861
1862 2002-09-18 Michael Snyder <msnyder@redhat.com>
1863
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.
1868
1869 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1870
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.
1875
1876 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1877 comments.
1878
1879 * config/djgpp/fnchange.lst: Handle name clashes between
1880 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1881 bfd/coff-tic80.c.
1882
1883 * i386-linux-tdep.h: Fix tipo.
1884
1885 2002-09-18 Adam Fedor <fedor@gnu.org>
1886
1887 * MAINTAINERS: Add myself to the Write After Approval list.
1888
1889 2002-09-18 Jim Blandy <jimb@redhat.com>
1890
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.
1895
1896 2002-09-18 David Carlton <carlton@math.stanford.edu>
1897
1898 * MAINTAINERS: Alphabetize Write After Approval list.
1899
1900 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1901
1902 Fix PR gdb/709
1903 * values.c (value_static_field): Call read_var_value.
1904
1905 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1906
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
1910 return value.
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.
1915
1916 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1917
1918 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1919 registers.
1920
1921 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1922
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 "".
1938 Fix PR gdb/480.
1939
1940 2002-09-17 Theodore A. Roth <troth@verinet.com>
1941
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().
1946
1947 2002-09-17 Michael Snyder <msnyder@redhat.com>
1948
1949 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1950 RTE will take care of it.
1951
1952 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1953
1954 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1955 invalid, return SP_REGNUM.
1956
1957 2002-09-17 Michael Snyder <msnyder@redhat.com>
1958
1959 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1960 point registers without sign extension.
1961
1962 2002-09-17 Andrew Cagney <cagney@redhat.com>
1963
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.
1972
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.
2005
2006 2002-09-17 Tom Tromey <tromey@redhat.com>
2007
2008 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2009 is "'".
2010
2011 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2012
2013 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2014 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2015 NEXT_PROLOGUE_INSN.
2016 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2017 NEXT_PROLOGUE_INSN.
2018
2019 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2020
2021 * osfsolib.c: Remove file, replaced by solib-osf.c.
2022 * Makefile.in: Remove compilation rules for osfsolib.c.
2023
2024 2002-09-16 David Carlton <carlton@math.stanford.edu>
2025
2026 * cp-valprint.c (cp_print_class_method): Correct args to
2027 check_stub_method_group.
2028
2029 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2030
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
2036 said behavior.
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
2040
2041 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2042
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
2047 tm_print_insn_info.
2048
2049 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2050
2051 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2052 zero.
2053
2054 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2055
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.
2059
2060 2002-09-13 Christopher Faylor <cgf@redhat.com>
2061
2062 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2063
2064 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2065
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.
2071
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
2076 destructors.
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.
2081
2082 * cp-valprint.c (cp_print_class_method): Call
2083 check_stub_method_group instead of check_stub_method. Remove
2084 extraneous QUITs.
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.
2088
2089 2002-09-13 Andrew Cagney <cagney@redhat.com>
2090
2091 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2092 * gdbarch.h, gdbarch.c: Regenerate.
2093
2094 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2095
2096 * frame.c (find_saved_register): Delete function.
2097 * frame.h (find_saved_register): Delete declaration.
2098 Fix PR gdb/631.
2099
2100 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2101
2102 * mips-tdep.c (read_next_frame_reg): Re-hack using
2103 frame_register_unwind.
2104
2105 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2106
2107 * mips-tdep.c (mips_get_saved_register): Re-hack using
2108 frame_register_unwind.
2109
2110 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2111
2112 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2113 vector. Will be useful for Interix.
2114 * gdbarch.h, gdbarch.c: Regenerate.
2115
2116 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2117 name of the malloc function by NAME_OF_MALLOC.
2118
2119 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2120
2121 * value.h (find_function_in_inferior): Add const keyword to
2122 one of the parameters. Allows us to invoke this function with
2123 a const char *.
2124 * valops.c (find_function_in_inferior): Likewise.
2125
2126 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2127
2128 * exec.c (xfer_memory): Fix compilation warning with old versions
2129 of GCC.
2130 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2131
2132 2002-09-12 David Carlton <carlton@math.stanford.edu>
2133
2134 * symtab.h: Run through gdb_indent.h.
2135 Add 2002 to Copyright year list.
2136
2137 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2138
2139 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2140 mach constants.
2141 * MAINTAINERS: Add myself to write after approval list.
2142
2143 2002-09-11 J. Brobecker <brobecker@gnat.com>
2144
2145 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2146
2147 2002-09-11 J. Brobecker <brobecker@gnat.com>
2148
2149 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2150 Interix.
2151
2152 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2153
2154 * procfs.c (do_detach): Clear current signal, not just fault.
2155 Corrects problem with breakpoint trap signal leaking to detached
2156 process on Tru64.
2157
2158 2002-09-10 Michael Snyder <msnyder@redhat.com>
2159
2160 * buildsym.c (finish_block): Protect against null pointer.
2161
2162 2002-09-10 Andrew Cagney <cagney@redhat.com>
2163
2164 * infcmd.c (default_print_registers_info): Send all output to
2165 ``file'' instead of ``gdb_stdout''.
2166
2167 2002-09-10 Michael Snyder <msnyder@redhat.com>
2168
2169 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2170 LONGEST, and use signed register read (addresses are sign-
2171 extended for mips).
2172
2173 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2174
2175 * event-loop.c (gdb_do_one_event): Make public.
2176 * event-loop.h (gdb_do_one_event): Declare.
2177
2178 2002-09-10 Jeff Law <law@redhat.com>
2179
2180 * infttrace.c (child_resume): Simplify and rework to avoid
2181 TT_PROC_CONTINUE.
2182
2183 2002-09-09 Fred Fish <fnf@intrinsity.com>
2184
2185 * printcmd.c (print_scalar_formatted): "len" is the number of
2186 target bytes, NOT the number of target bits.
2187
2188 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2189
2190 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2191 * top.c (init_main): Set rl_terminal_name.
2192
2193 2002-09-08 Aidan Skinner <aidan@velvet.net>
2194
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.
2199
2200 2002-09-07 Christopher Faylor <cgf@redhat.com>
2201
2202 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2203 Add XP.
2204
2205 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2206
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.
2214
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
2220 defines.
2221 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2222
2223 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2224 whitespace.
2225
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.
2230
2231 2002-09-05 Michael Snyder <msnyder@redhat.com>
2232
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.
2237
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.
2242
2243 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2244
2245 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2246 * README: Update.
2247
2248 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2249
2250 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2251 if arm_apcs_32 is false.
2252
2253 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2254
2255 GDB 5.3 branch created.
2256
2257 2002-09-03 Theodore A. Roth <troth@verinet.com>
2258
2259 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2260 generic_unwind_get_saved_register.
2261
2262 2002-09-03 David Carlton <carlton@math.stanford.edu>
2263
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.
2267
2268 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2269
2270 * x86-64-linux-tdep.c: Include gdb_string.h
2271 * x86-64-linux-nat.c: Ditto.
2272
2273 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2274
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.
2282
2283 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2284
2285 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2286 dependency list.
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.
2295
2296 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2297
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.
2306
2307 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2308
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
2312 tdep->sigtramp_end.
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.
2316
2317 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2318
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,
2330 and nbsd-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.
2338
2339 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2340
2341 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2342 registers if the target really has them.
2343
2344 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2345
2346 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2347 than nbsd-tdep.h.
2348
2349 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2350
2351 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2352 list.
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.
2358
2359 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2360
2361 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2362 list.
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.
2380
2381 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2382
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.
2386
2387
2388 2002-08-29 Jim Blandy <jimb@redhat.com>
2389
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.
2395
2396 2002-08-29 Keith Seitz <keiths@redhat.com>
2397
2398 * stack.c (print_frame_info_base): Always set current_source_symtab
2399 and current_source_line.
2400
2401 2002-08-29 Donn Terry <donnte@microsoft.com>
2402
2403 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2404
2405 2002-08-28 Keith Seitz <keiths@redhat.com>
2406
2407 * stack.c (select_frame): Add FIXME concerning selected-frame
2408 events.
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
2412 notification.
2413 (down_silently_base): Likewise.
2414
2415 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2416
2417 * Makefile.in: Update dependencies for all gdb/*.c files.
2418
2419 2002-08-27 Tom Tromey <tromey@redhat.com>
2420
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.
2434
2435 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2436
2437 * cli/cli-script.h (copy_command_lines): Export.
2438 * breakpoint.c: Include cli/cli-script.h.
2439 * Makefile.in (breakpoint.o): Update dependencies.
2440
2441 2002-08-26 Michael Snyder <msnyder@redhat.com>
2442
2443 * breakpoint.c (insert_breakpoints): Protect all references
2444 to 'process_warning'. Shorten long lines.
2445
2446 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2447
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.
2453
2454 2002-08-26 Michael Snyder <msnyder@redhat.com>
2455
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.
2465
2466 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2467
2468 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2469 deleted in 2002-08-20 commit. This function is still used by
2470 ppc-linux-nat.c.
2471
2472 2002-08-26 Keith Seitz <keiths@redhat.com>
2473
2474 * gdb-events.sh: Add selected-frame-level-changed event.
2475 * gdb-events.c: Regenerated.
2476 * gdb-events.h: Regenerated.
2477
2478 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2479
2480 Fix PR gdb/393:
2481 * inflow.c (terminal_save_ours): New function to save terminal
2482 settings.
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.
2498
2499 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2500
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.
2505
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.
2510
2511 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2512
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.
2516
2517 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2518
2519 * regcache.h (register_offset_hack): Declare.
2520 (regcache_cooked_read_using_offset_hack): Declare.
2521 (regcache_cooked_write_using_offset_hack): Declare.
2522
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.
2529
2530 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2531
2532 * regcache.c (struct regcache_descr): Add field register_type.
2533 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2534 in as a parameter
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.
2541
2542 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2543
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>.
2547
2548 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2549
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.
2554
2555 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2556
2557 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2558 store_return_value.
2559 (e500_extract_return_value): Change type of valbuf pointer to
2560 void.
2561
2562 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2563
2564 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2565 workaround.
2566
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.
2570
2571 2002-08-23 Andrew Cagney <cagney@redhat.com>
2572
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.
2577
2578 * values.c (set_return_value): Pass current_regcache to
2579 STORE_RETURN_VALUE.
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.
2583
2584 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2585 STORE_RETURN_VALUE.
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.
2596
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.
2620
2621 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2622
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.
2625
2626 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2627
2628 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2629 problems.
2630
2631 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2632
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.
2636
2637 2002-08-23 Grace Sainsbury <graces@redhat.com>
2638
2639 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2640 when breakpoints fail. Move general breakpoint error messages to
2641 insert_breakpoints.
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
2646 once.
2647 (delete_breakpoints): Make insert error messsages more explicit.
2648
2649 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2650
2651 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2652 gdbserver/ChangeLog.
2653
2654 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2655
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 '.'.
2661
2662 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2663 member.
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.
2667
2668 2002-08-23 Donn Terry <donnte@microsoft.com>
2669
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
2672 and PCUNKILL.
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.
2677
2678 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2679
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.
2685
2686 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2687
2688 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2689 ev_offset fields.
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
2693 pseudo gpr's.
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.
2699
2700 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2701
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.
2705
2706 2002-08-22 Andrew Cagney <cagney@redhat.com>
2707
2708 * NEWS: Mention that the i960 has been made obsolete.
2709 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2710 i960-tdep.c
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.
2723
2724 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2725
2726 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2727 detach to allow reinitialization.
2728
2729 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2730
2731 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2732 attempt).
2733
2734 2002-08-22 Jim Blandy <jimb@redhat.com>
2735
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.
2740
2741 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2742
2743 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2744 an e500 executable.
2745
2746 2002-08-21 Michael Snyder <msnyder@redhat.com>
2747
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.
2753
2754 2002-08-21 Jim Blandy <jimb@redhat.com>
2755
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
2758 derived class.
2759
2760 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2761
2762 * infcmd.c (default_print_registers_info): Replace
2763 do_registers_info.
2764 (registers_info): Use gdbarch_print_registers_info instead of
2765 DO_REGISTERS_INFO.
2766 * inferior.h (default_print_registers_info): Replace
2767 do_registers_info.
2768 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2769 (DO_REGISTERS_INFO): Change to a predicate function.
2770 * gdbarch.h, gdbarch.c: Regenerate.
2771
2772 2002-08-21 Keith Seitz <keiths@redhat.com>
2773
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.
2779
2780 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2781
2782 * NEWS: Add an entry regarding the improvement of the next/step
2783 operation on Alpha Tru64 multi-processor machines.
2784
2785 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2786
2787 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2788 directores.
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.
2792
2793 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2794
2795 * frame.c (frame_register_unwind): When a register, set addrp to
2796 the register's byte.
2797
2798 2002-08-20 Michael Snyder <msnyder@redhat.com>
2799
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):
2804 Make static.
2805 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2806
2807 2002-08-20 Andrew Cagney <cagney@redhat.com>
2808
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.
2820 * dst.h: Ditto.
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.
2828
2829 2002-08-20 Michael Snyder <msnyder@redhat.com>
2830
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.
2834
2835 2002-08-20 Michael Snyder <msnyder@redhat.com>
2836
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):
2840 Add.
2841 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2842
2843 2002-08-20 Michael Snyder <msnyder@redhat.com>
2844
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.
2850
2851 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2852
2853 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2854
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.
2869
2870 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2871
2872 * rs6000-tdep.c: Clean up comments.
2873
2874 2002-08-20 Andrew Cagney <cagney@redhat.com>
2875
2876 * h8300-tdep.c: Re-indent file.
2877
2878 2002-08-20 Jim Blandy <jimb@redhat.com>
2879
2880 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2881 default for this.
2882
2883 2002-08-20 Keith Seitz <keiths@redhat.com>
2884
2885 * breakpoints.c (watch_command_1): Use internal breakpoint
2886 when setting a watchpoint_scope breakpoint.
2887
2888 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2889
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.
2894
2895 2002-08-19 Michael Snyder <msnyder@redhat.com>
2896
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.
2915
2916 2002-08-19 Michael Snyder <msnyder@redhat.com>
2917
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.
2926
2927 2002-08-20 Michael Snyder <msnyder@redhat.com>
2928
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.
2935
2936 2002-08-20 David Carlton <carlton@math.stanford.edu>
2937
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.
2942
2943 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2944
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.
2948
2949 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2950
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.
2957
2958 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2959
2960 * infcmd.c (do_registers_info): Print vector registers in hex
2961 format only.
2962 (print_vector_info): Check that printing registers
2963 makes sense.
2964 (print_float_info): Ditto.
2965
2966 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2967
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.
2974
2975 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2976
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.
2982
2983 2002-08-14 Michael Snyder <msnyder@redhat.com>
2984
2985 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2986
2987 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2988
2989 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2990 register.
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
3003 registers offsets.
3004
3005 2002-08-19 David Carlton <carlton@math.stanford.edu>
3006
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
3009 optimized out.
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.
3016
3017 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3018
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.
3023
3024 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3025
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.
3039
3040 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3041
3042 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3043 conditionally.
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.
3050
3051 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3052
3053 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3054
3055 2002-08-19 Aidan Skinner <aidan@velvet.net>
3056
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.
3063
3064 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3065
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.
3075
3076 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3077
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.
3084
3085 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3086
3087 * blockframe.c: Fix a few coding standard violations.
3088
3089 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3090
3091 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3092 here from ...
3093 * config/i386/tm-i386sco5.h: ... here. File removed.
3094 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3095
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
3105 "i386/tm-i386v.h".
3106 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3107 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3108 "i386/tm-i386.h".
3109
3110 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3111
3112 * config/i386/nm-i386v.h: Add protection against
3113 multiple-inclusion.
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
3120 ubase variable.
3121
3122 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3123
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.
3142
3143 2002-08-18 Aidan Skinner <aidan@velvet.net>
3144
3145 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3146 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3147
3148 2002-08-18 Aidan Skinner <aidan@velvet.net>
3149
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.
3155
3156 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3157
3158 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3159 ABI.
3160
3161 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3162
3163 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3164
3165 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3166 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3167
3168 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3169 write_register_gen instead of write_register_bytes.
3170
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*
3176 targets obsolete.
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
3183 obsolete.
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.
3187
3188 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3189
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.
3196
3197 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3198
3199 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3200 comment.
3201
3202 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3203
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.
3207
3208 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3209
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.
3215
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
3218 mips*-*-*.
3219
3220 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3221
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.
3227
3228 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3229
3230 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3231 generic_func_frame_valid instead of func_frame_valid.
3232
3233 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3234
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.
3240
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.
3246
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().
3251
3252 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3253
3254 * infrun.c (handle_inferior_event): Minor reformatting, to make
3255 a rather long condition expression easier to read.
3256
3257 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3258
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.
3264
3265 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3266
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.
3273
3274 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3275
3276 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3277 skip_trampoline_code, for better namespace-proofing.
3278
3279 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3280
3281 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3282
3283 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3284
3285 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3286
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.
3291
3292 2002-08-16 Keith Seitz <keiths@redhat.com>
3293
3294 * gdb-events.sh (clear_gdb_event_hooks): New function.
3295 * gdb-events.c: Regenerate.
3296 * gdb-events.h: Regenerate.
3297
3298 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3299
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.
3303
3304 2002-08-16 Grace Sainsbury <graces@redhat.com>
3305
3306 * remote.c (remote_insert_hw_breakpoint)
3307 (remote_remove_hw_breakpoint): Fix calculation of length field
3308 for Z-packet.
3309
3310 2002-08-15 Michael Snyder <msnyder@redhat.com>
3311
3312 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3313 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3314 (supply_fpregset): Ditto.
3315
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):
3322 Delete.
3323 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3324 from macros to functions.
3325
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):
3335 New functions.
3336 (mips_gdbarch_init): Set up function_start_offset,
3337 register_virtual_size, pc_in_sigtramp.
3338
3339 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3340
3341 * infcmd.c (vector_info): New function.
3342 (_initialize_infcmd): Add command "info vector".
3343 (print_vector_info): New function.
3344
3345 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3346 * gdbarch.h, gdbarch.c: Regenerate.
3347
3348 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3349
3350 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3351 ``print_all''. Only print vector registers when ``print_all''.
3352
3353 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3354
3355 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3356 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3357
3358 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3359 Add `args' parameter.
3360 * gdbarch.h, gdbarch.c: Regenerate.
3361
3362 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3363
3364 * infcmd.c (float_info): Call print_float_info.
3365 (print_float_info): New function. By default, print the
3366 floating-point registers.
3367
3368 * arch-utils.h (default_print_float_info): Delete declaration.
3369 * arch-utils.c (default_print_float_info): Delete function.
3370
3371 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3372
3373 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3374 out define.
3375
3376 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3377 FRAME.
3378
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.
3388
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):
3393 Moved here from ...
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.
3402
3403 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3404
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):
3412 Move defines to ...
3413 * config/i386/nm-i386sco5.h: ... here.
3414 (kernel_u_size): Add prototype. Improve a few comments and add
3415 protection against multiple inclusion.
3416
3417 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3418 out define.
3419
3420 * uw-thread.c (SP_ARG0): Define if not already defined.
3421 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3422
3423 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3424
3425 * config/i386/tm-i386.h: Don't include "regcache.h".
3426
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
3433 latter for output.
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.
3438
3439 2002-08-13 Michael Snyder <msnyder@redhat.com>
3440
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.
3447
3448 2002-08-14 Keith Seitz <keiths@redhat.com>
3449
3450 * Makefile.in (install-gdbtk): Create insight plugin directory.
3451 Install plugins.tcl file.
3452
3453 2002-08-14 Keith Seitz <keiths@redhat.com>
3454
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.
3459
3460 2002-08-13 Michael Snyder <msnyder@redhat.com>
3461
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.
3465
3466 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3467
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.
3474
3475 2002-08-13 Andrew Cagney <cagney@redhat.com>
3476
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
3480 nr_raw_registers.
3481 (set_register_cached): Add range checking assertions. Use
3482 current_regcache.
3483
3484 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3485
3486 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3487 numbers for MMX registers.
3488
3489 2002-08-13 Andrew Cagney <cagney@redhat.com>
3490
3491 * i386-tdep.c (i386_gdbarch_init): Use
3492 generic_unwind_get_saved_register.
3493
3494 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3495
3496 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3497 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3498 target vector.
3499 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3500 Delete. Add comment regarding this now-deleted target method.
3501
3502 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3503
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.
3514
3515 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3516
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
3527 by the function.
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.
3533
3534 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3535
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
3539 registers.
3540 (m68hc11_register_raw_size): Likewise.
3541
3542 2002-08-13 Andrew Cagney <cagney@redhat.com>
3543
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.
3551
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.
3556
3557 2002-08-13 Andrew Cagney <cagney@redhat.com>
3558
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.
3565
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.
3570
3571 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3572
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.
3576
3577 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3578
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.
3582
3583 2002-08-12 Andrew Cagney <cagney@redhat.com>
3584
3585 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3586 declarations.
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.
3595
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.
3600
3601 2002-08-11 Aidan Skinner <aidan@velvet.net>
3602
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.
3606
3607 * ada-lang.c (ada_array_element_type)
3608 (ada_lookup_partial_symbol): Fix typos in parameter list.
3609
3610 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3611 Fix prototype names so that grep ^func works properly.
3612
3613 2002-08-10 Andrew Cagney <cagney@redhat.com>
3614 Elena Zannoni <ezannoni@redhat.com>
3615 Martin M. Hunt <hunt@redhat.com>
3616
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.
3625
3626 2002-08-09 Andrew Cagney <cagney@redhat.com>
3627
3628 * regcache.c (regcache_dump): Compare the register offset
3629 with REGISTER_BYTE.
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.
3634
3635 2002-08-09 Andrew Cagney <cagney@redhat.com>
3636
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.
3649
3650 2002-08-09 Michael Snyder <msnyder@redhat.com>
3651
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.
3663
3664 2002-08-09 Don Howard <dhoward@redhat.com>
3665
3666 * memattr.c (mem_info_command): Print special case of upper bound
3667 as max CORE_ADDR + 1.
3668
3669 2002-08-08 Michael Snyder <msnyder@redhat.com>
3670
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.
3673
3674 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3675
3676 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3677 saved regs value.
3678 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3679 mips_find_saved_regs().
3680 (mips_pop_frame): Likewise.
3681
3682 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3683
3684 * blockframe.c (frame_saved_regs_register_unwind): Revise
3685 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3686 frames are in use.
3687
3688 2002-08-09 Grace Sainsbury <graces@redhat.com>
3689
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
3694 vector.
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
3701 target vector.
3702
3703 From Mark Salter:
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.
3708
3709 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3710
3711 * cli/cli-dump.c: Change fopen modes to use binary open modes
3712 as defined in include/fopen-bin.h throughout.
3713
3714 2002-08-08 Michael Snyder <msnyder@redhat.com>
3715
3716 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3717
3718 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3719
3720 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3721 assertion failure by returning early after a warning.
3722
3723 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3724
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.
3730
3731 2002-08-08 Grace Sainsbury <graces@redhat.com>
3732
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 *.
3737
3738 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3739
3740 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3741 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3742 powerpc*-*-*.
3743 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3744
3745 2002-08-08 Andrew Cagney <cagney@redhat.com>
3746
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.
3755
3756 2002-08-06 Michael Snyder <msnyder@redhat.com>
3757
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.
3763
3764 2002-08-06 Michael Snyder <msnyder@redhat.com>
3765
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.
3770
3771 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3772
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.
3781
3782 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3783 (STORE_PSEUDO_REGISTER): Delete.
3784 * gdbarch.h, gdbarch.c: Regenerate.
3785
3786 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3787
3788 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3789 write dump file binary.
3790
3791 2002-08-05 Michael Snyder <msnyder@redhat.com>
3792
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.
3796
3797 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3798
3799 * frame.c (find_saved_register): Break out of loop once saved
3800 register address is found. Don't mention sparc in loop comment
3801 anymore.
3802
3803 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3804
3805 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3806 mips_default_saved_regsize to 8.
3807
3808 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3809
3810 * gcore.c: Do not include <sys/procfs.h>.
3811 * Makefile.in (gcore.o): Update dependencies.
3812
3813 2002-08-06 Andrew Cagney <cagney@redhat.com>
3814
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.
3821
3822 2002-08-05 Theodore A. Roth <troth@verinet.com>
3823
3824 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3825
3826 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3827
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.
3838
3839 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3840
3841 * objfiles.h: Add missing #include "symfile.h"
3842
3843 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3844
3845 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3846
3847 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3848 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3849 of FIELD_BITSIZE.
3850
3851 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3852
3853 * NEWS: Cleanup and nitpick.
3854
3855 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3856
3857 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3858
3859 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3860
3861 * Makefile.in (gdbtk-bp.o): Update dependencies.
3862 (gdbtk-register.o): Ditto.
3863 (gdbtk-varobj.o): Ditto.
3864
3865 2002-08-03 Andrew Cagney <cagney@redhat.com>
3866
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.
3872
3873 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3874
3875 * gdbarch.sh: Include "gdb_string.h".
3876 * gdbarch.c: Regenerate.
3877
3878 * regcache.c: Include "gdb_string.h".
3879 * ax-general.c: Ditto.
3880 * varobj.c: Ditto.
3881 * std-regs.c: Ditto.
3882 * fbsd-proc.c: Ditto.
3883 * thread.c: Ditto.
3884
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.
3890
3891 2002-08-02 Andrew Cagney <cagney@redhat.com>
3892
3893 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3894 regnum.
3895 (regcache_cooked_write): Ditto.
3896
3897 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3898
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.
3903
3904 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3905 Declare.
3906
3907 2002-08-02 Andrew Cagney <cagney@redhat.com>
3908
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.
3916
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.
3931
3932 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3933
3934 * mips-tdep.c (mips_register_virtual_type): Use architecture
3935 invariant return values.
3936
3937 2002-08-01 Andrew Cagney <cagney@redhat.com>
3938
3939 * linux-proc.c: Include "gdb_string.h".
3940 * Makefile.in (linux-proc.o): Update dependency list.
3941
3942 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3943
3944 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3945 comment.
3946
3947 2002-08-01 Grace Sainsbury <graces@redhat.com>
3948
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
3954 them.
3955
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.
3961
3962 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3963
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.
3972
3973 2002-08-01 Andrew Cagney <cagney@redhat.com>
3974
3975 * NEWS: Menion that CHILL has been made obsolete.
3976
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.
4004 (value_neg): 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.
4013
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.
4019
4020 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4021 CHILL_LIB.
4022 (TARGET_FLAGS_TO_PASS): Ditto.
4023 (CHILLFLAGS): Obsolete.
4024 (CHILL): Obsolete.
4025 (CHILL_FOR_TARGET): Obsolete.
4026 (CHILL_LIB): Obsolete.
4027 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4028 ch-valprint.c.
4029 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4030 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4031 ch-lang.o.
4032 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4033 targets.
4034
4035 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4036
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.
4040
4041 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4042
4043 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4044 help message.
4045
4046 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4047
4048 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4049 and save it in a local variable. Use variable in later test.
4050
4051 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4052
4053 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4054 test. (Thanks to Daniel Jacobowitz.)
4055
4056 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4057
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.
4061
4062 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4063
4064 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4065 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4066
4067 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4068
4069 * utils.c (host_pointer_to_address, address_to_host_pointer):
4070 Use gdb_assert() instead of explicit call to internal_error().
4071
4072 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4073
4074 * Makefile.in (rs6000-nat.o): Update dependencies.
4075
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.
4081
4082 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4083
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
4095 corelow.o.
4096 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4097
4098 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4099
4100 * symtab.c (lookup_symbol): Demangle before lowercasing.
4101
4102 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4103
4104 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4105 declaration.
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
4110 "gdb_string.h".
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).
4117
4118 2002-07-30 Jim Blandy <jimb@redhat.com>
4119
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.
4124
4125 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4126
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).
4134
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.
4143
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.
4155
4156 2002-07-29 Andrew Cagney <cagney@redhat.com>
4157
4158 * regcache.c (struct regcache_descr): Rename nr_registers to
4159 nr_cooked_registers. Revise comments describing the structure
4160 member fields.
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
4165 register cache.
4166
4167 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4168
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.
4175
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.
4189
4190 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4191
4192 * utils.c (host_pointer_to_address, address_to_host_pointer):
4193 Change internal_error() message to indicate function responsible
4194 for the error.
4195
4196 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4197
4198 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4199 calls to local_hex_string_custom().
4200
4201 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4202
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.
4206
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.
4210
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,
4214 solib-irix.o.
4215 * config/mips/irix6.mt (TDEPFILES): Likewise.
4216 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4217
4218 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4219
4220 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4221 disabled (via ``#if 0'') includes.
4222
4223 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4224
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.
4231
4232 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4233
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.
4247
4248 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4249
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().
4255
4256 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4257
4258 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4259 bfd/elf32-frv.c.
4260
4261 2002-07-24 Tom Tromey <tromey@redhat.com>
4262
4263 * jv-exp.y: Marked all strings with _().
4264 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4265 internal_error.
4266 (MethodInvocation, CastExpression, parse_number, yyerror,
4267 java_type_from_name, push_expression_name, yylex): Typo fixes.
4268
4269 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4270
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.
4275
4276 2002-07-24 Aidan Skinner <aidan@velvet.net>
4277
4278 * ada-lang.c: Change k&r style function definitions to prototyped
4279 form.
4280 * ada-typeprint.c: Change k&r style function definitions to prototyped
4281 form.
4282 * ada-valprint.c: Change k&r style function definitions to prototyped
4283 form.
4284
4285 2002-07-24 Andrew Cagney <cagney@redhat.com>
4286
4287 * README: Remove reference to remote-bug.
4288 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4289 remote-bug.c.
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
4314 m88*-*-* obsolete.
4315
4316 2002-07-24 Andrew Cagney <cagney@redhat.com>
4317
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.
4323
4324 2002-07-24 Andrew Cagney <cagney@redhat.com>
4325
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
4330 void pointer.
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.
4335
4336 2002-07-24 Tom Tromey <tromey@redhat.com>
4337
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.
4343
4344 2002-07-24 Andrew Cagney <cagney@redhat.com>
4345
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.
4365
4366 2002-07-23 Jim Blandy <jimb@redhat.com>
4367
4368 * parser-defs.h (expression_context_pc): Make this extern.
4369 (Thanks to Michael Snyder.)
4370
4371 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4372
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.
4376
4377 2002-07-23 Mark Salter <msalter@redhat.com>
4378
4379 * remote.c (remote_read_bytes): Fix check for error.
4380
4381 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4382
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.
4389
4390 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4391
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.
4403
4404 2002-07-22 Michael Snyder <msnyder@redhat.com>
4405
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.
4425
4426 2002-07-22 Michael Snyder <msnyder@redhat.com>
4427
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
4434 if they are cached.
4435 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4436 fill_gprs64): Ditto.
4437
4438 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4439
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
4443 register data.
4444 (fill_sprs32): Change parameter types to match those in the ptrace()
4445 buffer.
4446 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4447 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4448
4449 2002-07-22 Michael Snyder <msnyder@redhat.com>
4450
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.
4464
4465 2002-07-20 Aidan Skinner <aidan@velvet.net>
4466
4467 * MAINTAINERS: Add self under write after approval.
4468
4469 2002-07-20 Aidan Skinner <aidan@velvet.net>
4470
4471 * ada-tasks.c: Change k&r style function definitions to prototyped
4472 form.
4473
4474 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4475
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>.
4480
4481 2002-07-17 Michal Ludvig <michal@suse.cz>
4482
4483 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4484 (update_context): Initialise cfa variable.
4485
4486 2002-07-17 Michael Snyder <msnyder@redhat.com>
4487
4488 * aix-thread.c: Shorten some long lines.
4489 Bring comments into line with code spec.
4490
4491 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4492
4493 * infrun.c: Re-indent using gdb_indent.sh.
4494
4495 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4496
4497 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4498 Leave the indentation temporarily untouched, to minimize the diffs.
4499
4500 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4501
4502 * stabsread.c: Make os9k sections of the code obsolete,
4503 for real this time.
4504 * stabsread.h: Make os9k sections of the code obsolete.
4505
4506 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4507
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
4513 line a comment.
4514 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4515
4516 2002-07-17 Jim Blandy <jimb@redhat.com>
4517
4518 * macrocmd.c (info_macro_command): Remove newline from error
4519 message.
4520
4521 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4522
4523 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4524 (sh_gdbarch_init): Use it for sh-dsp.
4525
4526 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4527
4528 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4529 64-bit DWARF2 format.
4530
4531 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4532
4533 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4534 <sys/proc.h> when not available.
4535
4536 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4537
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.
4548 * Makefile.in
4549
4550 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4551
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.
4558
4559 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4560
4561 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4562 found is not inside a section.
4563
4564 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4565
4566 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4567 strerror().
4568 (pdc_realloc): Use xrealloc() instead of realloc().
4569
4570 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4571
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
4575 macros.
4576
4577 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4578
4579 * aix-thread.c (ptrace_check): Eliminate goto.
4580 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4581 problem.
4582
4583 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4584
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".
4594
4595 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4596
4597 From Gerhard Tonn <TON@de.ibm.com>:
4598 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4599 instead of supply_register.
4600
4601 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4602
4603 * dwarf2cfi.c: Include "gdb_assert.h".
4604 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4605 non-NULL.
4606 (update_context): Do not use __func__. Add missing ``break''.
4607 (update_context): Do not use __func__.
4608
4609 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4610
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.
4616
4617 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4618
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.
4625
4626 2002-07-13 Aidan Skinner <aidan@velvet.net>
4627
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()
4631
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()
4635
4636 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4637
4638 From Nicholas Duffek (with minor changes by Martin Hunt,
4639 Louis Hamilton, and Kevin Buettner):
4640 * aix-thread.c: New file.
4641
4642 2002-07-12 Petr Sorfa <petrs@caldera.com>
4643
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
4653 of DW_AT_block*.
4654 (new_symbol): DW_AT_external better handling of
4655 DW_AT_block*. Proper initialization of variable
4656 "addr".
4657 (attr_form_is_block): New function that returns true
4658 if the attribute's form is of DW_FORM_block*.
4659
4660 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4661
4662 * valops.c (find_method_list): Remove comment about
4663 removed STATIC_MEMFUNCP argument.
4664 (value_find_oload_method_list): Likewise.
4665
4666 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4667
4668 From Nicholas Duffek:
4669 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4670 target_new_objfile_hook.
4671
4672 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4673
4674 From Nicholas Duffek:
4675 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4676 csect.
4677
4678 2002-07-12 Andrew Cagney <cagney@redhat.com>
4679
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
4685 -Werror.
4686
4687 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4688
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.
4694
4695 * bcache.c: Update copyright.
4696 (struct bstring, struct bcache): Moved to here from "bcache.h".
4697 Update comments.
4698 (bcache_xmalloc, bcache_memory_used): New functions.
4699 (bcache_xfree): Replace function free_bcache.
4700
4701 * Makefile.in (objfiles.o): Add $(bcache_h).
4702 (objfiles_h): Remove $(bcache_h).
4703 (symfile.o): Add $(bcache_h).
4704
4705 * symmisc.c: Update copyright.
4706 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4707 (print_objfile_statistics): Use bcache_memory_used.
4708
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.
4714
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
4718 bcache'' pointers.
4719 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4720
4721 * objfiles.c: Include "bcache.h". Update copyright.
4722 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4723 macro_cache.
4724 (free_objfile): Use bcache_xfree.
4725
4726 2002-07-11 Grace Sainsbury <graces@redhat.com>
4727
4728 * monitor.c (monitor_fetch_register): Make name a constant.
4729 (monitor_store_register): Same.
4730
4731 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4732
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
4740 value.
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
4744 hashtable.
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
4750 possible.
4751 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4752 (search_symbols, find_addr_symbol): Likewise.
4753
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
4761 symbols.
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.
4768
4769 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4770
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.
4774
4775 2002-07-11 Andrew Cagney <cagney@redhat.com>
4776
4777 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4778 Make static.
4779
4780 * arm-tdep.c (arm_register_name): Make return type constant.
4781
4782 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4783
4784 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4785 prototype.
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.
4820
4821 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4822
4823 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4824 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4825
4826 2002-07-10 Grace Sainsbury <graces@redhat.com>
4827
4828 * NEWS: Mention m68k, mcore multi-arching.
4829 * MAINTAINERS: Change status of m68k, mcore to reflect
4830 multi-arching.
4831
4832 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4833
4834 * valops.c (find_overload_match): Free oload_syms.
4835
4836 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4837
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.
4842
4843 2002-07-09 Grace Sainsbury <graces@redhat.com>
4844
4845 * config/m68k/tm-m68k.h: Remove macros wrapped in
4846 #if !GDB_MULTI_ARCH.
4847
4848 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4849
4850 * config.in, configure: Regenerate.
4851
4852 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4853
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.
4858
4859 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4860
4861 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4862 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4863 tdep->sc_sp_offset.
4864
4865 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4866
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
4870 to match.
4871
4872 2002-07-05 Grace Sainsbury <graces@redhat.com>
4873
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.
4877
4878 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4879
4880 * i386bsd-tdep.c: Include "gdb_string.h".
4881
4882 2002-07-04 Grace Sainsbury <graces@redhat.com>
4883
4884 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4885 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4886 mcore-tdep.
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
4893 from tm-mcore.h.
4894
4895 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4896
4897 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4898 traditonal string branding within the ELF header.
4899
4900 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4901
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.
4905
4906 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4907
4908 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4909
4910 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4911 New variables.
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.
4916
4917 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4918 Don't call get_current_frame().
4919
4920 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4921
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.
4928
4929 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4930
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.
4940
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.
4966
4967 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4968
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.
4980
4981 2002-07-03 Grace Sainsbury <graces@redhat.com>
4982
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
4995 vector.
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
5004
5005 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5006
5007 * infcmd.c (print_return_value): Remove compatibility code calling
5008 deprecated_grub_regcache_for_registers.
5009
5010 * values.c: Include "regcache.h".
5011 (value_being_returned): Update. Use
5012 deprecated_grub_regcache_for_registers to extract the register
5013 buffer address.
5014 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5015 ``struct regcache''.
5016 * Makefile.in (values.o): Add dependency on $(regcache_h).
5017
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.
5025
5026 * regcache.c (do_regcache_xfree): New function.
5027 (make_cleanup_regcache_xfree): New function.
5028 * regcache.h (make_cleanup_regcache_xfree): Declare.
5029
5030 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5031
5032 * event-top.c (command_line_handler): Don't read past
5033 beginning of buffer.
5034
5035 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5036
5037 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5038 struct frame_id.
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
5042 frame_find_by_id().
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.
5048
5049 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5050
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.
5055
5056 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5057
5058 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5059
5060 * cli/cli-decode.c (cmd_func_p): New function.
5061 (cmd_func): New function.
5062
5063 * command.h: Add cmd_func() and cmd_func_p().
5064
5065 2002-07-03 Grace Sainsbury <graces@redhat.com>
5066
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.
5091
5092 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5093
5094 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5095 frameless_look_for_prologue, such that we actually call this
5096 function.
5097
5098 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5099
5100 * frame.h (frame_address_in_block): New function.
5101
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
5109 of the given block.
5110
5111 2002-07-02 Grace Sainsbury <graces@redhat.com>
5112
5113 * MAINTAINERS: Add self under write after approval.
5114
5115 2002-07-02 Grace Sainsbury <graces@redhat.com>
5116
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
5123 vector.
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
5128 m68k-tdep.c.
5129 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5130 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5131 to enum in m68k-tdep.c
5132
5133 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5134
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...
5139
5140 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5141
5142 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5143 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5144 macros.
5145 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5146 Remove functions.
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.
5153
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
5167 tdep->sc_sp_offset.
5168
5169 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5170
5171 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5172
5173 * config/i386/tm-x86-64linux.h: New.
5174 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5175 definitions.
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.
5179
5180 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5181
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
5195 any more.
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
5199 tdep->sc_pc_offset.
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
5204 instead.
5205
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
5215 static.
5216
5217 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5218
5219 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5220
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".
5224
5225 2002-06-30 Aidan Skinner <aidan@velvet.net>
5226
5227 * ada-exp.tab.c: remove as it's a generated file
5228 * ada-lex.c: remove as it's a generated file
5229
5230 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5231
5232 * config/i386/tm-i386.h (struct frame_info, struct
5233 frame_saved_regs, struct value, struct type): Remove forward
5234 declarations.
5235
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.
5240
5241 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5242
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
5248 core-aout.o.
5249 (MH_CFLAGS): Add -DYYDEBUG=0.
5250
5251 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5252 i386nbsd_sc_pc_offset on OpenBSD too.
5253
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
5257 define.
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.
5264
5265 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5266
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
5270
5271 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5272
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
5281 regcache_xfree.
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.
5287
5288 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5289
5290 * Makefile.in (objfiles_h): Add $(bcache_h).
5291 * objfiles.h: Include "bcache.h".
5292
5293 * Makefile.in (symtab_h): Remove $(bcache_h).
5294 * symtab.h: Do not include "bcache.h".
5295
5296 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5297
5298 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5299 generic_func_frame_chain_valid.
5300
5301 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5302
5303 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5304 * config/i386/tm-fbsd.h: Likewise.
5305
5306 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5307
5308 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5309 generic_unwind_get_saved_register.
5310
5311 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5312
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.
5316
5317 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5318
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.
5321
5322 2002-06-26 Tom Tromey <tromey@redhat.com>
5323
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.
5331
5332 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5333
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.
5339
5340 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5341
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.
5350
5351 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5352
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.
5360
5361 2002-06-26 Andrew Cagney <cagney@redhat.com>
5362
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.
5374
5375 2002-06-26 Grace Sainsbury <graces@redhat.com>
5376
5377 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5378 gdbarch vector are at the top.
5379 (NUM_REGS): Remove.
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
5388
5389 2002-06-26 Grace Sainsbury <graces@redhat.com>
5390
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
5397 regnames array.
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.
5408
5409 2002-06-25 Tom Tromey <tromey@redhat.com>
5410
5411 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5412
5413 2002-06-25 Andrew Cagney <cagney@redhat.com>
5414
5415 * infrun.c (stop_registers): Change variable's type to ``struct
5416 regcache'''.
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
5426 buffers.
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.
5435
5436 * Makefile.in (infcmd.o): Add $(regcache_h).
5437
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.
5442
5443 * inferior.h (struct regcache): Add opaque declaration.
5444 (stop_registers): Change variable's declared type to ``struct
5445 regcache''.
5446
5447 2002-06-24 Tom Tromey <tromey@redhat.com>
5448
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.
5452
5453 * main.c: Marked all strings with _().
5454
5455 2002-06-24 Don Howard <dhoward@redhat.com>
5456
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.
5461
5462 2002-06-24 Grace Sainsbury <graces@redhat.com>
5463
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.
5484
5485 2002-06-23 Tom Tromey <tromey@redhat.com>
5486
5487 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5488 (ALLDEPFILES): Likewise.
5489 (udiheaders): Removed.
5490 (udip2soc.o): Likewise.
5491 (udi2go32.o): Likewise.
5492 (udr.o): Likewise.
5493 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5494
5495 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5496
5497 * infrun.c (_initialize_infrun): Delete unnecessary call to
5498 build_infrun.
5499
5500 * regcache.h: Update comments describing the regcache_cpy family
5501 of functions.
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.
5509
5510 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5511
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.
5515
5516 2002-06-21 Jim Blandy <jimb@redhat.com>
5517
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.
5523
5524 2002-06-21 Tom Tromey <tromey@redhat.com>
5525
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,
5533 textdomain.
5534
5535 2002-06-21 Dave Brolley <brolley@redhat.com>
5536
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.
5544
5545 2002-06-21 Dave Brolley <brolley@redhat.com>
5546
5547 * MAINTAINERS: Add self to "Write After Approval" list.
5548
5549 2002-06-21 Grace Sainsbury <graces@redhat.com>
5550
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.
5556
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
5565 tm-m68k.h.
5566
5567 2002-06-21 Grace Sainsbury <graces@redhat.com>
5568
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
5574 gdbarch structure.
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.
5584
5585 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5586
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.
5593
5594 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5595
5596 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5597 encoding anymore.
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.
5606
5607 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5608
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.
5612
5613 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5614
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.
5622
5623 2002-06-19 Andrew Cagney <cagney@redhat.com>
5624
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.
5636
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
5659 functions.
5660 (_initialize_regcache): Create the regcache_data_handle. Swap
5661 current_regcache global variable.
5662
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.
5672
5673 * defs.h (XCALLOC): Define.
5674
5675 2002-06-19 Grace Sainsbury <graces@redhat.com>
5676
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.
5680
5681 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5682
5683 * ada-lang.c (fill_in_ada_prototype): Update comment.
5684
5685 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5686
5687 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5688 MIPS_ABI_LAST.
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
5698 mips_abi_strings.
5699
5700 2002-06-19 Andrew Cagney <cagney@redhat.com>
5701
5702 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5703 constant.
5704
5705 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5706
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.
5714
5715 2002-06-18 Don Howard <dhoward@redhat.com>
5716
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.
5720
5721 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5722
5723 * config/romp/xm-rtbsd.h: Delete file.
5724 * config/romp/rtbsd.mh: Delete file.
5725
5726 2002-06-18 Keith Seitz <keiths@redhat.com>
5727
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
5733 notification.
5734 (ignore_command): Only print a newline if the command came
5735 from a tty.
5736 Don't call breakpoints_changed, since this is now properly
5737 handled by set_ignore_count.
5738
5739 2002-06-18 Andrew Cagney <cagney@redhat.com>
5740
5741 * MAINTAINERS: Note that cris-elf target can be compiled with
5742 -Werror.
5743 * cris-tdep.c (cris_register_name): Make return type constant.
5744 (cris_breakpoint_from_pc): Ditto.
5745
5746 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5747
5748 * frame.h (struct frame_info): Change type of context to
5749 'struct context'.
5750
5751 2002-06-17 Andrew Cagney <cagney@redhat.com>
5752
5753 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5754 pointer.
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.
5789
5790 2002-06-17 Grace Sainsbury <graces@redhat.com>
5791
5792 * m68k-tdep.c: Reindented.
5793
5794 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5795
5796 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5797 list of predefined types.
5798
5799 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5800
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):
5806 Remove prototypes.
5807 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5808 macros mentioned above.
5809
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.
5819
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.
5827
5828 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5829
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.
5853
5854 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5855
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.
5866
5867 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5868
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'.
5881
5882 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5883
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
5890 above.
5891
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.
5899
5900 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5901
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.
5907
5908 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5909
5910 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5911 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5912
5913 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5914
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.
5931
5932 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5933
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.
5940
5941 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5942 list of DJGPP COFF targets.
5943
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.
5957
5958 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5959
5960 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5961 comments.
5962 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5963 Remove prototypes.
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
5970 available.
5971
5972 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5973 gnu_store_registers): Replace usage of NUM_GREGS with
5974 I386_NUM_GREGS.
5975
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.
5979
5980 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5981
5982 * i386bsd-nat.c: Include "i386-tdep.h".
5983 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5984 I386_NUM_GREGS.
5985
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.
5989
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
5995 MAX_NUM_REGS.
5996
5997 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5998
5999 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6000 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6001
6002 2002-06-14 Andrew Cagney <cagney@redhat.com>
6003
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.
6009
6010 * values.c (value_being_returned): Handle
6011 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6012 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6013
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.
6031
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.
6055
6056 2002-06-14 Andrew Cagney <cagney@redhat.com>
6057
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".
6063
6064 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6065
6066 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6067 Already covered by the default.
6068
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
6072 bit.
6073
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.
6076 Move these to ...
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.
6083
6084 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6085 * config/i386/tm-i386nw.h: Removed.
6086
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):
6109 Remove prototype.
6110 (USE_STRUCT_CONVENTION): Remove prototype.
6111 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6112 declaration.
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):
6117 Remove variables.
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
6130 functions.
6131 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6132 functions.
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
6138 function.
6139
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
6144 defines.
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):
6163 Make static.
6164 (i386_linux_init_abi): New function.
6165 (_initialize_i386_linux_tdep): New function.
6166
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):
6205 New prototypes.
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):
6215 Removed.
6216 (i386_get_longjmp_target): New function.
6217 (default_struct_convention, pcc_struct_convention,
6218 reg_struct_convention, valid_conventions, struct_convention): New
6219 variables.
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):
6227 Removed.
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
6233 functions.
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
6238 number of calls.
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.
6242
6243 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6244
6245 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6246 (struct main_type): Remove arg_types member. Update comments for
6247 struct field.
6248 (TYPE_ARG_TYPES): Remove.
6249 (TYPE_FN_FIELD_ARGS): Update.
6250 (smash_to_method_type): Update prototype.
6251
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.
6278
6279 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6280
6281 * NEWS: Mention multithreaded debug support for gdbserver.
6282
6283 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6284
6285 * MAINTAINERS: Mention NEWS.
6286
6287 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6288
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
6292 is present.
6293
6294 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6295
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.
6299
6300 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6301
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.
6308
6309 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6310
6311 * MAINTAINERS: Add self.
6312
6313 2002-06-11 Jim Blandy <jimb@redhat.com>
6314
6315 * source.c (source_info): Mention whether the symtab has
6316 information about preprocessor macros.
6317
6318 Call the command `info macro', not `show macro'.
6319 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6320 Fix error message.
6321 (_initialize_macrocmd): Register `info_macro_command' in
6322 `infolist', not `showlist'.
6323
6324 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6325
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
6331 unconditionally.
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.
6341
6342 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6343
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').
6350
6351 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6352
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.
6361
6362 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6363
6364 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6365 without debug information too.
6366
6367 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6368
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.
6376
6377 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6378
6379 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6380 the front of the initialize list.
6381
6382 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6383
6384 * infrun.c (struct inferior_status): Replace fields
6385 selected_frame_address and selected_level with field
6386 selected_frame_id.
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.
6391
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
6397 get_current_frame.
6398 (watchpoint_check): Use frame_find_by_id.
6399
6400 * frame.h (record_selected_frame): Delete declaration.
6401 * stack.c (record_selected_frame): Delete function.
6402
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.
6408
6409 2002-06-10 Andrey Volkov <avolkov@transas.com>
6410
6411 * ser-e7kpc.c: Fix duplicated define and call of
6412 _initialize_ser_e7000pc
6413
6414 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6415
6416 * signals/signals.c (target_signal_from_host): Fix #ifdef
6417 SIGRTMIN case.
6418 (do_target_signal_to_host): Likewise.
6419
6420 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6421
6422 * mips-tdep.c (mips_find_abi_section): New function.
6423 (mips_gdbarch_init): Call it.
6424
6425 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6426
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.
6430
6431 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6432
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
6435 register cache.
6436 (fill_gregset): Don't fetch it under the same circumstances.
6437
6438 2002-06-09 Andrew Cagney <cagney@redhat.com>
6439
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".
6446
6447 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6448
6449 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6450 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6451
6452 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6453
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.
6462
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.
6467
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.
6471
6472 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6473
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.
6479
6480 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6481
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.
6488 Fix PR gdb/360.
6489
6490 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6491
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.
6500
6501 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6502
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.
6512
6513 2002-06-06 Michael Snyder <msnyder@redhat.com>
6514
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.
6520
6521 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6522
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
6528 correct space.
6529
6530 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6531
6532 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6533 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6534
6535 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6536
6537 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6538 includes.
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.
6578
6579 2002-05-04 Aidan Skinner <aidan@velvet.net>
6580
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
6590
6591 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6592
6593 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6594 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6595
6596 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6597
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.
6602
6603 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6604
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.
6608
6609 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6610
6611 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6612 any maintainer.
6613
6614 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6615
6616 * gdbarch.h: Regenerate.
6617
6618 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6619
6620 * MAINTAINERS: Add everyone to write-after-approval list.
6621
6622 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6623
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.
6626
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.
6632
6633 * frame.c (frame_register_unwind): New function.
6634 (generic_unwind_get_saved_register): New function.
6635
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.
6641
6642 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6643
6644 * a29k-share/: Delete directory.
6645 * remote-vx29k.c: Delete file.
6646
6647 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6648
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.
6651
6652 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6655 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6656 (sparc64nbsd-nat.o)
6657 (sparcnbsd-nat.o)
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.
6673 (HOST_IPC): Remove.
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.
6677 (HOST_IPC): Remove.
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.
6686
6687 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6688
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.
6695
6696 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6697
6698 * corefile.c (do_captured_read_memory_integer): Return non-zero
6699 result.
6700 (safe_read_memory_integer): Copy result of memory read when
6701 status is non-zero. Also, add comments.
6702
6703 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6704
6705 * Makefile.in (ppc_tdep_h): Define.
6706 (ppc-linux-nat.o)
6707 (ppc-linux-tdep.o)
6708 (rs6000-tdep.o): Use $(ppc_tdep_h).
6709 (ppc-sysv-tdep.o)
6710 (ppcnbsd-nat.o)
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.
6735
6736 2002-05-29 Jim Blandy <jimb@redhat.com>
6737
6738 * macroscope.c (default_macro_scope): Put `void' in empty argument
6739 list.
6740
6741 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6742
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
6748 here.
6749 * arch-utils.h (legacy_register_sim_regno): To here.
6750 * remote-sim.c (legacy_register_sim_regno): Move function from
6751 here.
6752 * arch-utils.c (legacy_register_sim_regno): To here.
6753
6754 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6755
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.
6773
6774 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6775
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.
6783
6784 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6785
6786 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6787 `tr' and `sed'. Mention that `broken' targets are not expected to
6788 build.
6789
6790 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6791
6792 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6793 Let PC point right after the prologue before looking up symbols.
6794
6795 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6796
6797 * i386-tdep.c (i386_register_virtual_type): Return
6798 builtin_type_vec128i for SSE registers.
6799
6800 * gdbtypes.h (builtin_type_vec128i): Declare.
6801
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.
6807
6808 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6809
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.
6815
6816 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6817
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
6821 private namespace.
6822 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6823 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6824 functions.
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.
6834
6835 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6836
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
6840 functions.
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.
6848
6849 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6850
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.
6859
6860 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6861
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.
6878
6879 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6880
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
6884 functions.
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.
6893
6894 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6895
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.
6903
6904 2002-05-24 Jim Blandy <jimb@redhat.com>
6905
6906 * dwarf2read.c (free_line_header): Use xfree, not free.
6907
6908 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6909
6910 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6911 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6912
6913 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6914
6915 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6916
6917 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6918
6919 From Ross Alexander at NEC Europe:
6920 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6921
6922 2002-05-23 Michael Snyder <msnyder@redhat.com>
6923
6924 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6925 for input, rather than parse_and_eval_address.
6926
6927 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6928
6929 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6930 * Makefile.in (sim_d10v_h): Update definition.
6931
6932 2002-05-24 Andrew Cagney <cagney@redhat.com>
6933
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.
6938
6939 2002-05-23 Jim Blandy <jimb@redhat.com>
6940
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.
6946
6947 2002-05-22 Michael Snyder <msnyder@redhat.com>
6948
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).
6957
6958 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6959
6960 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6961
6962 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6963
6964 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6965 fde->cie_ptr.
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
6970 CORE_ADDR.
6971
6972 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6973
6974 * config/alpha/tm-nbsd.h: Include solib.h.
6975
6976 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6977
6978 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6979 assumptions about the host's byte order.
6980
6981 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6982
6983 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6984 to dependency list.
6985 * alphanbsd-tdep.c: Include solib-svr4.h.
6986 * shnbsd-tdep.c: Ditto.
6987
6988 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6989
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
7009 nbsd-tdep.o.
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.
7056
7057 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7058
7059 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7060 mipsnbsd-tdep.c
7061 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7062
7063 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7064
7065 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7066 shnbsd-nat.c.
7067 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7068
7069 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7070
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.
7081
7082 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7083
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.
7090
7091 * Makefile.in (alpha_tdep_h): Define and use instead of
7092 alpha-tdep.h.
7093 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7094 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7095 Remove.
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.
7105
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.
7113
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.
7126 (arm_abi): Remove.
7127 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7128 osabi member.
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.
7132
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
7136 OS ABI framework.
7137
7138 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7139
7140 * h8300-tdep.c: Fix formatting.
7141
7142 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7143
7144 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7145 printing vector registers.
7146
7147 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7148
7149 From Fernando Nasser:
7150 * remote.c (remote_async_open_1): Re-throw the exception when the
7151 connection fails.
7152 (remote_cisco_open): Ditto.
7153 (remote_open_1): Ditto.
7154
7155 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7156
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.
7163
7164 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7165
7166 * remote.c (remote_start_remote): Replace PTR with void pointer.
7167 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7168 static.
7169
7170 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7171
7172 * gdb_indent.sh: Allow the script to be run in the sim directory.
7173
7174 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7175
7176 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7177 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7178
7179 * corelow.c (core_open): Only call set_gdbarch_from_file if
7180 exec_bfd is NULL.
7181
7182 2002-05-17 Andrey Volkov <avolkov@transas.com>
7183
7184 * h8300-tdep.c: Add support of EXR register
7185 * config/h8300/tm-h8300.h: Ditto.
7186
7187 2002-05-17 Andrey Volkov <avolkov@transas.com>
7188
7189 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7190
7191 2002-05-17 Andrey Volkov <avolkov@transas.com>
7192
7193 * h8300-tdep.c: Change literal regnums to REGNO.
7194
7195 2002-05-17 Jim Blandy <jimb@redhat.com>
7196
7197 * NEWS: Note addition of macro support.
7198
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
7216 variables.
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.
7224
7225 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7226
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.
7230
7231 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7232
7233 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7234
7235 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7236
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.
7244
7245 2002-05-16 Michael Snyder <msnyder@redhat.com>
7246
7247 * arm-tdep.c: Spelling fix in comment.
7248
7249 2002-05-16 Jim Blandy <jimb@redhat.com>
7250
7251 Add commands for manually expanding macros and showing their
7252 definitions.
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.
7259
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
7264 dwarf_macinfo_size.
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.
7279
7280 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7281
7282 Fix PR gdb/546
7283 * ser-tcp.c: Don't include <netinet/udp.h>.
7284
7285 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7286
7287 * MAINTAINERS: Update my email address.
7288
7289 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7290
7291 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7292 include file of the same name.
7293
7294 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7295
7296 * configure.tgt: Mark v850 as multi-arched.
7297 * config/v850/tm-v850.h: Remove file.
7298 * config/v850/v850.mt: Eliminate TM_FILE.
7299
7300 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7301
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.
7305
7306 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7307
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
7317 to rules.
7318 (exp '[' rule): insert implicit array index field if
7319 exp is a pascal string type.
7320
7321 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7322
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.
7334
7335 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7336
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.
7343
7344 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7345
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.
7349
7350 2002-05-15 Jim Blandy <jimb@redhat.com>
7351
7352 Add macro structures to GDB's symbol tables. Nobody puts anything
7353 in them yet.
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
7362 debug info.
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
7374 macro bcache.
7375 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7376
7377 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7378
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.
7382
7383 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7384
7385 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7386 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7387
7388 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7389
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.
7394
7395 2002-05-15 Andrew Cagney <cagney@redhat.com>
7396
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.
7401
7402 2002-05-14 Jim Blandy <jimb@redhat.com>
7403
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.
7407
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.
7411
7412 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7413 although it's not necessary, to avoid a warning.
7414
7415 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7416
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.
7427 Set TYPE_CHAIN.
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.
7443
7444 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7445
7446 * configure.tgt: Add a catch all sh* target, for cases like
7447 sh[2,3,4]-elf and sh-hms.
7448
7449 2002-05-14 Keith Seitz <keiths@redhat.com>
7450
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
7453 monitoring.
7454
7455 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7456
7457 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7458 (update_context): Use __func__ in warnings.
7459
7460 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7461
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
7466 sockets.
7467 * remote.c (remote_serial_open): New function. Warn about UDP.
7468 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7469
7470 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7471
7472 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7473
7474 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7475
7476 * configure.tgt: Remove sh-hms target.
7477 * MAINTAINERS: Don't list sh-hms as a separate target.
7478
7479 2002-05-13 Jim Blandy <jimb@redhat.com>
7480
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.
7488
7489 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7490
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
7499 NNPC_REGNUM.
7500 * gdbarch.sh (NNPC_REGNUM): Delete.
7501 * gdbarch.h, gdbarch.c: Regenerate.
7502
7503 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7504
7505 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7506 builtin reg number.
7507
7508 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7509
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
7513 access macros.
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.
7532
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.
7538
7539 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7540
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.
7544
7545 2002-05-12 Fred Fish <fnf@redhat.com>
7546
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.
7550
7551 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7552
7553 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7554 checked in with last change.
7555
7556 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7557
7558 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7559 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7560 config.sub.
7561
7562 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7563
7564 * Makefile.in: Update dependencies.
7565
7566 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7567
7568 * language.c (local_hex_string_custom): Simplify. Do not depend
7569 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7570
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.
7577
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.
7587
7588 * solib.c: Update copyright.
7589 * memattr.c: Update copyright.
7590
7591 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7592
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.
7599
7600 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7601 (VALUE_TO_REGISTER): Define.
7602 (CONVERT_REGISTER_P): Define.
7603 * gdbarch.h, gdbarch.c: Regenerate.
7604
7605 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7606 VALUE_TO_REGISTER.
7607 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7608 CONVERT_REGISTER_P.
7609
7610 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7611 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7612
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.
7625
7626 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7627
7628 * arch-utils.h (generic_register_size): Declare.
7629 (generic_register_raw_size, generic_register_virtual_size): Delete
7630 declarations.
7631 * arch-utils.c (generic_register_raw_size): Delete.
7632 (generic_register_size): New function.
7633 (generic_register_virtual_size): Delete.
7634
7635 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7636 default generic_register_size.
7637 * gdbarch.h, gdbarch.c: Re-generate.
7638
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.
7643
7644 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7645
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.
7655
7656 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7657
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.
7662
7663 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7664
7665 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7666 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7667 $(gdb_regex_h).
7668 (gdb_assert_h): Define.
7669 (gdb_wait_h): Define.
7670 (gdb_regex_h): Define.
7671
7672 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7673
7674 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7675 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7676
7677 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7678
7679 * nbsd-tdep.c: Fix comment.
7680
7681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7682
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
7687 nbsd-tdep.h.
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
7693 nbsd-tdep.h.
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.
7698
7699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7700
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.
7707
7708 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7709
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.
7717
7718 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7719
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.
7735
7736 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7737
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.
7761
7762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7763
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.
7789
7790 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7791
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.
7799
7800 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7801
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.
7823
7824 2002-05-11 Eric Christopher <echristo@redhat.com>
7825
7826 * mips-tdep.c (mips_double_register_type): Fix thinko.
7827 (mips_single_register_type): Ditto.
7828 * MAINTAINERS: Add self.
7829
7830 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7831
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
7835 integer sizes.
7836
7837 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7838
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.
7843
7844 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7845
7846 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7847 big patch.
7848
7849 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7850
7851 * sh-tdep.c: Include correct file.
7852
7853 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7854
7855 New support for sh64-elf (sh5) target.
7856
7857 * configure.tgt: For sh64-elf target, default to sh-elf.
7858
7859 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7860 (struct gdbarch_tdep): Add new fields for new registers and ABI
7861 info.
7862
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.
7896
7897 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7898
7899 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7900
7901 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7902
7903 * linespec.c (decode_line_1): Check for a double quote after
7904 a filename correctly.
7905
7906 2002-05-10 Jim Blandy <jimb@redhat.com>
7907
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
7914 symbol table.
7915
7916 2002-05-10 Petr Sorfa <petrs@caldera.com>
7917
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.
7921
7922 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7923
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.
7927
7928 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7929
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.
7933
7934 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7935
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.
7940
7941 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7942
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.
7946
7947 2002-05-09 Michael Snyder <msnyder@redhat.com>
7948
7949 * remote-rdp.c (remote_rdp_can_run): Remove.
7950
7951 2002-05-09 Tom Tromey <tromey@redhat.com>
7952
7953 * jv-valprint.c (java_val_print): Handle `char' as a special case
7954 of TYPE_CODE_INT.
7955
7956 2002-05-09 Michael Snyder <msnyder@redhat.com>
7957
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.
7964
7965 2002-05-06 Michael Snyder <msnyder@redhat.com>
7966
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.
7970
7971 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7972
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.
7984
7985 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7986
7987 * gregset.h: Say "GNU/Linux".
7988
7989 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7990
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.
7994
7995 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7996
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.
8003
8004 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8007 alphanbsd-tdep.c.
8008
8009 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8010
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.
8019
8020 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8021
8022 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8023 concatenation for command help messages.
8024
8025 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8026
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.
8039
8040 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8041
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.
8051
8052 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8053
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.
8070
8071 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8072
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.
8076
8077 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8078
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.
8086
8087 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8088
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.
8093
8094 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8095
8096 * solib.h: Protect against multiple inclusion.
8097
8098 2002-05-06 Jim Blandy <jimb@redhat.com>
8099
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.
8107
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.
8131
8132 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8133
8134 * gdbtypes.c (init_vector_type): New function.
8135 (build_builtin_type_vec128): Simplify the representation of SIMD
8136 registers.
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.
8143
8144 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8145
8146 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8147 (i387_fill_fxsave): Likewise.
8148
8149 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8150
8151 * alpha-tdep.c (alpha_extract_return_value): Don't use
8152 non-constant array size in prototype.
8153
8154 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8155
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
8159 wide.
8160
8161 * ui-out.c (ui_out_field_core_addr): Update comment.
8162
8163 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8164
8165 * stack.c (select_and_print_frame): Make static. Delete the
8166 parameter `level'.
8167 (func_command): Update call.
8168 (select_frame_command): Delete code computing the frame level.
8169 * frame.h (select_and_print_frame): Delete declaration.
8170
8171 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8172
8173 * sparc-tdep.c (sparc_get_saved_register): Comment why
8174 get_prev_frame call is safe.
8175
8176 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8177
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.
8210
8211 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8212
8213 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8214 maintainer.
8215
8216 2002-05-04 Jim Blandy <jimb@redhat.com>
8217
8218 * gdbtypes.c (replace_type): Doc fix.
8219
8220 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8221
8222 * valprint.c (strcat_longest): Delete commented out function.
8223 Update copyright.
8224
8225 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8226
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.
8258
8259 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8260
8261 * target.c (debug_print_register): New function. Handle oversize
8262 registers.
8263 (debug_to_fetch_registers): Call.
8264 (debug_to_store_registers): Call.
8265
8266 2002-05-03 Jim Blandy <jimb@redhat.com>
8267
8268 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8269 (read_type): Doc fix.
8270 * gdbtypes.c (replace_type): Doc fix.
8271
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.
8283
8284 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8285
8286 * gdbarch.sh: Assert that gdbarch is non-NULL.
8287 * gdbarch.c: Regenerate.
8288
8289 2002-05-03 Jason Merrill <jason@redhat.com>
8290
8291 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8292 and return NULL.
8293
8294 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8295
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.
8303
8304 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8305
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.
8311
8312 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8313
8314 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8315 we are dealing with vectors.
8316
8317 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8318
8319 * config/m68k/tm-nbsd.h: Obvious fix,
8320 correct machine name.
8321
8322 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8323
8324 * p-typeprint.c (pascal_type_print_base): Add support
8325 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8326
8327 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8328
8329 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8330 for fondamental pascal 'char' type.
8331
8332 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8333
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.
8343
8344 2002-05-02 Andrew Cagney <cagney@redhat.com>
8345
8346 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8347 <cagney@redhat.com> change.
8348 * gdbarch.c: Regenerate.
8349
8350 2002-05-02 Andrew Cagney <cagney@redhat.com>
8351
8352 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8353 before probing for a new one. Detect errorenous gdbarch_init
8354 functions.
8355 * gdbarch.c: Regenerate.
8356
8357 2002-05-01 Andrew Cagney <cagney@redhat.com>
8358
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.
8362
8363 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8364
8365 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8366 current_gdbarch.
8367
8368 2002-04-30 Michael Snyder <msnyder@redhat.com>
8369
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.
8373
8374 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8375
8376 * rs6000-tdep.c: Added comment describing how fpscr register
8377 numbers were chosen.
8378
8379 2002-04-30 Michael Snyder <msnyder@redhat.com>
8380
8381 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8382
8383 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8384
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.
8388
8389 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8390
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.
8397
8398 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8399
8400 GDB 5.2 released from 5.2 branch.
8401
8402 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8403
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.
8407
8408 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8409
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):
8415 New function.
8416 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8417 vectors.
8418 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8419 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8420
8421 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8422
8423 * hpread.c (hpread_psymtab_to_symtab_1,
8424 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8425 with fprintf_unfiltered (gdb_stderr,...).
8426
8427 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8428
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.
8436
8437 2002-04-28 Andreas Schwab <schwab@suse.de>
8438
8439 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8440 linux-proc.o and gcore.o.
8441
8442 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8443
8444 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8445 code without frame pointers.
8446
8447 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8448
8449 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8450 ON_STACK is needed.
8451
8452 2002-04-26 Ben Elliston <bje@redhat.com>
8453
8454 * target.c (do_xfer_memory): Correct reference to the new option
8455 "trust-readonly-sections".
8456
8457 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8458
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
8462 vectors.
8463 (read_array_type): Record the fact that this array type is really a
8464 vector (i.e. are passed in by value).
8465
8466 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8467
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.
8482
8483 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8484
8485 * stack.c (selected_frame_level):
8486 (select_frame): Do not set selected_frame_level.
8487 * frame.h (selected_frame_level): Delete declaration.
8488
8489 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8490
8491 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8492 convert_from_func_ptr-addr when AIX / PowerOpen.
8493
8494 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8495
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
8500 call_hi.
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.
8506
8507 2002-04-24 David S. Miller <davem@redhat.com>
8508
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
8516 second argument.
8517 (SKIP_PROLOGUE): Likewise.
8518
8519 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8520
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.
8527
8528 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8529
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.
8538 (JB_PC): 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.
8546
8547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8548
8549 * README: Update to GDB 5.2.
8550
8551 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8552
8553 * gdbarch.sh (LC_ALL): Set to `c'.
8554
8555 2002-04-25 Theodore A. Roth <troth@verinet.com>
8556
8557 * avr-tdep.c: Ran through gdb_indent.sh.
8558
8559 2002-04-25 Theodore A. Roth <troth@verinet.com>
8560
8561 * MAINTAINERS: Add myself as AVR maintainer.
8562 * NEWS: Note new target avr.
8563
8564 2002-04-25 Theodore A. Roth <troth@verinet.com>
8565
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.
8570
8571 2002-04-25 Theodore A. Roth <troth@verinet.com>
8572
8573 * MAINTAINERS: Add myself to write-after-approval.
8574
8575 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8576
8577 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8578 with fprintf_unfiltered (gdb_stderr,....
8579
8580 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8581
8582 Fix PR gdb/508.
8583 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8584
8585 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8586
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.
8590
8591 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8592
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
8596 to 0.
8597 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8598 and struct value.
8599 (FUNCTION_START_OFFSET): Remove.
8600 (BREAKPOINT): Ditto.
8601
8602 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8603
8604 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8605 * NEWS: Ditto.
8606
8607 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8608
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.
8624
8625 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8626
8627 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8628
8629 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8630
8631 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8632 alphanbsd-tdep.c.
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.
8644
8645 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8646
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
8656 alpha-osf1-dep.c.
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.
8685
8686 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8687
8688 * NEWS: Note that Alpha targets are now multi-arch.
8689
8690 2002-04-24 Michael Snyder <msnyder@redhat.com>
8691
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.
8697
8698 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8699
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.
8705
8706 2002-04-24 Roland McGrath <roland@frob.com>
8707
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.
8711
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.
8715
8716 2002-04-24 Michael Snyder <msnyder@redhat.com>
8717
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].
8724
8725 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8726
8727 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8728 NUM_PSEUDO_REGS can be used.
8729
8730 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8731
8732 * arch-utils.h: Update copyright.
8733
8734 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8735 * gdbarch.h, gdbarch.c: Re-generate.
8736
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.
8740
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.
8755
8756 2002-04-24 David S. Miller <davem@redhat.com>
8757
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.
8762
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.
8766
8767 2002-04-20 David S. Miller <davem@redhat.com>
8768
8769 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8770 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8771
8772 2002-04-21 David S. Miller <davem@redhat.com>
8773
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.
8777
8778 2002-04-23 J. Brobecker <brobecker@gnat.com>
8779
8780 * source.c (is_regular_file): New function.
8781 (openp): Check wether file to open is a regular file
8782 to avoid opening directories.
8783
8784 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8785
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.
8793
8794 2002-04-22 H.J. Lu (hjl@gnu.org)
8795
8796 * c-exp.y (typebase): Support
8797
8798 [long|long long|short] [signed|unsigned] [int|]
8799
8800 and
8801
8802 signed [long|long long|short] int
8803
8804 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8805
8806 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8807 and vax-tdep.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.
8816
8817 2002-04-22 Michael Snyder <msnyder@redhat.com>
8818
8819 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8820 Some whitespace and coding standards tweaks.
8821
8822 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8823
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.
8835
8836 2002-04-18 Michael Snyder <msnyder@redhat.com>
8837
8838 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8839
8840 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8841
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.
8850
8851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8852
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.
8862
8863 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8864
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.
8876
8877 2002-04-22 H.J. Lu (hjl@gnu.org)
8878
8879 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8880 includedir.
8881
8882 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8883
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.
8887
8888 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8889
8890 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8891
8892 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8893
8894 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8895 where needed.
8896 (fetch_osf_core_registers): Likewise.
8897 (supply_gregset): Likewise.
8898
8899 2002-04-22 J. Brobecker <brobecker@gnat.com>
8900
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.
8910
8911 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8912
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.
8926
8927 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8928
8929 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8930 declaration
8931 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8932
8933 2002-04-21 David S. Miller <davem@redhat.com>
8934
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
8938 references.
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
8942 references.
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.
8947
8948 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8949
8950 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8951 (alphabsd-nat.o): New dependency list.
8952
8953 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8954
8955 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8956 alphafbsd-tdep.c.
8957 (alpha-linux-tdep.o): New dependency list.
8958 (alphafbsd-tdep.o): Likewise.
8959
8960 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8961
8962 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8963 to here...
8964 * alpha-tdep.c: ...from here.
8965 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8966
8967 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8968
8969 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8970 prototype from here...
8971 * alpha-tdep.h: ...to here.
8972
8973 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8974
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.
8980
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.
8992
8993 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8994
8995 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8996
8997 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8998
8999 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9000 type const.
9001
9002 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9003
9004 * alphafbsd-tdep.c: Update copyright years. Include
9005 alpha-tdep.h.
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.
9011
9012 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9013
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.
9021
9022 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9023
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.
9027
9028 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9029
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.
9037
9038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9039
9040 * alpha-tdep.h: New file. Includes several Alpha target constants
9041 taken from...
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
9046 to dependency list.
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.
9059
9060 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9061
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.
9066
9067 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9068
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.
9074
9075 2002-04-20 David S. Miller <davem@redhat.com>
9076
9077 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9078
9079 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9080
9081 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9082 instead of NUM_PSEUDO_REGS.
9083
9084 2002-04-20 David S. Miller <davem@redhat.com>
9085
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.
9090
9091 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9092
9093 * frame.c (find_saved_register): Avoid a NULL pointer
9094 dereference and actually walk the frame list.
9095
9096 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9097
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.
9101
9102 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9103
9104 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9105 instead of ->prev.
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()
9109 instead of ->prev.
9110
9111 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9112
9113 Fix PR gdb/471.
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
9117 union case.
9118
9119 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9120
9121 * config/djgpp/README: Update.
9122
9123 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9124 compiler warnings.
9125
9126 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9127
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.
9132
9133 2002-04-18 Andrew Cagney <cagney@redhat.com>
9134
9135 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9136 * gdbarch.h, gdbarch.c: Regenerate.
9137
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.
9141
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..
9154
9155 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9156 const pointer.
9157 * monitor.c (monitor_insert_breakpoint): Ditto.
9158 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9159
9160 * config/mcore/tm-mcore.h: Update copyright.
9161 * mem-break.c: Ditto.
9162 * xstormy16-tdep.c: Ditto.
9163
9164 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9165
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.
9169
9170 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9171
9172 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9173 (registers_powerpc_nofp): New register set for processors
9174 without floating point unit.
9175
9176 2002-04-18 David S. Miller <davem@redhat.com>
9177
9178 * MAINTAINERS: Add myself to write-after-approval.
9179
9180 2002-04-17 Michael Snyder <msnyder@redhat.com>
9181
9182 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9183
9184 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9185
9186 * rs6000-tdep.c (frame_initial_stack_address): Use
9187 frame_register_read to read the alloca_reg.
9188
9189 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9190
9191 * frame.c (find_saved_register): Find saved registers in the next
9192 not prev frame.
9193 Fix PR gdb/365.
9194
9195 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9196
9197 * gdbarch.sh (LANG): Set to ``c''.
9198
9199 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9200
9201 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9202
9203 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9204
9205 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9206 Update copyright.
9207
9208 * hpread.c (hpread_get_lntt): Add declaration.
9209 Also fix PR gdb/391.
9210
9211 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9212
9213 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9214 * aclocal.m4, configure: Re-generate.
9215 Fix PR gdb/391.
9216
9217 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9218
9219 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9220 instead of tm_print_insn.
9221
9222 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9223
9224 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9225
9226 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9227
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.
9231
9232 2002-04-12 Don Howard <dhoward@redhat.com>
9233
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.
9240
9241 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9242
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.
9249
9250 2002-04-12 Michael Snyder <msnyder@redhat.com>
9251
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.
9264
9265 2002-04-12 Andrew Cagney <cagney@redhat.com>
9266
9267 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9268 * frame.c (frame_register_read): New function. Return non-zero on
9269 success.
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.
9274 * sh-tdep.c: Ditto.
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.
9282
9283 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9284
9285 From Jimi X <jimix@watson.ibm.com>:
9286 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9287 64-bit SysV ABI.
9288
9289 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9290
9291 From Jimi X <jimix@watson.ibm.com>:
9292 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9293 bfd info.
9294
9295 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9296
9297 From Jimi X <jimix@watson.ibm.com>:
9298 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9299 register sets for these processor variants.
9300
9301 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9302
9303 * regformats/reg-ppc.dat: Support FPSCR.
9304
9305 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9306
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
9315 not exist.
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.
9320
9321 2002-04-11 Michael Snyder <msnyder@redhat.com>
9322
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.
9329
9330 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9331
9332 * stack.c (select_frame): Cleanup internal error message, do not
9333 use %p.
9334
9335 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9336
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.
9340 Update copyright.
9341 * frame.h (struct frame_info): Add field `level'. Update
9342 copyright.
9343 Work-in-progress PR gdb/464.
9344
9345 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9346
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.
9352
9353 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9354
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.
9360
9361 2002-04-04 Jim Ingham <jingham@apple.com>
9362
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
9365 incomplete types.
9366 (value_add, value_sub): use find_size_for_pointer_math.
9367
9368 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9369
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.
9377
9378 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9379
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.
9387 Fix PR gdb/251.
9388
9389 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9392 after the last symbol in a block.
9393
9394 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9395
9396 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9397 is non zero as a found symbol.
9398
9399 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9400
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.
9414
9415 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9416
9417 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9418 it's no longer required.
9419
9420 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9421
9422 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9423
9424 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9425
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.
9432
9433 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9434
9435 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9436 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9437 ELF_OBJECT_FORMAT ifdef.
9438
9439 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9440
9441 From Jimi X <jimix@watson.ibm.com>:
9442 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9443
9444 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9445
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.
9449
9450 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9451
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/.
9455
9456 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9457
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.
9463
9464 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9465
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.
9469
9470 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9471
9472 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9473 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9474 information.
9475
9476 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9477
9478 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9479 maintainer.
9480
9481 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9482
9483 * README (Reporting Bugs in GDB): Document the bug web page as the
9484 prefered way of submitting bugs.
9485 Fix PR gdb/402.
9486
9487 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9488
9489 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9490 -1. Update comment.
9491 * gdbarch.h, gdbarch.c: Re-generate.
9492
9493 2002-04-07 Andreas Schwab <schwab@suse.de>
9494
9495 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9496 buffer to regcache_collect.
9497
9498 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9499
9500 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9501 * gdbarch.c, gdbarch.h: Re-generate.
9502
9503 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9504
9505 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9506 declaration. Fix -Werror.
9507
9508 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9509
9510 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9511 * gdbarch.c: Regenerate.
9512
9513 2002-04-05 Michael Snyder <msnyder@redhat.com>
9514
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.
9519
9520 2002-04-05 H.J. Lu (hjl@gnu.org)
9521
9522 * solib-svr4.c (bkpt_names): Add "__start".
9523
9524 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9525
9526 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9527 as test for 64 bit target.
9528
9529 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9530
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.
9538 (s390_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
9544 declarations.
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.
9554
9555 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9556
9557 * sparc-tdep.c (sparc64_write_fp): Delete.
9558 (sparc_push_dummy_frame): Replace write_fp call with code to store
9559 the FP directly.
9560 (sparc_gdbarch_init): Do not initialize write_fp.
9561
9562 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9563
9564 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9565 clause.
9566
9567 2002-03-29 Jim Blandy <jimb@redhat.com>
9568
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,
9571 not just 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.
9577
9578 2002-04-05 Michael Snyder <msnyder@redhat.com>
9579
9580 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9581 warning message.
9582
9583 2002-04-05 J. Brobecker <brobecker@gnat.com>
9584
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.
9596
9597 2002-04-04 Michael Snyder <msnyder@redhat.com>
9598
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.
9610
9611 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9612
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.
9622
9623 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9624
9625 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9626 change sync with glibc.
9627
9628 2002-04-03 Jim Blandy <jimb@redhat.com>
9629
9630 * configure.in: Call AC_C_INLINE.
9631 * configure: Regenerated.
9632
9633 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9634
9635 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9636 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9637
9638 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9639
9640 * NEWS: Mention gcore support on FreeBSD/i386.
9641
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.
9645
9646 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9647 while statement.
9648
9649 2002-03-29 Jim Blandy <jimb@redhat.com>
9650
9651 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9652 unescaped newlines in string literals, but newer ones don't. So
9653 escape them.
9654
9655 2002-03-26 Michael Snyder <msnyder@redhat.com>
9656 Andrew Cagney <cagney@redhat.com>
9657
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.
9663
9664 2002-03-28 Michael Snyder <msnyder@redhat.com>
9665
9666 * symfile.c (symbol_file_add): Move test for null symbols to later.
9667
9668 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9669
9670 From veksler at il.ibm.com:
9671 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9672 the xstrduped original path.
9673 Fix PR gdb/417.
9674
9675 2002-03-27 Michael Snyder <msnyder@redhat.com>
9676
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.
9683
9684 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9685
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.
9691
9692 2002-03-27 Jim Blandy <jimb@redhat.com>
9693
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.
9698
9699 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9700
9701 * valarith.c: Replace strerror with safe_strerror.
9702 * tracepoint.c: Ditto.
9703 * lin-lwp.c: Ditto.
9704 * go32-nat.c: Ditto.
9705 * inflow.c: Ditto.
9706 * gnu-nat.c: Ditto.
9707
9708 2002-03-27 Andreas Schwab <schwab@suse.de>
9709
9710 * event-top.c (command_line_handler): Remove useless if.
9711
9712 2002-03-27 Andreas Jaeger <aj@suse.de>
9713
9714 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9715 comment.
9716
9717 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9718
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.
9734
9735 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9736
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}.
9743
9744 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9745
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
9749 gdbserver build.
9750
9751 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * signals.c: Moved to...
9754 * signals/signals.c: Here.
9755 * Makefile (signals.o): Update.
9756
9757 2002-03-26 Jeff Law (law@redhat.com)
9758
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
9765 PC value.
9766
9767 2002-03-25 Jeff Law (law@redhat.com)
9768
9769 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9770
9771 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9772
9773 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9774
9775 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9776
9777 * command.h: Update copyright.
9778 (struct cmd_list_element): Replace definition with opaque
9779 declaration.
9780 (enum cmd_types): Document that it will eventually be moved to
9781 cli/cli-decode.h
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.
9794
9795 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9796
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.
9802
9803 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9804
9805 * MAINTAINERS (sh-elf): Change warning flag to -w.
9806
9807 2002-03-23 Andrew Cagney <cagney@redhat.com>
9808
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.
9817 Fix PR gdb/328.
9818
9819 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9820
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.
9825
9826 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9827
9828 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9829 function.
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.
9834
9835 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9836
9837 * symtab.h (lookup_block_symbol): Add mangled_name argument
9838 to prototype.
9839
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.
9850
9851 2002-03-22 Christopher Faylor <cgf@redhat.com>
9852
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.
9856
9857 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9858
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.
9862
9863 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9864
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.
9868
9869 2002-03-21 Tom Rix <trix@redhat.com>
9870
9871 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9872 (rs6000_ptrace64): Renamed from ptrace64.
9873
9874 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9875
9876 * gdbserver/remote-utils.c (remote_open): Don't call
9877 getprotobyname, we're all using TCP here so just use
9878 IPPROTO_TCP.
9879 * gdbserver/gdbreplay.c (remote_open): Ditto.
9880
9881 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9882
9883 * regcache.c (_initialize_regcache): No need to call
9884 build_regcache() at this time; it gets called whenever
9885 the gdbarch changes.
9886
9887 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9888
9889 * sparc-nat.c: Include sys/param.h where possible.
9890
9891 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9892
9893 Fix PR gdb/422.
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
9897 complex types.
9898 * stabsread.c (rs6000_builtin_type): Likewise.
9899 (read_sun_floating_type): Likewise.
9900
9901 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9902
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
9906 parsing.
9907
9908 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9909
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.
9915
9916 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9917
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.
9933
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.
9937
9938 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9939
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.
9947
9948 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9949
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.
9956
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
9962 hook_in is cleared.
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
9966 hook_stop_stub.
9967 (hook_stop_stub): Call execute_cmd_pre_hook.
9968
9969 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9970
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.
9974
9975 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9976
9977 * kod.c (kod_set_os): Remove unnecessary check that
9978 ``command->type'' is set_cmd.
9979
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
9983 isn't reverted.
9984
9985 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9986
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.
9990
9991 * value.h (struct value): Fix typo in above change.
9992
9993 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9994
9995 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9996 to fix internal_error from ``maintenance print architecture''.
9997
9998 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9999
10000 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10001 for gcc versions after gcc-2.8.1.
10002
10003 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10004
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
10008 HP merge.
10009
10010 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10011
10012 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10013 value_of_register.
10014 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10015 get_saved_register.
10016 * value.h (value_of_register): Update.
10017
10018 2002-03-14 Richard Henderson <rth@redhat.com>
10019
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.
10024
10025 2002-03-14 Richard Henderson <rth@redhat.com>
10026
10027 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10028 a constant array bound.
10029
10030 * MAINTAINERS: Add myself to write-after-approval.
10031
10032 2002-03-14 Michael Snyder <msnyder@redhat.com>
10033
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.
10037
10038 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10039
10040 * gdbserver/remote-util.c (remote_open): Print remote-side's
10041 IP address when remote debugging over the network.
10042
10043 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10044
10045 * config/sparc/fbsd.mh: Fix copyright.
10046 * config/sparc/fbsd.mt: Likewise.
10047
10048 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10049
10050 * MAINTAINERS: Fix typo in name of gdb warnings option.
10051 (x86-64): Fix formating so that this can be parsed by awk.
10052
10053 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10054
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.
10058
10059 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10060
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
10063 from x86-64-tdep.h
10064
10065 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10066 Don Howard <dhoward@redhat.com>
10067
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.
10074
10075 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10076
10077 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10078 approval''.
10079
10080 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10081
10082 * stabsread.c (read_member_functions): Fix is_stub test for
10083 static member functions, improve comment.
10084
10085 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10086
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.
10098
10099 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10100
10101 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10102 * configure: Rebuilt.
10103
10104 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10105
10106 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10107 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10108
10109 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10110
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.
10114
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.
10130
10131 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10132
10133 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10134
10135 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10136
10137 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10138
10139 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10140
10141 * NEWS: Update headings, 5.2 has branched.
10142
10143 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10144
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.
10150
10151 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10152
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 *
10156
10157 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10158
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.
10165
10166 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10169 regformats/reg-s390x.dat.
10170
10171 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10172
10173 * utils.c: Add FIXME explaining true/false problem.
10174
10175 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10176
10177 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10178
10179 2002-02-28 Michael Chastain <mec@shout.net>
10180
10181 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10182
10183 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10184
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.
10191
10192 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10193
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.
10197
10198 2002-02-28 Jason Merrill <jason@redhat.com>
10199
10200 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10201
10202 2002-02-27 Fred Fish <fnf@redhat.com>
10203
10204 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10205 comment (dumy -> dummy).
10206
10207 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10208
10209 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10210
10211 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10212
10213 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10214
10215 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10216
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
10230 for regsets.
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.
10243
10244 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10247 (config.status): Add configure.srv dependency.
10248 (server_h): Add config.h dependency.
10249
10250 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10251
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
10255 reg-i386-linux.o.
10256
10257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10258
10259 * x86-64-tdep.c: Re-indent. Update copyright date.
10260
10261 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10262
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.
10272
10273 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10274
10275 * MAINTAINERS: Add x86-64 target.
10276
10277 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10278
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.
10285 Fix PR gdb/354.
10286
10287 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10288
10289 * remote.c (_initialize_remote): By default, disable ``e'' and
10290 ``E'' step out-of-range packets.
10291
10292 2002-02-26 Andreas Schwab <schwab@suse.de>
10293
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
10297 in_sigtramp.
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.
10306
10307 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10308
10309 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10310 (TARGET_NBPG, STACK_END_ADDR): Delete
10311 (VARIABLES_INSIDE_BLOCK): Delete.
10312
10313 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10314
10315 * utils.c (perror_with_name): Make string parameter constant.
10316 (print_sys_errmsg): Ditto.
10317 (query): Ditto.
10318 * defs.h (perror_with_name): Update.
10319 (print_sys_errmsg): Update.
10320 (query): Update.
10321
10322 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10323
10324 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10325 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10326
10327 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10328
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.
10333
10334 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10335
10336 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10337 list of exported variables.
10338
10339 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * gdbserver/configure.srv: New file.
10342 * gdbserver/configure.in: Use configure.srv instead
10343 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10344 from it.
10345 * gdbserver/configure: Regenerated.
10346 * gdbserver/terminal.h: New file.
10347 * gdbserver/Makefile.in: Update for configure changes. Remove
10348 more unneeded include paths.
10349
10350 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10351
10352 From wiz at danbala:
10353 * config/sparc/tm-sp64.h: Fix grammar and typos.
10354 Fix PR gdb/287.
10355
10356 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10357
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.
10375 Fix PR gdb/378.
10376
10377 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10378
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.
10383
10384 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10385 * serial.c (serial_open): Delete check for "ocd".
10386 Fix PR gdb/349.
10387
10388 * Makefile.in (linux-thread.o): Delete target.
10389 * linux-thread.c: Delete file.
10390
10391 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10392 renamed SH files to be consistent.
10393
10394 * symtab.c (sort_search_symbols): Use xfree.
10395
10396 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10397
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.
10403
10404 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10405
10406 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10407
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.
10413
10414 2002-02-23 Michael Chastain <mec@shout.net>
10415
10416 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10417
10418 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10419
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.
10423
10424 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10425
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".
10433
10434 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10435
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.
10439
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
10443 cmd_cfunc_eq.
10444 * top.c (execute_command): Pass the command to
10445 is_complete_command.
10446 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10447
10448 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10449
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.
10454
10455 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10456
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
10460 call_dummy_words.
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
10466 declarations.
10467 (LOWEST_PC): Delete.
10468
10469 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10470
10471 * maint.c (print_section_info): Do not prepend `0x' to filepos
10472 output, it will be handled by local_hex_string_custom.
10473
10474 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10475
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.
10479
10480 2002-02-22 Jim Blandy <jimb@redhat.com>
10481
10482 Indicate that the bcache functions don't change the strings
10483 they're passed.
10484 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10485 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10486
10487 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10488
10489 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10490
10491 2002-02-21 Christopher Faylor <cgf@redhat.com>
10492
10493 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10494 find the complete path to a loaded DLL.
10495
10496 2002-02-21 Fred Fish <fnf@redhat.com>
10497
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.
10507
10508 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10509
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
10514 when needed.
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
10519 registers as well.
10520
10521 2002-02-21 Jiri Smid <smid@suse.cz>
10522
10523 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10524
10525 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10526
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.
10536
10537 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10538
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.
10546
10547 2002-02-21 Christopher Faylor <cgf@redhat.com>
10548
10549 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10550 value.
10551
10552 2002-02-20 Christopher Faylor <cgf@redhat.com>
10553
10554 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10555 fails.
10556
10557 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10558
10559 * jv-exp.y (parse_number): Change type of implicit longs
10560 to builtin_type_uint64.
10561
10562 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10563
10564 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10565 to be an integer instead of a `union wait'.
10566
10567 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * mips-linux-nat.c: Call the operating system GNU/Linux.
10570 * mips-linux-tdep.c: Likewise.
10571 * mips-tdep.c: Likewise.
10572
10573 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10574
10575 Fix PR gdb/265.
10576 * jv-exp.y (parse_number): Handle 64-bit integers.
10577
10578 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10579
10580 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10581 AC_STDC_HEADERS to AC_HEADER_STDC.
10582 * gdbserver/configure: Regenerated.
10583
10584 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10585
10586 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10587 is defined.
10588 * sparc-tdep.c (get_longjmp_target): Likewise.
10589
10590 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10591
10592 * News: Add news about ARM and Multi-arch. Mention the new target
10593 arm*-*-netbsd*.
10594
10595 2002-02-19 Jim Blandy <jimb@redhat.com>
10596
10597 * stabsread.c (error_type_complaint): Improve error message.
10598
10599 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10600
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.
10607
10608 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10609
10610 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10611 armnbsd-nat.c.
10612
10613 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10614
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
10624 ARM_FLOAT_SOFT.
10625 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10626
10627 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10628
10629 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10630 of ``current_gdbarch''.
10631
10632 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10633
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.
10639
10640 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10641
10642 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10643 kernel.
10644 * arm-linux-tdep.c: Likewise.
10645 * config/arm/tm-linux.h: Likewise.
10646
10647 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10648
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.
10652
10653 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10654
10655 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10656 Initialize CALL_DUMMY_LENGTH.
10657
10658 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10659
10660 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10661 function.
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.
10666
10667 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10668
10669 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10670
10671 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10672
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.
10680
10681 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10682
10683 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10684 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10685 if not defined.
10686
10687 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10688
10689 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10690
10691 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10692
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.
10698
10699 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10700
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.
10705
10706 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10707
10708 * ppc-linux-nat.c: Update copyright.
10709 (fetch_register, store_register): Add tid parameter, don't compute
10710 tid here.
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.
10716
10717 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10718
10719 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10720 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10721
10722 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10723
10724 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10725 * gdbarch.c gdbarch.h: Regenerate.
10726 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10727 function.
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().
10731
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
10736 longjmp handler.
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.
10747
10748 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10749
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''.
10753
10754 2002-02-17 Tom Tromey <tromey@redhat.com>
10755
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.
10761
10762 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10763
10764 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10765 * gdbarch.h, gdbarch.c: Re-generate.
10766
10767 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10768
10769 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10770
10771 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10772
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.
10776
10777 2002-02-15 Christopher Faylor <cgf@redhat.com>
10778
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.
10787
10788 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10791 instead of find_register_by_number.
10792 (cannot_store_register): Likewise.
10793
10794 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10795
10796 * dwarf2read.c: Replace fprintf (stderr, ...) by
10797 fprintf_unfiltered (gdb_stderr, ...).
10798
10799 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10800
10801 * gdbserver/gdbserver.1: Document --attach.
10802
10803 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10804
10805 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10806 descriptions.
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
10817 code out to ...
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.
10823
10824 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10825
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
10837 of registers.
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.
10843
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.
10848
10849 * armnbsd-nat.c: Include regcache.h.
10850 * Makefile.in (armnbsd-nat.o): Update dependency list.
10851
10852 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10853
10854 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10855
10856 * gdbserver/Makefile.in: Fix typos in target rules.
10857
10858 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10859
10860 Fix part of PR gdb/267.
10861 * linespec.c (find_methods): Handle constructors specially for now.
10862
10863 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10864
10865 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10866 handling.
10867 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10868 standard_coerce_float_to_double().
10869
10870 2002-02-14 Christopher Faylor <cgf@redhat.com>
10871
10872 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10873 GDBINIT_FILENAME.
10874
10875 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10876
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.
10883
10884 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10885
10886 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10887 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10888
10889 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10890
10891 * stack.c (print_frame_info_base): When calling
10892 print_frame_info_listing_hook, set current_source_symtab.
10893
10894 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10895
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.
10901
10902 * gdbserver/linux-low.c: Remove all platform-specific code to
10903 new files. Remove various dead code. Update to use regcache
10904 functionality.
10905 * gdbserver/remote-utils.c (fromhex): Add return statement
10906 to quiet warning.
10907 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10908 constant.
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.
10921
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 ().
10925 Add include guard.
10926
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.
10934
10935 * gdbserver/regcache.c: New file.
10936 * gdbserver/regcache.h: New file.
10937
10938 * gdbserver/low-linux.c: Removed obsolete file.
10939
10940 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10941
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.
10948
10949 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10950
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.
10971
10972 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10973
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.
10979
10980 2002-02-13 Michael Snyder <msnyder@redhat.com>
10981
10982 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10983
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.
10988
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.
10993
10994 * procfs.c (procfs_make_note_section): Make the default
10995 implementation return an error.
10996
10997 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10998
10999 * procfs.c (procfs_make_note_section): Provide a default definition
11000 (for alpha-dec-osf4.0f). Fix typos.
11001
11002 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11003
11004 * linux-proc.c: Add include of regcache.h.
11005 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11006
11007 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11008
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
11012 non-overlapping.
11013
11014 2002-02-13 Michael Chastain <mec@shout.net>
11015
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.
11025
11026 2002-02-13 Keith Seitz <keiths@redhat.com>
11027
11028 * arm-tdep.h (arm_get_next_pc): Add declaration.
11029
11030 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11031
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.
11041
11042 2002-02-13 Keith Seitz <keiths@redhat.com>
11043
11044 * defs.h (core_addr_to_string_nz): New function.
11045
11046 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11047
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.
11051
11052 2002-02-12 Keith Seitz <keiths@redhat.com>
11053
11054 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11055 (core_addr_to_string_nz): New function.
11056
11057 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11058
11059 * arm-linux-nat.c: Really include arm-tdep.h.
11060 * config/arm/tm-linux.h (struct type, struct value): Declare.
11061
11062 2002-02-11 Michael Snyder <msnyder@redhat.com>
11063
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.
11071
11072 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11073
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
11092 declarations.
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
11110 interface.
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
11116 definition.
11117
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
11123 all uses of above.
11124 * remote-rdi.c remote-rdp.c: Likewise.
11125 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11126
11127 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11128
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.
11147
11148 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11149
11150 * symtab.c (compare_search_syms): New function.
11151 (sort_search_symbols): New function.
11152 (search_symbols): Sort symbols after searching rather than
11153 before.
11154
11155 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11156
11157 * NEWS: Linux -> GNU/Linux.
11158
11159 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11160
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.
11164
11165 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11166
11167 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11168 multi-arch partial.
11169
11170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11171
11172 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11173 field. Use diff -u.
11174 * gdbarch.c: Re-generate.
11175
11176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11177
11178 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11179 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11180 partial.
11181
11182 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11183
11184 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11185 multi-arch partial.
11186 (PUSH_ARGUMENTS): Switch to using predefault.
11187 * gdbarch.c: Regenerate.
11188
11189 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11190
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.
11195
11196 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11197
11198 * defs.h (throw_exception): Rename return_to_top_level. Update
11199 comments.
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.
11210
11211 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11212
11213 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11214
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.
11220
11221 2002-02-09 Jim Blandy <jimb@redhat.com>
11222
11223 * stabsread.c (read_type): Add code to parse Sun's syntax for
11224 prototyped function types.
11225
11226 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11227
11228 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11229 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11230
11231 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11232
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.
11237
11238 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11239
11240 * doublest.c (store_typed_floating): Don't try to return a value.
11241 Fixes PR gdb/290.
11242
11243 2002-02-08 Jim Blandy <jimb@redhat.com>
11244
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
11247 `(void)'.
11248
11249 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11250
11251 * MAINTAINERS (write-after-approval): Add myself.
11252 (paper-trail): I've escaped!
11253
11254 2002-02-08 Christopher Faylor <cgf@redhat.com>
11255
11256 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11257 changes.
11258 (_initialize_check_for_gdb_ini): Ditto.
11259
11260 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11261
11262 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11263 xaprintf -> xasprintf.
11264
11265 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11266
11267 * win32-nat.c: Remove use of printf and sprintf functions.
11268
11269 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11270
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.
11282
11283 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11284 Corinna Vinschen <vinschen@redhat.com>
11285
11286 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11287 on builtin float types.
11288
11289 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11290
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.
11306
11307 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11308
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.
11313
11314 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11315
11316 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11317 Add Richard Earnshaw to Arm maintainers.
11318
11319 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11320
11321 * defs.h (warning_begin): Delete declaration.
11322
11323 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11324 Delete macro.
11325
11326 2002-02-07 Michael Snyder <msnyder@redhat.com>
11327
11328 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11329 Logic bug, remove misplaced else.
11330
11331 2002-02-07 Klee Dienes <klee@apple.com>
11332
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".
11337
11338 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11339
11340 * rdi-share/host.h: Only provide a typedef for bool if it is not
11341 defined.
11342
11343 2002-02-04 Michael Snyder <msnyder@redhat.com>
11344
11345 * breakpoint.h (enum bptype): Add new overlay event bp type.
11346 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11347
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.
11360 (mention): 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.
11365
11366 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11367 (overlay_manual_command): Disable overlay breakpoints.
11368 (overlay_off_command): Disable overlay breakpoints.
11369
11370 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11371
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.
11385
11386 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11387
11388 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11389
11390 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11391
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.
11399
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.
11403
11404 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11405
11406 * win32-nat.c (_initialize_check_for_gdb_ini):
11407 Add typecast to sprintf argument to suppress a warning.
11408
11409 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11410
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
11417 exceptions added.
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.
11423
11424 2002-02-05 Michael Snyder <msnyder@redhat.com>
11425
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.
11430
11431 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11432
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
11440 multiarched.
11441 * coffread.c (coff_symtab_read): Ditto, for
11442 COFF_MAKE_MSYMBOL_SPECIAL.
11443
11444 2002-02-05 Jim Blandy <jimb@redhat.com>
11445
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.
11450
11451 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11454 to (int *).
11455
11456 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11457
11458 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11459 code.
11460
11461 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11464
11465 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * gdbserver/linux-low.c: Remove unused include files.
11468
11469 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11472 (read_inferior_memory): Use it.
11473 (write_inferior_memory): Likewise.
11474
11475 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11478 grubbing through sys_errlist.
11479
11480 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11483
11484 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11485 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11486
11487 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11488
11489 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11490 (do_sfunc, set_cmd_sfunc): New functions.
11491
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.
11496
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.
11501
11502 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11503 function.sfunc.
11504
11505 * infcmd.c (notice_args_read): Fix function signature.
11506
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.
11526
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.
11533
11534 2002-02-04 Michael Snyder <msnyder@redhat.com>
11535
11536 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11537
11538 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11539
11540 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11541 Add rules for building the register data files.
11542
11543 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11544
11545 * regformats/regdat.sh: Add braces to the definition of
11546 expedite_regs_${arch}.
11547
11548 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11549
11550 * regformats/regdef.h (struct reg): Add comment describing the
11551 requirements for offset and size fields.
11552
11553 2002-02-04 Andreas Schwab <schwab@suse.de>
11554
11555 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11556 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11557
11558 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11559
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.
11568
11569 * arm-tdep.c (arm_smash_text_address): New function.
11570 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11571
11572 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11573
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
11584 i386-nat code.
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.
11593
11594 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11595
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.
11599
11600 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11601
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.
11606
11607 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11610 accessing tag_name directly.
11611
11612 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11613
11614 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11615 of accessing tag_name directly.
11616
11617 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11618
11619 PR gdb/280
11620 * gdbtypes.c (replace_type): New function.
11621 * gdbtypes.h (replace_type): Add prototype.
11622 * stabsread.c (read_type): Use replace_type.
11623
11624 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11625
11626 * Makefile.in (memattr.o): Add missing dependencies rule.
11627
11628 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11629
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.
11636
11637 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11638
11639 * utils.c (do_write): New function.
11640 (error_stream): Rewrite combining the code from error_begin and
11641 verror.
11642 (verror): Rewrite using error_stream.
11643 (error_begin): Delete function.
11644
11645 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11646
11647 * utils.c (error_begin): Make static.
11648 * defs.h (error_begin): Delete declaration.
11649
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.
11656
11657 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11658
11659 * language.h (type_error, range_error): Make string parameter
11660 constant.
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.
11665
11666 2002-02-01 Michael Snyder <msnyder@redhat.com>
11667
11668 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11669 (set_ignore_count): Move misplaced comment back where it belongs.
11670
11671 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11672
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.
11679
11680 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11681
11682 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11683 Update ``this'' pointer when calling virtual functions.
11684
11685 2002-02-01 Michael Snyder <msnyder@redhat.com>
11686
11687 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11688 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11689
11690 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11691
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.
11701
11702 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11703
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.
11710
11711 2002-01-31 Michael Snyder <msnyder@redhat.com>
11712
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.
11719
11720 * printcmd.c (disassemble_command): Remove an ancient
11721 artifact of an old merge.
11722
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.
11728
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.
11734
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.
11738
11739 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11740
11741 * PROBLEMS: Fix typo, 5.1->5.1.1.
11742
11743 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11744
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.
11748
11749 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11750
11751 * defs.h (vwarning): Declare.
11752 * utils.c (vwarning): New function.
11753 (warning): Call vwarning.
11754 (warning_begin): Delete function.
11755
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
11759 warning_begin.
11760
11761 2002-01-30 Michael Snyder <msnyder@redhat.com>
11762
11763 * NEWS: Mention "set trust-readonly-sections" command.
11764 Mention generate-core-file command.
11765
11766 2002-01-15 Michael Snyder <msnyder@redhat.com>
11767
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".
11772
11773 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11774
11775 * parse.c (target_map_name_to_register): Simplify, search regs and
11776 pseudo-regs using a single loop.
11777
11778 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11779
11780 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11781
11782 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11783
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.
11789
11790 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11791
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.
11799
11800 2002-01-30 Andreas Schwab <schwab@suse.de>
11801
11802 * m68klinux-nat.c: Fix last change to use regcache_collect
11803 instead of referencing registers[] directly.
11804
11805 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11806
11807 * parse.c (target_map_name_to_register): Delete code wrapped in
11808 #ifdef REGISTER_NAME_ALIAS_HOOK.
11809
11810 2002-01-28 Michael Snyder <msnyder@redhat.com>
11811
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.
11815
11816 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11817
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.
11838
11839 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11840
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.
11847
11848 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11849
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.
11852
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.
11857
11858 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11859 already commented out.
11860
11861 2002-01-26 Andreas Schwab <schwab@suse.de>
11862
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.
11866
11867 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11868
11869 GDB 5.1.1 released from 5.1 branch.
11870 * NEWS: Add 5.1.1 news.
11871 * README: Sync with 5.1 branch.
11872
11873 2002-01-23 Fred Fish <fnf@redhat.com>
11874
11875 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11876 stabstring on initial malloc. Reallocing will copy it for us,
11877 if necessary.
11878
11879 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11880
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.
11886
11887 * hp-psymtab-read.c: Remove file.
11888 * hp-symtab-read.c: Remove file.
11889 * hpread.h: Remove file.
11890
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
11893 January 1999.
11894
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.
11899
11900 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11901
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
11905 times.
11906
11907 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11908
11909 * configure.host: Accept sparcv9 as alias for sparc64.
11910 * configure.tgt: Likewise.
11911
11912 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11913
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.
11919
11920 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11921
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.
11939
11940 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11941
11942 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11943 (floatformat_is_nan, floatformat_mantissa): Ditto.
11944
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.
11954
11955 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11956
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()
11963 call.
11964
11965 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11966
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.
11977
11978 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11979
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.
11983
11984 2002-01-21 Jim Blandy <jimb@redhat.com>
11985
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
11988 exits.
11989
11990 2002-01-21 Fred Fish <fnf@redhat.com>
11991
11992 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11993 when we have found all instructions we are looking for.
11994
11995 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11996
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.
12002
12003 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12004 Kevin Buettner <kevinb@redhat.com>
12005
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
12013 to use extra_info.
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.
12023
12024 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12025
12026 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12027
12028 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12029
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.
12034
12035 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12036
12037 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12038 (closeLogFile): Ditto.
12039
12040 2002-01-20 Michael Chastain <mec@shout.net>
12041
12042 * top.c (print_gdb_version): Bump copyright year to 2002.
12043
12044 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12045
12046 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12047 Zannoni and Eli Zaretskii.
12048
12049 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12050
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.
12061
12062 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12063
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
12082 macro definition.
12083 * config/mips/tm-wince.h: Remove #undef of macro
12084 TARGET_BYTE_ORDER_SELECTABLE.
12085 * config/sh/tm-wince.h: Ditto.
12086
12087 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12088
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
12094 functions.
12095
12096 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12097
12098 * f-typeprint.c: Delete unused function f_type_print_args.
12099 * p-typeprint.c: Delete unused function pascal_type_print_args.
12100
12101 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12104 comment. Add ``artificial'' to ``union field_location''.
12105
12106 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12107
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.
12115
12116 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12117
12118 * configure.in (host_makefile_frag): Only require a host makefile
12119 fragment when a native build.
12120 * configure: Re-generate.
12121
12122 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12123
12124 * doublest.h (floatformat_from_type): Declare.
12125 * doublest.c (floatformat_from_type): New function.
12126 (convert_typed_floating): Use.
12127
12128 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12129 call to function floatformat_from_type.
12130
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.
12145
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.
12153
12154 2002-01-20 Jiri Smid <smid@suse.cz>
12155
12156 * configure.host, configure.tgt: Support x86-64.
12157 * NEWS: Note new target x86-64.
12158
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.
12164
12165 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12166
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.
12172
12173 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12174
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.
12185
12186 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12187
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.
12205
12206 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12207
12208 * config/mips/xm-news-mips.h: Delete file.
12209 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12210
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.
12215
12216 * config/alpha/xm-fbsd.h: Delete file.
12217 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12218
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.
12224
12225 * config/i386/xm-windows.h: Delete file.
12226
12227 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12228
12229 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12230 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12231
12232 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12233
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.
12239
12240 2002-01-19 Per Bothner <per@bothner.com>
12241
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.
12244
12245 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12246
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.
12260
12261 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12262
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.
12266
12267 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12268
12269 * alpha-tdep.c (frame_extra_info): New.
12270 (alpha_find_saved_regs): Make static. Use
12271 frame->extra_info.
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.
12290
12291 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12292
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.
12306
12307 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12308
12309 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12310 obsolete.
12311
12312 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12313
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.
12321
12322 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12323
12324 * alpha-tdep.c (alpha_register_name): New function.
12325 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12326 (REGISTER_NAME): Define.
12327
12328 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12329
12330 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12331
12332 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12333
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.
12339
12340 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12341
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.
12349
12350 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12351
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.
12440
12441 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12442
12443 * utils.c (internal_verror): Fix comments, default is yes not no.
12444 Update queries to match. Default to quit and dump core.
12445
12446 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12447
12448 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12449 copyright.
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.
12457
12458 * stack.c, symfile.c: Update copyright.
12459
12460 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12461
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.
12466
12467 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12468
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.
12475
12476 * gdbserver/low-linux.c (myattach): New function.
12477
12478 * gdbserver/server.c (attach_inferior): New function.
12479 (main): Handle "--attach".
12480
12481 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12482
12483 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12484 maintainer.
12485
12486 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12487
12488 * c-typeprint.c (is_type_conversion_operator): Add additional
12489 check for non-conversion operators.
12490
12491 2002-01-15 Michael Snyder <msnyder@redhat.com>
12492
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".
12498
12499 2002-01-15 Michael Snyder <msnyder@redhat.com>
12500
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.
12507
12508 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12509
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
12514 types.
12515 (builtin_type_vec128): New builtin type for 128 bit vector
12516 registers.
12517 (build_gdbtypes): Initialize builtin_type_v16qi and
12518 builtin_type_v8hi. Create the vec128 register builtin type
12519 structure.
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.
12525
12526 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12529 to make_cv_type.
12530
12531 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12532
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.
12536
12537 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12538
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.
12542
12543 2002-01-14 Michael Snyder <msnyder@redhat.com>
12544
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.
12549
12550 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12551
12552 * signals.c (target_signal_to_name): Rewrite. Only use
12553 signals[].name when in bounds and non-NULL.
12554
12555 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12556
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.
12560
12561 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12562
12563 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12564
12565 2002-01-13 Keith Seitz <keiths@redhat.com>
12566
12567 * stack.c (print_frame_info_base): Print the frame's pc
12568 only if when print_frame_info_listing_hook is not defined.
12569
12570 2002-01-13 Keith Seitz <keiths@redhat.com>
12571
12572 * varobj.c (varobj_set_value): Make sure that there were no
12573 errors evaluating the object before attempting to set its
12574 value.
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
12583 the value "{...}".
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.
12595
12596 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12597
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.
12602
12603 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12604
12605 From Jeff law:
12606 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12607 structures passed in registers.
12608
12609 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12610
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>.
12614
12615 2002-01-11 Michael Snyder <msnyder@redhat.com>
12616
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.
12629
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.
12634
12635 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12636
12637 From Peter Schauer:
12638 * language.c (longest_local_hex_string_custom): Use phex_nz to
12639 convert NUM to a hex string.
12640
12641 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12642
12643 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12644 the function.
12645 Update Copyright year.
12646
12647 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12648
12649 * language.c (longest_raw_hex_string): Delete unused function.
12650
12651 2002-01-11 Petr Sorfa <petrs@caldera.com>
12652
12653 * MAINTAINERS (write-after-approval): Add myself.
12654 * dwarf2read.c (read_tag_string_type): Handling of
12655 DW_AT_byte_size.
12656 (read_tag_string_type): FORTRAN fix to prevent propagation of
12657 first string size.
12658 (set_cu_language): Handling of DW_LANG_Fortran95
12659
12660 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12661
12662 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12663 GETPID(inferior_ptid).
12664 (store_inferior_registers): Likewise.
12665
12666 2002-01-10 Jason Merrill <jason@redhat.com>
12667
12668 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12669 Fix DW_OP_minus.
12670
12671 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12672
12673 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12674 and bfd/elf32-sh-nbsd.c.
12675
12676 2002-01-10 Michael Snyder <msnyder@redhat.com>
12677
12678 * NEWS: Mention --pid and corefile/proc-id behavior change.
12679
12680 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12681 * gcore.c: Include cli/cli-decode.h instead of command.h.
12682
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
12686 it as a corefile.
12687 (print_gdb_help): Document the "--pid" argument.
12688
12689 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12690
12691 * completer.c (command_completer): New function.
12692
12693 * completer.h <command_completer>: Add prototype.
12694
12695 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12696 completer for the "help" command.
12697
12698 2002-01-09 Jason Merrill <jason@redhat.com>
12699
12700 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12701
12702 2002-01-09 Michael Snyder <msnyder@redhat.com>
12703
12704 * i386-linux-nat.c (fill_fpxregset): Make global.
12705 (store_fpxregset): Ditto.
12706
12707 * gregset.h (gdb_fpxregset_t): Define.
12708 (supply_fpxregset): Prototype.
12709 (fill_fpxregset): Prototype.
12710
12711 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12712
12713 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12714
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.
12718
12719 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12720
12721 * MAINTAINERS: Update target maintainer rules so that any
12722 Maintainer can approve a tested patch for a maintenance-only
12723 target.
12724
12725 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12726
12727 * MAINTAINERS (write-after-approval): Add myself.
12728
12729 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12730 IN_SIGTRAMP.
12731
12732 2002-01-08 Michael Snyder <msnyder@redhat.com>
12733
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.
12736
12737 2002-01-03 Michael Snyder <msnyder@redhat.com>
12738
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.
12780
12781 2002-01-07 Michael Snyder <msnyder@redhat.com>
12782
12783 * arm-linux-nat.c: Remove references to regcache.c internal data
12784 (registers[] and register_valid[]).
12785
12786 2002-01-07 Michael Snyder <msnyder@redhat.com>
12787
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.
12802
12803 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12804
12805 * win32-nat.c: Add i386-tdep.h dependency.
12806
12807 2002-01-07 Michael Snyder <msnyder@redhat.com>
12808
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.
12812
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.
12818
12819 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12820 use tilde_expand and strerror for opening save-tracepoints file.
12821
12822 * thread-db.c (thread_db_new_objfile): Indendation fix.
12823
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.
12833
12834 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12835
12836 From Nick Clifton <nickc@redhat.com>
12837 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12838
12839 2002-01-07 Michael Snyder <msnyder@redhat.com>
12840
12841 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12842 Don't use exec_bfd if it's NULL.
12843
12844 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12845
12846 * valops.c (value_arg_coerce): Fix formatting.
12847
12848 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12849
12850 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12851 * gnu-nat.c: Ditto.
12852
12853 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12854
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
12860 status.
12861
12862 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12863
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
12867 comments.
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.
12882
12883 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12884
12885 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12886 with BFD_ENDIAN_BIG.
12887
12888 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12889
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>.
12894
12895 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12896
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
12917 i386bsd-nat.o.
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.
12928
12929 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12930
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.
12950 * NEWS: Update.
12951
12952 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12953
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.
12970
12971 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12972
12973 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12974 for core files.
12975
12976 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12977
12978 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12979
12980 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12981
12982 * value.h (value_ptr): Delete typedef.
12983
12984 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12985
12986 * i386nbsd-nat.c: Update copyright years.
12987 Include i386-tdep.h.
12988
12989 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12990
12991 * stabsread.c: Update copyright years.
12992
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.
12996 Fix PR gdb/269.
12997
12998 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12999
13000 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13001 prototype.
13002
13003 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13004
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.
13009
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.
13014
13015 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13016
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.
13020
13021 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13022
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.
13028
13029 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13030
13031 * valarith.c: Replace value_ptr with struct value pointer. Remove
13032 register attribute from value declarations.
13033 * valops.c: Ditto.
13034 * value.h: Ditto.
13035 * scm-lang.c (scm_lookup_name): Ditto.
13036
13037 2002-01-03 Michael Snyder <msnyder@redhat.com>
13038
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.
13047
13048 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13049
13050 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13051
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
13056 combinations.
13057
13058 * maint.c (_initialize_maint_cmds): Add missing \ in
13059 string-literal.
13060
13061 For older changes see ChangeLog-2001
13062 \f
13063 Local Variables:
13064 mode: change-log
13065 left-margin: 8
13066 fill-column: 74
13067 version-control: never
13068 End:
This page took 0.311687 seconds and 4 git commands to generate.