d06968906516d2fd7ea6ffae2a5cebba82d016fa
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2
3 * complaints.h: Add comment explaining how to eliminate a
4 deprecated_complain call.
5 * complaints.h: Fix spelling errors.
6
7 2002-11-15 David Carlton <carlton@math.stanford.edu>
8
9 * printcmd.c: Remove #include "disasm.h".
10
11 2002-11-14 Andrew Cagney <ac131313@redhat.com>
12
13 * frame.h: Move the most relevant interface functions to the start
14 of the file.
15
16 2002-11-14 Andrew Cagney <ac131313@redhat.com>
17
18 * regcache.h (deprecated_registers): Rename registers.
19 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
20 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
21 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
22 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
23 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
24 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
25 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
26 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
27 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
28 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
29 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
30 * v850ice.c: Update.
31
32 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
33
34 * utils.c (gdb_realpath): Add comment mentioning realpath with a
35 NULL buffer.
36
37 2002-11-13 Andrew Cagney <cagney@redhat.com>
38
39 * regcache.h (deprecated_read_register_bytes): Rename
40 read_register_bytes.
41 (deprecated_write_register_bytes): Rename write_register_bytes.
42 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
43 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
44 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
45 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
46 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
47 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
48 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
49 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
50 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
51 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
52 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
53 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
54 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
55 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
56
57 2002-11-13 Jim Blandy <jimb@redhat.com>
58
59 * findvar.c (read_var_value): Doc fix.
60
61 2002-11-13 Andrew Cagney <cagney@redhat.com>
62
63 * regcache.c (struct regcache): Replace passthough_p with
64 readonly_p.
65 (regcache_xmalloc): Initialize readonly_p.
66 (build_regcache): Initialize readonly_p.
67 (regcache_save): New function.
68 (regcache_restore): New function.
69 (regcache_cpy): Re-implement using regcache_save and
70 regcache_restore.
71 (regcache_raw_read): Update.
72 (regcache_cooked_read): When a read-only cache, checked for cached
73 pseudo register values.
74 (regcache_raw_write): Assert that the cache is not read-only.
75 Remove code handling a non-passthrough cache.
76 * regcache.h (regcache_save): Declare.
77 (regcache_restore): Declare.
78
79 2002-11-13 Andrew Cagney <cagney@redhat.com>
80
81 * regcache.c (struct regcache_descr): Add fields
82 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
83 (init_legacy_regcache_descr): Compute the size of a cooked
84 register cache and then assign that to sizeof_raw_registers. Set
85 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
86 (init_legacy_regcache_descr): Ditto.
87
88 2002-11-13 Andrew Cagney <cagney@redhat.com>
89
90 * regcache.c (register_buffer): Move to near start of file, update
91 description.
92 (regcache_raw_read): Use.
93 (regcache_raw_write): Use.
94 (struct regcache): Rename raw_registers to registers and
95 raw_register_valid_p to register_valid_p.
96 (regcache_xmalloc): Update.
97 (regcache_xfree): Update.
98 (register_buffer): Update.
99 (regcache_cpy): Update.
100 (regcache_cpy_no_passthrough): Update.
101 (regcache_valid_p): Update.
102 (deprecated_grub_regcache_for_registers): Update.
103 (deprecated_grub_regcache_for_register_valid): Update.
104 (set_register_cached): Update.
105 (regcache_raw_write): Update.
106
107 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
108
109 * p-exp.y (name_not_typename): Use copy_name to
110 set current_type variable for fields of THIS.
111
112 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
113
114 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
115 * monitor.c (init_base_monitor_ops): Likewise.
116 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
117 * remote-array.c (init_array_ops): Likewise.
118 * remote-e7000.c (init_e7000_ops): Likewise.
119 * remote-es.c (init_es1800_ops): Likewise.
120 (init_es1800_child_ops): Likewise.
121 * remote-rdp.c (init_remote_rdp_ops): Likewise.
122 * remote-sim.c (init_gdbsim_ops): Likewise.
123 * remote-st.c (init_st2000_ops): Likewise.
124 * sol-thread.c (init_sol_core_ops): Likewise.
125 (init_sol_thread_ops): Likewise.
126 * v850ice.c (init_850ice_ops): Likewise.
127 * win32-nat.c (init_child_ops): Likewise.
128 * wince.c (init_child_ops): Likewise.
129
130 2002-11-12 Andrew Cagney <ac131313@redhat.com>
131
132 * utils.c (gdb_realpath): Make rp a constant pointer.
133
134 2002-11-12 Andrew Cagney <ac131313@redhat.com>
135
136 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
137 a constant buffer; cannonicalize_file_name(); realpath() with a
138 pathconf() defined buffer, xstrdup().
139
140 2002-11-12 Andrew Cagney <ac131313@redhat.com>
141
142 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
143 to hang2.C; hang3.c to hang3.C.
144
145 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
146
147 * findvar.c (read_var_value): Reenable TLS code.
148
149 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
150 Jim Blandy <jimb@redhat.com>
151
152 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
153 * target.c (update_current_target): Add
154 to_get_thread_local_address.
155 * target.h (to_get_thread_local_address): Export.
156 (target_get_thread_local_address): Define.
157 (target_get_thread_local_address_p): Define.
158 * thread-db.c: Include solib-svr4.h.
159 (td_thr_tls_get_addr_p): Define.
160 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
161 (thread_db_get_thread_local_address): New function.
162 (init_thread_db_ops): Initialize to_get_thread_local_address.
163 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
164 * configure: Regenerate.
165 * config.in: Regenerate.
166
167 2002-11-11 David Carlton <carlton@math.stanford.edu>
168
169 * linespec.c (set_flags): New function.
170 (decode_line_1): Move code into set_flags.
171
172 2002-11-11 David Carlton <carlton@math.stanford.edu>
173
174 * linespec.c (decode_line_1): Move chunks of code to separate
175 functions.
176 (initialize_defaults): New function.
177 (decode_indirect): New function.
178
179 2002-11-11 Andrew Cagney <ac131313@redhat.com>
180
181 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
182 instead of void_code_ptr.
183 (sigtramp_saved_pc): Ditto.
184
185 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
186 i386_fp_regnum_p.
187
188 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
189
190 * gdbtypes.h (struct main_type): Move artificial flag out of
191 loc. New member of ``struct field'' named static_kind. Reduce
192 overloaded meaning of bitsize.
193 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
194 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
195 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
196
197 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
198 new fields.
199 (template_to_fixed_record_type, template_to_static_fixed_type)
200 (to_record_with_fixed_variant_part): Likewise.
201 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
202 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
203 * dwarfread.c (struct_type, enum_type): Likewise.
204 * hpread.c (hpread_read_enum_type)
205 (hpread_read_function_type, hpread_read_doc_function_type)
206 (hpread_read_struct_type): Likewise.
207 * mdebugread.c (parse_symbol): Likewise.
208
209 2002-11-10 Andrew Cagney <ac131313@redhat.com>
210
211 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
212 * stack.c (print_frame_info_base): Update.
213 (print_frame_info_base, frame_info): Update.
214 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
215 (sparc_frame_saved_pc): Update.
216 * ada-lang.c (find_printable_frame): Update.
217 * breakpoint.c (deprecated_frame_in_dummy): Update.
218
219 2002-11-09 Mark Kettenis <kettenis@gnu.org>
220
221 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
222 defined.
223 (regmap): Extend to cover all registers.
224 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
225 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
226 definitions.
227 (fetch_register, sore_register): Simplify.
228 (old_fetch_inferior_registers, old_store_inferior_registers):
229 Remove functions.
230 (cannot_fetch_register, cannot_store_register): Change
231 implementation to use regmap array to decide which registers
232 cannot be fetched/stored. This removes $orig_eax from the
233 registers that cannot be fetched/stored.
234 (fetch_inferior_registers): Call fetch_register directly instead
235 of calling old_fetch_inferior_registers.
236 (store_inferior_registers): Call store_register directly instead
237 of calling old_store_inferior_registers.
238 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
239 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
240 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
241
242 2002-11-09 Klee Dienes <kdienes@apple.com>
243
244 * i387-tdep.c (i387_supply_register): When called with NULL as a
245 buffer, mark the register as not provided (to mirror the behavior
246 of supply_register).
247 (i387_supply_fxsave): Ditto.
248 (i387_supply_fsave): Ditto (inherits the behavior from
249 i387_supply_register).
250
251 2002-11-09 Klee Dienes <kdienes@apple.com>
252
253 * blockframe.c (sigtramp_saved_pc): Use
254 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
255 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
256 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
257
258 2002-11-09 Andrew Cagney <ac131313@redhat.com>
259
260 * frame.c (get_prev_frame): Test prev_p to identify a previously
261 unwound frame. Initialize prev_p.
262 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
263 comment.
264
265 2002-11-09 Andrew Cagney <ac131313@redhat.com>
266
267 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
268 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
269 more comments. Zap dead code.
270
271 2002-11-09 Mark Kettenis <kettenis@gnu.org>
272
273 * infcmd.c (print_vector_info, print_float_info): Move code that
274 checks whether the target has any registers and whether there is a
275 selected frame up, such that it is also used if a target provides
276 multi-arch definitions of these functions.
277
278 2002-11-08 Andrew Cagney <ac131313@redhat.com>
279
280 * Makefile.in (DESTDIR): Define.
281 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
282 prefix.
283
284 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
285 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
286
287 2002-11-08 Andrew Cagney <ac131313@redhat.com>
288
289 * i386-linux-tdep.c: Include "reggroups.h".
290 (i386_linux_register_reggroup_p): New function.
291 (i386_linux_init_abi): Set register_reggroup_p to
292 i386_linux_register_reggroup_p.
293 * i386-tdep.h (i386_register_reggroup_p): Declare.
294 * i386-tdep.c: Include "reggroups.h".
295 (i386_init_reggroups): New function.
296 (i386_add_reggroups): New function.
297 (i386_register_reggroup_p): New function.
298 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
299 (_initialize_i386_tdep): Call i386_init_reggroups.
300 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
301 specific reggroups.
302
303 2002-11-09 Mark Kettenis <kettenis@gnu.org>
304
305 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
306 request that's available in *BSD.
307
308 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
309
310 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
311 FDOFF_REGNUM.
312
313 2002-11-08 Andrew Cagney <ac131313@redhat.com>
314
315 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
316 * dummy-frame.c (find_dummy_frame): Rename
317 generic_find_dummy_frame, make static. Return the dummy frame
318 instead of the regcache.
319 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
320 (cached_find_dummy_frame): New function. Use find_dummy_frame.
321 (dummy_frame_register_unwind): Rename
322 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
323 * dummy-frame.h (dummy_frame_register_unwind): Rename
324 generic_call_dummy_register_unwind.
325
326 2002-11-08 Mark Kettenis <kettenis@gnu.org>
327
328 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
329 except the inclusion of "i386/tm-i386.h", to...
330 * config/i386/nm-i386v42mp.h: ...here.
331 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
332
333 2002-11-08 Andrew Cagney <ac131313@redhat.com>
334
335 * Makefile.in (frame.o): Update dependencies.
336 * blockframe.c (current_frame, frame_obstack_alloc)
337 (frame_saved_regs_zalloc, get_current_frame)
338 (set_current_frame, create_new_frame)
339 (set_unwind_by_pc, get_next_frame)
340 (flush_cached_frames, reinit_frame_cache)
341 (frame_saved_regs_register_unwind)
342 (deprecated_generic_get_saved_register)
343 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
344 (_initialize_blockframe): Move frame code from here...
345 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
346 "annotate.h" and "dummy-frame.h".
347 (_initialize_frame): New function.
348
349 2002-11-08 Jim Blandy <jimb@redhat.com>
350
351 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
352 when we finish a function a context.
353 * buildsym.h (outermost_context_p): New macro.
354 (Bug analyzed by David Edelsohn.)
355
356 2002-11-08 Andrew Cagney <ac131313@redhat.com>
357
358 * blockframe.c: Include "dummy-frame.h".
359 (struct dummy_frame, dummy_frame_stack)
360 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
361 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
362 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
363 (generic_save_call_dummy_addr, generic_pop_current_frame)
364 (generic_pop_dummy_frame, generic_fix_call_dummy)
365 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
366 dummy frame code from here...
367 * dummy-frame.c: ...to here. New file.
368 * dummy-frame.h: New file.
369 (generic_call_dummy_register_unwind): Declare.
370 (generic_find_dummy_frame): Declare.
371 * Makefile.in (SFILES): Add dummy-frame.c.
372 (dummy-frame.o): Specify dependencies.
373 (dummy_frame_h): Define.
374 (COMMON_OBS): Add dummy-frame.o.
375 (blockframe.o): Update dependencies.
376
377 2002-11-08 Jim Blandy <jimb@redhat.com>
378
379 * dwarf2read.c (read_func_scope): Restore local_symbols and
380 param_symbols after we finish the function context. (Based on a
381 patch from David Edelsohn.)
382
383 2002-11-08 David Carlton <carlton@math.stanford.edu>
384
385 * linespec.c (symbol_found): New function.
386 (minsym_found): New function.
387 (decode_line_1): Separate out some code into separate functions.
388
389 2002-11-08 Joel Brobecker <brobecker@gnat.com>
390
391 * i386-tdep.c (i386_frameless_signal_p): Make non static for
392 the benefit of the interix target.
393 * i386-tdep.h (i386_frameless_signal_p): Declare.
394
395 2002-11-08 Andrew Cagney <ac131313@redhat.com>
396
397 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
398 declaration that snuck in from change below.
399
400 2002-11-06 Andrew Cagney <cagney@redhat.com>
401
402 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
403 all callers.
404 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
405 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
406 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
407 (i386_mxcsr_regnum_p): new function. Use instead of
408 MXCSR_REGNUM_P.
409 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
410 (i386_sse_regnum_p): Declare.
411 (i386_mxcsr_regnum_p): Declare.
412 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
413 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
414 (IS_FP_REGNUM): Update definition.
415 (IS_FPU_CTRL_REGNUM): Update definition..
416 (IS_SSE_REGNUM): Update definition..
417 * i386v-nat.c (register_u_addr): Update.
418 * go32-nat.c (fetch_register): Update.
419 (store_register): Update.
420
421 2002-11-07 Joel Brobecker <brobecker@gnat.com>
422
423 Preparation work to convert the hppa targets to multiarch partial.
424
425 * hppa-tdep.c: Add new functions replacing macro bodies from
426 config/pa/tm-hppa.h. These function will be used to initialize
427 the gdbarch structure. Import some comments from tm-hppa.h,
428 and place them where appropriate, to avoid loosing them when
429 we cleanup this file.
430 (hppa_reg_struct_has_addr): New function.
431 (hppa_inner_than): New function.
432 (hppa_stack_align): New function.
433 (hppa_pc_requires_run_before_use): New function.
434 (hppa_instruction_nullified): New function.
435 (hppa_register_byte): New function.
436 (hppa_register_virtual_type): New function.
437 (hppa_store_struct_return): New function.
438 (hppa_cannot_store_register): New function.
439 (hppa_frame_args_address): New function.
440 (hppa_frame_locals_address): New function.
441 (hppa_smash_text_address): New function.
442 (hppa_coerce_float_to_double): New function. Requires the inclusion
443 of "language.h".
444
445 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
446
447 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
448 gdbarch-eligible macro to a call to the new associated function
449 created in hppa-tdep.c.
450 (INNER_THAN): Likewise.
451 (STACK_ALIGN): Likewise.
452 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
453 (INSTRUCTION_NULLIFIED): Likewise.
454 (REGISTER_BYTE): Likewise.
455 (REGISTER_VIRTUAL_TYPE): Likewise.
456 (STORE_STRUCT_RETURN): Likewise.
457 (CANNOT_STORE_REGISTER): Likewise.
458 (FRAME_ARGS_ADDRESS): Likewise.
459 (FRAME_LOCALS_ADDRESS): Likewise.
460 (SMASH_TEXT_ADDRESS): Likewise.
461 (COERCE_FLOAT_TO_DOUBLE): Likewise.
462 (ABOUT_TO_RETURN): Delete, as no longer used.
463
464 2002-11-07 Fernando Nasser <fnasser@redhat.com>
465
466 * printcmd.c (disassemble_command): Remove obsolete function.
467 (_initialize_printcmd): Do not create disassemble command here.
468 * cli/cli-cmds.c (disassemble_command): New function. Implements
469 disassemble command.
470 (init_cli_cmds): Create disassemble command here instead.
471
472 2002-11-07 Andrew Cagney <ac131313@redhat.com>
473
474 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
475
476 2002-11-07 Andrew Cagney <ac131313@redhat.com>
477
478 * regcache.h (regcache_cooked_read_using_offset_hack)
479 (regcache_cooked_write_using_offset_hack): Delete declarations.
480 (register_changed): Delete declaration.
481 * regcache.c (regcache_cooked_read_using_offset_hack)
482 (regcache_cooked_write_using_offset_hack): Delete functions.
483 (cooked_xfer_using_offset_hack): Delete function.
484 (register_changed): Delete function.
485
486 2002-11-07 Jim Blandy <jimb@redhat.com>
487
488 * macroscope.c: #include "complaints.h".
489 (sal_macro_scope): Cope with filenames that appear in the symtabs,
490 but not in the macro table.
491 * Makefile.in (macroscope.o): Record dependency.
492
493 2002-11-07 Joel Brobecker <brobecker@gnat.com>
494
495 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
496
497 2002-11-07 Andrew Cagney <ac131313@redhat.com>
498
499 * regcache.c (deprecated_registers_fetched): Update.
500 * regcache.h (deprecated_registers_fetched): Rename
501 registers_fetched.
502 * remote-vxsparc.c (vx_read_register): Update.
503 * remote-vxmips.c (vx_read_register): Update.
504 * remote-vx68.c (vx_read_register): Update.
505 * irix5-nat.c (fetch_core_registers): Update.
506 * mipsm3-nat.c (fetch_inferior_registers): Update.
507 * sun3-nat.c (fetch_inferior_registers): Update.
508 * symm-nat.c (fetch_inferior_registers): Update.
509 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
510 (fetch_core_registers): Update.
511 (fetch_kcore_registers): Update.
512 * mips-nat.c (fetch_inferior_registers): Update.
513 * corelow.c (get_core_registers): Update.
514 * a68v-nat.c (fetch_inferior_registers): Update.
515
516 2002-11-06 Joel Brobecker <brobecker@gnat.com>
517
518 Put in place the framework necessary for multiarching the hppa targets.
519 * hppa-tdep.c (hppa_gdbarch_init): New function.
520 (hppa_dump_tdep): New function.
521 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
522 tdep structure dumper.
523 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
524 until the multi-arching conversion has partially been completed.
525
526 2002-11-06 Andrew Cagney <ac131313@redhat.com>
527
528 * valops.c (value_assign): Merge lval_register case into
529 lval_reg_frame_relative. Use frame_register and
530 regcache_cooked_write instead of get_saved_register and
531 write_register_bytes. After flushing the register cache, try to
532 re-select the selected frame.
533
534 2002-11-06 Andrew Cagney <ac131313@redhat.com>
535
536 * regcache.h (deprecated_register_valid): Rename register_valid.
537 * regcache.c: Update.
538 * ia64-aix-nat.c: Update.
539 * i386gnu-nat.c: Update.
540 * alpha-nat.c: Update.
541 * sparc-nat.c: Update.
542 * lynx-nat.c: Update.
543 * remote-mips.c: Update.
544
545 2002-11-06 Joel Brobecker <brobecker@gnat.com>
546
547 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
548 to end of file, to be more consistent with the pratice followed
549 by other targets.
550
551 2002-11-06 Andrew Cagney <ac131313@redhat.com>
552
553 * infcmd.c: Include "reggroups.h" and <ctype.h>.
554 (print_float_info): Print registers in float_reggroup.
555 (print_vector_info): Print registers in vector_reggroup.
556 (default_print_registers_info): When all, print registers in
557 all_reggroup. Otherwize, print registers in general_reggroup.
558 (registers_info): Rewrite. Add support for register groups.
559 Eliminate a goto.
560
561 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
562
563 * symtab.c (methods_info): Delete. It has been ifdeffed out for
564 ages.
565 (symtab_symbol_info): Remove eons old ifdeffed out code.
566 (_initialize_symtab): Remove prehistoric disabled 'info methods'
567 command.
568
569 2002-11-06 Theodore A. Roth <troth@openavr.org>
570
571 * c-exp.y: Add missing semi-colons.
572 * f-exp.y: Add missing semi-colons.
573 * m2-exp.y: Add missing semi-colons.
574 * p-exp.y: Add missing semi-colons.
575 Add empty action to start rule to avoid a type clash error when
576 building with bison >= 1.50.
577
578 2002-11-06 Jim Blandy <jimb@redhat.com>
579
580 * macrotab.h (struct macro_source_file): Doc fix.
581
582 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
583
584 * varobj.c (child_exists, cplus_number_of_children): Change
585 STREQ macro references to strcmp.
586 (cplus_name_of_child): Change code to handle the fact that
587 fields are not necessarily contiguous with regards to their
588 access control. This is a fix for PR gdb/792.
589
590 2002-11-05 Andrew Cagney <ac131313@redhat.com>
591
592 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
593 * gdbarch.h, gdbarch.c: Regnerate.
594 * frame.h (frame_register): Declare.
595 * frame.c (frame_register): New function.
596 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
597 GET_SAVED_REGISTER, otherwize call
598 generic_unwind_get_saved_register.
599 (frame_register_read): Use frame_register instead of
600 get_saved_register.
601
602 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
603
604 From Jim Ingham <jingham@apple.com>:
605 * event-top.c (gdb_disable_readline): New function.
606 (_initialize_event_loop): Move comment.
607
608 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
609
610 * event-loop.c (start_event_loop): Add comment.
611 Update copyright.
612
613 2002-11-05 Andrew Cagney <ac131313@redhat.com>
614
615 * infcmd.c (default_print_registers_info): Do not call
616 PRINT_REGISTER_HOOK.
617
618 2002-11-05 Andrew Cagney <ac131313@redhat.com>
619
620 * sparc-tdep.c (sparc_print_register_hook): Make static.
621 (sparc_print_registers_info): New function.
622 (sparc_do_registers_info): New function.
623 (sparclet_print_registers_info): New function.
624 (sparclet_do_registers_info): New function.
625 (do_sparc_print_registers_info): New function.
626 (sparc_print_registers): New static function, clone of infcmd.c's
627 default_print_registers_info.
628 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
629 (sparclet_do_registers_info): Declare.
630 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
631 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
632 Re-define.
633 (sparc_do_registers_info): Declare.
634 (PRINT_REGISTER_HOOK): Delete macro.
635 (sparc_print_register_hook): Delete declaration.
636
637 2002-11-05 David Carlton <carlton@math.stanford.edu>
638
639 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
640 functions.
641 (lookup_symbol_aux_local): New function.
642 (lookup_symbol_aux_symtabs): New function.
643 (lookup_symbol_aux_psymtabs): New function.
644
645 2002-11-05 David Carlton <carlton@math.stanford.edu>
646
647 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
648 previous values of 'objfile' and 'block'.
649
650 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
651
652 * values.c (value_change_enclosing_type): Set
653 enclosing_type field correctly also for the case where
654 more memory needs to be allocated.
655
656 2002-11-03 Mark Kettenis <kettenis@gnu.org>
657
658 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
659 of puts_filtered.
660
661 * i387-tdep.c (i387_print_float_info): Replace calls to
662 register_read and deprecated_read_register_gen with calls to
663 frame_register_read, and make the necessary adjustments to the
664 surrounding code.
665
666 2002-11-02 Andrew Cagney <ac131313@redhat.com>
667
668 * gdbarch.sh (register_reggroup_p): Allow default value.
669 * gdbarch.h, gdbarch.c: Regenerate.
670
671 2002-11-02 Andrew Cagney <ac131313@redhat.com>
672
673 * regcache.h: Add coment indicating replacements for deprecated
674 functions.
675
676 2002-11-02 Andrew Cagney <cagney@redhat.com>
677
678 * reggroups.h, reggroups.c: New files.
679 * regcache.c: Include "reggroups.h".
680 (enum regcache_dump_what): Add `regcache_dump_groups'.
681 (regcache_dump): Contract size of the "Type" column. When
682 specified, dump the register's groups.
683 (maintenance_print_register_groups): New function.
684 (_initialize_regcache): Add command `maint print register-groups'.
685 * Makefile.in (COMMON_OBS): Add reggroups.o
686 (SFILES): Add reggroups.c.
687 (reggroups_h): Define.
688 (regcache.o, gdbarch.o): Update dependencies.
689 (reggroups.o): Specify dependencies.
690 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
691 Add opaque declaration for `struct reggroup' in generated .h file.
692 Include "reggroups.h" in generated .c file.
693 gdbarch.h, gdbarch.c: Re-generate.
694
695 2002-11-02 Andrew Cagney <cagney@redhat.com>
696
697 * regcache.h (deprecated_read_register_gen): Rename
698 read_register_gen.
699 (deprecated_write_register_gen): Rename write_register_gen.
700 * i387-tdep.c: Update.
701 * x86-64-linux-nat.c: Update
702 * wince.c: Update.
703 * thread-db.c: Update.
704 * win32-nat.c: Update.
705 * mips-tdep.c: Update.
706 * d10v-tdep.c: Update.
707 * cris-tdep.c: Update.
708 * remote-sim.c: Update.
709 * remote-rdi.c: Update.
710 * remote-rdp.c: Update.
711 * frame.c: Update.
712 * target.c: Update.
713 * blockframe.c: Update.
714 * x86-64-tdep.c: Update.
715 * xstormy16-tdep.c: Update.
716 * sh-tdep.c: Update.
717 * s390-tdep.c: Update.
718 * rs6000-tdep.c: Update.
719 * sparc-tdep.c: Update.
720 * i386-tdep.c: Update.
721 * dwarf2cfi.c: Update.
722 * regcache.c: Update.
723
724 2002-11-01 Joel Brobecker <brobecker@gnat.com>
725
726 New interix-specific files:
727 * config/i386/nm-interix.h: New file.
728 * config/i386/interix.mh: New file.
729 * config/i386/interix.mt: New file.
730 * i386-interix-nat.c: New file.
731 * i386-interix-tdep.c: New file.
732
733 2002-11-01 Andrew Cagney <cagney@redhat.com>
734
735 * frame.h (deprecated_generic_get_saved_register): Rename
736 generic_get_saved_register.
737 * blockframe.c (deprecated_generic_get_saved_register): Update.
738 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
739 (xstormy16_frame_saved_register): Update.
740 * sh-tdep.c (sh_gdbarch_init): Update.
741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
742 * ia64-tdep.c (ia64_get_saved_register): Update.
743 * cris-tdep.c (cris_gdbarch_init): Update.
744 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
745 * arm-tdep.c (arm_gdbarch_init): Update.
746
747 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
748
749 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
750
751 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
752
753 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
754 trampolines in sigaction.
755
756 2002-10-31 Andrew Cagney <cagney@redhat.com>
757
758 * h8300-tdep.c: Include "gdb_assert.h".
759 (h8300_print_register): Add gdbarch, file and frame parameters.
760 Use frame_read_unsigned_register to read the register's value.
761 Use fprintf_filtered to display output.
762 (h8300_print_registers_info): Replace h8300_do_registers_info.
763 (h8300_gdbarch_init): Set print_registers_info.
764
765 2002-10-31 Andrew Cagney <cagney@redhat.com>
766
767 * frame.c (frame_read_unsigned_register): New function.
768 (frame_read_signed_register): New function.
769 * frame.h (frame_read_unsigned_register): Declare.
770 (frame_read_signed_register): Declare.
771
772 2002-10-31 Andrew Cagney <cagney@redhat.com>
773
774 * h8500-tdep.c (h8500_print_registers_info): New static function,
775 clone of infcmd.c's default_print_registers_info.
776 (h8500_do_registers_info): New funtion.
777 (h8500_print_register_hook): Rename print_register_hook, make
778 static.
779
780 * config/h8500/tm-h8500.h: Update copyright.
781 (DEPRECATED_DO_REGISTERS_INFO): Define.
782 (h8500_do_registers_info: Declare.
783 (PRINT_REGISTER_HOOK): Delete macro.
784 (print_register_hook): Delete function.
785
786 2002-10-31 Andrew Cagney <cagney@redhat.com>
787
788 * z8k-tdep.c (z8k_print_register_hook): Make static.
789 (z8k_print_registers_info): New static function, clone of
790 infcmd.c's default_print_registers_info.
791 (z8k_do_registers_info): New function. Wrap
792 z8k_print_registers_info.
793 * config/z8k/tm-z8k.h: Update copyright.
794 (PRINT_REGISTER_HOOK): Delete macro.
795 (z8k_print_register_hook): Delete declaration.
796 (DEPRECATED_DO_REGISTERS_INFO): Define.
797 (z8k_do_registers_info): Declare.
798
799 2002-10-30 Joel Brobecker <brobecker@gnat.com>
800
801 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
802 as this is already provided by value.h, and was actually causing
803 a compilation error because of a conflict in parameter type
804 declaration due to a missing const keyword.
805 (low_text_segment_addres): Fix a compilation warning.
806
807 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
808
809 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
810 registers without a name.
811 (mips_linux_cannot_store_register): Don't store registers without
812 a name.
813
814 2002-10-28 David Carlton <carlton@math.stanford.edu>
815
816 * symtab.c (find_addr_symbol): Delete. (It was already commented
817 out.)
818 * symtab.h: Delete prototype for find_addr_symbol.
819
820 2002-10-26 Andrew Cagney <cagney@redhat.com>
821
822 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
823 DO_REGISTERS_INFO.
824 gdbarch.h, gdbarch.c: Re-generate.
825 * infcmd.c (default_print_registers_info): Update reference.
826 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
827 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
828 * sh-tdep.c (sh_gdbarch_init): Ditto.
829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
830 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
831
832 2002-10-26 Mark Kettenis <kettenis@gnu.org>
833
834 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
835 cfi_init_extra_frame_info.
836 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
837 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
838
839 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
840 target where necessary. Add more comments and remove the ones
841 that don't provide any useful information.
842
843 * i386-tdep.c (i386_frame_saved_pc): Replace call to
844 deprecated_read_register_dummy with
845 frame_unwind_unsigned_register.
846
847 * i386-tdep.c (i386_extract_struct_value_address): Use
848 regcache_raw_read_unsigned instead of
849 regcache_cooked_read_unsigned since we know that the register
850 we're reading isn't a pseudo register. Rename variable 'val' into
851 the more descriptive 'addr'.
852
853 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
854 (x86_64_push_return_address): Add comment.
855 (x86_64_pop_frame): Make static.
856 (examine_argument): Clarify comment.
857 (x86_64_skip_prologue): Make prolog_expact variable static.
858
859 * dwarf2cfi.c: Fix some formatting problems.
860 (context_cpy, read_encoded_pointer): Clarify comments.
861
862 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
863 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
864 i386 target back into x86_64_gdbarch_init. Add some comments and
865 remove meaningless ones.
866
867 2002-10-25 Andrew Cagney <cagney@redhat.com>
868
869 * complaints.h (struct deprecated_complaint): Rename `struct
870 complaint'.
871 * complaints.c (complain): Update.
872 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
873 incorrect comment indicating that "symfile.h" was being included
874 for the `struct complaint' definition.
875 * remote-vx.c: Update.
876 * objc-lang.c: Update.
877 * xcoffread.c: Update.
878 * hpread.c: Update.
879 * mdebugread.c: Update.
880 * stabsread.c: Update.
881 * dwarf2read.c: Update.
882 * dwarfread.c: Update.
883 * elfread.c: Update.
884 * coffread.c: Update.
885 * stabsread.h: Update.
886 * dbxread.c: Update.
887 * buildsym.c: Update.
888 * gdbtypes.c: Update.
889 * macrotab.c: Update.
890
891 2002-10-25 Mark Kettenis <kettenis@gnu.org>
892
893 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
894 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
895 (x86_64_init_abi): ...new function.
896
897 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
898 * i386v-nat.c: Include "i386-tdep.h".
899
900 2002-10-25 Andrew Cagney <cagney@redhat.com>
901
902 * gdbtypes.c (address_space_name_to_int): Update.
903 (address_space_int_to_name): Update.
904 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
905 multi-arch predicate.
906 (address_class_name_to_type_flags): Ditto.
907 * gdbarch.h, gdbarch.c: Re-generate.
908
909 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
910
911 2002-10-24 Martin M. Hunt <hunt@redhat.com>
912
913 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
914
915 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
916
917 * symtab.h (INIT_SAL): Delete macro.
918 (init_sal): Export.
919 * symtab.c (init_sal): New function.
920
921 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
922 to init_sal function call.
923 (find_sal_from_funcs_and_line): Ditto.
924 (all_sals_for_line): Ditto.
925 * breakpoint.c (create_internal_breakpoint): Ditto.
926 (create_fork_vfork_event_catchpoint): Ditto.
927 (create_exec_event_catchpoint): Ditto.
928 (parse_breakpoint_sals): Ditto.
929 (watch_command_1): Ditto.
930 (handle_gnu_4_16_catch_command): Ditto.
931 (clear_command): Ditto.
932 * hppa-tdep.c (child_enable_exception_callback): Ditto.
933 * infcmd.c (run_stack_dummy): Ditto.
934 * infrun.c (process_event_stop_test): Ditto.
935 (check_sigtramp2): Ditto.
936 (step_over_function): Ditto.
937 * linespec.c (decode_line_2): Ditto.
938 (decode_line_1): Ditto.
939 * source.c (line_info): Ditto.
940 * symtab.c (find_pc_sect_line): Ditto.
941
942 2002-10-24 Michal Ludvig <mludvig@suse.cz>
943
944 * dwarf2cfi.c (struct context)
945 (struct context_reg): Moved to dwarf2cfi.h
946 (context_alloc, frame_state_alloc, context_cpy):
947 Made extern instead of static, removed prototypes.
948 * dwarf2cfi.h (struct context)
949 (struct context_reg): New, moved from dwarf2cfi.c
950 (context_alloc, frame_state_alloc, context_cpy):
951 New prototypes.
952 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
953 Changed from static to extern.
954 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
955 (LINUX_SIGCONTEXT_FP_OFFSET)
956 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
957 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
958 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
959 * x86-64-tdep.c (x86_64_gdbarch_init): Several
960 set_gdbarch_*() calls now use x86-64 specific functions
961 instead of DWARF2 CFI ones.
962 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
963 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
964 (x86_64_init_extra_frame_info): New prototypes.
965
966 2002-10-23 David Carlton <carlton@math.stanford.edu>
967
968 * linespec.c: #include "parser-defs.h".
969 Delete prototype for find_template_name_end.
970 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
971
972 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
973
974 * NEWS: add recent mi fixes.
975 * varobj.c (struct varobj): Add new "updated" flag.
976 (new_variable): Default "updated" flag to 0.
977 (varobj_set_value): Set "updated" flag to 1 if value
978 changes.
979 (varobj_update): Check varobj "updated" flag before
980 comparing old and refreshed values. Fix for
981 PR gdb/702.
982
983 2002-10-23 David Carlton <carlton@math.stanford.edu>
984
985 * parse.c (parse_exp_1): Use BLOCK_START.
986 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
987 SYMBOL_BLOCK_VALUE.
988 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
989
990 2002-10-23 David Carlton <carlton@math.stanford.edu>
991
992 * symtab.c: Delete cplusplus_hint.
993 Delete prototype for find_template_name_end.
994
995 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
996
997 * symtab.h: Update comment.
998
999 2002-10-23 Michael Snyder <msnyder@redhat.com>
1000
1001 * printcmd.c (address_info): Restore quotes in output.
1002 * valops.c (value_of_local): Restore quotes in error message.
1003
1004 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1005
1006 * symtab.c (symbol_demangled_name): New function.
1007 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1008 turning most of it into a function.
1009 (symbol_demangled_name): Export.
1010
1011 2002-10-23 Michael Snyder <msnyder@redhat.com>
1012
1013 * valops.c (value_of_local): Restore quotes in error message.
1014
1015 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1016
1017 * symtab.c (symbol_init_language_specific): New function.
1018 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1019 turning most of it into a function.
1020 (symbol_init_language_specific): Export.
1021
1022 2002-10-23 David Carlton <carlton@math.stanford.edu>
1023
1024 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1025 (dwarf_attr_name): Ditto.
1026 (dwarf_type_encoding_name): Ditto.
1027 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1028 (process_die): Handle DW_TAG_namespace,
1029 DW_TAG_imported_declaration, DW_TAG_imported_module.
1030 (read_namespace): New function.
1031
1032 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1033
1034 * configure.in: Define NEW_PROC_API on Interix too.
1035 * configure: Regenerate.
1036
1037 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1038
1039 * configure: Regenerate using the proper version of autoconf.
1040
1041 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1042
1043 * findvar.c (read_var_value): Temporarily disable TLS code, until
1044 complete TLS support is added.
1045
1046 2002-10-21 Jim Blandy <jimb@redhat.com>
1047 Elena Zannoni <ezannoni@redhat.com>
1048
1049 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1050 for thread local storage locations.
1051 (struct symbol): Add objfile field.
1052 (SYMBOL_OBJFILE): Define.
1053 * dwarf2read.c (is_thread_local): New static variable.
1054 (new_symbol): If variable is in thread local fill in address class
1055 and objfile appropriately.
1056 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1057 stack operation.
1058 * printcmd.c (address_info): Print the information for thread
1059 local storage variable.
1060 * findvar.c (read_var_value): In case of thread local variable,
1061 defer to the target vector code to compute address.
1062
1063 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1064
1065 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1066 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1067
1068 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1069
1070 * symtab.h (address_class): Rename
1071 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1072 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1073 * printcmd.c (address_info): Ditto.
1074 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1075
1076 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1077
1078 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1079 DBREG_DRX macro to acces debug registers.
1080
1081 * Makefile.in (i386obsd-tdep.o): New target.
1082
1083 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1084 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1085
1086 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1087 * config/i386/obsd.mt: New file.
1088 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1089 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1090 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1091 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1092 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1093 * i386obsd-tdep.c: New file.
1094
1095 2002-10-19 Adam Fedor <fedor@gnu.org>
1096
1097 * objc-exp.y (name_not_typename): Fix invalid comment.
1098
1099 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1100
1101 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1102 to allocate partial syms and macro byte caches.
1103
1104 2002-10-18 David Carlton <carlton@math.stanford.edu>
1105
1106 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1107
1108 2002-10-18 Adam Fedor <fedor@gnu.org>
1109
1110 * stabsread.c (find_name_end): New function.
1111 (define_symbol): Use it.
1112
1113 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1114
1115 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1116 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1117 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1118 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1119
1120 2002-10-17 David Carlton <carlton@math.stanford.edu>
1121
1122 * symfile.h: Add opaque declaration for struct obstack.
1123 Declare obsavestring to take a const char *.
1124 * symfile.c (obsavestring): Make first argument a const char *.
1125
1126 2002-10-16 Adam Fedor <fedor@gnu.org>
1127
1128 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1129 names when matching breakpoints in current file.
1130
1131 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1132
1133 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1134 (read_tag_pointer_type): Add address class support.
1135 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1136 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1137 New methods.
1138 * gdbarch.h, gdbarch.c: Regenerate.
1139 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1140 (make_type_with_address_space, recursive_type_dump): Add address
1141 class support.
1142 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1143 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1144 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1145
1146 2002-10-16 Klee Dienes <kdienes@apple.com>
1147
1148 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1149 to get the last character of a char[] buffer, not
1150 name[sizeof(vptr_name)-1].
1151
1152 2002-10-14 Adam Fedor <fedor@gnu.org>
1153
1154 * symtab.h: New objc_specific struct.
1155 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1156 (SYMBOL_DEMANGLED_NAME): Likewise.
1157
1158 2002-10-14 Adam Fedor <fedor@gnu.org>
1159
1160 * symfile.c (init_filename_language_table): Add ObjC file extension.
1161
1162 2002-10-14 Adam Fedor <fedor@gnu.org>
1163
1164 * utils.c (puts_filtered_tabular): New function.
1165 (fprintf_symbol_filtered): Get ObjC demangled name.
1166 * defs.h (puts_filtered_tabular): Declared.
1167
1168 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1169
1170 * c-lang.h (c_type_print_varspec_prefix): Delete.
1171 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1172 ``need_post_space'' parameter. Adjust all callers.
1173
1174 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1175
1176 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1177 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1178 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1179 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1180
1181 2002-10-13 Adam Fedor <fedor@gnu.org>
1182
1183 * source.c (print_source_lines): Update comments.
1184
1185 2002-10-13 Adam Fedor <fedor@gnu.org>
1186
1187 * valops.c (value_of_local): New function.
1188 (value_of_this): Use it.
1189 * value.h (value_of_local): Declared.
1190
1191 2002-10-13 Adam Fedor <fedor@gnu.org>
1192
1193 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1194 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1195
1196 2002-10-12 Adam Fedor <fedor@gnu.org>
1197
1198 * language.c (binop_result_type): Add language_objc to case.
1199 (integral_type): Likewise.
1200 (character_type): Likewise.
1201 (string_type): Likewise.
1202 (boolean_type): Likewise.
1203 (structured_type): Likewise.
1204 (binop_type_check): Likewise.
1205
1206 2002-10-11 Adam Fedor <fedor@gnu.org>
1207
1208 * printcmd.c (address_info): Print 'self' for ObjC.
1209
1210 2002-10-11 Adam Fedor <fedor@gnu.org>
1211
1212 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1213 OP_SELF.
1214
1215 2002-10-11 Adam Fedor <fedor@gnu.org>
1216
1217 * language.h (CAST_IS_CONVERSION): Add language_objc.
1218
1219 2002-10-11 Adam Fedor <fedor@gnu.org>
1220
1221 * defs.h (enum language): Add language_objc.
1222
1223 2002-10-11 Klee Dienes <kdienes@apple.com>
1224
1225 * corefile.c (read_memory_typed_address): New function.
1226 * gdbcore.h (read_memory_typed_address): Add prototype.
1227 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1228 to read a value destined for a CORE_ADDR, not read_memory_integer.
1229 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1230 (f77_get_dynamic_lowerbound): Ditto.
1231
1232 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1233
1234 * utils.c (string_to_core_addr): After turning string into
1235 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1236 which will do necessary sign-extension, etc.
1237
1238 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1239
1240 * c-exp.y (THIS): Delete token and grammar rule.
1241 (yylex): Don't return THIS.
1242 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1243 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1244 * demangle.c (cplus_markers): Update comment. Put '$'
1245 first. Remove CPLUS_MARKER.
1246 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1247 * jv-exp.y (THIS): Delete token and grammar rule.
1248 (yylex): Don't return THIS.
1249 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1250 * objc-exp.y (THIS): Delete token and grammar rule.
1251 (yylex): Don't return THIS.
1252 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1253 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1254 (read_member_functions): Likewise for opname.
1255 (read_tilde_fields): Use is_cplus_marker.
1256
1257 * defs.h (CPLUS_MARKER): Don't define.
1258 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1259 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1260 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1261 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1262 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1263
1264 * config/i386/tm-i386v4.h: Delete file.
1265 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1266 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1267 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1268 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1269 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1270 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1271 * config/i386/i386v4.mt (TM_FILE): Likewise.
1272 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1273
1274 2002-10-10 Marko Mlinar <markom@opencores.org>
1275
1276 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1277 accidentially not commited 2002-10-09
1278 * gdbarch.h, gdbarch.c: Re-generate.
1279
1280 2002-10-09 Marko Mlinar <markom@opencores.org>
1281
1282 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1283 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1284 * gdbarch.h, gdbarch.c: Re-generate.
1285
1286 2002-10-08 Petr Sorfa <petrs@caldera.com>
1287
1288 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1289
1290 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1291 so we can work on more than one compilation unit at a time. This
1292 helps prepare GDB to handle inter-CU die references.
1293 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1294 the code to be defined before struct comp_unit_head.
1295 (comp_unit_head): Added new members - offset, cu_head,
1296 begin_die, next and dwarf2_abbrevs.
1297 (dwarf2_abbrevs): Removed single static var; now member of
1298 struct comp_unit_head.
1299 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1300 members.
1301 (psymtab_to_symtab_1): Changed to work with the new
1302 struct comp_unit_head.
1303 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1304 constructs the dwarf2_abbrevs[] inside the cu_header.
1305 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1306 dwarf2_abbrev table to clean up.
1307 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1308 handling of dwarf2_abbrevs inside the cu_header.
1309 (read_partial_die): Now supports the call to the new
1310 dwarf2_lookup_abbrev.
1311 (read_full_die): Now supports the call to the new
1312 dwarf2_lookup_abbrev.
1313
1314 2002-10-06 Christopher Faylor <cgf@redhat.com>
1315
1316 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1317 insure that shell variables, such as "transformed_name" are propagated
1318 to later shell statements in rule.
1319
1320 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1321
1322 * config/i386/nm-i386sco.h: Add protection against
1323 multiple-inclusion. Include "i386/nm-i386v.h".
1324 (REGISTER_U_ADDR): Remove define.
1325 (i386_register_u_addr): Remove prototype.
1326
1327 2002-10-04 Michael Snyder <msnyder@redhat.com>
1328
1329 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1330 before treating it as a single-step event.
1331
1332 2002-10-03 Adam Fedor <fedor@gnu.org>
1333
1334 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1335 (objc_demangle): Remove assignment in if statements, Replace
1336 free with xfree.
1337 (add_msglist): Likewise.
1338 (end_msglist): Likewise.
1339 (complare_selectors): Likewise.
1340 (selectors_info): Likewise.
1341 (compare_classes): Likewise.
1342 (classes_info): Likewise.
1343 (print_object_command): Likewise.
1344 (find_objc_msgcall_submethod): Replace PTR with void *.
1345 * objc-lang.h: Remove check for __STDC__.
1346
1347 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1348
1349 * ui-out.h (ui_out_field_fmt_int): New prototype.
1350 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1351 of field width and alignment.
1352 * stack.c (print_frame_info_base): When printing frame level, use
1353 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1354 PR gdb/192
1355
1356 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1357
1358 * MAINTAINERS: Add self to Write After Approval list.
1359
1360 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * infcmd.c (interrupt_target_command_wrapper): Delete.
1363 (interrupt_target_command): Make non static.
1364 (nofp_registers_info): Make static.
1365 * stack.c (return_command_wrapper): Delete.
1366 (return_command): Make non static.
1367
1368 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1369
1370 * event-top.c (gdb_setup_readline): New function. Code moved from
1371 _initialize_event_loop().
1372 (_initialize_event_loop): Call gdb_setup_readline().
1373
1374 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1375
1376 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1377 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1378 * gdbarch.h, gdbarch.c: Re-generate.
1379
1380 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1381
1382 Fix PR gdb/778
1383 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1384 before recursing.
1385 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1386 of fill_in_vptr_fieldno.
1387
1388 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1389
1390 * inferior.h (registers_info, stepi_command, nexti_command,
1391 continue_command, interrupt_target_command): Export from infcmd.c.
1392 * frame.h (args_info, selected_frame_level_changed_hook,
1393 return_command): Export from stack.c.
1394 * v850ice.c (stepi_command, nexti_command, continue_command): use
1395 prototypes from inferior.h.
1396 * tracepoint.c (registers_info, args_info, locals_info): Use
1397 prototypes from frame.h and inferior.h.
1398 * Makefile.in (mi-main.o): Add dependency on frame.h.
1399
1400 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1401
1402 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1403 value in register 3 adjusted by ppc_gp0_regnum.
1404
1405 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1406
1407 2002-10-02 Marko Mlinar <markom@opencores.org>
1408
1409 * MAINTAINERS: Add myself to the Write After Approval list.
1410
1411 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1412
1413 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1414 of the section for the N64 ABI, fixed.
1415
1416 * config/mips/tm-irix6.h: Include solib.h.
1417
1418 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1419
1420 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1421 GNU operators.
1422
1423 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1424
1425 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1426 and that "mi0" syntax has been removed.
1427
1428 2002-09-30 David Carlton <carlton@math.stanford.edu>
1429
1430 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1431 * ppc-sysv-tdep.c: #include "gdb_string.h".
1432 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1433 pacify GCC.
1434
1435 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1436
1437 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1438 "vrsave"'s register number.
1439
1440 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1441
1442 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1443 use frame_unwind_signed_register to obtain the PC.
1444 (mips_frame_chain): Handle a generic dummy frame.
1445 (mips_init_extra_frame_info): When a generic dummy frame, don't
1446 re-compute the frame base.
1447 (mips_pop_frame): Handle generic dummy frames.
1448 (mips_gdbarch_init): When generic dummy frames, set
1449 use_generic_dummy_frames, push_dummy_frame to
1450 generic_push_dummy_frame, pc_in_call_dummy to
1451 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1452 generic_save_dummy_frame_tos.
1453
1454 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1455
1456 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1457 against TOP when TOP was explictly set.
1458 (generic_push_dummy_frame): Set TOP to zero.
1459
1460 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1461
1462 * event-loop.c (start_event_loop): Rename variable 'result' to
1463 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1464
1465 2002-09-30 Keith Seitz <keiths@redhat.com>
1466
1467 * gdb-events.sh (selected_thread_changed): New event.
1468 * gdb-events.c: Regenerated.
1469 * gdb-events.h: Regenerated.
1470
1471 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1472
1473 * MAINTAINERS: Add self to Write After Approval list.
1474
1475 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1476
1477 * disasm.c: New file.
1478 * disasm.h: New file.
1479 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1480 (compare_lines): Ditto.
1481 (dump_insns): Ditto.
1482 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1483 argument.
1484 (do_assembly_only): Ditto.
1485 (do_disassembly): Renamed to gdb_disassembly and moved to
1486 disasm.c. Sdded uiout argument.
1487 * Makefile.in: Add new files. Reorder SFILES list. Update
1488 dependencies. Include libgdb.a later in the insight executable.
1489
1490 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1491
1492 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1493 bfd/elf64-alpha-fbsd.c.
1494
1495 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1496
1497 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1498 i386gnu-tdep.c.
1499
1500 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1501
1502 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1503 __FUNCTION__.
1504 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1505 function name.
1506 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1507 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1508 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1509 (S_msg_sig_post_reply): Ditto.
1510
1511 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1512
1513 * sh-tdep.c (sh_use_struct_convention): Use definition according
1514 to ABI.
1515 (sh_push_arguments): Store in register with correct endianess.
1516 (sh_default_store_return_value): Ditto.
1517 (sh_gdbarch_init): Set sizeof long double to 8.
1518
1519 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1520
1521 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1522 Fix some whitespace problems.
1523
1524 2002-09-27 David Carlton <carlton@math.stanford.edu>
1525
1526 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1527 (mcore-tdep.o): Ditto.
1528 (ns32k-tdep.o): Ditto.
1529 (ns32knbsd-tdep.o): Ditto.
1530 (sh3-rom.o): Ditto.
1531 (vax-tdep.o): Ditto.
1532 * cris-tdep.c: #include "gdb_string.h"
1533 * mcore-tdep.c: Ditto.
1534 * ns32k-tdep.c: Ditto.
1535 * ns32knbsd-tdep.c: Ditto.
1536 * sh3-rom.c: Ditto.
1537 * vax-tdep.c: Ditto.
1538
1539 2002-09-27 David Carlton <carlton@math.stanford.edu>
1540
1541 * config/djgpp/fnchange.lst: Add entries for
1542 gdb/testsuite/gdb.c++/m-static files.
1543
1544 2002-09-27 Jim Wilson <wilson@redhat.com>
1545
1546 * MAINTAINERS: Add myself to the Write After Approval list.
1547
1548 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1549
1550 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1551
1552
1553 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1554
1555 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1556 frame.
1557
1558 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1559
1560 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1561 (rs6000_struct_return_address): Delete variable.
1562 (rs6000_store_struct_return): Update.
1563 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1564 deprecated_extract_struct_value_address.
1565 (rs6000_frame_align): New function.
1566 (rs6000_gdbarch_init): Set frame_align.
1567
1568 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1569
1570 From Grace Sainsbury <graces@redhat.com>:
1571 * Makefile.in (gdbtk-main.o): New target.
1572 (gdb.o): New target.
1573 (main_h): Define.
1574 (main.o): Update dependencies.
1575 (gdb$(EXEEXT)): Add gdb.o.
1576 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1577 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1578 (SUBDIR_GDBTK_CLEAN): Set.
1579 (install-gdbtk): Install the insight binary.
1580 (uninstall-gdbtk): New target.
1581 (all-gdbtk, clean-gdbtk): New rule.
1582 * top.c (use_windows): Default to zero.
1583 * main.c: Include "main.h".
1584 (main): Delete.
1585 (struct captured_main_args): Delete.
1586 (gdb_main): New function.
1587 * main.h: New file.
1588 * gdb.c: New File.
1589
1590 2002-09-25 Andrew Cagney <cagney@redhat.com>
1591
1592 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1593 (frame_map_regnum_to_name): New function.
1594 (frame_map_name_to_regnum): New function.
1595 * frame.h (frame_map_name_to_regnum): Declare.
1596 (frame_map_regnum_to_name): Declare.
1597 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1598 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1599 * parse.c: Do not include "builtin-regs.h".
1600 (target_map_name_to_register): Delete function.
1601 (write_dollar_variable): Use frame_map_name_to_regnum.
1602 * parser-defs.h (target_map_name_to_register): Delete declaration.
1603 * expprint.c: Include "frame.h".
1604 (print_subexp): Use frame_map_regnum_to_name.
1605 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1606 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1607
1608 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1609
1610 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1611 wasn't saved, and the next innermost frame is a dummy, return the
1612 dummy frame's link register.
1613
1614 2002-09-24 Jim Blandy <jimb@redhat.com>
1615
1616 Fix from Paul Breed:
1617 * main.c (captured_main): Add a `break' after the case for 'b'.
1618
1619 2002-09-24 Keith Seitz <keiths@redhat.com>
1620
1621 * varobj.c (c_type_of_child): Use get_target_type instead
1622 of TYPE_TARGET_TYPE.
1623
1624 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1625
1626 * source.c (get_current_or_default_source_symtab_and_line): Remove
1627 function.
1628 (set_default_source_symtab_and_line): New function. Attempts to
1629 determine a source file to list lines from if one is not currently
1630 defined.
1631 (get_current_source_symtab_and_line): Initialize sal.pc and
1632 sal.end fields.
1633 (set_current_source_symtab_and_line): Mark argument as const.
1634 * source.h: Update declarations and comments.
1635 * linespec.c (decode_line_1): Replace call to removed routine above.
1636 * stack.c (print_frame_info_base): Ditto.
1637 * cli/cli-cmds.c (edit_command): Ditto.
1638 (list_command): Ditto.
1639
1640 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1641
1642 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1643 sal.pc and sal.end fields.
1644 (get_current_or_default_source_symtab_and_line): Ditto.
1645 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1646 so we do not cause a new source symtab to be searched for (reverting an
1647 unintentional change from the 2002-09-20 patch).
1648 * scm-lang.c (scm_unpac): Ditto.
1649
1650 2002-09-21 Andrew Cagney <cagney@redhat.com>
1651
1652 * complaints.c (symfile_explanations): Remove new-line from
1653 ``isolated_message''.
1654 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1655 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1656
1657 2002-09-20 Nick Clifton <nickc@redhat.com>
1658
1659 * NEWS: Announce that V850EA ISA is no longer supported.
1660 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1661
1662 2002-09-20 David Carlton <carlton@math.stanford.edu>
1663
1664 * Makefile.in (c-lang.o): Correct dependencies.
1665 (utils.o): Gather dependencies.
1666 (charset.o): Move.
1667 * c-lang.c: #include "gdb_string.h"
1668
1669 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1670
1671 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1672 * cli/cli-cmds.c (list_command): New function. Implements the new
1673 cli edit command.
1674 (_init_cli_cmds): Add new command definition.
1675 * gdb.1: Document edit command.
1676 * doc/gdb.texinfo: Document edit command.
1677
1678 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1679
1680 * source.c: Make global variables current_source_symtab and
1681 current_source_line static.
1682 (list_command): Moved to cli/cli-cmds.c.
1683 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1684 (get_first_line_listed): New accessor function.
1685 (get_lines_to_list): New accessor function.
1686 (get_current_source_symtab_and_line): New function. Retrieves the
1687 position in the source code that we consider current.
1688 (get_current_or_default_source_symtab_and_line): New function.
1689 Like the above but attempts to determine a default position if one
1690 is not currently defined.
1691 (set_current_source_symtab_and_line): New function. Sets the source
1692 code position considered current and returns the previously set one.
1693 (clear_current_source_symtab_and_line): Reset stored information about
1694 a current source line.
1695 (_initialize_source): Remove registration for the "list" command and
1696 its alias.
1697 * source.h: Add declarations for the new functions above.
1698 * symtab.h: Remove declarations for the global variables mentioned
1699 above.
1700 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1701 obtain current source line.
1702 * linespec.c (decode_line_1): Ditto.
1703 * macroscope.c (default_macro_scope): Ditto.
1704 * scm-lang.c (scm_unpac): Ditto.
1705 * stack.c (print_frame_info_base): Ditto.
1706 * symfile.c (clear_symtab_users): Ditto.
1707 * symtab.c (decode_line_spec): Ditto.
1708 * cli/cli-cmds.c (list_command): Moved here from source.c.
1709 (ambiguous_line_spec): Moved here from source.c.
1710 (_init_cli_cmds): Add definition for "list" and its alias.
1711 * Makefile.in: Update dependencies.
1712
1713 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1716 with what gcc thinks is correct.
1717
1718 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1719
1720 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1721 multiple register push instruction.
1722
1723 2002-09-19 Jim Blandy <jimb@redhat.com>
1724
1725 Add support for distinct host and target character sets.
1726 * charset.c, charset.h: New files.
1727 * c-exp.y: #include "charset.h".
1728 (yylex): Convert character and string literals to the target
1729 character set, before returning them as the semantic value of the
1730 token.
1731 * c-lang.c: #include "charset.h".
1732 (c_emit_char): Use charset-specific methods to recognize
1733 characters with backslash escape forms, to decide which characters
1734 to print literally and which to print using numeric escape
1735 sequences, and to convert target characters to host characters
1736 before printing.
1737 * utils.c: #include "charset.h".
1738 (no_control_char_error): New function.
1739 (parse_escape): Use charset-specific methods to recognize
1740 backslash escapes, parse `control character' notation, and convert
1741 characters from the host character set to the target character set.
1742 * configure.in: Set the default host character set.
1743 Check where to find iconv, and what its argument types might be.
1744 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1745 * Makefile.in (SFILES): List charset.c.
1746 (COMMON_OBS): List charset.o.
1747 (charset.o): New rule.
1748 (charset_h): New header dependency variable.
1749 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1750 (LIBICONV): New variable, set by configure.
1751 (CLIBS): Include $(LIBICONV) here.
1752 * aclocal.m4, config.in, configure: Regenerated.
1753
1754 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1755
1756 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1757 bison 1.35 warning.
1758
1759 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1760
1761 * gdb_mbuild.sh: New file.
1762
1763 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1764
1765 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1766
1767 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1768
1769 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1770 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1771 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1772 valops.c, value.h: Revert previous change.
1773
1774 2002-09-18 Michael Snyder <msnyder@redhat.com>
1775
1776 Preliminary support for Objective-C:
1777 * defs.h (language_objc): New enum value.
1778 (puts_filtered_tabular): Declaration only, exported from utils.c.
1779 (skip_quoted): Delete, declared in completer.h.
1780 * c-exp.y: Include completer.h.
1781 * p-exp.y: Ditto.
1782 * jv-exp.y: Ditto.
1783 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1784 New operator enum values.
1785 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1786 * language.c (binop_result_type): Handle language_objc case.
1787 (integral_type, character_type, string_type, boolean_type,
1788 structured_type, binop_type_check): Ditto.
1789 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1790 (struct objc_specific): Add to general_symbol_info.
1791 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1792 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1793 * parser-defs.h (struct objc_class_str): New struct type.
1794 (start_msglist, end_msglist, add_msglist): Declaration only,
1795 exported from objc-lang.c.
1796 * value.h (value_of_local, value_nsstring,
1797 call_function_by_hand_expecting_type): Exported from valops.c.
1798 * valops.c (find_function_addr): Export.
1799 (call_function_by_hand_expecting_type): New function.
1800 (value_of_local): New function.
1801 * symfile.c (init_filename_language_table): Add ".m" extension
1802 for Objective-C.
1803 * utils.c (puts_filtered_tabular): New function.
1804 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1805 (set/show demangle): Extend help-string to refer to ObjC.
1806 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1807 * stabsread.c (symbol_reference_defined): Objective-C symbols
1808 may contain colons: make allowances when scanning stabs strings
1809 for colons.
1810 (objc_find_colon): New function.
1811 * printcmd.c (address_info): If language == objc then print
1812 "self" instead of "this".
1813 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1814 OP_NSSTRING, and OP_SELF.
1815 (prefixify_subexp): Ditto.
1816 * source.c (print_source_lines): Mention objc in comment.
1817 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1818 method names.
1819
1820 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1821
1822 * complaints.h: Update copyright.
1823 (struct complaints): Declare.
1824 (struct complaint): Make `message' constant.
1825 (internal_complaint): Declare.
1826 (complaint): Declare.
1827 (complaint_root): Delete declaration.
1828 (symfile_complaints): Delete declaration.
1829 (struct complaints): Add opaque declaration.
1830 (clear_complaints): Add a complaints parameter.
1831 * complaints.c: Update copyright.
1832 (enum complaint_series): Define.
1833 (complaint_root): Delete.
1834 (struct complaints): Define.
1835 (complaint_sentinel, symfile_complaint_book): New variables.
1836 (symfile_explanations, symfile_complaints): New variables.
1837 New variables.
1838 (get_complaints): New function.
1839 (vcomplaint): New function.
1840 (complaint): New function.
1841 (internal_complaint): New function.
1842 (complain): Call vcomplain with symfile_complaint.
1843 (clear_complaints): Rewrite.
1844 (_initialize_complaints): Use add_setshow_command.
1845 * Makefile.in (complaints.o): Update dependencies.
1846 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1847 to call to clear_complaints.
1848 (new_symfile_objfile, reread_symbols): Ditto.
1849 (oldsyms_complaint): Delete.
1850 (empty_symtab_complaint, unknown_option_complaint): Delete.
1851 (free_named_symtabs): Use complaint instead of complain.
1852
1853 2002-09-18 Michael Snyder <msnyder@redhat.com>
1854
1855 Contributed by Apple Computer, Inc. Merged with current sources
1856 by Adam Fedor <fedor@doc.com> [cagney].
1857
1858 * objc-lang.c: First clean-up round: comments, indentation.
1859 * objc-lang.h: Ditto.
1860 * objc-lang.y: Ditto.
1861
1862 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1863
1864 * maint.c (maintenance_internal_error): Print the parameter as the
1865 error message.
1866 (maintenance_internal_warning): New function.
1867 (_initialize_maint_cmds): Add command `maint internal-warning'.
1868
1869 * defs.h (internal_warning, internal_vwarning): Declare.
1870 * utils.c (struct internal_problem): Define.
1871 (internal_vproblem): New function.
1872 (internal_warning): New function.
1873 (internal_vwarning): New function.
1874 (internal_warning_problem, internal_error_problem): New variables.
1875 (internal_verror): Just call internal_vproblem.
1876
1877 2002-09-18 Michael Snyder <msnyder@redhat.com>
1878
1879 * objc-lang.c: New file, support for Objective-C.
1880 Preliminary check-in, not yet integrated into gdb.
1881 * objc-lang.h: New file.
1882 * objc-exp.y: New file.
1883
1884 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1885
1886 * infrun.c (signal_stop_update): Convert definition to ISO C.
1887 (signal_print_update): Ditto.
1888 (signal_pass_update): Ditto.
1889 * inflow.c (terminal_save_ours): Ditto.
1890
1891 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1892 comments.
1893
1894 * config/djgpp/fnchange.lst: Handle name clashes between
1895 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1896 bfd/coff-tic80.c.
1897
1898 * i386-linux-tdep.h: Fix tipo.
1899
1900 2002-09-18 Adam Fedor <fedor@gnu.org>
1901
1902 * MAINTAINERS: Add myself to the Write After Approval list.
1903
1904 2002-09-18 Jim Blandy <jimb@redhat.com>
1905
1906 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1907 texthigh and textlow to reader-specific structs caused
1908 objfile_relocate to miss them. This is fixable, but the work that
1909 the change was supposed to prepare GDB for never got done anyway.
1910
1911 2002-09-18 David Carlton <carlton@math.stanford.edu>
1912
1913 * MAINTAINERS: Alphabetize Write After Approval list.
1914
1915 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1916
1917 Fix PR gdb/709
1918 * values.c (value_static_field): Call read_var_value.
1919
1920 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1921
1922 * valops.c (hand_function_call): Align the initial stack pointer
1923 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1924 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1925 return value.
1926 * mips-tdep.c (mips_frame_align): New function.
1927 (mips_gdbarch_init): Set frame_align.
1928 * gdbarch.sh (FRAME_ALIGN): New method.
1929 * gdbarch.h, gdbarch.c: Re-generate.
1930
1931 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1932
1933 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1934 registers.
1935
1936 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1937
1938 * NEWS: Mention that MIPS $fp behavior changed.
1939 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1940 reference to FP_REGNUM.
1941 (mipsnbsd_cannot_store_register): Ditto.
1942 * mips-linux-nat.c: Update copyright.
1943 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1944 (mips_linux_cannot_store_register): Ditto.
1945 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1946 * config/mips/tm-mips.h: Update copyright.
1947 (FP_REGNUM): Delete macro.
1948 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1949 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1950 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1951 (mips_r3041_reg_names, mips_r3051_reg_names)
1952 (mips_r3081_reg_names): Replace "fp" with "".
1953 Fix PR gdb/480.
1954
1955 2002-09-17 Theodore A. Roth <troth@verinet.com>
1956
1957 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1958 generic_read_register_dummy() (PR gdb/703).
1959 (avr_push_return_address): #if 0 out unused vars.
1960 (avr_gdbarch_init): Enable use of avr_push_return_address().
1961
1962 2002-09-17 Michael Snyder <msnyder@redhat.com>
1963
1964 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1965 RTE will take care of it.
1966
1967 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1968
1969 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1970 invalid, return SP_REGNUM.
1971
1972 2002-09-17 Michael Snyder <msnyder@redhat.com>
1973
1974 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1975 point registers without sign extension.
1976
1977 2002-09-17 Andrew Cagney <cagney@redhat.com>
1978
1979 * blockframe.c (deprecated_read_register_dummy): Rename
1980 generic_read_register_dummy.
1981 * frame.c (frame_unwind_signed_register): New function.
1982 (frame_unwind_unsigned_register): New function.
1983 * frame.h (frame_unwind_signed_register): Declare.
1984 (frame_unwind_unsigned_register): Declare.
1985 (deprecated_read_register_dummy): Rename
1986 generic_read_register_dummy.
1987
1988 * h8300-tdep.c (h8300_frame_chain): Update.
1989 (h8300_frame_saved_pc): Update.
1990 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1991 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1992 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1993 (s390_frame_chain): Update.
1994 * v850-tdep.c (v850_find_callers_reg): Update.
1995 (v850_frame_saved_pc): Update.
1996 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1997 (m32r_find_callers_reg): Update.
1998 (m32r_frame_saved_pc): Update.
1999 * sh-tdep.c (sh_find_callers_reg): Update.
2000 (sh64_get_saved_pr): Update.
2001 (sh_init_extra_frame_info): Update.
2002 (sh_init_extra_frame_info): Update.
2003 (sh64_init_extra_frame_info): Update.
2004 (sh64_init_extra_frame_info): Update.
2005 * mcore-tdep.c (mcore_find_callers_reg): Update.
2006 (mcore_frame_saved_pc): Update.
2007 (mcore_init_extra_frame_info): Update.
2008 * i386-tdep.c (i386_frame_saved_pc): Update.
2009 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2010 (ia64_init_extra_frame_info): Update.
2011 (ia64_init_extra_frame_info): Update.
2012 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2013 * cris-tdep.c (cris_init_extra_frame_info): Update.
2014 * avr-tdep.c (avr_frame_chain): Update.
2015 (avr_init_extra_frame_info): Update.
2016 (avr_frame_saved_pc): Update.
2017 * arm-tdep.c (arm_find_callers_reg): Update.
2018 (arm_init_extra_frame_info): Update.
2019 (arm_frame_saved_pc): Update.
2020
2021 2002-09-17 Tom Tromey <tromey@redhat.com>
2022
2023 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2024 is "'".
2025
2026 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2027
2028 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2029 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2030 NEXT_PROLOGUE_INSN.
2031 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2032 NEXT_PROLOGUE_INSN.
2033
2034 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2035
2036 * osfsolib.c: Remove file, replaced by solib-osf.c.
2037 * Makefile.in: Remove compilation rules for osfsolib.c.
2038
2039 2002-09-16 David Carlton <carlton@math.stanford.edu>
2040
2041 * cp-valprint.c (cp_print_class_method): Correct args to
2042 check_stub_method_group.
2043
2044 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2045
2046 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2047 `set architecture'. Unify naming convention of functions.
2048 (h8300_skip_prologue): Improve prologue analysis.
2049 (h8300_push_arguments): Rewritten to more closely match GCC's
2050 bizarre argument-passing behavior, along with the comment describing
2051 said behavior.
2052 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2053 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2054 sim, remote-e7000.c, remote-hms.c and remote.c
2055
2056 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2057
2058 * i386-tdep.c (gdb_print_insn_i386): Removed.
2059 (i386_print_insn): New function.
2060 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2061 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2062 tm_print_insn_info.
2063
2064 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2065
2066 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2067 zero.
2068
2069 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2070
2071 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2072 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2073 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2074
2075 2002-09-13 Christopher Faylor <cgf@redhat.com>
2076
2077 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2078
2079 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2080
2081 * gdbtypes.c (check_stub_method): Make static.
2082 (check_stub_method_group): New function.
2083 * gdbtypes.h: Update prototypes.
2084 * cp-support.c: New file.
2085 * cp-support.h: New file.
2086
2087 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2088 (update_method_name_from_physname): New function.
2089 (read_member_functions): Correct method names for operators
2090 and v3 constructors/destructors. Separate v2 constructors and
2091 destructors.
2092 * Makefile.in (stabsread.o): Update dependencies.
2093 (SFILES): Add cp-support.c.
2094 (COMMON_OBS): Add cp-support.o.
2095 (cp_support_h, cp-support.o): Add.
2096
2097 * cp-valprint.c (cp_print_class_method): Call
2098 check_stub_method_group instead of check_stub_method. Remove
2099 extraneous QUITs.
2100 * p-valprint.c (pascal_object_print_class_method): Likewise.
2101 * valops.c (search_struct_method): Likewise.
2102 (find_method_list, value_struct_elt_for_reference): Likewise.
2103
2104 2002-09-13 Andrew Cagney <cagney@redhat.com>
2105
2106 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2107 * gdbarch.h, gdbarch.c: Regenerate.
2108
2109 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2110
2111 * frame.c (find_saved_register): Delete function.
2112 * frame.h (find_saved_register): Delete declaration.
2113 Fix PR gdb/631.
2114
2115 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2116
2117 * mips-tdep.c (read_next_frame_reg): Re-hack using
2118 frame_register_unwind.
2119
2120 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2121
2122 * mips-tdep.c (mips_get_saved_register): Re-hack using
2123 frame_register_unwind.
2124
2125 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2126
2127 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2128 vector. Will be useful for Interix.
2129 * gdbarch.h, gdbarch.c: Regenerate.
2130
2131 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2132 name of the malloc function by NAME_OF_MALLOC.
2133
2134 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2135
2136 * value.h (find_function_in_inferior): Add const keyword to
2137 one of the parameters. Allows us to invoke this function with
2138 a const char *.
2139 * valops.c (find_function_in_inferior): Likewise.
2140
2141 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2142
2143 * exec.c (xfer_memory): Fix compilation warning with old versions
2144 of GCC.
2145 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2146
2147 2002-09-12 David Carlton <carlton@math.stanford.edu>
2148
2149 * symtab.h: Run through gdb_indent.h.
2150 Add 2002 to Copyright year list.
2151
2152 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2153
2154 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2155 mach constants.
2156 * MAINTAINERS: Add myself to write after approval list.
2157
2158 2002-09-11 J. Brobecker <brobecker@gnat.com>
2159
2160 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2161
2162 2002-09-11 J. Brobecker <brobecker@gnat.com>
2163
2164 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2165 Interix.
2166
2167 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2168
2169 * procfs.c (do_detach): Clear current signal, not just fault.
2170 Corrects problem with breakpoint trap signal leaking to detached
2171 process on Tru64.
2172
2173 2002-09-10 Michael Snyder <msnyder@redhat.com>
2174
2175 * buildsym.c (finish_block): Protect against null pointer.
2176
2177 2002-09-10 Andrew Cagney <cagney@redhat.com>
2178
2179 * infcmd.c (default_print_registers_info): Send all output to
2180 ``file'' instead of ``gdb_stdout''.
2181
2182 2002-09-10 Michael Snyder <msnyder@redhat.com>
2183
2184 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2185 LONGEST, and use signed register read (addresses are sign-
2186 extended for mips).
2187
2188 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2189
2190 * event-loop.c (gdb_do_one_event): Make public.
2191 * event-loop.h (gdb_do_one_event): Declare.
2192
2193 2002-09-10 Jeff Law <law@redhat.com>
2194
2195 * infttrace.c (child_resume): Simplify and rework to avoid
2196 TT_PROC_CONTINUE.
2197
2198 2002-09-09 Fred Fish <fnf@intrinsity.com>
2199
2200 * printcmd.c (print_scalar_formatted): "len" is the number of
2201 target bytes, NOT the number of target bits.
2202
2203 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2204
2205 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2206 * top.c (init_main): Set rl_terminal_name.
2207
2208 2002-09-08 Aidan Skinner <aidan@velvet.net>
2209
2210 * ada-lang.c (ada_array_bound, ada_type_match,
2211 _initialize_ada_language): Fix K&R definitions.
2212 * ada-tasks.c (get_current_task): Fix K&R definitions.
2213 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2214
2215 2002-09-07 Christopher Faylor <cgf@redhat.com>
2216
2217 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2218 Add XP.
2219
2220 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2221
2222 * i386-tdep.c (i386_register_virtual_type,
2223 i386_register_convertible, i386_register_convert_to_virtual,
2224 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2225 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2226 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2227 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2228 Don't set push_arguments twice.
2229
2230 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2231 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2232 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2233 sigtramp_end to NULL.
2234 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2235 defines.
2236 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2237
2238 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2239 whitespace.
2240
2241 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2242 * gdbarch.h, gdbarch.c: Re-generate.
2243 * blockframe.c (find_pc_sect_partial_function): Convert to use
2244 SIGTRAMP_START_P predicate.
2245
2246 2002-09-05 Michael Snyder <msnyder@redhat.com>
2247
2248 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2249 generic_dummy_frame method and old method. Also distinguish
2250 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2251 (arm_extract_return_value): Use new regcache method.
2252
2253 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2254 adjustment that doesn't conform to the ABI.
2255 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2256 saved regcache, not from current regcache.
2257
2258 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2259
2260 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2261 * README: Update.
2262
2263 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2264
2265 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2266 if arm_apcs_32 is false.
2267
2268 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2269
2270 GDB 5.3 branch created.
2271
2272 2002-09-03 Theodore A. Roth <troth@verinet.com>
2273
2274 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2275 generic_unwind_get_saved_register.
2276
2277 2002-09-03 David Carlton <carlton@math.stanford.edu>
2278
2279 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2280 argument (PR gdb/653). Update call to smash_to_method_type.
2281 (read_structure_scope): Update call to dwarf2_add_member_fn.
2282
2283 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2284
2285 * x86-64-linux-tdep.c: Include gdb_string.h
2286 * x86-64-linux-nat.c: Ditto.
2287
2288 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2289
2290 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2291 when YYDEBUG is set to 1.
2292 * c-exp.y: Likewise.
2293 * f-exp.y: Likewise.
2294 * jv-exp.y: Likewise.
2295 * m2-exp.y: Likewise.
2296 * p-exp.y: Likewise.
2297
2298 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2299
2300 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2301 dependency list.
2302 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2303 solib_svr4_fetch_link_map_offsets to
2304 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2305 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2306 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2307 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2308 solib-svr4.o, and solib-legacy.o.
2309 * config/i386/tm-nbsd.h: Include solib.h.
2310
2311 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2312
2313 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2314 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2315 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2316 comment noting that this needs its own target configuration.
2317 * config/i386/nbsd.mt: New file.
2318 * config/i386/nbsdaout.mt: Remove.
2319 * config/i386/nbsdelf.mt: Ditto.
2320 * config/i386/tm-nbsdaout.h: Ditto.
2321
2322 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2323
2324 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2325 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2326 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2327 tdep->sigtramp_end.
2328 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2329 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2330 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2331
2332 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2333
2334 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2335 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2336 * i386-tdep.h (i386bsd_init_abi): New prototype.
2337 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2338 function declaration.
2339 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2340 for NetBSD-a.out or NetBSD-ELF.
2341 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2342 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2343 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2344 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2345 and nbsd-tdep.h.
2346 (i386nbsd_pc_in_sigtramp): New function.
2347 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2348 i386nbsd_pc_in_sigtramp.
2349 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2350 and i386nbsdelf_init_abi OS ABI handlers.
2351 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2352 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2353
2354 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2355
2356 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2357 registers if the target really has them.
2358
2359 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2360
2361 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2362 than nbsd-tdep.h.
2363
2364 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2365
2366 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2367 list.
2368 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2369 (alphanbsd_skip_sigtramp_frame): New functions.
2370 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2371 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2372 to alphanbsd_sigcontext_addr.
2373
2374 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2375
2376 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2377 list.
2378 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2379 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2380 nbsd_pc_in_sigtramp.
2381 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2382 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2383 * nbsd-tdep.c: Include gdb_string.h.
2384 (nbsd_pc_in_sigtramp): New function.
2385 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2386 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2387 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2388 ppcnbsd_pc_in_sigtramp.
2389 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2390 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2391 shnbsd_pc_in_sigtramp.
2392 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2393 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2394 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2395
2396 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2397
2398 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2399 watchpoints to NULL.
2400 (insert_breakpoints): set val field of watchpoints if NULL.
2401
2402
2403 2002-08-29 Jim Blandy <jimb@redhat.com>
2404
2405 * symtab.c (lookup_symbol_aux): In the cases where we find a
2406 minimal symbol of an appropriate name and use its address to
2407 select a symtab to read and search, use `name' (as passed to us)
2408 as the demangled name when searching the symtab's global and
2409 static blocks, not the minsym's name.
2410
2411 2002-08-29 Keith Seitz <keiths@redhat.com>
2412
2413 * stack.c (print_frame_info_base): Always set current_source_symtab
2414 and current_source_line.
2415
2416 2002-08-29 Donn Terry <donnte@microsoft.com>
2417
2418 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2419
2420 2002-08-28 Keith Seitz <keiths@redhat.com>
2421
2422 * stack.c (select_frame): Add FIXME concerning selected-frame
2423 events.
2424 (select_frame_command): Send selected-frame-level-changed
2425 event notification, but only if the level actually changed.
2426 (up_silently_base): Add selected-frame-level-changed event
2427 notification.
2428 (down_silently_base): Likewise.
2429
2430 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2431
2432 * Makefile.in: Update dependencies for all gdb/*.c files.
2433
2434 2002-08-27 Tom Tromey <tromey@redhat.com>
2435
2436 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2437 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2438 Update dependencies.
2439 * i387-tdep.c: Include gdb_string.h.
2440 * osabi.c: Likewise.
2441 * i386-linux-nat.c: Likewise.
2442 * lin-lwp.c: Likewise.
2443 * ax-gdb.c: Likewise.
2444 * signals/signals.c: Likewise.
2445 * jv-valprint.c: Likewise.
2446 * p-lang.c: Likewise.
2447 * c-valprint.c: Likewise.
2448 * cp-abi.c: Likewise.
2449
2450 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2451
2452 * cli/cli-script.h (copy_command_lines): Export.
2453 * breakpoint.c: Include cli/cli-script.h.
2454 * Makefile.in (breakpoint.o): Update dependencies.
2455
2456 2002-08-26 Michael Snyder <msnyder@redhat.com>
2457
2458 * breakpoint.c (insert_breakpoints): Protect all references
2459 to 'process_warning'. Shorten long lines.
2460
2461 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2462
2463 * cli/cli-script.c (copy_command_lines): New function.
2464 * defs.h (copy_command_lines): Export.
2465 * testsuite/gdb.base/commands.exp: New tests for commands
2466 attached to a temporary breakpoint, and for commands that
2467 delete the breakpoint they are attached to.
2468
2469 2002-08-26 Michael Snyder <msnyder@redhat.com>
2470
2471 * breakpoint.c (bpstat_stop_status): Instead of copying the
2472 pointer to the breakpoint commands struct, make a new copy
2473 of the struct and point to that.
2474 (bpstat_clear): Free the commands struct.
2475 (bpstat_clear_actions): Free the commands struct.
2476 (bpstat_do_actions): Free the command actions. Also execute
2477 the local cleanups, instead of deleting them.
2478 (delete_breakpoint): Leave the commands field of the bpstat
2479 chain alone -- it will be freed later.
2480
2481 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2482
2483 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2484 deleted in 2002-08-20 commit. This function is still used by
2485 ppc-linux-nat.c.
2486
2487 2002-08-26 Keith Seitz <keiths@redhat.com>
2488
2489 * gdb-events.sh: Add selected-frame-level-changed event.
2490 * gdb-events.c: Regenerated.
2491 * gdb-events.h: Regenerated.
2492
2493 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2494
2495 Fix PR gdb/393:
2496 * inflow.c (terminal_save_ours): New function to save terminal
2497 settings.
2498 * inferior.h (terminal_save_ours): Declare.
2499 * target.c (debug_to_terminal_save_ours): New function.
2500 (cleanup_target): Defaults to_terminal_save_ours.
2501 (update_current_target): Inherit to_terminal_save_ours.
2502 (setup_target_debug): Set to_terminal_save_ours.
2503 * target.h (target_terminal_save_ours): New to save terminal settings.
2504 (target_ops): New member to_terminal_save_ours.
2505 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2506 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2507 * inftarg.c (init_child_ops): Likewise.
2508 * m3-nat.c (init_m3_ops): Likewise.
2509 * procfs.c (init_procfs_ops): Likewise.
2510 * wince.c (init_child_ops): Likewise.
2511 * win32-nat.c (init_child_ops): Likewise.
2512 * sol-thread.c (init_sol_thread_ops): Likewise.
2513
2514 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2515
2516 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2517 use regcache_* functions.
2518 (i386_gdbarch_init): Set store_return_value instead of
2519 deprecated_store_return_value.
2520
2521 * regcache.c (regcache_raw_write_signed,
2522 regcache_raw_write_unsigned): New functions.
2523 * regcache.h (regcache_raw_write_signed,
2524 regcache_raw_write_unsigned): New prototypes.
2525
2526 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2527
2528 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2529 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2530 source file dependencies. Cleanup corresponding generator rules.
2531
2532 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2533
2534 * regcache.h (register_offset_hack): Declare.
2535 (regcache_cooked_read_using_offset_hack): Declare.
2536 (regcache_cooked_write_using_offset_hack): Declare.
2537
2538 * regcache.c (register_offset_hack): New function.
2539 (regcache_cooked_read_using_offset_hack): New function.
2540 (regcache_cooked_write_using_offset_hack): New function.
2541 (regcache_dump): Check that the registers, according to their
2542 offset, are packed hard against each other.
2543 (cooked_xfer_using_offset_hack): New function.
2544
2545 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2546
2547 * regcache.c (struct regcache_descr): Add field register_type.
2548 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2549 in as a parameter
2550 (init_regcache_descr): Initialize register_type. Pass the descr
2551 to init_legacy_regcache_descr. Use register_type instead of
2552 REGISTER_VIRTUAL_TYPE.
2553 (register_type): New function.
2554 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2555 * regcache.h (register_type): Declare.
2556
2557 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2558
2559 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2560 instead of deprecated_store_return_value. Fix fallout from
2561 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2562
2563 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2564
2565 * regcache.c (max_register_size): New function.
2566 (init_legacy_regcache_descr): Ensure that max_register_size is
2567 large enough for REGISTER_VIRTUAL_SIZE.
2568 * regcache.h (max_register_size): Declare.
2569
2570 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2571
2572 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2573 store_return_value.
2574 (e500_extract_return_value): Change type of valbuf pointer to
2575 void.
2576
2577 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2578
2579 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2580 workaround.
2581
2582 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2583 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2584 long long) to prevent compiler warning on 64-bit systems.
2585
2586 2002-08-23 Andrew Cagney <cagney@redhat.com>
2587
2588 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2589 (DEPRECATED_STORE_RETURN_VALUE): New method.
2590 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2591 * gdbarch.h, gdbarch.c: Re-generate.
2592
2593 * values.c (set_return_value): Pass current_regcache to
2594 STORE_RETURN_VALUE.
2595 * arch-utils.h (legacy_store_return_value): Declare.
2596 * arch-utils.c (legacy_store_return_value): New function.
2597 (legacy_extract_return_value): Update parameters.
2598
2599 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2600 STORE_RETURN_VALUE.
2601 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2602 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2603 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2604 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2605 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2606 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2607 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2608 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2609 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2610 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2611
2612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2613 * i386-tdep.c (i386_extract_return_value): Update.
2614 * arch-utils.c (legacy_extract_return_value): Update.
2615 * frv-tdep.c (frv_gdbarch_init): Update.
2616 * cris-tdep.c (cris_gdbarch_init): Update.
2617 * d10v-tdep.c (d10v_gdbarch_init): Update.
2618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2619 * m68k-tdep.c (m68k_gdbarch_init): Update.
2620 * mcore-tdep.c (mcore_gdbarch_init): Update.
2621 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2622 * s390-tdep.c (s390_gdbarch_init): Update.
2623 * sparc-tdep.c (sparc_gdbarch_init): Update.
2624 * sh-tdep.c (sh_gdbarch_init): Update.
2625 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2626 * v850-tdep.c (v850_gdbarch_init): Update.
2627 * avr-tdep.c (avr_gdbarch_init): Update.
2628 * ia64-tdep.c (ia64_gdbarch_init): Update.
2629 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2630 * vax-tdep.c (vax_gdbarch_init): Update.
2631 * alpha-tdep.c (alpha_gdbarch_init): Update.
2632 * arm-tdep.c (arm_gdbarch_init): Update.
2633 * mips-tdep.c (mips_gdbarch_init): Update.
2634 * i386-tdep.c (i386_gdbarch_init): Update.
2635
2636 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2637
2638 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2639 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2640
2641 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2642
2643 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2644 problems.
2645
2646 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2647
2648 * infrun.c (handle_inferior_event): Move a comment outside of a
2649 function call, in order to avoid indent reformatting this part
2650 of the code in an unreadable way.
2651
2652 2002-08-23 Grace Sainsbury <graces@redhat.com>
2653
2654 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2655 when breakpoints fail. Move general breakpoint error messages to
2656 insert_breakpoints.
2657 * breakpoint.c (insert_breakpoints): Change warnings when
2658 breakpoints are nto inserted to specify the type. Remove call to
2659 memory_error when hardware breakpoints can't be inserted. Remove
2660 multiple calls to warning so all messages are sent to the user at
2661 once.
2662 (delete_breakpoints): Make insert error messsages more explicit.
2663
2664 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2665
2666 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2667 gdbserver/ChangeLog.
2668
2669 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2670
2671 * i386-tdep.c: Include "objfiles.h".
2672 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2673 skip_trampoline_code.
2674 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2675 (CPLUS_MARKER): Define to '.'.
2676
2677 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2678 member.
2679 (linux_corefile_thread_callback): Increase args->num_notes.
2680 (linux_make_note_section): Initialize thread_args.num_notes, and
2681 use it to determine whether notes for any threads were created.
2682
2683 2002-08-23 Donn Terry <donnte@microsoft.com>
2684
2685 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2686 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2687 and PCUNKILL.
2688 (write_with_trace): Conditionalize out the switch branch handling
2689 PCSHOLD if the corresponding macro is not defined. Likewise for
2690 PRSABORT and PRSTOP.
2691 This change will be needed by the Interix port.
2692
2693 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2694
2695 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2696 write_register wherever possible instead of manipulating the
2697 register bytes directly.
2698 Assign VALUE_CONTENTS to a variable and use that.
2699 The GPR numbers are now dependent on the architecture.
2700
2701 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2702
2703 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2704 ev_offset fields.
2705 (skip_prologue): Add support for BookE/e500 instructions.
2706 (e500_extract_return_value): New function.
2707 (frame_get_saved_regs): Add support for saving ev registers and
2708 pseudo gpr's.
2709 (e500_store_return_value): New function.
2710 (rs6000_gdbarch_init): Move up default intializations of
2711 deprecated_extract_return_value and store_return_value. Overwrite
2712 init of store_return_value with e500 specific version.
2713 Set extract_return_value for e500.
2714
2715 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2716
2717 * blockframe.c (generic_call_dummy_register_unwind): Use
2718 regcache_cooked_read to catch cases in which the variable is
2719 stored in a pseudo register.
2720
2721 2002-08-22 Andrew Cagney <cagney@redhat.com>
2722
2723 * NEWS: Mention that the i960 has been made obsolete.
2724 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2725 i960-tdep.c
2726 (remote-nrom.o): Obsolete target.
2727 (remote-nindy.o, i960-tdep.o): Ditto.
2728 * remote-nrom.c: Make file obsolete.
2729 * remote-nindy.c, remote-vx960.c: Ditto.
2730 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2731 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2732 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2733 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2734 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2735 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2736 i960-*-vxworks* obsolete.
2737 * MAINTAINERS: Note that the i960 is obsolete.
2738
2739 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2740
2741 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2742 detach to allow reinitialization.
2743
2744 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2745
2746 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2747 attempt).
2748
2749 2002-08-22 Jim Blandy <jimb@redhat.com>
2750
2751 * coffread.c (coff_symfile_read): Don't try to read the line
2752 number table from disk if the image file doesn't have a symbol
2753 table; we'll never actually look at the info anyway, and Windows
2754 ships DLL's with bogus file offsets for the line number data.
2755
2756 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2757
2758 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2759 an e500 executable.
2760
2761 2002-08-21 Michael Snyder <msnyder@redhat.com>
2762
2763 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2764 (MSYMBOL_SIZE): Replace macro with function.
2765 (DEFAULT_MIPS_TYPE): Delete unused macro.
2766 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2767 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2768
2769 2002-08-21 Jim Blandy <jimb@redhat.com>
2770
2771 * valops.c (value_cast): Simplify and correct logic for doing a
2772 static cast from a pointer to a base class to a pointer to a
2773 derived class.
2774
2775 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2776
2777 * infcmd.c (default_print_registers_info): Replace
2778 do_registers_info.
2779 (registers_info): Use gdbarch_print_registers_info instead of
2780 DO_REGISTERS_INFO.
2781 * inferior.h (default_print_registers_info): Replace
2782 do_registers_info.
2783 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2784 (DO_REGISTERS_INFO): Change to a predicate function.
2785 * gdbarch.h, gdbarch.c: Regenerate.
2786
2787 2002-08-21 Keith Seitz <keiths@redhat.com>
2788
2789 * gdb-events.sh: Add target-changed event.
2790 * gdb-events.c: Regenerated.
2791 * gdb-events.c: Regenerated.
2792 * valops.c (value_assign): Add target-changed event notification
2793 to inlval_register, lval_memory, and lval_reg_frame_relative.
2794
2795 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2796
2797 * NEWS: Add an entry regarding the improvement of the next/step
2798 operation on Alpha Tru64 multi-processor machines.
2799
2800 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2801
2802 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2803 directores.
2804 * Makefile.in: Update all _h macro definitions.
2805 * Makefile.in (install-gdbtk): Move to install section.
2806 (rdi-share/libangsd.a): Move to end of file.
2807
2808 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2809
2810 * frame.c (frame_register_unwind): When a register, set addrp to
2811 the register's byte.
2812
2813 2002-08-20 Michael Snyder <msnyder@redhat.com>
2814
2815 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2816 used locally, so move them from the target machine header to here.
2817 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2818 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2819 Make static.
2820 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2821
2822 2002-08-20 Andrew Cagney <cagney@redhat.com>
2823
2824 * NEWS: Mention that the Apollo line was made obsolete.
2825 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2826 m68*-hp-hpux* obsolete.
2827 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2828 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2829 * buildsym.c (make_blockvector): Make static.
2830 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2831 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2832 (ALLDEPFILES): Remove dstread.c.
2833 (dstread.o): Obsolete make rule.
2834 * dstread.c: Makefile obsolete.
2835 * dst.h: Ditto.
2836 * config/m68k/hp300hpux.mt: Ditto.
2837 * config/m68k/hp300hpux.mh: Ditto.
2838 * config/m68k/hp300bsd.mt: Ditto.
2839 * config/m68k/hp300bsd.mh: Ditto.
2840 * config/m68k/apollo68b.mt: Ditto.
2841 * config/m68k/apollo68v.mh: Ditto.
2842 * config/m68k/apollo68b.mh: Ditto.
2843
2844 2002-08-20 Michael Snyder <msnyder@redhat.com>
2845
2846 * mips-tdep.c (mips_in_return_stub): Make static.
2847 (mips_gdbarch_init): Set in_solib_return_trampoline.
2848 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2849
2850 2002-08-20 Michael Snyder <msnyder@redhat.com>
2851
2852 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2853 * gdbarch.c, gdbarch.h: Regenerate.
2854 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2855 Add.
2856 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2857
2858 2002-08-20 Michael Snyder <msnyder@redhat.com>
2859
2860 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2861 (mips_gdbarch_init): Set skip_trampoline_code,
2862 in_solib_call_trampoline.
2863 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2864 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2865
2866 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2867
2868 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2869
2870 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2871 vector type for ev registers.
2872 (e500_pseudo_register_read): New function.
2873 (e500_pseudo_register_write): New function.
2874 (e500_dwarf2_reg_to_regnum): New function.
2875 (PPC_UISA_NOFP_SPRS): New macro.
2876 (PPC_EV_REGS): New macro.
2877 (PPC_GPRS_PSEUDO_REGS): New macro.
2878 (registers_e500): New register set for e500.
2879 (variants): Add e500 variant.
2880 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2881 before setting architectural dependent variations. Initialize ev
2882 registers numbers. Add case for e500 architecture. Set the
2883 number of pseudo registers.
2884
2885 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2886
2887 * rs6000-tdep.c: Clean up comments.
2888
2889 2002-08-20 Andrew Cagney <cagney@redhat.com>
2890
2891 * h8300-tdep.c: Re-indent file.
2892
2893 2002-08-20 Jim Blandy <jimb@redhat.com>
2894
2895 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2896 default for this.
2897
2898 2002-08-20 Keith Seitz <keiths@redhat.com>
2899
2900 * breakpoints.c (watch_command_1): Use internal breakpoint
2901 when setting a watchpoint_scope breakpoint.
2902
2903 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2904
2905 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2906 (build_builtin_type_vec64i): Ditto.
2907 (build_builtin_type_vec128): Ditto.
2908 (build_builtin_type_vec128i): Ditto.
2909
2910 2002-08-19 Michael Snyder <msnyder@redhat.com>
2911
2912 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2913 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2914 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2915 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2916 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2917 CALL_DUMMY_ADDRESS): Delete.
2918 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2919 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2920 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2921 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2922 push_return_address.
2923 (mips_register_raw_size, mips_eabi_use_struct_convention,
2924 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2925 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2926 mips_init_extra_frame_info, mips_eabi_push_arguments,
2927 mips_n32n64_push_arguments, mips_push_return_address,
2928 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2929 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2930
2931 2002-08-19 Michael Snyder <msnyder@redhat.com>
2932
2933 * mips-tdep.c (mips_frame_num_args): New function.
2934 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2935 frame_saved_pc, frame_args_address, frame_locals_address,
2936 frame_num_args, and frame_args_skip.
2937 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2938 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2939 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2940 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2941
2942 2002-08-20 Michael Snyder <msnyder@redhat.com>
2943
2944 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2945 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2946 * mips-tdep.c (mips_store_struct_return): New function.
2947 (mips_extract_struct_value_address): New function.
2948 (mips_gdbarch_init): Set store_struct_return and
2949 extract_struct_value_address.
2950
2951 2002-08-20 David Carlton <carlton@math.stanford.edu>
2952
2953 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2954 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2955 (read_file_scope): Check that line_header is nonzero before
2956 decoding macro information.
2957
2958 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2959
2960 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2961 flag the general-purpose registers as floating-point on targets
2962 that don't support the floating-point registers.
2963
2964 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2965
2966 * rs6000-tdep.c (altivec_register_p): Delete.
2967 (rs6000_do_altivec_registers): Delete.
2968 (rs6000_altivec_registers_info): Delete.
2969 (rs6000_do_registers_info): Delete.
2970 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2971 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2972
2973 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2974
2975 * infcmd.c (do_registers_info): Print vector registers in hex
2976 format only.
2977 (print_vector_info): Check that printing registers
2978 makes sense.
2979 (print_float_info): Ditto.
2980
2981 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2982
2983 * mips-tdep.c (mips_gdbarch_init): Update.
2984 (mips_o32_extract_return_value): Rewrite.
2985 (mips_o32_store_return_value): Rewrite.
2986 (mips_o32_xfer_return_value): New function.
2987 (mips_xfer_register): Tweak debug print message. Allow for
2988 buf_offset when dumping the value transfered.
2989
2990 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2991
2992 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2993 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2994 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2995 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2996 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2997
2998 2002-08-14 Michael Snyder <msnyder@redhat.com>
2999
3000 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3001
3002 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3003
3004 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3005 register.
3006 (P): New macro to define a register as a pseudo register.
3007 (R, R4, R8, R16, FR32, R64, R0): Updated.
3008 (struct variant): Add new fields for number of pseudo registers
3009 and number of total registers.
3010 (tot_num_registers): New macro replacing....
3011 (num_registers): ...deleted macro.
3012 (num_registers): New function.
3013 (num_pseudo_registers): New function.
3014 (variants): Update all variants to intialize new fields correctly.
3015 Postpone initialization of number of pseudo regs and real regs.
3016 (init_variants): New function.
3017 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3018 registers offsets.
3019
3020 2002-08-19 David Carlton <carlton@math.stanford.edu>
3021
3022 * valops.c (search_struct_field): Change error message to treat
3023 return value of 0 from value_static_field as meaning that field is
3024 optimized out.
3025 (value_struct_elt_for_reference): Ditto.
3026 * values.c (value_static_field): Treat an unresolved location the
3027 same as a nonexistent symbol. Fix PR gdb/635.
3028 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3029 enclosed. Fix PR gdb/574.
3030 * MAINTAINERS: Add self to Write After Approval list.
3031
3032 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3033
3034 * mips-tdep.c (mips_xfer_register): New function.
3035 (mips_n32n64_extract_return_value): Rewrite.
3036 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3037 instead of deprecated_extract_return_value.
3038
3039 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3040
3041 * rs6000-tdep.c (TDEP): Delete macro.
3042 (branch_dest): Replace use of TDEP macro with its body.
3043 (rs6000_pop_frame): Ditto.
3044 (rs6000_push_arguments): Ditto.
3045 (rs6000_skip_trampoline_code): Ditto.
3046 (rs6000_frame_saved_pc): Ditto.
3047 (rs6000_frame_chain): Ditto.
3048 (rs6000_register_name): Ditto.
3049 (rs6000_register_byte): Ditto.
3050 (rs6000_register_raw_size): Ditto.
3051 (rs6000_register_virtual_type): Ditto.
3052 (rs6000_register_convertible): Ditto.
3053 (rs6000_convert_from_func_ptr_addr): Ditto.
3054
3055 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3058 conditionally.
3059 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3060 MIPS_LINUX_JB_ELEMENT_SIZE.
3061 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3062 for MAX_REGISTER_RAW_SIZE arrays.
3063 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3064 MIPS_LINUX_JB_ELEMENT_SIZE.
3065
3066 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3067
3068 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3069
3070 2002-08-19 Aidan Skinner <aidan@velvet.net>
3071
3072 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3073 ada-valprint.c ada-tasks.c.
3074 (YYFILES): Add ada-exp.y.
3075 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3076 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3077 (ada-exp.tab.o): New target.
3078
3079 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3080
3081 * regcache.c (regcache_xfer_part): New function.
3082 (regcache_raw_read_part): New function.
3083 (regcache_raw_write_part): New function.
3084 (regcache_cooked_read_part): New function.
3085 (regcache_cooked_write_part): New function.
3086 * regcache.h (regcache_raw_read_part): Declare.
3087 (regcache_raw_write_part): Declare.
3088 (regcache_cooked_read_part): Declare.
3089 (regcache_cooked_write_part): Declare.
3090
3091 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * remote.c (remote_open_1): Add async_p.
3094 (remote_async_open_1): Delete.
3095 (open_remote_target): Delete.
3096 (remote_open, extended_remote_open): Update calls to remote_open_1.
3097 (remote_async_open, extended_remote_async_open): Call
3098 remote_open_1 instead of remote_async_open_1.
3099
3100 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3101
3102 * blockframe.c: Fix a few coding standard violations.
3103
3104 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3105
3106 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3107 here from ...
3108 * config/i386/tm-i386sco5.h: ... here. File removed.
3109 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3110
3111 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3112 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3113 (TM_FILE): Set to tm-i386.h.
3114 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3115 * config/i386/tm-i386v.h: Remove file.
3116 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3117 instead of "i386/tm-i386v.h".
3118 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3119 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3120 "i386/tm-i386v.h".
3121 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3122 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3123 "i386/tm-i386.h".
3124
3125 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3126
3127 * config/i386/nm-i386v.h: Add protection against
3128 multiple-inclusion.
3129 (i386_register_u_addr): Remove prototype.
3130 (register_u_addr): New prototype.
3131 (REGISTER_U_ADDR): Redefine accordingly.
3132 * i386v-nat.c: Improve several comments.
3133 (i386_register_u_addr): Change signature and rename to
3134 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3135 ubase variable.
3136
3137 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3138
3139 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3140 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3141 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3142 deprecated_extract_return_value.
3143 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3144 rename mips_o32o64_push_arguments.
3145 (mips_gdbarch_init): Update.
3146 (mips_extract_return_value): Delete.
3147 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3148 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3149 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3150 (mips_n32n64_extract_return_value): Clone
3151 mips_extract_return_value.
3152 (mips_store_return_value): Delete.
3153 (mips_o32_store_return_value): Clone mips_store_return_value.
3154 (mips_o64_store_return_value): Clone mips_store_return_value.
3155 (mips_eabi_store_return_value): Clone mips_store_return_value.
3156 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3157
3158 2002-08-18 Aidan Skinner <aidan@velvet.net>
3159
3160 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3161 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3162
3163 2002-08-18 Aidan Skinner <aidan@velvet.net>
3164
3165 * ada-lang.c: Run through gdb_indent.sh.
3166 * ada-lang.h: Run through gdb_indent.sh.
3167 * ada-tasks.c: Run through gdb_indent.sh.
3168 * ada-typeprint.c: Run through gdb_indent.sh.
3169 * ada-valprint.c: Run through gdb_indent.sh.
3170
3171 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3172
3173 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3174 ABI.
3175
3176 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3177
3178 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3179
3180 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3181 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3182
3183 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3184 write_register_gen instead of write_register_bytes.
3185
3186 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3187 i[3456]-*-osf1mk* configurations have been made obsolete.
3188 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3189 i[3456]86-*-osf1mk* hosts obsolete.
3190 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3191 targets obsolete.
3192 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3193 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3194 config/i386/i386m3.mt, config/i386/nm-m3.h,
3195 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3196 config/i386/i386mk.mh, config/i386/i386mk.mt,
3197 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3198 obsolete.
3199 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3200 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3201 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3202
3203 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3204
3205 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3206 (hppa_value_returned_from_stack): Declare.
3207 (hppa_extract_return_value): Declare.
3208 * config/pa/hppa.mt: New file.
3209 * configure.tgt: Recognize hppa*-*-*.
3210 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3211
3212 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3213
3214 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3215 comment.
3216
3217 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3218
3219 * top.c (gdb_rl_operate_and_get_next): Make sure
3220 operate-and-get-next functions correctly even when the history
3221 list is completely filled.
3222
3223 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3224
3225 * MAINTAINERS (Target Instruction Set Architectures): Rename
3226 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3227 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3228 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3229 already listed under Host/Native.
3230
3231 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3232 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3233 mips*-*-*.
3234
3235 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3236
3237 * config/ia64/ia64.mt: New file.
3238 * config/alpha/alpha.mt: New file.
3239 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3240 ia64-linux-gnu. Mention that ia64-elf is broken.
3241 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3242
3243 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3244
3245 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3246 generic_func_frame_valid instead of func_frame_valid.
3247
3248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3249
3250 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3251 procfs appears to be broken when debugging on multi-processor
3252 machines. So enable software single stepping in order to avoid
3253 using the procfs interface to do next/step operations, using
3254 internal breakpoints instead.
3255
3256 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3257 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3258 make this pc address equal to the value it would have if the
3259 system stepping capability was used. Also set a new flag used
3260 to ensure that we don't readjust the PC one more time later.
3261
3262 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3263 address by DECR_PC_AFTER_BREAK when software single step is
3264 in use for this architecture, as this has already been taken
3265 care of in handle_inferior_event().
3266
3267 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3268
3269 * infrun.c (handle_inferior_event): Minor reformatting, to make
3270 a rather long condition expression easier to read.
3271
3272 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3273
3274 * Makefile.in (gdbtk.o): Move to end of file.
3275 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3276 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3277 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3278 (gdbtk-wrapper.o, gdbres.o): Ditto.
3279
3280 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3281
3282 * Makefile.in (copying.o): Separate out compile rule.
3283 (hpux-thread.o, procfs.o, signals.o): Ditto.
3284 (v850ice.o, z8k-tdep.o): Ditto.
3285 (tui-file.o): Move to TUI section.
3286 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3287 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3288
3289 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3290
3291 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3292 skip_trampoline_code, for better namespace-proofing.
3293
3294 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3295
3296 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3297
3298 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3299
3300 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3301
3302 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3303 signal, check whether we hit a breakpoint before checking for a
3304 single step breakpoint. Otherwise, GDB fails to notice that a
3305 breakpoint has been hit when stepping onto a breakpoint.
3306
3307 2002-08-16 Keith Seitz <keiths@redhat.com>
3308
3309 * gdb-events.sh (clear_gdb_event_hooks): New function.
3310 * gdb-events.c: Regenerate.
3311 * gdb-events.h: Regenerate.
3312
3313 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3314
3315 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3316 not_a_sw_breakpoint.
3317 * breakpoint.h (bpstat_stop_status): Add parameter names.
3318
3319 2002-08-16 Grace Sainsbury <graces@redhat.com>
3320
3321 * remote.c (remote_insert_hw_breakpoint)
3322 (remote_remove_hw_breakpoint): Fix calculation of length field
3323 for Z-packet.
3324
3325 2002-08-15 Michael Snyder <msnyder@redhat.com>
3326
3327 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3328 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3329 (supply_fpregset): Ditto.
3330
3331 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3332 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3333 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3334 (TARGET_READ_SP): Delete.
3335 (DO_REGISTERS_INFO): Delete.
3336 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3337 Delete.
3338 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3339 from macros to functions.
3340
3341 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3342 (mips_register_convertible, mips_register_convert_to_virtual,
3343 mips_register_convert_to_raw): Make static.
3344 (mips_read_sp): New function.
3345 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3346 (mips_do_registers_info): Make static.
3347 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3348 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3349 (mips_register_convert_from_type, mips_register_convert_to_type):
3350 New functions.
3351 (mips_gdbarch_init): Set up function_start_offset,
3352 register_virtual_size, pc_in_sigtramp.
3353
3354 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3355
3356 * infcmd.c (vector_info): New function.
3357 (_initialize_infcmd): Add command "info vector".
3358 (print_vector_info): New function.
3359
3360 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3361 * gdbarch.h, gdbarch.c: Regenerate.
3362
3363 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3364
3365 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3366 ``print_all''. Only print vector registers when ``print_all''.
3367
3368 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3369
3370 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3371 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3372
3373 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3374 Add `args' parameter.
3375 * gdbarch.h, gdbarch.c: Regenerate.
3376
3377 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3378
3379 * infcmd.c (float_info): Call print_float_info.
3380 (print_float_info): New function. By default, print the
3381 floating-point registers.
3382
3383 * arch-utils.h (default_print_float_info): Delete declaration.
3384 * arch-utils.c (default_print_float_info): Delete function.
3385
3386 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3387
3388 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3389 out define.
3390
3391 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3392 FRAME.
3393
3394 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3395 * configure.host: Make i[3456]86-*-aix host obsolete.
3396 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3397 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3398 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3399 config/i386/xm-i386aix.h: Make files obsolete.
3400 * i386aix-nat.c: Make file obsolete.
3401 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3402 (i386aix-nat.o): Make target obsolete.
3403
3404 * config/i386/nm-gnu.h: Removed.
3405 * config/i386/nm-i386gnu.h: New file.
3406 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3407 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3408 Moved here from ...
3409 * config/i386/tm-i386gnu.h: ... here. Removed.
3410 * config/i386/xm-i386gnu.h: Removed.
3411 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3412 (NAT_FILE): Set to nm-i386gnu.h.
3413 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3414 * i386-tdep.c: New file.
3415 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3416 (i386gnu-tdep.o): Specify dependencies.
3417
3418 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3419
3420 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3421 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3422 Adjust a few comments to reflect reality a bit closer.
3423 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3424 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3425 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3426 target_insert_watchpoint, target_remove_watchpoint):
3427 Move defines to ...
3428 * config/i386/nm-i386sco5.h: ... here.
3429 (kernel_u_size): Add prototype. Improve a few comments and add
3430 protection against multiple inclusion.
3431
3432 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3433 out define.
3434
3435 * uw-thread.c (SP_ARG0): Define if not already defined.
3436 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3437
3438 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3439
3440 * config/i386/tm-i386.h: Don't include "regcache.h".
3441
3442 * i387-tdep.h (i387_print_float_info): New prototype.
3443 * i387-tdep.c (print_i387_value, print_i387_ext,
3444 print_i387_status_word, print_i387_control_word): Add `struct
3445 ui_file *' argument and use it for output.
3446 (i387_print_float_info): Renamed from i387_float_info. Add
3447 `struct gdbarch *' and `struct ui_file *' arguments and use the
3448 latter for output.
3449 * i386-tdep.c: Include "i387-tdep.h".
3450 (i386_gdbarch_init): Set print_float_info.
3451 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3452 (FLOAT_INFO): Remove define.
3453
3454 2002-08-13 Michael Snyder <msnyder@redhat.com>
3455
3456 * mips-tdep.c (mips_push_arguments): Rename to
3457 mips_eabi_push_arguments, and tune for EABI.
3458 (MIPS_REGS_HAVE_HOME_P): Delete.
3459 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3460 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3461 Delete references to mips_regs_have_home_p.
3462
3463 2002-08-14 Keith Seitz <keiths@redhat.com>
3464
3465 * Makefile.in (install-gdbtk): Create insight plugin directory.
3466 Install plugins.tcl file.
3467
3468 2002-08-14 Keith Seitz <keiths@redhat.com>
3469
3470 * configure.in: Move SUBDIRS to near top of the file so that
3471 --enable options may add things to it.
3472 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3473 * configure: Regenerate.
3474
3475 2002-08-13 Michael Snyder <msnyder@redhat.com>
3476
3477 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3478 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3479 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3480
3481 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3482
3483 * vax-tdep.c (vax_get_saved_register): Delete function.
3484 (vax_gdbarch_init): Update.
3485 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3486 (ns32k_gdbarch_init): Update.
3487 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3488 (alpha_gdbarch_init): Update.
3489
3490 2002-08-13 Andrew Cagney <cagney@redhat.com>
3491
3492 * regcache.c (init_regcache_descr): Overallocate the
3493 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3494 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3495 nr_raw_registers.
3496 (set_register_cached): Add range checking assertions. Use
3497 current_regcache.
3498
3499 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3500
3501 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3502 numbers for MMX registers.
3503
3504 2002-08-13 Andrew Cagney <cagney@redhat.com>
3505
3506 * i386-tdep.c (i386_gdbarch_init): Use
3507 generic_unwind_get_saved_register.
3508
3509 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3510
3511 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3512 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3513 target vector.
3514 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3515 Delete. Add comment regarding this now-deleted target method.
3516
3517 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3518
3519 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3520 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3521 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3522 real PC and the page number (if it's within the memory bank window).
3523 (m68hc11_pseudo_register_write): Likewise when saving.
3524 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3525 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3526 (m68hc11_register_raw_size): And use 32-bit for it.
3527 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3528 16K memory bank is used by the prog; also use the virtual pc.
3529
3530 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3531
3532 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3533 (m68hc11_gdbarch_init): Install it in gdbarch.
3534 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3535 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3536 (MSYMBOL_SIZE): New for documentation.
3537 (insn_return_kind): Enum to specify how a function returns.
3538 (frame_extra_info): Cleanup and record the return mode.
3539 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3540 register in address computation.
3541 (m68hc11_get_return_insn): New to obtain the return instruction used
3542 by the function.
3543 (m68hc11_frame_init_saved_regs): Take into account the return
3544 instruction used by the function for far and interrupt functions.
3545 (m68hc11_init_extra_frame_info): Take into account page register.
3546 (m68hc11_frame_args_address): Adjust according to the return mode.
3547 (show_regs): Print page register only when it's used.
3548
3549 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3550
3551 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3552 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3553 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3554 registers.
3555 (m68hc11_register_raw_size): Likewise.
3556
3557 2002-08-13 Andrew Cagney <cagney@redhat.com>
3558
3559 * i386-tdep.c (i386_register_name): Handle mmx registers.
3560 (mmx_regnum_p): New function.
3561 (i386_mmx_names): New array.
3562 (mmx_num_regs): New variable.
3563 (i386_pseudo_register_read): New function.
3564 (i386_pseudo_register_write): New function.
3565 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3566
3567 * regcache.c (regcache_raw_read_unsigned): New function.
3568 (regcache_raw_read_signed): New function.
3569 * regcache.h (regcache_raw_read_unsigned): Declare.
3570 (regcache_raw_read_signed): Declare.
3571
3572 2002-08-13 Andrew Cagney <cagney@redhat.com>
3573
3574 * regcache.c (regcache_raw_read_as_address): Delete function.
3575 (regcache_cooked_read_signed): New function.
3576 (regcache_cooked_read_unsigned): New function.
3577 * regcache.h (regcache_cooked_read_signed): Declare.
3578 (regcache_cooked_read_unsigned): Declare.
3579 (regcache_raw_read_as_address): Delete declaration.
3580
3581 * blockframe.c (generic_read_register_dummy): Use
3582 regcache_cooked_read_unsigned.
3583 * i386-tdep.c (i386_extract_struct_value_address): Use
3584 regcache_cooked_read_unsigned.
3585
3586 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3587
3588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3589 double sizes according to ELF ABI flags.
3590 (gdbarch_tdep): Record elf_flags.
3591
3592 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3593
3594 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3595 (m6812_prolog): They can appear in 68HC12 function prologue.
3596 (m68hc11_frame_chain): Cleanup.
3597
3598 2002-08-12 Andrew Cagney <cagney@redhat.com>
3599
3600 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3601 declarations.
3602 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3603 (i386_linux_register_raw_size): Delete function.
3604 (i386_linux_init_abi): Update.
3605 * i386-tdep.c (i386_register_raw_size): Delete function.
3606 (i386_register_byte): Delete function.
3607 (i386_gdbarch_init): Update.
3608 (i386_register_size): Delete array.
3609 (i386_register_offset): Delete array.
3610
3611 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3612 (REGISTER_RAW_SIZE): Delete macro.
3613 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3614 (REGISTER_BYTE): Delete macro.
3615
3616 2002-08-11 Aidan Skinner <aidan@velvet.net>
3617
3618 * ada-lang.c (ada_lookup_partial_symbol)
3619 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3620 prototype names so that grep ^func works properly.
3621
3622 * ada-lang.c (ada_array_element_type)
3623 (ada_lookup_partial_symbol): Fix typos in parameter list.
3624
3625 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3626 Fix prototype names so that grep ^func works properly.
3627
3628 2002-08-10 Andrew Cagney <cagney@redhat.com>
3629 Elena Zannoni <ezannoni@redhat.com>
3630 Martin M. Hunt <hunt@redhat.com>
3631
3632 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3633 (build_builtin_type_vec128i): Set the vector bit.
3634 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3635 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3636 (build_builtin_type_vec64): New function.
3637 (build_builtin_type_vec64i): New function.
3638 (build_gdbtypes): Initialize builtin_type_vec64 and
3639 builtin_type_vec64i.
3640
3641 2002-08-09 Andrew Cagney <cagney@redhat.com>
3642
3643 * regcache.c (regcache_dump): Compare the register offset
3644 with REGISTER_BYTE.
3645 * arch-utils.c (generic_register_byte): New function.
3646 * arch-utils.h (generic_register_byte): Declare.
3647 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3648 * gdbarch.h, gdbarch.c: Regenerate.
3649
3650 2002-08-09 Andrew Cagney <cagney@redhat.com>
3651
3652 * regcache.c: Include "gdbcmd.h"
3653 (_initialize_regcache): Add commands "maintenance print
3654 registers", "maintenance print raw-registers" and "maintenance
3655 print cooked-registers".
3656 (enum regcache_dump_what): Define.
3657 (dump_endian_bytes): New function.
3658 (regcache_dump): New function.
3659 (regcache_print): New function.
3660 (maintenance_print_registers): New function.
3661 (maintenance_print_raw_registers): New function.
3662 (maintenance_print_cooked_registers): New function.
3663 * Makefile.in (regcache.o): Update dependencies.
3664
3665 2002-08-09 Michael Snyder <msnyder@redhat.com>
3666
3667 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3668 (mips_push_arguments): Correct some comments. Use paddr_nz
3669 for printing addresses in debug output. Replace static
3670 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3671 (mips_n32n64_push_arguments): New function, cloned from
3672 mips_push_arguments and tuned for the n32/n64 ABI.
3673 (mips_push_register): Buffer needs dynamic allocation.
3674 (mips_print_register): Ditto.
3675 (do_gp_register_row): Ditto.
3676 (mips_store_return_value): Ditto.
3677 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3678
3679 2002-08-09 Don Howard <dhoward@redhat.com>
3680
3681 * memattr.c (mem_info_command): Print special case of upper bound
3682 as max CORE_ADDR + 1.
3683
3684 2002-08-08 Michael Snyder <msnyder@redhat.com>
3685
3686 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3687 returns structs by ref if they're too big to fit in two registers.
3688
3689 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3690
3691 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3692 saved regs value.
3693 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3694 mips_find_saved_regs().
3695 (mips_pop_frame): Likewise.
3696
3697 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3698
3699 * blockframe.c (frame_saved_regs_register_unwind): Revise
3700 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3701 frames are in use.
3702
3703 2002-08-09 Grace Sainsbury <graces@redhat.com>
3704
3705 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3706 T-packets; the 'a' is not taken as a register number.
3707 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3708 (remote_stopped_data_address): New functions; add to target
3709 vector.
3710 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3711 prototypes to match other implementations of this
3712 function. replace integer argument with pointer -- the length
3713 field in the Z-packet is the length of what is pointed to or 1 if
3714 pointer is null. Add to target vector.
3715 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3716 target vector.
3717
3718 From Mark Salter:
3719 * remote.c (remote_wait): Add support to extract optional
3720 watchpoint information from T-packet. Ignore unrecognized
3721 optional info in T-packet.
3722 (remote_async_wait): Ditto.
3723
3724 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3725
3726 * cli/cli-dump.c: Change fopen modes to use binary open modes
3727 as defined in include/fopen-bin.h throughout.
3728
3729 2002-08-08 Michael Snyder <msnyder@redhat.com>
3730
3731 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3732
3733 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3734
3735 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3736 assertion failure by returning early after a warning.
3737
3738 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3739
3740 * mips-tdep.c (mips_find_saved_regs): Make static.
3741 (mips_frame_init_saved_regs): New function.
3742 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3743 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3744 (mips_find_saved_regs): Delete declaration.
3745
3746 2002-08-08 Grace Sainsbury <graces@redhat.com>
3747
3748 * remote.c (remote_wait, remote_async_wait): Change
3749 thread_num from int to ULONGEST.
3750 (unpack_varlen_hex): Change result parameter from
3751 int * to ULONGEST *.
3752
3753 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3754
3755 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3756 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3757 powerpc*-*-*.
3758 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3759
3760 2002-08-08 Andrew Cagney <cagney@redhat.com>
3761
3762 * gcore.c (override_derive_stack_segment): Delete variable.
3763 (preempt_derive_stack_segment): Delete function.
3764 (derive_stack_segment): Delete function.
3765 (default_derive_stack_segment): Renamed to derive_stack_segment.
3766 (override_derive_heap_segment): Delete variable.
3767 (preempt_derive_heap_segment): Delete function.
3768 (derive_heap_segment): Delete function.
3769 (default_derive_heap_segment): Rename to derive_heap_segment.
3770
3771 2002-08-06 Michael Snyder <msnyder@redhat.com>
3772
3773 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3774 * mips-tdep.c (mips_EABI_use_struct_convention,
3775 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3776 New functions. (mips_use_struct_convention): Delete.
3777 (mips_gdbarch_init): set use_gdbarch_convention.
3778
3779 2002-08-06 Michael Snyder <msnyder@redhat.com>
3780
3781 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3782 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3783 mips_o32_reg_struct_has_addr): New functions.
3784 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3785
3786 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3787
3788 * regcache.c (pseudo_register): Delete function.
3789 (fetch_register): Delete function.
3790 (store_register): Delete function.
3791 (regcache_raw_read, legacy_read_register_gen): Use
3792 target_fetch_registers instead of fetch_register.
3793 (legacy_write_register_gen, regcache_raw_write): Use
3794 target_store_register instead of store_register.
3795 (write_register_bytes): Ditto.
3796
3797 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3798 (STORE_PSEUDO_REGISTER): Delete.
3799 * gdbarch.h, gdbarch.c: Regenerate.
3800
3801 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3802
3803 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3804 write dump file binary.
3805
3806 2002-08-05 Michael Snyder <msnyder@redhat.com>
3807
3808 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3809 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3810 (mips_gdbarch_init): Set N32 target to be mips64.
3811
3812 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3813
3814 * frame.c (find_saved_register): Break out of loop once saved
3815 register address is found. Don't mention sparc in loop comment
3816 anymore.
3817
3818 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3819
3820 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3821 mips_default_saved_regsize to 8.
3822
3823 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3824
3825 * gcore.c: Do not include <sys/procfs.h>.
3826 * Makefile.in (gcore.o): Update dependencies.
3827
3828 2002-08-06 Andrew Cagney <cagney@redhat.com>
3829
3830 * configure.tgt: Make arc-*-* obsolete.
3831 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3832 * MAINTAINERS: Make arc-elf obsolete.
3833 * arc-tdep.c: Make file obsolete.
3834 * config/arc/arc.mt: Ditto.
3835 * config/arc/tm-arc.h: Ditto.
3836
3837 2002-08-05 Theodore A. Roth <troth@verinet.com>
3838
3839 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3840
3841 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3842
3843 * mcore-tdep.c (mcore_gdbarch_init): Use
3844 generic_unwind_get_saved_register instead of
3845 generic_get_saved_register.
3846 * v850-tdep.c (v850_gdbarch_init): Ditto.
3847 * frv-tdep.c (frv_gdbarch_init): Ditto.
3848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3849 * s390-tdep.c (s390_gdbarch_init): Ditto.
3850 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3851 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3852 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3853
3854 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3855
3856 * objfiles.h: Add missing #include "symfile.h"
3857
3858 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3859
3860 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3861
3862 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3863 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3864 of FIELD_BITSIZE.
3865
3866 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3867
3868 * NEWS: Cleanup and nitpick.
3869
3870 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3871
3872 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3873
3874 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3875
3876 * Makefile.in (gdbtk-bp.o): Update dependencies.
3877 (gdbtk-register.o): Ditto.
3878 (gdbtk-varobj.o): Ditto.
3879
3880 2002-08-03 Andrew Cagney <cagney@redhat.com>
3881
3882 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3883 m68hc11_fetch_pseudo_register.
3884 (m68hc11_pseudo_register_write): Replace
3885 m68hc11_store_pseudo_register.
3886 (m68hc11_gdbarch_init): Update.
3887
3888 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3889
3890 * gdbarch.sh: Include "gdb_string.h".
3891 * gdbarch.c: Regenerate.
3892
3893 * regcache.c: Include "gdb_string.h".
3894 * ax-general.c: Ditto.
3895 * varobj.c: Ditto.
3896 * std-regs.c: Ditto.
3897 * fbsd-proc.c: Ditto.
3898 * thread.c: Ditto.
3899
3900 * Makefile.in (regcache.o): Update dependencies.
3901 (thread.o, gdbarch.o): Ditto.
3902 (ax-general.o, gdbarch.o): Ditto.
3903 (varobj.o, std-regs.o): Ditto.
3904 (fbsd-proc.o): Specify dependencies.
3905
3906 2002-08-02 Andrew Cagney <cagney@redhat.com>
3907
3908 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3909 regnum.
3910 (regcache_cooked_write): Ditto.
3911
3912 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3913
3914 * regcache.c (regcache_cooked_read): New function.
3915 (regcache_cooked_write): New function.
3916 (read_register_gen): Rewrite using regcache_cooked_read.
3917 (write_register_gen): Rewrite using regcache_cooked_write.
3918
3919 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3920 Declare.
3921
3922 2002-08-02 Andrew Cagney <cagney@redhat.com>
3923
3924 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3925 Replace the architecture methods register_read and register_write.
3926 * gdbarch.h, gdbarch.c: Regenerate.
3927 * regcache.c (init_regcache_descr): Update.
3928 (read_register_gen): Update.
3929 (write_register_gen): Update.
3930 (supply_register): Update comment.
3931
3932 * sh-tdep.c (sh_gdbarch_init): Update.
3933 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3934 `regcache' and `gdbarch' parameters. Make `buffer' a void
3935 pointer. Update code.
3936 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3937 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3938 void pointer. Update code.
3939 (sh64_register_write): Delete.
3940 (sh4_register_read): Delete.
3941 (sh64_register_read): Delete.
3942 (sh4_register_write): Delete.
3943 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3944 void pointer, `to' parameter a void pointer.
3945 (sh_sh64_register_convert_to_raw): Ditto.
3946
3947 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3948
3949 * mips-tdep.c (mips_register_virtual_type): Use architecture
3950 invariant return values.
3951
3952 2002-08-01 Andrew Cagney <cagney@redhat.com>
3953
3954 * linux-proc.c: Include "gdb_string.h".
3955 * Makefile.in (linux-proc.o): Update dependency list.
3956
3957 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3958
3959 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3960 comment.
3961
3962 2002-08-01 Grace Sainsbury <graces@redhat.com>
3963
3964 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3965 to_insert_watchpoint, to_remove_watchpoint,
3966 to_stopped_by_watchpoint, to_stopped_data_address,
3967 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3968 target vecctor. Define their corresponding macros so they call
3969 them.
3970
3971 * target.c: Add default and debug versions of for
3972 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3973 to_insert_watchpoint, to_remove_watchpoint,
3974 to_stopped_by_watchpoint, to_stopped_data_address,
3975 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3976
3977 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3978
3979 * mips-tdep.c (mips_register_virtual_type): New function.
3980 (mips_gdbarch_init): Register mips_register_virtual_type()
3981 with gdbarch machinery.
3982 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3983 this file instead of tm-bigmips.h.
3984 (MIPS_REGSIZE): Delete this macro.
3985 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3986 multiarch version in mips-tdep.c will be found.
3987
3988 2002-08-01 Andrew Cagney <cagney@redhat.com>
3989
3990 * NEWS: Menion that CHILL has been made obsolete.
3991
3992 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3993 * stabsread.c (read_range_type): Ditto.
3994 * gdbtypes.h: Ditto.
3995 * language.c (binop_type_check): Ditto.
3996 (binop_result_type): Ditto.
3997 (integral_type): Ditto.
3998 (character_type): Ditto.
3999 (string_type): Ditto.
4000 (boolean_type): Ditto.
4001 (structured_type): Ditto.
4002 (lang_bool_type): Ditto.
4003 (binop_type_check): Ditto.
4004 * language.h (_LANG_chill): Ditto.
4005 * dwarfread.c (set_cu_language): Ditto.
4006 * dwarfread.c (CHILL_PRODUCER): Ditto.
4007 * dwarfread.c (handle_producer): Ditto.
4008 * expression.h (enum exp_opcode): Ditto.
4009 * eval.c: Ditto for comments.
4010 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4011 * expprint.c (print_subexp): Ditto.
4012 (print_subexp): Ditto.
4013 * valops.c (value_cast): Ditto.
4014 (search_struct_field): Ditto.
4015 * value.h (COERCE_VARYING_ARRAY): Ditto.
4016 * symfile.c (init_filename_language_table): Ditto.
4017 (add_psymbol_with_dem_name_to_list): Ditto.
4018 * valarith.c (value_binop): Ditto.
4019 (value_neg): Ditto.
4020 * valops.c (value_slice): Ditto.
4021 * symtab.h (union language_specific): Ditto.
4022 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4023 (SYMBOL_DEMANGLED_NAME): Ditto.
4024 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4025 * defs.h (enum language): Ditto.
4026 * symtab.c (got_symtab): Ditto.
4027 * utils.c (fprintf_symbol_filtered): Ditto.
4028
4029 * ch-typeprint.c: Make file obsolete.
4030 * ch-valprint.c: Make file obsolete.
4031 * ch-lang.h: Make file obsolete.
4032 * ch-exp.c: Make file obsolete.
4033 * ch-lang.c: Make file obsolete.
4034
4035 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4036 CHILL_LIB.
4037 (TARGET_FLAGS_TO_PASS): Ditto.
4038 (CHILLFLAGS): Obsolete.
4039 (CHILL): Obsolete.
4040 (CHILL_FOR_TARGET): Obsolete.
4041 (CHILL_LIB): Obsolete.
4042 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4043 ch-valprint.c.
4044 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4045 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4046 ch-lang.o.
4047 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4048 targets.
4049
4050 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4051
4052 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4053 This does not change anything at the moment, but will be helpful
4054 later when full Ada support is integrated.
4055
4056 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4057
4058 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4059 help message.
4060
4061 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4062
4063 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4064 and save it in a local variable. Use variable in later test.
4065
4066 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4067
4068 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4069 test. (Thanks to Daniel Jacobowitz.)
4070
4071 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4072
4073 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4074 (mips_abi_strings): Add "n64".
4075 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4076
4077 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4078
4079 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4080 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4081
4082 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4083
4084 * utils.c (host_pointer_to_address, address_to_host_pointer):
4085 Use gdb_assert() instead of explicit call to internal_error().
4086
4087 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4088
4089 * Makefile.in (rs6000-nat.o): Update dependencies.
4090
4091 From Nicholas Duffek:
4092 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4093 (aix-thread.o): New rule.
4094 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4095 * config/powerpc/aix432.mh: New file.
4096
4097 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4098
4099 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4100 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4101 (fetch_core_registers, ppc_linux_supply_gregset)
4102 (ppc_linux_supply_fpregset): New functions.
4103 (ppc_linux_regset_core_fns): New.
4104 (_initialize_ppc_linux_tdep): Call add_core_fns.
4105 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4106 and ppc_linux_supply_gregset.
4107 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4108 (supply_fpregset): Call ppc_linux_supply_fpregset.
4109 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4110 corelow.o.
4111 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4112
4113 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * symtab.c (lookup_symbol): Demangle before lowercasing.
4116
4117 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4118
4119 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4120 declaration.
4121 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4122 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4123 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4124 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4125 "gdb_string.h".
4126 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4127 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4128 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4129 (avr-tdep.o, mon960-rom.o): Ditto.
4130 (aout_stabs_gnu_h): Define.
4131 (symtab_h): Remove $(gdb_obstack_h).
4132
4133 2002-07-30 Jim Blandy <jimb@redhat.com>
4134
4135 Patch from David Carlton <carlton@math.stanford.edu>:
4136 * gdbinit.in: Move the `dir' commands that add GDB's own source
4137 directory to the search path to the end, so that the `gdb' source
4138 directory will be searched first.
4139
4140 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4141
4142 * gdb_obstack.h: New file.
4143 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4144 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4145 * objfiles.h: Include "gdb_obstack.h".
4146 * Makefile.in (gdb_obstack_h): Define.
4147 (symtab_h): Add $(gdb_obstack_h).
4148 (objfiles_h): Add $(gdb_obstack_h).
4149
4150 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4151 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4152 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4153 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4154 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4155 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4156 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4157 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4158
4159 * Makefile.in (bcache.o): Update dependencies.
4160 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4161 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4162 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4163 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4164 (stabsread.o, symfile.o, symmisc.o): Ditto.
4165 (symtab.o, typeprint.o, macroexp.o): Ditto.
4166 (macrotab.o, mdebugread.o): Ditto.
4167 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4168 (coff_ecoff_h, aout_aout64_h): Define.
4169 (aout_stabs_gnu_h, libaout_h): Define.
4170
4171 2002-07-29 Andrew Cagney <cagney@redhat.com>
4172
4173 * regcache.c (struct regcache_descr): Rename nr_registers to
4174 nr_cooked_registers. Revise comments describing the structure
4175 member fields.
4176 (init_regcache_descr): Update.
4177 (init_legacy_regcache_descr): Update.
4178 (read_register_gen, write_register_gen): When a cooked register in
4179 the raw register range, directly access the value from the raw
4180 register cache.
4181
4182 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4183
4184 * z8k-tdep.c: Do not include "obstack.h".
4185 * h8300-tdep.c, h8500-tdep.c: Ditto.
4186 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4187 * valprint.c, v850-tdep.c: Ditto.
4188 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4189 * mn10200-tdep.c: Ditto.
4190
4191 * Makefile.in (z8k-tdep.o): Update dependencies.
4192 (m68hc11-tdep.o, valprint.o): Ditto.
4193 (v850-tdep.o, d10v-tdep.o): Ditto.
4194 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4195 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4196 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4197 (sh_opc_h, gdb_sim_sh_h): Define.
4198 (elf_sh_h, elf_bfd_h): Define.
4199 (opcode_m68hc11_h): Define.
4200 (OPCODES_SRC, OPCODES_DIR): define.
4201 (OPCODES): Use $(OPCODES_DIR).
4202 (gdb_sim_d10v_h): Rename sim_d10v_h.
4203 (gdb_sim_arm_h): Rename sim_arm_h.
4204
4205 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4206
4207 * utils.c (host_pointer_to_address, address_to_host_pointer):
4208 Change internal_error() message to indicate function responsible
4209 for the error.
4210
4211 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4212
4213 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4214 calls to local_hex_string_custom().
4215
4216 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4217
4218 * irix5-nat.c: Move IRIX shared library support from here...
4219 * solib-irix.c: ...to here. Revised substantially to work with
4220 generic solib framework.
4221
4222 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4223 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4224 * mips-irix-tdep.c: New file.
4225
4226 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4227 (mips-irix-tdep.o, solib-irix.o): New rules.
4228 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4229 solib-irix.o.
4230 * config/mips/irix6.mt (TDEPFILES): Likewise.
4231 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4232
4233 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4234
4235 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4236 disabled (via ``#if 0'') includes.
4237
4238 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4239
4240 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4241 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4242 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4243 Add support for the fpscr register.
4244 * rs6000-nat.c (regmap, fetch_inferior_registers)
4245 (store_inferior_registers, fetch_core_registers): Likewise.
4246
4247 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4248
4249 * rs6000-nat.c (language.h): Include.
4250 (special_regs): Delete this array.
4251 (regmap): New function.
4252 (fetch_register, store_register): Use regmap() to map gdb
4253 register numbers to ptrace register numbers. Also, use
4254 outputs from regmap() to make decisions regarding type of
4255 ptrace() call to make. In particular, don't compare against
4256 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4257 (fetch_inferior_registers, store_inferior_registers): Where
4258 possible, obtain register numbers from tdep struct. Don't
4259 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4260 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4261 (LAST_UISA_SP_REGNUM): Delete.
4262
4263 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4264
4265 * rs6000-nat.c (ppc-tdep.h): Include.
4266 (fetch_registers, store_register, fetch_core_registers): Don't
4267 access registers[] directly. Instead, use supply_register() or
4268 regcache_collect() as appropriate.
4269 (find_toc_address): Format hex address with local_hex_string().
4270
4271 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4272
4273 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4274 bfd/elf32-frv.c.
4275
4276 2002-07-24 Tom Tromey <tromey@redhat.com>
4277
4278 * jv-exp.y: Marked all strings with _().
4279 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4280 internal_error.
4281 (MethodInvocation, CastExpression, parse_number, yyerror,
4282 java_type_from_name, push_expression_name, yylex): Typo fixes.
4283
4284 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4285
4286 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4287 (tee_file_flush, tee_file_write, tee_file_fputs)
4288 (tee_file_isatty): New.
4289 * ui-file.h (tee_file_new): Add prototype.
4290
4291 2002-07-24 Aidan Skinner <aidan@velvet.net>
4292
4293 * ada-lang.c: Change k&r style function definitions to prototyped
4294 form.
4295 * ada-typeprint.c: Change k&r style function definitions to prototyped
4296 form.
4297 * ada-valprint.c: Change k&r style function definitions to prototyped
4298 form.
4299
4300 2002-07-24 Andrew Cagney <cagney@redhat.com>
4301
4302 * README: Remove reference to remote-bug.
4303 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4304 remote-bug.c.
4305 (m88k-nat.o): Delete rule.
4306 (m88k-tdep.o): Delete rule.
4307 (remote-bug.o): Delete rule.
4308 * MAINTAINERS: Mark as obsolete.
4309 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4310 * m88k-tdep.c: Make file obsolete.
4311 * config/m88k/m88k.mh: Ditto.
4312 * config/m88k/delta88v4.mh: Ditto.
4313 * config/m88k/delta88v4.mt: Ditto.
4314 * config/m88k/delta88.mt: Ditto.
4315 * config/m88k/delta88.mh: Ditto.
4316 * remote-bug.c: Ditto.
4317 * config/m88k/tm-delta88.h: Ditto.
4318 * config/m88k/nm-delta88v4.h: Ditto.
4319 * config/m88k/xm-delta88.h: Ditto.
4320 * config/m88k/xm-dgux.h: Ditto.
4321 * config/m88k/tm-m88k.h: Ditto.
4322 * config/m88k/nm-m88k.h: Ditto.
4323 * config/m88k/tm-delta88v4.h: Ditto.
4324 * m88k-nat.c: Ditto.
4325 * cxux-nat.c: Ditto.
4326 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4327 and m88*-*-* obsolete.
4328 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4329 m88*-*-* obsolete.
4330
4331 2002-07-24 Andrew Cagney <cagney@redhat.com>
4332
4333 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4334 constant. Same for local pointer variables.
4335 (extract_signed_integer): Ditto.
4336 * defs.h (extract_unsigned_integer): Update.
4337 (extract_signed_integer): Update.
4338
4339 2002-07-24 Andrew Cagney <cagney@redhat.com>
4340
4341 * regcache.c (regcache_raw_write): Change buf parameter to a
4342 constant void pointer.
4343 (regcache_raw_read): Change buf parameter to a void pointer.
4344 (legacy_write_register_gen): Change myaddr parameter a constant
4345 void pointer.
4346 (supply_register): Change val parameter to a const void pointer.
4347 * regcache.h (regcache_raw_write): Update declaration.
4348 (regcache_raw_read): Update declaration.
4349 (supply_register): Update declaration.
4350
4351 2002-07-24 Tom Tromey <tromey@redhat.com>
4352
4353 * defs.h (gdb_readline_wrapper): Declare.
4354 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4355 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4356 * top.c (gdb_readline_wrapper): New function.
4357 (command_line_input): Use it.
4358
4359 2002-07-24 Andrew Cagney <cagney@redhat.com>
4360
4361 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4362 regcache_read and regcache_write.
4363 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4364 * regcache.c: Update.
4365 * sh-tdep.c (sh64_push_arguments): Update comment.
4366 (sh_pseudo_register_read): Update.
4367 (sh_pseudo_register_write): Update.
4368 (sh4_register_read): Update.
4369 (sh4_register_write): Update.
4370 (sh64_pseudo_register_read): Update.
4371 (sh64_pseudo_register_write): Update.
4372 (sh64_register_read): Update.
4373 (sh64_register_write): Update.
4374 * i386-tdep.c (i386_extract_return_value): Update.
4375 (i386_extract_struct_value_address): Update.
4376 (i386_extract_return_value): Update.
4377 * blockframe.c (generic_read_register_dummy): Update.
4378 (generic_call_dummy_register_unwind): Update
4379 * infrun.c (write_inferior_status_register): Update.
4380
4381 2002-07-23 Jim Blandy <jimb@redhat.com>
4382
4383 * parser-defs.h (expression_context_pc): Make this extern.
4384 (Thanks to Michael Snyder.)
4385
4386 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4387
4388 GDB 5.2.1 released from 5.2 branch.
4389 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4390 * README: Update to mention 5.2.1.
4391
4392 2002-07-23 Mark Salter <msalter@redhat.com>
4393
4394 * remote.c (remote_read_bytes): Fix check for error.
4395
4396 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4397
4398 * aix-thread.c (language.h): Include.
4399 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4400 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4401 Print newlines at end of debug messages.
4402 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4403 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4404
4405 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4406
4407 * aix-thread.c (ppc-tdep.h): Include.
4408 (special_register_p): New function.
4409 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4410 (store_regs_user_thread): Use register number information from
4411 gdbarch_tdep struct instead of hardcoded offsets relative to
4412 FIRST_UISA_SP_REGNUM.
4413 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4414 special_register_p() instead of using FPLAST_REGNUM and
4415 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4416 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4417 will be MQ's register number.
4418
4419 2002-07-22 Michael Snyder <msnyder@redhat.com>
4420
4421 * aix-thread.c (ops): Rename to aix_thread_ops.
4422 (base_ops): Rename to base_target.
4423 (ops_attach): Rename to aix_thread_attach.
4424 (ops_detach): Rename to aix_thread_detach.
4425 (ops_resume): Rename to aix_thread_detach.
4426 (ops_wait): Rename to aix_thread_wait.
4427 (ops_kill): Rename to aix_thread_kill.
4428 (init_ops): Rename to init_aix_thread_ops.
4429 (ops_fetch_register): Rename to aix_thread_fetch_register.
4430 (ops_store_register): Rename to aix_thread_store_register.
4431 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4432 (ops_thread_alive): Rename to aix_thread_thread_alive.
4433 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4434 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4435 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4436 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4437 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4438 (store_regs_lib): Rename to store_regs_user_thread.
4439 (store_regs_kern): Rename to store_regs_kernel_thread.
4440
4441 2002-07-22 Michael Snyder <msnyder@redhat.com>
4442
4443 * aix-thread.c (ops_prepare_to_store): Eliminate.
4444 (init_ops): Don't initialize ops.prepare_to_store.
4445 (store_regs_kern): Pre-fetch register buffers from child,
4446 because some registers may not be in the cache. Copy
4447 regs from register cache only if they are cached.
4448 (store_regs_lib): Copy regs from register cache only
4449 if they are cached.
4450 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4451 fill_gprs64): Ditto.
4452
4453 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4454
4455 * aix-thread.c (gdb_assert.h): Include.
4456 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4457 register sizes (from register cache) match size of buffer holding
4458 register data.
4459 (fill_sprs32): Change parameter types to match those in the ptrace()
4460 buffer.
4461 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4462 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4463
4464 2002-07-22 Michael Snyder <msnyder@redhat.com>
4465
4466 * aix-thread.c (supply_sprs64): Cosmetic change.
4467 (supply_sprs32): Cosmetic change.
4468 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4469 (fill_sprs64): Use regcache_collect instead of read_register.
4470 (store_regs_lib): Use regcache_collect instead of
4471 read_register. Use fill_sprs32 instead of fill_sprs64,
4472 if debugging a 32-bit architecture.
4473 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4474 out of the register cache, instead of passing a pointer into
4475 the register cache directly to ptrace. Use regcache_collect
4476 insteaad of read_register.
4477 (ops_prepare_to_store): Use target_read_registers instead
4478 of read_register_bytes.
4479
4480 2002-07-20 Aidan Skinner <aidan@velvet.net>
4481
4482 * MAINTAINERS: Add self under write after approval.
4483
4484 2002-07-20 Aidan Skinner <aidan@velvet.net>
4485
4486 * ada-tasks.c: Change k&r style function definitions to prototyped
4487 form.
4488
4489 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4490
4491 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4492 * x86-64-tdep.c: Include "objfiles.h".
4493 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4494 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4495
4496 2002-07-17 Michal Ludvig <michal@suse.cz>
4497
4498 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4499 (update_context): Initialise cfa variable.
4500
4501 2002-07-17 Michael Snyder <msnyder@redhat.com>
4502
4503 * aix-thread.c: Shorten some long lines.
4504 Bring comments into line with code spec.
4505
4506 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4507
4508 * infrun.c: Re-indent using gdb_indent.sh.
4509
4510 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4511
4512 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4513 Leave the indentation temporarily untouched, to minimize the diffs.
4514
4515 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4516
4517 * stabsread.c: Make os9k sections of the code obsolete,
4518 for real this time.
4519 * stabsread.h: Make os9k sections of the code obsolete.
4520
4521 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4522
4523 * linux-low.c (regsets_store_inferior_registers): Add free()
4524 at the end of a loop to prevent memory leak.
4525 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4526 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4527 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4528 line a comment.
4529 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4530
4531 2002-07-17 Jim Blandy <jimb@redhat.com>
4532
4533 * macrocmd.c (info_macro_command): Remove newline from error
4534 message.
4535
4536 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4537
4538 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4539 (sh_gdbarch_init): Use it for sh-dsp.
4540
4541 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4542
4543 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4544 64-bit DWARF2 format.
4545
4546 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4547
4548 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4549 <sys/proc.h> when not available.
4550
4551 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4552
4553 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4554 * stabsread.c: Make os9k sections of the code obsolete.
4555 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4556 * config/i386/i386os9k.mt: Make file obsolete.
4557 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4558 (COMMON_OBS): Remove os9kread.o
4559 (SFILES): Remove os9kread.c.
4560 (os9kread.o, remote-os9k.o): Make target obsolete.
4561 * remote-os9k.c: Make file obsolete.
4562 * os9kread.c: Make file obsolete.
4563 * Makefile.in
4564
4565 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4566
4567 * NEWS: Mention that the FR30 has been made obsolete.
4568 * fr30-tdep.c: Make file obsolete.
4569 * config/fr30/tm-fr30.h: Ditto.
4570 * config/fr30/fr30.mt: Ditto.
4571 * configure.tgt: Make fr30-*-elf obsolete.
4572 * MAINTAINERS: Make fr30-elf obsolete.
4573
4574 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4575
4576 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4577 found is not inside a section.
4578
4579 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4580
4581 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4582 strerror().
4583 (pdc_realloc): Use xrealloc() instead of realloc().
4584
4585 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4586
4587 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4588 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4589 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4590 macros.
4591
4592 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4593
4594 * aix-thread.c (ptrace_check): Eliminate goto.
4595 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4596 problem.
4597
4598 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4599
4600 * aix-thread.c (gdbcmd.h): Include.
4601 (DEBUG, DBG, DBG2, dbg): Eliminate.
4602 (debug_aix_thread): New static global.
4603 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4604 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4605 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4606 invocations to DBG and DBG2 macros to test against
4607 ``debug_aix_thread'' and call fprintf_unfiltered().
4608 (_initialize_aix_thread): Add new command "set debug aix-thread".
4609
4610 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4611
4612 From Gerhard Tonn <TON@de.ibm.com>:
4613 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4614 instead of supply_register.
4615
4616 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4617
4618 * dwarf2cfi.c: Include "gdb_assert.h".
4619 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4620 non-NULL.
4621 (update_context): Do not use __func__. Add missing ``break''.
4622 (update_context): Do not use __func__.
4623
4624 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4625
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4627 and its setting. Set gdbarch instruction printing functions
4628 directly. For non-rs6000 case use new function
4629 gdb_print_insn_powerpc.
4630 (gdb_print_insn_powerpc): New function.
4631
4632 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4633
4634 * NEWS: Mention that the d30v has been marked obsolete.
4635 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4636 * configure.tgt: Mark d30v-*-* as obsolete.
4637 * d30v-tdep.c: Mark file as obsolete.
4638 * config/d30v/d30v.mt: Ditto.
4639 * config/d30v/tm-d30v.h: Ditto.
4640
4641 2002-07-13 Aidan Skinner <aidan@velvet.net>
4642
4643 * ada-tasks.c (add_task_entry): replace calls to
4644 malloc() with xmalloc
4645 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4646
4647 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4648 ada_finish_decode_line_1, all_sals_for_line
4649 ada_breakpoint_rewrite): replace calls to free() with xfree()
4650
4651 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4652
4653 From Nicholas Duffek (with minor changes by Martin Hunt,
4654 Louis Hamilton, and Kevin Buettner):
4655 * aix-thread.c: New file.
4656
4657 2002-07-12 Petr Sorfa <petrs@caldera.com>
4658
4659 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4660 complaint for invalid attribute class or form.
4661 (read_func_scope): DW_AT_frame_base
4662 better handling of DW_AT_block*.
4663 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4664 better handling of DW_AT_block*.
4665 (read_common_block): DW_AT_location
4666 better handling of DW_AT_block*.
4667 (read_partial_die): DW_AT_location better handling
4668 of DW_AT_block*.
4669 (new_symbol): DW_AT_external better handling of
4670 DW_AT_block*. Proper initialization of variable
4671 "addr".
4672 (attr_form_is_block): New function that returns true
4673 if the attribute's form is of DW_FORM_block*.
4674
4675 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4676
4677 * valops.c (find_method_list): Remove comment about
4678 removed STATIC_MEMFUNCP argument.
4679 (value_find_oload_method_list): Likewise.
4680
4681 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4682
4683 From Nicholas Duffek:
4684 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4685 target_new_objfile_hook.
4686
4687 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4688
4689 From Nicholas Duffek:
4690 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4691 csect.
4692
4693 2002-07-12 Andrew Cagney <cagney@redhat.com>
4694
4695 * MAINTAINERS: Mention --enable-sim-build-warnings.
4696 (m68hc11-elf): Disable sim build warnings.
4697 (m32r-elf): Mark as broken obsolete candidate.
4698 (x86_64-linux-gnu): Mark as buildable with -Werror.
4699 (arm-elf): Change -w to ``,'' which enables warnings but not
4700 -Werror.
4701
4702 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4703
4704 * bcache.h: Update copyright.
4705 (struct bstring, struct bcache): Move definition to "bcache.c".
4706 Replaced by opaque declaration.
4707 (bcache_xfree): Replace free_bcache.
4708 (bcache_xmalloc, bcache_memory_used): Declare.
4709
4710 * bcache.c: Update copyright.
4711 (struct bstring, struct bcache): Moved to here from "bcache.h".
4712 Update comments.
4713 (bcache_xmalloc, bcache_memory_used): New functions.
4714 (bcache_xfree): Replace function free_bcache.
4715
4716 * Makefile.in (objfiles.o): Add $(bcache_h).
4717 (objfiles_h): Remove $(bcache_h).
4718 (symfile.o): Add $(bcache_h).
4719
4720 * symmisc.c: Update copyright.
4721 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4722 (print_objfile_statistics): Use bcache_memory_used.
4723
4724 * symfile.c: Include "bcache.h".
4725 (reread_symbols): Use bcache_xfree.
4726 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4727 (add_psymbol_to_list): Pass psymbol_cache by value.
4728 (add_psymbol_with_dem_name_to_list): Ditto.
4729
4730 * objfiles.h: Update copyright.
4731 (struct bcache): Declare opaque. Do not include "bcache.h".
4732 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4733 bcache'' pointers.
4734 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4735
4736 * objfiles.c: Include "bcache.h". Update copyright.
4737 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4738 macro_cache.
4739 (free_objfile): Use bcache_xfree.
4740
4741 2002-07-11 Grace Sainsbury <graces@redhat.com>
4742
4743 * monitor.c (monitor_fetch_register): Make name a constant.
4744 (monitor_store_register): Same.
4745
4746 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4747
4748 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4749 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4750 (finish_block) For non-function blocks, hash the symbol table. For
4751 function blocks, mark the symbol table as unhashed.
4752 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4753 (msymbol_hash_iw): Likewise.
4754 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4755 value.
4756 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4757 (lookup_minimal_symbol): Likewise for both.
4758 * symtab.h (struct block): Add `hashtable' flag. Comment the
4759 hashtable.
4760 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4761 (ALL_BLOCK_SYMBOLS): Update.
4762 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4763 (struct symbol): Add `hash_next' pointer.
4764 * symtab.c (lookup_block_symbol): Search using the hash table when
4765 possible.
4766 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4767 (search_symbols, find_addr_symbol): Likewise.
4768
4769 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4770 (read_dst_symtab): Likewise.
4771 * jv-lang.c (get_java_class_symtab): Likewise.
4772 * mdebugread.c: Include "gdb_assert.h".
4773 (shrink_block): Assert that the block being modified is not hashed.
4774 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4775 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4776 symbols.
4777 (dump_symtab): Recognize hashed blocks.
4778 * printcmd.c (print_frame_args): Assert that function blocks do not
4779 have hashed symbol tables.
4780 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4781 (fill_in_ada_prototype, debug_print_block): Likewise.
4782 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4783
4784 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4785
4786 * stack.c (print_frame): Use result of frame_address_in_block()
4787 instead of fi->pc when evaluating symbols.
4788 (backtrace_command_1): Ditto.
4789
4790 2002-07-11 Andrew Cagney <cagney@redhat.com>
4791
4792 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4793 Make static.
4794
4795 * arm-tdep.c (arm_register_name): Make return type constant.
4796
4797 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4798
4799 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4800 prototype.
4801 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4802 * s390-tdep.c (s390_fp_regnum): Ditto.
4803 (s390_read_fp): Ditto.
4804 (s390_pop_frame): Ditto.
4805 (_initialize_s390_tdep): Ditto.
4806 * remote.c (get_remote_state): Ditto.
4807 * procfs.c (mappingflags): Ditto.
4808 * memattr.c (_initialize_mem): Ditto.
4809 * mcore-tdep.c (mcore_pop_frame): Ditto.
4810 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4811 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4812 * language.c (set_case_str): Ditto.
4813 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4814 * frv-tdep.c (new_variant): Ditto.
4815 (frv_stopped_data_address): Ditto.
4816 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4817 (context_alloc): Ditto.
4818 (frame_state_alloc): Ditto.
4819 (unwind_tmp_obstack_init): Ditto.
4820 (unwind_tmp_obstack_free): Ditto.
4821 (cfi_read_fp): Ditto.
4822 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4823 (cris_pop_frame): Ditto.
4824 * c-lang.c (scanning_macro_expansion): Ditto.
4825 (finished_macro_expansion): Ditto.
4826 (c_preprocess_and_parse): Ditto.
4827 * gdbarch.sh: Ditto.
4828 * gdbarch.h, gdbarch.c: Regenerate.
4829 * config/mn10200/tm-mn10200.h: Adjust indentation.
4830 * target.c: Adjust indentation.
4831 * symtab.h: Adjust indentation.
4832 * stabsread.h: Adjust indentation.
4833 * remote-es.c: Adjust indentation.
4834 * os9kread.c: Adjust indentation.
4835
4836 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4837
4838 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4839 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4840
4841 2002-07-10 Grace Sainsbury <graces@redhat.com>
4842
4843 * NEWS: Mention m68k, mcore multi-arching.
4844 * MAINTAINERS: Change status of m68k, mcore to reflect
4845 multi-arching.
4846
4847 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4848
4849 * valops.c (find_overload_match): Free oload_syms.
4850
4851 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4852
4853 Define HAVE_SYS_PROC_H if sys/proc.h exists
4854 * configure.in: Add check for sys/proc.h
4855 * config.in: Regenerate.
4856 * configure: Regenerate.
4857
4858 2002-07-09 Grace Sainsbury <graces@redhat.com>
4859
4860 * config/m68k/tm-m68k.h: Remove macros wrapped in
4861 #if !GDB_MULTI_ARCH.
4862
4863 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4864
4865 * config.in, configure: Regenerate.
4866
4867 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4868
4869 * dwarf2cfi.c: Include "gcore.h".
4870 (execute_stack_op): Fix implementation of the
4871 DW_OP_deref and DW_OP_deref_size operators by letting do their
4872 lookup in the target.
4873
4874 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4875
4876 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4877 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4878 tdep->sc_sp_offset.
4879
4880 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4881
4882 Fix PR gdb/595, gdb/602
4883 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4884 Don't call value_cast, just read the vtable pointer; update comments
4885 to match.
4886
4887 2002-07-05 Grace Sainsbury <graces@redhat.com>
4888
4889 * config/mcore/tm-mcore.h: Remove file.
4890 * config/mcore/mcore.mt: Remove definition of TM_FILE
4891 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4892
4893 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4894
4895 * i386bsd-tdep.c: Include "gdb_string.h".
4896
4897 2002-07-04 Grace Sainsbury <graces@redhat.com>
4898
4899 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4900 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4901 mcore-tdep.
4902 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4903 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4904 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4905 (RETVAL_REGNUM): Move macros from tm-mcore.h
4906 (mcore_reg_struct_has_addr): New function.
4907 (mcore_gdbarch_init): Added initializations for the macros removed
4908 from tm-mcore.h.
4909
4910 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4911
4912 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4913 traditonal string branding within the ELF header.
4914
4915 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4916
4917 * symtab.c (remove_params): New function.
4918 (make_symbol_overload_list): Use it instead of cplus_demangle.
4919 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4920
4921 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4922
4923 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4924
4925 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4926 New variables.
4927 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4928 and tdep->sigtramp_end.
4929 * i386obsd-nat.c: New file.
4930 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4931
4932 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4933 Don't call get_current_frame().
4934
4935 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4936
4937 * i386-nat.c (child_post_startup_inferior): New function
4938 calling i386_cleanup_dregs if
4939 I386_USE_GENERIC_WATCHPOINTS is defined.
4940 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4941 conditional to acknowledge that i386-nat.c has its
4942 own child_post_startup_inferior function.
4943
4944 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4945
4946 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4947 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4948 instead of MAX_REGISTER_RAW_SIZE.
4949 (i386_extract_return_value, i386_extract_struct_value_address):
4950 Convert to use regcache.
4951 (i386_gdbarch_init): Set max_register_raw_size and
4952 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4953 Set extract_return_value and extract_struct_value_address instead
4954 of their deprecated variants.
4955
4956 Convert i386 target to generic dummy frames.
4957 * i386-tdep.c: Include "symfile.h".
4958 (i386_frameless_signal_p): Consider a function to be frameless if
4959 the pc points at the first instruction of the function.
4960 (i386_frame_chain): Handle (generic) call dummies.
4961 (i386_frame_saved_pc): Likewise.
4962 (i386_frame_init_saved_regs): Remove code dealing with call
4963 dummies on the stack.
4964 (i386_push_dummy_frame): Removed.
4965 (i386_call_dummy_words): Removed.
4966 (i386_fix_call_dummy): Removed.
4967 (i386_push_return_address): New function.
4968 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4969 parameter, and don't call get_current_frame.
4970 (i386_pop_frame): New function.
4971 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4972 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4973 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4974 call_dummy_length to 0, set call_dummy_words to NULL, set
4975 sizeof_call_dummy_words to 0, set fix_call_dummy to
4976 generic_fix_call_dummy, set pc_in_call_dummy to
4977 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4978 generic_push_dummy_frame, set push_return_address to
4979 i386_push_return_address and set frame_chain_valid to
4980 generic_file_frame_chain_valid.
4981
4982 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4983
4984 * gdbarch.sh (struct regcache): Add opaque declaration.
4985 (EXTRACT_RETURN_VALUE): New architecture method.
4986 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4987 * gdbarch.h, gdbarch.c: Regenerate.
4988 * arch-utils.c (legacy_extract_return_value): New function.
4989 * arch-utils.h (legacy_extract_return_value): Declare.
4990 * values.c (value_being_returned): Re-enable code handling
4991 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4992 deprecated_grub_regcache_for_registers call to block handling
4993 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4994 (EXTRACT_RETURN_VALUE): Do not define.
4995
4996 2002-07-03 Grace Sainsbury <graces@redhat.com>
4997
4998 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4999 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5000 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5001 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5002 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5003 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5004 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5005 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5006 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5007 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5008 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5009 argument so the function fits the prototype in the architecture
5010 vector.
5011 (mcore_pop_frame): Remove argument so the function fits the
5012 prototype. Use get_current_frame instead of the argument.
5013 (mcore_push_arguments): Change type of struct_return so the
5014 function can be used in the architecture vector.
5015 (mcore_store_struct_return): Add.
5016 (mcore_frame_init_saved_regs): Add.
5017 (mcore_gdbarch_init): Add function calls to replace the macros
5018 removed from tm-mcore.h
5019
5020 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5021
5022 * infcmd.c (print_return_value): Remove compatibility code calling
5023 deprecated_grub_regcache_for_registers.
5024
5025 * values.c: Include "regcache.h".
5026 (value_being_returned): Update. Use
5027 deprecated_grub_regcache_for_registers to extract the register
5028 buffer address.
5029 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5030 ``struct regcache''.
5031 * Makefile.in (values.o): Add dependency on $(regcache_h).
5032
5033 * inferior.h (run_stack_dummy): Change type of second parameter to
5034 a ``struct regcache''.
5035 * valops.c (hand_function_call): Change type of retbuf to ``struct
5036 regcache''. Allocate using regcache_xmalloc, clean using
5037 make_cleanup_regcache_xfree.
5038 * infcmd.c (run_stack_dummy): Update. Use
5039 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5040
5041 * regcache.c (do_regcache_xfree): New function.
5042 (make_cleanup_regcache_xfree): New function.
5043 * regcache.h (make_cleanup_regcache_xfree): Declare.
5044
5045 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5046
5047 * event-top.c (command_line_handler): Don't read past
5048 beginning of buffer.
5049
5050 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5051
5052 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5053 struct frame_id.
5054 (varobj_create): Store frame_id for root.
5055 (varobj_gen_name): Use xasprintf.
5056 (varobj_update): Save and restore frame using get_frame_id() and
5057 frame_find_by_id().
5058 (create_child): Use xasprintf.
5059 (new_root_variable): Initialize frame_id.
5060 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5061 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5062 to prevent memory leak.
5063
5064 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5065
5066 * valops.c (hand_function_call): Move declaration of retbuf to
5067 start of function, allocate using malloc, add a cleanup but before
5068 the inf_status cleanup, cleanup the buffer. Rename local variable
5069 old_chain to inf_status_cleanup.
5070
5071 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5072
5073 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5074
5075 * cli/cli-decode.c (cmd_func_p): New function.
5076 (cmd_func): New function.
5077
5078 * command.h: Add cmd_func() and cmd_func_p().
5079
5080 2002-07-03 Grace Sainsbury <graces@redhat.com>
5081
5082 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5083 (REGISTER_SIZE): Remove.
5084 (MAX_REGISTER_RAW_SIZE): Remove.
5085 (REGISTER_VIRTUAL_TYPE): Remove.
5086 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5087 (REGISTER_NAME): Remove.
5088 (USE_GENERIC_DUMMY_FRAMES): Remove.
5089 (CALL_DUMMY): Remove.
5090 (CALL_DUMMY_START_OFFSET): Remove.
5091 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5092 (CALL_DUMMY_LOCATION): Remove.
5093 (FIX_CALL_DUMMY): Remove.
5094 (CALL_DUMMY_ADDRESS): Remove.
5095 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5096 (SAVE_DUMMY_FRAME_TOS): Remove.
5097 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5098 (mcore_register_virtual_type): New function.
5099 (mcore_register_byte): New function.
5100 (mcore_register_size): New function.
5101 (mcore_register_name): New function.
5102 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5103 macros removed from tm-mcore.h.
5104 (mcore_dump_tdep): Add.
5105 (_initialize_mcore_tdep): Add gdbarch_register call.
5106
5107 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5108
5109 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5110 frameless_look_for_prologue, such that we actually call this
5111 function.
5112
5113 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5114
5115 * frame.h (frame_address_in_block): New function.
5116
5117 * blockframe.c (frame_address_in_block): New function extracted
5118 from get_frame_block().
5119 (get_frame_block): Use frame_address_in_block().
5120 (block_innermost_frame): Use frame_address_in_block() to match
5121 the frame pc address against the block boundaries rather than
5122 the frame pc directly. This prevents a failure when a frame pc
5123 is actually a return-address pointing immediately after the end
5124 of the given block.
5125
5126 2002-07-02 Grace Sainsbury <graces@redhat.com>
5127
5128 * MAINTAINERS: Add self under write after approval.
5129
5130 2002-07-02 Grace Sainsbury <graces@redhat.com>
5131
5132 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5133 used in architecture vector. The default is
5134 m68k_local_breakpoint_from_pc.
5135 (m68k_local_breakpoint_from_pc): Add.
5136 (enum): Add register numbers from tm-m68k.h.
5137 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5138 vector.
5139 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5140 GDB_MULTI_ARCH_PARTIAL.
5141 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5142 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5143 m68k-tdep.c.
5144 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5145 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5146 to enum in m68k-tdep.c
5147
5148 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5149
5150 * solib-osf.c (open_map): Compute the list of shared libraries
5151 loaded by the inferior, rather than the list of libraries loaded
5152 by GDB itself. Otherwise, GDB ends up reading the symbols from
5153 the wrong shared libraries...
5154
5155 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5156
5157 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5158 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5159 macros.
5160 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5161 Remove functions.
5162 (FRAMELESS_SIGNAL): Remove function.
5163 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5164 i386_linux_saved_pc_after_call): Removed.
5165 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5166 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5167 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5168
5169 * i386-tdep.c (i386_frameless_signal_p): New function.
5170 (i386_frame_chain): Deal with frameless signals.
5171 (i386_sigtramp_saved_sp): New function.
5172 (i386_frame_saved_pc): Deal with frameless signals.
5173 (i386_saved_pc_after_call): Make sure the correct value is
5174 returned just after entry into a sigtramp.
5175 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5176 i386fbsd4_sc_sp_offset): New variables.
5177 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5178 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5179 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5180 similiar to what we already did for sc_pc_offset.
5181 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5182 tdep->sc_sp_offset.
5183
5184 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5185
5186 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5187
5188 * config/i386/tm-x86-64linux.h: New.
5189 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5190 definitions.
5191 * config/i386/nm-x86-64.h: Rename to ...
5192 * config/i386/nm-x86-64linux.h: ... this one.
5193 * config/i386/x86-64linux.mh: Reflect the above change.
5194
5195 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5196
5197 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5198 with sigcontext_addr. Add sc_sp_offset.
5199 (i386bsd_sigtramp_saved_pc): Remove prototype.
5200 (i386bsd_sicontext_addr): Add prototype.
5201 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5202 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5203 (i386_svr4_sigtramp_saved_pc): Removed.
5204 (i386_svr4_sigcontext_addr): New function.
5205 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5206 Initialize tdep->sigcontext_addr instead. Initialize
5207 tdep->sc_pc_offset and tdep->sc_sp_offset.
5208 (i386_gdbarch_init): Likewise.
5209 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5210 any more.
5211 (i386bsd_sigtramp_saved_pc): Remove function.
5212 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5213 Initialize tdep->sigcontext_addr instead. Initialize
5214 tdep->sc_pc_offset.
5215 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5216 of tdep->sigtramp_saved_pc.
5217 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5218 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5219 instead.
5220
5221 * i386-tdep.c (i386_frameless_function_invocation,
5222 i386_frame_num_args, i386_frame_init_saved_regs,
5223 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5224 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5225 i386_extract_return_value, i386_store_return_value,
5226 i386_extract_struct_value_address, i386_register_virtual_type,
5227 i386_register_convertible, i386_register_convert_to_virtual,
5228 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5229 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5230 static.
5231
5232 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5233
5234 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5235
5236 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5237 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5238 this macro. Include "value.h".
5239
5240 2002-06-30 Aidan Skinner <aidan@velvet.net>
5241
5242 * ada-exp.tab.c: remove as it's a generated file
5243 * ada-lex.c: remove as it's a generated file
5244
5245 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5246
5247 * config/i386/tm-i386.h (struct frame_info, struct
5248 frame_saved_regs, struct value, struct type): Remove forward
5249 declarations.
5250
5251 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5252 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5253 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5254 (FILL_FPXREGSET): Define.
5255
5256 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5257
5258 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5259 i[3456]86-*-netbsd* case.
5260 * config/i386/tm-obsd.h: Removed.
5261 * config/i386/obsd.mt: Removed.
5262 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5263 core-aout.o.
5264 (MH_CFLAGS): Add -DYYDEBUG=0.
5265
5266 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5267 i386nbsd_sc_pc_offset on OpenBSD too.
5268
5269 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5270 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5271 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5272 define.
5273 * i386bsd-tdep.c: Include "arch-utils.h".
5274 (i386bsd_aout_in_solib_call_trampoline): New function.
5275 (i386bsd_init_abi): Set in_solib_call_trampoline to
5276 i386bsd_aout_in_solib_call_trampoline.
5277 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5278 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5279
5280 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5281
5282 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5283 (struct obstack, struct bcache): Add opaque declarations.
5284 * Makefile.in (macrotab_h): Update
5285
5286 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5287
5288 * blockframe.c (generic_find_dummy_frame): Change return type to
5289 ``struct regcache''.
5290 (struct dummy_frame): Replace field ``registers'' with regcache, a
5291 struct regcache object.
5292 (generic_find_dummy_frame): Update.
5293 (generic_push_dummy_frame): Update. Use regcache_xfree,
5294 regcache_xmalloc and regcache_cpy.
5295 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5296 regcache_xfree.
5297 (deprecated_generic_find_dummy_frame): Update.
5298 (generic_read_register_dummy): Update. Use
5299 regcache_read_as_address.
5300 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5301 (generic_get_saved_register): Update. Use regcache_read.
5302
5303 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5304
5305 * Makefile.in (objfiles_h): Add $(bcache_h).
5306 * objfiles.h: Include "bcache.h".
5307
5308 * Makefile.in (symtab_h): Remove $(bcache_h).
5309 * symtab.h: Do not include "bcache.h".
5310
5311 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5312
5313 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5314 generic_func_frame_chain_valid.
5315
5316 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5317
5318 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5319 * config/i386/tm-fbsd.h: Likewise.
5320
5321 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5322
5323 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5324 generic_unwind_get_saved_register.
5325
5326 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5327
5328 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5329 * regcache.c (supply_register): Add missing argument to
5330 register_buffer call.
5331
5332 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5333
5334 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5335 Solaris /bin/grep does not not like it. From Peter Schauer.
5336
5337 2002-06-26 Tom Tromey <tromey@redhat.com>
5338
5339 * command.h (add_setshow_cmd): Declare.
5340 (add_setshow_cmd_full): Declare.
5341 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5342 returns void. Use add_setshow_cmd_full.
5343 (add_setshow_cmd_full): New function.
5344 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5345 (add_setshow_boolean_cmd): Likewise.
5346
5347 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5348
5349 * config/vax/tm-vax.h: Protect from multiple inclusion.
5350 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5351 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5352 * config/vax/tm-vaxbsd.h: ...here. New file.
5353 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5354
5355 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5356
5357 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5358 (BELIEVE_PCC_PROMOTION): Remove.
5359 (AP_REGNUM): Move to...
5360 * config/vax/nm-vax.h: ...here.
5361 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5362 (vax_breakpoint_from_pc): New function.
5363 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5364 and gdbarch_believe_pcc_promotion.
5365
5366 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5367
5368 * Makefile.in (vax_tdep_h): Define.
5369 (vax-tdep.o): Use $(vax_tdep_h).
5370 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5371 (vax_dump_tdep): New function.
5372 (_initialize_vax_tdep): Register vax_dump_tdep.
5373 * vax-tdep.h: Include osabi.h.
5374 (struct gdbarch_tdep): New.
5375
5376 2002-06-26 Andrew Cagney <cagney@redhat.com>
5377
5378 * frame.h (deprecated_generic_find_dummy_frame): Rename
5379 generic_find_dummy_frame.
5380 * blockframe.c (generic_find_dummy_frame): Make static.
5381 (deprecated_generic_find_dummy_frame): New function.
5382 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5383 generic_find_dummy_frame with deprecated_find_dummy_frame.
5384 (sh64_nofp_frame_init_saved_regs): Ditto.
5385 (sh_fp_frame_init_saved_regs): Ditto.
5386 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5387 (s390_frame_chain): Ditto.
5388 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5389
5390 2002-06-26 Grace Sainsbury <graces@redhat.com>
5391
5392 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5393 gdbarch vector are at the top.
5394 (NUM_REGS): Remove.
5395 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5396 (FRAME_ARGS_ADDRESS): Remove.
5397 (FRAME_LOCALS_ADDRESS): Remove.
5398 (FRAME_NUM_ARGS): Remove.
5399 (FRAME_ARGS_SKIP): Remove.
5400 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5401 (m68k_gdbarch_init): Add gdbarch initializations for macros
5402 undefined in tm-m68k.h
5403
5404 2002-06-26 Grace Sainsbury <graces@redhat.com>
5405
5406 * monitor.h: Add the function regname to monitor_ops
5407 structure. This way NUM_REGS does not have to be a constant.
5408 * monitor.c (monitor_fetch_register): Added support for regname
5409 function. The function is called if the array regnames is NULL.
5410 (monitor_store_register): Same.
5411 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5412 regnames array.
5413 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5414 cpu32bug_cmds.regname to point to new function.
5415 * abug-rom.c (abug_regname): Same as above.
5416 (init_abug_cmds): Same.
5417 * dbug-rom.c (dbug_regname): Same as above.
5418 (init_dbug_cmds): Same.
5419 * remote-est.c (est_regname): Same.
5420 (init_est_cmds): Same.
5421 * rom68k-rom.c (rom68k_regname): Same.
5422 (init_rom68k_cmds): Same.
5423
5424 2002-06-25 Tom Tromey <tromey@redhat.com>
5425
5426 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5427
5428 2002-06-25 Andrew Cagney <cagney@redhat.com>
5429
5430 * infrun.c (stop_registers): Change variable's type to ``struct
5431 regcache'''.
5432 (xmalloc_inferior_status): Delete function.
5433 (free_inferior_status): Delete function.
5434 (normal_stop): Use regcache_cpy.
5435 (struct inferior_status): Change type of fields ``stop_registers''
5436 and ``registers'' to ``struct regcache''.
5437 (write_inferior_status_register): Use regcache_write.
5438 (save_inferior_status): Instead of calling
5439 xmalloc_inferior_status, allocate the inf_status buffer directly.
5440 Use regcache_dup_no_passthrough and regcache_dup to save the
5441 buffers.
5442 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5443 Replace the stop_registers regcache instead of overriding it. Use
5444 regcache_xfree. Instead of calling free_inferior_status, xfree
5445 the buffer directly.
5446 (discard_inferior_status): Use regcache_xfree. Instead of calling
5447 free_inferior_status, xfree the buffer directly.
5448 (build_infrun): Use regcache_xmalloc.
5449 (_initialize_infrun): Delete redundant call to build_infrun.
5450
5451 * Makefile.in (infcmd.o): Add $(regcache_h).
5452
5453 * infcmd.c: Include "regcache.h".
5454 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5455 obtain the address of `stop_registers' register buffer.
5456 (print_return_value): Ditto.
5457
5458 * inferior.h (struct regcache): Add opaque declaration.
5459 (stop_registers): Change variable's declared type to ``struct
5460 regcache''.
5461
5462 2002-06-24 Tom Tromey <tromey@redhat.com>
5463
5464 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5465 * target.c (initialize_targets): Fixed typo in
5466 trust-readonly-sections `show' documentation.
5467
5468 * main.c: Marked all strings with _().
5469
5470 2002-06-24 Don Howard <dhoward@redhat.com>
5471
5472 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5473 that means max CORE_ADDR+1.
5474 (lookup_mem_region): Ditto.
5475 (mem_info_command): Ditto.
5476
5477 2002-06-24 Grace Sainsbury <graces@redhat.com>
5478
5479 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5480 (REGISTER_BYTES_OK): Remove.
5481 (REGISTER_BYTES): Remove.
5482 (STORE_STRUCT_RETURN): Remove.
5483 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5484 (STORE_RETURN_VALUE): Remove.
5485 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5486 (FRAME_CHAIN): Remove.
5487 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5488 (FRAME_SAVED_PC): Remove.
5489 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5490 (m68k_store_struct_return): Add.
5491 (m68k_deprecated_extract_return_value): Add.
5492 (m68k_deprecated_extract_struct_value_address): Add.
5493 (m68k_store_return_value): Add.
5494 (m68k_frame_chain): Add.
5495 (m68k_frameless_function_invocation): Add.
5496 (m68k_frame_saved_pc): Add.
5497 (m68k_gdbarch_init): added set_gdbarch calls for new
5498 functions and deleted macros.
5499
5500 2002-06-23 Tom Tromey <tromey@redhat.com>
5501
5502 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5503 (ALLDEPFILES): Likewise.
5504 (udiheaders): Removed.
5505 (udip2soc.o): Likewise.
5506 (udi2go32.o): Likewise.
5507 (udr.o): Likewise.
5508 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5509
5510 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5511
5512 * infrun.c (_initialize_infrun): Delete unnecessary call to
5513 build_infrun.
5514
5515 * regcache.h: Update comments describing the regcache_cpy family
5516 of functions.
5517 (regcache_save, regcache_restore): Delete declaration.
5518 (regcache_save_no_passthrough): Delete declaration.
5519 (regcache_restore_no_passthrough): Delete declaration.
5520 * regcache.c (regcache_save): Delete function.
5521 (regcache_save_no_passthrough): Delete function.
5522 (regcache_restore): Delete function.
5523 (regcache_restore_no_passthrough): Delete function.
5524
5525 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5526
5527 * config/m68k/tm-m68k.h: Fix typo.
5528 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5529 (m68k_frame_init_saved_regs): Declare.
5530
5531 2002-06-21 Jim Blandy <jimb@redhat.com>
5532
5533 Remove some vestiges of Harris 88k support.
5534 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5535 register numbering quirk.
5536 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5537 odd symbols occurring in Harris 88k ELF targets.
5538
5539 2002-06-21 Tom Tromey <tromey@redhat.com>
5540
5541 * gdb_locale.h: New file.
5542 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5543 (defs_h): Added gdb_locale.h.
5544 * configure, config.in: Rebuilt.
5545 * configure.in (PACKAGE): Define.
5546 * defs.h: Include gdb_locale.h.
5547 * main.c (captured_main): Call setlocale, bindtextdomain,
5548 textdomain.
5549
5550 2002-06-21 Dave Brolley <brolley@redhat.com>
5551
5552 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5553 * config/frv/frv.mt: New file.
5554 * config/frv/tm-frv.h: New file.
5555 * configure.tgt: Support frv-*-*.
5556 * Makefile.in (frv-tdep.o): New target.
5557 * frv-tdep.c: New file.
5558 * NEWS: Mention frv.
5559
5560 2002-06-21 Dave Brolley <brolley@redhat.com>
5561
5562 * MAINTAINERS: Add self to "Write After Approval" list.
5563
5564 2002-06-21 Grace Sainsbury <graces@redhat.com>
5565
5566 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5567 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5568 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5569 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5570 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5571
5572 * m68k-tdep.c: Include arch-utils.h
5573 (m68k_register_raw_size): Add.
5574 (m68k_register_virtual_size): Add.
5575 (m68k_register_virtual_type): Add.
5576 (m68k_register_name): Add.
5577 (m68k_stack_align): Add.
5578 (m68k_register_byte): Add.
5579 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5580 tm-m68k.h.
5581
5582 2002-06-21 Grace Sainsbury <graces@redhat.com>
5583
5584 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5585 m68k_find_saved_regs.
5586 (m68k_pop_frame): Removed saved_regs structure, and replaced
5587 references to it with frame->saved_regs.
5588 (m68k_gdbarch_init): Added function calls to initialize the
5589 gdbarch structure.
5590 (m68k_fix_call_dummy): Add.
5591 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5592 (CALL_DUMMY): Remove.
5593 (CALL_DUMMY_LENGTH): Remove.
5594 (CALL_DUMMY_START_OFFSET): Remove.
5595 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5596 (FIX_CALL_DUMMY): Remove.
5597 (PUSH_DUMMY_FRAME): Remove.
5598 (POP_FRAME): Remove.
5599
5600 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5601
5602 * parse.c (parse_fprintf): New function used to avoid calls to
5603 fprintf in bison parser generated debug code.
5604 * parser-defs.h: Declaration of new parse_fprintf function.
5605 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5606 Set YYDEBUG to 1 by default.
5607 Set YYFPRINTF as parse_fprintf.
5608
5609 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5610
5611 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5612 encoding anymore.
5613 (pointer_encoding, enum ptr_encoding): New.
5614 (execute_cfa_program): Take care about pointer encoding.
5615 (dwarf2_build_frame_info): Only call parse_frame_info for
5616 .debug_frame and .eh_frame.
5617 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5618 fixed augmentation handling, added relative addressing,
5619 ignore duplicate FDEs. Added comments.
5620 * dwarf2cfi.c: Reindented.
5621
5622 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5623
5624 * event-top.c (command_handler): Don't use space_at_cmd_start
5625 unless there is sbrk() on the host. Assign time and space data
5626 to union fields of the appropriate length.
5627
5628 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5629
5630 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5631 x86_64_register_name. Return type changed to 'const char *'.
5632 (x86_64_register_name2nr): Rename to x86_64_register_number.
5633 (x86_64_gdbarch_init): Update to reflect the change.
5634 * x86-64-tdep.h: Ditto.
5635 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5636 (supply_fpregset): Ditto.
5637
5638 2002-06-19 Andrew Cagney <cagney@redhat.com>
5639
5640 * regcache.h: Update copyright.
5641 (struct regcache, struct gdbarch): Add opaque declarations.
5642 (current_regcache): Declare global variable.
5643 (regcache_read, regcache_write): Add gdbarch parameter.
5644 (regcache_save, regcache_save_no_passthrough)
5645 (regcache_restore, regcache_restore_no_passthrough)
5646 (regcache_dup, regcache_dup_no_passthrough)
5647 (regcache_cpy, regcache_cpy_no_passthrough)
5648 (deprecated_grub_regcache_for_registers)
5649 (deprecated_grub_regcache_for_register_valid)
5650 (regcache_valid_p): Add function declarations.
5651
5652 * regcache.c: Update copyright.
5653 (regcache_descr_handle): New global variable.
5654 (struct regcache_descr): Define.
5655 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5656 (regcache_descr, xfree_regcache_descr): New functions.
5657 (struct regcache): Define.
5658 (regcache_xmalloc, regcache_xfree): New functions.
5659 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5660 (regcache_dup, regcache_dup_no_passthrough): New functions.
5661 (regcache_valid_p, regcache_read_as_address): New functions.
5662 (deprecated_grub_regcache_for_registers): New function.
5663 (deprecated_grub_regcache_for_register_valid): New function.
5664 (current_regcache): New global variable.
5665 (register_buffer): Add regcache parameter. Update calls.
5666 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5667 (read_register_gen, write_register_gen): Update register_buffer
5668 call. Test for legacy_p instead of gdbarch_register_read_p or
5669 gdbarch_register_write_p.
5670 (regcache_collect): Update register_buffer call.
5671 (build_regcache): Rewrite. Use deprecated grub functions.
5672 (regcache_save, regcache_save_no_passthrough): New functions.
5673 (regcache_restore, regcache_restore_no_passthrough): New
5674 functions.
5675 (_initialize_regcache): Create the regcache_data_handle. Swap
5676 current_regcache global variable.
5677
5678 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5679 parameter to regcache_read and regcache_write calls.
5680 (sh4_register_read): Ditto.
5681 (sh64_pseudo_register_read): Ditto.
5682 (sh64_register_read): Ditto.
5683 (sh_pseudo_register_write): Ditto.
5684 (sh4_register_write): Ditto.
5685 (sh64_pseudo_register_write): Ditto.
5686 (sh64_register_write): Ditto.
5687
5688 * defs.h (XCALLOC): Define.
5689
5690 2002-06-19 Grace Sainsbury <graces@redhat.com>
5691
5692 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5693 * m68k-tdep.c (m68k_gdbarch_init): Added.
5694 (m68k_dump_tdep): Added.
5695
5696 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5697
5698 * ada-lang.c (fill_in_ada_prototype): Update comment.
5699
5700 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5701
5702 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5703 MIPS_ABI_LAST.
5704 (mips_abi_string, mips_abi_strings): New.
5705 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5706 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5707 tdep->mips_abi_string. Honor mips_abi_string. Default to
5708 O32 if no ABI is found.
5709 (mips_dump_tdep): Use mips_abi_strings.
5710 (mips_abi_update): New function.
5711 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5712 ``set mips abi'' and ``show mips abi''. Check the size of
5713 mips_abi_strings.
5714
5715 2002-06-19 Andrew Cagney <cagney@redhat.com>
5716
5717 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5718 constant.
5719
5720 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5721
5722 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5723 current frame using only the first stack size adjustment. All
5724 subsequent size adjustments are not considered to be part of
5725 the "static" part of the current frame.
5726 Compute the address of the saved registers relative to the
5727 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5728 in use in this frame.
5729
5730 2002-06-18 Don Howard <dhoward@redhat.com>
5731
5732 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5733 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5734 suggesting this solution.
5735
5736 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5737
5738 * config/romp/xm-rtbsd.h: Delete file.
5739 * config/romp/rtbsd.mh: Delete file.
5740
5741 2002-06-18 Keith Seitz <keiths@redhat.com>
5742
5743 * breakpoint.c (condition_command): Post breakpoint_modify
5744 when a condition is added to an existing breakpoint.
5745 (commands_command): Likewise for commands.
5746 (set_ignore_count): Likewise for ignore counts.
5747 If no tty, do not simply return, still need to send event
5748 notification.
5749 (ignore_command): Only print a newline if the command came
5750 from a tty.
5751 Don't call breakpoints_changed, since this is now properly
5752 handled by set_ignore_count.
5753
5754 2002-06-18 Andrew Cagney <cagney@redhat.com>
5755
5756 * MAINTAINERS: Note that cris-elf target can be compiled with
5757 -Werror.
5758 * cris-tdep.c (cris_register_name): Make return type constant.
5759 (cris_breakpoint_from_pc): Ditto.
5760
5761 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5762
5763 * frame.h (struct frame_info): Change type of context to
5764 'struct context'.
5765
5766 2002-06-17 Andrew Cagney <cagney@redhat.com>
5767
5768 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5769 pointer.
5770 * gdbarch.h, gdbarch.c: Regenerate.
5771 * config/mips/tm-mips.h (mips_register_name): Update.
5772 * i386-tdep.h (i386_register_name): Update.
5773 * mips-tdep.c (mips_register_name): Update
5774 * alpha-tdep.c (alpha_register_name): Update.
5775 * arch-utils.c (legacy_register_name): Update.
5776 * arch-utils.h (legacy_register_name): Update.
5777 * avr-tdep.c (avr_register_name): Update.
5778 * ia64-tdep.c (ia64_register_name): Update.
5779 * i386-tdep.c (i386_register_name): Update.
5780 * sparc-tdep.c (sparc32_register_name): Update.
5781 (sparc64_register_name): Update.
5782 (sparclite_register_name): Update.
5783 (sparclet_register_name): Update.
5784 * sh-tdep.c (sh_generic_register_name): Update.
5785 (sh_sh_register_name): Update.
5786 (sh_sh3_register_name): Update.
5787 (sh_sh3e_register_name): Update.
5788 (sh_sh_dsp_register_name): Update.
5789 (sh_sh3_dsp_register_name): Update.
5790 (sh_sh4_register_name): Update.
5791 (sh_sh64_register_name): Update.
5792 * s390-tdep.c (s390_register_name): Update.
5793 * rs6000-tdep.c (rs6000_register_name): Update.
5794 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5795 (ns32k_register_name_32382): Update.
5796 * d10v-tdep.c (d10v_ts2_register_name): Update.
5797 (d10v_ts3_register_name): Update.
5798 * xstormy16-tdep.c (xstormy16_register_name): Update.
5799 * vax-tdep.c (vax_register_name): Update.
5800 * v850-tdep.c (v850_register_name): Update.
5801 * m68hc11-tdep.c (m68hc11_register_name): Update.
5802 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5803 (am33_register_name): Update.
5804
5805 2002-06-17 Grace Sainsbury <graces@redhat.com>
5806
5807 * m68k-tdep.c: Reindented.
5808
5809 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5810
5811 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5812 list of predefined types.
5813
5814 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5815
5816 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5817 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5818 REGISTER_CONVERT_TO_RAW): Remove defines.
5819 (i386_register_virtual_type, i386_register_convertible,
5820 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5821 Remove prototypes.
5822 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5823 macros mentioned above.
5824
5825 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5826 (i386lynx_saved_pc_after_call): Remove prototype.
5827 * i386ly-tdep.c: Include "i386-tdep.h".
5828 (i386lynx_saved_pc_after_call): Make static. Use
5829 read_memory_nobpt instead of read_memory. Use
5830 read_memory_unsigned_integer instead of read_memory_integer.
5831 (i386lynx_init_abi): New function.
5832 (i386lynx_coff_osabi_sniffer): New function.
5833 (_initialize_i386bsd_tdep): New function.
5834
5835 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5836 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5837 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5838 (i386_fix_call_dummy): Remove prototype.
5839 * i386-tdep.c (i386_call_dummy_words): New variable.
5840 (i386_gdbarch_init): Adjust for removal of the
5841 macros mentioned above.
5842
5843 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5844
5845 * command.h (add_setshow_auto_boolean_cmd): Replace
5846 add_set_auto_boolean_cmd.
5847 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5848 add_set_auto_boolean_cmd.
5849 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5850 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5851 mask-address'' command.
5852 (show_mask_address): Add cmd parameter.
5853 * remote.c (add_packet_config_cmd): Update. Change type of
5854 set_func and show_func to cmd_sfunc_ftype.
5855 (_initialize_remote): Update `set remote Z-packet'
5856 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5857 (show_remote_protocol_e_packet_cmd): Ditto.
5858 (show_remote_protocol_E_packet_cmd): Ditto.
5859 (show_remote_protocol_P_packet_cmd): Ditto.
5860 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5861 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5862 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5863 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5864 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5865 (show_remote_protocol_Z_packet_cmd): Ditto.
5866 (show_remote_protocol_binary_download_cmd): Ditto.
5867 (show_remote_cmd): Pass NULL to all of above.
5868
5869 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5870
5871 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5872 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5873 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5874 POP_FRAME): Remove defines.
5875 (i386_push_arguments, i386_store_struct_return,
5876 i386_extract_return_value, i386_store_return_value,
5877 i386_extract_struct_value_address, i386_push_dummy_frame,
5878 i386_pop_frame): Renove prototypes.
5879 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5880 macros mentioned above.
5881
5882 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5883
5884 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5885 add_set_boolean_cmd.
5886 (add_setshow_cmd): New function.
5887 * command.h (add_setshow_boolean_cmd): Replace
5888 add_set_boolean_cmd.
5889 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5890 and ``set rdiromatzero''.
5891 * maint.c (_initialize_maint_cmds): Update commented out code.
5892 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5893 * target.c (initialize_targets): Update `set
5894 trust-readonly-sections'.
5895 * remote.c (_initialize_remote): Update `set remotebreak'.
5896
5897 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5898
5899 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5900 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5901 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5902 fit into multi-arch framework.
5903 (i386_breakpoint_from_pc): New function.
5904 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5905 above.
5906
5907 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5908 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5909 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5910 (i386_frameless_function_invocation, i386_frame_num_args,
5911 i386_frame_init_saved_regs): Remove prototypes.
5912 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5913 macros mentioned above.
5914
5915 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5916
5917 * cli/cli-decode.c (set_cmd_cfunc): Update.
5918 (set_cmd_sfunc): Update.
5919 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5920 (set_cmd_sfunc, set_cmd_cfunc): Update.
5921 * cli/cli-decode.h: Update.
5922
5923 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5924
5925 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5926 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5927
5928 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5929
5930 * defs.h (auto_boolean): Declare enum.
5931 * command.h (cmd_auto_boolean): Delete enum.
5932 * mips-tdep.c (mask_address_var): Update.
5933 (mips_mask_address_p): Update.
5934 (show_mask_address): Update.
5935 * remote.c (struct packet_config): Update.
5936 (update_packet_config): Update.
5937 (show_packet_config_cmd): Update.
5938 (packet_ok): Update.
5939 (add_packet_config_cmd): Update.
5940 (_initialize_remote):
5941 * command.h: Update.
5942 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5943 (do_setshow_command): Update.
5944 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5945 * cli/cli-decode.h: Update.
5946
5947 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5948
5949 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5950 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5951 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5952 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5953 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5954 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5955
5956 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5957 list of DJGPP COFF targets.
5958
5959 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5960 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5961 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5962 (FP0_REGNUM): Remove define.
5963 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5964 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5965 (i386_register_virtual_size): Remove protoype.
5966 * i386-tdep.c (i386_register_virtual_size): Removed.
5967 (i386_extract_return_value, i386_store_return_value): Use
5968 FP0_REGNUM instead of NUM_FREGS to determine whether the
5969 floating-point registers are available.
5970 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5971 Adjust for removal of macros mentioned above.
5972
5973 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5974
5975 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5976 comments.
5977 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5978 Remove prototypes.
5979 (supply_gregset, fill_gregset): Remove use of register keyword and
5980 remove declaration for regmap. Use I386_NUM_GREGS instead of
5981 NUM_REGS and NUM_FREGS.
5982 (FPREGSET_FSAVE_OFFSET): Remove.
5983 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5984 NUM_FREGS to determine whether the floating-point registers are
5985 available.
5986
5987 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5988 gnu_store_registers): Replace usage of NUM_GREGS with
5989 I386_NUM_GREGS.
5990
5991 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5992 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5993 usage of NUM_GREGS with I386_NUM_GREGS.
5994
5995 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5996
5997 * i386bsd-nat.c: Include "i386-tdep.h".
5998 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5999 I386_NUM_GREGS.
6000
6001 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6002 and associated comment. They no longer make any sense, since we
6003 don't use this file anymore on Linux.
6004
6005 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6006 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6007 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6008 elements in these arrays.
6009 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6010 MAX_NUM_REGS.
6011
6012 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6013
6014 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6015 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6016
6017 2002-06-14 Andrew Cagney <cagney@redhat.com>
6018
6019 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6020 EXTRACT_RETURN_VALUE.
6021 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6022 EXTRACT_STRUCT_VALUE_ADDRESS.
6023 * gdbarch.h, gdbarch.c: Regenerate.
6024
6025 * values.c (value_being_returned): Handle
6026 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6027 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6028
6029 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6030 * arm-tdep.c (arm_gdbarch_init): Update.
6031 * avr-tdep.c (avr_gdbarch_init): Update.
6032 * cris-tdep.c (cris_gdbarch_init): Update.
6033 * d10v-tdep.c (d10v_gdbarch_init): Update.
6034 * ia64-tdep.c (ia64_gdbarch_init): Update.
6035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6036 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6037 * s390-tdep.c (s390_gdbarch_init): Update.
6038 * sh-tdep.c (sh_gdbarch_init): Update.
6039 * s390-tdep.c (s390_gdbarch_init): Update.
6040 * sparc-tdep.c (sparc_gdbarch_init): Update.
6041 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6042 * v850-tdep.c (v850_gdbarch_init): Update.
6043 * vax-tdep.c (vax_gdbarch_init): Update.
6044 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6046
6047 * config/arc/tm-arc.h: Update.
6048 * config/d30v/tm-d30v.h: Update.
6049 * config/fr30/tm-fr30.h: Update.
6050 * config/h8300/tm-h8300.h: Update.
6051 * config/h8500/tm-h8500.h: Update.
6052 * config/i386/tm-i386.h: Update.
6053 * config/i386/tm-ptx.h: Update.
6054 * config/i386/tm-symmetry.h: Update.
6055 * config/i960/tm-i960.h: Update.
6056 * config/m32r/tm-m32r.h: Update.
6057 * config/m68k/tm-delta68.h: Update.
6058 * config/m68k/tm-linux.h: Update.
6059 * config/m68k/tm-m68k.h: Update.
6060 * config/m88k/tm-m88k.h: Update.
6061 * config/mcore/tm-mcore.h: Update.
6062 * config/mips/tm-mips.h: Update.
6063 * config/mn10200/tm-mn10200.h: Update.
6064 * config/pa/tm-hppa.h: Update.
6065 * config/pa/tm-hppa64.h: Update.
6066 * config/sparc/tm-sp64.h: Update.
6067 * config/sparc/tm-sparc.h: Update.
6068 * config/sparc/tm-sparclet.h: Update.
6069 * config/z8k/tm-z8k.h: Update.
6070
6071 2002-06-14 Andrew Cagney <cagney@redhat.com>
6072
6073 * Makefile.in (i386_linux_tdep_h): Define.
6074 (i386_tdep_h, i387_tdep_h): Define.
6075 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6076 $(i386_tdep_h) and $(i387_tdep_h).
6077 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6078
6079 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6080
6081 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6082 Already covered by the default.
6083
6084 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6085 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6086 (i386_gdbarch_init): Initialize long_double_format and long_double
6087 bit.
6088
6089 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6090 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6091 Move these to ...
6092 * config/i386/i386sol2.mh: ... here.
6093 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6094 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6095 (SIGCONTEXT_PC_OFFSET): Remove define.
6096 (IN_SIGTRAMP): Remove define.
6097 * i386-sol2-tdep.c: New file.
6098
6099 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6100 * config/i386/tm-i386nw.h: Removed.
6101
6102 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6103 USE_STRUCT_CONVENTION): Remove defines.
6104 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6105 (get_longjmp_target): Remove prototype.
6106 (IN_SIGTRAMP): Remove define.
6107 (i386bsd_in_sigtramp): Remove prototype.
6108 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6109 function. Update comment accordingly
6110 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6111 (FRAME_SAVED_PC): Remove define.
6112 (i386bsd_frame_saved_pc): Remove prototype.
6113 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6114 GET_LONGJMP_TARGET): Remove defines.
6115 (get_longjmp_target): Remove prototype.
6116 (IN_SIGTRAMP): Remove define.
6117 (i386bsd_in_sigtramp): Remove prototype.
6118 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6119 function. Update comment accordingly
6120 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6121 (FRAME_SAVED_PC): Remove define.
6122 (i386bsd_frame_saved_pc): Remove prototype.
6123 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6124 Remove prototype.
6125 (USE_STRUCT_CONVENTION): Remove prototype.
6126 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6127 declaration.
6128 (_initialize_i386bsd_nat): Revise logic to determine some
6129 constants at compile time when compiling a native GDB. Warn if
6130 things don't match up with what we expect.
6131 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6132 Remove variables.
6133 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6134 to use date stored in `struct gdbarch_tdep'.
6135 (i386bsd_sigcontext_offset): Remove varaible.
6136 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6137 stored in `struct gdbarch_tdep'.
6138 (i386bsd_frame_saved_pc): Make static.
6139 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6140 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6141 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6142 i386fbsd4_sc_pc_offset): New variables.
6143 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6144 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6145 functions.
6146 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6147 functions.
6148 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6149 Modify the value of i386fbsd_sigtramp_start and
6150 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6151 i386fbsd_sigtramp_end.
6152 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6153 function.
6154
6155 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6156 define to i386-linux-tdep.h.
6157 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6158 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6159 defines.
6160 (i386_linux_register_name, i386_linux_register_byte,
6161 i386_linux_register_raw_size): Remove prototypes.
6162 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6163 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6164 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6165 TARGET_WRITE_PC): Remove defines.
6166 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6167 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6168 i386_linux_write_pc): Remove prototypes.
6169 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6170 (get_longjmp_target): Remove prototype.
6171 * i386-linux-tdep.h: New file.
6172 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6173 * i386-linux-tdep.c: Include "i386-tdep.h" and
6174 "i386-linux-tdep.h".
6175 (i386_linux_register_name, i386_linux_register_byte,
6176 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6177 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6178 Make static.
6179 (i386_linux_init_abi): New function.
6180 (_initialize_i386_linux_tdep): New function.
6181
6182 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6183 (i386_saved_pc_after_call): Remove prototype.
6184 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6185 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6186 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6187 (i386_register_name, i386_stab_reg_to_regnum,
6188 i386_dwarf_reg_to_regnum): Remove prototypes.
6189 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6190 SIZEOF_SSE_REGS): Remove defines.
6191 (REGISTER_BYTES): Remove define.
6192 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6193 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6194 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6195 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6196 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6197 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6198 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6199 (get_longjmp_target): Remove prototype.
6200 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6201 (sigtramp_saved_pc): Remove define.
6202 (i386v4_sigtramp_saved_pc): Remove prototype.
6203 * config/i386/tm-go32.h (FRAME_CHAIN,
6204 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6205 (i386go32_frame_saved_pc): Remove prototype.
6206 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6207 (get_longjmp_target): Remove prototype.
6208 * i386-tdep.h: Include "osabi.h".
6209 (enum i386_abi): Removed.
6210 (enum struct_return): New enum.
6211 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6212 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6213 sc_pc_offset members.
6214 (i386_gdbarch_register_os_abi): Remove prototype.
6215 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6216 I386_SSE_NUM_REGS): New defines.
6217 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6218 I386_SSE_SIZEOF_REGS): New defines.
6219 (i386_register_name, i386_register_byte, i386_register_raw_size):
6220 New prototypes.
6221 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6222 (i386bsd_sigtramp_saved_pc): New prototype.
6223 * i386-tdep.c: Don't include "elf-bfd.h".
6224 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6225 i386_frame_chain, i386_saved_pc_after_call): Make static.
6226 (i386_frame_saved_pc): Rewrite to call architecture dependent
6227 function to deal with signal handlers. Make static.
6228 (i386go32_frame_saved_pc): Removed.
6229 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6230 Removed.
6231 (i386_get_longjmp_target): New function.
6232 (default_struct_convention, pcc_struct_convention,
6233 reg_struct_convention, valid_conventions, struct_convention): New
6234 variables.
6235 (i386_use_struct_convention): New function.
6236 (i386v4_sigtramp_saved_pc): Renamed to
6237 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6238 (i386_pc_in_sigtramp): New function.
6239 (i386_abi_names): Removed.
6240 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6241 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6242 Removed.
6243 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6244 i386_gdbarch_register_os_abi): Removed.
6245 (struct i386_abi_handler): Removed.
6246 (i386_abi_handler_list): Removed.
6247 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6248 functions.
6249 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6250 i386_nw_init_abi): New functions.
6251 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6252 Use set_gdbarch_xxx() calls instead of relying on macros for a
6253 number of calls.
6254 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6255 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6256 Register the various architecture variants defined in this file.
6257
6258 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6259
6260 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6261 (struct main_type): Remove arg_types member. Update comments for
6262 struct field.
6263 (TYPE_ARG_TYPES): Remove.
6264 (TYPE_FN_FIELD_ARGS): Update.
6265 (smash_to_method_type): Update prototype.
6266
6267 * c-typeprint.c (cp_type_print_method_args): Take method type
6268 instead of argument list. Use new argument layout. Simplify.
6269 (c_type_print_args): Use new argument layout. Simplify.
6270 (c_type_print_base): Update call to cp_type_print_method_args.
6271 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6272 argument; use die->type instead. Update call to
6273 smash_to_method_type.
6274 (read_structure_scope): Update call to dwarf2_add_member_fn.
6275 * gdbtypes.c (allocate_stub_method): Update comment.
6276 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6277 Use new argument layout.
6278 (check_stub_method): Use new argument layout. Don't count
6279 void as an argument.
6280 (print_arg_types): Update comments. Use new argument layout.
6281 (recursive_dump_type): Don't print arg_types member.
6282 * hpread.c (hpread_read_struct_type): Use new argument layout.
6283 (fixup_class_method_type): Likewise.
6284 (hpread_type_lookup): Likewise.
6285 * stabsread.c (read_type): Update calls to read_args and
6286 smash_to_method_type.
6287 (read_args): Use new argument layout. Simplify.
6288 * valops.c (typecmp): Use new argument layout. Update parameters
6289 and comments. Simplify.
6290 (hand_function_call): Use new argument layout.
6291 (search_struct_method): Update call to typecmp.
6292 (find_overload_match): Use new argument layout.
6293
6294 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6295
6296 * NEWS: Mention multithreaded debug support for gdbserver.
6297
6298 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6299
6300 * MAINTAINERS: Mention NEWS.
6301
6302 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6303
6304 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6305 (struct mips_objfile_private, compare_pdr_entries): New.
6306 (non_heuristic_proc_desc): Read the ".pdr" section if it
6307 is present.
6308
6309 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6310
6311 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6312 (arm_debug): New static variable.
6313 (_initialize_arm_tdep): Add ``set debug arm'' command.
6314
6315 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6316
6317 * Makefile.in (sim_arm_h): Define.
6318 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6319 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6320 (arm_register_sim_regno): New function, map an internal REGNUM
6321 onto a simulator register number.
6322 (arm_gdbarch_init): Set register_sim_regno.
6323
6324 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6325
6326 * MAINTAINERS: Add self.
6327
6328 2002-06-11 Jim Blandy <jimb@redhat.com>
6329
6330 * source.c (source_info): Mention whether the symtab has
6331 information about preprocessor macros.
6332
6333 Call the command `info macro', not `show macro'.
6334 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6335 Fix error message.
6336 (_initialize_macrocmd): Register `info_macro_command' in
6337 `infolist', not `showlist'.
6338
6339 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6340
6341 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6342 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6343 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6344 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6345 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6346 unconditionally.
6347 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6348 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6349 (_initialize_mips_tdep): Remove dead code.
6350 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6351 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6352 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6353 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6354 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6355 MIPS_LAST_FP_ARG_REGNUM): Remove.
6356
6357 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6358
6359 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6360 (unwind_tmp_obstack_free, parse_frame_info)
6361 (update_context, cfi_read_fp, cfi_write_fp)
6362 (cfi_frame_chain, cfi_init_extra_frame_info)
6363 (cfi_virtual_frame_pointer): Use the above function.
6364 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6365
6366 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6367
6368 * v850-tdep.c (v850_type_is_scalar): New function.
6369 (v850_use_struct_convention): Match current gcc implementation
6370 as close as possible.
6371 (v850_push_arguments): Fix stack_offset handling. Don't write
6372 struct_addr into register. This is done by v850_store_struct_return.
6373 (v850_extract_return_value): Care for structs.
6374 (v850_store_return_value): Ditto.
6375 (v850_store_struct_return): Actually write address.
6376
6377 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6378
6379 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6380 without debug information too.
6381
6382 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6383
6384 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6385 Make multi-arch pure.
6386 * gdbarch.h, gdbarch.c: Re-generate.
6387 * arm-tdep.c (arm_print_float_info): Update.
6388 * arch-utils.h (default_print_float_info): Update.
6389 * arch-utils.c (default_print_float_info): Update.
6390 * infcmd.c (float_info): Update call.
6391
6392 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6393
6394 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6395 the front of the initialize list.
6396
6397 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6398
6399 * infrun.c (struct inferior_status): Replace fields
6400 selected_frame_address and selected_level with field
6401 selected_frame_id.
6402 (save_inferior_status): Update. Use get_frame_id.
6403 (struct restore_selected_frame_args): Delete.
6404 (restore_selected_frame): Update. Use frame_find_by_id.
6405 (restore_inferior_status): Update.
6406
6407 * breakpoint.h (struct breakpoint): Change type of
6408 watchpoint_frame to frame_id.
6409 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6410 call to get_current_frame.
6411 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6412 get_current_frame.
6413 (watchpoint_check): Use frame_find_by_id.
6414
6415 * frame.h (record_selected_frame): Delete declaration.
6416 * stack.c (record_selected_frame): Delete function.
6417
6418 * frame.h (struct frame_id): Define.
6419 (get_frame_id): Declare.
6420 (frame_find_by_id): Declare.
6421 * frame.c (frame_find_by_id): New function.
6422 (get_frame_id): New function.
6423
6424 2002-06-10 Andrey Volkov <avolkov@transas.com>
6425
6426 * ser-e7kpc.c: Fix duplicated define and call of
6427 _initialize_ser_e7000pc
6428
6429 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6430
6431 * signals/signals.c (target_signal_from_host): Fix #ifdef
6432 SIGRTMIN case.
6433 (do_target_signal_to_host): Likewise.
6434
6435 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * mips-tdep.c (mips_find_abi_section): New function.
6438 (mips_gdbarch_init): Call it.
6439
6440 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6441
6442 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6443 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6444 after Andrew's 2002-06-08 gdbarch change.
6445
6446 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6447
6448 * i386-linux-nat.c (suppy_gregset): Don't supply
6449 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6450 register cache.
6451 (fill_gregset): Don't fetch it under the same circumstances.
6452
6453 2002-06-09 Andrew Cagney <cagney@redhat.com>
6454
6455 * Makefile.in (callback_h): Define.
6456 (remote_sim_h): Update path to remote-sim.h.
6457 (remote-rdp.o): Add $(callback_h).
6458 (remote-sim.o): Use $(callback_h).
6459 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6460 * remote-rdp.c: Include "gdb/callback.h".
6461
6462 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6463
6464 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6465 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6466
6467 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6468
6469 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6470 * rdi-share/serpardr.c: Ditto.
6471 * rdi-share/unixcomm.c: Ditto.
6472 * rdi-share/serdrv.c: Ditto.
6473 * rdi-share/hostchan.h: Ditto.
6474 * rdi-share/hostchan.c: Ditto.
6475 * rdi-share/host.h: Ditto.
6476 * rdi-share/devsw.c: Ditto.
6477
6478 * objfiles.h: Change type of obj_private to void pointer.
6479 * pa64solib.c: Update copyright. Don't include "assert.h", use
6480 strcmp instead of STREQ, use LONGEST, do not use PTR
6481 * somsolib.c: Ditto.
6482
6483 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6484 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6485 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6486
6487 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6488
6489 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6490 (default_get_saved_register): Delete function.
6491 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6492 generic_unwind_get_saved_register.
6493 * gdbarch.h, gdbarch.c: Re-generate.
6494
6495 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6496
6497 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6498 generic_func_frame_chain_valid.
6499 * gdbarch.h, gdbarch.c: Re-generate.
6500 * blockframe.c (generic_func_frame_chain_valid): Only check
6501 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6502 passing FP to PC_IN_CALL_DUMMY.
6503 Fix PR gdb/360.
6504
6505 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6506
6507 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6508 (register_gdbarch_data): Initialize init_p.
6509 (gdbarch_data): Initialize data pointer using the init function.
6510 (init_gdbarch_data): Delete function.
6511 (gdbarch_update_p): Update.
6512 (initialize_non_multiarch): Update.
6513 (struct gdbarch): Add field initialized_p.
6514 * gdbarch.h, gdbarch.c: Re-generate.
6515
6516 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6517
6518 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6519 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6520 better do the things actually here.
6521 * x86-64-tdep.c (x86_64_register_name2nr): New.
6522 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6523 (x86_64_gdbarch_init): Respect the above change.
6524 * x86-64-tdep.h (x86_64_register_name2nr)
6525 (x86_64_register_nr2name): Add prototypes.
6526 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6527
6528 2002-06-06 Michael Snyder <msnyder@redhat.com>
6529
6530 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6531 Delete extra braces and re-indent.
6532 (d10v_store_return_value): Char return values
6533 must be shifted over by one byte in R0.
6534 (d10v_extract_return_value): Delete extra braces, re-indent.
6535
6536 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6537
6538 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6539 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6540 (d10v_integer_to_address): Rewrite.
6541 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6542 the d10v specific functions which take care of converting to the
6543 correct space.
6544
6545 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6546
6547 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6548 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6549
6550 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6551
6552 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6553 includes.
6554 * config/tm-linux.h: Ditto.
6555 * config/alpha/tm-alphalinux.h: Ditto.
6556 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6557 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6558 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6559 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6560 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6561 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6562 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6563 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6564 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6565 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6566 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6567 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6568 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6569 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6570 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6571 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6572 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6573 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6574 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6575 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6576 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6577 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6578 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6579 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6580 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6581 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6582 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6583 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6584 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6585 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6586 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6587 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6588 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6589 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6590 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6591 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6592 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6593
6594 2002-05-04 Aidan Skinner <aidan@velvet.net>
6595
6596 * ada-exp.tab.c: New file
6597 * ada-exp.y: New file
6598 * ada-lang.c: New file
6599 * ada-lang.h: New file
6600 * ada-lex.c: New file
6601 * ada-lex.l: New file
6602 * ada-tasks.c: New file
6603 * ada-typeprint.c: New file
6604 * ada-valprint.c: New file
6605
6606 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6607
6608 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6609 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6610
6611 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6614 insetead of ppc-linux-tdep.o.
6615 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6616 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6617
6618 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6619
6620 2002-05-07 Christian Groessler <chris@groessler.org>
6621 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6622 bit register contents for little endian hosts.
6623
6624 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6625
6626 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6627 any maintainer.
6628
6629 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6630
6631 * gdbarch.h: Regenerate.
6632
6633 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6634
6635 * MAINTAINERS: Add everyone to write-after-approval list.
6636
6637 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6638
6639 * stack.c (frame_info): Use frame_register_unwind instead of
6640 saved_regs. Mention when the SP is on the stack or in a register.
6641
6642 * frame.h (frame_register_unwind_ftype): Define. Document.
6643 (struct frame_info): Add field register_unwind and
6644 register_unwind_cache.
6645 (frame_register_unwind): Declare.
6646 (generic_unwind_get_saved_register): Declare.
6647
6648 * frame.c (frame_register_unwind): New function.
6649 (generic_unwind_get_saved_register): New function.
6650
6651 * blockframe.c (generic_call_dummy_register_unwind): New function.
6652 (frame_saved_regs_register_unwind): New function.
6653 (set_unwind_by_pc): New function.
6654 (create_new_frame): New function.
6655 (get_prev_frame): New function.
6656
6657 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6658
6659 * a29k-share/: Delete directory.
6660 * remote-vx29k.c: Delete file.
6661
6662 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6663
6664 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6665 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6666
6667 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6668
6669 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6670 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6671 (sparc64nbsd-nat.o)
6672 (sparcnbsd-nat.o)
6673 (sparcnbsd-tdep.o): New dependency lists.
6674 * NEWS: Note new UltraSPARC NetBSD native configuration.
6675 * configure.host (sparc64-*-netbsd*): New host.
6676 * configure.tgt (sparc-*-netbsdelf*)
6677 (sparc-*-netbsd*): Set gdb_target to nbsd.
6678 (sparc64-*-netbsd*): New target.
6679 * sparc64nbsd-nat.c: New file.
6680 * sparcnbsd-nat.c: New file.
6681 * sparcnbsd-tdep.c: New file.
6682 * sparcnbsd-tdep.h: New file.
6683 * config/sparc/nbsd.mt: New file.
6684 * config/sparc/nbsd64.mh: New file.
6685 * config/sparc/nbsd64.mt: New file.
6686 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6687 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6688 (HOST_IPC): Remove.
6689 * config/sparc/nbsdaout.mt: Remove.
6690 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6691 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6692 (HOST_IPC): Remove.
6693 * config/sparc/nbsdelf.mt: Remove.
6694 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6695 sparc-nat.c compatiblity defines.
6696 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6697 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6698 * config/sparc/tm-nbsd64.h: New file.
6699 * config/sparc/tm-nbsdaout.h: Remove.
6700 * config/sparc/xm-nbsd.h: Remove.
6701
6702 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6705 * sparc-tdep.c: Include osabi.h.
6706 (gdbarch_tdep): Add osabi member.
6707 (_initialize_sparc_tdep): Use gdbarch_register.
6708 (sparc_gdbarch_init): Use generic OS ABI framework.
6709 (sparc_dump_tdep): New function.
6710
6711 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6712
6713 * corefile.c (do_captured_read_memory_integer): Return non-zero
6714 result.
6715 (safe_read_memory_integer): Copy result of memory read when
6716 status is non-zero. Also, add comments.
6717
6718 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6719
6720 * Makefile.in (ppc_tdep_h): Define.
6721 (ppc-linux-nat.o)
6722 (ppc-linux-tdep.o)
6723 (rs6000-tdep.o): Use $(ppc_tdep_h).
6724 (ppc-sysv-tdep.o)
6725 (ppcnbsd-nat.o)
6726 (ppcnbsd-tdep.o): New dependency lists.
6727 * ppc-tdep.h: Use generic OS ABI framework.
6728 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6729 (ppc_linux_init_abi): New functions.
6730 (ppc_sysv_abi_broken_use_struct_convention)
6731 (ppc_sysv_abi_use_struct_convention)
6732 (ppc_sysv_abi_push_arguments): Move to...
6733 * ppc-sysv-tdep.c: ...here.
6734 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6735 * rs6000-tdep.c (process_note_abi_tag_sections)
6736 (get_elfosabi): Remove.
6737 (rs6000_gdbarch_init): Use generic OS ABI framework.
6738 (rs6000_dump_tdep): New function.
6739 (_initialize_rs6000_tdep): Use gdbarch_register.
6740 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6741 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6742 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6743 of ppc-linux-tdep.o.
6744 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6745 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6746 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6747 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6748 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6749 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6750
6751 2002-05-29 Jim Blandy <jimb@redhat.com>
6752
6753 * macroscope.c (default_macro_scope): Put `void' in empty argument
6754 list.
6755
6756 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6757
6758 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6759 * arch-utils.c: Include "sim-regno.h".
6760 * gdbarch.sh: Don't include "sim-regno.h".
6761 * gdbarch.h, gdbarch.c: Regenerate.
6762 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6763 here.
6764 * arch-utils.h (legacy_register_sim_regno): To here.
6765 * remote-sim.c (legacy_register_sim_regno): Move function from
6766 here.
6767 * arch-utils.c (legacy_register_sim_regno): To here.
6768
6769 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6770
6771 * sim-regno.h: New file.
6772 * Makefile.in (sim_regno_h): Define.
6773 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6774 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6775 (legacy_register_sim_regno): New function.
6776 (one2one_register_sim_regno): New function.
6777 (gdbsim_fetch_register): Rewrite.
6778 (gdbsim_store_register): Only store a register when
6779 REGISTER_SIM_REGNO is valid.
6780 * d10v-tdep.c: Include "sim-regno.h".
6781 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6782 (d10v_ts3_register_sim_regno): Ditto.
6783 * gdbarch.sh: Include "sim-regno.h".
6784 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6785 * gdbarch.h, gdbarch.c: Regenerate.
6786 * arch-utils.h (default_register_sim_regno): Delete declaration.
6787 * arch-utils.c (default_register_sim_regno): Delete function.
6788
6789 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6790
6791 * ppcnbsd-nat.c: Rewrite.
6792 * ppcnbsd-tdep.c: New file.
6793 * ppcnbsd-tdep.h: New file.
6794 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6795 solib.o, and solib-svr4.o.
6796 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6797 nbsd-tdep.o, and corelow.o.
6798
6799 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6800
6801 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6802 `tr' and `sed'. Mention that `broken' targets are not expected to
6803 build.
6804
6805 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6806
6807 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6808 Let PC point right after the prologue before looking up symbols.
6809
6810 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6811
6812 * i386-tdep.c (i386_register_virtual_type): Return
6813 builtin_type_vec128i for SSE registers.
6814
6815 * gdbtypes.h (builtin_type_vec128i): Declare.
6816
6817 * gdbtypes.c (build_builtin_type_vec128i): New function.
6818 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6819 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6820 (build_gdbtypes): Initialize new builtin vector types.
6821 (_initialize_gdbtypes): Register new vector types with gdbarch.
6822
6823 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6824
6825 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6826 since it has been multi-arch'd.
6827 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6828 Move Alpha and VAX multi-arch news entries to same section
6829 as other multi-arch news.
6830
6831 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6832
6833 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6834 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6835 static. Rename some register numbers to put them in ns32k-tdep
6836 private namespace.
6837 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6838 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6839 functions.
6840 (_initialize_ns32k_tdep): Use gdbarch_register.
6841 * ns32k-tdep.h: New file.
6842 * ns32knbsd-tdep.c: New file.
6843 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6844 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6845 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6846 REGISTER_BYTES, REGISTER_BYTE): Remove.
6847 * config/ns32k/tm-ns32k.h: New file.
6848 * config/ns32k/tm-umax.h: Remove.
6849
6850 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6851
6852 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6853 ns32k_store_struct_return, ns32k_extract_return_value,
6854 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6855 functions.
6856 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6857 ns32k_saved_pc_after_call.
6858 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6859 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6860 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6861 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6862 ns32k_extract_struct_value_address.
6863
6864 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6867 ns32k_fix_call_dummy): New.
6868 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6869 ns32k_call_dummy_words.
6870 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6871 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6872 CALL_DUMMY_NARGS): Remove.
6873 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6874
6875 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6876
6877 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6878 ns32k_frame_saved_pc, ns32k_frame_args_address,
6879 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6880 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6881 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6882 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6883 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6884 (BREAKPOINT): Remove..
6885 (FRAME_CHAIN): Define as ns32k_frame_chain.
6886 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6887 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6888 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6889 (FRAME_FIND_SAVED_REGS): Remove.
6890 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6891 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6892 (POP_FRAME): Define as ns32k_pop_frame.
6893
6894 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6895
6896 * ns32k-tdep.c (ns32k_register_byte_32082,
6897 ns32k_register_byte_32382, ns32k_register_raw_size,
6898 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6899 functions.
6900 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6901 ns32k_register_byte_32382.
6902 * config/ns32k/tm-umax.h: Update copyright years.
6903 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6904 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6905 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6906 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6907 (ns32k_get_enter_addr): Fix prototype.
6908
6909 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6910
6911 * ns32k-tdep.c: Update copyright years.
6912 (ns32k_register_name_32082): New function.
6913 (ns32k_register_name_32382): Ditto.
6914 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6915 (REGISTER_NAME): Define as ns32k_register_name_32382.
6916 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6917 (REGISTER_NAME): Define as ns32k_register_name_32082.
6918
6919 2002-05-24 Jim Blandy <jimb@redhat.com>
6920
6921 * dwarf2read.c (free_line_header): Use xfree, not free.
6922
6923 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6924
6925 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6926 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6927
6928 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6929
6930 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6931
6932 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6933
6934 From Ross Alexander at NEC Europe:
6935 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6936
6937 2002-05-23 Michael Snyder <msnyder@redhat.com>
6938
6939 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6940 for input, rather than parse_and_eval_address.
6941
6942 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6943
6944 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6945 * Makefile.in (sim_d10v_h): Update definition.
6946
6947 2002-05-24 Andrew Cagney <cagney@redhat.com>
6948
6949 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6950 change `2002-05-22 Michael Snyder' below.
6951 (d10v_push_arguments): Ditto.
6952 (d10v_extract_return_value): Ditto.
6953
6954 2002-05-23 Jim Blandy <jimb@redhat.com>
6955
6956 * macrotab.c (check_for_redefinition): Don't complain if the new
6957 definition is the same as the previous one. Take more arguments
6958 to allow the comparison.
6959 (macro_define_object, macro_define_function): Pass more arguments
6960 to check_for_redefinition.
6961
6962 2002-05-22 Michael Snyder <msnyder@redhat.com>
6963
6964 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6965 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6966 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6967 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6968 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6969 Add a temp variable to save a call (and a memory read).
6970 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6971 if possible (so that PC_IN_CALL_DUMMY will work).
6972
6973 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6974
6975 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6976
6977 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6978
6979 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6980 fde->cie_ptr.
6981 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6982 (dwarf2_build_frame_info): Add offset to fde->initial_location
6983 so that frames of shared libraries are mapped correctly.
6984 (execute_stack_op): Change type of 'result' from ULONGEST to
6985 CORE_ADDR.
6986
6987 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6988
6989 * config/alpha/tm-nbsd.h: Include solib.h.
6990
6991 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6992
6993 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6994 assumptions about the host's byte order.
6995
6996 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6999 to dependency list.
7000 * alphanbsd-tdep.c: Include solib-svr4.h.
7001 * shnbsd-tdep.c: Ditto.
7002
7003 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7004
7005 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7006 nbsd-tdep.h to dependency list.
7007 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7008 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7009 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7010 nbsdaout.mh and nbsdelf.mh consistently.
7011 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7012 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7013 nbsdaout.mt and nbsdelf.mh consistently.
7014 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7015 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7016 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7017 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7018 a.out shared library stuff from here...
7019 * config/nm-nbsdaout.h: ...to here.
7020 * config/tm-nbsd.h: Remove.
7021 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7022 * config/arm/nbsd.mh: Remove.
7023 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7024 nbsd-tdep.o.
7025 * config/arm/nbsdaout.mh: New file.
7026 * config/arm/nbsdelf.mh: New file.
7027 * config/arm/nm-nbsdaout.h: New file.
7028 * config/i386/nbsd.mh: Remove.
7029 * config/i386/nbsd.mt: Remove.
7030 * config/i386/nbsdaout.mh: New file.
7031 * config/i386/nbsdaout.mt: New file.
7032 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7033 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7034 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7035 i386_register_u_addr): Remove.
7036 * config/i386/nm-nbsdaout.h: New file.
7037 * config/i386/nm-nbsdelf.h: Remove.
7038 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7039 (USE_STRUCT_CONVENTION): Remove.
7040 * config/i386/tm-nbsdaout.h: New file.
7041 * config/i386/tm-nbsdelf.h: Remove.
7042 * config/m68k/nbsd.mh: Remove.
7043 * config/m68k/nbsd.mt: Remove.
7044 * config/m68k/nbsdaout.mh: New file.
7045 * config/m68k/nbsdaout.mt: New file.
7046 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7047 * config/m68k/nm-nbsdaout.h: New file.
7048 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7049 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7050 * config/ns32k/nbsd.mh: Remove.
7051 * config/ns32k/nbsd.mt: Remove.
7052 * config/ns32k/nbsdaout.mh: New file.
7053 * config/ns32k/nbsdaout.mt: New file.
7054 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7055 * config/ns32k/nm-nbsdaout.h: New file.
7056 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7057 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7058 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7059 (SVR4_SHARED_LIBS): Remove.
7060 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7061 * config/sparc/nbsd.mh: Remove.
7062 * config/sparc/nbsd.mt: Remove.
7063 * config/sparc/nbsdaout.mh: New file.
7064 * config/sparc/nbsdaout.mt: New file.
7065 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7066 * config/sparc/nbsdelf.mt: New file.
7067 * config/sparc/nm-nbsdaout.h: New file.
7068 * config/sparc/nm-nbsdelf.h: Remove.
7069 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7070 * config/sparc/tm-nbsdaout.h: New file.
7071
7072 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7073
7074 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7075 mipsnbsd-tdep.c
7076 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7077
7078 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7079
7080 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7081 shnbsd-nat.c.
7082 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7083
7084 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * NEWS: Note new MIPS NetBSD native configuration.
7087 * configure.host (mips*-*-netbsd*): New host.
7088 * configure.tgt (mips*-*-netbsd*): New target.
7089 * mipsnbsd-nat.c: New file.
7090 * mipsnbsd-tdep.c: New file.
7091 * mipsnbsd-tdep.h: New file.
7092 * config/mips/nbsd.mh: New file.
7093 * config/mips/nbsd.mt: New file.
7094 * config/mips/nm-nbsd.h: New file.
7095 * config/mips/tm-nbsd.h: New file.
7096
7097 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * Makefile.in (SFILES): Add osabi.c.
7100 (COMMON_OBS): Add osabi.o.
7101 (osabi.o): New dependency list.
7102 * osabi.c: New file.
7103 * osabi.h: New file.
7104 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7105
7106 * Makefile.in (alpha_tdep_h): Define and use instead of
7107 alpha-tdep.h.
7108 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7109 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7110 Remove.
7111 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7112 * alpha-tdep.h: Include osabi.h.
7113 (alpha_abi): Remove.
7114 (gdbarch_tdep): Use generic OS ABI framework.
7115 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7116 gdbarch_register_osabi.
7117 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7118 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7119 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7120
7121 * Makefile.in (sh_tdep_h): Add osabi.h.
7122 * sh-tdep.h (sh_osabi): Remove.
7123 (gdbarch_tdep): Use generic OS ABI framework.
7124 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7125 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7126 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7127 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7128
7129 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7130 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7131 gdbarch_register_osabi.
7132 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7133 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7134 (get_elfosabi): Rename to...
7135 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7136 ABI framework support routines.
7137 (arm_gdbarch_init): Use generic OS ABI framework.
7138 (arm_dump_tdep): Likewise.
7139 (_initialize_arm_tdep): Likewise.
7140 * arm-tdep.h: Include osabi.h.
7141 (arm_abi): Remove.
7142 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7143 osabi member.
7144 (arm_gdbarch_register_os_abi): Remove prototype.
7145 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7146 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7147
7148 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7149 * mips-tdep.c: Include osabi.h.
7150 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7151 OS ABI framework.
7152
7153 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7154
7155 * h8300-tdep.c: Fix formatting.
7156
7157 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7158
7159 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7160 printing vector registers.
7161
7162 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7163
7164 From Fernando Nasser:
7165 * remote.c (remote_async_open_1): Re-throw the exception when the
7166 connection fails.
7167 (remote_cisco_open): Ditto.
7168 (remote_open_1): Ditto.
7169
7170 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7171
7172 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7173 (remote_start_remote): Add uiout parameter. Pass through to
7174 remote_start_remote_dummy.
7175 (remote_open_1): Use catch_exception instead of catch_errors.
7176 (remote_async_open_1): Ditto.
7177 (remote_cisco_open): Ditto.
7178
7179 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7180
7181 * remote.c (remote_start_remote): Replace PTR with void pointer.
7182 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7183 static.
7184
7185 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7186
7187 * gdb_indent.sh: Allow the script to be run in the sim directory.
7188
7189 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7190
7191 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7192 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7193
7194 * corelow.c (core_open): Only call set_gdbarch_from_file if
7195 exec_bfd is NULL.
7196
7197 2002-05-17 Andrey Volkov <avolkov@transas.com>
7198
7199 * h8300-tdep.c: Add support of EXR register
7200 * config/h8300/tm-h8300.h: Ditto.
7201
7202 2002-05-17 Andrey Volkov <avolkov@transas.com>
7203
7204 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7205
7206 2002-05-17 Andrey Volkov <avolkov@transas.com>
7207
7208 * h8300-tdep.c: Change literal regnums to REGNO.
7209
7210 2002-05-17 Jim Blandy <jimb@redhat.com>
7211
7212 * NEWS: Note addition of macro support.
7213
7214 Expand preprocessor macros in C expressions.
7215 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7216 (scan_macro_expansion, scanning_macro_expansion,
7217 finished_macro_expansion): New function declarations.
7218 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7219 variable declarations.
7220 * parser-defs.h (expression_context_pc): New declaration.
7221 * parse.c (expression_context_pc): New variable.
7222 (parse_exp_1): Set expression_context_pc, as well as
7223 expression_context_block.
7224 * c-exp.y (yylex): If we're not already reading the result of a
7225 macro expansion, try to macro-expand the next token. When we're
7226 done scanning a macro expansion, switch back to the mainline text.
7227 Commas and `if's in a macro's expansion don't terminate the input.
7228 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7229 (macro_original_text, macro_expanded_text,
7230 expression_macro_lookup_func, expression_macro_lookup_baton): New
7231 variables.
7232 (scan_macro_expansion, scanning_macro_expansion,
7233 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7234 c_preprocess_and_parse): New functions.
7235 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7236 c_preprocess_and_parse, instead of c_parse.
7237 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7238 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7239
7240 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7241
7242 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7243 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7244 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7245
7246 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7247
7248 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7249
7250 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * Makefile.in (sh_tdep_h): Define and use.
7253 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7254 register enum): Move to...
7255 * * sh-tdep.h: ...here.
7256 * sh-tdep.c: Include sh-tdep.h.
7257 * sh3-rom.c: Likewise.
7258 * shnbsd-tdep.c: Likewise.
7259
7260 2002-05-16 Michael Snyder <msnyder@redhat.com>
7261
7262 * arm-tdep.c: Spelling fix in comment.
7263
7264 2002-05-16 Jim Blandy <jimb@redhat.com>
7265
7266 Add commands for manually expanding macros and showing their
7267 definitions.
7268 * macrocmd.c, macroscope.c, macroscope.h: New files.
7269 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7270 (macroscope_h): New variable.
7271 (HFILES_NO_SRCDIR): Add macroscope.h.
7272 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7273 (macroscope.o, macrocmd.o): New rules.
7274
7275 Teach the Dwarf 2 reader to read macro information.
7276 * dwarf2read.c: #include "macrotab.h".
7277 (dwarf_macinfo_buffer): New variable.
7278 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7279 dwarf_macinfo_size.
7280 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7281 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7282 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7283 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7284 dwarf2_macro_spaces_in_definition): New complaints.
7285 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7286 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7287 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7288 the partial symbol table.
7289 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7290 from what's recorded in the partial symbol table.
7291 (read_file_scope): If the compilation unit has a
7292 `DW_AT_macro_info' attribute, read its macro information.
7293 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7294
7295 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7296
7297 Fix PR gdb/546
7298 * ser-tcp.c: Don't include <netinet/udp.h>.
7299
7300 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7301
7302 * MAINTAINERS: Update my email address.
7303
7304 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7305
7306 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7307 include file of the same name.
7308
7309 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7310
7311 * configure.tgt: Mark v850 as multi-arched.
7312 * config/v850/tm-v850.h: Remove file.
7313 * config/v850/v850.mt: Eliminate TM_FILE.
7314
7315 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7316
7317 * v850-tdep.c: Full multi-arch.
7318 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7319 Define GDB_MULTI_ARCH to 2.
7320
7321 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7322
7323 * p-exp.y (current_type): New static variable.
7324 Carries the type of the expression at the position that is parsed.
7325 (push_current_type, pop_current_type): Two new functions. Used
7326 to store/restore current_type in expression on specific tokens.
7327 (search_field): New static variable. Set to one after parsing a point
7328 as at that point only a FIELDNAME token should be searched.
7329 (FIELDNAME): New token. After a point only a token belonging to
7330 current_type type definition is allowed.
7331 (all over token rules): reset and change current_type according
7332 to rules.
7333 (exp '[' rule): insert implicit array index field if
7334 exp is a pascal string type.
7335
7336 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7337
7338 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7339 frame info. Use frame_info's saved_regs instead of matching member
7340 in extra_frame_info throughout.
7341 (v850_frame_init_saved_regs): New function.
7342 (v850_init_extra_frame_info): Move most functionality into
7343 v850_frame_init_saved_regs().
7344 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7345 (v850_frame_find_saved_regs): Remove declaration.
7346 (FRAME_FIND_SAVED_REGS): Remove definition.
7347 (v850_frame_init_saved_regs): Add declaration.
7348 (FRAME_INIT_SAVED_REGS): Add definition.
7349
7350 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7351
7352 * v850-tdep.c: Begin multi-arch'ing v850.
7353 (v850_target_architecture_hook): Remove function.
7354 (v850_gdbarch_init): New function. Add code previously in
7355 v850_target_architecture_hook().
7356 (_initialize_v850_tdep): Don't set target_architecture_hook.
7357 Call register_gdbarch_init() instead.
7358
7359 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7360
7361 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7362 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7363 (fixup_class_method_type): Likewise.
7364
7365 2002-05-15 Jim Blandy <jimb@redhat.com>
7366
7367 Add macro structures to GDB's symbol tables. Nobody puts anything
7368 in them yet.
7369 * symtab.h (struct symtab): New member: `macro_table'.
7370 * buildsym.h (pending_macros): New global variable.
7371 * buildsym.c: #include "macrotab.h".
7372 (buildsym_init): Initialize `pending_macros'.
7373 (end_symtab): If we found macro information while reading a CU's
7374 debugging info, do build a symtab structure for it. Make the
7375 symtab point to the macro information, and clear the
7376 `pending_macros' pointer which held it while we were reading the
7377 debug info.
7378 (really_free_pendings): Free any pending macro table.
7379 * objfiles.h (struct objfile): New member: `macro_cache'.
7380 * objfiles.c (allocate_objfile): Set allocate and free functions
7381 for the macro cache's objstack.
7382 (free_objfile): Empty the macro cache's obstack.
7383 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7384 set new allocate and free functions for it.
7385 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7386 free functions for the macro cache's objstack. (Why is this
7387 function building its own objfile?)
7388 * symmisc.c (print_objfile_statistics): Print statistics on the
7389 macro bcache.
7390 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7391
7392 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7393
7394 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7395 (REGISTER_U_ADDR): Delete definition.
7396 (arm_register_u_addr): Delete declaration.
7397
7398 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7399
7400 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7401 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7402
7403 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7404
7405 * regcache.c (register_valid): Revise comments refering to "Not
7406 available" and "unavailable".
7407 * frame.c (frame_register_read): Ditto.
7408 * findvar.c (value_of_register): Ditto.
7409
7410 2002-05-15 Andrew Cagney <cagney@redhat.com>
7411
7412 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7413 (remote-sim.o): Update dependencies.
7414 (d10v-tdep.o): Specify dependencies.
7415 (sim_d10v_h): Define.
7416
7417 2002-05-14 Jim Blandy <jimb@redhat.com>
7418
7419 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7420 * macrotab.c (macro_lookup_inclusion, find_definition,
7421 new_macro_table): Same.
7422
7423 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7424 not `! strcmp ()'. This is a dubious improvement.
7425 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7426
7427 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7428 although it's not necessary, to avoid a warning.
7429
7430 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7431
7432 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7433 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7434 TYPE_INSTANCE_FLAGS.
7435 (struct main_type): New.
7436 (struct type): Move most members to struct main_type. Change
7437 cv_type and as_type to new type_chain member. Add instance_flags.
7438 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7439 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7440 (finish_cv_type): Remove prototype.
7441 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7442 Set TYPE_CHAIN.
7443 (alloc_type_instance): New function.
7444 (smash_type): New function.
7445 (make_pointer_type, make_reference_type, make_function_type)
7446 (smash_to_member_type, smash_to_method_type): Call smash_type.
7447 (make_qualified_type): New function.
7448 (make_type_with_address_space): Call make_qualified_type.
7449 (make_cv_type): Likewise.
7450 (finish_cv_type): Remove unnecessary function.
7451 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7452 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7453 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7454 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7455 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7456 * hpread.c (hpread_read_struct_type): Likewise.
7457 * stabsread.c (read_struct_type): Likewise.
7458
7459 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7460
7461 * configure.tgt: Add a catch all sh* target, for cases like
7462 sh[2,3,4]-elf and sh-hms.
7463
7464 2002-05-14 Keith Seitz <keiths@redhat.com>
7465
7466 * event-loop.c (create_file_handler): Don't do anything but
7467 update data when we are given a fd which we are already
7468 monitoring.
7469
7470 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7471
7472 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7473 (update_context): Use __func__ in warnings.
7474
7475 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7476
7477 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7478 and tcp_close to net_open and net_close.
7479 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7480 using UDP if requested. Don't try to disable Nagle on UDP
7481 sockets.
7482 * remote.c (remote_serial_open): New function. Warn about UDP.
7483 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7484
7485 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7486
7487 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7488
7489 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7490
7491 * configure.tgt: Remove sh-hms target.
7492 * MAINTAINERS: Don't list sh-hms as a separate target.
7493
7494 2002-05-13 Jim Blandy <jimb@redhat.com>
7495
7496 Add first preprocessor macro-expansion files.
7497 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7498 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7499 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7500 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7501 (COMMON_OBS): Add macrotab.o, macroexp.o.
7502 (macroexp.o, macrotab.o): New rules.
7503
7504 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7505
7506 * config/m88k/tm-m88k.h: Update copyright.
7507 (m88k_target_write_pc): Declare
7508 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7509 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7510 (SHIFT_INST_REGS): Update definition.
7511 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7512 using old definition of TARGET_WRITE_PC.
7513 * regcache.c (generic_target_write_pc): Delete code handling
7514 NNPC_REGNUM.
7515 * gdbarch.sh (NNPC_REGNUM): Delete.
7516 * gdbarch.h, gdbarch.c: Regenerate.
7517
7518 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7519
7520 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7521 builtin reg number.
7522
7523 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7524
7525 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7526 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7527 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7528 access macros.
7529 * c-typeprint.c (cp_type_print_method_args): Likewise.
7530 (c_type_print_args): Likewise.
7531 * d10v-tdep.c (d10v_push_arguments): Likewise.
7532 (d10v_extract_return_value): Likewise.
7533 * expprint.c (print_subexp): Likewise.
7534 * gdbtypes.c (lookup_primitive_typename): Likewise.
7535 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7536 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7537 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7538 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7539 (TYPE_VECTOR): Likewise.
7540 * hpread.c (hpread_read_struct_type)
7541 (fix_static_member_physnames, fixup_class_method_type)
7542 (hpread_type_lookup): Likewise.
7543 * mdebugread.c (parse_symbol, parse_type): Likewise.
7544 * p-lang.c (is_pascal_string_type): Likewise.
7545 * valops.c (hand_function_call): Likewise.
7546 * x86-64-tdep.c (classify_argument): Likewise.
7547
7548 * hpread.c (hpread_read_function_type)
7549 (hpread_read_doc_function_type): Call replace_type.
7550 * dstread.c (create_new_type): Delete.
7551 (decode_dst_structure, process_dst_function): Call alloc_type.
7552 Use type access macros.
7553
7554 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7555
7556 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7557 the're not supported by the current architecture.
7558 (i387_fill_fxsave): Likewise.
7559
7560 2002-05-12 Fred Fish <fnf@redhat.com>
7561
7562 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7563 sect_index_xxx members to index the first slot in section_offsets
7564 if all of the section_offsets are zero.
7565
7566 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7567
7568 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7569 checked in with last change.
7570
7571 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7572
7573 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7574 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7575 config.sub.
7576
7577 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7578
7579 * Makefile.in: Update dependencies.
7580
7581 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7582
7583 * language.c (local_hex_string_custom): Simplify. Do not depend
7584 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7585
7586 * memattr.c (mem_info_command): Replace calls to
7587 longest_local_hex_string and longest_local_hex_string_custom.
7588 * buildsym.c (make_blockvector): Ditto.
7589 * solib.c (info_sharedlibrary_command): Ditto.
7590 * tracepoint.c (tracepoints_info): Ditto.
7591 * symtab.c (print_msymbol_info): Ditto.
7592
7593 * language.c (local_hex_string): Delete.
7594 (local_hex_string_custom): Delete.
7595 (longest_local_hex_string): Rename to local_hex_string.
7596 (longest_local_hex_string_custom): Rename to
7597 local_hex_string_custom.
7598 * language.h (local_hex_string): Change parameter type to LONGEST.
7599 (local_hex_string_custom): Ditto.
7600 (longest_local_hex_string): Delete declaration.
7601 (longest_local_hex_string_custom): Ditto.
7602
7603 * solib.c: Update copyright.
7604 * memattr.c: Update copyright.
7605
7606 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7607
7608 * arch-utils.h (legacy_register_to_value): Declare.
7609 (legacy_value_to_register): Declare.
7610 (legacy_convert_register_p): Declare.
7611 * arch-utils.c (legacy_register_to_value): New function.
7612 (legacy_value_to_register): New function.
7613 (legacy_convert_register_p): New function.
7614
7615 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7616 (VALUE_TO_REGISTER): Define.
7617 (CONVERT_REGISTER_P): Define.
7618 * gdbarch.h, gdbarch.c: Regenerate.
7619
7620 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7621 VALUE_TO_REGISTER.
7622 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7623 CONVERT_REGISTER_P.
7624
7625 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7626 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7627
7628 * Makefile.in: Update dependencies for valops.c.
7629 * valops.c: Include "gdb_assert.h".
7630 (typecmp): Skip THIS parameter to methods.
7631 (find_method_list): Remove static_memfuncp argument,
7632 update callers. Check for stub methods.
7633 (find_value_oload_method_list): Don't set *static_memfuncp.
7634 (find_overload_match): Don't check for stub methods. Assert
7635 that methods are not stubbed. Handle static methods.
7636 (value_find_oload_method_list): Remove static_memfuncp argument.
7637 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7638 to the argument list for static stub methods.
7639 * value.h (value_find_oload_method_list): Update prototype.
7640
7641 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7642
7643 * arch-utils.h (generic_register_size): Declare.
7644 (generic_register_raw_size, generic_register_virtual_size): Delete
7645 declarations.
7646 * arch-utils.c (generic_register_raw_size): Delete.
7647 (generic_register_size): New function.
7648 (generic_register_virtual_size): Delete.
7649
7650 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7651 default generic_register_size.
7652 * gdbarch.h, gdbarch.c: Re-generate.
7653
7654 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7655 register_virtual_size.
7656 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7657 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7658
7659 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7660
7661 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7662 * gdbarch.h, gdbarch.c: Regenerate.
7663 * gnu-v3-abi.c: Update copyright.
7664 (vtable_address_point_offset): Update.
7665 (gnuv3_rtti_type): Update.
7666 (gnuv3_baseclass_offset): Update.
7667 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7668 (init_fetch_link_map_offsets): Update.
7669 * remote.c (get_remote_state): Update.
7670
7671 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7672
7673 * TODO: Remove value_headof/value_from_vtable_info comment.
7674 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7675 * values.c (value_headof, value_from_vtable_info): Delete.
7676 * value.h (value_from_vtable_info): Delete prototype.
7677
7678 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7679
7680 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7681 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7682 $(gdb_regex_h).
7683 (gdb_assert_h): Define.
7684 (gdb_wait_h): Define.
7685 (gdb_regex_h): Define.
7686
7687 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7688
7689 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7690 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7691
7692 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7693
7694 * nbsd-tdep.c: Fix comment.
7695
7696 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7697
7698 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7699 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7700 (nbsd-tdep.o): New dependency list.
7701 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7702 nbsd-tdep.h.
7703 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7704 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7705 * nbsd-tdep.c: New file.
7706 * nbsd-tdep.h: New file.
7707 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7708 nbsd-tdep.h.
7709 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7710 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7711 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7712 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7713
7714 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7715
7716 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7717 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7718 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7719 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7720 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7721 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7722
7723 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7726 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7727 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7728 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7729 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7730 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7731 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7732
7733 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7736 fetch_elfcore_registers to...
7737 * i386nbsd-tdep.c: ...here.
7738 (i386nbsd_use_struct_convention): Rename to...
7739 (i386nbsd_aout_use_struct_convention): ...this.
7740 (i386nbsd_supply_reg): New function.
7741 (i386nbsd_fill_reg): New function.
7742 (fetch_core_registers): Use i386nbsd_supply_reg.
7743 (fetch_elfcore_registers): Likewise.
7744 (_initialize_i386nbsd_tdep): New function.
7745 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7746 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7747 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7748 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7749 (i386nbsd_aout_use_struct_convention): ...this.
7750
7751 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7752
7753 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7754 (store_inferior_registers): Use shnbsd_fill_reg.
7755 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7756 sh_nbsd_supply_register): Collapse into...
7757 (shnbsd_supply_reg): ...this.
7758 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7759 (shnbsd_fill_reg): ...this.
7760 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7761 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7762 (fetch_core_registers): Use shnbsd_supply_reg.
7763 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7764 (sh_nbsd_core_fns): Rename to...
7765 (shnbsd_core_fns): ...this.
7766 (sh_nbsd_elfcore_fns): Rename to...
7767 (shnbsd_elfcore_fns): ...this.
7768 (sh_nbsd_init_abi): Rename to...
7769 (shnbsd_init_abi): ...this.
7770 (_initialize_sh_nbsd_tdep): Rename to...
7771 (_initialize_shnbsd_tdep): ...this.
7772 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7773 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7774 sh_nbsd_fill_register): Remove prototypes.
7775 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7776
7777 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7778
7779 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7780 (i387-nat.o): Delete dependency list.
7781 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7782 (x86-64-linux-nat.o): Likewise.
7783 * i387-nat.c: Delete file, moving contents to...
7784 * i387-tdep.c: ...here.
7785 * i387-nat.h: Rename...
7786 * i387-tdep.h: ...to this.
7787 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7788 * i386-linux-nat.c: Likewise.
7789 * i386bsd-nat.c: Likewise.
7790 * i386gnu-nat.c: Likewise.
7791 * i386nbsd-nat.c: Likewise.
7792 * i386v4-nat.c: Likewise.
7793 * x86-64-linux-nat.c: Likewise.
7794 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7795 * config/i386/go32.mh (NATDEPFILES): Likewise.
7796 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7797 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7798 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7799 * config/i386/linux.mh (NATDEPFILES): Likewise.
7800 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7801 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7802 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7803 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7804
7805 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7806
7807 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7808 (alphanbsd-nat.o): Remove dependency list.
7809 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7810 * alphanbsd-nat.c: Delete. Contents moved to...
7811 * alphanbsd-tdep.c: ...here.
7812 (_initialize_alphanbsd_tdep): Register core functions.
7813 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7814
7815 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7818 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7819 (alphanbsd-nat.o): Likewise.
7820 (alphabsd-tdep.o): New dependency list.
7821 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7822 (fill_gregset): Use alphabsd_fill_reg.
7823 (supply_fpregset): Use alphabsd_supply_fpreg.
7824 (fill_fpregset): Use alphabsd_fill_fpreg.
7825 (fetch_inferior_registers): Use struct reg and struct fpreg
7826 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7827 and alphabsd_supply_fpreg.
7828 (store_inferior_registers): Use struct reg and struct fpreg
7829 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7830 and alphabsd_fill_fpreg.
7831 * alphabsd-tdep.c: New file.
7832 * alphabsd-tdep.h: New file.
7833 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7834 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7835 alphabsd_supply_fpreg.
7836 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7837 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7838
7839 2002-05-11 Eric Christopher <echristo@redhat.com>
7840
7841 * mips-tdep.c (mips_double_register_type): Fix thinko.
7842 (mips_single_register_type): Ditto.
7843 * MAINTAINERS: Add self.
7844
7845 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7846
7847 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7848 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7849 right thing on architectures with different endianness and/or
7850 integer sizes.
7851
7852 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 From Christian Limpach <chris@Pin.LU>
7855 * configure.in: Change sed expression which comments out
7856 NATDEPFILES to also comment out continuation lines.
7857 * configure: Regenerate.
7858
7859 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7860
7861 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7862 big patch.
7863
7864 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7865
7866 * sh-tdep.c: Include correct file.
7867
7868 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7869
7870 New support for sh64-elf (sh5) target.
7871
7872 * configure.tgt: For sh64-elf target, default to sh-elf.
7873
7874 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7875 (struct gdbarch_tdep): Add new fields for new registers and ABI
7876 info.
7877
7878 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7879 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7880 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7881 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7882 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7883 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7884 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7885 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7886 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7887 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7888 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7889 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7890 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7891 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7892 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7893 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7894 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7895 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7896 sign_extend, sh64_nofp_frame_init_saved_regs,
7897 sh64_init_extra_frame_info, sh64_get_saved_register,
7898 sh64_extract_struct_value_address, sh64_pop_frame,
7899 sh64_push_arguments, sh64_extract_return_value,
7900 sh64_store_return_value, sh64_show_media_regs,
7901 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7902 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7903 sh_sh64_register_virtual_type,
7904 sh_sh64_register_convert_to_virtual,
7905 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7906 sh64_register_read, sh64_pseudo_register_write,
7907 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7908 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7909 sh64_do_pseudo_register, sh_compact_do_registers_info,
7910 sh64_do_registers_info, sh_gdbarch_init): New functions.
7911
7912 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7913
7914 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7915
7916 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7917
7918 * linespec.c (decode_line_1): Check for a double quote after
7919 a filename correctly.
7920
7921 2002-05-10 Jim Blandy <jimb@redhat.com>
7922
7923 Properly track the size of the current objfile's .debug_line section.
7924 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7925 (DWARF_LINE_SIZE): New macro.
7926 (dwarf2_build_psymtabs_hard): Record the line section's size in
7927 the partial symbol table.
7928 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7929 symbol table.
7930
7931 2002-05-10 Petr Sorfa <petrs@caldera.com>
7932
7933 * ia64-tdep.c: Handle breakpoints on L instruction type
7934 in MLX instruction bundle by moving the breakpoint to
7935 the third slot (X instruction type) as L holds only data.
7936
7937 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7938
7939 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7940 (process_one_symbol): Complain about discarding local symbols
7941 due to a misplaced N_LBRAC entry.
7942
7943 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7944
7945 From Daniel Berlin <dan@cgsoftware.com>
7946 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7947 decrease the depth we are at, in the case of templates.
7948
7949 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7950
7951 * mips-tdep.c (mips_float_register_type): New function.
7952 (mips_double_register_type): New function.
7953 (mips_print_register): Use them.
7954 (do_fp_register_row): Likewise.
7955
7956 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7957
7958 * signals/signals.c (signals): Remove conditional compilation around
7959 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7960 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7961
7962 2002-05-09 Michael Snyder <msnyder@redhat.com>
7963
7964 * remote-rdp.c (remote_rdp_can_run): Remove.
7965
7966 2002-05-09 Tom Tromey <tromey@redhat.com>
7967
7968 * jv-valprint.c (java_val_print): Handle `char' as a special case
7969 of TYPE_CODE_INT.
7970
7971 2002-05-09 Michael Snyder <msnyder@redhat.com>
7972
7973 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7974 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7975 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7976 str r(0123),[sp,#nn].
7977 (arm_skip_prologue): Ditto. Also make disassembly
7978 order-independent by placing it in a loop.
7979
7980 2002-05-06 Michael Snyder <msnyder@redhat.com>
7981
7982 * stabsread.c (read_type): Add recognition for new attribute:
7983 "@V;" means that an array type is actually a vector.
7984 This is analogous to the vector flag that's been added to dwarf2.
7985
7986 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7987
7988 * i386-tdep.h (i386_abi): New enum.
7989 (struct gdbarch_tdep): Replace os_ident member with abi.
7990 (i386_gdbarch_register_os_abi): New prototype.
7991 * i386-tdep.c (i386_abi_names): New array.
7992 (process_note_abi_tag_sections): Removed.
7993 (process_note_sections): New function.
7994 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7995 (struct i386_abi_handler): New struct.
7996 (i386_abi_handler_list): New variable.
7997 (i386_gdbarch_register_os_abi): New function.
7998 (i386_gdbarch_init): Adapt for the changes given above.
7999
8000 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * gregset.h: Say "GNU/Linux".
8003
8004 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8005
8006 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8007 (build_gdbtypes): Build builtin_type_v2_float.
8008 (_initialize_gdbtypes): Register new builtin type.
8009
8010 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8011
8012 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8013 (clear_gdbarch_swap): New function.
8014 (initialize_non_multiarch): Call.
8015 (gdbarch_update_p): Before calling init(), swap out and clear the
8016 existing architecture.
8017 * gdbarch.c: Regenerate.
8018
8019 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8022 alphanbsd-tdep.c.
8023
8024 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * sh-nbsd-nat.c: Rename to...
8027 * shnbsd-nat.c: ...this.
8028 * sh-nbsd-tdep.c: Rename to...
8029 * shnbsd-tdep.c: ...this.
8030 * sh-nbsd-tdep.h: Rename to...
8031 * shnbsd-tdep.h: ...this.
8032 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8033 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8034
8035 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8036
8037 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8038 concatenation for command help messages.
8039
8040 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8041
8042 * NEWS: Note new sh*-*-netbsdelf* configuration.
8043 * configure.host: Set gdb_host_cpu to sh for all sh*.
8044 (sh*-*-netbsdelf*): New host.
8045 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8046 (sh*-*-netbsdelf*): New target.
8047 * sh-nbsd-nat.c: New file.
8048 * sh-nbsd-tdep.c: New file.
8049 * sh-nbsd-tdep.h: New file.
8050 * config/sh/nbsd.mh: New file.
8051 * config/sh/nbsd.mt: New file.
8052 * config/sh/nm-nbsd.h: New file.
8053 * config/sh/tm-nbsd.h: New file.
8054
8055 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8056
8057 * sh-tdep.c (sh_osabi_names): Declare.
8058 (process_note_abi_tag_sections): New function.
8059 (get_elfosabi): Ditto.
8060 (sh_gdbarch_register_os_abi): Ditto.
8061 (sh_dump_tdep): Ditto.
8062 _initialize_sh_tdep): Use gdbarch_register to register
8063 sh_gdbarch_init and sh_dump_tdep.
8064 * config/sh/tm-sh.h (sh_osabi): Declare.
8065 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8066
8067 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8068
8069 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8070 (thumb_scan_prologue): Ditto.
8071 (arm_find_callers_reg): Ditto.
8072 (arm_frame_chain): Ditto.
8073 (arm_init_extra_frame_info): Ditto.
8074 (arm_frame_saved_pc): Ditto.
8075 (arm_pop_frame): Ditto.
8076 (arm_push_return_address): New function.
8077 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8078 call_dummy_location, call_dummy_breakpoint_offset_p,
8079 call_dummy_breakpoint_offset, call_dummy_p,
8080 call_dummy_stack_adjust_p, call_dummy_words,
8081 sizeof_call_dummy_words, call_dummy_start_offset,
8082 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8083 call_dummy_address, push_return_address and push_dummy_frame for
8084 generic dummy frames.
8085
8086 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8087
8088 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8089 size computation for alloca.
8090 (sh_fp_frame_init_saved_regs): Likewise.
8091
8092 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8093
8094 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8095 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8096 * arm-tdep.c (arm_store_return_value): Use them.
8097 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8098 * remote-rdp.c (remote_rdp_fetch_register): Use
8099 ARM_MAX_REGISTER_RAW_SIZE.
8100 (remote_rdp_store_register): Likewise.
8101
8102 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8103
8104 * dwarf2cfi.c: Code cleanup, removed unused variables,
8105 added default labels to switch {} statements.
8106 * x86-64-tdep.c: Ditto.
8107 * x86-64-linux-nat.c: Ditto.
8108
8109 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8110
8111 * solib.h: Protect against multiple inclusion.
8112
8113 2002-05-06 Jim Blandy <jimb@redhat.com>
8114
8115 Add first preprocessor macro-expansion files.
8116 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8117 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8118 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8119 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8120 (COMMON_OBS): Add macrotab.o, macroexp.o.
8121 (macroexp.o, macrotab.o): New rules.
8122
8123 Separate the job of reading the line number info statement program
8124 header (...expialidocious) out into its own function.
8125 * dwarf2read.c (struct line_head, struct filenames, struct
8126 directories): Replace with...
8127 (struct line_header): New structure, containing the full
8128 contents of the statement program header, including the
8129 include directory and file name tables.
8130 (read_file_scope): If we have line number info, instead of just
8131 calling dwarf_decode_lines to do all the work, call
8132 dwarf_decode_line_header first to get a `struct line_header'
8133 containing the data in the statement program header, and then
8134 pass that to dwarf_decode_lines, which will pick up where that
8135 left off. Be sure to clean up the `struct line_header' object.
8136 (dwarf_decode_line_header, free_line_header, add_include_dir,
8137 add_file_name): New functions.
8138 (dwarf_decode_lines): Move all the code to read the statement
8139 program header into dwarf_decode_line_header. Take the line
8140 header it built as the first argument, instead of the offset to
8141 the compilation unit's line number info. Use the new `struct
8142 line_header' type instead of the old structures. No need to do
8143 cleanups here now, since we don't allocate anything.
8144 (dwarf2_statement_list_fits_in_line_number_section,
8145 dwarf2_line_header_too_long): New complaints.
8146
8147 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8148
8149 * gdbtypes.c (init_vector_type): New function.
8150 (build_builtin_type_vec128): Simplify the representation of SIMD
8151 registers.
8152 (build_gdbtypes): Initialize new builtin vector types.
8153 (_initialize_gdbtypes): Register new vector types with gdbarch.
8154 (builtin_type_v4_float, builtin_type_v4_int32,
8155 builtin_type_v8_int16, builtin_type_v16_int8,
8156 builtin_type_v2_int32, builtin_type_v4_int16,
8157 builtin_type_v8_int8): New (renamed) SIMD types.
8158
8159 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8160
8161 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8162 (i387_fill_fxsave): Likewise.
8163
8164 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8165
8166 * alpha-tdep.c (alpha_extract_return_value): Don't use
8167 non-constant array size in prototype.
8168
8169 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8170
8171 From Brian Taylor <briant at model dot com>:
8172 * ui-out.c (ui_out_field_core_addr): Use the function
8173 longest_local_hex_string_custom'to format addresses > 32 bits
8174 wide.
8175
8176 * ui-out.c (ui_out_field_core_addr): Update comment.
8177
8178 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8179
8180 * stack.c (select_and_print_frame): Make static. Delete the
8181 parameter `level'.
8182 (func_command): Update call.
8183 (select_frame_command): Delete code computing the frame level.
8184 * frame.h (select_and_print_frame): Delete declaration.
8185
8186 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8187
8188 * sparc-tdep.c (sparc_get_saved_register): Comment why
8189 get_prev_frame call is safe.
8190
8191 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8192
8193 * frame.h (select_frame): Delete level parameter.
8194 * stack.c (select_frame): Update. Use frame_relative_level to
8195 obtain the frame's level.
8196 (select_and_print_frame): Update call.
8197 (select_frame_command): Ditto.
8198 (up_silently_base): Ditto.
8199 (down_silently_base): Ditto.
8200 * ocd.c (ocd_start_remote): Ditto.
8201 * remote-rdp.c (remote_rdp_open): Ditto.
8202 * remote-mips.c (mips_initialize): Ditto.
8203 (common_open): Ditto.
8204 * remote-e7000.c (e7000_start_remote): Ditto.
8205 * m3-nat.c (select_thread): Ditto.
8206 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8207 (child_get_current_exception_event): Ditto.
8208 * varobj.c (varobj_create): Ditto.
8209 (varobj_update): Ditto.
8210 (c_value_of_root): Ditto.
8211 * tracepoint.c (finish_tfind_command): Ditto.
8212 * corelow.c (core_open): Ditto.
8213 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8214 * thread.c (info_threads_command): Ditto.
8215 (switch_to_thread): Ditto.
8216 * infrun.c (normal_stop): Ditto.
8217 (restore_selected_frame): Ditto.
8218 (restore_inferior_status): Ditto.
8219 * breakpoint.c (insert_breakpoints): Ditto.
8220 (watchpoint_check): Ditto.
8221 (bpstat_stop_status): Ditto.
8222 (do_enable_breakpoint): Ditto.
8223 * blockframe.c (flush_cached_frames): Ditto.
8224 (reinit_frame_cache): Ditto.
8225
8226 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8227
8228 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8229 maintainer.
8230
8231 2002-05-04 Jim Blandy <jimb@redhat.com>
8232
8233 * gdbtypes.c (replace_type): Doc fix.
8234
8235 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8236
8237 * valprint.c (strcat_longest): Delete commented out function.
8238 Update copyright.
8239
8240 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8241
8242 * MAINTAINERS: Mark a29k as deleted.
8243 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8244 Move new configurations to the top.
8245 * configure.tgt: Remove a29k.
8246 * config/a29k/tm-vx29k.h: Delete.
8247 * config/a29k/vx29k.mt: Delete.
8248 * config/a29k/tm-a29k.h: Delete.
8249 * config/a29k/a29k-udi.mt: Delete.
8250 * config/a29k/a29k.mt: Delete.
8251 * a29k-tdep.c: Delete.
8252 * remote-udi.c: Delete.
8253 * remote-mm.c: Delete.
8254 * remote-eb.c: Delete.
8255 * remote-adapt.c: Delete.
8256 * Makefile.in: Remove obsolete code.
8257 * config/s390/s390x.mt: Ditto.
8258 * config/s390/s390.mt: Ditto.
8259 * config/sparc/sparclynx.mh: Ditto.
8260 * config/sparc/linux.mh: Ditto.
8261 * config/pa/hppaosf.mh: Ditto.
8262 * config/pa/hppabsd.mh: Ditto.
8263 * config/ns32k/nbsd.mt: Ditto.
8264 * config/mips/vr5000.mt: Ditto.
8265 * config/m68k/sun3os4.mh: Ditto.
8266 * config/m68k/nbsd.mt: Ditto.
8267 * config/m68k/m68klynx.mh: Ditto.
8268 * config/m32r/m32r.mt: Ditto.
8269 * config/i386/x86-64linux.mt: Ditto.
8270 * config/i386/nbsdelf.mt: Ditto.
8271 * config/i386/nbsd.mt: Ditto.
8272 * config/i386/i386lynx.mh: Ditto.
8273
8274 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8275
8276 * target.c (debug_print_register): New function. Handle oversize
8277 registers.
8278 (debug_to_fetch_registers): Call.
8279 (debug_to_store_registers): Call.
8280
8281 2002-05-03 Jim Blandy <jimb@redhat.com>
8282
8283 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8284 (read_type): Doc fix.
8285 * gdbtypes.c (replace_type): Doc fix.
8286
8287 * stabsread.c (multiply_defined_struct): New complaint.
8288 (read_struct_type): If the type we were passed isn't empty, or
8289 incomplete, don't read the new struct type into it; complain,
8290 and return the original type unchanged. Take a new `type_code'
8291 argument, which is the type code for the new type.
8292 (read_type): Rather than storing the type's type code here, pass
8293 it as an argument to read_struct_type, and let that take care of
8294 storing it. That way, we don't overwrite the original type code,
8295 so read_struct_type can use it to decide whether we're overwriting
8296 something we shouldn't.
8297 (complain_about_struct_wipeout): New function.
8298
8299 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8300
8301 * gdbarch.sh: Assert that gdbarch is non-NULL.
8302 * gdbarch.c: Regenerate.
8303
8304 2002-05-03 Jason Merrill <jason@redhat.com>
8305
8306 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8307 and return NULL.
8308
8309 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8310
8311 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8312 (x86_64_dwarf2gdb_regno_map_length),
8313 (x86_64_dwarf2_reg_to_regnum): Added.
8314 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8315 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8316 (_initialize_x86_64_tdep): Synced with the change above.
8317 (x86_64_skip_prologue): Reformulated message.
8318
8319 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8320
8321 * f-exp.y: Also use new prev_lexptr variable
8322 to improve error reporting. Based on Michael Snyder
8323 2002-04-24 dated patch to c-exp.y.
8324 * jv-exp.y: Likewise.
8325 * m2-exp.y: Likewise.
8326
8327 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8328
8329 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8330 we are dealing with vectors.
8331
8332 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8333
8334 * config/m68k/tm-nbsd.h: Obvious fix,
8335 correct machine name.
8336
8337 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8338
8339 * p-typeprint.c (pascal_type_print_base): Add support
8340 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8341
8342 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8343
8344 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8345 for fondamental pascal 'char' type.
8346
8347 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8348
8349 * p-lang.h (is_pascal_string_type): Declaration changed,
8350 new sixth argument of type char ** added.
8351 * p-lang.c (is_pascal_string_type): Implementation
8352 changed. Args length_pos, length_size, string_pos, char_size
8353 can now be NULL. New argument arrayname set to the field
8354 name of the char array. Return value set to char array
8355 field index plus one.
8356 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8357 is_pascal_string_type function.
8358
8359 2002-05-02 Andrew Cagney <cagney@redhat.com>
8360
8361 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8362 <cagney@redhat.com> change.
8363 * gdbarch.c: Regenerate.
8364
8365 2002-05-02 Andrew Cagney <cagney@redhat.com>
8366
8367 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8368 before probing for a new one. Detect errorenous gdbarch_init
8369 functions.
8370 * gdbarch.c: Regenerate.
8371
8372 2002-05-01 Andrew Cagney <cagney@redhat.com>
8373
8374 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8375 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8376 * config/v850/tm-v850.h: Ditto. Update copyright.
8377
8378 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8379
8380 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8381 current_gdbarch.
8382
8383 2002-04-30 Michael Snyder <msnyder@redhat.com>
8384
8385 * arm-tdep.c: Whitespace clean-ups.
8386 (arm_skip_prologue): Fix thinko; two lines
8387 should have been removed as part of 4/24 change.
8388
8389 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8390
8391 * rs6000-tdep.c: Added comment describing how fpscr register
8392 numbers were chosen.
8393
8394 2002-04-30 Michael Snyder <msnyder@redhat.com>
8395
8396 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8397
8398 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8399
8400 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8401 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8402 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8403
8404 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8405
8406 From Louis Hamilton <hamilton@redhat.com>:
8407 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8408 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8409 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8410 not bfd-private xcoff data, to determine wordsize.
8411 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8412
8413 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8414
8415 GDB 5.2 released from 5.2 branch.
8416
8417 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8418
8419 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8420 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8421 (x86_64_register_info_table): Added comments with register numbers.
8422
8423 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8424
8425 * rs6000-tdep.c (rs6000_extract_return_value,
8426 rs6000_store_return_value): Handle returning vectors.
8427 (rs6000_gdbarch_init): Use
8428 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8429 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8430 New function.
8431 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8432 vectors.
8433 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8434 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8435
8436 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8437
8438 * hpread.c (hpread_psymtab_to_symtab_1,
8439 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8440 with fprintf_unfiltered (gdb_stderr,...).
8441
8442 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8443
8444 * remote-array.c (printf_monitor, write_monitor,
8445 array_insert_breakpoint, array_remove_breakpoint ):
8446 Replace fprintf (stderr,...
8447 with fprintf_unfiltered (gdb_stderr,....
8448 * remote-es.c: Likewise.
8449 * remote-os9k.c: Likewise.
8450 * remote-st.c: Likewise.
8451
8452 2002-04-28 Andreas Schwab <schwab@suse.de>
8453
8454 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8455 linux-proc.o and gcore.o.
8456
8457 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8458
8459 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8460 code without frame pointers.
8461
8462 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8463
8464 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8465 ON_STACK is needed.
8466
8467 2002-04-26 Ben Elliston <bje@redhat.com>
8468
8469 * target.c (do_xfer_memory): Correct reference to the new option
8470 "trust-readonly-sections".
8471
8472 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8473
8474 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8475 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8476 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8477 vectors.
8478 (read_array_type): Record the fact that this array type is really a
8479 vector (i.e. are passed in by value).
8480
8481 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8482
8483 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8484 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8485 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8486 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8487 * alpha-linux-tdep.c: Include frame.h.
8488 (alpha_linux_sigcontext_addr): New function.
8489 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8490 alpha_linux_sigcontext_addr.
8491 * alpha-osf1-tdep.c: Include gdbcore.h.
8492 (alpha_osf1_sigcontext_addr): New function.
8493 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8494 alpha_osf1_sigcontext_addr.
8495 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8496 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8497
8498 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8499
8500 * stack.c (selected_frame_level):
8501 (select_frame): Do not set selected_frame_level.
8502 * frame.h (selected_frame_level): Delete declaration.
8503
8504 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8505
8506 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8507 convert_from_func_ptr-addr when AIX / PowerOpen.
8508
8509 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8510
8511 * valops.c (hand_function_call): Call
8512 generic_save_call_dummy_addr.
8513 * frame.h (generic_save_call_dummy_addr): Declare.
8514 * blockframe.c (struct dummy_frame): Add fields call_lo and
8515 call_hi.
8516 (generic_find_dummy_frame): Check for PC in range call_lo to
8517 call_hi instead of entry_point_address.
8518 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8519 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8520 (generic_save_call_dummy_addr): New function.
8521
8522 2002-04-24 David S. Miller <davem@redhat.com>
8523
8524 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8525 sparc_skip_prologue.
8526 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8527 information to find prologue when possible.
8528 (sparc_prologue_frameless_p): Call examine_prologue directly.
8529 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8530 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8531 second argument.
8532 (SKIP_PROLOGUE): Likewise.
8533
8534 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8535
8536 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8537 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8538 indicate that the condition it was testing is always true.
8539 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8540 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8541 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8542
8543 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8544
8545 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8546 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8547 tdep->jb_pc and tdep->jb_elt_size.
8548 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8549 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8550 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8551 * alpha-nat.c (get_longjmp_target): Remove.
8552 (JB_ELEMENT_SIZE): Ditto.
8553 (JB_PC): Ditto.
8554 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8555 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8556 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8557 to alpha_get_longjmp_target.
8558 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8559 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8560 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8561
8562 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8563
8564 * README: Update to GDB 5.2.
8565
8566 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8567
8568 * gdbarch.sh (LC_ALL): Set to `c'.
8569
8570 2002-04-25 Theodore A. Roth <troth@verinet.com>
8571
8572 * avr-tdep.c: Ran through gdb_indent.sh.
8573
8574 2002-04-25 Theodore A. Roth <troth@verinet.com>
8575
8576 * MAINTAINERS: Add myself as AVR maintainer.
8577 * NEWS: Note new target avr.
8578
8579 2002-04-25 Theodore A. Roth <troth@verinet.com>
8580
8581 * Makefile.in: Add support for AVR target.
8582 * configure.tgt: Add support for AVR target.
8583 * avr-tdep.c: New file
8584 * config/avr/avr.mt: New file.
8585
8586 2002-04-25 Theodore A. Roth <troth@verinet.com>
8587
8588 * MAINTAINERS: Add myself to write-after-approval.
8589
8590 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8591
8592 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8593 with fprintf_unfiltered (gdb_stderr,....
8594
8595 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8596
8597 Fix PR gdb/508.
8598 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8599
8600 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8601
8602 * p-exp.y: Also use new prev_lexptr variable
8603 to improve error reporting. Based on Michael Snyder
8604 2002-04-24 dated patch to c-exp.y.
8605
8606 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8607
8608 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8609 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8610 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8611 to 0.
8612 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8613 and struct value.
8614 (FUNCTION_START_OFFSET): Remove.
8615 (BREAKPOINT): Ditto.
8616
8617 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8618
8619 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8620 * NEWS: Ditto.
8621
8622 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8623
8624 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8625 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8626 alpha_linux_pc_in_sigtramp.
8627 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8628 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8629 alpha_osf1_pc_in_sigtramp.
8630 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8631 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8632 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8633 alphafbsd_pc_in_sigtramp.
8634 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8635 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8636 alphanbsd_pc_in_sigtramp.
8637 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8638 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8639
8640 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8641
8642 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8643
8644 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8645
8646 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8647 alphanbsd-tdep.c.
8648 (alphanbsd-nat.o): New dependency list.
8649 (alphanbsd-tdep.o): Ditto.
8650 * NEWS: Note new native NetBSD/alpha configuration.
8651 * alphanbsd-nat.c: New file.
8652 * alphanbsd-tdep.c: Ditto.
8653 * configure.host (alpha*-*-netbsd*): New host.
8654 * configure.tgt (alpha*-*-netbsd*): New target.
8655 * config/alpha/nbsd.mh: New file.
8656 * config/alpha/nbsd.mt: Ditto.
8657 * config/alpha/nm-nbsd.h: Ditto.
8658 * config/alpha/tm-nbsd.h: Ditto.
8659
8660 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8661
8662 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8663 (alpha-osf1-tdep.o): New dependency list.
8664 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8665 and skip_sigtramp_frame members.
8666 * alpha-linux-tdep.c: Include gdbcore.h.
8667 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8668 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8669 * alpha-osf1-tdep.c: New file.
8670 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8671 alpha-osf1-dep.c.
8672 (alpha_frame_past_sigtramp_frame): New function.
8673 (alpha_dynamic_sigtramp_offset): Ditto.
8674 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8675 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8676 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8677 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8678 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8679 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8680 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8681 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8682 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8683 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8684 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8685 to find_solib_trampoline_target.
8686 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8687 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8688 (SKIP_TRAMPOLINE_CODE): Remove.
8689 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8690 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8691 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8692 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8693 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8694 (PROC_SIGTRAMP_MAGIC): Ditto.
8695 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8696 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8697 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8698 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8699 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8700
8701 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8702
8703 * NEWS: Note that Alpha targets are now multi-arch.
8704
8705 2002-04-24 Michael Snyder <msnyder@redhat.com>
8706
8707 * parser-defs.h (prev_lexptr): New external variable.
8708 * parse.c (parse_exp_1): Set prev_lexptr to null before
8709 calling the language-specific parser.
8710 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8711 (yyerror): Use prev_lexptr in error reporting.
8712
8713 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8716 * gregset.h: If FILL_FPXREGSET is defined, provide
8717 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8718 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8719 is defined, call fill_fpxregset.
8720
8721 2002-04-24 Roland McGrath <roland@frob.com>
8722
8723 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8724 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8725 (supply_gregset, supply_fpregset): New functions.
8726
8727 * gnu-nat.c (gnu_find_memory_regions): New function.
8728 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8729 (gnu_xfer_memory): Add a cast.
8730
8731 2002-04-24 Michael Snyder <msnyder@redhat.com>
8732
8733 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8734 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8735 of argument regs ("str r(0123), [r11, #-nn"]).
8736 (arm_skip_prologue): Better handling for frameless functions.
8737 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8738 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8739
8740 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8741
8742 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8743 NUM_PSEUDO_REGS can be used.
8744
8745 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8746
8747 * arch-utils.h: Update copyright.
8748
8749 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8750 * gdbarch.h, gdbarch.c: Re-generate.
8751
8752 * inferior.h (IN_SIGTRAMP): Delete definition.
8753 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8754 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8755
8756 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8757 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8758 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8759 (find_proc_framesize): Ditto.
8760 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8761 (alpha_init_extra_frame_info): Ditto.
8762 * infrun.c (handle_inferior_event): Ditto.
8763 (handle_inferior_event): Ditto.
8764 (check_sigtramp2): Ditto.
8765 * blockframe.c (create_new_frame): Ditto.
8766 (get_prev_frame): Ditto.
8767 * ppc-linux-tdep.c: Update comments.
8768 * i386-linux-tdep.c: Update comments.
8769 * breakpoint.c (bpstat_what): Update comment.
8770
8771 2002-04-24 David S. Miller <davem@redhat.com>
8772
8773 * i960-tdep.c (register_in_window_p): New function.
8774 (i960_find_saved_register): Use it instead of
8775 REGISTER_IN_WINDOW_P.
8776 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8777
8778 * symtab.h (find_stab_function_addr): Kill extern.
8779 * minsyms.c (find_stab_function_addr): Remove from here...
8780 * dbxread.c: ... to here, and mark it static.
8781
8782 2002-04-20 David S. Miller <davem@redhat.com>
8783
8784 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8785 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8786
8787 2002-04-21 David S. Miller <davem@redhat.com>
8788
8789 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8790 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8791 (vx_write_register): Likewise.
8792
8793 2002-04-23 J. Brobecker <brobecker@gnat.com>
8794
8795 * source.c (is_regular_file): New function.
8796 (openp): Check wether file to open is a regular file
8797 to avoid opening directories.
8798
8799 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8800
8801 * findvar.c (extract_signed_integer): Cast printf argument
8802 to suppress format warning.
8803 (extract_unsigned_integer): Likewise.
8804 * infcmd.c (registers_info): Likewise.
8805 * top.c (get_prompt_1): Likewise.
8806 * valops.c (value_assign): Likewise.
8807 * valprint.c (print_decimal): Likewise.
8808
8809 2002-04-22 H.J. Lu (hjl@gnu.org)
8810
8811 * c-exp.y (typebase): Support
8812
8813 [long|long long|short] [signed|unsigned] [int|]
8814
8815 and
8816
8817 signed [long|long long|short] int
8818
8819 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8822 and vax-tdep.h.
8823 * vax-tdep.h: New file.
8824 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8825 Make several routines static.
8826 (vax_get_saved_register): New function.
8827 (vax_gdbarch_init): New function.
8828 (_initialize_vax_tdep): Register vax_gdbarch_init.
8829 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8830 Remove macros now under the control of gdbarch.
8831
8832 2002-04-22 Michael Snyder <msnyder@redhat.com>
8833
8834 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8835 Some whitespace and coding standards tweaks.
8836
8837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8838
8839 * vax-tdep.c: Include regcache.h.
8840 (vax_call_dummy_words): New.
8841 (sizeof_vax_call_dummy_words): New.
8842 (vax_fix_call_dummy): New function.
8843 (vax_saved_pc_after_call): Ditto.
8844 * config/vax/tm-vax.h: Don't include regcache.h.
8845 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8846 (CALL_DUMMY): Remove.
8847 (CALL_DUMMY_WORDS): Define.
8848 (SIZEOF_CALL_DUMMY_WORDS): Define.
8849 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8850
8851 2002-04-18 Michael Snyder <msnyder@redhat.com>
8852
8853 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8854
8855 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8856
8857 * vax-tdep.c (vax_frame_chain): New function.
8858 (vax_push_dummy_frame): Ditto.
8859 (vax_pop_frame): Ditto.
8860 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8861 (FRAMELESS_FUNCTION_INVOCATION): Use
8862 generic_frameless_function_invocation_not.
8863 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8864 (POP_FRAME): Use vax_pop_frame.
8865
8866 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8867
8868 * vax-tdep.c (vax_store_struct_return): New function.
8869 (vax_extract_return_value): Ditto.
8870 (vax_store_return_value): Ditto.
8871 (vax_extract_struct_value_address): Ditto.
8872 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8873 vax_store_struct_return.
8874 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8875 (STORE_RETURN_VALUE): Use vax_store_return_value.
8876 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8877
8878 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8879
8880 * vax-tdep.c (vax_frame_saved_pc): New function.
8881 (vax_frame_args_address_correct): Ditto.
8882 (vax_frame_args_address): Ditto.
8883 (vax_frame_locals_address): Ditto.
8884 (vax_frame_num_args): Move code to be in proximity to
8885 other frame-related functions.
8886 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8887 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8888 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8889 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8890 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8891
8892 2002-04-22 H.J. Lu (hjl@gnu.org)
8893
8894 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8895 includedir.
8896
8897 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8898
8899 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8900 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8901 (FRAME_INIT_SAVED_REGS): New macro.
8902
8903 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8904
8905 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8906
8907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8908
8909 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8910 where needed.
8911 (fetch_osf_core_registers): Likewise.
8912 (supply_gregset): Likewise.
8913
8914 2002-04-22 J. Brobecker <brobecker@gnat.com>
8915
8916 * symfile.h (get_section_index): Define.
8917 * symfile.c (get_section_index): New function.
8918 * mdebugread.c (SC_IS_SBSS): New macro.
8919 (SC_IS_BSS): Return true for the scBss storage class only, as
8920 the scSBss storage class refers to the .sbss section.
8921 (parse_partial_symbols): Discard the symbols which associated
8922 section does not exist.
8923 Make sure to use the .sbss section index for symbols which
8924 storage class is scBss, rather than using the .bss section index.
8925
8926 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8927
8928 * vax-tdep.c: Update copyright years.
8929 (vax_register_name): New function.
8930 (vax_register_byte): Ditto.
8931 (vax_register_raw_size): Ditto.
8932 (vax_register_virtual_size): Ditto.
8933 (vax_register_virtual_type): Ditto.
8934 * config/vax/tm-vax.h: Update copyright years.
8935 (REGISTER_NAMES): Remove.
8936 (REGISTER_NAME): Define.
8937 (REGISTER_BYTE): Use vax_register_byte.
8938 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8939 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8940 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8941
8942 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8943
8944 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8945 declaration
8946 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8947
8948 2002-04-21 David S. Miller <davem@redhat.com>
8949
8950 * arch-utils.c (generic_prologue_frameless_p): Kill
8951 SKIP_PROLOGUE_FRAMELESS_P code.
8952 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8953 references.
8954 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8955 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8956 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8957 references.
8958 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8959 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8960 (sparc_gdbarch_init): Pass it to
8961 set_gdbarch_prologue_frameless_p.
8962
8963 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8964
8965 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8966 (alphabsd-nat.o): New dependency list.
8967
8968 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8969
8970 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8971 alphafbsd-tdep.c.
8972 (alpha-linux-tdep.o): New dependency list.
8973 (alphafbsd-tdep.o): Likewise.
8974
8975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8976
8977 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8978 to here...
8979 * alpha-tdep.c: ...from here.
8980 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8981
8982 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8983
8984 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8985 prototype from here...
8986 * alpha-tdep.h: ...to here.
8987
8988 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8989
8990 * frame.h (selected_frame_level): Document as deprecated.
8991 (frame_relative_level): Declare.
8992 * stack.c (frame_relative_level): New function.
8993 (selected_frame_level): Document as deprecated.
8994 (select_frame): Do not set the selected_frame_level.
8995
8996 * stack.c (frame_info, record_selected_frame): Update.
8997 (frame_command, current_frame_command): Update.
8998 (up_silently_base, up_command, down_silently_base): Update.
8999 (down_command): Update.
9000 * inflow.c (kill_command): Update.
9001 * tracepoint.c (finish_tfind_command): Update.
9002 * corelow.c (core_open): Update.
9003 * thread.c (info_threads_command): Update.
9004 (do_captured_thread_select): Update.
9005 * infcmd.c (finish_command): Update.
9006 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9007
9008 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9009
9010 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9011
9012 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9013
9014 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9015 type const.
9016
9017 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9018
9019 * alphafbsd-tdep.c: Update copyright years. Include
9020 alpha-tdep.h.
9021 (alphafbsd_use_struct_convention): Make static.
9022 (alphafbsd_init_abi): New function.
9023 (_initialize_alphafbsd_tdep): New function.
9024 * config/alpha/tm-fbsd.h: Update copyright years.
9025 (USE_STRUCT_CONVENTION): Remove.
9026
9027 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9028
9029 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9030 an Alpha ABI variant.
9031 (alpha_abi_handler_list): Declare.
9032 (alpha_gdbarch_register_os_abi): New function.
9033 (alpha_gdbarch_init): Give registered ABI variant handlers a
9034 chance to tweak the gdbarch once we have set up defaults.
9035 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9036
9037 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9038
9039 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9040 to standard_coerce_float_to_double.
9041 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9042
9043 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9044
9045 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9046 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9047 from gdbarch_tdep rather than a constant.
9048 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9049 the default text address for all Alpha Unix ABIs.
9050 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9051 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9052
9053 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9054
9055 * alpha-tdep.h: New file. Includes several Alpha target constants
9056 taken from...
9057 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9058 let gdbarch deal with.
9059 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9060 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9061 to dependency list.
9062 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9063 Alpha target register names.
9064 * alphabsd-nat.c: Likewise.
9065 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9066 Alpha target register names. Make serveral routines static.
9067 (alpha_get_saved_register): New function.
9068 (alpha_abi_names): New.
9069 (process_note_abi_tag_sections): New function.
9070 (get_elfosabi): New function.
9071 (alpha_gdbarch_init): New function.
9072 (alpha_dump_tdep): New function.
9073 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9074
9075 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9076
9077 * frame.c (find_saved_register): Delete #ifdef
9078 HAVE_REGISTER_WINDOWS code.
9079 * config/sparc/tm-sparc.h: Update comments.
9080 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9081
9082 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9083
9084 * i960-tdep.c (i960_find_saved_register): New function.
9085 (i960_get_saved_register): New function.
9086 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9087 (i960_get_saved_register): Declare.
9088 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9089
9090 2002-04-20 David S. Miller <davem@redhat.com>
9091
9092 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9093
9094 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9095
9096 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9097 instead of NUM_PSEUDO_REGS.
9098
9099 2002-04-20 David S. Miller <davem@redhat.com>
9100
9101 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9102 GDB_MULTI_ARCH_PARTIAL
9103 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9104 define, let tm-sp64.h do it.
9105
9106 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9107
9108 * frame.c (find_saved_register): Avoid a NULL pointer
9109 dereference and actually walk the frame list.
9110
9111 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9112
9113 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9114 sorted in most most-recent-used order. Document.
9115 * gdbarch.h, gdbarch.c: Regenerate.
9116
9117 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9118
9119 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9120 instead of ->prev.
9121 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9122 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9123 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9124 instead of ->prev.
9125
9126 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9127
9128 Fix PR gdb/471.
9129 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9130 (build_builtin_type_vec128): Ditto.
9131 (append_composite_type_field): Fix calculation of type length in
9132 union case.
9133
9134 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9135
9136 * config/djgpp/README: Update.
9137
9138 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9139 compiler warnings.
9140
9141 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9142
9143 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9144 (alpha_setup_arbitrary_frame): ...to this.
9145 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9146 for alpha_setup_arbitrary_frame.
9147
9148 2002-04-18 Andrew Cagney <cagney@redhat.com>
9149
9150 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9151 * gdbarch.h, gdbarch.c: Regenerate.
9152
9153 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9154 * target.h (memory_breakpoint_from_pc): Update declaration.
9155 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9156
9157 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9158 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9159 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9160 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9161 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9162 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9163 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9164 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9165 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9166 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9167 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9168 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9169
9170 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9171 const pointer.
9172 * monitor.c (monitor_insert_breakpoint): Ditto.
9173 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9174
9175 * config/mcore/tm-mcore.h: Update copyright.
9176 * mem-break.c: Ditto.
9177 * xstormy16-tdep.c: Ditto.
9178
9179 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9180
9181 * p-exp.y: Add precedence rule for '^' token.
9182 This removes the shift/reduce conflicts.
9183 Remove the comment concerning these shift/reduce conflicts.
9184
9185 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9186
9187 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9188 (registers_powerpc_nofp): New register set for processors
9189 without floating point unit.
9190
9191 2002-04-18 David S. Miller <davem@redhat.com>
9192
9193 * MAINTAINERS: Add myself to write-after-approval.
9194
9195 2002-04-17 Michael Snyder <msnyder@redhat.com>
9196
9197 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9198
9199 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9200
9201 * rs6000-tdep.c (frame_initial_stack_address): Use
9202 frame_register_read to read the alloca_reg.
9203
9204 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9205
9206 * frame.c (find_saved_register): Find saved registers in the next
9207 not prev frame.
9208 Fix PR gdb/365.
9209
9210 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9211
9212 * gdbarch.sh (LANG): Set to ``c''.
9213
9214 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9215
9216 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9217
9218 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9219
9220 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9221 Update copyright.
9222
9223 * hpread.c (hpread_get_lntt): Add declaration.
9224 Also fix PR gdb/391.
9225
9226 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9227
9228 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9229 * aclocal.m4, configure: Re-generate.
9230 Fix PR gdb/391.
9231
9232 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9233
9234 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9235 instead of tm_print_insn.
9236
9237 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9238
9239 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9240
9241 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9242
9243 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9244 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9245 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9246
9247 2002-04-12 Don Howard <dhoward@redhat.com>
9248
9249 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9250 max_user_call_depth.
9251 (init_cmd_lists): Initialize the new value;
9252 * cli/cli-script.c (execute_user_command): Limit the call depth of
9253 user defined commands. This avoids a core-dump when user commands
9254 are infinitly recursive.
9255
9256 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9257
9258 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9259 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9260 from tdep struct instead of DEFAULT_LR_SAVE.
9261 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9262 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9263 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9264
9265 2002-04-12 Michael Snyder <msnyder@redhat.com>
9266
9267 * Remote.c: Spelling fix.
9268 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9269 If no symbol found for "sbrk", try "_sbrk".
9270 (make_output_phdrs): Use bfd_section_name.
9271 (gcore_copy_callback): Use bfd_section_name.
9272 * eval.c: Indentation fix-ups.
9273 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9274 in case it gets applied to an address that is already
9275 in the instruction space.
9276 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9277 * symfile.c: Fix indentation, long lines.
9278 * source.c: White space fix-up.
9279
9280 2002-04-12 Andrew Cagney <cagney@redhat.com>
9281
9282 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9283 * frame.c (frame_register_read): New function. Return non-zero on
9284 success.
9285 (read_relative_register_raw_bytes_for_frame): Delete.
9286 (read_relative_register_raw_bytes): Delete.
9287 * frame.h (frame_register_read): Declare.
9288 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9289 * sh-tdep.c: Ditto.
9290 * infcmd.c (do_registers_info): Ditto.
9291 * hppa-tdep.c: Ditto.
9292 * rs6000-tdep.c: Ditto.
9293 * h8500-tdep.c: Ditto.
9294 * mips-tdep.c: Ditto.
9295 * h8300-tdep.c: Ditto.
9296 * z8k-tdep.c: Ditto.
9297
9298 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9299
9300 From Jimi X <jimix@watson.ibm.com>:
9301 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9302 64-bit SysV ABI.
9303
9304 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9305
9306 From Jimi X <jimix@watson.ibm.com>:
9307 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9308 bfd info.
9309
9310 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9311
9312 From Jimi X <jimix@watson.ibm.com>:
9313 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9314 register sets for these processor variants.
9315
9316 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9317
9318 * regformats/reg-ppc.dat: Support FPSCR.
9319
9320 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9321
9322 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9323 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9324 Add fpscr as an invalid/unfetchable register.
9325 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9326 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9327 (fill_fpregset): Add support for register fpscr.
9328 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9329 (fill_gregset): Account for the fact that register ``mq'' might
9330 not exist.
9331 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9332 (registers_power): Add fpscr to register set at slot 71.
9333 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9334 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9335
9336 2002-04-11 Michael Snyder <msnyder@redhat.com>
9337
9338 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9339 * configure: Regenerate.
9340 * config.in: Regenerate.
9341 * acconfig.h: Add define for _SYSCALL32.
9342 * core-sol2.c: Remove #define _SYSCALL32.
9343 * solib-legacy.c: Remove #define _SYSCALL32.
9344
9345 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9346
9347 * stack.c (select_frame): Cleanup internal error message, do not
9348 use %p.
9349
9350 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9351
9352 * stack.c (select_frame): Check that selected_frame and the
9353 specified level are as expected.
9354 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9355 Update copyright.
9356 * frame.h (struct frame_info): Add field `level'. Update
9357 copyright.
9358 Work-in-progress PR gdb/464.
9359
9360 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9361
9362 * maint.c (maint_print_section_info): Rename print_section_info.
9363 (print_bfd_section_info, print_objfile_section_info): Update.
9364 * inferior.h (struct gdbarch): Add opaque declaration.
9365 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9366 * gdbarch.h: Regenerate.
9367
9368 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9369
9370 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9371 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9372 (kernel_u_size): Added.
9373 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9374 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9375
9376 2002-04-04 Jim Ingham <jingham@apple.com>
9377
9378 * valarith.c (find_size_for_pointer_math): New function, either returns
9379 the size for a pointer's target, returns 1 for void *, or errors for
9380 incomplete types.
9381 (value_add, value_sub): use find_size_for_pointer_math.
9382
9383 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9384
9385 * linux-low.c (linux_look_up_symbols): New hook.
9386 (linux_target_ops): Add linux_look_up_symbols.
9387 * remote-utils.c (decode_address): New function.
9388 (look_up_one_symbol): New function.
9389 * server.c (handle_query): Call target look_up_symbols hook.
9390 * server.h (look_up_one_symbol): Add prototype.
9391 * target.h (struct target_ops): Add look_up_symbols hook.
9392
9393 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9394
9395 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9396 override FP_REGNUM with frame->fp. Update copyright.
9397 * parse.c (num_std_regs, std_regs): Delete.
9398 (target_map_name_to_register): Do not search std_regs. Update
9399 function description.
9400 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9401 declarations. Update copyright.
9402 Fix PR gdb/251.
9403
9404 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9405
9406 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9407 after the last symbol in a block.
9408
9409 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9410
9411 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9412 is non zero as a found symbol.
9413
9414 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9415
9416 * findvar.c: Include "builtin-regs.h".
9417 (value_of_register): Call value_of_builtin_reg when applicable.
9418 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9419 (target_map_name_to_register): Call
9420 builtin_reg_map_name_to_regnum.
9421 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9422 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9423 (builtin_regs_h): Define.
9424 (builtin-regs.o): New target.
9425 (findvar.o): Add $(builtin_regs_h).
9426 * builtin-regs.c, builtin-regs.h: New files.
9427 * std-regs.c: New file.
9428 Partial fix for PR gdb/251.
9429
9430 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9431
9432 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9433 it's no longer required.
9434
9435 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9436
9437 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9438
9439 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9440
9441 From Jimi X <jimix@watson.ibm.com>:
9442 * rs6000-tdep.c (rs6000_software_single_step): Use
9443 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9444 and size. Use target_insert_breakpoint() and
9445 target_remove_breakpoint() to insert and remove breakpoints
9446 instead of explicit memory reads and writes.
9447
9448 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9449
9450 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9451 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9452 ELF_OBJECT_FORMAT ifdef.
9453
9454 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9455
9456 From Jimi X <jimix@watson.ibm.com>:
9457 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9458
9459 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9460
9461 From Jimi X <jimix@watson.ibm.com>:
9462 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9463 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9464
9465 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9466
9467 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9468 s/asprintf/xasprintf/.
9469 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9470
9471 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9472
9473 I believe Jeff Law denies responsability for this one:
9474 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9475 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9476 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9477 Work-around for PR gdb/366.
9478
9479 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9480
9481 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9482 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9483 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9484
9485 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9486
9487 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9488 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9489 information.
9490
9491 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9492
9493 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9494 maintainer.
9495
9496 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9497
9498 * README (Reporting Bugs in GDB): Document the bug web page as the
9499 prefered way of submitting bugs.
9500 Fix PR gdb/402.
9501
9502 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9503
9504 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9505 -1. Update comment.
9506 * gdbarch.h, gdbarch.c: Re-generate.
9507
9508 2002-04-07 Andreas Schwab <schwab@suse.de>
9509
9510 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9511 buffer to regcache_collect.
9512
9513 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9514
9515 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9516 * gdbarch.c, gdbarch.h: Re-generate.
9517
9518 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9519
9520 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9521 declaration. Fix -Werror.
9522
9523 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9526 * gdbarch.c: Regenerate.
9527
9528 2002-04-05 Michael Snyder <msnyder@redhat.com>
9529
9530 * breakpoint.c (clear_command): Rewrite middle section to
9531 combine two loops with identical control conditions.
9532 Add a cleanup to eliminate a memory leak.
9533 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9534
9535 2002-04-05 H.J. Lu (hjl@gnu.org)
9536
9537 * solib-svr4.c (bkpt_names): Add "__start".
9538
9539 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9540
9541 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9542 as test for 64 bit target.
9543
9544 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9545
9546 * h8500-tdep.c (h8500_write_fp): Delete function.
9547 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9548 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9549 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9551 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9552 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9553 (s390_write_fp):
9554 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9555 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9556 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9557 (d10v_write_fp): Delete function.
9558 * inferior.h (write_fp, generic_target_write_fp): Delete
9559 declarations.
9560 * regcache.c (generic_target_write_fp): Delete function.
9561 (write_fp): Delete function.
9562 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9563 * gdbarch.h, gdbarch.c: Regenerate.
9564 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9565 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9566 (sparc64_write_fp): Delete declaration.
9567 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9568 (h8500_write_fp): Delete declaration.
9569
9570 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9571
9572 * sparc-tdep.c (sparc64_write_fp): Delete.
9573 (sparc_push_dummy_frame): Replace write_fp call with code to store
9574 the FP directly.
9575 (sparc_gdbarch_init): Do not initialize write_fp.
9576
9577 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9578
9579 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9580 clause.
9581
9582 2002-03-29 Jim Blandy <jimb@redhat.com>
9583
9584 * stack.c (get_selected_block): Add new argument `addr_in_block',
9585 used to return the exact code address we used to select the block,
9586 not just the block.
9587 * blockframe.c (get_frame_block, get_current_block): Same.
9588 * frame.h (get_frame_block, get_current_block,
9589 get_selected_block): Update declarations.
9590 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9591 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9592
9593 2002-04-05 Michael Snyder <msnyder@redhat.com>
9594
9595 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9596 warning message.
9597
9598 2002-04-05 J. Brobecker <brobecker@gnat.com>
9599
9600 * utils.c (xfullpath): New function.
9601 * defs.h (xfullpath): Add declaration.
9602 * source.c (openp): Use xfullpath in place of gdb_realpath to
9603 avoid resolving the basename part of filenames when the
9604 associated file is a symbolic link. This fixes a potential
9605 inconsistency between the filenames known to GDB and the
9606 filenames it prints in the annotations.
9607 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9608 to be able to match a filename with either the real filename, or
9609 the name of any symbolic link to this file.
9610 (lookup_partial_symtab): Ditto.
9611
9612 2002-04-04 Michael Snyder <msnyder@redhat.com>
9613
9614 * breakpoint.c: Add support for hardware breakpoints in overlays.
9615 (overlay_events_enabled): New state variable.
9616 (insert_breakpoints): Use overlay_events_enabled to decide
9617 whether to attempt to set a breakpoint at the overlay load addr.
9618 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9619 (remove_breakpoint): Use overlay_events_enabled to decide
9620 whether breakpoints need to be removed from overlay load addr.
9621 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9622 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9623 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9624 disable_overlay_breakpoints): Update overlay_events_enabled.
9625
9626 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9627
9628 * dwarf2read.c (struct function_range): New.
9629 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9630 (check_cu_functions): New.
9631 (read_file_scope): Initialize global function lists.
9632 Call dwarf_decode_line after processing children.
9633 (read_func_scope): Add to global function list.
9634 (dwarf_decode_lines): Call check_cu_functions everywhere
9635 record_line is called. Call record_line with a linenumber
9636 of 0 to mark sequence ends.
9637
9638 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9639
9640 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9641 change sync with glibc.
9642
9643 2002-04-03 Jim Blandy <jimb@redhat.com>
9644
9645 * configure.in: Call AC_C_INLINE.
9646 * configure: Regenerated.
9647
9648 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9649
9650 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9651 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9652
9653 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9654
9655 * NEWS: Mention gcore support on FreeBSD/i386.
9656
9657 * fbsd-proc.c: New file.
9658 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9659 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9660
9661 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9662 while statement.
9663
9664 2002-03-29 Jim Blandy <jimb@redhat.com>
9665
9666 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9667 unescaped newlines in string literals, but newer ones don't. So
9668 escape them.
9669
9670 2002-03-26 Michael Snyder <msnyder@redhat.com>
9671 Andrew Cagney <cagney@redhat.com>
9672
9673 * cli/cli-dump.c: New file. Dump memory to file,
9674 restore file to memory.
9675 * cli/cli-dump.h: New file.
9676 * Makefile.in: Add rules, dependencies for cli-dump.o.
9677 * NEWS: Mention new commands.
9678
9679 2002-03-28 Michael Snyder <msnyder@redhat.com>
9680
9681 * symfile.c (symbol_file_add): Move test for null symbols to later.
9682
9683 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9684
9685 From veksler at il.ibm.com:
9686 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9687 the xstrduped original path.
9688 Fix PR gdb/417.
9689
9690 2002-03-27 Michael Snyder <msnyder@redhat.com>
9691
9692 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9693 * infcmd.c (_initialize_infcmd): Ditto.
9694 * language.c (_initialize_language): Ditto.
9695 * symfile.c (_initialize_symfile): Ditto.
9696 * top.c (_init_main): Ditto.
9697 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9698
9699 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9700
9701 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9702 vector registers handling.
9703 (skip_prologue): Handle new AltiVec instructions. Fill in new
9704 fields of frame data.
9705 (frame_get_saved_regs): Fill in information for AltiVec registers.
9706
9707 2002-03-27 Jim Blandy <jimb@redhat.com>
9708
9709 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9710 a function; leave this macro here to invoke that function.
9711 (symbol_init_mangled_name): Declaration for that function.
9712 * symtab.c (symbol_init_mangled_name): New function.
9713
9714 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9715
9716 * valarith.c: Replace strerror with safe_strerror.
9717 * tracepoint.c: Ditto.
9718 * lin-lwp.c: Ditto.
9719 * go32-nat.c: Ditto.
9720 * inflow.c: Ditto.
9721 * gnu-nat.c: Ditto.
9722
9723 2002-03-27 Andreas Schwab <schwab@suse.de>
9724
9725 * event-top.c (command_line_handler): Remove useless if.
9726
9727 2002-03-27 Andreas Jaeger <aj@suse.de>
9728
9729 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9730 comment.
9731
9732 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9733
9734 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9735 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9736 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9737 (x86_64_linux_dr_get_status, supply_gregset),
9738 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9739 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9740 (x86_64_register_info_table): Add.
9741 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9742 (x86_64_register_raw_size, x86_64_register_virtual_type),
9743 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9744 general x86_64_register_info_table.
9745 (i386_gdbarch_init): gdbarch_register_bytes is now set
9746 dynamicaly during initialization.
9747 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9748 * gdbserver/linux-x86-64-low.c: Ditto.
9749
9750 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9751
9752 * gdbserver/server.c (main): Call target_signal_to_host_p
9753 and target_signal_to_host on signals received from the remote.
9754 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9755 target_signal_from_host on signals sent to the remote.
9756 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9757 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9758
9759 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9760
9761 * signals/signals.c: Include "server.h" in gdbserver build.
9762 (target_signal_from_name): Don't use STREQ.
9763 (_initialize_signals): Likewise. Don't include function in
9764 gdbserver build.
9765
9766 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9767
9768 * signals.c: Moved to...
9769 * signals/signals.c: Here.
9770 * Makefile (signals.o): Update.
9771
9772 2002-03-26 Jeff Law (law@redhat.com)
9773
9774 * somread.c (som_symtab_read): Remove some commented out code and
9775 updated related comments. Do not set the minimal symbol table to
9776 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9777 in a dynamic executable.
9778 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9779 where we are unable to find the minimal symbol for the given
9780 PC value.
9781
9782 2002-03-25 Jeff Law (law@redhat.com)
9783
9784 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9785
9786 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9787
9788 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9789
9790 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9791
9792 * command.h: Update copyright.
9793 (struct cmd_list_element): Replace definition with opaque
9794 declaration.
9795 (enum cmd_types): Document that it will eventually be moved to
9796 cli/cli-decode.h
9797 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9798 (MALLOCED_REPLACEMENT): Delete macro.
9799 * Makefile.in (cli_decode_h): Add $(command_h).
9800 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9801 * top.c: Include "cli/cli-decode.h".
9802 * completer.c: Include "cli/cli-decode.h".
9803 * maint.c: Include "cli/cli-decode.h".
9804 * cli/cli-decode.h: Include "command.h".
9805 (enum command_class): Delete.
9806 (enum cmd_types): Comment out.
9807 (enum cmd_auto_boolean): Delete.
9808 (enum var_types): Delete.
9809
9810 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9811
9812 * cli/cli-decode.c: Include "gdb_assert.h".
9813 (add_set_or_show_cmd): New static function.
9814 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9815 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9816 all fields, such as func, from the set command.
9817
9818 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9819
9820 * MAINTAINERS (sh-elf): Change warning flag to -w.
9821
9822 2002-03-23 Andrew Cagney <cagney@redhat.com>
9823
9824 * defs.h (error): Add printf format attribute.
9825 * thread-db.c (thread_from_lwp): Fix error format string.
9826 * stack.c (parse_frame_specification): Ditto.
9827 * cli/cli-decode.c (undef_cmd_error): Ditto.
9828 * scm-lang.c (scm_lookup_name): Ditto.
9829 * tracepoint.c (trace_error): Ditto.
9830 * remote-utils.c (usage): Ditto.
9831 * remote.c (compare_sections_command): Ditto.
9832 Fix PR gdb/328.
9833
9834 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9835
9836 * gdbtypes.c (append_composite_type_field): New function.
9837 (init_composite_type): New function.
9838 * gdbtypes.h (append_composite_type_field): Declare.
9839 (init_composite_type): Ditto.
9840
9841 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9842
9843 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9844 function.
9845 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9846 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9847 structure returning convention for SYSV ABI case, but not
9848 for GNU/Linux, FreeBSD, or NetBSD.
9849
9850 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * symtab.h (lookup_block_symbol): Add mangled_name argument
9853 to prototype.
9854
9855 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9856 with new mangled_name argument.
9857 * linespec.c (decode_line_1): Likewise.
9858 * valops (value_of_this): Likewise.
9859 * symtab.c (lookup_transparent_type): Likewise.
9860 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9861 (lookup_symbol): If we are given a mangled name, pass it down
9862 to lookup_symbol_aux.
9863 (lookup_block_symbol): If we are given a mangled name to check
9864 against, only return symbols which match it.
9865
9866 2002-03-22 Christopher Faylor <cgf@redhat.com>
9867
9868 * win32-nat.c (child_create_inferior): Check for proper shell to use
9869 here, in case the user changes it on the fly.
9870 (_initialize_inftarg): Remove shell path considerations.
9871
9872 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9873
9874 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9875 for gdbarch_max_register_raw_size and max_register_virtual_size.
9876 Adjust copyright year.
9877
9878 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9879
9880 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9881 in a function to cover the entire beginning of the function
9882 as well if it does not already.
9883
9884 2002-03-21 Tom Rix <trix@redhat.com>
9885
9886 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9887 (rs6000_ptrace64): Renamed from ptrace64.
9888
9889 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9890
9891 * gdbserver/remote-utils.c (remote_open): Don't call
9892 getprotobyname, we're all using TCP here so just use
9893 IPPROTO_TCP.
9894 * gdbserver/gdbreplay.c (remote_open): Ditto.
9895
9896 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9897
9898 * regcache.c (_initialize_regcache): No need to call
9899 build_regcache() at this time; it gets called whenever
9900 the gdbarch changes.
9901
9902 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9903
9904 * sparc-nat.c: Include sys/param.h where possible.
9905
9906 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9907
9908 Fix PR gdb/422.
9909 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9910 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9911 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9912 complex types.
9913 * stabsread.c (rs6000_builtin_type): Likewise.
9914 (read_sun_floating_type): Likewise.
9915
9916 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9917
9918 * stabsread.c (read_member_functions): Remove skip code for duplicate
9919 constructor/destructor methods. Use standard parsing for these
9920 methods and just do not chain them to the list of methods after
9921 parsing.
9922
9923 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9924
9925 * coffread.c: Remove redundant static declarations. Replace
9926 occurrences of `PTR' with `void *'.
9927 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9928 * top.h (quit_cover): Likewise.
9929 * defs.h (catch_errors): Likewise.
9930
9931 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9932
9933 * defs.h (XMALLOC): Define.
9934 * gdb-events.sh (XMALLOC): Delete macro.
9935 * gdb-events.c, gdb-events.h: Regenerate.
9936 * gdbarch.sh (XMALLOC): Delete macro.
9937 * gdbarch.c: Regenerate.
9938 * serial.c (XMALLOC): Delete macro.
9939 * ui-file.c (XMALLOC): Ditto.
9940 * ser-unix.h (XMALLOC): Ditto.
9941 * sh-tdep.c (XMALLOC): Ditto.
9942 * ui-out.c (XMALLOC): Ditto.
9943 * utils.c (XMALLOC): Ditto.
9944 * i386-tdep.c (XMALLOC): Ditto.
9945 * gdb-events.c (XMALLOC): Ditto.
9946 * d10v-tdep.c (XMALLOC): Ditto.
9947 * cli-out.c (XMALLOC): Ditto.
9948
9949 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9950 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9951 * ui-file.c, ui-out.c: Ditto.
9952
9953 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9954
9955 * command.h (struct cmd_list_element): Add field context.
9956 (set_cmd_context, get_cmd_context): Declare.
9957 * cli/cli-decode.h: Ditto.
9958 * cli/cli-decode.c (get_cmd_context): New function.
9959 (set_cmd_context): New function.
9960 (add_cmd): Initialize context.
9961 Part of fixing PR gdb/145 and PR gdb/146.
9962
9963 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9964
9965 * cli/cli-decode.c (cmd_type): New function.
9966 * command.h (cmd_type): Declare.
9967 * infrun.c (set_schedlock_func): Call function cmd_type.
9968 * kod.c (kod_set_os): Call cmd_type.
9969 * cris-tdep.c (cris_version_update): Use function cmd_type.
9970 (cris_mode_update, cris_abi_update): Ditto.
9971
9972 * command.h: (execute_cmd_post_hook): Declare.
9973 (execute_cmd_pre_hook): Declare.
9974 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9975 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9976 functions. Execute pre/post hook while ensuring that afterwords
9977 hook_in is cleared.
9978 * top.c (execute_command): Use execute_cmd_post_hook, and
9979 execute_cmd_pre_hook to execute pre/post commands.
9980 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9981 hook_stop_stub.
9982 (hook_stop_stub): Call execute_cmd_pre_hook.
9983
9984 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9985
9986 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9987 set'' and this leads to a core dump. Move xstrdup of
9988 operating_system to after check that it is not NULL.
9989
9990 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9991
9992 * kod.c (kod_set_os): Remove unnecessary check that
9993 ``command->type'' is set_cmd.
9994
9995 * valprint.c (set_input_radix): Use input_radix.
9996 (set_output_radix): Use output_radix.
9997 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9998 isn't reverted.
9999
10000 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10001
10002 * value.h (struct value): Delete field ``substring_addr''. Change
10003 aligner fields to force_doublest_align, force_longest_align,
10004 force_core_addr_align and force_pointer_aligh.
10005
10006 * value.h (struct value): Fix typo in above change.
10007
10008 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10009
10010 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10011 to fix internal_error from ``maintenance print architecture''.
10012
10013 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10014
10015 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10016 for gcc versions after gcc-2.8.1.
10017
10018 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10019
10020 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10021 for method resolution. Restore adjustment of ``this'' pointer after
10022 calling value_struct_elt, which was accidentally removed during the
10023 HP merge.
10024
10025 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10026
10027 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10028 value_of_register.
10029 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10030 get_saved_register.
10031 * value.h (value_of_register): Update.
10032
10033 2002-03-14 Richard Henderson <rth@redhat.com>
10034
10035 * configure.in: Detect declaration for canonicalize_file_name.
10036 * utils.c (canonicalize_file_name): Declare, if needed.
10037 (gdb_realpath): Prefer realpath if available and usable.
10038 * config.in, configure: Rebuild.
10039
10040 2002-03-14 Richard Henderson <rth@redhat.com>
10041
10042 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10043 a constant array bound.
10044
10045 * MAINTAINERS: Add myself to write-after-approval.
10046
10047 2002-03-14 Michael Snyder <msnyder@redhat.com>
10048
10049 * symfile.c (syms_from_objfile): Return immediately if no syms.
10050 (symbol_file_add): Return immediately if no syms.
10051 (find_sym_fns): Return immediately if no syms.
10052
10053 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10054
10055 * gdbserver/remote-util.c (remote_open): Print remote-side's
10056 IP address when remote debugging over the network.
10057
10058 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10059
10060 * config/sparc/fbsd.mh: Fix copyright.
10061 * config/sparc/fbsd.mt: Likewise.
10062
10063 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10064
10065 * MAINTAINERS: Fix typo in name of gdb warnings option.
10066 (x86-64): Fix formating so that this can be parsed by awk.
10067
10068 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10071 * defs.h: Include "gdb/signals.h".
10072 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10073
10074 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10075
10076 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10077 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10078 from x86-64-tdep.h
10079
10080 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10081 Don Howard <dhoward@redhat.com>
10082
10083 * mips-tdep.c (ST0_FR): Define.
10084 (mips2_fp_compat): New function, temporarily disabled.
10085 (mips_read_fp_register_single): New function.
10086 (mips_read_fp_register_double): New function.
10087 (mips_print_register): Use them.
10088 (do_fp_register_row): Likewise.
10089
10090 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10091
10092 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10093 approval''.
10094
10095 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10096
10097 * stabsread.c (read_member_functions): Fix is_stub test for
10098 static member functions, improve comment.
10099
10100 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10101
10102 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10103 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10104 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10105 commands that set boolean values.
10106 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10107 (arm_rdi_resume): Always initialize PC.
10108 (arm_rdi_open): Don't use rslt as a boolean.
10109 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10110 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10111 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10112 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10113
10114 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10115
10116 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10117 * configure: Rebuilt.
10118
10119 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10120
10121 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10122 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10123
10124 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10125
10126 * cli/cli-decode.c (set_cmd_completer): New function.
10127 * command.h (set_cmd_completer): Declare.
10128 * cli/cli-decode.h (set_cmd_completer): Ditto.
10129
10130 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10131 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10132 * win32-nat.c (_initialize_inftarg): Ditto.
10133 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10134 * proc-api.c (_initialize_proc_api): Ditto.
10135 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10136 * source.c (_initialize_source): Ditto.
10137 * exec.c (_initialize_exec): Ditto.
10138 * solib.c (_initialize_solib): Ditto.
10139 * top.c (init_main): Ditto.
10140 * tracepoint.c (_initialize_tracepoint): Ditto.
10141 * symfile.c (_initialize_symfile): Ditto.
10142 * printcmd.c (_initialize_printcmd): Ditto.
10143 * infcmd.c (_initialize_infcmd): Ditto.
10144 * corefile.c (_initialize_core): Ditto.
10145
10146 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10147
10148 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10149
10150 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10151
10152 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10153
10154 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10155
10156 * NEWS: Update headings, 5.2 has branched.
10157
10158 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10161 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10162 (register_addr, REGISTER_RAW_SIZE): Likewise.
10163 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10164 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10165
10166 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10167
10168 * MAINTAINERS (x86-64): Add myself.
10169 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10170 changed value_ptr -> struct value *
10171
10172 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10173
10174 * configure.host (sparc64-*-freebsd): Add.
10175 * configure.tgt: Likewise.
10176 * config/sparc/fbsd.mh: New file.
10177 * config/sparc/fbsd.mt: Likewise.
10178 * config/sparc/nm-fbsd.h: Likewise.
10179 * config/sparc/tm-fbsd.h: Likewise.
10180
10181 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10184 regformats/reg-s390x.dat.
10185
10186 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10187
10188 * utils.c: Add FIXME explaining true/false problem.
10189
10190 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10191
10192 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10193
10194 2002-02-28 Michael Chastain <mec@shout.net>
10195
10196 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10197
10198 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10199
10200 * gdbserver/linux-s390-low.c: New file.
10201 * regformats/reg-s390.dat: New file.
10202 * regformats/reg-s390x.dat: New file.
10203 * gdbserver/configure.srv: Add S/390.
10204 * gdbserver/Makefile.in: Add S/390.
10205 * configure.tgt: Enable gdbserver for S/390.
10206
10207 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10208
10209 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10210 first line of the doc string for "info dos", except at the end of
10211 the sentence, since the short help stops at the first period.
10212
10213 2002-02-28 Jason Merrill <jason@redhat.com>
10214
10215 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10216
10217 2002-02-27 Fred Fish <fnf@redhat.com>
10218
10219 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10220 comment (dumy -> dummy).
10221
10222 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10223
10224 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10225
10226 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10227
10228 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10229
10230 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10231
10232 * gdbserver/acconfig.h: New file.
10233 * gdbserver/i387-fp.c: New file.
10234 * gdbserver/i387-fp.h: New file.
10235 * gdbserver/linux-x86-64.c: New file.
10236 * regformats/reg-x86-64.dat: New file.
10237 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10238 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10239 * gdbserver/configure.in: Add support for regsets.
10240 * gdbserver/config.in: Regenerate.
10241 * gdbserver/configure: Regenerate.
10242 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10243 * gdbserver/linux-low.h: New file.
10244 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10245 for regsets.
10246 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10247 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10248 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10249 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10250 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10251 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10252 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10253 "i387-fp.h". Add PTRACE_GETREGS and friends.
10254 * gdbserver/regcache.c (supply_register): New function.
10255 (supply_register_by_name): New function.
10256 (collect_register): New function.
10257 (collect_register_by_name): New function.
10258
10259 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10260
10261 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10262 (config.status): Add configure.srv dependency.
10263 (server_h): Add config.h dependency.
10264
10265 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10266
10267 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10268 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10269 * gdbserver/configure.srv: Change i386-*-linux* to use
10270 reg-i386-linux.o.
10271
10272 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10273
10274 * x86-64-tdep.c: Re-indent. Update copyright date.
10275
10276 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10277
10278 From Michal Ludvig <mludvig@suse.cz>:
10279 * x86-64-tdep.c (value.h): Delete.
10280 (gdb_assert.h): Include.
10281 (x86_64_register_convert_to_virtual,
10282 x86_64_register_convert_to_raw ): Add check which lets only
10283 floating-point values to be converted.
10284 (value_push): Delete.
10285 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10286 (i386_gdbarch_init): Number of register_bytes fixed.
10287
10288 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10289
10290 * MAINTAINERS: Add x86-64 target.
10291
10292 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10293
10294 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10295 * osfsolib.c (solib_map_sections): Ditto.
10296 * irix5-nat.c (solib_map_sections): Ditto.
10297 * corelow.c (gdb_check_format): Ditto.
10298 * symfile.c (symfile_bfd_open): Ditto.
10299 * solib.c (solib_map_sections): Ditto.
10300 Fix PR gdb/354.
10301
10302 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10303
10304 * remote.c (_initialize_remote): By default, disable ``e'' and
10305 ``E'' step out-of-range packets.
10306
10307 2002-02-26 Andreas Schwab <schwab@suse.de>
10308
10309 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10310 m68k_linux_frame_saved_pc.
10311 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10312 in_sigtramp.
10313 (SIGCONTEXT_PC_OFFSET): Remove.
10314 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10315 m68k_linux_sigtramp_saved_pc): New functions.
10316 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10317 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10318 (UCONTEXT_PC_OFFSET): Define.
10319 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10320 non-RT and RT signal trampolines.
10321
10322 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10323
10324 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10325 (TARGET_NBPG, STACK_END_ADDR): Delete
10326 (VARIABLES_INSIDE_BLOCK): Delete.
10327
10328 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10329
10330 * utils.c (perror_with_name): Make string parameter constant.
10331 (print_sys_errmsg): Ditto.
10332 (query): Ditto.
10333 * defs.h (perror_with_name): Update.
10334 (print_sys_errmsg): Update.
10335 (query): Update.
10336
10337 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10338
10339 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10340 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10341
10342 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10343
10344 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10345 if it already matches the current architecture from the exec file.
10346 Include arch-utils.h for gdbarch_info_init prototype.
10347 * Makefile.in (rs6000-nat.o): Update dependencies.
10348
10349 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10350
10351 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10352 list of exported variables.
10353
10354 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * gdbserver/configure.srv: New file.
10357 * gdbserver/configure.in: Use configure.srv instead
10358 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10359 from it.
10360 * gdbserver/configure: Regenerated.
10361 * gdbserver/terminal.h: New file.
10362 * gdbserver/Makefile.in: Update for configure changes. Remove
10363 more unneeded include paths.
10364
10365 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10366
10367 From wiz at danbala:
10368 * config/sparc/tm-sp64.h: Fix grammar and typos.
10369 Fix PR gdb/287.
10370
10371 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10372
10373 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10374 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10375 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10376 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10377 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10378 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10379 * s390-tdep.c: Ditto.
10380 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10381 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10382 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10383 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10384 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10385 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10386 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10387 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10388 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10389 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10390 Fix PR gdb/378.
10391
10392 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10393
10394 * lin-thread.c: Delete file.
10395 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10396 to gdb_proc_service.h.
10397 * configure: Re-generate.
10398
10399 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10400 * serial.c (serial_open): Delete check for "ocd".
10401 Fix PR gdb/349.
10402
10403 * Makefile.in (linux-thread.o): Delete target.
10404 * linux-thread.c: Delete file.
10405
10406 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10407 renamed SH files to be consistent.
10408
10409 * symtab.c (sort_search_symbols): Use xfree.
10410
10411 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10412
10413 * arm-linux-tdep.c (arm_linux_init_abi): Register
10414 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10415 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10416 definition with undef, since we don't want the sysvr4 definition.
10417 (SKIP_TRAMPOLINE_CODE): Likewise.
10418
10419 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10420
10421 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10422
10423 * configure.in: (AC_CHECK_FUNCS) Added test for
10424 canonicalize_file_name Regenerated.
10425 * config.in, configure: Regenerated.
10426 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10427 defined use canonicalize_file_name.
10428
10429 2002-02-23 Michael Chastain <mec@shout.net>
10430
10431 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10432
10433 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10434
10435 * README: Remove references to cygnus.com.
10436 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10437 dot com'' form. Remove references to cygnus.com and sourceware.
10438
10439 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10440
10441 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10442 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10443 1003.1-2001 no longer allows "head -1".
10444 * gdb/Makefile.in (version.c): Likewise.
10445 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10446 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10447 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10448
10449 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10450
10451 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10452 * command.h (cmd_cfunc_eq): Declare.
10453 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10454
10455 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10456 ``struct cmd_list_element *''.
10457 * cli/cli-cmds.c (is_complete_command): Update. Use
10458 cmd_cfunc_eq.
10459 * top.c (execute_command): Pass the command to
10460 is_complete_command.
10461 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10462
10463 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10464
10465 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10466 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10467 architecture defines.
10468 * s390-tdep.c (s390_gdbarch_init): Likewise.
10469
10470 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10471
10472 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10473 (arm_linux_push_arguments): Likewise.
10474 (arm_linux_init_abi): Register them. Also register linux-specific
10475 call_dummy_words.
10476 (find_minsym_and_objfile): Use strcmp, not STREQ.
10477 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10478 (arm_linux_call_dummy_words): Delete declaration.
10479 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10480 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10481 declarations.
10482 (LOWEST_PC): Delete.
10483
10484 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10485
10486 * maint.c (print_section_info): Do not prepend `0x' to filepos
10487 output, it will be handled by local_hex_string_custom.
10488
10489 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10490
10491 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10492 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10493 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10494
10495 2002-02-22 Jim Blandy <jimb@redhat.com>
10496
10497 Indicate that the bcache functions don't change the strings
10498 they're passed.
10499 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10500 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10501
10502 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10503
10504 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10505
10506 2002-02-21 Christopher Faylor <cgf@redhat.com>
10507
10508 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10509 find the complete path to a loaded DLL.
10510
10511 2002-02-21 Fred Fish <fnf@redhat.com>
10512
10513 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10514 that marks the end of the range of a function, enter a line number
10515 entry that has a line number of zero and a PC offset that matches
10516 the end of the function. This starts a range of PC's for which no
10517 line number information is known.
10518 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10519 PC's for which no line number info is found (line number is zero)
10520 then we didn't find any valid line information.
10521 * symtab.h: Document use of zero line number entry.
10522
10523 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10524
10525 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10526 (have_ptrace_getvrregs): Define for run time checks.
10527 (gdb_vrregset_t): New type for Altivec register handling.
10528 (fetch_register, store_register): Fetch/store altivec register
10529 when needed.
10530 (fetch_altivec_register, store_altivec_register): New functions.
10531 (supply_vrregset, fill_vrregset): New functions.
10532 (fetch_altivec_registers, store_altivec_registers): New functions.
10533 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10534 registers as well.
10535
10536 2002-02-21 Jiri Smid <smid@suse.cz>
10537
10538 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10539
10540 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10541
10542 * Makefile.in (armnbsd-nat.o): Update dependencies.
10543 * armnbsd-nat.c (supply_gregset): New function. Common code to
10544 supply the integer register set.
10545 (supply_fparegset): New function. Similar for FPA registers.
10546 (fetch_regs, fetch_fp_regs): Use them.
10547 (fetch_core_registers): Likewise.
10548 (fetch_elfcore_registers): New function.
10549 (arm_netbsd_elfcore_fns): New core-file type specification.
10550 (_initialize_arm_netbsd_nat): Register it.
10551
10552 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10553
10554 * armnbsd-nat.c: Include gdbcore.h.
10555 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10556 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10557 'void' to declaration, to shut up ARI.
10558 (fetch_core_registers): Make static. Rewrite using supply_register.
10559 (arm_netbsd_core_fns): New core-file type specification.
10560 (_initialize_arm_netbsd_nat): New function.
10561
10562 2002-02-21 Christopher Faylor <cgf@redhat.com>
10563
10564 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10565 value.
10566
10567 2002-02-20 Christopher Faylor <cgf@redhat.com>
10568
10569 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10570 fails.
10571
10572 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * jv-exp.y (parse_number): Change type of implicit longs
10575 to builtin_type_uint64.
10576
10577 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10580 to be an integer instead of a `union wait'.
10581
10582 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10583
10584 * mips-linux-nat.c: Call the operating system GNU/Linux.
10585 * mips-linux-tdep.c: Likewise.
10586 * mips-tdep.c: Likewise.
10587
10588 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10589
10590 Fix PR gdb/265.
10591 * jv-exp.y (parse_number): Handle 64-bit integers.
10592
10593 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10596 AC_STDC_HEADERS to AC_HEADER_STDC.
10597 * gdbserver/configure: Regenerated.
10598
10599 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10600
10601 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10602 is defined.
10603 * sparc-tdep.c (get_longjmp_target): Likewise.
10604
10605 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10606
10607 * News: Add news about ARM and Multi-arch. Mention the new target
10608 arm*-*-netbsd*.
10609
10610 2002-02-19 Jim Blandy <jimb@redhat.com>
10611
10612 * stabsread.c (error_type_complaint): Improve error message.
10613
10614 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10615
10616 * gdbserver/README: Update documentation.
10617 * gdbserver/configure.in: Update configury to match documentation.
10618 * gdbserver/Makefile.in: Likewise.
10619 * gdbserver/configure: Regenerated.
10620 * gdbserver/aclocal.m4: New file, generated by aclocal.
10621 * gdbserver/config.in: New file, generated by autoheader.
10622
10623 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10624
10625 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10626 armnbsd-nat.c.
10627
10628 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10629
10630 * arm-tdep.h (enum arm_float_model): New enum.
10631 (struct gdbarch_tdep): Add fp_model.
10632 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10633 up floating-point conversions until we know the floating-point model
10634 in use by the inferior. Don't complain about being unable to
10635 determine the ABI of the inferior when we don't have one.
10636 (arm_extract_return_value): Support different floating-point models.
10637 (arm_store_return_value): Likewise.
10638 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10639 ARM_FLOAT_SOFT.
10640 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10641
10642 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10643
10644 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10645 of ``current_gdbarch''.
10646
10647 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10648
10649 * armnbsd-nat.c : ANSIfy all function declarations.
10650 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10651 (fetch_inferior_registers): Re-implement in terms of above.
10652 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10653 (store_inferior_registers): Re-implement in terms of above.
10654
10655 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10656
10657 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10658 kernel.
10659 * arm-linux-tdep.c: Likewise.
10660 * config/arm/tm-linux.h: Likewise.
10661
10662 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10663
10664 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10665 * config/arm/nbsd.mt (TM_FILE): Delete.
10666 * config/arm/tm-nbsd.h: Delete.
10667
10668 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10669
10670 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10671 Initialize CALL_DUMMY_LENGTH.
10672
10673 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10674
10675 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10676 function.
10677 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10678 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10679 defines one thing and that is incorrect for this port.
10680 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10681
10682 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10683
10684 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10685
10686 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10687
10688 * win32-nat.c (display_selector): New function. Displays information
10689 about the information returned by GetThreadSelectorEntry API function.
10690 (display_selectors): New function. Displays the infomation of
10691 the selector given as argument, or of CS, DS ans FS selectors
10692 if no argument is given.
10693 ( _initialize_inftarg): Add "w32" as info prefix command.
10694 Add "info w32 selector" as command calling display_selectors.
10695
10696 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10697
10698 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10699 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10700 if not defined.
10701
10702 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10703
10704 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10705
10706 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10707
10708 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10709 (arm_fix_call_dummy): Call it.
10710 (arm_call_dummy_breakpoint_offset): Delete.
10711 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10712 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10713
10714 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10715
10716 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10717 Default to func_frame_chain_valid.
10718 * gdbarch.h, gdbarch.c: Re-generate.
10719 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10720
10721 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10722
10723 * ppc-linux-nat.c: Update copyright.
10724 (fetch_register, store_register): Add tid parameter, don't compute
10725 tid here.
10726 (fetch_ppc_registers, store_ppc_registers): Add tid
10727 parameter. Pass it along to callees.
10728 (fetch_inferior_registers, store_inferior_registers): Compute tid
10729 here, and pass it to calleed functions.
10730 (fill_gregset, supply_fpregset): Clean up formatting.
10731
10732 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10733
10734 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10735 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10736
10737 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10738
10739 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10740 * gdbarch.c gdbarch.h: Regenerate.
10741 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10742 function.
10743 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10744 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10745 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10746
10747 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10748 * arm-tdep.c (arm_get_longjmp_target): New function.
10749 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10750 this to a positive value register arm_get_longjmp_target as the
10751 longjmp handler.
10752 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10753 (arm_linux_init_abi): Set up longjmp description in tdep.
10754 * armnbsd-nat.c (get_longjmp_target): Delete.
10755 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10756 description in tdep.
10757 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10758 (get_longjmp_target): Delete declaration.
10759 (GET_LONGJMP_TARGET): Delete.
10760 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10761 (GET_LONGJMP_TARGET): Delete.
10762
10763 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10764
10765 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10766 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10767 of ``current_gdbarch''.
10768
10769 2002-02-17 Tom Tromey <tromey@redhat.com>
10770
10771 * cli/cli-cmds.c (compare_strings): New function.
10772 (complete_command): Only print each unique item once.
10773 * completer.h (complete_line): Declare.
10774 * completer.c (complete_line): New function.
10775 (line_completion_function): Use it.
10776
10777 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10778
10779 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10780 * gdbarch.h, gdbarch.c: Re-generate.
10781
10782 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10785
10786 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10787
10788 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10789 * valops.c (value_arg_coerce): Don't take the address of a reference
10790 to convert an argument to a reference.
10791
10792 2002-02-15 Christopher Faylor <cgf@redhat.com>
10793
10794 * win32-nat.c (get_image_name): New function.
10795 (handle_load_dll): Use get_image_name function.
10796 (get_child_debug_event): Avoid registering debug events until possibly
10797 execed process is started.
10798 (child_create_inferior): Allow invocation via shell so that command
10799 line redirection, etc. works ok.
10800 (_initialize_inftarg): Add new command: "set shell" to control whether
10801 a shell is used to start a process.
10802
10803 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10806 instead of find_register_by_number.
10807 (cannot_store_register): Likewise.
10808
10809 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10810
10811 * dwarf2read.c: Replace fprintf (stderr, ...) by
10812 fprintf_unfiltered (gdb_stderr, ...).
10813
10814 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * gdbserver/gdbserver.1: Document --attach.
10817
10818 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10819
10820 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10821 descriptions.
10822 * arm-tdep.c (arm_default_arm_le_breakpoint)
10823 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10824 (arm_default_thumb_be_breakpoint): New. Initialize them from
10825 traditional breakpoint defines.
10826 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10827 (arm_gdbarch_init): Initialize new breakpoint variables.
10828 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10829 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10830 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10831 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10832 code out to ...
10833 (arm_netbsd_init_abi_common): ... here; new function.
10834 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10835 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10836 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10837 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10838
10839 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10840
10841 * arm-tdep.h (enum arm_abi): New enum.
10842 (struct gdbarch_tdep): New structure.
10843 (LOWEST_PC): Provide a default.
10844 (arm_gdbarch_register_os_abi): Declare new function.
10845 * arm-tdep.c (arm_abi_names): New array.
10846 (process_note_abi_tag_sections): New function.
10847 (get_elfosabi): New function.
10848 (arm_gdbarch_register_os_abi): New function.
10849 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10850 support for that ABI has been built in, then call the appropriate
10851 configuration routine. Use gdbarch_num_regs() to get the number
10852 of registers.
10853 (arm_dump_tdep): New function.
10854 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10855 place-holder functions.
10856 (_initialize_arm_tdep): Register them.
10857 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10858
10859 * armnbsd-tdep.c: New file.
10860 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10861 * config/arm/nbsd.mt (TDEPFILES): Add it.
10862 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10863
10864 * armnbsd-nat.c: Include regcache.h.
10865 * Makefile.in (armnbsd-nat.o): Update dependency list.
10866
10867 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10868
10869 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * gdbserver/Makefile.in: Fix typos in target rules.
10872
10873 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10874
10875 Fix part of PR gdb/267.
10876 * linespec.c (find_methods): Handle constructors specially for now.
10877
10878 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10879
10880 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10881 handling.
10882 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10883 standard_coerce_float_to_double().
10884
10885 2002-02-14 Christopher Faylor <cgf@redhat.com>
10886
10887 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10888 GDBINIT_FILENAME.
10889
10890 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10891
10892 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10893 find_variant_by_name, because it confuses the multiarch
10894 framework. Return NULL if there isn't an architecture with the
10895 user supplied name, instead of forcing a different one without
10896 recording the change with the multiarch machinery.
10897 (find_variant_by_name): Delete.
10898
10899 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10900
10901 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10902 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10903
10904 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10905
10906 * stack.c (print_frame_info_base): When calling
10907 print_frame_info_listing_hook, set current_source_symtab.
10908
10909 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10912 and remove unused $(INCLUDE_DIR).
10913 Add regcache.c to OBS.
10914 Add generated register protocol files to clean target.
10915 Update dependencies for new objects, obsolete old target code.
10916
10917 * gdbserver/linux-low.c: Remove all platform-specific code to
10918 new files. Remove various dead code. Update to use regcache
10919 functionality.
10920 * gdbserver/remote-utils.c (fromhex): Add return statement
10921 to quiet warning.
10922 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10923 constant.
10924 (input_interrupt): Add integer parameter to match prototype
10925 of a signal handler.
10926 (outreg): Use register_data ().
10927 (prepare_resume_reply): Use gdbserver_expedite_regs.
10928 * gdbserver/server.c (main): Dynamically allocate own_buf because
10929 PBUFSIZ is no longer constant. Use registers_to_string () and
10930 registers_from_string ().
10931 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10932 for error (), fatal (), and warning (). Update definition of
10933 PBUFSIZ to use regcache functionality. Add include guard.
10934 * gdbserver/utils.c (fatal): Add missing ``const''.
10935 (warning): New function.
10936
10937 * regformats/regdat.sh: Include "regcache.h" in generated files.
10938 Provide init_registers () function.
10939 * regformats/regdef.h: Add prototype for set_register_cache ().
10940 Add include guard.
10941
10942 * gdbserver/linux-arm-low.c: New file.
10943 * gdbserver/linux-i386-low.c: New file.
10944 * gdbserver/linux-ia64-low.c: New file.
10945 * gdbserver/linux-m68k-low.c: New file.
10946 * gdbserver/linux-mips-low.c: New file.
10947 * gdbserver/linux-ppc-low.c: New file.
10948 * gdbserver/linux-sh-low.c: New file.
10949
10950 * gdbserver/regcache.c: New file.
10951 * gdbserver/regcache.h: New file.
10952
10953 * gdbserver/low-linux.c: Removed obsolete file.
10954
10955 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10956
10957 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10958 * config/i386/linux.mt: Likewise.
10959 * config/ia64/linux.mt: Likewise.
10960 * config/m68k/linux.mh: Likewise.
10961 * config/powerpc/linux.mh: Likewise.
10962 * config/mips/linux.mt: Likewise.
10963
10964 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10965
10966 * config/i386/i386lynx.mh: Mark gdbserver variables
10967 as (currently) obsolete for this target.
10968 * config/i386/nbsd.mt: Likewise.
10969 * config/i386/nbsdelf.mt: Likewise.
10970 * config/m32r/m32r.mt: Likewise.
10971 * config/m68k/m68klynx.mh: Likewise.
10972 * config/m68k/nbsd.mt: Likewise.
10973 * config/m68k/sun3os4.mh: Likewise.
10974 * config/mips/vr5000.mt: Likewise.
10975 * config/ns32k/nbsd.mt: Likewise.
10976 * config/pa/hppabsd.mh: Likewise.
10977 * config/pa/hppaosf.mh: Likewise.
10978 * config/powerpc/nbsd.mt: Likewise.
10979 * config/rs6000/rs6000lynx.mh: Likewise.
10980 * config/s390/s390.mt: Likewise.
10981 * config/s390/s390x.mt: Likewise.
10982 * config/sparc/sparclynx.mh: Likewise.
10983 * config/sparc/sun4os4.mh: Likewise.
10984 * config/i386/x86-64linux.mt: Likewise.
10985 * config/sparc/linux.mh: Likewise.
10986
10987 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10988
10989 * configure.tgt: Configure gdbserver only for known working
10990 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10991 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10992 SUBDIRS if it is configured. Update comment for ${nativefile}.
10993 * configure: Regenerated.
10994
10995 2002-02-13 Michael Snyder <msnyder@redhat.com>
10996
10997 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10998
10999 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11000 (default_gcore_mach): Just return 0, work around a problem in bfd.
11001 (default_gcore_target): OK to return NULL if exec_bfd is null.
11002 (make_mem_sec): Use a cast, avoid a warning.
11003
11004 * procfs.c (find_memory_regions_callback): Use a cast instead of
11005 calling host_pointer_to_address (which complains if
11006 sizeof (host pointer) != sizeof (target pointer)).
11007 (procfs_make_note_section): Avoid overflow in psargs string.
11008
11009 * procfs.c (procfs_make_note_section): Make the default
11010 implementation return an error.
11011
11012 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11013
11014 * procfs.c (procfs_make_note_section): Provide a default definition
11015 (for alpha-dec-osf4.0f). Fix typos.
11016
11017 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11018
11019 * linux-proc.c: Add include of regcache.h.
11020 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11021
11022 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11023
11024 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11025 * memattr.c (create_mem_region): Disallow useless empty region.
11026 Regions are half-open intervals, so allow [A..B) [B..C) as
11027 non-overlapping.
11028
11029 2002-02-13 Michael Chastain <mec@shout.net>
11030
11031 * defs.h: Kill CONST_PTR.
11032 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11033 * c-lang.c (c_builtin_types): Likewise.
11034 * ch-lang.c (ch_builtin_types): Likewise.
11035 * f-lang.c (f_builtin_types): Likewise.
11036 * language.c (unknown_builtin_types): Likewise.
11037 * m2-lang.c (m2_builtin_types): Likewise.
11038 * p-lang.c (pascal_builtin_types): Likewise.
11039 * scm-lang.c (c_builtin_types): Likewise.
11040
11041 2002-02-13 Keith Seitz <keiths@redhat.com>
11042
11043 * arm-tdep.h (arm_get_next_pc): Add declaration.
11044
11045 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11046
11047 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11048 with other related struct-returning functions.
11049 (arm_extract_struct_value_address): New function.
11050 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11051 initialize float_format, double_format and long_double_format as
11052 appropriate to the endianness of the target.
11053 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11054 (arm_use_struct_convention): Delete declaration.
11055 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11056
11057 2002-02-13 Keith Seitz <keiths@redhat.com>
11058
11059 * defs.h (core_addr_to_string_nz): New function.
11060
11061 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11062
11063 Apply missing bits of 2002-01-15 patch.
11064 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11065 (fill_fpregset): Use i387_fill_fsave.
11066
11067 2002-02-12 Keith Seitz <keiths@redhat.com>
11068
11069 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11070 (core_addr_to_string_nz): New function.
11071
11072 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11073
11074 * arm-linux-nat.c: Really include arm-tdep.h.
11075 * config/arm/tm-linux.h (struct type, struct value): Declare.
11076
11077 2002-02-11 Michael Snyder <msnyder@redhat.com>
11078
11079 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11080 (gcore section): Ifdef for Solaris and Unixware only.
11081 (procfs_do_thread_registers): Unixware needs one lwpstatus
11082 per thread (not one prstatus or pstatus).
11083 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11084 not over all gdb threads. For unixware, call elfcore_write_pstatus
11085 once before iterating over threads.
11086
11087 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11088
11089 * arm-tdep.h: New file.
11090 * arm-tdep.c: Include arm-tdep.h.
11091 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11092 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11093 (arm_print_float_info, arm_register_type, convert_to_extended)
11094 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11095 (arm_extract_return_value, arm_register_name): Make static.
11096 (arm_software_single_step): Similarly. Fix types in declaration.
11097 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11098 (arm_store_return_value, arm_store_struct_return): New functions.
11099 (arm_gdbarch_init): Register the above functions. Also register
11100 call_dummy_start_offset, sizeof_call_dummy_words,
11101 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11102 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11103 max_register_virtual_size, register_size. Set up
11104 prologue_cache.saved_regs here, rather than ...
11105 (_initialize_arm_tdep): ... here.
11106 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11107 declarations.
11108 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11109 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11110 (arm_print_float_info, arm_register_type, convert_to_extended)
11111 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11112 (arm_extract_return_value, arm_register_name): Delete declarations.
11113 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11114 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11115 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11116 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11117 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11118 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11119 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11120 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11121 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11122 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11123 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11124 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11125 interface.
11126 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11127 * remote-rdi.c remote-rdp.c: Likewise.
11128 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11129 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11130 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11131 definition.
11132
11133 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11134 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11135 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11136 from non-ARM_ prefixed definitions.
11137 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11138 all uses of above.
11139 * remote-rdi.c remote-rdp.c: Likewise.
11140 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11141
11142 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11143
11144 * arm-tdep.c (arm_frameless_function_invocation)
11145 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11146 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11147 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11148 (arm_pop_frame, arm_get_next_pc): Make static.
11149 (arm_gdbarch_init): Register above in gdbarch structure.
11150 (arm_read_fp): Renamed from arm_target_read_fp.
11151 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11152 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11153 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11154 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11155 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11156 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11157 (arm_pc_is_thumb_dummy): Delete declarations.
11158 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11159 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11160 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11161 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11162
11163 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11164
11165 * symtab.c (compare_search_syms): New function.
11166 (sort_search_symbols): New function.
11167 (search_symbols): Sort symbols after searching rather than
11168 before.
11169
11170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11171
11172 * NEWS: Linux -> GNU/Linux.
11173
11174 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11175
11176 * gdbarch.sh: For for level one methods, disallow a definition
11177 when partially multi-arched. Add comments explaining rationale.
11178 * gdbarch.h: Re-generate.
11179
11180 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11181
11182 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11183 multi-arch partial.
11184
11185 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11186
11187 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11188 field. Use diff -u.
11189 * gdbarch.c: Re-generate.
11190
11191 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11192
11193 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11194 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11195 partial.
11196
11197 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11198
11199 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11200 multi-arch partial.
11201 (PUSH_ARGUMENTS): Switch to using predefault.
11202 * gdbarch.c: Regenerate.
11203
11204 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11205
11206 * valops.c (PUSH_ARGUMENTS): Delete definition.
11207 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11208 partial. Default to default_push_arguments.
11209 * gdbarch.h, gdbarch.c: Regenerate.
11210
11211 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11212
11213 * defs.h (throw_exception): Rename return_to_top_level. Update
11214 comments.
11215 * utils.c (error_stream, internal_verror, quit): Ditto.
11216 * top.c (throw_exception, catcher): Ditto.
11217 * sparclet-rom.c (sparclet_load): Ditto.
11218 * remote.c (interrupt_query, minitelnet): Ditto.
11219 * remote-sds.c (interrupt_query): Ditto.
11220 * remote-mips.c (mips_error, mips_kill): Ditto.
11221 * ocd.c (interrupt_query): Ditto.
11222 * monitor.c (monitor_interrupt_query): Ditto.
11223 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11224 * target.h: Update comment.
11225
11226 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11227
11228 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11229
11230 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11231 default_double_format.
11232 * gdbarch.h, gdbarch.c: Re-generate.
11233 * findvar.c (floatformat_unknown): Delete variable definition.
11234 * doublest.h (floatformat_unknown): Delete variable declaration.
11235
11236 2002-02-09 Jim Blandy <jimb@redhat.com>
11237
11238 * stabsread.c (read_type): Add code to parse Sun's syntax for
11239 prototyped function types.
11240
11241 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11242
11243 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11244 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11245
11246 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11247
11248 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11249 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11250 now _initialize_xcoffsolib gets called again and overrides the
11251 commands from solib.c in a native configuration.
11252
11253 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11254
11255 * doublest.c (store_typed_floating): Don't try to return a value.
11256 Fixes PR gdb/290.
11257
11258 2002-02-08 Jim Blandy <jimb@redhat.com>
11259
11260 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11261 is prototyped and has no arguments, print its argument list as
11262 `(void)'.
11263
11264 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11265
11266 * MAINTAINERS (write-after-approval): Add myself.
11267 (paper-trail): I've escaped!
11268
11269 2002-02-08 Christopher Faylor <cgf@redhat.com>
11270
11271 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11272 changes.
11273 (_initialize_check_for_gdb_ini): Ditto.
11274
11275 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11276
11277 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11278 xaprintf -> xasprintf.
11279
11280 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11281
11282 * win32-nat.c: Remove use of printf and sprintf functions.
11283
11284 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11285
11286 * arm-tdep.c (arm_frame_chain_valid): Make static.
11287 (arm_push_arguments): Likewise.
11288 (arm_gdbarch_init): New function.
11289 (_initialize_arm_tdep): Call it.
11290 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11291 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11292 (FRAME_CHAIN_VALID): Delete.
11293 (arm_frame_chain_valid): Delete declaration.
11294 (PUSH_ARGUMENTS): Delete.
11295 (arm_push_arguments): Delete declaration.
11296 (CALL_DUMMY_P): Delete.
11297
11298 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11299 Corinna Vinschen <vinschen@redhat.com>
11300
11301 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11302 on builtin float types.
11303
11304 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11305
11306 * utils.c: Include <curses.h> before "bfd.h".
11307 * tui/tui-hooks.c: Likewise.
11308 * tui/tui.c: Likewise.
11309 * tui/tuiCommand.c: Likewise.
11310 * tui/tuiData.c: Likewise.
11311 * tui/tuiDataWin.c: Likewise.
11312 * tui/tuiDisassem.c: Likewise.
11313 * tui/tuiGeneralWin.c: Likewise.
11314 * tui/tuiIO.c: Likewise.
11315 * tui/tuiLayout.c: Likewise.
11316 * tui/tuiRegs.c: Likewise.
11317 * tui/tuiSource.c: Likewise.
11318 * tui/tuiSourceWin.c: Likewise.
11319 * tui/tuiStack.c: Likewise.
11320 * tui/tuiWin.c: Likewise.
11321
11322 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11323
11324 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11325 to include space for pseudoregs as well. Update loops accordingly.
11326 (sh_fp_frame_init_saved_regs): Ditto.
11327 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11328
11329 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11330
11331 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11332 Add Richard Earnshaw to Arm maintainers.
11333
11334 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11335
11336 * defs.h (warning_begin): Delete declaration.
11337
11338 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11339 Delete macro.
11340
11341 2002-02-07 Michael Snyder <msnyder@redhat.com>
11342
11343 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11344 Logic bug, remove misplaced else.
11345
11346 2002-02-07 Klee Dienes <klee@apple.com>
11347
11348 * fork-inferior.c (fork_inferior): Add '!' to the list of
11349 characters that need to be quoted when building a string for the
11350 shell. Quote '!' specifically with a backslash, since CSH chokes
11351 when trying to evaluate "str!str".
11352
11353 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11354
11355 * rdi-share/host.h: Only provide a typedef for bool if it is not
11356 defined.
11357
11358 2002-02-04 Michael Snyder <msnyder@redhat.com>
11359
11360 * breakpoint.h (enum bptype): Add new overlay event bp type.
11361 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11362
11363 * breakpoint.c (create_internal_breakpoint): New function.
11364 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11365 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11366 (create_thread_event_breakpoint): Ditto.
11367 (create_solib_event_breakpoint): Ditto.
11368 (create_overlay_event_breakpoint): New function.
11369 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11370 (update_breakpoints_after_exec): Delete and re-initialize
11371 overlay event breakpoints after an exec. Add FIXME comment
11372 about longjmp breakpoint.
11373 (print_it_typical): Ignore overlay event breakpoints.
11374 (print_one_breakpoint): Ditto.
11375 (mention): Ditto.
11376 (bpstat_what): Do not stop for overlay event breakpoints.
11377 (delete_breakpoint): Don't delete overlay event breakpoints.
11378 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11379 (breakpoint_re_set): Re-create overlay event breakpoint.
11380
11381 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11382 (overlay_manual_command): Disable overlay breakpoints.
11383 (overlay_off_command): Disable overlay breakpoints.
11384
11385 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11386
11387 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11388 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11389 to here from config/tm-arm.h.
11390 (coff_sym_is_thumb): Make static.
11391 (arm_elf_make_msymbol_special): New function.
11392 (arm_coff_make_msymbol_special): New function.
11393 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11394 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11395 (coff_sym_is_thumb): Delete declaration.
11396 (arm_elf_make_msymbol_special): Declare.
11397 (arm_coff_make_msymbol_special): Declare.
11398 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11399 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11400
11401 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11402
11403 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11404
11405 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11406
11407 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11408 * gdbarch.c gdbarch.h: Regenerate.
11409 * arch-utils.c (default_print_float_info): New function.
11410 * arch-utils.h (default_print_float_info): Prototype it.
11411 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11412 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11413 (PRINT_FLOAT_INFO): Document it.
11414
11415 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11416 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11417 (PRINT_FLOAT_INFO): Define.
11418
11419 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11420
11421 * win32-nat.c (_initialize_check_for_gdb_ini):
11422 Add typecast to sprintf argument to suppress a warning.
11423
11424 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11425
11426 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11427 to allow easier handling of pass state.
11428 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11429 that gives exception name and address.
11430 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11431 and set last_sig value to ourstatus->value.sig. Some missing
11432 exceptions added.
11433 (child_continue): Correctly report continue_status.
11434 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11435 TARGET_SIGNAL_0 (new default value).
11436 (child_resume): consider sig argument passed to decide if
11437 the exception should be passed to debuggee or not.
11438
11439 2002-02-05 Michael Snyder <msnyder@redhat.com>
11440
11441 * regcache.c (fetch_register): Call target_fetch_register
11442 only if we don't call FETCH_PSEUDO_REGISTER.
11443 (store_register): Call target_store_register only if we
11444 don't call STORE_PSEUDO_REGISTER.
11445
11446 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11447
11448 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11449 ELF_MAKE_MSYMBOL_SPECIAL.
11450 * gdbarch.c, gdbarch.h: Regenerate.
11451 * arch-utils.c (default_make_msymbol_special): New function.
11452 * arch-utils.h (default_make_msymbol_special): Export.
11453 * elfread.c (elf_symtab_read): Compile use of
11454 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11455 multiarched.
11456 * coffread.c (coff_symtab_read): Ditto, for
11457 COFF_MAKE_MSYMBOL_SPECIAL.
11458
11459 2002-02-05 Jim Blandy <jimb@redhat.com>
11460
11461 * solib-svr4.c (svr4_truncate_ptr): New function.
11462 (svr4_relocate_section_addresses): Do the address arithmetic with
11463 the appropriate truncation for target addresses, even when
11464 CORE_ADDR is larger than a target address.
11465
11466 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11469 to (int *).
11470
11471 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11472
11473 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11474 code.
11475
11476 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11477
11478 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11479
11480 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * gdbserver/linux-low.c: Remove unused include files.
11483
11484 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11487 (read_inferior_memory): Use it.
11488 (write_inferior_memory): Likewise.
11489
11490 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11491
11492 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11493 grubbing through sys_errlist.
11494
11495 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11496
11497 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11498
11499 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11500 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11501
11502 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11503
11504 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11505 (do_sfunc, set_cmd_sfunc): New functions.
11506
11507 * command.h (struct cmd_list_element): Add field func.
11508 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11509 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11510 * cli/cli-decode.h: Ditto.
11511
11512 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11513 (help_all, help_cmd_list): Ditto.
11514 (find_cmd, complete_on_cmdlist): Ditto.
11515 * top.c (execute_command): Ditto.
11516
11517 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11518 function.sfunc.
11519
11520 * infcmd.c (notice_args_read): Fix function signature.
11521
11522 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11523 * cli/cli-decode.c (add_set_cmd): Ditto.
11524 * utils.c (initialize_utils): Ditto.
11525 * maint.c (_initialize_maint_cmds): Ditto.
11526 * infrun.c (_initialize_infrun): Ditto.
11527 * demangle.c (_initialize_demangler): Ditto.
11528 * remote.c (add_packet_config_cmd): Ditto.
11529 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11530 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11531 * proc-api.c (_initialize_proc_api): Ditto.
11532 * kod.c (_initialize_kod): Ditto.
11533 * valprint.c (_initialize_valprint): Ditto.
11534 * top.c (init_main): Ditto.
11535 * infcmd.c (_initialize_infcmd): Ditto.
11536 * corefile.c (_initialize_core): Ditto.
11537 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11538 * arch-utils.c (initialize_current_architecture): Ditto.
11539 (_initialize_gdbarch_utils): Ditto.
11540 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11541
11542 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11543 * wince.c (_initialize_inftarg): Ditto.
11544 * symfile.c (_initialize_symfile): Ditto.
11545 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11546 * language.c (_initialize_language): Ditto.
11547 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11548
11549 2002-02-04 Michael Snyder <msnyder@redhat.com>
11550
11551 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11552
11553 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11556 Add rules for building the register data files.
11557
11558 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11559
11560 * regformats/regdat.sh: Add braces to the definition of
11561 expedite_regs_${arch}.
11562
11563 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11564
11565 * regformats/regdef.h (struct reg): Add comment describing the
11566 requirements for offset and size fields.
11567
11568 2002-02-04 Andreas Schwab <schwab@suse.de>
11569
11570 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11571 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11572
11573 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11574
11575 * gdbarch.sh (copyright): Update years in generated header.
11576 (SMASH_TEXT_ADDRESS): Add rule.
11577 * gdbarch.h, gdbarch.c: Re-generate.
11578 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11579 * dbxread.c: Likewise.
11580 * dwarfread.c: Likewise.
11581 * elfread.c: Likewise.
11582 * somread.c: Likewise.
11583
11584 * arm-tdep.c (arm_smash_text_address): New function.
11585 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11586
11587 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11588
11589 Add support for hardware watchpoints on win32 native.
11590 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11591 CONTEXT_DEBUG_REGISTERS.
11592 (dr variable): New variable. Static array containing a local copy
11593 of debug registers.
11594 (debug_registers_changed): New variable. Reflects when debug registers
11595 are changed and need to be written to inferior.
11596 (debug_registers_used): New variable. Reflects when any debug register
11597 was set, used when new threads are created.
11598 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11599 i386-nat code.
11600 (thread_rec): Set dr array if id is the thread of current_event .
11601 (child_continue, child_resume): Change the debug registers for all
11602 threads if debug_registers_changed.
11603 (child_add_thread): Change the debug registers if debug_registers_used.
11604 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11605 Link nm.h to new nm-cygwin.h file.
11606 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11607 of hardware registers.
11608
11609 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11610
11611 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11612 Restore behavour broken by 2002-01-20 Andrew Cagney
11613 <ac131313@redhat.com> IEEE_FLOAT removal.
11614
11615 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * c-valprint.c (c_val_print): Pass a proper valaddr to
11618 cp_print_class_method.
11619 * valops.c (search_struct_method): If there is only one method
11620 and args is NULL, return that method.
11621
11622 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11623
11624 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11625 accessing tag_name directly.
11626
11627 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11628
11629 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11630 of accessing tag_name directly.
11631
11632 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11633
11634 PR gdb/280
11635 * gdbtypes.c (replace_type): New function.
11636 * gdbtypes.h (replace_type): Add prototype.
11637 * stabsread.c (read_type): Use replace_type.
11638
11639 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11640
11641 * Makefile.in (memattr.o): Add missing dependencies rule.
11642
11643 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11644
11645 * breakpoint.c (break_at_finish_command): Really export.
11646 (break_at_finish_at_depth_command): Ditto.
11647 (tbreak_at_finish_command): Ditto.
11648 * hppa-tdep.c: Include completer.h.
11649 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11650 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11651
11652 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11653
11654 * utils.c (do_write): New function.
11655 (error_stream): Rewrite combining the code from error_begin and
11656 verror.
11657 (verror): Rewrite using error_stream.
11658 (error_begin): Delete function.
11659
11660 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11661
11662 * utils.c (error_begin): Make static.
11663 * defs.h (error_begin): Delete declaration.
11664
11665 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11666 (decode_line_1): Use cplusplus_error instead of error_begin,
11667 cplusplus_hint and return_to_top_level.
11668 * coffread.c (coff_symfile_read): Use error instead of error_begin
11669 and return_to_top_level.
11670 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11671
11672 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11673
11674 * language.h (type_error, range_error): Make string parameter
11675 constant.
11676 * language.c (warning_pre_print): Delete extern declaration.
11677 * dwarfread.c (warning_pre_print): Ditto.
11678 * language.c (type_error, range_error): Rewrite to use verror and
11679 vwarning instead of warning_begin.
11680
11681 2002-02-01 Michael Snyder <msnyder@redhat.com>
11682
11683 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11684 (set_ignore_count): Move misplaced comment back where it belongs.
11685
11686 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11687
11688 * command.h (NO_FUNCTION): Delete macro.
11689 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11690 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11691 * tracepoint.c (_initialize_tracepoint): Ditto.
11692 * cli/cli-decode.c (add_set_cmd): Ditto.
11693 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11694
11695 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11696
11697 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11698 Update ``this'' pointer when calling virtual functions.
11699
11700 2002-02-01 Michael Snyder <msnyder@redhat.com>
11701
11702 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11703 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11704
11705 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11706
11707 * regformats/reg-arm.dat: New file.
11708 * regformats/reg-i386.dat: New file.
11709 * regformats/reg-ia64.dat: New file.
11710 * regformats/reg-m68k.dat: New file.
11711 * regformats/reg-mips.dat: New file.
11712 * regformats/reg-ppc.dat: New file.
11713 * regformats/reg-sh.dat: New file.
11714 * regformats/regdef.h: New file.
11715 * regformats/regdat.sh: New file.
11716
11717 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11718
11719 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11720 (arm_frame_args_address, arm_frame_locals_address): New functions.
11721 (arm_frame_num_args): New function.
11722 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11723 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11724 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11725
11726 2002-01-31 Michael Snyder <msnyder@redhat.com>
11727
11728 * breakpoint.c (break_at_finish_command): Export.
11729 (break_at_finish_at_depth_command): Export.
11730 (tbreak_at_finish_command): Export.
11731 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11732 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11733 "txbreak" commands, which are HPPA specific.
11734
11735 * printcmd.c (disassemble_command): Remove an ancient
11736 artifact of an old merge.
11737
11738 * symfile.h (enum overlay_debugging_state):
11739 Define enum constant values for overlay mode.
11740 * symfile.c (overlay_debugging): Use enums instead of literals.
11741 (overlay_is_mapped, overlay_auto_command,
11742 overlay_manual_command): Ditto.
11743
11744 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11745 breakpoint_here_p, breakpoint_inserted_here_p,
11746 breakpoint_thread_match, bpstat_stop_status,
11747 describe_other_breakpoints, check_duplicates, clear_command):
11748 Coding standard fixes.
11749
11750 * target.c (target_xfer_memory): Add spaces, coding standard.
11751 (do_xfer_memory): Add missing line to trust-readonly
11752 code: check bfd SEC_READONLY flag for section.
11753
11754 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11755
11756 * PROBLEMS: Fix typo, 5.1->5.1.1.
11757
11758 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11759
11760 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11761 data symbols, since we search based on textlow and texthigh.
11762 (find_pc_sect_symtab): Likewise.
11763
11764 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11765
11766 * defs.h (vwarning): Declare.
11767 * utils.c (vwarning): New function.
11768 (warning): Call vwarning.
11769 (warning_begin): Delete function.
11770
11771 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11772 the warning message.
11773 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11774 warning_begin.
11775
11776 2002-01-30 Michael Snyder <msnyder@redhat.com>
11777
11778 * NEWS: Mention "set trust-readonly-sections" command.
11779 Mention generate-core-file command.
11780
11781 2002-01-15 Michael Snyder <msnyder@redhat.com>
11782
11783 * target.c: New command, "set trust-readonly-sections on".
11784 (do_xfer_memory): Honor the suggestion to trust readonly sections
11785 by reading them from the object file instead of from the target.
11786 (initialize_targets): Register command "set trust-readonly-sections".
11787
11788 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11789
11790 * parse.c (target_map_name_to_register): Simplify, search regs and
11791 pseudo-regs using a single loop.
11792
11793 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11794
11795 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11796
11797 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11798
11799 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11800 * config/i386/i386v42mp.mh: Add i387-nat.o .
11801 * i386v4-nat.c: Include i387-nat.h.
11802 (supply_fpregset): Use i387_supply_fsave.
11803 (fill_fpregset): Use i387_fill_fsave.
11804
11805 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11806
11807 * arm-tdep.c (arm_call_dummy_words): Define.
11808 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11809 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11810 (CALL_DUMMY_WORDS): Define.
11811 (arm_call_dummy_words): Declare.
11812 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11813 (arm_linux_call_dummy_words): Declare.
11814
11815 2002-01-30 Andreas Schwab <schwab@suse.de>
11816
11817 * m68klinux-nat.c: Fix last change to use regcache_collect
11818 instead of referencing registers[] directly.
11819
11820 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11821
11822 * parse.c (target_map_name_to_register): Delete code wrapped in
11823 #ifdef REGISTER_NAME_ALIAS_HOOK.
11824
11825 2002-01-28 Michael Snyder <msnyder@redhat.com>
11826
11827 * regcache.c (legacy_read_register_gen): Need to be able to
11828 read pseudo-register as well as real register.
11829 (legacy_write_register_gen): Ditto.
11830
11831 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11832
11833 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11834 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11835 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11836 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11837 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11838 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11839 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11840 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11841 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11842 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11843 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11844 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11845 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11846 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11847 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11848 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11849 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11850 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11851 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11852 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11853
11854 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11855
11856 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11857 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11858 (initialize_current_architecture): Update target_byte_order using
11859 information from BFD.
11860 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11861 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11862
11863 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11864
11865 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11866 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11867
11868 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11869 #ifdef INVALID_FLOAT.
11870 * infcmd.c (do_registers_info): Ditto.
11871 * values.c (unpack_double): Ditto. Add comment.
11872
11873 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11874 already commented out.
11875
11876 2002-01-26 Andreas Schwab <schwab@suse.de>
11877
11878 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11879 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11880 registers and add support for PTRACE_GETREGS.
11881
11882 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11883
11884 GDB 5.1.1 released from 5.1 branch.
11885 * NEWS: Add 5.1.1 news.
11886 * README: Sync with 5.1 branch.
11887
11888 2002-01-23 Fred Fish <fnf@redhat.com>
11889
11890 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11891 stabstring on initial malloc. Reallocing will copy it for us,
11892 if necessary.
11893
11894 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11895
11896 * Makefile.in (hpread_h): Delete.
11897 (HFILES_NO_SRCDIR): Remove hpread.h.
11898 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11899 (hpread.o): Update dependencies.
11900 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11901
11902 * hp-psymtab-read.c: Remove file.
11903 * hp-symtab-read.c: Remove file.
11904 * hpread.h: Remove file.
11905
11906 * hpread.c: Merge all contents of hp-psymtab-read.c,
11907 hp-symtab-read.c and hpread.h into this file, as it was prior to
11908 January 1999.
11909
11910 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11911 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11912 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11913 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11914
11915 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11916
11917 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11918 fill_gregset): Call gdbarch_tdep() just once, assign result to
11919 variable and use that, instead of calling the function several
11920 times.
11921
11922 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11923
11924 * configure.host: Accept sparcv9 as alias for sparc64.
11925 * configure.tgt: Likewise.
11926
11927 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11928
11929 * solib-aix5.c (build_so_list_from_mapfile)
11930 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11931 arguments is not reversed.
11932 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11933 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11934
11935 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11936
11937 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11938 modified version of obsolete sh_fetch_pseudo_register.
11939 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11940 (sh4_register_read): New function.
11941 (sh_pseudo_register_write): New function. Renamed and modified
11942 version of obsolete sh_store_pseudo_register.
11943 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11944 (sh4_register_write): New function.
11945 (sh_gdbarch_init): Remove setting of gdbarch function
11946 fetch_pseudo_register and store_pseudo_register. Remove setting of
11947 register_convert_to_raw, register_convert_to_virtual,
11948 register_convertible.
11949 (sh_sh4_register_convertible): Delete. No longer needed. All is
11950 taken care by architecture specific functions
11951 register_read/register_write.
11952 (sh_sh4_register_convert_to_virtual): Make static.
11953 (sh_sh4_register_convert_to_raw): Ditto.
11954
11955 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11956
11957 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11958 (floatformat_is_nan, floatformat_mantissa): Ditto.
11959
11960 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11961 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11962 builtin_type_ieee_double_little,
11963 builtin_type_ieee_double_littlebyte_bigword,
11964 builtin_type_m68881_ext, builtin_type_i960_ext,
11965 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11966 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11967 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11968 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11969
11970 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11971
11972 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11973 parameter. Set frameless flag if it exists and depended of
11974 whether the scanned function is frameless or not.
11975 (xstormy16_skip_prologue): If function is frameless, return
11976 result of xstormy16_scan_prologue().
11977 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11978 call.
11979
11980 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11981
11982 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11983 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11984 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11985 sh_sh4_register_byte, sh_sh4_register_raw_size,
11986 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11987 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11988 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11989 sh_store_pseudo_register, sh_do_pseudo_register): Call
11990 gdbarch_tdep() just once, assign result to variable and use that,
11991 instead of calling the function several times.
11992
11993 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11994
11995 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11996 macros instead of LAST_FPU_CTRL_REGNUM.
11997 (store_register): Likewise.
11998
11999 2002-01-21 Jim Blandy <jimb@redhat.com>
12000
12001 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12002 is up-to-date before running the program, not just when a program
12003 exits.
12004
12005 2002-01-21 Fred Fish <fnf@redhat.com>
12006
12007 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12008 when we have found all instructions we are looking for.
12009
12010 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12011
12012 * arm-tdep.c (arm_register_name): New function.
12013 (arm_registers_names): Make static.
12014 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12015 (arm_register_name): Declare.
12016 (REGISTER_NAME): Use it.
12017
12018 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12019 Kevin Buettner <kevinb@redhat.com>
12020
12021 Convert arm targets to new FRAME interface.
12022 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12023 (arm_frame_find_save_regs): Delete.
12024 (arm_frame_init_saved_regs): New.
12025 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12026 Allocate extra_info as required. Convert all uses of fsr.regs
12027 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12028 to use extra_info.
12029 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12030 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12031 (check_prologue_cache, save_prologue_cache): Likewise.
12032 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12033 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12034 (FRAME_FIND_SAVED_REGS): Delete.
12035 (arm_frame_find_saved_regs): Delete prototype.
12036 (arm_frame_init_saved_regs): New prototype.
12037 (FRAME_INIT_SAVED_REGS): Define.
12038
12039 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12040
12041 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12042
12043 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12044
12045 From Jeff Law <law@redhat.com>:
12046 * infttrace.c: Include <sys/pstat.h>.
12047 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12048 exec file if the ttrace equivalent fails.
12049
12050 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12051
12052 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12053 (closeLogFile): Ditto.
12054
12055 2002-01-20 Michael Chastain <mec@shout.net>
12056
12057 * top.c (print_gdb_version): Bump copyright year to 2002.
12058
12059 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12060
12061 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12062 Zannoni and Eli Zaretskii.
12063
12064 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12065
12066 * buildsym.c: Update copyright years.
12067 * c-typeprint.c: Likewise.
12068 * dwarf2read.c: Likewise.
12069 * f-typeprint.c: Likewise.
12070 * gdbtypes.c: Likewise.
12071 * gdbtypes.h: Likewise.
12072 * hp-symtab-read.c: Likewise.
12073 * hpread.c: Likewise.
12074 * mdebugread.c: Likewise.
12075 * p-typeprint.c: Likewise.
12076
12077 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12078
12079 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12080 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12081 byte-order selectable.
12082 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12083 * arch-utils.c: Ditto.
12084 (set_endian): Ditto.
12085 (set_endian_from_file): Ditto.
12086 * gdbserver/low-sim.c (create_inferior): Ditto.
12087 * gdbarch.sh: Ditto.
12088 * gdbarch.h: Re-generate.
12089 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12090 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12091 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12092 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12093 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12094 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12095 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12096 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12097 macro definition.
12098 * config/mips/tm-wince.h: Remove #undef of macro
12099 TARGET_BYTE_ORDER_SELECTABLE.
12100 * config/sh/tm-wince.h: Ditto.
12101
12102 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12103
12104 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12105 member function fields. Add accessor macro
12106 TYPE_FN_FIELD_ARTIFICIAL.
12107 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12108 * c-typeprint.c (c_type_print_base): Skip artificial member
12109 functions.
12110
12111 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12112
12113 * f-typeprint.c: Delete unused function f_type_print_args.
12114 * p-typeprint.c: Delete unused function pascal_type_print_args.
12115
12116 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12117
12118 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12119 comment. Add ``artificial'' to ``union field_location''.
12120
12121 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12122
12123 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12124 * mdebugread.c (parse_symbol): Likewise.
12125 * stabsread.c (define_symbol): Likewise.
12126 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12127 initializing TYPE_FIELD_BITPOS to n (obsolete).
12128 (hpread_doc_function_type): Likewise.
12129 * hpread.c (hpread_function_type): Likewise.
12130
12131 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12132
12133 * configure.in (host_makefile_frag): Only require a host makefile
12134 fragment when a native build.
12135 * configure: Re-generate.
12136
12137 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12138
12139 * doublest.h (floatformat_from_type): Declare.
12140 * doublest.c (floatformat_from_type): New function.
12141 (convert_typed_floating): Use.
12142
12143 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12144 call to function floatformat_from_type.
12145
12146 * gdbarch.sh (IEEE_FLOAT): Delete.
12147 * gdbarch.h, gdbarch.c: Re-generate.
12148 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12149 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12150 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12151 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12152 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12153 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12154 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12155 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12156 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12157 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12158 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12159 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12160
12161 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12162 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12163 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12164 * sh-tdep.c (sh_gdbarch_init): Ditto.
12165 * mips-tdep.c (mips_gdbarch_init): Ditto.
12166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12167 * cris-tdep.c (cris_gdbarch_init): Ditto.
12168
12169 2002-01-20 Jiri Smid <smid@suse.cz>
12170
12171 * configure.host, configure.tgt: Support x86-64.
12172 * NEWS: Note new target x86-64.
12173
12174 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12175 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12176 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12177 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12178 x86-64-linux-nat.o): Fix dependencies.
12179
12180 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12181
12182 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12183 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12184 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12185 * config/sparc/xm-sun4os4.h: Delete file.
12186 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12187
12188 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12189
12190 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12191 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12192 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12193 * config/i386/i386lynx.mh (XM_FILE): Delete.
12194 * config/rs6000/xm-rs6000ly.h: Delete file.
12195 * config/sparc/xm-sparclynx.h: Delete file.
12196 * config/m68k/xm-m68klynx.h: Delete file.
12197 * config/i386/xm-i386lynx.h: Delete file.
12198 * config/xm-lynx.h: Delete file.
12199 * config/djgpp/fnchange.lst: Update.
12200
12201 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12202
12203 * alpha-tdep.c (alpha_register_byte): New function.
12204 (alpha_register_raw_size): Ditto.
12205 (alpha_register_virtual_size): Ditto.
12206 (alpha_skip_prologue_internal): Renamed from
12207 alpha_skip_prologue.
12208 (alpha_skip_prologue): New version that calls
12209 alpha_skip_prologue_internal.
12210 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12211 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12212 second argument from alpha_skip_prologue.
12213 (REGISTER_BYTE): Use alpha_register_byte.
12214 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12215 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12216 (FRAMELESS_FUNCTION_INVOCATION): Use
12217 generic_frameless_function_invocation_not.
12218 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12219 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12220
12221 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12222
12223 * config/mips/xm-news-mips.h: Delete file.
12224 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12225
12226 * config/m88k/xm-m88k.h: Delete file.
12227 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12228 * config/m88k/xm-delta88v4.h: Ditto.
12229 * config/m88k/xm-delta88.h: Ditto.
12230
12231 * config/alpha/xm-fbsd.h: Delete file.
12232 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12233
12234 * config/sparc/xm-sparc.h: Delete file.
12235 * Makefile.in (xm-sun4os4.h): Delete dependency.
12236 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12237 * config/sparc/xm-sun4os4.h: Ditto.
12238 * config/sparc/xm-linux.h: Ditto.
12239
12240 * config/i386/xm-windows.h: Delete file.
12241
12242 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12243
12244 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12245 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12246
12247 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12248
12249 * alpha-tdep.c (alpha_call_dummy_words): New.
12250 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12251 (CALL_DUMMY_P): Define.
12252 (CALL_DUMMY_WORDS): Define.
12253 (SIZEOF_CALL_DUMMY_WORDS): Define.
12254
12255 2002-01-19 Per Bothner <per@bothner.com>
12256
12257 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12258 isn't NULL, which can happen with some gcj-3.x-produced code.
12259
12260 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12261
12262 * alpha-tdep.c (alpha_register_virtual_type): New function.
12263 (alpha_init_frame_pc_first): Ditto.
12264 (alpha_fix_call_dummy): Ditto.
12265 (alpha_store_struct_return): Ditto.
12266 (alpha_extract_struct_value_address): Ditto.
12267 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12268 alpha_register_virtual_type.
12269 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12270 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12271 alpha_extract_struct_value_address.
12272 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12273 (INIT_FRAME_PC): Use init_frame_pc_noop.
12274 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12275
12276 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12277
12278 * i386gnu-nat.c: Include "i386-tdep.h".
12279 (fetch_fpregs): Simplify code dealing with uninitialized floating
12280 point states such that it doesn't require FP7_REGNUM.
12281
12282 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12283
12284 * alpha-tdep.c (frame_extra_info): New.
12285 (alpha_find_saved_regs): Make static. Use
12286 frame->extra_info.
12287 (alpha_frame_init_saved_regs): New function.
12288 (alpha_frame_saved_pc): Use frame->extra_info.
12289 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12290 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12291 (init_extra_frame_info): Rename to...
12292 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12293 (alpha_print_extra_frame_info): New function.
12294 (alpha_frame_locals_address): Ditto.
12295 (alpha_frame_args_address): Ditto.
12296 (alpha_pop_frame): Use frame->extra_info.
12297 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12298 alpha_frame_args_address.
12299 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12300 (alpha_find_saved_regs): Remove prototype.
12301 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12302 (EXTRA_FRAME_INFO): Remove.
12303 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12304 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12305
12306 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12307
12308 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12309 (alpha_cannot_fetch_register): Ditto.
12310 (alpha_cannot_store_register): Ditto.
12311 (alpha_register_convertible): Ditto.
12312 (alpha_use_struct_convention): Ditto.
12313 * config/alpha/tm-alpha.h: Update copyright years.
12314 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12315 (INNER_THAN): Use core_addr_lessthan.
12316 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12317 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12318 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12319 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12320 (FRAME_CHAIN): Remove unnecessary cast.
12321
12322 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12323
12324 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12325 obsolete.
12326
12327 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12328
12329 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12330 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12331 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12332 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12333 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12334 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12335 * x86-64-linux-nat.c: Ditto.
12336
12337 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12338
12339 * alpha-tdep.c (alpha_register_name): New function.
12340 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12341 (REGISTER_NAME): Define.
12342
12343 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12344
12345 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12346
12347 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12348
12349 * alpha-tdep.c: Update copyright years.
12350 (alpha_next_pc): New function.
12351 (alpha_software_single_step): Ditto.
12352 * config/alpha/tm-alpha.h: Add prototype for
12353 alpha_software_single_step.
12354
12355 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12356
12357 * alphabsd-nat.c: Update copyright years.
12358 (fill_gregset): Use regcache_collect.
12359 (fill_fpregset): Likewise.
12360 (fetch_inferior_registers): Only fetch integer registers
12361 if requested to do so.
12362 (store_inferior_registers): Only store integer registers
12363 if requested to do so.
12364
12365 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12366
12367 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12368 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12369 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12370 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12371 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12372 * config/arm/linux.mh (XDEPFILES): Delete.
12373 * config/arm/nbsd.mh (XDEPFILES): Delete.
12374 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12375 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12376 * config/i386/i386m3.mh (XDEPFILES): Delete.
12377 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12378 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12379 * config/i386/fbsd.mh (XDEPFILES): Delete.
12380 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12381 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12382 * config/i386/i386v4.mh (XDEPFILES): Delete.
12383 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12384 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12385 * config/i386/i386aix.mh (XDEPFILES): Delete.
12386 * config/i386/go32.mh (XDEPFILES): Delete.
12387 * config/i386/cygwin.mh (XDEPFILES): Delete.
12388 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12389 * config/i386/i386mach.mh (XDEPFILES): Delete.
12390 * config/i386/i386v32.mh (XDEPFILES): Delete.
12391 * config/i386/linux.mh (XDEPFILES): Delete.
12392 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12393 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12394 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12395 * config/i386/i386sco.mh (XDEPFILES): Delete.
12396 * config/i386/i386v.mh (XDEPFILES): Delete.
12397 * config/i386/nbsd.mh (XDEPFILES): Delete.
12398 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12399 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12400 * config/i386/symmetry.mh (XDEPFILES): Delete.
12401 * config/i386/obsd.mh (XDEPFILES): Delete.
12402 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12403 * config/ia64/linux.mh (XDEPFILES): Delete.
12404 * config/ia64/aix.mh (XDEPFILES): Delete.
12405 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12406 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12407 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12408 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12409 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12410 * config/m68k/linux.mh (XDEPFILES): Delete.
12411 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12412 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12413 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12414 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12415 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12416 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12417 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12418 * config/m88k/delta88.mh (XDEPFILES): Delete.
12419 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12420 * config/m88k/m88k.mh (XDEPFILES): Delete.
12421 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12422 * config/mips/linux.mh (XDEPFILES): Delete.
12423 * config/mips/irix6.mh (XDEPFILES): Delete.
12424 * config/mips/irix5.mh (XDEPFILES): Delete.
12425 * config/mips/irix4.mh (XDEPFILES): Delete.
12426 * config/mips/irix3.mh (XDEPFILES): Delete.
12427 * config/mips/decstation.mh (XDEPFILES): Delete.
12428 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12429 (NATDEPFILES): Move core-aout.o to here.
12430 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12431 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12432 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12433 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12434 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12435 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12436 * config/pa/hpux11.mh (XDEPFILES): Delete.
12437 * config/powerpc/aix.mh (XDEPFILES): Delete.
12438 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12439 * config/powerpc/linux.mh (XDEPFILES): Delete.
12440 * config/romp/rtbsd.mh: Rename XDEPFILES.
12441 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12442 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12443 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12444 * config/s390/s390.mh (XDEPFILES): Delete.
12445 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12446 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12447 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12448 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12449 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12450 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12451 * config/sparc/linux.mh (XDEPFILES): Delete.
12452 * config/vax/vaxult.mh (XDEPFILES): Delete.
12453 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12454 * Makefile.in (DEPFILES): Remove XDEPFILES.
12455
12456 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12457
12458 * utils.c (internal_verror): Fix comments, default is yes not no.
12459 Update queries to match. Default to quit and dump core.
12460
12461 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12462
12463 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12464 copyright.
12465 * defs.h, event-top.c, gdbcmd.h: Ditto.
12466 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12467 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12468 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12469 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12470 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12471 * mi/mi-main.c:Ditto.
12472
12473 * stack.c, symfile.c: Update copyright.
12474
12475 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12476
12477 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12478 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12479 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12480 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12481
12482 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12483
12484 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12485 * gdbserver/low-lynx.c (myattach): Likewise.
12486 * gdbserver/low-nbsd.c (myattach): Likewise.
12487 * gdbserver/low-sim.c (myattach): Likewise.
12488 * gdbserver/low-sparc.c (myattach): Likewise.
12489 * gdbserver/low-sun3.c (myattach): Likewise.
12490
12491 * gdbserver/low-linux.c (myattach): New function.
12492
12493 * gdbserver/server.c (attach_inferior): New function.
12494 (main): Handle "--attach".
12495
12496 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12497
12498 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12499 maintainer.
12500
12501 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12502
12503 * c-typeprint.c (is_type_conversion_operator): Add additional
12504 check for non-conversion operators.
12505
12506 2002-01-15 Michael Snyder <msnyder@redhat.com>
12507
12508 * linux-proc.c: Add "info proc" command, a la procfs.c.
12509 (read_mapping): New function, abstract and re-use code.
12510 (linux_find_memory_regions): Use new func read_mapping.
12511 (linux_info_proc_cmd): New function, implement "info proc".
12512 (_initialize_linux_proc): Add new command "info proc".
12513
12514 2002-01-15 Michael Snyder <msnyder@redhat.com>
12515
12516 * symfile.c (generic_load): Use bfd_map_over_sections method
12517 instead of manipulating bfd structure members directly.
12518 (add_section_size_callback): New function, bfd sections callback
12519 used by generic_load.
12520 (load_sections_callback): New function, bfd sections callback
12521 used by generic_load.
12522
12523 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12524
12525 [Based on work by Jim Blandy]
12526 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12527 (builtin_type_vec128): Export.
12528 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12529 types.
12530 (builtin_type_vec128): New builtin type for 128 bit vector
12531 registers.
12532 (build_gdbtypes): Initialize builtin_type_v16qi and
12533 builtin_type_v8hi. Create the vec128 register builtin type
12534 structure.
12535 (build_builtin_type_vec128): New function.
12536 (_initialize_gdbtypes): Register builtin_type_v16qi and
12537 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12538 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12539 AltiVec register to new builtin type.
12540
12541 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12542
12543 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12544 to make_cv_type.
12545
12546 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12547
12548 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12549 CLEAN_UP_REGISTER_VALUE.
12550 * regcache.c (supply_register): Update only call.
12551
12552 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12553
12554 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12555 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12556 a29k-*-vxworks* targets as obsolete.
12557
12558 2002-01-14 Michael Snyder <msnyder@redhat.com>
12559
12560 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12561 until we can resolve portability issues.
12562 * gregset.h: Remove references to fpxregs.
12563 * gcore.c (gcore_command): Initialize note_sec to NULL.
12564
12565 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12566
12567 * signals.c (target_signal_to_name): Rewrite. Only use
12568 signals[].name when in bounds and non-NULL.
12569
12570 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12571
12572 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12573 * signals.c (target_signal_to_name): Verify that SIG is within the
12574 bounds of the signals array.
12575
12576 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12577
12578 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12579
12580 2002-01-13 Keith Seitz <keiths@redhat.com>
12581
12582 * stack.c (print_frame_info_base): Print the frame's pc
12583 only if when print_frame_info_listing_hook is not defined.
12584
12585 2002-01-13 Keith Seitz <keiths@redhat.com>
12586
12587 * varobj.c (varobj_set_value): Make sure that there were no
12588 errors evaluating the object before attempting to set its
12589 value.
12590 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12591 so this offset adjustment is no longer necessary.
12592 (create_child): Don't set the error flag if the child is
12593 a CPLUS_FAKE_CHILD.
12594 (value_of_child): If value_fetch_lazy fails, return NULL
12595 so that callers will be notified that an error occurred.
12596 (c_value_of_variable): Delay check of variable's validity
12597 until later. We actually want all structs and unions to have
12598 the value "{...}".
12599 Do not return "???" for variables which could not be evaluated.
12600 This error condition must be returned to the caller so that it
12601 can get the error condition from gdb.
12602 (cplus_name_of_child): Adjust index for vptr before figuring
12603 out the name of the child.
12604 (cplus_value_of_child): If a child's (real) parent is not valid,
12605 don't even bother trying to give a value for it. Just return
12606 an error. Change all instances in this function.
12607 (cplus_type_of_child): If our parent is one of the "fake"
12608 parents, we need to get at the type of the real parent, and
12609 derive the child's true type using this information.
12610
12611 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12612
12613 From 2002-01-09 John Marshall <johnm@falch.net>:
12614 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12615 sources.redhat.com, and tweak some related URLs which had
12616 suffered from linkrot.
12617
12618 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12619
12620 From Jeff law:
12621 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12622 structures passed in registers.
12623
12624 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12625
12626 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12627 white space which prevented compilation. Reported by DSK
12628 <dsk@student.unsw.edu.au>.
12629
12630 2002-01-11 Michael Snyder <msnyder@redhat.com>
12631
12632 * symfile.c (build_section_addr_info_from_section_tab):
12633 Use bfd access method instead of manipulating bfd directly.
12634 (syms_from_objfile): Ditto.
12635 (simple_overlay_update_1): Ditto.
12636 (simple_overlay_update): Ditto.
12637 (generic_load): Ditto.
12638 (overlay_unmapped_address): FIXME comment, bfd access methods.
12639 (sections_overlap): FIXME comment, bfd access methods.
12640 (pc_in_mapped_range): FIXME comment, bfd access methods.
12641 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12642 (section_is_mapped): FIXME comment, bfd access methods.
12643 (section_is_overlay): FIXME comment, bfd access methods.
12644
12645 * symfile.c (generic_load): Whitespace and long line cleanups.
12646 Remove duplicate variable, change several local variables to
12647 more appropriate data types.
12648 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12649
12650 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12651
12652 From Peter Schauer:
12653 * language.c (longest_local_hex_string_custom): Use phex_nz to
12654 convert NUM to a hex string.
12655
12656 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12657
12658 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12659 the function.
12660 Update Copyright year.
12661
12662 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12663
12664 * language.c (longest_raw_hex_string): Delete unused function.
12665
12666 2002-01-11 Petr Sorfa <petrs@caldera.com>
12667
12668 * MAINTAINERS (write-after-approval): Add myself.
12669 * dwarf2read.c (read_tag_string_type): Handling of
12670 DW_AT_byte_size.
12671 (read_tag_string_type): FORTRAN fix to prevent propagation of
12672 first string size.
12673 (set_cu_language): Handling of DW_LANG_Fortran95
12674
12675 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12676
12677 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12678 GETPID(inferior_ptid).
12679 (store_inferior_registers): Likewise.
12680
12681 2002-01-10 Jason Merrill <jason@redhat.com>
12682
12683 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12684 Fix DW_OP_minus.
12685
12686 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12687
12688 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12689 and bfd/elf32-sh-nbsd.c.
12690
12691 2002-01-10 Michael Snyder <msnyder@redhat.com>
12692
12693 * NEWS: Mention --pid and corefile/proc-id behavior change.
12694
12695 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12696 * gcore.c: Include cli/cli-decode.h instead of command.h.
12697
12698 * main.c (captured_main): Add new command line option "--pid".
12699 If the second command line argument (following the symbol-file)
12700 begins with a digit, try to attach to it before trying to open
12701 it as a corefile.
12702 (print_gdb_help): Document the "--pid" argument.
12703
12704 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12705
12706 * completer.c (command_completer): New function.
12707
12708 * completer.h <command_completer>: Add prototype.
12709
12710 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12711 completer for the "help" command.
12712
12713 2002-01-09 Jason Merrill <jason@redhat.com>
12714
12715 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12716
12717 2002-01-09 Michael Snyder <msnyder@redhat.com>
12718
12719 * i386-linux-nat.c (fill_fpxregset): Make global.
12720 (store_fpxregset): Ditto.
12721
12722 * gregset.h (gdb_fpxregset_t): Define.
12723 (supply_fpxregset): Prototype.
12724 (fill_fpxregset): Prototype.
12725
12726 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12727
12728 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12729
12730 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12731 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12732 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12733
12734 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12735
12736 * MAINTAINERS: Update target maintainer rules so that any
12737 Maintainer can approve a tested patch for a maintenance-only
12738 target.
12739
12740 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12741
12742 * MAINTAINERS (write-after-approval): Add myself.
12743
12744 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12745 IN_SIGTRAMP.
12746
12747 2002-01-08 Michael Snyder <msnyder@redhat.com>
12748
12749 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12750 real name of the executable, rather than the /proc name.
12751
12752 2002-01-03 Michael Snyder <msnyder@redhat.com>
12753
12754 Implement a "generate-core-file" command in gdb, save target state.
12755 * gcore.c: New file. Implement new command 'generate-core-file'.
12756 Save a corefile image of the current state of the inferior.
12757 * linux-proc.c: Add linux-specific code for saving corefiles.
12758 * target.h (struct target_ops): Add new target vectors for saving
12759 corefiles; to_find_memory_regions and to_make_corefile_notes.
12760 (target_find_memory_regions): New macro.
12761 (target_make_corefile_notes): New macro.
12762 * target.c (update_current_target): Inherit new target methods.
12763 (dummy_find_memory_regions): New place-holder method.
12764 (dummy_make_corefile_notes): New place-holder method.
12765 (init_dummy_target): Initialize new dummy target vectors.
12766 * exec.c (exec_set_find_memory_regions): New function.
12767 Allow the exec_ops vector for memory regions to be taken over.
12768 (exec_make_note_section): New function, target vector method.
12769 * defs.h (exec_set_find_memory_regions): Export prototype.
12770 * procfs.c (proc_find_memory_regions): New function, corefile method.
12771 (procfs_make_note_section): New function, corefile method.
12772 (init_procfs_ops): Set new target vector pointers.
12773 (find_memory_regions_callback): New function.
12774 (procfs_do_thread_registers): New function.
12775 (procfs_corefile_thread_callback): New function.
12776 * sol-thread.c (sol_find_memory_regions): New function.
12777 (sol_make_note_section): New function.
12778 (init_sol_thread_ops): Initialize new target vectors.
12779 * inftarg.c (inftarg_set_find_memory_regions): New function.
12780 Allow to_find_memory_regions vector to be taken over.
12781 (inftarg_set_make_corefile_notes): New function.
12782 Allow to_make_corefile_notes vector to be taken over.
12783 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12784 interface layer if not target_has_execution (may be a corefile).
12785 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12786 * config/sparc/sun4sol2.mh: Ditto.
12787 * config/alpha/alpha-linux.mh: Ditto.
12788 * config/arm/linux.mh: Ditto.
12789 * config/i386/x86-64linux.mh: Ditto.
12790 * config/ia64/linux.mh: Ditto.
12791 * config/m68k/linux.mh: Ditto.
12792 * config/mips/linux.mh: Ditto.
12793 * config/powerpc/linux.mh: Ditto.
12794 * config/sparc/linux.mh: Ditto.
12795
12796 2002-01-07 Michael Snyder <msnyder@redhat.com>
12797
12798 * arm-linux-nat.c: Remove references to regcache.c internal data
12799 (registers[] and register_valid[]).
12800
12801 2002-01-07 Michael Snyder <msnyder@redhat.com>
12802
12803 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12804 so that attaching to a pid will automatically read the process's
12805 symbol file and shlibs.
12806 * Makefile.in: Add rule for linux-proc.o.
12807 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12808 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12809 * config/arm/linux.mh: Ditto.
12810 * config/i386/linux.mh: Ditto.
12811 * config/i386/x86-64linux.mh: Ditto.
12812 * config/ia64/linux.mh: Ditto.
12813 * config/m68k/linux.mh: Ditto.
12814 * config/mips/linux.mh: Ditto.
12815 * config/powerpc/linux.mh: Ditto.
12816 * config/sparc/linux.mh: Ditto.
12817
12818 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12819
12820 * win32-nat.c: Add i386-tdep.h dependency.
12821
12822 2002-01-07 Michael Snyder <msnyder@redhat.com>
12823
12824 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12825 instead of bfd_get_arch_size. Don't bail out just because
12826 there's no exec_bfd.
12827
12828 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12829 * p-valprint.c (pascal_object_print_value): Ditto.
12830 * somread.c (som_symtab_read): Ditto.
12831 * symfile.c (simple_free_overlay_region_table): Ditto.
12832 * valops.c (value_assign): Ditto.
12833
12834 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12835 use tilde_expand and strerror for opening save-tracepoints file.
12836
12837 * thread-db.c (thread_db_new_objfile): Indendation fix.
12838
12839 * infptrace.c (GDB_MAX_ALLOCA): New define.
12840 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12841 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12842 can be overridden with whatever value is appropriate to the host).
12843 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12844 alloca to allocate potentially large buffer.
12845 * rs6000-nat.c (child_xfer_memory): Ditto.
12846 * symm-nat.c (child_xfer_memory): Ditto.
12847 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12848
12849 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12850
12851 From Nick Clifton <nickc@redhat.com>
12852 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12853
12854 2002-01-07 Michael Snyder <msnyder@redhat.com>
12855
12856 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12857 Don't use exec_bfd if it's NULL.
12858
12859 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12860
12861 * valops.c (value_arg_coerce): Fix formatting.
12862
12863 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12864
12865 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12866 * gnu-nat.c: Ditto.
12867
12868 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12869
12870 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12871 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12872 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12873 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12874 z8k-coff have not been multi-arched. Update z8k-coff build
12875 status.
12876
12877 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12878
12879 * MAINTAINERS: Mark a29k target as obsolete.
12880 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12881 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12882 comments.
12883 * NEWS: Note that a29k targets are obsolete.
12884 * a29k-tdep.c: Mark as obsolete.
12885 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12886 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12887 a29k-*-vxworks* targets as obsolete.
12888 * remote-adapt.c: Obsolete.
12889 * remote-eb.c: Obsolete.
12890 * remote-mm.c: Obsolete.
12891 * remote-udi.c: Obsolete.
12892 * config/a29k/a29k-udi.mt: Obsolete.
12893 * config/a29k/a29k.mt: Obsolete.
12894 * config/a29k/tm-a29k.h: Obsolete.
12895 * config/a29k/tm-vx29k.h: Obsolete.
12896 * config/a29k/vx29k.mt: Obsolete.
12897
12898 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12899
12900 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12901 with BFD_ENDIAN_BIG.
12902
12903 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12904
12905 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12906 * configure, config.in: Re-generate.
12907 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12908 * defs.h: Do not include <endian.h>.
12909
12910 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12911
12912 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12913 * config.in: Regenerate.
12914 * configure.in: Update copyright years.
12915 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12916 * configure: Regenerate.
12917 * i386bsd-nat.c: Update copyright years.
12918 (fill_gregset): Use regcache_collect.
12919 (fetch_inferior_registers): Only fetch integer registers
12920 if requested to do so. Add support for XMM registers
12921 using PT_GETXMMREGS.
12922 (store_inferior_registers): Only store integer registers
12923 if requested to do so. Add support for XMM registers
12924 using PT_SETXMMREGS.
12925 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12926 (store_inferior_registers): Remove.
12927 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12928 (fetch_elfcore_registers): New function.
12929 (i386nbsd_elfcore_fns): New.
12930 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12931 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12932 i386bsd-nat.o.
12933 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12934 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12935 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12936 * config/i386/tm-nbsd.h: Update copyright years.
12937 (HAVE_SSE_REGS): Define.
12938 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12939 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12940 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12941 (SIGCONTEXT_PC_OFFSET): Remove.
12942 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12943
12944 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12945
12946 * configure.tgt: Remove powerpc-*-macos* target.
12947 * config/m68k/xm-mpw.h: Delete file.
12948 * config/xm-mpw.h: Delete file.
12949 * ser-mac.c: Delete file.
12950 * mpw-make.sed: Delete file.
12951 * mpw-config.in: Delete file.
12952 * mac-xdep.c: Delete file.
12953 * mac-gdb.r: Delete file.
12954 * mac-defs.h: Delete file.
12955 * mac-nat.c: Delete file.
12956 * config/powerpc/macos.mh: Delete file.
12957 * config/powerpc/macos.mt: Delete file.
12958 * config/powerpc/nm-macos.h: Delete file.
12959 * config/powerpc/tm-macos.h: Delete file.
12960 * source.c (openp, open_source_file): Remove obsolete code.
12961 * top.c (gdb_readline): Ditto.
12962 * utils.c (query): Ditto.
12963 * event-top.c (display_gdb_prompt): Ditto.
12964 * Makefile.in (ser-mac.o): Delete obsolete target.
12965 * NEWS: Update.
12966
12967 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12968
12969 * defs.h (BIG_ENDIAN): Delete macro definition.
12970 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12971 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12972 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12973 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12974 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12975 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12976 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12977 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12978 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12979 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12980 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12981 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12982 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12983 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12984 * gdbarch.c: Re-generate.
12985
12986 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12989 for core files.
12990
12991 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12992
12993 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12994
12995 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12996
12997 * value.h (value_ptr): Delete typedef.
12998
12999 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13000
13001 * i386nbsd-nat.c: Update copyright years.
13002 Include i386-tdep.h.
13003
13004 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13005
13006 * stabsread.c: Update copyright years.
13007
13008 From Debashis Mahata <debashis.mahata@wipro.com>:
13009 (read_struct_fields): Deal with Sun C compiler erroneous stab
13010 output for structs and unions.
13011 Fix PR gdb/269.
13012
13013 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13014
13015 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13016 prototype.
13017
13018 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13019
13020 * cp-abi.c: Fix whitespace.
13021 (baseclass_offset): New wrapper function.
13022 * cp-abi.h (baseclass_offset): Add prototype.
13023 (struct cp_abi_ops): Add baseclass_offset pointer.
13024
13025 * valops.c (vb_match): Move to...
13026 * gnu-v2-abi.c (vb_match): here.
13027 * valops.c (baseclass_offset): Move to...
13028 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13029
13030 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13031
13032 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13033 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13034 * hpacc-abi.c (init_hpacc_ops): Likewise.
13035
13036 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13037
13038 * valops.c (find_overload_match): Accept obj as a
13039 reference parameter. Update it before returning.
13040 * value.h (find_overload_match): Update prototype.
13041 * eval.c (evaluate_subexp_standard): Pass object to
13042 find_overload_match by reference.
13043
13044 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13045
13046 * valarith.c: Replace value_ptr with struct value pointer. Remove
13047 register attribute from value declarations.
13048 * valops.c: Ditto.
13049 * value.h: Ditto.
13050 * scm-lang.c (scm_lookup_name): Ditto.
13051
13052 2002-01-03 Michael Snyder <msnyder@redhat.com>
13053
13054 Abstract the functionality of iterating over mapped memory
13055 regions into a general purpose iterator function.
13056 * procfs.c (iterate_over_mappings): New function, general purpose
13057 iterator for memory sections.
13058 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13059 (solib_mappings_callback): New function, callback for above.
13060 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13061 (info_mappings_callback): New function, callback for above.
13062
13063 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13064
13065 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13066
13067 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13068 * i386-tdep.c: Include "elf-bfd.h".
13069 (process_note_abi_tag_sections): New function.
13070 (i386_gdbarch_init): Add code to recognize various OS/ABI
13071 combinations.
13072
13073 * maint.c (_initialize_maint_cmds): Add missing \ in
13074 string-literal.
13075
13076 For older changes see ChangeLog-2001
13077 \f
13078 Local Variables:
13079 mode: change-log
13080 left-margin: 8
13081 fill-column: 74
13082 version-control: never
13083 End:
This page took 0.329175 seconds and 3 git commands to generate.