2002-11-13 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-13 Andrew Cagney <cagney@redhat.com>
2
3 * regcache.c (struct regcache_descr): Add fields
4 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
5 (init_legacy_regcache_descr): Compute the size of a cooked
6 register cache and then assign that to sizeof_raw_registers. Set
7 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
8 (init_legacy_regcache_descr): Ditto.
9
10 2002-11-13 Andrew Cagney <cagney@redhat.com>
11
12 * regcache.c (register_buffer): Move to near start of file, update
13 description.
14 (regcache_raw_read): Use.
15 (regcache_raw_write): Use.
16 (struct regcache): Rename raw_registers to registers and
17 raw_register_valid_p to register_valid_p.
18 (regcache_xmalloc): Update.
19 (regcache_xfree): Update.
20 (register_buffer): Update.
21 (regcache_cpy): Update.
22 (regcache_cpy_no_passthrough): Update.
23 (regcache_valid_p): Update.
24 (deprecated_grub_regcache_for_registers): Update.
25 (deprecated_grub_regcache_for_register_valid): Update.
26 (set_register_cached): Update.
27 (regcache_raw_write): Update.
28
29 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
30
31 * p-exp.y (name_not_typename): Use copy_name to
32 set current_type variable for fields of THIS.
33
34 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
35
36 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
37 * monitor.c (init_base_monitor_ops): Likewise.
38 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
39 * remote-array.c (init_array_ops): Likewise.
40 * remote-e7000.c (init_e7000_ops): Likewise.
41 * remote-es.c (init_es1800_ops): Likewise.
42 (init_es1800_child_ops): Likewise.
43 * remote-rdp.c (init_remote_rdp_ops): Likewise.
44 * remote-sim.c (init_gdbsim_ops): Likewise.
45 * remote-st.c (init_st2000_ops): Likewise.
46 * sol-thread.c (init_sol_core_ops): Likewise.
47 (init_sol_thread_ops): Likewise.
48 * v850ice.c (init_850ice_ops): Likewise.
49 * win32-nat.c (init_child_ops): Likewise.
50 * wince.c (init_child_ops): Likewise.
51
52 2002-11-12 Andrew Cagney <ac131313@redhat.com>
53
54 * utils.c (gdb_realpath): Make rp a constant pointer.
55
56 2002-11-12 Andrew Cagney <ac131313@redhat.com>
57
58 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
59 a constant buffer; cannonicalize_file_name(); realpath() with a
60 pathconf() defined buffer, xstrdup().
61
62 2002-11-12 Andrew Cagney <ac131313@redhat.com>
63
64 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
65 to hang2.C; hang3.c to hang3.C.
66
67 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
68
69 * findvar.c (read_var_value): Reenable TLS code.
70
71 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
72 Jim Blandy <jimb@redhat.com>
73
74 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
75 * target.c (update_current_target): Add
76 to_get_thread_local_address.
77 * target.h (to_get_thread_local_address): Export.
78 (target_get_thread_local_address): Define.
79 (target_get_thread_local_address_p): Define.
80 * thread-db.c: Include solib-svr4.h.
81 (td_thr_tls_get_addr_p): Define.
82 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
83 (thread_db_get_thread_local_address): New function.
84 (init_thread_db_ops): Initialize to_get_thread_local_address.
85 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
86 * configure: Regenerate.
87 * config.in: Regenerate.
88
89 2002-11-11 David Carlton <carlton@math.stanford.edu>
90
91 * linespec.c (set_flags): New function.
92 (decode_line_1): Move code into set_flags.
93
94 2002-11-11 David Carlton <carlton@math.stanford.edu>
95
96 * linespec.c (decode_line_1): Move chunks of code to separate
97 functions.
98 (initialize_defaults): New function.
99 (decode_indirect): New function.
100
101 2002-11-11 Andrew Cagney <ac131313@redhat.com>
102
103 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
104 instead of void_code_ptr.
105 (sigtramp_saved_pc): Ditto.
106
107 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
108 i386_fp_regnum_p.
109
110 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
111
112 * gdbtypes.h (struct main_type): Move artificial flag out of
113 loc. New member of ``struct field'' named static_kind. Reduce
114 overloaded meaning of bitsize.
115 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
116 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
117 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
118
119 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
120 new fields.
121 (template_to_fixed_record_type, template_to_static_fixed_type)
122 (to_record_with_fixed_variant_part): Likewise.
123 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
124 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
125 * dwarfread.c (struct_type, enum_type): Likewise.
126 * hpread.c (hpread_read_enum_type)
127 (hpread_read_function_type, hpread_read_doc_function_type)
128 (hpread_read_struct_type): Likewise.
129 * mdebugread.c (parse_symbol): Likewise.
130
131 2002-11-10 Andrew Cagney <ac131313@redhat.com>
132
133 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
134 * stack.c (print_frame_info_base): Update.
135 (print_frame_info_base, frame_info): Update.
136 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
137 (sparc_frame_saved_pc): Update.
138 * ada-lang.c (find_printable_frame): Update.
139 * breakpoint.c (deprecated_frame_in_dummy): Update.
140
141 2002-11-09 Mark Kettenis <kettenis@gnu.org>
142
143 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
144 defined.
145 (regmap): Extend to cover all registers.
146 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
147 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
148 definitions.
149 (fetch_register, sore_register): Simplify.
150 (old_fetch_inferior_registers, old_store_inferior_registers):
151 Remove functions.
152 (cannot_fetch_register, cannot_store_register): Change
153 implementation to use regmap array to decide which registers
154 cannot be fetched/stored. This removes $orig_eax from the
155 registers that cannot be fetched/stored.
156 (fetch_inferior_registers): Call fetch_register directly instead
157 of calling old_fetch_inferior_registers.
158 (store_inferior_registers): Call store_register directly instead
159 of calling old_store_inferior_registers.
160 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
161 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
162 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
163
164 2002-11-09 Klee Dienes <kdienes@apple.com>
165
166 * i387-tdep.c (i387_supply_register): When called with NULL as a
167 buffer, mark the register as not provided (to mirror the behavior
168 of supply_register).
169 (i387_supply_fxsave): Ditto.
170 (i387_supply_fsave): Ditto (inherits the behavior from
171 i387_supply_register).
172
173 2002-11-09 Klee Dienes <kdienes@apple.com>
174
175 * blockframe.c (sigtramp_saved_pc): Use
176 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
177 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
178 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
179
180 2002-11-09 Andrew Cagney <ac131313@redhat.com>
181
182 * frame.c (get_prev_frame): Test prev_p to identify a previously
183 unwound frame. Initialize prev_p.
184 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
185 comment.
186
187 2002-11-09 Andrew Cagney <ac131313@redhat.com>
188
189 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
190 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
191 more comments. Zap dead code.
192
193 2002-11-09 Mark Kettenis <kettenis@gnu.org>
194
195 * infcmd.c (print_vector_info, print_float_info): Move code that
196 checks whether the target has any registers and whether there is a
197 selected frame up, such that it is also used if a target provides
198 multi-arch definitions of these functions.
199
200 2002-11-08 Andrew Cagney <ac131313@redhat.com>
201
202 * Makefile.in (DESTDIR): Define.
203 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
204 prefix.
205
206 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
207 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
208
209 2002-11-08 Andrew Cagney <ac131313@redhat.com>
210
211 * i386-linux-tdep.c: Include "reggroups.h".
212 (i386_linux_register_reggroup_p): New function.
213 (i386_linux_init_abi): Set register_reggroup_p to
214 i386_linux_register_reggroup_p.
215 * i386-tdep.h (i386_register_reggroup_p): Declare.
216 * i386-tdep.c: Include "reggroups.h".
217 (i386_init_reggroups): New function.
218 (i386_add_reggroups): New function.
219 (i386_register_reggroup_p): New function.
220 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
221 (_initialize_i386_tdep): Call i386_init_reggroups.
222 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
223 specific reggroups.
224
225 2002-11-09 Mark Kettenis <kettenis@gnu.org>
226
227 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
228 request that's available in *BSD.
229
230 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
231
232 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
233 FDOFF_REGNUM.
234
235 2002-11-08 Andrew Cagney <ac131313@redhat.com>
236
237 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
238 * dummy-frame.c (find_dummy_frame): Rename
239 generic_find_dummy_frame, make static. Return the dummy frame
240 instead of the regcache.
241 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
242 (cached_find_dummy_frame): New function. Use find_dummy_frame.
243 (dummy_frame_register_unwind): Rename
244 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
245 * dummy-frame.h (dummy_frame_register_unwind): Rename
246 generic_call_dummy_register_unwind.
247
248 2002-11-08 Mark Kettenis <kettenis@gnu.org>
249
250 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
251 except the inclusion of "i386/tm-i386.h", to...
252 * config/i386/nm-i386v42mp.h: ...here.
253 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
254
255 2002-11-08 Andrew Cagney <ac131313@redhat.com>
256
257 * Makefile.in (frame.o): Update dependencies.
258 * blockframe.c (current_frame, frame_obstack_alloc)
259 (frame_saved_regs_zalloc, get_current_frame)
260 (set_current_frame, create_new_frame)
261 (set_unwind_by_pc, get_next_frame)
262 (flush_cached_frames, reinit_frame_cache)
263 (frame_saved_regs_register_unwind)
264 (deprecated_generic_get_saved_register)
265 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
266 (_initialize_blockframe): Move frame code from here...
267 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
268 "annotate.h" and "dummy-frame.h".
269 (_initialize_frame): New function.
270
271 2002-11-08 Jim Blandy <jimb@redhat.com>
272
273 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
274 when we finish a function a context.
275 * buildsym.h (outermost_context_p): New macro.
276 (Bug analyzed by David Edelsohn.)
277
278 2002-11-08 Andrew Cagney <ac131313@redhat.com>
279
280 * blockframe.c: Include "dummy-frame.h".
281 (struct dummy_frame, dummy_frame_stack)
282 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
283 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
284 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
285 (generic_save_call_dummy_addr, generic_pop_current_frame)
286 (generic_pop_dummy_frame, generic_fix_call_dummy)
287 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
288 dummy frame code from here...
289 * dummy-frame.c: ...to here. New file.
290 * dummy-frame.h: New file.
291 (generic_call_dummy_register_unwind): Declare.
292 (generic_find_dummy_frame): Declare.
293 * Makefile.in (SFILES): Add dummy-frame.c.
294 (dummy-frame.o): Specify dependencies.
295 (dummy_frame_h): Define.
296 (COMMON_OBS): Add dummy-frame.o.
297 (blockframe.o): Update dependencies.
298
299 2002-11-08 Jim Blandy <jimb@redhat.com>
300
301 * dwarf2read.c (read_func_scope): Restore local_symbols and
302 param_symbols after we finish the function context. (Based on a
303 patch from David Edelsohn.)
304
305 2002-11-08 David Carlton <carlton@math.stanford.edu>
306
307 * linespec.c (symbol_found): New function.
308 (minsym_found): New function.
309 (decode_line_1): Separate out some code into separate functions.
310
311 2002-11-08 Joel Brobecker <brobecker@gnat.com>
312
313 * i386-tdep.c (i386_frameless_signal_p): Make non static for
314 the benefit of the interix target.
315 * i386-tdep.h (i386_frameless_signal_p): Declare.
316
317 2002-11-08 Andrew Cagney <ac131313@redhat.com>
318
319 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
320 declaration that snuck in from change below.
321
322 2002-11-06 Andrew Cagney <cagney@redhat.com>
323
324 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
325 all callers.
326 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
327 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
328 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
329 (i386_mxcsr_regnum_p): new function. Use instead of
330 MXCSR_REGNUM_P.
331 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
332 (i386_sse_regnum_p): Declare.
333 (i386_mxcsr_regnum_p): Declare.
334 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
335 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
336 (IS_FP_REGNUM): Update definition.
337 (IS_FPU_CTRL_REGNUM): Update definition..
338 (IS_SSE_REGNUM): Update definition..
339 * i386v-nat.c (register_u_addr): Update.
340 * go32-nat.c (fetch_register): Update.
341 (store_register): Update.
342
343 2002-11-07 Joel Brobecker <brobecker@gnat.com>
344
345 Preparation work to convert the hppa targets to multiarch partial.
346
347 * hppa-tdep.c: Add new functions replacing macro bodies from
348 config/pa/tm-hppa.h. These function will be used to initialize
349 the gdbarch structure. Import some comments from tm-hppa.h,
350 and place them where appropriate, to avoid loosing them when
351 we cleanup this file.
352 (hppa_reg_struct_has_addr): New function.
353 (hppa_inner_than): New function.
354 (hppa_stack_align): New function.
355 (hppa_pc_requires_run_before_use): New function.
356 (hppa_instruction_nullified): New function.
357 (hppa_register_byte): New function.
358 (hppa_register_virtual_type): New function.
359 (hppa_store_struct_return): New function.
360 (hppa_cannot_store_register): New function.
361 (hppa_frame_args_address): New function.
362 (hppa_frame_locals_address): New function.
363 (hppa_smash_text_address): New function.
364 (hppa_coerce_float_to_double): New function. Requires the inclusion
365 of "language.h".
366
367 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
368
369 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
370 gdbarch-eligible macro to a call to the new associated function
371 created in hppa-tdep.c.
372 (INNER_THAN): Likewise.
373 (STACK_ALIGN): Likewise.
374 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
375 (INSTRUCTION_NULLIFIED): Likewise.
376 (REGISTER_BYTE): Likewise.
377 (REGISTER_VIRTUAL_TYPE): Likewise.
378 (STORE_STRUCT_RETURN): Likewise.
379 (CANNOT_STORE_REGISTER): Likewise.
380 (FRAME_ARGS_ADDRESS): Likewise.
381 (FRAME_LOCALS_ADDRESS): Likewise.
382 (SMASH_TEXT_ADDRESS): Likewise.
383 (COERCE_FLOAT_TO_DOUBLE): Likewise.
384 (ABOUT_TO_RETURN): Delete, as no longer used.
385
386 2002-11-07 Fernando Nasser <fnasser@redhat.com>
387
388 * printcmd.c (disassemble_command): Remove obsolete function.
389 (_initialize_printcmd): Do not create disassemble command here.
390 * cli/cli-cmds.c (disassemble_command): New function. Implements
391 disassemble command.
392 (init_cli_cmds): Create disassemble command here instead.
393
394 2002-11-07 Andrew Cagney <ac131313@redhat.com>
395
396 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
397
398 2002-11-07 Andrew Cagney <ac131313@redhat.com>
399
400 * regcache.h (regcache_cooked_read_using_offset_hack)
401 (regcache_cooked_write_using_offset_hack): Delete declarations.
402 (register_changed): Delete declaration.
403 * regcache.c (regcache_cooked_read_using_offset_hack)
404 (regcache_cooked_write_using_offset_hack): Delete functions.
405 (cooked_xfer_using_offset_hack): Delete function.
406 (register_changed): Delete function.
407
408 2002-11-07 Jim Blandy <jimb@redhat.com>
409
410 * macroscope.c: #include "complaints.h".
411 (sal_macro_scope): Cope with filenames that appear in the symtabs,
412 but not in the macro table.
413 * Makefile.in (macroscope.o): Record dependency.
414
415 2002-11-07 Joel Brobecker <brobecker@gnat.com>
416
417 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
418
419 2002-11-07 Andrew Cagney <ac131313@redhat.com>
420
421 * regcache.c (deprecated_registers_fetched): Update.
422 * regcache.h (deprecated_registers_fetched): Rename
423 registers_fetched.
424 * remote-vxsparc.c (vx_read_register): Update.
425 * remote-vxmips.c (vx_read_register): Update.
426 * remote-vx68.c (vx_read_register): Update.
427 * irix5-nat.c (fetch_core_registers): Update.
428 * mipsm3-nat.c (fetch_inferior_registers): Update.
429 * sun3-nat.c (fetch_inferior_registers): Update.
430 * symm-nat.c (fetch_inferior_registers): Update.
431 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
432 (fetch_core_registers): Update.
433 (fetch_kcore_registers): Update.
434 * mips-nat.c (fetch_inferior_registers): Update.
435 * corelow.c (get_core_registers): Update.
436 * a68v-nat.c (fetch_inferior_registers): Update.
437
438 2002-11-06 Joel Brobecker <brobecker@gnat.com>
439
440 Put in place the framework necessary for multiarching the hppa targets.
441 * hppa-tdep.c (hppa_gdbarch_init): New function.
442 (hppa_dump_tdep): New function.
443 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
444 tdep structure dumper.
445 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
446 until the multi-arching conversion has partially been completed.
447
448 2002-11-06 Andrew Cagney <ac131313@redhat.com>
449
450 * valops.c (value_assign): Merge lval_register case into
451 lval_reg_frame_relative. Use frame_register and
452 regcache_cooked_write instead of get_saved_register and
453 write_register_bytes. After flushing the register cache, try to
454 re-select the selected frame.
455
456 2002-11-06 Andrew Cagney <ac131313@redhat.com>
457
458 * regcache.h (deprecated_register_valid): Rename register_valid.
459 * regcache.c: Update.
460 * ia64-aix-nat.c: Update.
461 * i386gnu-nat.c: Update.
462 * alpha-nat.c: Update.
463 * sparc-nat.c: Update.
464 * lynx-nat.c: Update.
465 * remote-mips.c: Update.
466
467 2002-11-06 Joel Brobecker <brobecker@gnat.com>
468
469 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
470 to end of file, to be more consistent with the pratice followed
471 by other targets.
472
473 2002-11-06 Andrew Cagney <ac131313@redhat.com>
474
475 * infcmd.c: Include "reggroups.h" and <ctype.h>.
476 (print_float_info): Print registers in float_reggroup.
477 (print_vector_info): Print registers in vector_reggroup.
478 (default_print_registers_info): When all, print registers in
479 all_reggroup. Otherwize, print registers in general_reggroup.
480 (registers_info): Rewrite. Add support for register groups.
481 Eliminate a goto.
482
483 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
484
485 * symtab.c (methods_info): Delete. It has been ifdeffed out for
486 ages.
487 (symtab_symbol_info): Remove eons old ifdeffed out code.
488 (_initialize_symtab): Remove prehistoric disabled 'info methods'
489 command.
490
491 2002-11-06 Theodore A. Roth <troth@openavr.org>
492
493 * c-exp.y: Add missing semi-colons.
494 * f-exp.y: Add missing semi-colons.
495 * m2-exp.y: Add missing semi-colons.
496 * p-exp.y: Add missing semi-colons.
497 Add empty action to start rule to avoid a type clash error when
498 building with bison >= 1.50.
499
500 2002-11-06 Jim Blandy <jimb@redhat.com>
501
502 * macrotab.h (struct macro_source_file): Doc fix.
503
504 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
505
506 * varobj.c (child_exists, cplus_number_of_children): Change
507 STREQ macro references to strcmp.
508 (cplus_name_of_child): Change code to handle the fact that
509 fields are not necessarily contiguous with regards to their
510 access control. This is a fix for PR gdb/792.
511
512 2002-11-05 Andrew Cagney <ac131313@redhat.com>
513
514 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
515 * gdbarch.h, gdbarch.c: Regnerate.
516 * frame.h (frame_register): Declare.
517 * frame.c (frame_register): New function.
518 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
519 GET_SAVED_REGISTER, otherwize call
520 generic_unwind_get_saved_register.
521 (frame_register_read): Use frame_register instead of
522 get_saved_register.
523
524 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
525
526 From Jim Ingham <jingham@apple.com>:
527 * event-top.c (gdb_disable_readline): New function.
528 (_initialize_event_loop): Move comment.
529
530 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
531
532 * event-loop.c (start_event_loop): Add comment.
533 Update copyright.
534
535 2002-11-05 Andrew Cagney <ac131313@redhat.com>
536
537 * infcmd.c (default_print_registers_info): Do not call
538 PRINT_REGISTER_HOOK.
539
540 2002-11-05 Andrew Cagney <ac131313@redhat.com>
541
542 * sparc-tdep.c (sparc_print_register_hook): Make static.
543 (sparc_print_registers_info): New function.
544 (sparc_do_registers_info): New function.
545 (sparclet_print_registers_info): New function.
546 (sparclet_do_registers_info): New function.
547 (do_sparc_print_registers_info): New function.
548 (sparc_print_registers): New static function, clone of infcmd.c's
549 default_print_registers_info.
550 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
551 (sparclet_do_registers_info): Declare.
552 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
553 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
554 Re-define.
555 (sparc_do_registers_info): Declare.
556 (PRINT_REGISTER_HOOK): Delete macro.
557 (sparc_print_register_hook): Delete declaration.
558
559 2002-11-05 David Carlton <carlton@math.stanford.edu>
560
561 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
562 functions.
563 (lookup_symbol_aux_local): New function.
564 (lookup_symbol_aux_symtabs): New function.
565 (lookup_symbol_aux_psymtabs): New function.
566
567 2002-11-05 David Carlton <carlton@math.stanford.edu>
568
569 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
570 previous values of 'objfile' and 'block'.
571
572 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
573
574 * values.c (value_change_enclosing_type): Set
575 enclosing_type field correctly also for the case where
576 more memory needs to be allocated.
577
578 2002-11-03 Mark Kettenis <kettenis@gnu.org>
579
580 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
581 of puts_filtered.
582
583 * i387-tdep.c (i387_print_float_info): Replace calls to
584 register_read and deprecated_read_register_gen with calls to
585 frame_register_read, and make the necessary adjustments to the
586 surrounding code.
587
588 2002-11-02 Andrew Cagney <ac131313@redhat.com>
589
590 * gdbarch.sh (register_reggroup_p): Allow default value.
591 * gdbarch.h, gdbarch.c: Regenerate.
592
593 2002-11-02 Andrew Cagney <ac131313@redhat.com>
594
595 * regcache.h: Add coment indicating replacements for deprecated
596 functions.
597
598 2002-11-02 Andrew Cagney <cagney@redhat.com>
599
600 * reggroups.h, reggroups.c: New files.
601 * regcache.c: Include "reggroups.h".
602 (enum regcache_dump_what): Add `regcache_dump_groups'.
603 (regcache_dump): Contract size of the "Type" column. When
604 specified, dump the register's groups.
605 (maintenance_print_register_groups): New function.
606 (_initialize_regcache): Add command `maint print register-groups'.
607 * Makefile.in (COMMON_OBS): Add reggroups.o
608 (SFILES): Add reggroups.c.
609 (reggroups_h): Define.
610 (regcache.o, gdbarch.o): Update dependencies.
611 (reggroups.o): Specify dependencies.
612 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
613 Add opaque declaration for `struct reggroup' in generated .h file.
614 Include "reggroups.h" in generated .c file.
615 gdbarch.h, gdbarch.c: Re-generate.
616
617 2002-11-02 Andrew Cagney <cagney@redhat.com>
618
619 * regcache.h (deprecated_read_register_gen): Rename
620 read_register_gen.
621 (deprecated_write_register_gen): Rename write_register_gen.
622 * i387-tdep.c: Update.
623 * x86-64-linux-nat.c: Update
624 * wince.c: Update.
625 * thread-db.c: Update.
626 * win32-nat.c: Update.
627 * mips-tdep.c: Update.
628 * d10v-tdep.c: Update.
629 * cris-tdep.c: Update.
630 * remote-sim.c: Update.
631 * remote-rdi.c: Update.
632 * remote-rdp.c: Update.
633 * frame.c: Update.
634 * target.c: Update.
635 * blockframe.c: Update.
636 * x86-64-tdep.c: Update.
637 * xstormy16-tdep.c: Update.
638 * sh-tdep.c: Update.
639 * s390-tdep.c: Update.
640 * rs6000-tdep.c: Update.
641 * sparc-tdep.c: Update.
642 * i386-tdep.c: Update.
643 * dwarf2cfi.c: Update.
644 * regcache.c: Update.
645
646 2002-11-01 Joel Brobecker <brobecker@gnat.com>
647
648 New interix-specific files:
649 * config/i386/nm-interix.h: New file.
650 * config/i386/interix.mh: New file.
651 * config/i386/interix.mt: New file.
652 * i386-interix-nat.c: New file.
653 * i386-interix-tdep.c: New file.
654
655 2002-11-01 Andrew Cagney <cagney@redhat.com>
656
657 * frame.h (deprecated_generic_get_saved_register): Rename
658 generic_get_saved_register.
659 * blockframe.c (deprecated_generic_get_saved_register): Update.
660 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
661 (xstormy16_frame_saved_register): Update.
662 * sh-tdep.c (sh_gdbarch_init): Update.
663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
664 * ia64-tdep.c (ia64_get_saved_register): Update.
665 * cris-tdep.c (cris_gdbarch_init): Update.
666 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
667 * arm-tdep.c (arm_gdbarch_init): Update.
668
669 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
670
671 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
672
673 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
674
675 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
676 trampolines in sigaction.
677
678 2002-10-31 Andrew Cagney <cagney@redhat.com>
679
680 * h8300-tdep.c: Include "gdb_assert.h".
681 (h8300_print_register): Add gdbarch, file and frame parameters.
682 Use frame_read_unsigned_register to read the register's value.
683 Use fprintf_filtered to display output.
684 (h8300_print_registers_info): Replace h8300_do_registers_info.
685 (h8300_gdbarch_init): Set print_registers_info.
686
687 2002-10-31 Andrew Cagney <cagney@redhat.com>
688
689 * frame.c (frame_read_unsigned_register): New function.
690 (frame_read_signed_register): New function.
691 * frame.h (frame_read_unsigned_register): Declare.
692 (frame_read_signed_register): Declare.
693
694 2002-10-31 Andrew Cagney <cagney@redhat.com>
695
696 * h8500-tdep.c (h8500_print_registers_info): New static function,
697 clone of infcmd.c's default_print_registers_info.
698 (h8500_do_registers_info): New funtion.
699 (h8500_print_register_hook): Rename print_register_hook, make
700 static.
701
702 * config/h8500/tm-h8500.h: Update copyright.
703 (DEPRECATED_DO_REGISTERS_INFO): Define.
704 (h8500_do_registers_info: Declare.
705 (PRINT_REGISTER_HOOK): Delete macro.
706 (print_register_hook): Delete function.
707
708 2002-10-31 Andrew Cagney <cagney@redhat.com>
709
710 * z8k-tdep.c (z8k_print_register_hook): Make static.
711 (z8k_print_registers_info): New static function, clone of
712 infcmd.c's default_print_registers_info.
713 (z8k_do_registers_info): New function. Wrap
714 z8k_print_registers_info.
715 * config/z8k/tm-z8k.h: Update copyright.
716 (PRINT_REGISTER_HOOK): Delete macro.
717 (z8k_print_register_hook): Delete declaration.
718 (DEPRECATED_DO_REGISTERS_INFO): Define.
719 (z8k_do_registers_info): Declare.
720
721 2002-10-30 Joel Brobecker <brobecker@gnat.com>
722
723 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
724 as this is already provided by value.h, and was actually causing
725 a compilation error because of a conflict in parameter type
726 declaration due to a missing const keyword.
727 (low_text_segment_addres): Fix a compilation warning.
728
729 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
730
731 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
732 registers without a name.
733 (mips_linux_cannot_store_register): Don't store registers without
734 a name.
735
736 2002-10-28 David Carlton <carlton@math.stanford.edu>
737
738 * symtab.c (find_addr_symbol): Delete. (It was already commented
739 out.)
740 * symtab.h: Delete prototype for find_addr_symbol.
741
742 2002-10-26 Andrew Cagney <cagney@redhat.com>
743
744 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
745 DO_REGISTERS_INFO.
746 gdbarch.h, gdbarch.c: Re-generate.
747 * infcmd.c (default_print_registers_info): Update reference.
748 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
749 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
750 * sh-tdep.c (sh_gdbarch_init): Ditto.
751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
752 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
753
754 2002-10-26 Mark Kettenis <kettenis@gnu.org>
755
756 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
757 cfi_init_extra_frame_info.
758 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
759 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
760
761 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
762 target where necessary. Add more comments and remove the ones
763 that don't provide any useful information.
764
765 * i386-tdep.c (i386_frame_saved_pc): Replace call to
766 deprecated_read_register_dummy with
767 frame_unwind_unsigned_register.
768
769 * i386-tdep.c (i386_extract_struct_value_address): Use
770 regcache_raw_read_unsigned instead of
771 regcache_cooked_read_unsigned since we know that the register
772 we're reading isn't a pseudo register. Rename variable 'val' into
773 the more descriptive 'addr'.
774
775 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
776 (x86_64_push_return_address): Add comment.
777 (x86_64_pop_frame): Make static.
778 (examine_argument): Clarify comment.
779 (x86_64_skip_prologue): Make prolog_expact variable static.
780
781 * dwarf2cfi.c: Fix some formatting problems.
782 (context_cpy, read_encoded_pointer): Clarify comments.
783
784 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
785 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
786 i386 target back into x86_64_gdbarch_init. Add some comments and
787 remove meaningless ones.
788
789 2002-10-25 Andrew Cagney <cagney@redhat.com>
790
791 * complaints.h (struct deprecated_complaint): Rename `struct
792 complaint'.
793 * complaints.c (complain): Update.
794 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
795 incorrect comment indicating that "symfile.h" was being included
796 for the `struct complaint' definition.
797 * remote-vx.c: Update.
798 * objc-lang.c: Update.
799 * xcoffread.c: Update.
800 * hpread.c: Update.
801 * mdebugread.c: Update.
802 * stabsread.c: Update.
803 * dwarf2read.c: Update.
804 * dwarfread.c: Update.
805 * elfread.c: Update.
806 * coffread.c: Update.
807 * stabsread.h: Update.
808 * dbxread.c: Update.
809 * buildsym.c: Update.
810 * gdbtypes.c: Update.
811 * macrotab.c: Update.
812
813 2002-10-25 Mark Kettenis <kettenis@gnu.org>
814
815 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
816 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
817 (x86_64_init_abi): ...new function.
818
819 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
820 * i386v-nat.c: Include "i386-tdep.h".
821
822 2002-10-25 Andrew Cagney <cagney@redhat.com>
823
824 * gdbtypes.c (address_space_name_to_int): Update.
825 (address_space_int_to_name): Update.
826 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
827 multi-arch predicate.
828 (address_class_name_to_type_flags): Ditto.
829 * gdbarch.h, gdbarch.c: Re-generate.
830
831 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
832
833 2002-10-24 Martin M. Hunt <hunt@redhat.com>
834
835 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
836
837 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
838
839 * symtab.h (INIT_SAL): Delete macro.
840 (init_sal): Export.
841 * symtab.c (init_sal): New function.
842
843 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
844 to init_sal function call.
845 (find_sal_from_funcs_and_line): Ditto.
846 (all_sals_for_line): Ditto.
847 * breakpoint.c (create_internal_breakpoint): Ditto.
848 (create_fork_vfork_event_catchpoint): Ditto.
849 (create_exec_event_catchpoint): Ditto.
850 (parse_breakpoint_sals): Ditto.
851 (watch_command_1): Ditto.
852 (handle_gnu_4_16_catch_command): Ditto.
853 (clear_command): Ditto.
854 * hppa-tdep.c (child_enable_exception_callback): Ditto.
855 * infcmd.c (run_stack_dummy): Ditto.
856 * infrun.c (process_event_stop_test): Ditto.
857 (check_sigtramp2): Ditto.
858 (step_over_function): Ditto.
859 * linespec.c (decode_line_2): Ditto.
860 (decode_line_1): Ditto.
861 * source.c (line_info): Ditto.
862 * symtab.c (find_pc_sect_line): Ditto.
863
864 2002-10-24 Michal Ludvig <mludvig@suse.cz>
865
866 * dwarf2cfi.c (struct context)
867 (struct context_reg): Moved to dwarf2cfi.h
868 (context_alloc, frame_state_alloc, context_cpy):
869 Made extern instead of static, removed prototypes.
870 * dwarf2cfi.h (struct context)
871 (struct context_reg): New, moved from dwarf2cfi.c
872 (context_alloc, frame_state_alloc, context_cpy):
873 New prototypes.
874 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
875 Changed from static to extern.
876 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
877 (LINUX_SIGCONTEXT_FP_OFFSET)
878 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
879 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
880 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
881 * x86-64-tdep.c (x86_64_gdbarch_init): Several
882 set_gdbarch_*() calls now use x86-64 specific functions
883 instead of DWARF2 CFI ones.
884 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
885 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
886 (x86_64_init_extra_frame_info): New prototypes.
887
888 2002-10-23 David Carlton <carlton@math.stanford.edu>
889
890 * linespec.c: #include "parser-defs.h".
891 Delete prototype for find_template_name_end.
892 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
893
894 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
895
896 * NEWS: add recent mi fixes.
897 * varobj.c (struct varobj): Add new "updated" flag.
898 (new_variable): Default "updated" flag to 0.
899 (varobj_set_value): Set "updated" flag to 1 if value
900 changes.
901 (varobj_update): Check varobj "updated" flag before
902 comparing old and refreshed values. Fix for
903 PR gdb/702.
904
905 2002-10-23 David Carlton <carlton@math.stanford.edu>
906
907 * parse.c (parse_exp_1): Use BLOCK_START.
908 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
909 SYMBOL_BLOCK_VALUE.
910 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
911
912 2002-10-23 David Carlton <carlton@math.stanford.edu>
913
914 * symtab.c: Delete cplusplus_hint.
915 Delete prototype for find_template_name_end.
916
917 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
918
919 * symtab.h: Update comment.
920
921 2002-10-23 Michael Snyder <msnyder@redhat.com>
922
923 * printcmd.c (address_info): Restore quotes in output.
924 * valops.c (value_of_local): Restore quotes in error message.
925
926 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
927
928 * symtab.c (symbol_demangled_name): New function.
929 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
930 turning most of it into a function.
931 (symbol_demangled_name): Export.
932
933 2002-10-23 Michael Snyder <msnyder@redhat.com>
934
935 * valops.c (value_of_local): Restore quotes in error message.
936
937 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
938
939 * symtab.c (symbol_init_language_specific): New function.
940 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
941 turning most of it into a function.
942 (symbol_init_language_specific): Export.
943
944 2002-10-23 David Carlton <carlton@math.stanford.edu>
945
946 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
947 (dwarf_attr_name): Ditto.
948 (dwarf_type_encoding_name): Ditto.
949 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
950 (process_die): Handle DW_TAG_namespace,
951 DW_TAG_imported_declaration, DW_TAG_imported_module.
952 (read_namespace): New function.
953
954 2002-10-22 Joel Brobecker <brobecker@gnat.com>
955
956 * configure.in: Define NEW_PROC_API on Interix too.
957 * configure: Regenerate.
958
959 2002-10-21 Joel Brobecker <brobecker@gnat.com>
960
961 * configure: Regenerate using the proper version of autoconf.
962
963 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
964
965 * findvar.c (read_var_value): Temporarily disable TLS code, until
966 complete TLS support is added.
967
968 2002-10-21 Jim Blandy <jimb@redhat.com>
969 Elena Zannoni <ezannoni@redhat.com>
970
971 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
972 for thread local storage locations.
973 (struct symbol): Add objfile field.
974 (SYMBOL_OBJFILE): Define.
975 * dwarf2read.c (is_thread_local): New static variable.
976 (new_symbol): If variable is in thread local fill in address class
977 and objfile appropriately.
978 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
979 stack operation.
980 * printcmd.c (address_info): Print the information for thread
981 local storage variable.
982 * findvar.c (read_var_value): In case of thread local variable,
983 defer to the target vector code to compute address.
984
985 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
986
987 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
988 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
989
990 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
991
992 * symtab.h (address_class): Rename
993 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
994 * hpread.c (hpread_process_one_debug_symbol): Ditto.
995 * printcmd.c (address_info): Ditto.
996 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
997
998 2002-10-20 Mark Kettenis <kettenis@gnu.org>
999
1000 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1001 DBREG_DRX macro to acces debug registers.
1002
1003 * Makefile.in (i386obsd-tdep.o): New target.
1004
1005 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1006 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1007
1008 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1009 * config/i386/obsd.mt: New file.
1010 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1011 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1012 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1013 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1014 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1015 * i386obsd-tdep.c: New file.
1016
1017 2002-10-19 Adam Fedor <fedor@gnu.org>
1018
1019 * objc-exp.y (name_not_typename): Fix invalid comment.
1020
1021 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1022
1023 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1024 to allocate partial syms and macro byte caches.
1025
1026 2002-10-18 David Carlton <carlton@math.stanford.edu>
1027
1028 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1029
1030 2002-10-18 Adam Fedor <fedor@gnu.org>
1031
1032 * stabsread.c (find_name_end): New function.
1033 (define_symbol): Use it.
1034
1035 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1036
1037 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1038 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1039 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1040 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1041
1042 2002-10-17 David Carlton <carlton@math.stanford.edu>
1043
1044 * symfile.h: Add opaque declaration for struct obstack.
1045 Declare obsavestring to take a const char *.
1046 * symfile.c (obsavestring): Make first argument a const char *.
1047
1048 2002-10-16 Adam Fedor <fedor@gnu.org>
1049
1050 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1051 names when matching breakpoints in current file.
1052
1053 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1054
1055 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1056 (read_tag_pointer_type): Add address class support.
1057 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1058 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1059 New methods.
1060 * gdbarch.h, gdbarch.c: Regenerate.
1061 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1062 (make_type_with_address_space, recursive_type_dump): Add address
1063 class support.
1064 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1065 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1066 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1067
1068 2002-10-16 Klee Dienes <kdienes@apple.com>
1069
1070 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1071 to get the last character of a char[] buffer, not
1072 name[sizeof(vptr_name)-1].
1073
1074 2002-10-14 Adam Fedor <fedor@gnu.org>
1075
1076 * symtab.h: New objc_specific struct.
1077 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1078 (SYMBOL_DEMANGLED_NAME): Likewise.
1079
1080 2002-10-14 Adam Fedor <fedor@gnu.org>
1081
1082 * symfile.c (init_filename_language_table): Add ObjC file extension.
1083
1084 2002-10-14 Adam Fedor <fedor@gnu.org>
1085
1086 * utils.c (puts_filtered_tabular): New function.
1087 (fprintf_symbol_filtered): Get ObjC demangled name.
1088 * defs.h (puts_filtered_tabular): Declared.
1089
1090 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1091
1092 * c-lang.h (c_type_print_varspec_prefix): Delete.
1093 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1094 ``need_post_space'' parameter. Adjust all callers.
1095
1096 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1097
1098 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1099 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1100 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1101 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1102
1103 2002-10-13 Adam Fedor <fedor@gnu.org>
1104
1105 * source.c (print_source_lines): Update comments.
1106
1107 2002-10-13 Adam Fedor <fedor@gnu.org>
1108
1109 * valops.c (value_of_local): New function.
1110 (value_of_this): Use it.
1111 * value.h (value_of_local): Declared.
1112
1113 2002-10-13 Adam Fedor <fedor@gnu.org>
1114
1115 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1116 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1117
1118 2002-10-12 Adam Fedor <fedor@gnu.org>
1119
1120 * language.c (binop_result_type): Add language_objc to case.
1121 (integral_type): Likewise.
1122 (character_type): Likewise.
1123 (string_type): Likewise.
1124 (boolean_type): Likewise.
1125 (structured_type): Likewise.
1126 (binop_type_check): Likewise.
1127
1128 2002-10-11 Adam Fedor <fedor@gnu.org>
1129
1130 * printcmd.c (address_info): Print 'self' for ObjC.
1131
1132 2002-10-11 Adam Fedor <fedor@gnu.org>
1133
1134 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1135 OP_SELF.
1136
1137 2002-10-11 Adam Fedor <fedor@gnu.org>
1138
1139 * language.h (CAST_IS_CONVERSION): Add language_objc.
1140
1141 2002-10-11 Adam Fedor <fedor@gnu.org>
1142
1143 * defs.h (enum language): Add language_objc.
1144
1145 2002-10-11 Klee Dienes <kdienes@apple.com>
1146
1147 * corefile.c (read_memory_typed_address): New function.
1148 * gdbcore.h (read_memory_typed_address): Add prototype.
1149 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1150 to read a value destined for a CORE_ADDR, not read_memory_integer.
1151 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1152 (f77_get_dynamic_lowerbound): Ditto.
1153
1154 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1155
1156 * utils.c (string_to_core_addr): After turning string into
1157 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1158 which will do necessary sign-extension, etc.
1159
1160 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1161
1162 * c-exp.y (THIS): Delete token and grammar rule.
1163 (yylex): Don't return THIS.
1164 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1165 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1166 * demangle.c (cplus_markers): Update comment. Put '$'
1167 first. Remove CPLUS_MARKER.
1168 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1169 * jv-exp.y (THIS): Delete token and grammar rule.
1170 (yylex): Don't return THIS.
1171 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1172 * objc-exp.y (THIS): Delete token and grammar rule.
1173 (yylex): Don't return THIS.
1174 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1175 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1176 (read_member_functions): Likewise for opname.
1177 (read_tilde_fields): Use is_cplus_marker.
1178
1179 * defs.h (CPLUS_MARKER): Don't define.
1180 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1181 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1182 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1183 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1184 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1185
1186 * config/i386/tm-i386v4.h: Delete file.
1187 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1188 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1189 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1190 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1191 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1192 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1193 * config/i386/i386v4.mt (TM_FILE): Likewise.
1194 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1195
1196 2002-10-10 Marko Mlinar <markom@opencores.org>
1197
1198 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1199 accidentially not commited 2002-10-09
1200 * gdbarch.h, gdbarch.c: Re-generate.
1201
1202 2002-10-09 Marko Mlinar <markom@opencores.org>
1203
1204 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1205 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1206 * gdbarch.h, gdbarch.c: Re-generate.
1207
1208 2002-10-08 Petr Sorfa <petrs@caldera.com>
1209
1210 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1211
1212 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1213 so we can work on more than one compilation unit at a time. This
1214 helps prepare GDB to handle inter-CU die references.
1215 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1216 the code to be defined before struct comp_unit_head.
1217 (comp_unit_head): Added new members - offset, cu_head,
1218 begin_die, next and dwarf2_abbrevs.
1219 (dwarf2_abbrevs): Removed single static var; now member of
1220 struct comp_unit_head.
1221 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1222 members.
1223 (psymtab_to_symtab_1): Changed to work with the new
1224 struct comp_unit_head.
1225 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1226 constructs the dwarf2_abbrevs[] inside the cu_header.
1227 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1228 dwarf2_abbrev table to clean up.
1229 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1230 handling of dwarf2_abbrevs inside the cu_header.
1231 (read_partial_die): Now supports the call to the new
1232 dwarf2_lookup_abbrev.
1233 (read_full_die): Now supports the call to the new
1234 dwarf2_lookup_abbrev.
1235
1236 2002-10-06 Christopher Faylor <cgf@redhat.com>
1237
1238 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1239 insure that shell variables, such as "transformed_name" are propagated
1240 to later shell statements in rule.
1241
1242 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1243
1244 * config/i386/nm-i386sco.h: Add protection against
1245 multiple-inclusion. Include "i386/nm-i386v.h".
1246 (REGISTER_U_ADDR): Remove define.
1247 (i386_register_u_addr): Remove prototype.
1248
1249 2002-10-04 Michael Snyder <msnyder@redhat.com>
1250
1251 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1252 before treating it as a single-step event.
1253
1254 2002-10-03 Adam Fedor <fedor@gnu.org>
1255
1256 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1257 (objc_demangle): Remove assignment in if statements, Replace
1258 free with xfree.
1259 (add_msglist): Likewise.
1260 (end_msglist): Likewise.
1261 (complare_selectors): Likewise.
1262 (selectors_info): Likewise.
1263 (compare_classes): Likewise.
1264 (classes_info): Likewise.
1265 (print_object_command): Likewise.
1266 (find_objc_msgcall_submethod): Replace PTR with void *.
1267 * objc-lang.h: Remove check for __STDC__.
1268
1269 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1270
1271 * ui-out.h (ui_out_field_fmt_int): New prototype.
1272 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1273 of field width and alignment.
1274 * stack.c (print_frame_info_base): When printing frame level, use
1275 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1276 PR gdb/192
1277
1278 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1279
1280 * MAINTAINERS: Add self to Write After Approval list.
1281
1282 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1283
1284 * infcmd.c (interrupt_target_command_wrapper): Delete.
1285 (interrupt_target_command): Make non static.
1286 (nofp_registers_info): Make static.
1287 * stack.c (return_command_wrapper): Delete.
1288 (return_command): Make non static.
1289
1290 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1291
1292 * event-top.c (gdb_setup_readline): New function. Code moved from
1293 _initialize_event_loop().
1294 (_initialize_event_loop): Call gdb_setup_readline().
1295
1296 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1297
1298 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1299 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1300 * gdbarch.h, gdbarch.c: Re-generate.
1301
1302 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1303
1304 Fix PR gdb/778
1305 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1306 before recursing.
1307 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1308 of fill_in_vptr_fieldno.
1309
1310 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1311
1312 * inferior.h (registers_info, stepi_command, nexti_command,
1313 continue_command, interrupt_target_command): Export from infcmd.c.
1314 * frame.h (args_info, selected_frame_level_changed_hook,
1315 return_command): Export from stack.c.
1316 * v850ice.c (stepi_command, nexti_command, continue_command): use
1317 prototypes from inferior.h.
1318 * tracepoint.c (registers_info, args_info, locals_info): Use
1319 prototypes from frame.h and inferior.h.
1320 * Makefile.in (mi-main.o): Add dependency on frame.h.
1321
1322 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1323
1324 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1325 value in register 3 adjusted by ppc_gp0_regnum.
1326
1327 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1328
1329 2002-10-02 Marko Mlinar <markom@opencores.org>
1330
1331 * MAINTAINERS: Add myself to the Write After Approval list.
1332
1333 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1334
1335 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1336 of the section for the N64 ABI, fixed.
1337
1338 * config/mips/tm-irix6.h: Include solib.h.
1339
1340 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1341
1342 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1343 GNU operators.
1344
1345 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1346
1347 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1348 and that "mi0" syntax has been removed.
1349
1350 2002-09-30 David Carlton <carlton@math.stanford.edu>
1351
1352 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1353 * ppc-sysv-tdep.c: #include "gdb_string.h".
1354 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1355 pacify GCC.
1356
1357 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1358
1359 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1360 "vrsave"'s register number.
1361
1362 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1363
1364 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1365 use frame_unwind_signed_register to obtain the PC.
1366 (mips_frame_chain): Handle a generic dummy frame.
1367 (mips_init_extra_frame_info): When a generic dummy frame, don't
1368 re-compute the frame base.
1369 (mips_pop_frame): Handle generic dummy frames.
1370 (mips_gdbarch_init): When generic dummy frames, set
1371 use_generic_dummy_frames, push_dummy_frame to
1372 generic_push_dummy_frame, pc_in_call_dummy to
1373 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1374 generic_save_dummy_frame_tos.
1375
1376 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1377
1378 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1379 against TOP when TOP was explictly set.
1380 (generic_push_dummy_frame): Set TOP to zero.
1381
1382 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1383
1384 * event-loop.c (start_event_loop): Rename variable 'result' to
1385 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1386
1387 2002-09-30 Keith Seitz <keiths@redhat.com>
1388
1389 * gdb-events.sh (selected_thread_changed): New event.
1390 * gdb-events.c: Regenerated.
1391 * gdb-events.h: Regenerated.
1392
1393 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1394
1395 * MAINTAINERS: Add self to Write After Approval list.
1396
1397 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1398
1399 * disasm.c: New file.
1400 * disasm.h: New file.
1401 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1402 (compare_lines): Ditto.
1403 (dump_insns): Ditto.
1404 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1405 argument.
1406 (do_assembly_only): Ditto.
1407 (do_disassembly): Renamed to gdb_disassembly and moved to
1408 disasm.c. Sdded uiout argument.
1409 * Makefile.in: Add new files. Reorder SFILES list. Update
1410 dependencies. Include libgdb.a later in the insight executable.
1411
1412 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1413
1414 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1415 bfd/elf64-alpha-fbsd.c.
1416
1417 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1418
1419 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1420 i386gnu-tdep.c.
1421
1422 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1423
1424 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1425 __FUNCTION__.
1426 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1427 function name.
1428 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1429 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1430 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1431 (S_msg_sig_post_reply): Ditto.
1432
1433 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1434
1435 * sh-tdep.c (sh_use_struct_convention): Use definition according
1436 to ABI.
1437 (sh_push_arguments): Store in register with correct endianess.
1438 (sh_default_store_return_value): Ditto.
1439 (sh_gdbarch_init): Set sizeof long double to 8.
1440
1441 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1442
1443 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1444 Fix some whitespace problems.
1445
1446 2002-09-27 David Carlton <carlton@math.stanford.edu>
1447
1448 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1449 (mcore-tdep.o): Ditto.
1450 (ns32k-tdep.o): Ditto.
1451 (ns32knbsd-tdep.o): Ditto.
1452 (sh3-rom.o): Ditto.
1453 (vax-tdep.o): Ditto.
1454 * cris-tdep.c: #include "gdb_string.h"
1455 * mcore-tdep.c: Ditto.
1456 * ns32k-tdep.c: Ditto.
1457 * ns32knbsd-tdep.c: Ditto.
1458 * sh3-rom.c: Ditto.
1459 * vax-tdep.c: Ditto.
1460
1461 2002-09-27 David Carlton <carlton@math.stanford.edu>
1462
1463 * config/djgpp/fnchange.lst: Add entries for
1464 gdb/testsuite/gdb.c++/m-static files.
1465
1466 2002-09-27 Jim Wilson <wilson@redhat.com>
1467
1468 * MAINTAINERS: Add myself to the Write After Approval list.
1469
1470 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1471
1472 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1473
1474
1475 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1476
1477 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1478 frame.
1479
1480 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1481
1482 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1483 (rs6000_struct_return_address): Delete variable.
1484 (rs6000_store_struct_return): Update.
1485 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1486 deprecated_extract_struct_value_address.
1487 (rs6000_frame_align): New function.
1488 (rs6000_gdbarch_init): Set frame_align.
1489
1490 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1491
1492 From Grace Sainsbury <graces@redhat.com>:
1493 * Makefile.in (gdbtk-main.o): New target.
1494 (gdb.o): New target.
1495 (main_h): Define.
1496 (main.o): Update dependencies.
1497 (gdb$(EXEEXT)): Add gdb.o.
1498 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1499 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1500 (SUBDIR_GDBTK_CLEAN): Set.
1501 (install-gdbtk): Install the insight binary.
1502 (uninstall-gdbtk): New target.
1503 (all-gdbtk, clean-gdbtk): New rule.
1504 * top.c (use_windows): Default to zero.
1505 * main.c: Include "main.h".
1506 (main): Delete.
1507 (struct captured_main_args): Delete.
1508 (gdb_main): New function.
1509 * main.h: New file.
1510 * gdb.c: New File.
1511
1512 2002-09-25 Andrew Cagney <cagney@redhat.com>
1513
1514 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1515 (frame_map_regnum_to_name): New function.
1516 (frame_map_name_to_regnum): New function.
1517 * frame.h (frame_map_name_to_regnum): Declare.
1518 (frame_map_regnum_to_name): Declare.
1519 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1520 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1521 * parse.c: Do not include "builtin-regs.h".
1522 (target_map_name_to_register): Delete function.
1523 (write_dollar_variable): Use frame_map_name_to_regnum.
1524 * parser-defs.h (target_map_name_to_register): Delete declaration.
1525 * expprint.c: Include "frame.h".
1526 (print_subexp): Use frame_map_regnum_to_name.
1527 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1528 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1529
1530 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1531
1532 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1533 wasn't saved, and the next innermost frame is a dummy, return the
1534 dummy frame's link register.
1535
1536 2002-09-24 Jim Blandy <jimb@redhat.com>
1537
1538 Fix from Paul Breed:
1539 * main.c (captured_main): Add a `break' after the case for 'b'.
1540
1541 2002-09-24 Keith Seitz <keiths@redhat.com>
1542
1543 * varobj.c (c_type_of_child): Use get_target_type instead
1544 of TYPE_TARGET_TYPE.
1545
1546 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1547
1548 * source.c (get_current_or_default_source_symtab_and_line): Remove
1549 function.
1550 (set_default_source_symtab_and_line): New function. Attempts to
1551 determine a source file to list lines from if one is not currently
1552 defined.
1553 (get_current_source_symtab_and_line): Initialize sal.pc and
1554 sal.end fields.
1555 (set_current_source_symtab_and_line): Mark argument as const.
1556 * source.h: Update declarations and comments.
1557 * linespec.c (decode_line_1): Replace call to removed routine above.
1558 * stack.c (print_frame_info_base): Ditto.
1559 * cli/cli-cmds.c (edit_command): Ditto.
1560 (list_command): Ditto.
1561
1562 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1563
1564 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1565 sal.pc and sal.end fields.
1566 (get_current_or_default_source_symtab_and_line): Ditto.
1567 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1568 so we do not cause a new source symtab to be searched for (reverting an
1569 unintentional change from the 2002-09-20 patch).
1570 * scm-lang.c (scm_unpac): Ditto.
1571
1572 2002-09-21 Andrew Cagney <cagney@redhat.com>
1573
1574 * complaints.c (symfile_explanations): Remove new-line from
1575 ``isolated_message''.
1576 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1577 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1578
1579 2002-09-20 Nick Clifton <nickc@redhat.com>
1580
1581 * NEWS: Announce that V850EA ISA is no longer supported.
1582 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1583
1584 2002-09-20 David Carlton <carlton@math.stanford.edu>
1585
1586 * Makefile.in (c-lang.o): Correct dependencies.
1587 (utils.o): Gather dependencies.
1588 (charset.o): Move.
1589 * c-lang.c: #include "gdb_string.h"
1590
1591 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1592
1593 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1594 * cli/cli-cmds.c (list_command): New function. Implements the new
1595 cli edit command.
1596 (_init_cli_cmds): Add new command definition.
1597 * gdb.1: Document edit command.
1598 * doc/gdb.texinfo: Document edit command.
1599
1600 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1601
1602 * source.c: Make global variables current_source_symtab and
1603 current_source_line static.
1604 (list_command): Moved to cli/cli-cmds.c.
1605 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1606 (get_first_line_listed): New accessor function.
1607 (get_lines_to_list): New accessor function.
1608 (get_current_source_symtab_and_line): New function. Retrieves the
1609 position in the source code that we consider current.
1610 (get_current_or_default_source_symtab_and_line): New function.
1611 Like the above but attempts to determine a default position if one
1612 is not currently defined.
1613 (set_current_source_symtab_and_line): New function. Sets the source
1614 code position considered current and returns the previously set one.
1615 (clear_current_source_symtab_and_line): Reset stored information about
1616 a current source line.
1617 (_initialize_source): Remove registration for the "list" command and
1618 its alias.
1619 * source.h: Add declarations for the new functions above.
1620 * symtab.h: Remove declarations for the global variables mentioned
1621 above.
1622 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1623 obtain current source line.
1624 * linespec.c (decode_line_1): Ditto.
1625 * macroscope.c (default_macro_scope): Ditto.
1626 * scm-lang.c (scm_unpac): Ditto.
1627 * stack.c (print_frame_info_base): Ditto.
1628 * symfile.c (clear_symtab_users): Ditto.
1629 * symtab.c (decode_line_spec): Ditto.
1630 * cli/cli-cmds.c (list_command): Moved here from source.c.
1631 (ambiguous_line_spec): Moved here from source.c.
1632 (_init_cli_cmds): Add definition for "list" and its alias.
1633 * Makefile.in: Update dependencies.
1634
1635 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1636
1637 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1638 with what gcc thinks is correct.
1639
1640 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1641
1642 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1643 multiple register push instruction.
1644
1645 2002-09-19 Jim Blandy <jimb@redhat.com>
1646
1647 Add support for distinct host and target character sets.
1648 * charset.c, charset.h: New files.
1649 * c-exp.y: #include "charset.h".
1650 (yylex): Convert character and string literals to the target
1651 character set, before returning them as the semantic value of the
1652 token.
1653 * c-lang.c: #include "charset.h".
1654 (c_emit_char): Use charset-specific methods to recognize
1655 characters with backslash escape forms, to decide which characters
1656 to print literally and which to print using numeric escape
1657 sequences, and to convert target characters to host characters
1658 before printing.
1659 * utils.c: #include "charset.h".
1660 (no_control_char_error): New function.
1661 (parse_escape): Use charset-specific methods to recognize
1662 backslash escapes, parse `control character' notation, and convert
1663 characters from the host character set to the target character set.
1664 * configure.in: Set the default host character set.
1665 Check where to find iconv, and what its argument types might be.
1666 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1667 * Makefile.in (SFILES): List charset.c.
1668 (COMMON_OBS): List charset.o.
1669 (charset.o): New rule.
1670 (charset_h): New header dependency variable.
1671 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1672 (LIBICONV): New variable, set by configure.
1673 (CLIBS): Include $(LIBICONV) here.
1674 * aclocal.m4, config.in, configure: Regenerated.
1675
1676 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1677
1678 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1679 bison 1.35 warning.
1680
1681 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1682
1683 * gdb_mbuild.sh: New file.
1684
1685 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1686
1687 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1688
1689 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1690
1691 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1692 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1693 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1694 valops.c, value.h: Revert previous change.
1695
1696 2002-09-18 Michael Snyder <msnyder@redhat.com>
1697
1698 Preliminary support for Objective-C:
1699 * defs.h (language_objc): New enum value.
1700 (puts_filtered_tabular): Declaration only, exported from utils.c.
1701 (skip_quoted): Delete, declared in completer.h.
1702 * c-exp.y: Include completer.h.
1703 * p-exp.y: Ditto.
1704 * jv-exp.y: Ditto.
1705 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1706 New operator enum values.
1707 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1708 * language.c (binop_result_type): Handle language_objc case.
1709 (integral_type, character_type, string_type, boolean_type,
1710 structured_type, binop_type_check): Ditto.
1711 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1712 (struct objc_specific): Add to general_symbol_info.
1713 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1714 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1715 * parser-defs.h (struct objc_class_str): New struct type.
1716 (start_msglist, end_msglist, add_msglist): Declaration only,
1717 exported from objc-lang.c.
1718 * value.h (value_of_local, value_nsstring,
1719 call_function_by_hand_expecting_type): Exported from valops.c.
1720 * valops.c (find_function_addr): Export.
1721 (call_function_by_hand_expecting_type): New function.
1722 (value_of_local): New function.
1723 * symfile.c (init_filename_language_table): Add ".m" extension
1724 for Objective-C.
1725 * utils.c (puts_filtered_tabular): New function.
1726 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1727 (set/show demangle): Extend help-string to refer to ObjC.
1728 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1729 * stabsread.c (symbol_reference_defined): Objective-C symbols
1730 may contain colons: make allowances when scanning stabs strings
1731 for colons.
1732 (objc_find_colon): New function.
1733 * printcmd.c (address_info): If language == objc then print
1734 "self" instead of "this".
1735 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1736 OP_NSSTRING, and OP_SELF.
1737 (prefixify_subexp): Ditto.
1738 * source.c (print_source_lines): Mention objc in comment.
1739 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1740 method names.
1741
1742 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1743
1744 * complaints.h: Update copyright.
1745 (struct complaints): Declare.
1746 (struct complaint): Make `message' constant.
1747 (internal_complaint): Declare.
1748 (complaint): Declare.
1749 (complaint_root): Delete declaration.
1750 (symfile_complaints): Delete declaration.
1751 (struct complaints): Add opaque declaration.
1752 (clear_complaints): Add a complaints parameter.
1753 * complaints.c: Update copyright.
1754 (enum complaint_series): Define.
1755 (complaint_root): Delete.
1756 (struct complaints): Define.
1757 (complaint_sentinel, symfile_complaint_book): New variables.
1758 (symfile_explanations, symfile_complaints): New variables.
1759 New variables.
1760 (get_complaints): New function.
1761 (vcomplaint): New function.
1762 (complaint): New function.
1763 (internal_complaint): New function.
1764 (complain): Call vcomplain with symfile_complaint.
1765 (clear_complaints): Rewrite.
1766 (_initialize_complaints): Use add_setshow_command.
1767 * Makefile.in (complaints.o): Update dependencies.
1768 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1769 to call to clear_complaints.
1770 (new_symfile_objfile, reread_symbols): Ditto.
1771 (oldsyms_complaint): Delete.
1772 (empty_symtab_complaint, unknown_option_complaint): Delete.
1773 (free_named_symtabs): Use complaint instead of complain.
1774
1775 2002-09-18 Michael Snyder <msnyder@redhat.com>
1776
1777 Contributed by Apple Computer, Inc. Merged with current sources
1778 by Adam Fedor <fedor@doc.com> [cagney].
1779
1780 * objc-lang.c: First clean-up round: comments, indentation.
1781 * objc-lang.h: Ditto.
1782 * objc-lang.y: Ditto.
1783
1784 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1785
1786 * maint.c (maintenance_internal_error): Print the parameter as the
1787 error message.
1788 (maintenance_internal_warning): New function.
1789 (_initialize_maint_cmds): Add command `maint internal-warning'.
1790
1791 * defs.h (internal_warning, internal_vwarning): Declare.
1792 * utils.c (struct internal_problem): Define.
1793 (internal_vproblem): New function.
1794 (internal_warning): New function.
1795 (internal_vwarning): New function.
1796 (internal_warning_problem, internal_error_problem): New variables.
1797 (internal_verror): Just call internal_vproblem.
1798
1799 2002-09-18 Michael Snyder <msnyder@redhat.com>
1800
1801 * objc-lang.c: New file, support for Objective-C.
1802 Preliminary check-in, not yet integrated into gdb.
1803 * objc-lang.h: New file.
1804 * objc-exp.y: New file.
1805
1806 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1807
1808 * infrun.c (signal_stop_update): Convert definition to ISO C.
1809 (signal_print_update): Ditto.
1810 (signal_pass_update): Ditto.
1811 * inflow.c (terminal_save_ours): Ditto.
1812
1813 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1814 comments.
1815
1816 * config/djgpp/fnchange.lst: Handle name clashes between
1817 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1818 bfd/coff-tic80.c.
1819
1820 * i386-linux-tdep.h: Fix tipo.
1821
1822 2002-09-18 Adam Fedor <fedor@gnu.org>
1823
1824 * MAINTAINERS: Add myself to the Write After Approval list.
1825
1826 2002-09-18 Jim Blandy <jimb@redhat.com>
1827
1828 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1829 texthigh and textlow to reader-specific structs caused
1830 objfile_relocate to miss them. This is fixable, but the work that
1831 the change was supposed to prepare GDB for never got done anyway.
1832
1833 2002-09-18 David Carlton <carlton@math.stanford.edu>
1834
1835 * MAINTAINERS: Alphabetize Write After Approval list.
1836
1837 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1838
1839 Fix PR gdb/709
1840 * values.c (value_static_field): Call read_var_value.
1841
1842 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1843
1844 * valops.c (hand_function_call): Align the initial stack pointer
1845 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1846 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1847 return value.
1848 * mips-tdep.c (mips_frame_align): New function.
1849 (mips_gdbarch_init): Set frame_align.
1850 * gdbarch.sh (FRAME_ALIGN): New method.
1851 * gdbarch.h, gdbarch.c: Re-generate.
1852
1853 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1854
1855 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1856 registers.
1857
1858 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1859
1860 * NEWS: Mention that MIPS $fp behavior changed.
1861 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1862 reference to FP_REGNUM.
1863 (mipsnbsd_cannot_store_register): Ditto.
1864 * mips-linux-nat.c: Update copyright.
1865 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1866 (mips_linux_cannot_store_register): Ditto.
1867 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1868 * config/mips/tm-mips.h: Update copyright.
1869 (FP_REGNUM): Delete macro.
1870 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1871 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1872 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1873 (mips_r3041_reg_names, mips_r3051_reg_names)
1874 (mips_r3081_reg_names): Replace "fp" with "".
1875 Fix PR gdb/480.
1876
1877 2002-09-17 Theodore A. Roth <troth@verinet.com>
1878
1879 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1880 generic_read_register_dummy() (PR gdb/703).
1881 (avr_push_return_address): #if 0 out unused vars.
1882 (avr_gdbarch_init): Enable use of avr_push_return_address().
1883
1884 2002-09-17 Michael Snyder <msnyder@redhat.com>
1885
1886 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1887 RTE will take care of it.
1888
1889 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1890
1891 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1892 invalid, return SP_REGNUM.
1893
1894 2002-09-17 Michael Snyder <msnyder@redhat.com>
1895
1896 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1897 point registers without sign extension.
1898
1899 2002-09-17 Andrew Cagney <cagney@redhat.com>
1900
1901 * blockframe.c (deprecated_read_register_dummy): Rename
1902 generic_read_register_dummy.
1903 * frame.c (frame_unwind_signed_register): New function.
1904 (frame_unwind_unsigned_register): New function.
1905 * frame.h (frame_unwind_signed_register): Declare.
1906 (frame_unwind_unsigned_register): Declare.
1907 (deprecated_read_register_dummy): Rename
1908 generic_read_register_dummy.
1909
1910 * h8300-tdep.c (h8300_frame_chain): Update.
1911 (h8300_frame_saved_pc): Update.
1912 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1913 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1914 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1915 (s390_frame_chain): Update.
1916 * v850-tdep.c (v850_find_callers_reg): Update.
1917 (v850_frame_saved_pc): Update.
1918 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1919 (m32r_find_callers_reg): Update.
1920 (m32r_frame_saved_pc): Update.
1921 * sh-tdep.c (sh_find_callers_reg): Update.
1922 (sh64_get_saved_pr): Update.
1923 (sh_init_extra_frame_info): Update.
1924 (sh_init_extra_frame_info): Update.
1925 (sh64_init_extra_frame_info): Update.
1926 (sh64_init_extra_frame_info): Update.
1927 * mcore-tdep.c (mcore_find_callers_reg): Update.
1928 (mcore_frame_saved_pc): Update.
1929 (mcore_init_extra_frame_info): Update.
1930 * i386-tdep.c (i386_frame_saved_pc): Update.
1931 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1932 (ia64_init_extra_frame_info): Update.
1933 (ia64_init_extra_frame_info): Update.
1934 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1935 * cris-tdep.c (cris_init_extra_frame_info): Update.
1936 * avr-tdep.c (avr_frame_chain): Update.
1937 (avr_init_extra_frame_info): Update.
1938 (avr_frame_saved_pc): Update.
1939 * arm-tdep.c (arm_find_callers_reg): Update.
1940 (arm_init_extra_frame_info): Update.
1941 (arm_frame_saved_pc): Update.
1942
1943 2002-09-17 Tom Tromey <tromey@redhat.com>
1944
1945 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1946 is "'".
1947
1948 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1949
1950 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1951 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1952 NEXT_PROLOGUE_INSN.
1953 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1954 NEXT_PROLOGUE_INSN.
1955
1956 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1957
1958 * osfsolib.c: Remove file, replaced by solib-osf.c.
1959 * Makefile.in: Remove compilation rules for osfsolib.c.
1960
1961 2002-09-16 David Carlton <carlton@math.stanford.edu>
1962
1963 * cp-valprint.c (cp_print_class_method): Correct args to
1964 check_stub_method_group.
1965
1966 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1967
1968 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1969 `set architecture'. Unify naming convention of functions.
1970 (h8300_skip_prologue): Improve prologue analysis.
1971 (h8300_push_arguments): Rewritten to more closely match GCC's
1972 bizarre argument-passing behavior, along with the comment describing
1973 said behavior.
1974 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1975 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1976 sim, remote-e7000.c, remote-hms.c and remote.c
1977
1978 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1979
1980 * i386-tdep.c (gdb_print_insn_i386): Removed.
1981 (i386_print_insn): New function.
1982 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1983 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1984 tm_print_insn_info.
1985
1986 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1987
1988 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1989 zero.
1990
1991 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1992
1993 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1994 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1995 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1996
1997 2002-09-13 Christopher Faylor <cgf@redhat.com>
1998
1999 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2000
2001 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2002
2003 * gdbtypes.c (check_stub_method): Make static.
2004 (check_stub_method_group): New function.
2005 * gdbtypes.h: Update prototypes.
2006 * cp-support.c: New file.
2007 * cp-support.h: New file.
2008
2009 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2010 (update_method_name_from_physname): New function.
2011 (read_member_functions): Correct method names for operators
2012 and v3 constructors/destructors. Separate v2 constructors and
2013 destructors.
2014 * Makefile.in (stabsread.o): Update dependencies.
2015 (SFILES): Add cp-support.c.
2016 (COMMON_OBS): Add cp-support.o.
2017 (cp_support_h, cp-support.o): Add.
2018
2019 * cp-valprint.c (cp_print_class_method): Call
2020 check_stub_method_group instead of check_stub_method. Remove
2021 extraneous QUITs.
2022 * p-valprint.c (pascal_object_print_class_method): Likewise.
2023 * valops.c (search_struct_method): Likewise.
2024 (find_method_list, value_struct_elt_for_reference): Likewise.
2025
2026 2002-09-13 Andrew Cagney <cagney@redhat.com>
2027
2028 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2029 * gdbarch.h, gdbarch.c: Regenerate.
2030
2031 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2032
2033 * frame.c (find_saved_register): Delete function.
2034 * frame.h (find_saved_register): Delete declaration.
2035 Fix PR gdb/631.
2036
2037 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2038
2039 * mips-tdep.c (read_next_frame_reg): Re-hack using
2040 frame_register_unwind.
2041
2042 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2043
2044 * mips-tdep.c (mips_get_saved_register): Re-hack using
2045 frame_register_unwind.
2046
2047 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2048
2049 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2050 vector. Will be useful for Interix.
2051 * gdbarch.h, gdbarch.c: Regenerate.
2052
2053 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2054 name of the malloc function by NAME_OF_MALLOC.
2055
2056 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2057
2058 * value.h (find_function_in_inferior): Add const keyword to
2059 one of the parameters. Allows us to invoke this function with
2060 a const char *.
2061 * valops.c (find_function_in_inferior): Likewise.
2062
2063 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2064
2065 * exec.c (xfer_memory): Fix compilation warning with old versions
2066 of GCC.
2067 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2068
2069 2002-09-12 David Carlton <carlton@math.stanford.edu>
2070
2071 * symtab.h: Run through gdb_indent.h.
2072 Add 2002 to Copyright year list.
2073
2074 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2075
2076 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2077 mach constants.
2078 * MAINTAINERS: Add myself to write after approval list.
2079
2080 2002-09-11 J. Brobecker <brobecker@gnat.com>
2081
2082 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2083
2084 2002-09-11 J. Brobecker <brobecker@gnat.com>
2085
2086 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2087 Interix.
2088
2089 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2090
2091 * procfs.c (do_detach): Clear current signal, not just fault.
2092 Corrects problem with breakpoint trap signal leaking to detached
2093 process on Tru64.
2094
2095 2002-09-10 Michael Snyder <msnyder@redhat.com>
2096
2097 * buildsym.c (finish_block): Protect against null pointer.
2098
2099 2002-09-10 Andrew Cagney <cagney@redhat.com>
2100
2101 * infcmd.c (default_print_registers_info): Send all output to
2102 ``file'' instead of ``gdb_stdout''.
2103
2104 2002-09-10 Michael Snyder <msnyder@redhat.com>
2105
2106 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2107 LONGEST, and use signed register read (addresses are sign-
2108 extended for mips).
2109
2110 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2111
2112 * event-loop.c (gdb_do_one_event): Make public.
2113 * event-loop.h (gdb_do_one_event): Declare.
2114
2115 2002-09-10 Jeff Law <law@redhat.com>
2116
2117 * infttrace.c (child_resume): Simplify and rework to avoid
2118 TT_PROC_CONTINUE.
2119
2120 2002-09-09 Fred Fish <fnf@intrinsity.com>
2121
2122 * printcmd.c (print_scalar_formatted): "len" is the number of
2123 target bytes, NOT the number of target bits.
2124
2125 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2126
2127 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2128 * top.c (init_main): Set rl_terminal_name.
2129
2130 2002-09-08 Aidan Skinner <aidan@velvet.net>
2131
2132 * ada-lang.c (ada_array_bound, ada_type_match,
2133 _initialize_ada_language): Fix K&R definitions.
2134 * ada-tasks.c (get_current_task): Fix K&R definitions.
2135 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2136
2137 2002-09-07 Christopher Faylor <cgf@redhat.com>
2138
2139 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2140 Add XP.
2141
2142 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2143
2144 * i386-tdep.c (i386_register_virtual_type,
2145 i386_register_convertible, i386_register_convert_to_virtual,
2146 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2147 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2148 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2149 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2150 Don't set push_arguments twice.
2151
2152 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2153 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2154 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2155 sigtramp_end to NULL.
2156 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2157 defines.
2158 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2159
2160 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2161 whitespace.
2162
2163 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2164 * gdbarch.h, gdbarch.c: Re-generate.
2165 * blockframe.c (find_pc_sect_partial_function): Convert to use
2166 SIGTRAMP_START_P predicate.
2167
2168 2002-09-05 Michael Snyder <msnyder@redhat.com>
2169
2170 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2171 generic_dummy_frame method and old method. Also distinguish
2172 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2173 (arm_extract_return_value): Use new regcache method.
2174
2175 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2176 adjustment that doesn't conform to the ABI.
2177 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2178 saved regcache, not from current regcache.
2179
2180 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2181
2182 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2183 * README: Update.
2184
2185 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2186
2187 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2188 if arm_apcs_32 is false.
2189
2190 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2191
2192 GDB 5.3 branch created.
2193
2194 2002-09-03 Theodore A. Roth <troth@verinet.com>
2195
2196 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2197 generic_unwind_get_saved_register.
2198
2199 2002-09-03 David Carlton <carlton@math.stanford.edu>
2200
2201 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2202 argument (PR gdb/653). Update call to smash_to_method_type.
2203 (read_structure_scope): Update call to dwarf2_add_member_fn.
2204
2205 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2206
2207 * x86-64-linux-tdep.c: Include gdb_string.h
2208 * x86-64-linux-nat.c: Ditto.
2209
2210 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2211
2212 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2213 when YYDEBUG is set to 1.
2214 * c-exp.y: Likewise.
2215 * f-exp.y: Likewise.
2216 * jv-exp.y: Likewise.
2217 * m2-exp.y: Likewise.
2218 * p-exp.y: Likewise.
2219
2220 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2221
2222 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2223 dependency list.
2224 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2225 solib_svr4_fetch_link_map_offsets to
2226 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2227 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2228 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2229 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2230 solib-svr4.o, and solib-legacy.o.
2231 * config/i386/tm-nbsd.h: Include solib.h.
2232
2233 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2234
2235 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2236 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2237 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2238 comment noting that this needs its own target configuration.
2239 * config/i386/nbsd.mt: New file.
2240 * config/i386/nbsdaout.mt: Remove.
2241 * config/i386/nbsdelf.mt: Ditto.
2242 * config/i386/tm-nbsdaout.h: Ditto.
2243
2244 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2245
2246 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2247 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2248 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2249 tdep->sigtramp_end.
2250 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2251 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2252 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2253
2254 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2255
2256 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2257 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2258 * i386-tdep.h (i386bsd_init_abi): New prototype.
2259 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2260 function declaration.
2261 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2262 for NetBSD-a.out or NetBSD-ELF.
2263 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2264 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2265 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2266 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2267 and nbsd-tdep.h.
2268 (i386nbsd_pc_in_sigtramp): New function.
2269 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2270 i386nbsd_pc_in_sigtramp.
2271 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2272 and i386nbsdelf_init_abi OS ABI handlers.
2273 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2274 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2275
2276 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2277
2278 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2279 registers if the target really has them.
2280
2281 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2282
2283 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2284 than nbsd-tdep.h.
2285
2286 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2287
2288 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2289 list.
2290 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2291 (alphanbsd_skip_sigtramp_frame): New functions.
2292 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2293 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2294 to alphanbsd_sigcontext_addr.
2295
2296 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2297
2298 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2299 list.
2300 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2301 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2302 nbsd_pc_in_sigtramp.
2303 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2304 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2305 * nbsd-tdep.c: Include gdb_string.h.
2306 (nbsd_pc_in_sigtramp): New function.
2307 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2308 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2309 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2310 ppcnbsd_pc_in_sigtramp.
2311 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2312 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2313 shnbsd_pc_in_sigtramp.
2314 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2315 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2316 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2317
2318 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2319
2320 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2321 watchpoints to NULL.
2322 (insert_breakpoints): set val field of watchpoints if NULL.
2323
2324
2325 2002-08-29 Jim Blandy <jimb@redhat.com>
2326
2327 * symtab.c (lookup_symbol_aux): In the cases where we find a
2328 minimal symbol of an appropriate name and use its address to
2329 select a symtab to read and search, use `name' (as passed to us)
2330 as the demangled name when searching the symtab's global and
2331 static blocks, not the minsym's name.
2332
2333 2002-08-29 Keith Seitz <keiths@redhat.com>
2334
2335 * stack.c (print_frame_info_base): Always set current_source_symtab
2336 and current_source_line.
2337
2338 2002-08-29 Donn Terry <donnte@microsoft.com>
2339
2340 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2341
2342 2002-08-28 Keith Seitz <keiths@redhat.com>
2343
2344 * stack.c (select_frame): Add FIXME concerning selected-frame
2345 events.
2346 (select_frame_command): Send selected-frame-level-changed
2347 event notification, but only if the level actually changed.
2348 (up_silently_base): Add selected-frame-level-changed event
2349 notification.
2350 (down_silently_base): Likewise.
2351
2352 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2353
2354 * Makefile.in: Update dependencies for all gdb/*.c files.
2355
2356 2002-08-27 Tom Tromey <tromey@redhat.com>
2357
2358 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2359 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2360 Update dependencies.
2361 * i387-tdep.c: Include gdb_string.h.
2362 * osabi.c: Likewise.
2363 * i386-linux-nat.c: Likewise.
2364 * lin-lwp.c: Likewise.
2365 * ax-gdb.c: Likewise.
2366 * signals/signals.c: Likewise.
2367 * jv-valprint.c: Likewise.
2368 * p-lang.c: Likewise.
2369 * c-valprint.c: Likewise.
2370 * cp-abi.c: Likewise.
2371
2372 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2373
2374 * cli/cli-script.h (copy_command_lines): Export.
2375 * breakpoint.c: Include cli/cli-script.h.
2376 * Makefile.in (breakpoint.o): Update dependencies.
2377
2378 2002-08-26 Michael Snyder <msnyder@redhat.com>
2379
2380 * breakpoint.c (insert_breakpoints): Protect all references
2381 to 'process_warning'. Shorten long lines.
2382
2383 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2384
2385 * cli/cli-script.c (copy_command_lines): New function.
2386 * defs.h (copy_command_lines): Export.
2387 * testsuite/gdb.base/commands.exp: New tests for commands
2388 attached to a temporary breakpoint, and for commands that
2389 delete the breakpoint they are attached to.
2390
2391 2002-08-26 Michael Snyder <msnyder@redhat.com>
2392
2393 * breakpoint.c (bpstat_stop_status): Instead of copying the
2394 pointer to the breakpoint commands struct, make a new copy
2395 of the struct and point to that.
2396 (bpstat_clear): Free the commands struct.
2397 (bpstat_clear_actions): Free the commands struct.
2398 (bpstat_do_actions): Free the command actions. Also execute
2399 the local cleanups, instead of deleting them.
2400 (delete_breakpoint): Leave the commands field of the bpstat
2401 chain alone -- it will be freed later.
2402
2403 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2404
2405 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2406 deleted in 2002-08-20 commit. This function is still used by
2407 ppc-linux-nat.c.
2408
2409 2002-08-26 Keith Seitz <keiths@redhat.com>
2410
2411 * gdb-events.sh: Add selected-frame-level-changed event.
2412 * gdb-events.c: Regenerated.
2413 * gdb-events.h: Regenerated.
2414
2415 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2416
2417 Fix PR gdb/393:
2418 * inflow.c (terminal_save_ours): New function to save terminal
2419 settings.
2420 * inferior.h (terminal_save_ours): Declare.
2421 * target.c (debug_to_terminal_save_ours): New function.
2422 (cleanup_target): Defaults to_terminal_save_ours.
2423 (update_current_target): Inherit to_terminal_save_ours.
2424 (setup_target_debug): Set to_terminal_save_ours.
2425 * target.h (target_terminal_save_ours): New to save terminal settings.
2426 (target_ops): New member to_terminal_save_ours.
2427 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2428 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2429 * inftarg.c (init_child_ops): Likewise.
2430 * m3-nat.c (init_m3_ops): Likewise.
2431 * procfs.c (init_procfs_ops): Likewise.
2432 * wince.c (init_child_ops): Likewise.
2433 * win32-nat.c (init_child_ops): Likewise.
2434 * sol-thread.c (init_sol_thread_ops): Likewise.
2435
2436 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2437
2438 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2439 use regcache_* functions.
2440 (i386_gdbarch_init): Set store_return_value instead of
2441 deprecated_store_return_value.
2442
2443 * regcache.c (regcache_raw_write_signed,
2444 regcache_raw_write_unsigned): New functions.
2445 * regcache.h (regcache_raw_write_signed,
2446 regcache_raw_write_unsigned): New prototypes.
2447
2448 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2449
2450 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2451 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2452 source file dependencies. Cleanup corresponding generator rules.
2453
2454 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2455
2456 * regcache.h (register_offset_hack): Declare.
2457 (regcache_cooked_read_using_offset_hack): Declare.
2458 (regcache_cooked_write_using_offset_hack): Declare.
2459
2460 * regcache.c (register_offset_hack): New function.
2461 (regcache_cooked_read_using_offset_hack): New function.
2462 (regcache_cooked_write_using_offset_hack): New function.
2463 (regcache_dump): Check that the registers, according to their
2464 offset, are packed hard against each other.
2465 (cooked_xfer_using_offset_hack): New function.
2466
2467 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2468
2469 * regcache.c (struct regcache_descr): Add field register_type.
2470 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2471 in as a parameter
2472 (init_regcache_descr): Initialize register_type. Pass the descr
2473 to init_legacy_regcache_descr. Use register_type instead of
2474 REGISTER_VIRTUAL_TYPE.
2475 (register_type): New function.
2476 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2477 * regcache.h (register_type): Declare.
2478
2479 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2480
2481 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2482 instead of deprecated_store_return_value. Fix fallout from
2483 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2484
2485 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2486
2487 * regcache.c (max_register_size): New function.
2488 (init_legacy_regcache_descr): Ensure that max_register_size is
2489 large enough for REGISTER_VIRTUAL_SIZE.
2490 * regcache.h (max_register_size): Declare.
2491
2492 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2493
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2495 store_return_value.
2496 (e500_extract_return_value): Change type of valbuf pointer to
2497 void.
2498
2499 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2500
2501 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2502 workaround.
2503
2504 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2505 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2506 long long) to prevent compiler warning on 64-bit systems.
2507
2508 2002-08-23 Andrew Cagney <cagney@redhat.com>
2509
2510 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2511 (DEPRECATED_STORE_RETURN_VALUE): New method.
2512 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2514
2515 * values.c (set_return_value): Pass current_regcache to
2516 STORE_RETURN_VALUE.
2517 * arch-utils.h (legacy_store_return_value): Declare.
2518 * arch-utils.c (legacy_store_return_value): New function.
2519 (legacy_extract_return_value): Update parameters.
2520
2521 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2522 STORE_RETURN_VALUE.
2523 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2524 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2525 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2526 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2527 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2528 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2529 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2530 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2531 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2532 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2533
2534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2535 * i386-tdep.c (i386_extract_return_value): Update.
2536 * arch-utils.c (legacy_extract_return_value): Update.
2537 * frv-tdep.c (frv_gdbarch_init): Update.
2538 * cris-tdep.c (cris_gdbarch_init): Update.
2539 * d10v-tdep.c (d10v_gdbarch_init): Update.
2540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2541 * m68k-tdep.c (m68k_gdbarch_init): Update.
2542 * mcore-tdep.c (mcore_gdbarch_init): Update.
2543 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2544 * s390-tdep.c (s390_gdbarch_init): Update.
2545 * sparc-tdep.c (sparc_gdbarch_init): Update.
2546 * sh-tdep.c (sh_gdbarch_init): Update.
2547 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2548 * v850-tdep.c (v850_gdbarch_init): Update.
2549 * avr-tdep.c (avr_gdbarch_init): Update.
2550 * ia64-tdep.c (ia64_gdbarch_init): Update.
2551 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2552 * vax-tdep.c (vax_gdbarch_init): Update.
2553 * alpha-tdep.c (alpha_gdbarch_init): Update.
2554 * arm-tdep.c (arm_gdbarch_init): Update.
2555 * mips-tdep.c (mips_gdbarch_init): Update.
2556 * i386-tdep.c (i386_gdbarch_init): Update.
2557
2558 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2559
2560 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2561 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2562
2563 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2564
2565 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2566 problems.
2567
2568 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2569
2570 * infrun.c (handle_inferior_event): Move a comment outside of a
2571 function call, in order to avoid indent reformatting this part
2572 of the code in an unreadable way.
2573
2574 2002-08-23 Grace Sainsbury <graces@redhat.com>
2575
2576 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2577 when breakpoints fail. Move general breakpoint error messages to
2578 insert_breakpoints.
2579 * breakpoint.c (insert_breakpoints): Change warnings when
2580 breakpoints are nto inserted to specify the type. Remove call to
2581 memory_error when hardware breakpoints can't be inserted. Remove
2582 multiple calls to warning so all messages are sent to the user at
2583 once.
2584 (delete_breakpoints): Make insert error messsages more explicit.
2585
2586 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2587
2588 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2589 gdbserver/ChangeLog.
2590
2591 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2592
2593 * i386-tdep.c: Include "objfiles.h".
2594 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2595 skip_trampoline_code.
2596 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2597 (CPLUS_MARKER): Define to '.'.
2598
2599 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2600 member.
2601 (linux_corefile_thread_callback): Increase args->num_notes.
2602 (linux_make_note_section): Initialize thread_args.num_notes, and
2603 use it to determine whether notes for any threads were created.
2604
2605 2002-08-23 Donn Terry <donnte@microsoft.com>
2606
2607 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2608 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2609 and PCUNKILL.
2610 (write_with_trace): Conditionalize out the switch branch handling
2611 PCSHOLD if the corresponding macro is not defined. Likewise for
2612 PRSABORT and PRSTOP.
2613 This change will be needed by the Interix port.
2614
2615 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2616
2617 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2618 write_register wherever possible instead of manipulating the
2619 register bytes directly.
2620 Assign VALUE_CONTENTS to a variable and use that.
2621 The GPR numbers are now dependent on the architecture.
2622
2623 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2624
2625 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2626 ev_offset fields.
2627 (skip_prologue): Add support for BookE/e500 instructions.
2628 (e500_extract_return_value): New function.
2629 (frame_get_saved_regs): Add support for saving ev registers and
2630 pseudo gpr's.
2631 (e500_store_return_value): New function.
2632 (rs6000_gdbarch_init): Move up default intializations of
2633 deprecated_extract_return_value and store_return_value. Overwrite
2634 init of store_return_value with e500 specific version.
2635 Set extract_return_value for e500.
2636
2637 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2638
2639 * blockframe.c (generic_call_dummy_register_unwind): Use
2640 regcache_cooked_read to catch cases in which the variable is
2641 stored in a pseudo register.
2642
2643 2002-08-22 Andrew Cagney <cagney@redhat.com>
2644
2645 * NEWS: Mention that the i960 has been made obsolete.
2646 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2647 i960-tdep.c
2648 (remote-nrom.o): Obsolete target.
2649 (remote-nindy.o, i960-tdep.o): Ditto.
2650 * remote-nrom.c: Make file obsolete.
2651 * remote-nindy.c, remote-vx960.c: Ditto.
2652 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2653 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2654 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2655 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2656 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2657 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2658 i960-*-vxworks* obsolete.
2659 * MAINTAINERS: Note that the i960 is obsolete.
2660
2661 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2662
2663 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2664 detach to allow reinitialization.
2665
2666 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2667
2668 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2669 attempt).
2670
2671 2002-08-22 Jim Blandy <jimb@redhat.com>
2672
2673 * coffread.c (coff_symfile_read): Don't try to read the line
2674 number table from disk if the image file doesn't have a symbol
2675 table; we'll never actually look at the info anyway, and Windows
2676 ships DLL's with bogus file offsets for the line number data.
2677
2678 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2679
2680 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2681 an e500 executable.
2682
2683 2002-08-21 Michael Snyder <msnyder@redhat.com>
2684
2685 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2686 (MSYMBOL_SIZE): Replace macro with function.
2687 (DEFAULT_MIPS_TYPE): Delete unused macro.
2688 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2689 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2690
2691 2002-08-21 Jim Blandy <jimb@redhat.com>
2692
2693 * valops.c (value_cast): Simplify and correct logic for doing a
2694 static cast from a pointer to a base class to a pointer to a
2695 derived class.
2696
2697 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2698
2699 * infcmd.c (default_print_registers_info): Replace
2700 do_registers_info.
2701 (registers_info): Use gdbarch_print_registers_info instead of
2702 DO_REGISTERS_INFO.
2703 * inferior.h (default_print_registers_info): Replace
2704 do_registers_info.
2705 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2706 (DO_REGISTERS_INFO): Change to a predicate function.
2707 * gdbarch.h, gdbarch.c: Regenerate.
2708
2709 2002-08-21 Keith Seitz <keiths@redhat.com>
2710
2711 * gdb-events.sh: Add target-changed event.
2712 * gdb-events.c: Regenerated.
2713 * gdb-events.c: Regenerated.
2714 * valops.c (value_assign): Add target-changed event notification
2715 to inlval_register, lval_memory, and lval_reg_frame_relative.
2716
2717 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2718
2719 * NEWS: Add an entry regarding the improvement of the next/step
2720 operation on Alpha Tru64 multi-processor machines.
2721
2722 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2723
2724 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2725 directores.
2726 * Makefile.in: Update all _h macro definitions.
2727 * Makefile.in (install-gdbtk): Move to install section.
2728 (rdi-share/libangsd.a): Move to end of file.
2729
2730 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2731
2732 * frame.c (frame_register_unwind): When a register, set addrp to
2733 the register's byte.
2734
2735 2002-08-20 Michael Snyder <msnyder@redhat.com>
2736
2737 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2738 used locally, so move them from the target machine header to here.
2739 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2740 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2741 Make static.
2742 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2743
2744 2002-08-20 Andrew Cagney <cagney@redhat.com>
2745
2746 * NEWS: Mention that the Apollo line was made obsolete.
2747 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2748 m68*-hp-hpux* obsolete.
2749 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2750 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2751 * buildsym.c (make_blockvector): Make static.
2752 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2753 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2754 (ALLDEPFILES): Remove dstread.c.
2755 (dstread.o): Obsolete make rule.
2756 * dstread.c: Makefile obsolete.
2757 * dst.h: Ditto.
2758 * config/m68k/hp300hpux.mt: Ditto.
2759 * config/m68k/hp300hpux.mh: Ditto.
2760 * config/m68k/hp300bsd.mt: Ditto.
2761 * config/m68k/hp300bsd.mh: Ditto.
2762 * config/m68k/apollo68b.mt: Ditto.
2763 * config/m68k/apollo68v.mh: Ditto.
2764 * config/m68k/apollo68b.mh: Ditto.
2765
2766 2002-08-20 Michael Snyder <msnyder@redhat.com>
2767
2768 * mips-tdep.c (mips_in_return_stub): Make static.
2769 (mips_gdbarch_init): Set in_solib_return_trampoline.
2770 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2771
2772 2002-08-20 Michael Snyder <msnyder@redhat.com>
2773
2774 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2775 * gdbarch.c, gdbarch.h: Regenerate.
2776 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2777 Add.
2778 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2779
2780 2002-08-20 Michael Snyder <msnyder@redhat.com>
2781
2782 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2783 (mips_gdbarch_init): Set skip_trampoline_code,
2784 in_solib_call_trampoline.
2785 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2786 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2787
2788 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2789
2790 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2791
2792 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2793 vector type for ev registers.
2794 (e500_pseudo_register_read): New function.
2795 (e500_pseudo_register_write): New function.
2796 (e500_dwarf2_reg_to_regnum): New function.
2797 (PPC_UISA_NOFP_SPRS): New macro.
2798 (PPC_EV_REGS): New macro.
2799 (PPC_GPRS_PSEUDO_REGS): New macro.
2800 (registers_e500): New register set for e500.
2801 (variants): Add e500 variant.
2802 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2803 before setting architectural dependent variations. Initialize ev
2804 registers numbers. Add case for e500 architecture. Set the
2805 number of pseudo registers.
2806
2807 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2808
2809 * rs6000-tdep.c: Clean up comments.
2810
2811 2002-08-20 Andrew Cagney <cagney@redhat.com>
2812
2813 * h8300-tdep.c: Re-indent file.
2814
2815 2002-08-20 Jim Blandy <jimb@redhat.com>
2816
2817 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2818 default for this.
2819
2820 2002-08-20 Keith Seitz <keiths@redhat.com>
2821
2822 * breakpoints.c (watch_command_1): Use internal breakpoint
2823 when setting a watchpoint_scope breakpoint.
2824
2825 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2826
2827 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2828 (build_builtin_type_vec64i): Ditto.
2829 (build_builtin_type_vec128): Ditto.
2830 (build_builtin_type_vec128i): Ditto.
2831
2832 2002-08-19 Michael Snyder <msnyder@redhat.com>
2833
2834 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2835 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2836 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2837 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2838 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2839 CALL_DUMMY_ADDRESS): Delete.
2840 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2841 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2842 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2843 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2844 push_return_address.
2845 (mips_register_raw_size, mips_eabi_use_struct_convention,
2846 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2847 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2848 mips_init_extra_frame_info, mips_eabi_push_arguments,
2849 mips_n32n64_push_arguments, mips_push_return_address,
2850 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2851 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2852
2853 2002-08-19 Michael Snyder <msnyder@redhat.com>
2854
2855 * mips-tdep.c (mips_frame_num_args): New function.
2856 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2857 frame_saved_pc, frame_args_address, frame_locals_address,
2858 frame_num_args, and frame_args_skip.
2859 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2860 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2861 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2862 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2863
2864 2002-08-20 Michael Snyder <msnyder@redhat.com>
2865
2866 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2867 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2868 * mips-tdep.c (mips_store_struct_return): New function.
2869 (mips_extract_struct_value_address): New function.
2870 (mips_gdbarch_init): Set store_struct_return and
2871 extract_struct_value_address.
2872
2873 2002-08-20 David Carlton <carlton@math.stanford.edu>
2874
2875 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2876 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2877 (read_file_scope): Check that line_header is nonzero before
2878 decoding macro information.
2879
2880 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2881
2882 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2883 flag the general-purpose registers as floating-point on targets
2884 that don't support the floating-point registers.
2885
2886 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2887
2888 * rs6000-tdep.c (altivec_register_p): Delete.
2889 (rs6000_do_altivec_registers): Delete.
2890 (rs6000_altivec_registers_info): Delete.
2891 (rs6000_do_registers_info): Delete.
2892 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2893 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2894
2895 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2896
2897 * infcmd.c (do_registers_info): Print vector registers in hex
2898 format only.
2899 (print_vector_info): Check that printing registers
2900 makes sense.
2901 (print_float_info): Ditto.
2902
2903 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2904
2905 * mips-tdep.c (mips_gdbarch_init): Update.
2906 (mips_o32_extract_return_value): Rewrite.
2907 (mips_o32_store_return_value): Rewrite.
2908 (mips_o32_xfer_return_value): New function.
2909 (mips_xfer_register): Tweak debug print message. Allow for
2910 buf_offset when dumping the value transfered.
2911
2912 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2913
2914 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2915 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2916 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2917 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2918 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2919
2920 2002-08-14 Michael Snyder <msnyder@redhat.com>
2921
2922 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2923
2924 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2925
2926 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2927 register.
2928 (P): New macro to define a register as a pseudo register.
2929 (R, R4, R8, R16, FR32, R64, R0): Updated.
2930 (struct variant): Add new fields for number of pseudo registers
2931 and number of total registers.
2932 (tot_num_registers): New macro replacing....
2933 (num_registers): ...deleted macro.
2934 (num_registers): New function.
2935 (num_pseudo_registers): New function.
2936 (variants): Update all variants to intialize new fields correctly.
2937 Postpone initialization of number of pseudo regs and real regs.
2938 (init_variants): New function.
2939 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2940 registers offsets.
2941
2942 2002-08-19 David Carlton <carlton@math.stanford.edu>
2943
2944 * valops.c (search_struct_field): Change error message to treat
2945 return value of 0 from value_static_field as meaning that field is
2946 optimized out.
2947 (value_struct_elt_for_reference): Ditto.
2948 * values.c (value_static_field): Treat an unresolved location the
2949 same as a nonexistent symbol. Fix PR gdb/635.
2950 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2951 enclosed. Fix PR gdb/574.
2952 * MAINTAINERS: Add self to Write After Approval list.
2953
2954 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2955
2956 * mips-tdep.c (mips_xfer_register): New function.
2957 (mips_n32n64_extract_return_value): Rewrite.
2958 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2959 instead of deprecated_extract_return_value.
2960
2961 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2962
2963 * rs6000-tdep.c (TDEP): Delete macro.
2964 (branch_dest): Replace use of TDEP macro with its body.
2965 (rs6000_pop_frame): Ditto.
2966 (rs6000_push_arguments): Ditto.
2967 (rs6000_skip_trampoline_code): Ditto.
2968 (rs6000_frame_saved_pc): Ditto.
2969 (rs6000_frame_chain): Ditto.
2970 (rs6000_register_name): Ditto.
2971 (rs6000_register_byte): Ditto.
2972 (rs6000_register_raw_size): Ditto.
2973 (rs6000_register_virtual_type): Ditto.
2974 (rs6000_register_convertible): Ditto.
2975 (rs6000_convert_from_func_ptr_addr): Ditto.
2976
2977 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2978
2979 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2980 conditionally.
2981 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2982 MIPS_LINUX_JB_ELEMENT_SIZE.
2983 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2984 for MAX_REGISTER_RAW_SIZE arrays.
2985 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2986 MIPS_LINUX_JB_ELEMENT_SIZE.
2987
2988 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2989
2990 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2991
2992 2002-08-19 Aidan Skinner <aidan@velvet.net>
2993
2994 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2995 ada-valprint.c ada-tasks.c.
2996 (YYFILES): Add ada-exp.y.
2997 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2998 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2999 (ada-exp.tab.o): New target.
3000
3001 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3002
3003 * regcache.c (regcache_xfer_part): New function.
3004 (regcache_raw_read_part): New function.
3005 (regcache_raw_write_part): New function.
3006 (regcache_cooked_read_part): New function.
3007 (regcache_cooked_write_part): New function.
3008 * regcache.h (regcache_raw_read_part): Declare.
3009 (regcache_raw_write_part): Declare.
3010 (regcache_cooked_read_part): Declare.
3011 (regcache_cooked_write_part): Declare.
3012
3013 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3014
3015 * remote.c (remote_open_1): Add async_p.
3016 (remote_async_open_1): Delete.
3017 (open_remote_target): Delete.
3018 (remote_open, extended_remote_open): Update calls to remote_open_1.
3019 (remote_async_open, extended_remote_async_open): Call
3020 remote_open_1 instead of remote_async_open_1.
3021
3022 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3023
3024 * blockframe.c: Fix a few coding standard violations.
3025
3026 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3027
3028 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3029 here from ...
3030 * config/i386/tm-i386sco5.h: ... here. File removed.
3031 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3032
3033 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3034 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3035 (TM_FILE): Set to tm-i386.h.
3036 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3037 * config/i386/tm-i386v.h: Remove file.
3038 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3039 instead of "i386/tm-i386v.h".
3040 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3041 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3042 "i386/tm-i386v.h".
3043 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3044 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3045 "i386/tm-i386.h".
3046
3047 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3048
3049 * config/i386/nm-i386v.h: Add protection against
3050 multiple-inclusion.
3051 (i386_register_u_addr): Remove prototype.
3052 (register_u_addr): New prototype.
3053 (REGISTER_U_ADDR): Redefine accordingly.
3054 * i386v-nat.c: Improve several comments.
3055 (i386_register_u_addr): Change signature and rename to
3056 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3057 ubase variable.
3058
3059 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3060
3061 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3062 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3063 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3064 deprecated_extract_return_value.
3065 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3066 rename mips_o32o64_push_arguments.
3067 (mips_gdbarch_init): Update.
3068 (mips_extract_return_value): Delete.
3069 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3070 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3071 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3072 (mips_n32n64_extract_return_value): Clone
3073 mips_extract_return_value.
3074 (mips_store_return_value): Delete.
3075 (mips_o32_store_return_value): Clone mips_store_return_value.
3076 (mips_o64_store_return_value): Clone mips_store_return_value.
3077 (mips_eabi_store_return_value): Clone mips_store_return_value.
3078 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3079
3080 2002-08-18 Aidan Skinner <aidan@velvet.net>
3081
3082 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3083 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3084
3085 2002-08-18 Aidan Skinner <aidan@velvet.net>
3086
3087 * ada-lang.c: Run through gdb_indent.sh.
3088 * ada-lang.h: Run through gdb_indent.sh.
3089 * ada-tasks.c: Run through gdb_indent.sh.
3090 * ada-typeprint.c: Run through gdb_indent.sh.
3091 * ada-valprint.c: Run through gdb_indent.sh.
3092
3093 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3094
3095 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3096 ABI.
3097
3098 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3099
3100 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3101
3102 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3103 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3104
3105 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3106 write_register_gen instead of write_register_bytes.
3107
3108 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3109 i[3456]-*-osf1mk* configurations have been made obsolete.
3110 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3111 i[3456]86-*-osf1mk* hosts obsolete.
3112 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3113 targets obsolete.
3114 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3115 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3116 config/i386/i386m3.mt, config/i386/nm-m3.h,
3117 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3118 config/i386/i386mk.mh, config/i386/i386mk.mt,
3119 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3120 obsolete.
3121 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3122 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3123 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3124
3125 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3126
3127 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3128 (hppa_value_returned_from_stack): Declare.
3129 (hppa_extract_return_value): Declare.
3130 * config/pa/hppa.mt: New file.
3131 * configure.tgt: Recognize hppa*-*-*.
3132 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3133
3134 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3135
3136 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3137 comment.
3138
3139 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3140
3141 * top.c (gdb_rl_operate_and_get_next): Make sure
3142 operate-and-get-next functions correctly even when the history
3143 list is completely filled.
3144
3145 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3146
3147 * MAINTAINERS (Target Instruction Set Architectures): Rename
3148 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3149 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3150 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3151 already listed under Host/Native.
3152
3153 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3154 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3155 mips*-*-*.
3156
3157 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3158
3159 * config/ia64/ia64.mt: New file.
3160 * config/alpha/alpha.mt: New file.
3161 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3162 ia64-linux-gnu. Mention that ia64-elf is broken.
3163 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3164
3165 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3166
3167 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3168 generic_func_frame_valid instead of func_frame_valid.
3169
3170 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3171
3172 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3173 procfs appears to be broken when debugging on multi-processor
3174 machines. So enable software single stepping in order to avoid
3175 using the procfs interface to do next/step operations, using
3176 internal breakpoints instead.
3177
3178 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3179 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3180 make this pc address equal to the value it would have if the
3181 system stepping capability was used. Also set a new flag used
3182 to ensure that we don't readjust the PC one more time later.
3183
3184 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3185 address by DECR_PC_AFTER_BREAK when software single step is
3186 in use for this architecture, as this has already been taken
3187 care of in handle_inferior_event().
3188
3189 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3190
3191 * infrun.c (handle_inferior_event): Minor reformatting, to make
3192 a rather long condition expression easier to read.
3193
3194 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3195
3196 * Makefile.in (gdbtk.o): Move to end of file.
3197 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3198 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3199 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3200 (gdbtk-wrapper.o, gdbres.o): Ditto.
3201
3202 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3203
3204 * Makefile.in (copying.o): Separate out compile rule.
3205 (hpux-thread.o, procfs.o, signals.o): Ditto.
3206 (v850ice.o, z8k-tdep.o): Ditto.
3207 (tui-file.o): Move to TUI section.
3208 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3209 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3210
3211 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3212
3213 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3214 skip_trampoline_code, for better namespace-proofing.
3215
3216 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3217
3218 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3219
3220 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3221
3222 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3223
3224 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3225 signal, check whether we hit a breakpoint before checking for a
3226 single step breakpoint. Otherwise, GDB fails to notice that a
3227 breakpoint has been hit when stepping onto a breakpoint.
3228
3229 2002-08-16 Keith Seitz <keiths@redhat.com>
3230
3231 * gdb-events.sh (clear_gdb_event_hooks): New function.
3232 * gdb-events.c: Regenerate.
3233 * gdb-events.h: Regenerate.
3234
3235 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3236
3237 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3238 not_a_sw_breakpoint.
3239 * breakpoint.h (bpstat_stop_status): Add parameter names.
3240
3241 2002-08-16 Grace Sainsbury <graces@redhat.com>
3242
3243 * remote.c (remote_insert_hw_breakpoint)
3244 (remote_remove_hw_breakpoint): Fix calculation of length field
3245 for Z-packet.
3246
3247 2002-08-15 Michael Snyder <msnyder@redhat.com>
3248
3249 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3250 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3251 (supply_fpregset): Ditto.
3252
3253 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3254 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3255 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3256 (TARGET_READ_SP): Delete.
3257 (DO_REGISTERS_INFO): Delete.
3258 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3259 Delete.
3260 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3261 from macros to functions.
3262
3263 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3264 (mips_register_convertible, mips_register_convert_to_virtual,
3265 mips_register_convert_to_raw): Make static.
3266 (mips_read_sp): New function.
3267 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3268 (mips_do_registers_info): Make static.
3269 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3270 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3271 (mips_register_convert_from_type, mips_register_convert_to_type):
3272 New functions.
3273 (mips_gdbarch_init): Set up function_start_offset,
3274 register_virtual_size, pc_in_sigtramp.
3275
3276 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3277
3278 * infcmd.c (vector_info): New function.
3279 (_initialize_infcmd): Add command "info vector".
3280 (print_vector_info): New function.
3281
3282 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3283 * gdbarch.h, gdbarch.c: Regenerate.
3284
3285 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3286
3287 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3288 ``print_all''. Only print vector registers when ``print_all''.
3289
3290 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3291
3292 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3293 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3294
3295 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3296 Add `args' parameter.
3297 * gdbarch.h, gdbarch.c: Regenerate.
3298
3299 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3300
3301 * infcmd.c (float_info): Call print_float_info.
3302 (print_float_info): New function. By default, print the
3303 floating-point registers.
3304
3305 * arch-utils.h (default_print_float_info): Delete declaration.
3306 * arch-utils.c (default_print_float_info): Delete function.
3307
3308 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3309
3310 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3311 out define.
3312
3313 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3314 FRAME.
3315
3316 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3317 * configure.host: Make i[3456]86-*-aix host obsolete.
3318 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3319 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3320 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3321 config/i386/xm-i386aix.h: Make files obsolete.
3322 * i386aix-nat.c: Make file obsolete.
3323 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3324 (i386aix-nat.o): Make target obsolete.
3325
3326 * config/i386/nm-gnu.h: Removed.
3327 * config/i386/nm-i386gnu.h: New file.
3328 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3329 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3330 Moved here from ...
3331 * config/i386/tm-i386gnu.h: ... here. Removed.
3332 * config/i386/xm-i386gnu.h: Removed.
3333 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3334 (NAT_FILE): Set to nm-i386gnu.h.
3335 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3336 * i386-tdep.c: New file.
3337 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3338 (i386gnu-tdep.o): Specify dependencies.
3339
3340 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3341
3342 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3343 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3344 Adjust a few comments to reflect reality a bit closer.
3345 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3346 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3347 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3348 target_insert_watchpoint, target_remove_watchpoint):
3349 Move defines to ...
3350 * config/i386/nm-i386sco5.h: ... here.
3351 (kernel_u_size): Add prototype. Improve a few comments and add
3352 protection against multiple inclusion.
3353
3354 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3355 out define.
3356
3357 * uw-thread.c (SP_ARG0): Define if not already defined.
3358 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3359
3360 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3361
3362 * config/i386/tm-i386.h: Don't include "regcache.h".
3363
3364 * i387-tdep.h (i387_print_float_info): New prototype.
3365 * i387-tdep.c (print_i387_value, print_i387_ext,
3366 print_i387_status_word, print_i387_control_word): Add `struct
3367 ui_file *' argument and use it for output.
3368 (i387_print_float_info): Renamed from i387_float_info. Add
3369 `struct gdbarch *' and `struct ui_file *' arguments and use the
3370 latter for output.
3371 * i386-tdep.c: Include "i387-tdep.h".
3372 (i386_gdbarch_init): Set print_float_info.
3373 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3374 (FLOAT_INFO): Remove define.
3375
3376 2002-08-13 Michael Snyder <msnyder@redhat.com>
3377
3378 * mips-tdep.c (mips_push_arguments): Rename to
3379 mips_eabi_push_arguments, and tune for EABI.
3380 (MIPS_REGS_HAVE_HOME_P): Delete.
3381 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3382 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3383 Delete references to mips_regs_have_home_p.
3384
3385 2002-08-14 Keith Seitz <keiths@redhat.com>
3386
3387 * Makefile.in (install-gdbtk): Create insight plugin directory.
3388 Install plugins.tcl file.
3389
3390 2002-08-14 Keith Seitz <keiths@redhat.com>
3391
3392 * configure.in: Move SUBDIRS to near top of the file so that
3393 --enable options may add things to it.
3394 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3395 * configure: Regenerate.
3396
3397 2002-08-13 Michael Snyder <msnyder@redhat.com>
3398
3399 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3400 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3401 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3402
3403 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3404
3405 * vax-tdep.c (vax_get_saved_register): Delete function.
3406 (vax_gdbarch_init): Update.
3407 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3408 (ns32k_gdbarch_init): Update.
3409 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3410 (alpha_gdbarch_init): Update.
3411
3412 2002-08-13 Andrew Cagney <cagney@redhat.com>
3413
3414 * regcache.c (init_regcache_descr): Overallocate the
3415 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3416 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3417 nr_raw_registers.
3418 (set_register_cached): Add range checking assertions. Use
3419 current_regcache.
3420
3421 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3422
3423 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3424 numbers for MMX registers.
3425
3426 2002-08-13 Andrew Cagney <cagney@redhat.com>
3427
3428 * i386-tdep.c (i386_gdbarch_init): Use
3429 generic_unwind_get_saved_register.
3430
3431 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3432
3433 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3434 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3435 target vector.
3436 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3437 Delete. Add comment regarding this now-deleted target method.
3438
3439 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3440
3441 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3442 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3443 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3444 real PC and the page number (if it's within the memory bank window).
3445 (m68hc11_pseudo_register_write): Likewise when saving.
3446 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3447 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3448 (m68hc11_register_raw_size): And use 32-bit for it.
3449 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3450 16K memory bank is used by the prog; also use the virtual pc.
3451
3452 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3453
3454 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3455 (m68hc11_gdbarch_init): Install it in gdbarch.
3456 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3457 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3458 (MSYMBOL_SIZE): New for documentation.
3459 (insn_return_kind): Enum to specify how a function returns.
3460 (frame_extra_info): Cleanup and record the return mode.
3461 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3462 register in address computation.
3463 (m68hc11_get_return_insn): New to obtain the return instruction used
3464 by the function.
3465 (m68hc11_frame_init_saved_regs): Take into account the return
3466 instruction used by the function for far and interrupt functions.
3467 (m68hc11_init_extra_frame_info): Take into account page register.
3468 (m68hc11_frame_args_address): Adjust according to the return mode.
3469 (show_regs): Print page register only when it's used.
3470
3471 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3472
3473 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3474 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3475 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3476 registers.
3477 (m68hc11_register_raw_size): Likewise.
3478
3479 2002-08-13 Andrew Cagney <cagney@redhat.com>
3480
3481 * i386-tdep.c (i386_register_name): Handle mmx registers.
3482 (mmx_regnum_p): New function.
3483 (i386_mmx_names): New array.
3484 (mmx_num_regs): New variable.
3485 (i386_pseudo_register_read): New function.
3486 (i386_pseudo_register_write): New function.
3487 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3488
3489 * regcache.c (regcache_raw_read_unsigned): New function.
3490 (regcache_raw_read_signed): New function.
3491 * regcache.h (regcache_raw_read_unsigned): Declare.
3492 (regcache_raw_read_signed): Declare.
3493
3494 2002-08-13 Andrew Cagney <cagney@redhat.com>
3495
3496 * regcache.c (regcache_raw_read_as_address): Delete function.
3497 (regcache_cooked_read_signed): New function.
3498 (regcache_cooked_read_unsigned): New function.
3499 * regcache.h (regcache_cooked_read_signed): Declare.
3500 (regcache_cooked_read_unsigned): Declare.
3501 (regcache_raw_read_as_address): Delete declaration.
3502
3503 * blockframe.c (generic_read_register_dummy): Use
3504 regcache_cooked_read_unsigned.
3505 * i386-tdep.c (i386_extract_struct_value_address): Use
3506 regcache_cooked_read_unsigned.
3507
3508 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3509
3510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3511 double sizes according to ELF ABI flags.
3512 (gdbarch_tdep): Record elf_flags.
3513
3514 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3515
3516 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3517 (m6812_prolog): They can appear in 68HC12 function prologue.
3518 (m68hc11_frame_chain): Cleanup.
3519
3520 2002-08-12 Andrew Cagney <cagney@redhat.com>
3521
3522 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3523 declarations.
3524 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3525 (i386_linux_register_raw_size): Delete function.
3526 (i386_linux_init_abi): Update.
3527 * i386-tdep.c (i386_register_raw_size): Delete function.
3528 (i386_register_byte): Delete function.
3529 (i386_gdbarch_init): Update.
3530 (i386_register_size): Delete array.
3531 (i386_register_offset): Delete array.
3532
3533 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3534 (REGISTER_RAW_SIZE): Delete macro.
3535 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3536 (REGISTER_BYTE): Delete macro.
3537
3538 2002-08-11 Aidan Skinner <aidan@velvet.net>
3539
3540 * ada-lang.c (ada_lookup_partial_symbol)
3541 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3542 prototype names so that grep ^func works properly.
3543
3544 * ada-lang.c (ada_array_element_type)
3545 (ada_lookup_partial_symbol): Fix typos in parameter list.
3546
3547 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3548 Fix prototype names so that grep ^func works properly.
3549
3550 2002-08-10 Andrew Cagney <cagney@redhat.com>
3551 Elena Zannoni <ezannoni@redhat.com>
3552 Martin M. Hunt <hunt@redhat.com>
3553
3554 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3555 (build_builtin_type_vec128i): Set the vector bit.
3556 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3557 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3558 (build_builtin_type_vec64): New function.
3559 (build_builtin_type_vec64i): New function.
3560 (build_gdbtypes): Initialize builtin_type_vec64 and
3561 builtin_type_vec64i.
3562
3563 2002-08-09 Andrew Cagney <cagney@redhat.com>
3564
3565 * regcache.c (regcache_dump): Compare the register offset
3566 with REGISTER_BYTE.
3567 * arch-utils.c (generic_register_byte): New function.
3568 * arch-utils.h (generic_register_byte): Declare.
3569 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3570 * gdbarch.h, gdbarch.c: Regenerate.
3571
3572 2002-08-09 Andrew Cagney <cagney@redhat.com>
3573
3574 * regcache.c: Include "gdbcmd.h"
3575 (_initialize_regcache): Add commands "maintenance print
3576 registers", "maintenance print raw-registers" and "maintenance
3577 print cooked-registers".
3578 (enum regcache_dump_what): Define.
3579 (dump_endian_bytes): New function.
3580 (regcache_dump): New function.
3581 (regcache_print): New function.
3582 (maintenance_print_registers): New function.
3583 (maintenance_print_raw_registers): New function.
3584 (maintenance_print_cooked_registers): New function.
3585 * Makefile.in (regcache.o): Update dependencies.
3586
3587 2002-08-09 Michael Snyder <msnyder@redhat.com>
3588
3589 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3590 (mips_push_arguments): Correct some comments. Use paddr_nz
3591 for printing addresses in debug output. Replace static
3592 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3593 (mips_n32n64_push_arguments): New function, cloned from
3594 mips_push_arguments and tuned for the n32/n64 ABI.
3595 (mips_push_register): Buffer needs dynamic allocation.
3596 (mips_print_register): Ditto.
3597 (do_gp_register_row): Ditto.
3598 (mips_store_return_value): Ditto.
3599 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3600
3601 2002-08-09 Don Howard <dhoward@redhat.com>
3602
3603 * memattr.c (mem_info_command): Print special case of upper bound
3604 as max CORE_ADDR + 1.
3605
3606 2002-08-08 Michael Snyder <msnyder@redhat.com>
3607
3608 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3609 returns structs by ref if they're too big to fit in two registers.
3610
3611 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3612
3613 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3614 saved regs value.
3615 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3616 mips_find_saved_regs().
3617 (mips_pop_frame): Likewise.
3618
3619 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3620
3621 * blockframe.c (frame_saved_regs_register_unwind): Revise
3622 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3623 frames are in use.
3624
3625 2002-08-09 Grace Sainsbury <graces@redhat.com>
3626
3627 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3628 T-packets; the 'a' is not taken as a register number.
3629 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3630 (remote_stopped_data_address): New functions; add to target
3631 vector.
3632 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3633 prototypes to match other implementations of this
3634 function. replace integer argument with pointer -- the length
3635 field in the Z-packet is the length of what is pointed to or 1 if
3636 pointer is null. Add to target vector.
3637 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3638 target vector.
3639
3640 From Mark Salter:
3641 * remote.c (remote_wait): Add support to extract optional
3642 watchpoint information from T-packet. Ignore unrecognized
3643 optional info in T-packet.
3644 (remote_async_wait): Ditto.
3645
3646 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3647
3648 * cli/cli-dump.c: Change fopen modes to use binary open modes
3649 as defined in include/fopen-bin.h throughout.
3650
3651 2002-08-08 Michael Snyder <msnyder@redhat.com>
3652
3653 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3654
3655 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3656
3657 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3658 assertion failure by returning early after a warning.
3659
3660 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3661
3662 * mips-tdep.c (mips_find_saved_regs): Make static.
3663 (mips_frame_init_saved_regs): New function.
3664 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3665 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3666 (mips_find_saved_regs): Delete declaration.
3667
3668 2002-08-08 Grace Sainsbury <graces@redhat.com>
3669
3670 * remote.c (remote_wait, remote_async_wait): Change
3671 thread_num from int to ULONGEST.
3672 (unpack_varlen_hex): Change result parameter from
3673 int * to ULONGEST *.
3674
3675 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3676
3677 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3678 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3679 powerpc*-*-*.
3680 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3681
3682 2002-08-08 Andrew Cagney <cagney@redhat.com>
3683
3684 * gcore.c (override_derive_stack_segment): Delete variable.
3685 (preempt_derive_stack_segment): Delete function.
3686 (derive_stack_segment): Delete function.
3687 (default_derive_stack_segment): Renamed to derive_stack_segment.
3688 (override_derive_heap_segment): Delete variable.
3689 (preempt_derive_heap_segment): Delete function.
3690 (derive_heap_segment): Delete function.
3691 (default_derive_heap_segment): Rename to derive_heap_segment.
3692
3693 2002-08-06 Michael Snyder <msnyder@redhat.com>
3694
3695 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3696 * mips-tdep.c (mips_EABI_use_struct_convention,
3697 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3698 New functions. (mips_use_struct_convention): Delete.
3699 (mips_gdbarch_init): set use_gdbarch_convention.
3700
3701 2002-08-06 Michael Snyder <msnyder@redhat.com>
3702
3703 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3704 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3705 mips_o32_reg_struct_has_addr): New functions.
3706 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3707
3708 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3709
3710 * regcache.c (pseudo_register): Delete function.
3711 (fetch_register): Delete function.
3712 (store_register): Delete function.
3713 (regcache_raw_read, legacy_read_register_gen): Use
3714 target_fetch_registers instead of fetch_register.
3715 (legacy_write_register_gen, regcache_raw_write): Use
3716 target_store_register instead of store_register.
3717 (write_register_bytes): Ditto.
3718
3719 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3720 (STORE_PSEUDO_REGISTER): Delete.
3721 * gdbarch.h, gdbarch.c: Regenerate.
3722
3723 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3724
3725 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3726 write dump file binary.
3727
3728 2002-08-05 Michael Snyder <msnyder@redhat.com>
3729
3730 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3731 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3732 (mips_gdbarch_init): Set N32 target to be mips64.
3733
3734 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3735
3736 * frame.c (find_saved_register): Break out of loop once saved
3737 register address is found. Don't mention sparc in loop comment
3738 anymore.
3739
3740 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3741
3742 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3743 mips_default_saved_regsize to 8.
3744
3745 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3746
3747 * gcore.c: Do not include <sys/procfs.h>.
3748 * Makefile.in (gcore.o): Update dependencies.
3749
3750 2002-08-06 Andrew Cagney <cagney@redhat.com>
3751
3752 * configure.tgt: Make arc-*-* obsolete.
3753 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3754 * MAINTAINERS: Make arc-elf obsolete.
3755 * arc-tdep.c: Make file obsolete.
3756 * config/arc/arc.mt: Ditto.
3757 * config/arc/tm-arc.h: Ditto.
3758
3759 2002-08-05 Theodore A. Roth <troth@verinet.com>
3760
3761 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3762
3763 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3764
3765 * mcore-tdep.c (mcore_gdbarch_init): Use
3766 generic_unwind_get_saved_register instead of
3767 generic_get_saved_register.
3768 * v850-tdep.c (v850_gdbarch_init): Ditto.
3769 * frv-tdep.c (frv_gdbarch_init): Ditto.
3770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3771 * s390-tdep.c (s390_gdbarch_init): Ditto.
3772 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3773 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3774 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3775
3776 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3777
3778 * objfiles.h: Add missing #include "symfile.h"
3779
3780 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3781
3782 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3783
3784 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3785 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3786 of FIELD_BITSIZE.
3787
3788 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3789
3790 * NEWS: Cleanup and nitpick.
3791
3792 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3793
3794 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3795
3796 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3797
3798 * Makefile.in (gdbtk-bp.o): Update dependencies.
3799 (gdbtk-register.o): Ditto.
3800 (gdbtk-varobj.o): Ditto.
3801
3802 2002-08-03 Andrew Cagney <cagney@redhat.com>
3803
3804 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3805 m68hc11_fetch_pseudo_register.
3806 (m68hc11_pseudo_register_write): Replace
3807 m68hc11_store_pseudo_register.
3808 (m68hc11_gdbarch_init): Update.
3809
3810 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3811
3812 * gdbarch.sh: Include "gdb_string.h".
3813 * gdbarch.c: Regenerate.
3814
3815 * regcache.c: Include "gdb_string.h".
3816 * ax-general.c: Ditto.
3817 * varobj.c: Ditto.
3818 * std-regs.c: Ditto.
3819 * fbsd-proc.c: Ditto.
3820 * thread.c: Ditto.
3821
3822 * Makefile.in (regcache.o): Update dependencies.
3823 (thread.o, gdbarch.o): Ditto.
3824 (ax-general.o, gdbarch.o): Ditto.
3825 (varobj.o, std-regs.o): Ditto.
3826 (fbsd-proc.o): Specify dependencies.
3827
3828 2002-08-02 Andrew Cagney <cagney@redhat.com>
3829
3830 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3831 regnum.
3832 (regcache_cooked_write): Ditto.
3833
3834 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3835
3836 * regcache.c (regcache_cooked_read): New function.
3837 (regcache_cooked_write): New function.
3838 (read_register_gen): Rewrite using regcache_cooked_read.
3839 (write_register_gen): Rewrite using regcache_cooked_write.
3840
3841 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3842 Declare.
3843
3844 2002-08-02 Andrew Cagney <cagney@redhat.com>
3845
3846 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3847 Replace the architecture methods register_read and register_write.
3848 * gdbarch.h, gdbarch.c: Regenerate.
3849 * regcache.c (init_regcache_descr): Update.
3850 (read_register_gen): Update.
3851 (write_register_gen): Update.
3852 (supply_register): Update comment.
3853
3854 * sh-tdep.c (sh_gdbarch_init): Update.
3855 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3856 `regcache' and `gdbarch' parameters. Make `buffer' a void
3857 pointer. Update code.
3858 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3859 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3860 void pointer. Update code.
3861 (sh64_register_write): Delete.
3862 (sh4_register_read): Delete.
3863 (sh64_register_read): Delete.
3864 (sh4_register_write): Delete.
3865 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3866 void pointer, `to' parameter a void pointer.
3867 (sh_sh64_register_convert_to_raw): Ditto.
3868
3869 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3870
3871 * mips-tdep.c (mips_register_virtual_type): Use architecture
3872 invariant return values.
3873
3874 2002-08-01 Andrew Cagney <cagney@redhat.com>
3875
3876 * linux-proc.c: Include "gdb_string.h".
3877 * Makefile.in (linux-proc.o): Update dependency list.
3878
3879 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3880
3881 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3882 comment.
3883
3884 2002-08-01 Grace Sainsbury <graces@redhat.com>
3885
3886 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3887 to_insert_watchpoint, to_remove_watchpoint,
3888 to_stopped_by_watchpoint, to_stopped_data_address,
3889 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3890 target vecctor. Define their corresponding macros so they call
3891 them.
3892
3893 * target.c: Add default and debug versions of for
3894 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3895 to_insert_watchpoint, to_remove_watchpoint,
3896 to_stopped_by_watchpoint, to_stopped_data_address,
3897 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3898
3899 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3900
3901 * mips-tdep.c (mips_register_virtual_type): New function.
3902 (mips_gdbarch_init): Register mips_register_virtual_type()
3903 with gdbarch machinery.
3904 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3905 this file instead of tm-bigmips.h.
3906 (MIPS_REGSIZE): Delete this macro.
3907 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3908 multiarch version in mips-tdep.c will be found.
3909
3910 2002-08-01 Andrew Cagney <cagney@redhat.com>
3911
3912 * NEWS: Menion that CHILL has been made obsolete.
3913
3914 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3915 * stabsread.c (read_range_type): Ditto.
3916 * gdbtypes.h: Ditto.
3917 * language.c (binop_type_check): Ditto.
3918 (binop_result_type): Ditto.
3919 (integral_type): Ditto.
3920 (character_type): Ditto.
3921 (string_type): Ditto.
3922 (boolean_type): Ditto.
3923 (structured_type): Ditto.
3924 (lang_bool_type): Ditto.
3925 (binop_type_check): Ditto.
3926 * language.h (_LANG_chill): Ditto.
3927 * dwarfread.c (set_cu_language): Ditto.
3928 * dwarfread.c (CHILL_PRODUCER): Ditto.
3929 * dwarfread.c (handle_producer): Ditto.
3930 * expression.h (enum exp_opcode): Ditto.
3931 * eval.c: Ditto for comments.
3932 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3933 * expprint.c (print_subexp): Ditto.
3934 (print_subexp): Ditto.
3935 * valops.c (value_cast): Ditto.
3936 (search_struct_field): Ditto.
3937 * value.h (COERCE_VARYING_ARRAY): Ditto.
3938 * symfile.c (init_filename_language_table): Ditto.
3939 (add_psymbol_with_dem_name_to_list): Ditto.
3940 * valarith.c (value_binop): Ditto.
3941 (value_neg): Ditto.
3942 * valops.c (value_slice): Ditto.
3943 * symtab.h (union language_specific): Ditto.
3944 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3945 (SYMBOL_DEMANGLED_NAME): Ditto.
3946 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3947 * defs.h (enum language): Ditto.
3948 * symtab.c (got_symtab): Ditto.
3949 * utils.c (fprintf_symbol_filtered): Ditto.
3950
3951 * ch-typeprint.c: Make file obsolete.
3952 * ch-valprint.c: Make file obsolete.
3953 * ch-lang.h: Make file obsolete.
3954 * ch-exp.c: Make file obsolete.
3955 * ch-lang.c: Make file obsolete.
3956
3957 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3958 CHILL_LIB.
3959 (TARGET_FLAGS_TO_PASS): Ditto.
3960 (CHILLFLAGS): Obsolete.
3961 (CHILL): Obsolete.
3962 (CHILL_FOR_TARGET): Obsolete.
3963 (CHILL_LIB): Obsolete.
3964 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3965 ch-valprint.c.
3966 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3967 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3968 ch-lang.o.
3969 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3970 targets.
3971
3972 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3973
3974 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3975 This does not change anything at the moment, but will be helpful
3976 later when full Ada support is integrated.
3977
3978 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3979
3980 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3981 help message.
3982
3983 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3984
3985 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3986 and save it in a local variable. Use variable in later test.
3987
3988 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3989
3990 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3991 test. (Thanks to Daniel Jacobowitz.)
3992
3993 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3994
3995 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3996 (mips_abi_strings): Add "n64".
3997 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3998
3999 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4000
4001 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4002 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4003
4004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4005
4006 * utils.c (host_pointer_to_address, address_to_host_pointer):
4007 Use gdb_assert() instead of explicit call to internal_error().
4008
4009 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4010
4011 * Makefile.in (rs6000-nat.o): Update dependencies.
4012
4013 From Nicholas Duffek:
4014 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4015 (aix-thread.o): New rule.
4016 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4017 * config/powerpc/aix432.mh: New file.
4018
4019 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4020
4021 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4022 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4023 (fetch_core_registers, ppc_linux_supply_gregset)
4024 (ppc_linux_supply_fpregset): New functions.
4025 (ppc_linux_regset_core_fns): New.
4026 (_initialize_ppc_linux_tdep): Call add_core_fns.
4027 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4028 and ppc_linux_supply_gregset.
4029 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4030 (supply_fpregset): Call ppc_linux_supply_fpregset.
4031 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4032 corelow.o.
4033 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4034
4035 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4036
4037 * symtab.c (lookup_symbol): Demangle before lowercasing.
4038
4039 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4040
4041 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4042 declaration.
4043 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4044 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4045 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4046 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4047 "gdb_string.h".
4048 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4049 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4050 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4051 (avr-tdep.o, mon960-rom.o): Ditto.
4052 (aout_stabs_gnu_h): Define.
4053 (symtab_h): Remove $(gdb_obstack_h).
4054
4055 2002-07-30 Jim Blandy <jimb@redhat.com>
4056
4057 Patch from David Carlton <carlton@math.stanford.edu>:
4058 * gdbinit.in: Move the `dir' commands that add GDB's own source
4059 directory to the search path to the end, so that the `gdb' source
4060 directory will be searched first.
4061
4062 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4063
4064 * gdb_obstack.h: New file.
4065 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4066 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4067 * objfiles.h: Include "gdb_obstack.h".
4068 * Makefile.in (gdb_obstack_h): Define.
4069 (symtab_h): Add $(gdb_obstack_h).
4070 (objfiles_h): Add $(gdb_obstack_h).
4071
4072 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4073 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4074 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4075 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4076 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4077 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4078 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4079 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4080
4081 * Makefile.in (bcache.o): Update dependencies.
4082 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4083 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4084 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4085 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4086 (stabsread.o, symfile.o, symmisc.o): Ditto.
4087 (symtab.o, typeprint.o, macroexp.o): Ditto.
4088 (macrotab.o, mdebugread.o): Ditto.
4089 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4090 (coff_ecoff_h, aout_aout64_h): Define.
4091 (aout_stabs_gnu_h, libaout_h): Define.
4092
4093 2002-07-29 Andrew Cagney <cagney@redhat.com>
4094
4095 * regcache.c (struct regcache_descr): Rename nr_registers to
4096 nr_cooked_registers. Revise comments describing the structure
4097 member fields.
4098 (init_regcache_descr): Update.
4099 (init_legacy_regcache_descr): Update.
4100 (read_register_gen, write_register_gen): When a cooked register in
4101 the raw register range, directly access the value from the raw
4102 register cache.
4103
4104 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4105
4106 * z8k-tdep.c: Do not include "obstack.h".
4107 * h8300-tdep.c, h8500-tdep.c: Ditto.
4108 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4109 * valprint.c, v850-tdep.c: Ditto.
4110 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4111 * mn10200-tdep.c: Ditto.
4112
4113 * Makefile.in (z8k-tdep.o): Update dependencies.
4114 (m68hc11-tdep.o, valprint.o): Ditto.
4115 (v850-tdep.o, d10v-tdep.o): Ditto.
4116 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4117 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4118 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4119 (sh_opc_h, gdb_sim_sh_h): Define.
4120 (elf_sh_h, elf_bfd_h): Define.
4121 (opcode_m68hc11_h): Define.
4122 (OPCODES_SRC, OPCODES_DIR): define.
4123 (OPCODES): Use $(OPCODES_DIR).
4124 (gdb_sim_d10v_h): Rename sim_d10v_h.
4125 (gdb_sim_arm_h): Rename sim_arm_h.
4126
4127 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4128
4129 * utils.c (host_pointer_to_address, address_to_host_pointer):
4130 Change internal_error() message to indicate function responsible
4131 for the error.
4132
4133 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4134
4135 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4136 calls to local_hex_string_custom().
4137
4138 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4139
4140 * irix5-nat.c: Move IRIX shared library support from here...
4141 * solib-irix.c: ...to here. Revised substantially to work with
4142 generic solib framework.
4143
4144 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4145 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4146 * mips-irix-tdep.c: New file.
4147
4148 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4149 (mips-irix-tdep.o, solib-irix.o): New rules.
4150 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4151 solib-irix.o.
4152 * config/mips/irix6.mt (TDEPFILES): Likewise.
4153 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4154
4155 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4156
4157 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4158 disabled (via ``#if 0'') includes.
4159
4160 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4161
4162 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4163 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4164 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4165 Add support for the fpscr register.
4166 * rs6000-nat.c (regmap, fetch_inferior_registers)
4167 (store_inferior_registers, fetch_core_registers): Likewise.
4168
4169 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4170
4171 * rs6000-nat.c (language.h): Include.
4172 (special_regs): Delete this array.
4173 (regmap): New function.
4174 (fetch_register, store_register): Use regmap() to map gdb
4175 register numbers to ptrace register numbers. Also, use
4176 outputs from regmap() to make decisions regarding type of
4177 ptrace() call to make. In particular, don't compare against
4178 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4179 (fetch_inferior_registers, store_inferior_registers): Where
4180 possible, obtain register numbers from tdep struct. Don't
4181 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4182 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4183 (LAST_UISA_SP_REGNUM): Delete.
4184
4185 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4186
4187 * rs6000-nat.c (ppc-tdep.h): Include.
4188 (fetch_registers, store_register, fetch_core_registers): Don't
4189 access registers[] directly. Instead, use supply_register() or
4190 regcache_collect() as appropriate.
4191 (find_toc_address): Format hex address with local_hex_string().
4192
4193 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4194
4195 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4196 bfd/elf32-frv.c.
4197
4198 2002-07-24 Tom Tromey <tromey@redhat.com>
4199
4200 * jv-exp.y: Marked all strings with _().
4201 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4202 internal_error.
4203 (MethodInvocation, CastExpression, parse_number, yyerror,
4204 java_type_from_name, push_expression_name, yylex): Typo fixes.
4205
4206 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4207
4208 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4209 (tee_file_flush, tee_file_write, tee_file_fputs)
4210 (tee_file_isatty): New.
4211 * ui-file.h (tee_file_new): Add prototype.
4212
4213 2002-07-24 Aidan Skinner <aidan@velvet.net>
4214
4215 * ada-lang.c: Change k&r style function definitions to prototyped
4216 form.
4217 * ada-typeprint.c: Change k&r style function definitions to prototyped
4218 form.
4219 * ada-valprint.c: Change k&r style function definitions to prototyped
4220 form.
4221
4222 2002-07-24 Andrew Cagney <cagney@redhat.com>
4223
4224 * README: Remove reference to remote-bug.
4225 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4226 remote-bug.c.
4227 (m88k-nat.o): Delete rule.
4228 (m88k-tdep.o): Delete rule.
4229 (remote-bug.o): Delete rule.
4230 * MAINTAINERS: Mark as obsolete.
4231 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4232 * m88k-tdep.c: Make file obsolete.
4233 * config/m88k/m88k.mh: Ditto.
4234 * config/m88k/delta88v4.mh: Ditto.
4235 * config/m88k/delta88v4.mt: Ditto.
4236 * config/m88k/delta88.mt: Ditto.
4237 * config/m88k/delta88.mh: Ditto.
4238 * remote-bug.c: Ditto.
4239 * config/m88k/tm-delta88.h: Ditto.
4240 * config/m88k/nm-delta88v4.h: Ditto.
4241 * config/m88k/xm-delta88.h: Ditto.
4242 * config/m88k/xm-dgux.h: Ditto.
4243 * config/m88k/tm-m88k.h: Ditto.
4244 * config/m88k/nm-m88k.h: Ditto.
4245 * config/m88k/tm-delta88v4.h: Ditto.
4246 * m88k-nat.c: Ditto.
4247 * cxux-nat.c: Ditto.
4248 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4249 and m88*-*-* obsolete.
4250 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4251 m88*-*-* obsolete.
4252
4253 2002-07-24 Andrew Cagney <cagney@redhat.com>
4254
4255 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4256 constant. Same for local pointer variables.
4257 (extract_signed_integer): Ditto.
4258 * defs.h (extract_unsigned_integer): Update.
4259 (extract_signed_integer): Update.
4260
4261 2002-07-24 Andrew Cagney <cagney@redhat.com>
4262
4263 * regcache.c (regcache_raw_write): Change buf parameter to a
4264 constant void pointer.
4265 (regcache_raw_read): Change buf parameter to a void pointer.
4266 (legacy_write_register_gen): Change myaddr parameter a constant
4267 void pointer.
4268 (supply_register): Change val parameter to a const void pointer.
4269 * regcache.h (regcache_raw_write): Update declaration.
4270 (regcache_raw_read): Update declaration.
4271 (supply_register): Update declaration.
4272
4273 2002-07-24 Tom Tromey <tromey@redhat.com>
4274
4275 * defs.h (gdb_readline_wrapper): Declare.
4276 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4277 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4278 * top.c (gdb_readline_wrapper): New function.
4279 (command_line_input): Use it.
4280
4281 2002-07-24 Andrew Cagney <cagney@redhat.com>
4282
4283 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4284 regcache_read and regcache_write.
4285 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4286 * regcache.c: Update.
4287 * sh-tdep.c (sh64_push_arguments): Update comment.
4288 (sh_pseudo_register_read): Update.
4289 (sh_pseudo_register_write): Update.
4290 (sh4_register_read): Update.
4291 (sh4_register_write): Update.
4292 (sh64_pseudo_register_read): Update.
4293 (sh64_pseudo_register_write): Update.
4294 (sh64_register_read): Update.
4295 (sh64_register_write): Update.
4296 * i386-tdep.c (i386_extract_return_value): Update.
4297 (i386_extract_struct_value_address): Update.
4298 (i386_extract_return_value): Update.
4299 * blockframe.c (generic_read_register_dummy): Update.
4300 (generic_call_dummy_register_unwind): Update
4301 * infrun.c (write_inferior_status_register): Update.
4302
4303 2002-07-23 Jim Blandy <jimb@redhat.com>
4304
4305 * parser-defs.h (expression_context_pc): Make this extern.
4306 (Thanks to Michael Snyder.)
4307
4308 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4309
4310 GDB 5.2.1 released from 5.2 branch.
4311 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4312 * README: Update to mention 5.2.1.
4313
4314 2002-07-23 Mark Salter <msalter@redhat.com>
4315
4316 * remote.c (remote_read_bytes): Fix check for error.
4317
4318 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4319
4320 * aix-thread.c (language.h): Include.
4321 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4322 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4323 Print newlines at end of debug messages.
4324 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4325 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4326
4327 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4328
4329 * aix-thread.c (ppc-tdep.h): Include.
4330 (special_register_p): New function.
4331 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4332 (store_regs_user_thread): Use register number information from
4333 gdbarch_tdep struct instead of hardcoded offsets relative to
4334 FIRST_UISA_SP_REGNUM.
4335 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4336 special_register_p() instead of using FPLAST_REGNUM and
4337 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4338 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4339 will be MQ's register number.
4340
4341 2002-07-22 Michael Snyder <msnyder@redhat.com>
4342
4343 * aix-thread.c (ops): Rename to aix_thread_ops.
4344 (base_ops): Rename to base_target.
4345 (ops_attach): Rename to aix_thread_attach.
4346 (ops_detach): Rename to aix_thread_detach.
4347 (ops_resume): Rename to aix_thread_detach.
4348 (ops_wait): Rename to aix_thread_wait.
4349 (ops_kill): Rename to aix_thread_kill.
4350 (init_ops): Rename to init_aix_thread_ops.
4351 (ops_fetch_register): Rename to aix_thread_fetch_register.
4352 (ops_store_register): Rename to aix_thread_store_register.
4353 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4354 (ops_thread_alive): Rename to aix_thread_thread_alive.
4355 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4356 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4357 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4358 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4359 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4360 (store_regs_lib): Rename to store_regs_user_thread.
4361 (store_regs_kern): Rename to store_regs_kernel_thread.
4362
4363 2002-07-22 Michael Snyder <msnyder@redhat.com>
4364
4365 * aix-thread.c (ops_prepare_to_store): Eliminate.
4366 (init_ops): Don't initialize ops.prepare_to_store.
4367 (store_regs_kern): Pre-fetch register buffers from child,
4368 because some registers may not be in the cache. Copy
4369 regs from register cache only if they are cached.
4370 (store_regs_lib): Copy regs from register cache only
4371 if they are cached.
4372 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4373 fill_gprs64): Ditto.
4374
4375 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4376
4377 * aix-thread.c (gdb_assert.h): Include.
4378 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4379 register sizes (from register cache) match size of buffer holding
4380 register data.
4381 (fill_sprs32): Change parameter types to match those in the ptrace()
4382 buffer.
4383 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4384 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4385
4386 2002-07-22 Michael Snyder <msnyder@redhat.com>
4387
4388 * aix-thread.c (supply_sprs64): Cosmetic change.
4389 (supply_sprs32): Cosmetic change.
4390 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4391 (fill_sprs64): Use regcache_collect instead of read_register.
4392 (store_regs_lib): Use regcache_collect instead of
4393 read_register. Use fill_sprs32 instead of fill_sprs64,
4394 if debugging a 32-bit architecture.
4395 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4396 out of the register cache, instead of passing a pointer into
4397 the register cache directly to ptrace. Use regcache_collect
4398 insteaad of read_register.
4399 (ops_prepare_to_store): Use target_read_registers instead
4400 of read_register_bytes.
4401
4402 2002-07-20 Aidan Skinner <aidan@velvet.net>
4403
4404 * MAINTAINERS: Add self under write after approval.
4405
4406 2002-07-20 Aidan Skinner <aidan@velvet.net>
4407
4408 * ada-tasks.c: Change k&r style function definitions to prototyped
4409 form.
4410
4411 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4412
4413 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4414 * x86-64-tdep.c: Include "objfiles.h".
4415 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4416 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4417
4418 2002-07-17 Michal Ludvig <michal@suse.cz>
4419
4420 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4421 (update_context): Initialise cfa variable.
4422
4423 2002-07-17 Michael Snyder <msnyder@redhat.com>
4424
4425 * aix-thread.c: Shorten some long lines.
4426 Bring comments into line with code spec.
4427
4428 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4429
4430 * infrun.c: Re-indent using gdb_indent.sh.
4431
4432 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4433
4434 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4435 Leave the indentation temporarily untouched, to minimize the diffs.
4436
4437 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4438
4439 * stabsread.c: Make os9k sections of the code obsolete,
4440 for real this time.
4441 * stabsread.h: Make os9k sections of the code obsolete.
4442
4443 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4444
4445 * linux-low.c (regsets_store_inferior_registers): Add free()
4446 at the end of a loop to prevent memory leak.
4447 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4448 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4449 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4450 line a comment.
4451 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4452
4453 2002-07-17 Jim Blandy <jimb@redhat.com>
4454
4455 * macrocmd.c (info_macro_command): Remove newline from error
4456 message.
4457
4458 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4459
4460 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4461 (sh_gdbarch_init): Use it for sh-dsp.
4462
4463 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4464
4465 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4466 64-bit DWARF2 format.
4467
4468 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4469
4470 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4471 <sys/proc.h> when not available.
4472
4473 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4474
4475 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4476 * stabsread.c: Make os9k sections of the code obsolete.
4477 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4478 * config/i386/i386os9k.mt: Make file obsolete.
4479 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4480 (COMMON_OBS): Remove os9kread.o
4481 (SFILES): Remove os9kread.c.
4482 (os9kread.o, remote-os9k.o): Make target obsolete.
4483 * remote-os9k.c: Make file obsolete.
4484 * os9kread.c: Make file obsolete.
4485 * Makefile.in
4486
4487 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4488
4489 * NEWS: Mention that the FR30 has been made obsolete.
4490 * fr30-tdep.c: Make file obsolete.
4491 * config/fr30/tm-fr30.h: Ditto.
4492 * config/fr30/fr30.mt: Ditto.
4493 * configure.tgt: Make fr30-*-elf obsolete.
4494 * MAINTAINERS: Make fr30-elf obsolete.
4495
4496 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4497
4498 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4499 found is not inside a section.
4500
4501 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4502
4503 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4504 strerror().
4505 (pdc_realloc): Use xrealloc() instead of realloc().
4506
4507 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4508
4509 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4510 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4511 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4512 macros.
4513
4514 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4515
4516 * aix-thread.c (ptrace_check): Eliminate goto.
4517 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4518 problem.
4519
4520 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4521
4522 * aix-thread.c (gdbcmd.h): Include.
4523 (DEBUG, DBG, DBG2, dbg): Eliminate.
4524 (debug_aix_thread): New static global.
4525 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4526 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4527 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4528 invocations to DBG and DBG2 macros to test against
4529 ``debug_aix_thread'' and call fprintf_unfiltered().
4530 (_initialize_aix_thread): Add new command "set debug aix-thread".
4531
4532 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4533
4534 From Gerhard Tonn <TON@de.ibm.com>:
4535 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4536 instead of supply_register.
4537
4538 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4539
4540 * dwarf2cfi.c: Include "gdb_assert.h".
4541 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4542 non-NULL.
4543 (update_context): Do not use __func__. Add missing ``break''.
4544 (update_context): Do not use __func__.
4545
4546 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4547
4548 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4549 and its setting. Set gdbarch instruction printing functions
4550 directly. For non-rs6000 case use new function
4551 gdb_print_insn_powerpc.
4552 (gdb_print_insn_powerpc): New function.
4553
4554 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4555
4556 * NEWS: Mention that the d30v has been marked obsolete.
4557 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4558 * configure.tgt: Mark d30v-*-* as obsolete.
4559 * d30v-tdep.c: Mark file as obsolete.
4560 * config/d30v/d30v.mt: Ditto.
4561 * config/d30v/tm-d30v.h: Ditto.
4562
4563 2002-07-13 Aidan Skinner <aidan@velvet.net>
4564
4565 * ada-tasks.c (add_task_entry): replace calls to
4566 malloc() with xmalloc
4567 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4568
4569 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4570 ada_finish_decode_line_1, all_sals_for_line
4571 ada_breakpoint_rewrite): replace calls to free() with xfree()
4572
4573 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4574
4575 From Nicholas Duffek (with minor changes by Martin Hunt,
4576 Louis Hamilton, and Kevin Buettner):
4577 * aix-thread.c: New file.
4578
4579 2002-07-12 Petr Sorfa <petrs@caldera.com>
4580
4581 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4582 complaint for invalid attribute class or form.
4583 (read_func_scope): DW_AT_frame_base
4584 better handling of DW_AT_block*.
4585 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4586 better handling of DW_AT_block*.
4587 (read_common_block): DW_AT_location
4588 better handling of DW_AT_block*.
4589 (read_partial_die): DW_AT_location better handling
4590 of DW_AT_block*.
4591 (new_symbol): DW_AT_external better handling of
4592 DW_AT_block*. Proper initialization of variable
4593 "addr".
4594 (attr_form_is_block): New function that returns true
4595 if the attribute's form is of DW_FORM_block*.
4596
4597 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4598
4599 * valops.c (find_method_list): Remove comment about
4600 removed STATIC_MEMFUNCP argument.
4601 (value_find_oload_method_list): Likewise.
4602
4603 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4604
4605 From Nicholas Duffek:
4606 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4607 target_new_objfile_hook.
4608
4609 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4610
4611 From Nicholas Duffek:
4612 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4613 csect.
4614
4615 2002-07-12 Andrew Cagney <cagney@redhat.com>
4616
4617 * MAINTAINERS: Mention --enable-sim-build-warnings.
4618 (m68hc11-elf): Disable sim build warnings.
4619 (m32r-elf): Mark as broken obsolete candidate.
4620 (x86_64-linux-gnu): Mark as buildable with -Werror.
4621 (arm-elf): Change -w to ``,'' which enables warnings but not
4622 -Werror.
4623
4624 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4625
4626 * bcache.h: Update copyright.
4627 (struct bstring, struct bcache): Move definition to "bcache.c".
4628 Replaced by opaque declaration.
4629 (bcache_xfree): Replace free_bcache.
4630 (bcache_xmalloc, bcache_memory_used): Declare.
4631
4632 * bcache.c: Update copyright.
4633 (struct bstring, struct bcache): Moved to here from "bcache.h".
4634 Update comments.
4635 (bcache_xmalloc, bcache_memory_used): New functions.
4636 (bcache_xfree): Replace function free_bcache.
4637
4638 * Makefile.in (objfiles.o): Add $(bcache_h).
4639 (objfiles_h): Remove $(bcache_h).
4640 (symfile.o): Add $(bcache_h).
4641
4642 * symmisc.c: Update copyright.
4643 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4644 (print_objfile_statistics): Use bcache_memory_used.
4645
4646 * symfile.c: Include "bcache.h".
4647 (reread_symbols): Use bcache_xfree.
4648 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4649 (add_psymbol_to_list): Pass psymbol_cache by value.
4650 (add_psymbol_with_dem_name_to_list): Ditto.
4651
4652 * objfiles.h: Update copyright.
4653 (struct bcache): Declare opaque. Do not include "bcache.h".
4654 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4655 bcache'' pointers.
4656 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4657
4658 * objfiles.c: Include "bcache.h". Update copyright.
4659 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4660 macro_cache.
4661 (free_objfile): Use bcache_xfree.
4662
4663 2002-07-11 Grace Sainsbury <graces@redhat.com>
4664
4665 * monitor.c (monitor_fetch_register): Make name a constant.
4666 (monitor_store_register): Same.
4667
4668 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4669
4670 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4671 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4672 (finish_block) For non-function blocks, hash the symbol table. For
4673 function blocks, mark the symbol table as unhashed.
4674 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4675 (msymbol_hash_iw): Likewise.
4676 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4677 value.
4678 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4679 (lookup_minimal_symbol): Likewise for both.
4680 * symtab.h (struct block): Add `hashtable' flag. Comment the
4681 hashtable.
4682 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4683 (ALL_BLOCK_SYMBOLS): Update.
4684 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4685 (struct symbol): Add `hash_next' pointer.
4686 * symtab.c (lookup_block_symbol): Search using the hash table when
4687 possible.
4688 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4689 (search_symbols, find_addr_symbol): Likewise.
4690
4691 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4692 (read_dst_symtab): Likewise.
4693 * jv-lang.c (get_java_class_symtab): Likewise.
4694 * mdebugread.c: Include "gdb_assert.h".
4695 (shrink_block): Assert that the block being modified is not hashed.
4696 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4697 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4698 symbols.
4699 (dump_symtab): Recognize hashed blocks.
4700 * printcmd.c (print_frame_args): Assert that function blocks do not
4701 have hashed symbol tables.
4702 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4703 (fill_in_ada_prototype, debug_print_block): Likewise.
4704 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4705
4706 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4707
4708 * stack.c (print_frame): Use result of frame_address_in_block()
4709 instead of fi->pc when evaluating symbols.
4710 (backtrace_command_1): Ditto.
4711
4712 2002-07-11 Andrew Cagney <cagney@redhat.com>
4713
4714 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4715 Make static.
4716
4717 * arm-tdep.c (arm_register_name): Make return type constant.
4718
4719 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4720
4721 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4722 prototype.
4723 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4724 * s390-tdep.c (s390_fp_regnum): Ditto.
4725 (s390_read_fp): Ditto.
4726 (s390_pop_frame): Ditto.
4727 (_initialize_s390_tdep): Ditto.
4728 * remote.c (get_remote_state): Ditto.
4729 * procfs.c (mappingflags): Ditto.
4730 * memattr.c (_initialize_mem): Ditto.
4731 * mcore-tdep.c (mcore_pop_frame): Ditto.
4732 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4733 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4734 * language.c (set_case_str): Ditto.
4735 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4736 * frv-tdep.c (new_variant): Ditto.
4737 (frv_stopped_data_address): Ditto.
4738 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4739 (context_alloc): Ditto.
4740 (frame_state_alloc): Ditto.
4741 (unwind_tmp_obstack_init): Ditto.
4742 (unwind_tmp_obstack_free): Ditto.
4743 (cfi_read_fp): Ditto.
4744 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4745 (cris_pop_frame): Ditto.
4746 * c-lang.c (scanning_macro_expansion): Ditto.
4747 (finished_macro_expansion): Ditto.
4748 (c_preprocess_and_parse): Ditto.
4749 * gdbarch.sh: Ditto.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4751 * config/mn10200/tm-mn10200.h: Adjust indentation.
4752 * target.c: Adjust indentation.
4753 * symtab.h: Adjust indentation.
4754 * stabsread.h: Adjust indentation.
4755 * remote-es.c: Adjust indentation.
4756 * os9kread.c: Adjust indentation.
4757
4758 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4759
4760 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4761 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4762
4763 2002-07-10 Grace Sainsbury <graces@redhat.com>
4764
4765 * NEWS: Mention m68k, mcore multi-arching.
4766 * MAINTAINERS: Change status of m68k, mcore to reflect
4767 multi-arching.
4768
4769 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4770
4771 * valops.c (find_overload_match): Free oload_syms.
4772
4773 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4774
4775 Define HAVE_SYS_PROC_H if sys/proc.h exists
4776 * configure.in: Add check for sys/proc.h
4777 * config.in: Regenerate.
4778 * configure: Regenerate.
4779
4780 2002-07-09 Grace Sainsbury <graces@redhat.com>
4781
4782 * config/m68k/tm-m68k.h: Remove macros wrapped in
4783 #if !GDB_MULTI_ARCH.
4784
4785 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4786
4787 * config.in, configure: Regenerate.
4788
4789 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4790
4791 * dwarf2cfi.c: Include "gcore.h".
4792 (execute_stack_op): Fix implementation of the
4793 DW_OP_deref and DW_OP_deref_size operators by letting do their
4794 lookup in the target.
4795
4796 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4797
4798 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4799 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4800 tdep->sc_sp_offset.
4801
4802 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4803
4804 Fix PR gdb/595, gdb/602
4805 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4806 Don't call value_cast, just read the vtable pointer; update comments
4807 to match.
4808
4809 2002-07-05 Grace Sainsbury <graces@redhat.com>
4810
4811 * config/mcore/tm-mcore.h: Remove file.
4812 * config/mcore/mcore.mt: Remove definition of TM_FILE
4813 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4814
4815 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4816
4817 * i386bsd-tdep.c: Include "gdb_string.h".
4818
4819 2002-07-04 Grace Sainsbury <graces@redhat.com>
4820
4821 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4822 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4823 mcore-tdep.
4824 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4825 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4826 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4827 (RETVAL_REGNUM): Move macros from tm-mcore.h
4828 (mcore_reg_struct_has_addr): New function.
4829 (mcore_gdbarch_init): Added initializations for the macros removed
4830 from tm-mcore.h.
4831
4832 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4833
4834 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4835 traditonal string branding within the ELF header.
4836
4837 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4838
4839 * symtab.c (remove_params): New function.
4840 (make_symbol_overload_list): Use it instead of cplus_demangle.
4841 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4842
4843 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4844
4845 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4846
4847 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4848 New variables.
4849 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4850 and tdep->sigtramp_end.
4851 * i386obsd-nat.c: New file.
4852 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4853
4854 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4855 Don't call get_current_frame().
4856
4857 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4858
4859 * i386-nat.c (child_post_startup_inferior): New function
4860 calling i386_cleanup_dregs if
4861 I386_USE_GENERIC_WATCHPOINTS is defined.
4862 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4863 conditional to acknowledge that i386-nat.c has its
4864 own child_post_startup_inferior function.
4865
4866 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4867
4868 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4869 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4870 instead of MAX_REGISTER_RAW_SIZE.
4871 (i386_extract_return_value, i386_extract_struct_value_address):
4872 Convert to use regcache.
4873 (i386_gdbarch_init): Set max_register_raw_size and
4874 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4875 Set extract_return_value and extract_struct_value_address instead
4876 of their deprecated variants.
4877
4878 Convert i386 target to generic dummy frames.
4879 * i386-tdep.c: Include "symfile.h".
4880 (i386_frameless_signal_p): Consider a function to be frameless if
4881 the pc points at the first instruction of the function.
4882 (i386_frame_chain): Handle (generic) call dummies.
4883 (i386_frame_saved_pc): Likewise.
4884 (i386_frame_init_saved_regs): Remove code dealing with call
4885 dummies on the stack.
4886 (i386_push_dummy_frame): Removed.
4887 (i386_call_dummy_words): Removed.
4888 (i386_fix_call_dummy): Removed.
4889 (i386_push_return_address): New function.
4890 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4891 parameter, and don't call get_current_frame.
4892 (i386_pop_frame): New function.
4893 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4894 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4895 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4896 call_dummy_length to 0, set call_dummy_words to NULL, set
4897 sizeof_call_dummy_words to 0, set fix_call_dummy to
4898 generic_fix_call_dummy, set pc_in_call_dummy to
4899 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4900 generic_push_dummy_frame, set push_return_address to
4901 i386_push_return_address and set frame_chain_valid to
4902 generic_file_frame_chain_valid.
4903
4904 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4905
4906 * gdbarch.sh (struct regcache): Add opaque declaration.
4907 (EXTRACT_RETURN_VALUE): New architecture method.
4908 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4909 * gdbarch.h, gdbarch.c: Regenerate.
4910 * arch-utils.c (legacy_extract_return_value): New function.
4911 * arch-utils.h (legacy_extract_return_value): Declare.
4912 * values.c (value_being_returned): Re-enable code handling
4913 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4914 deprecated_grub_regcache_for_registers call to block handling
4915 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4916 (EXTRACT_RETURN_VALUE): Do not define.
4917
4918 2002-07-03 Grace Sainsbury <graces@redhat.com>
4919
4920 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4921 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4922 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4923 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4924 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4925 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4926 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4927 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4928 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4929 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4930 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4931 argument so the function fits the prototype in the architecture
4932 vector.
4933 (mcore_pop_frame): Remove argument so the function fits the
4934 prototype. Use get_current_frame instead of the argument.
4935 (mcore_push_arguments): Change type of struct_return so the
4936 function can be used in the architecture vector.
4937 (mcore_store_struct_return): Add.
4938 (mcore_frame_init_saved_regs): Add.
4939 (mcore_gdbarch_init): Add function calls to replace the macros
4940 removed from tm-mcore.h
4941
4942 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4943
4944 * infcmd.c (print_return_value): Remove compatibility code calling
4945 deprecated_grub_regcache_for_registers.
4946
4947 * values.c: Include "regcache.h".
4948 (value_being_returned): Update. Use
4949 deprecated_grub_regcache_for_registers to extract the register
4950 buffer address.
4951 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4952 ``struct regcache''.
4953 * Makefile.in (values.o): Add dependency on $(regcache_h).
4954
4955 * inferior.h (run_stack_dummy): Change type of second parameter to
4956 a ``struct regcache''.
4957 * valops.c (hand_function_call): Change type of retbuf to ``struct
4958 regcache''. Allocate using regcache_xmalloc, clean using
4959 make_cleanup_regcache_xfree.
4960 * infcmd.c (run_stack_dummy): Update. Use
4961 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4962
4963 * regcache.c (do_regcache_xfree): New function.
4964 (make_cleanup_regcache_xfree): New function.
4965 * regcache.h (make_cleanup_regcache_xfree): Declare.
4966
4967 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4968
4969 * event-top.c (command_line_handler): Don't read past
4970 beginning of buffer.
4971
4972 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4973
4974 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4975 struct frame_id.
4976 (varobj_create): Store frame_id for root.
4977 (varobj_gen_name): Use xasprintf.
4978 (varobj_update): Save and restore frame using get_frame_id() and
4979 frame_find_by_id().
4980 (create_child): Use xasprintf.
4981 (new_root_variable): Initialize frame_id.
4982 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4983 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4984 to prevent memory leak.
4985
4986 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4987
4988 * valops.c (hand_function_call): Move declaration of retbuf to
4989 start of function, allocate using malloc, add a cleanup but before
4990 the inf_status cleanup, cleanup the buffer. Rename local variable
4991 old_chain to inf_status_cleanup.
4992
4993 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4994
4995 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4996
4997 * cli/cli-decode.c (cmd_func_p): New function.
4998 (cmd_func): New function.
4999
5000 * command.h: Add cmd_func() and cmd_func_p().
5001
5002 2002-07-03 Grace Sainsbury <graces@redhat.com>
5003
5004 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5005 (REGISTER_SIZE): Remove.
5006 (MAX_REGISTER_RAW_SIZE): Remove.
5007 (REGISTER_VIRTUAL_TYPE): Remove.
5008 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5009 (REGISTER_NAME): Remove.
5010 (USE_GENERIC_DUMMY_FRAMES): Remove.
5011 (CALL_DUMMY): Remove.
5012 (CALL_DUMMY_START_OFFSET): Remove.
5013 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5014 (CALL_DUMMY_LOCATION): Remove.
5015 (FIX_CALL_DUMMY): Remove.
5016 (CALL_DUMMY_ADDRESS): Remove.
5017 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5018 (SAVE_DUMMY_FRAME_TOS): Remove.
5019 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5020 (mcore_register_virtual_type): New function.
5021 (mcore_register_byte): New function.
5022 (mcore_register_size): New function.
5023 (mcore_register_name): New function.
5024 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5025 macros removed from tm-mcore.h.
5026 (mcore_dump_tdep): Add.
5027 (_initialize_mcore_tdep): Add gdbarch_register call.
5028
5029 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5030
5031 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5032 frameless_look_for_prologue, such that we actually call this
5033 function.
5034
5035 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5036
5037 * frame.h (frame_address_in_block): New function.
5038
5039 * blockframe.c (frame_address_in_block): New function extracted
5040 from get_frame_block().
5041 (get_frame_block): Use frame_address_in_block().
5042 (block_innermost_frame): Use frame_address_in_block() to match
5043 the frame pc address against the block boundaries rather than
5044 the frame pc directly. This prevents a failure when a frame pc
5045 is actually a return-address pointing immediately after the end
5046 of the given block.
5047
5048 2002-07-02 Grace Sainsbury <graces@redhat.com>
5049
5050 * MAINTAINERS: Add self under write after approval.
5051
5052 2002-07-02 Grace Sainsbury <graces@redhat.com>
5053
5054 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5055 used in architecture vector. The default is
5056 m68k_local_breakpoint_from_pc.
5057 (m68k_local_breakpoint_from_pc): Add.
5058 (enum): Add register numbers from tm-m68k.h.
5059 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5060 vector.
5061 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5062 GDB_MULTI_ARCH_PARTIAL.
5063 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5064 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5065 m68k-tdep.c.
5066 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5067 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5068 to enum in m68k-tdep.c
5069
5070 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5071
5072 * solib-osf.c (open_map): Compute the list of shared libraries
5073 loaded by the inferior, rather than the list of libraries loaded
5074 by GDB itself. Otherwise, GDB ends up reading the symbols from
5075 the wrong shared libraries...
5076
5077 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5078
5079 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5080 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5081 macros.
5082 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5083 Remove functions.
5084 (FRAMELESS_SIGNAL): Remove function.
5085 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5086 i386_linux_saved_pc_after_call): Removed.
5087 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5088 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5089 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5090
5091 * i386-tdep.c (i386_frameless_signal_p): New function.
5092 (i386_frame_chain): Deal with frameless signals.
5093 (i386_sigtramp_saved_sp): New function.
5094 (i386_frame_saved_pc): Deal with frameless signals.
5095 (i386_saved_pc_after_call): Make sure the correct value is
5096 returned just after entry into a sigtramp.
5097 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5098 i386fbsd4_sc_sp_offset): New variables.
5099 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5100 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5101 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5102 similiar to what we already did for sc_pc_offset.
5103 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5104 tdep->sc_sp_offset.
5105
5106 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5107
5108 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5109
5110 * config/i386/tm-x86-64linux.h: New.
5111 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5112 definitions.
5113 * config/i386/nm-x86-64.h: Rename to ...
5114 * config/i386/nm-x86-64linux.h: ... this one.
5115 * config/i386/x86-64linux.mh: Reflect the above change.
5116
5117 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5118
5119 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5120 with sigcontext_addr. Add sc_sp_offset.
5121 (i386bsd_sigtramp_saved_pc): Remove prototype.
5122 (i386bsd_sicontext_addr): Add prototype.
5123 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5124 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5125 (i386_svr4_sigtramp_saved_pc): Removed.
5126 (i386_svr4_sigcontext_addr): New function.
5127 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5128 Initialize tdep->sigcontext_addr instead. Initialize
5129 tdep->sc_pc_offset and tdep->sc_sp_offset.
5130 (i386_gdbarch_init): Likewise.
5131 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5132 any more.
5133 (i386bsd_sigtramp_saved_pc): Remove function.
5134 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5135 Initialize tdep->sigcontext_addr instead. Initialize
5136 tdep->sc_pc_offset.
5137 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5138 of tdep->sigtramp_saved_pc.
5139 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5140 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5141 instead.
5142
5143 * i386-tdep.c (i386_frameless_function_invocation,
5144 i386_frame_num_args, i386_frame_init_saved_regs,
5145 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5146 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5147 i386_extract_return_value, i386_store_return_value,
5148 i386_extract_struct_value_address, i386_register_virtual_type,
5149 i386_register_convertible, i386_register_convert_to_virtual,
5150 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5151 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5152 static.
5153
5154 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5155
5156 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5157
5158 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5159 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5160 this macro. Include "value.h".
5161
5162 2002-06-30 Aidan Skinner <aidan@velvet.net>
5163
5164 * ada-exp.tab.c: remove as it's a generated file
5165 * ada-lex.c: remove as it's a generated file
5166
5167 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5168
5169 * config/i386/tm-i386.h (struct frame_info, struct
5170 frame_saved_regs, struct value, struct type): Remove forward
5171 declarations.
5172
5173 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5174 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5175 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5176 (FILL_FPXREGSET): Define.
5177
5178 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5179
5180 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5181 i[3456]86-*-netbsd* case.
5182 * config/i386/tm-obsd.h: Removed.
5183 * config/i386/obsd.mt: Removed.
5184 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5185 core-aout.o.
5186 (MH_CFLAGS): Add -DYYDEBUG=0.
5187
5188 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5189 i386nbsd_sc_pc_offset on OpenBSD too.
5190
5191 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5192 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5193 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5194 define.
5195 * i386bsd-tdep.c: Include "arch-utils.h".
5196 (i386bsd_aout_in_solib_call_trampoline): New function.
5197 (i386bsd_init_abi): Set in_solib_call_trampoline to
5198 i386bsd_aout_in_solib_call_trampoline.
5199 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5200 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5201
5202 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5203
5204 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5205 (struct obstack, struct bcache): Add opaque declarations.
5206 * Makefile.in (macrotab_h): Update
5207
5208 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5209
5210 * blockframe.c (generic_find_dummy_frame): Change return type to
5211 ``struct regcache''.
5212 (struct dummy_frame): Replace field ``registers'' with regcache, a
5213 struct regcache object.
5214 (generic_find_dummy_frame): Update.
5215 (generic_push_dummy_frame): Update. Use regcache_xfree,
5216 regcache_xmalloc and regcache_cpy.
5217 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5218 regcache_xfree.
5219 (deprecated_generic_find_dummy_frame): Update.
5220 (generic_read_register_dummy): Update. Use
5221 regcache_read_as_address.
5222 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5223 (generic_get_saved_register): Update. Use regcache_read.
5224
5225 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5226
5227 * Makefile.in (objfiles_h): Add $(bcache_h).
5228 * objfiles.h: Include "bcache.h".
5229
5230 * Makefile.in (symtab_h): Remove $(bcache_h).
5231 * symtab.h: Do not include "bcache.h".
5232
5233 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5234
5235 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5236 generic_func_frame_chain_valid.
5237
5238 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5239
5240 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5241 * config/i386/tm-fbsd.h: Likewise.
5242
5243 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5244
5245 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5246 generic_unwind_get_saved_register.
5247
5248 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5249
5250 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5251 * regcache.c (supply_register): Add missing argument to
5252 register_buffer call.
5253
5254 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5255
5256 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5257 Solaris /bin/grep does not not like it. From Peter Schauer.
5258
5259 2002-06-26 Tom Tromey <tromey@redhat.com>
5260
5261 * command.h (add_setshow_cmd): Declare.
5262 (add_setshow_cmd_full): Declare.
5263 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5264 returns void. Use add_setshow_cmd_full.
5265 (add_setshow_cmd_full): New function.
5266 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5267 (add_setshow_boolean_cmd): Likewise.
5268
5269 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5270
5271 * config/vax/tm-vax.h: Protect from multiple inclusion.
5272 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5273 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5274 * config/vax/tm-vaxbsd.h: ...here. New file.
5275 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5276
5277 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5278
5279 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5280 (BELIEVE_PCC_PROMOTION): Remove.
5281 (AP_REGNUM): Move to...
5282 * config/vax/nm-vax.h: ...here.
5283 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5284 (vax_breakpoint_from_pc): New function.
5285 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5286 and gdbarch_believe_pcc_promotion.
5287
5288 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5289
5290 * Makefile.in (vax_tdep_h): Define.
5291 (vax-tdep.o): Use $(vax_tdep_h).
5292 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5293 (vax_dump_tdep): New function.
5294 (_initialize_vax_tdep): Register vax_dump_tdep.
5295 * vax-tdep.h: Include osabi.h.
5296 (struct gdbarch_tdep): New.
5297
5298 2002-06-26 Andrew Cagney <cagney@redhat.com>
5299
5300 * frame.h (deprecated_generic_find_dummy_frame): Rename
5301 generic_find_dummy_frame.
5302 * blockframe.c (generic_find_dummy_frame): Make static.
5303 (deprecated_generic_find_dummy_frame): New function.
5304 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5305 generic_find_dummy_frame with deprecated_find_dummy_frame.
5306 (sh64_nofp_frame_init_saved_regs): Ditto.
5307 (sh_fp_frame_init_saved_regs): Ditto.
5308 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5309 (s390_frame_chain): Ditto.
5310 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5311
5312 2002-06-26 Grace Sainsbury <graces@redhat.com>
5313
5314 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5315 gdbarch vector are at the top.
5316 (NUM_REGS): Remove.
5317 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5318 (FRAME_ARGS_ADDRESS): Remove.
5319 (FRAME_LOCALS_ADDRESS): Remove.
5320 (FRAME_NUM_ARGS): Remove.
5321 (FRAME_ARGS_SKIP): Remove.
5322 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5323 (m68k_gdbarch_init): Add gdbarch initializations for macros
5324 undefined in tm-m68k.h
5325
5326 2002-06-26 Grace Sainsbury <graces@redhat.com>
5327
5328 * monitor.h: Add the function regname to monitor_ops
5329 structure. This way NUM_REGS does not have to be a constant.
5330 * monitor.c (monitor_fetch_register): Added support for regname
5331 function. The function is called if the array regnames is NULL.
5332 (monitor_store_register): Same.
5333 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5334 regnames array.
5335 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5336 cpu32bug_cmds.regname to point to new function.
5337 * abug-rom.c (abug_regname): Same as above.
5338 (init_abug_cmds): Same.
5339 * dbug-rom.c (dbug_regname): Same as above.
5340 (init_dbug_cmds): Same.
5341 * remote-est.c (est_regname): Same.
5342 (init_est_cmds): Same.
5343 * rom68k-rom.c (rom68k_regname): Same.
5344 (init_rom68k_cmds): Same.
5345
5346 2002-06-25 Tom Tromey <tromey@redhat.com>
5347
5348 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5349
5350 2002-06-25 Andrew Cagney <cagney@redhat.com>
5351
5352 * infrun.c (stop_registers): Change variable's type to ``struct
5353 regcache'''.
5354 (xmalloc_inferior_status): Delete function.
5355 (free_inferior_status): Delete function.
5356 (normal_stop): Use regcache_cpy.
5357 (struct inferior_status): Change type of fields ``stop_registers''
5358 and ``registers'' to ``struct regcache''.
5359 (write_inferior_status_register): Use regcache_write.
5360 (save_inferior_status): Instead of calling
5361 xmalloc_inferior_status, allocate the inf_status buffer directly.
5362 Use regcache_dup_no_passthrough and regcache_dup to save the
5363 buffers.
5364 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5365 Replace the stop_registers regcache instead of overriding it. Use
5366 regcache_xfree. Instead of calling free_inferior_status, xfree
5367 the buffer directly.
5368 (discard_inferior_status): Use regcache_xfree. Instead of calling
5369 free_inferior_status, xfree the buffer directly.
5370 (build_infrun): Use regcache_xmalloc.
5371 (_initialize_infrun): Delete redundant call to build_infrun.
5372
5373 * Makefile.in (infcmd.o): Add $(regcache_h).
5374
5375 * infcmd.c: Include "regcache.h".
5376 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5377 obtain the address of `stop_registers' register buffer.
5378 (print_return_value): Ditto.
5379
5380 * inferior.h (struct regcache): Add opaque declaration.
5381 (stop_registers): Change variable's declared type to ``struct
5382 regcache''.
5383
5384 2002-06-24 Tom Tromey <tromey@redhat.com>
5385
5386 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5387 * target.c (initialize_targets): Fixed typo in
5388 trust-readonly-sections `show' documentation.
5389
5390 * main.c: Marked all strings with _().
5391
5392 2002-06-24 Don Howard <dhoward@redhat.com>
5393
5394 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5395 that means max CORE_ADDR+1.
5396 (lookup_mem_region): Ditto.
5397 (mem_info_command): Ditto.
5398
5399 2002-06-24 Grace Sainsbury <graces@redhat.com>
5400
5401 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5402 (REGISTER_BYTES_OK): Remove.
5403 (REGISTER_BYTES): Remove.
5404 (STORE_STRUCT_RETURN): Remove.
5405 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5406 (STORE_RETURN_VALUE): Remove.
5407 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5408 (FRAME_CHAIN): Remove.
5409 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5410 (FRAME_SAVED_PC): Remove.
5411 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5412 (m68k_store_struct_return): Add.
5413 (m68k_deprecated_extract_return_value): Add.
5414 (m68k_deprecated_extract_struct_value_address): Add.
5415 (m68k_store_return_value): Add.
5416 (m68k_frame_chain): Add.
5417 (m68k_frameless_function_invocation): Add.
5418 (m68k_frame_saved_pc): Add.
5419 (m68k_gdbarch_init): added set_gdbarch calls for new
5420 functions and deleted macros.
5421
5422 2002-06-23 Tom Tromey <tromey@redhat.com>
5423
5424 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5425 (ALLDEPFILES): Likewise.
5426 (udiheaders): Removed.
5427 (udip2soc.o): Likewise.
5428 (udi2go32.o): Likewise.
5429 (udr.o): Likewise.
5430 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5431
5432 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5433
5434 * infrun.c (_initialize_infrun): Delete unnecessary call to
5435 build_infrun.
5436
5437 * regcache.h: Update comments describing the regcache_cpy family
5438 of functions.
5439 (regcache_save, regcache_restore): Delete declaration.
5440 (regcache_save_no_passthrough): Delete declaration.
5441 (regcache_restore_no_passthrough): Delete declaration.
5442 * regcache.c (regcache_save): Delete function.
5443 (regcache_save_no_passthrough): Delete function.
5444 (regcache_restore): Delete function.
5445 (regcache_restore_no_passthrough): Delete function.
5446
5447 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5448
5449 * config/m68k/tm-m68k.h: Fix typo.
5450 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5451 (m68k_frame_init_saved_regs): Declare.
5452
5453 2002-06-21 Jim Blandy <jimb@redhat.com>
5454
5455 Remove some vestiges of Harris 88k support.
5456 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5457 register numbering quirk.
5458 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5459 odd symbols occurring in Harris 88k ELF targets.
5460
5461 2002-06-21 Tom Tromey <tromey@redhat.com>
5462
5463 * gdb_locale.h: New file.
5464 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5465 (defs_h): Added gdb_locale.h.
5466 * configure, config.in: Rebuilt.
5467 * configure.in (PACKAGE): Define.
5468 * defs.h: Include gdb_locale.h.
5469 * main.c (captured_main): Call setlocale, bindtextdomain,
5470 textdomain.
5471
5472 2002-06-21 Dave Brolley <brolley@redhat.com>
5473
5474 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5475 * config/frv/frv.mt: New file.
5476 * config/frv/tm-frv.h: New file.
5477 * configure.tgt: Support frv-*-*.
5478 * Makefile.in (frv-tdep.o): New target.
5479 * frv-tdep.c: New file.
5480 * NEWS: Mention frv.
5481
5482 2002-06-21 Dave Brolley <brolley@redhat.com>
5483
5484 * MAINTAINERS: Add self to "Write After Approval" list.
5485
5486 2002-06-21 Grace Sainsbury <graces@redhat.com>
5487
5488 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5489 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5490 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5491 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5492 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5493
5494 * m68k-tdep.c: Include arch-utils.h
5495 (m68k_register_raw_size): Add.
5496 (m68k_register_virtual_size): Add.
5497 (m68k_register_virtual_type): Add.
5498 (m68k_register_name): Add.
5499 (m68k_stack_align): Add.
5500 (m68k_register_byte): Add.
5501 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5502 tm-m68k.h.
5503
5504 2002-06-21 Grace Sainsbury <graces@redhat.com>
5505
5506 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5507 m68k_find_saved_regs.
5508 (m68k_pop_frame): Removed saved_regs structure, and replaced
5509 references to it with frame->saved_regs.
5510 (m68k_gdbarch_init): Added function calls to initialize the
5511 gdbarch structure.
5512 (m68k_fix_call_dummy): Add.
5513 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5514 (CALL_DUMMY): Remove.
5515 (CALL_DUMMY_LENGTH): Remove.
5516 (CALL_DUMMY_START_OFFSET): Remove.
5517 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5518 (FIX_CALL_DUMMY): Remove.
5519 (PUSH_DUMMY_FRAME): Remove.
5520 (POP_FRAME): Remove.
5521
5522 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5523
5524 * parse.c (parse_fprintf): New function used to avoid calls to
5525 fprintf in bison parser generated debug code.
5526 * parser-defs.h: Declaration of new parse_fprintf function.
5527 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5528 Set YYDEBUG to 1 by default.
5529 Set YYFPRINTF as parse_fprintf.
5530
5531 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5532
5533 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5534 encoding anymore.
5535 (pointer_encoding, enum ptr_encoding): New.
5536 (execute_cfa_program): Take care about pointer encoding.
5537 (dwarf2_build_frame_info): Only call parse_frame_info for
5538 .debug_frame and .eh_frame.
5539 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5540 fixed augmentation handling, added relative addressing,
5541 ignore duplicate FDEs. Added comments.
5542 * dwarf2cfi.c: Reindented.
5543
5544 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5545
5546 * event-top.c (command_handler): Don't use space_at_cmd_start
5547 unless there is sbrk() on the host. Assign time and space data
5548 to union fields of the appropriate length.
5549
5550 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5551
5552 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5553 x86_64_register_name. Return type changed to 'const char *'.
5554 (x86_64_register_name2nr): Rename to x86_64_register_number.
5555 (x86_64_gdbarch_init): Update to reflect the change.
5556 * x86-64-tdep.h: Ditto.
5557 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5558 (supply_fpregset): Ditto.
5559
5560 2002-06-19 Andrew Cagney <cagney@redhat.com>
5561
5562 * regcache.h: Update copyright.
5563 (struct regcache, struct gdbarch): Add opaque declarations.
5564 (current_regcache): Declare global variable.
5565 (regcache_read, regcache_write): Add gdbarch parameter.
5566 (regcache_save, regcache_save_no_passthrough)
5567 (regcache_restore, regcache_restore_no_passthrough)
5568 (regcache_dup, regcache_dup_no_passthrough)
5569 (regcache_cpy, regcache_cpy_no_passthrough)
5570 (deprecated_grub_regcache_for_registers)
5571 (deprecated_grub_regcache_for_register_valid)
5572 (regcache_valid_p): Add function declarations.
5573
5574 * regcache.c: Update copyright.
5575 (regcache_descr_handle): New global variable.
5576 (struct regcache_descr): Define.
5577 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5578 (regcache_descr, xfree_regcache_descr): New functions.
5579 (struct regcache): Define.
5580 (regcache_xmalloc, regcache_xfree): New functions.
5581 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5582 (regcache_dup, regcache_dup_no_passthrough): New functions.
5583 (regcache_valid_p, regcache_read_as_address): New functions.
5584 (deprecated_grub_regcache_for_registers): New function.
5585 (deprecated_grub_regcache_for_register_valid): New function.
5586 (current_regcache): New global variable.
5587 (register_buffer): Add regcache parameter. Update calls.
5588 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5589 (read_register_gen, write_register_gen): Update register_buffer
5590 call. Test for legacy_p instead of gdbarch_register_read_p or
5591 gdbarch_register_write_p.
5592 (regcache_collect): Update register_buffer call.
5593 (build_regcache): Rewrite. Use deprecated grub functions.
5594 (regcache_save, regcache_save_no_passthrough): New functions.
5595 (regcache_restore, regcache_restore_no_passthrough): New
5596 functions.
5597 (_initialize_regcache): Create the regcache_data_handle. Swap
5598 current_regcache global variable.
5599
5600 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5601 parameter to regcache_read and regcache_write calls.
5602 (sh4_register_read): Ditto.
5603 (sh64_pseudo_register_read): Ditto.
5604 (sh64_register_read): Ditto.
5605 (sh_pseudo_register_write): Ditto.
5606 (sh4_register_write): Ditto.
5607 (sh64_pseudo_register_write): Ditto.
5608 (sh64_register_write): Ditto.
5609
5610 * defs.h (XCALLOC): Define.
5611
5612 2002-06-19 Grace Sainsbury <graces@redhat.com>
5613
5614 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5615 * m68k-tdep.c (m68k_gdbarch_init): Added.
5616 (m68k_dump_tdep): Added.
5617
5618 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5619
5620 * ada-lang.c (fill_in_ada_prototype): Update comment.
5621
5622 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5623
5624 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5625 MIPS_ABI_LAST.
5626 (mips_abi_string, mips_abi_strings): New.
5627 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5628 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5629 tdep->mips_abi_string. Honor mips_abi_string. Default to
5630 O32 if no ABI is found.
5631 (mips_dump_tdep): Use mips_abi_strings.
5632 (mips_abi_update): New function.
5633 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5634 ``set mips abi'' and ``show mips abi''. Check the size of
5635 mips_abi_strings.
5636
5637 2002-06-19 Andrew Cagney <cagney@redhat.com>
5638
5639 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5640 constant.
5641
5642 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5643
5644 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5645 current frame using only the first stack size adjustment. All
5646 subsequent size adjustments are not considered to be part of
5647 the "static" part of the current frame.
5648 Compute the address of the saved registers relative to the
5649 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5650 in use in this frame.
5651
5652 2002-06-18 Don Howard <dhoward@redhat.com>
5653
5654 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5655 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5656 suggesting this solution.
5657
5658 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5659
5660 * config/romp/xm-rtbsd.h: Delete file.
5661 * config/romp/rtbsd.mh: Delete file.
5662
5663 2002-06-18 Keith Seitz <keiths@redhat.com>
5664
5665 * breakpoint.c (condition_command): Post breakpoint_modify
5666 when a condition is added to an existing breakpoint.
5667 (commands_command): Likewise for commands.
5668 (set_ignore_count): Likewise for ignore counts.
5669 If no tty, do not simply return, still need to send event
5670 notification.
5671 (ignore_command): Only print a newline if the command came
5672 from a tty.
5673 Don't call breakpoints_changed, since this is now properly
5674 handled by set_ignore_count.
5675
5676 2002-06-18 Andrew Cagney <cagney@redhat.com>
5677
5678 * MAINTAINERS: Note that cris-elf target can be compiled with
5679 -Werror.
5680 * cris-tdep.c (cris_register_name): Make return type constant.
5681 (cris_breakpoint_from_pc): Ditto.
5682
5683 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5684
5685 * frame.h (struct frame_info): Change type of context to
5686 'struct context'.
5687
5688 2002-06-17 Andrew Cagney <cagney@redhat.com>
5689
5690 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5691 pointer.
5692 * gdbarch.h, gdbarch.c: Regenerate.
5693 * config/mips/tm-mips.h (mips_register_name): Update.
5694 * i386-tdep.h (i386_register_name): Update.
5695 * mips-tdep.c (mips_register_name): Update
5696 * alpha-tdep.c (alpha_register_name): Update.
5697 * arch-utils.c (legacy_register_name): Update.
5698 * arch-utils.h (legacy_register_name): Update.
5699 * avr-tdep.c (avr_register_name): Update.
5700 * ia64-tdep.c (ia64_register_name): Update.
5701 * i386-tdep.c (i386_register_name): Update.
5702 * sparc-tdep.c (sparc32_register_name): Update.
5703 (sparc64_register_name): Update.
5704 (sparclite_register_name): Update.
5705 (sparclet_register_name): Update.
5706 * sh-tdep.c (sh_generic_register_name): Update.
5707 (sh_sh_register_name): Update.
5708 (sh_sh3_register_name): Update.
5709 (sh_sh3e_register_name): Update.
5710 (sh_sh_dsp_register_name): Update.
5711 (sh_sh3_dsp_register_name): Update.
5712 (sh_sh4_register_name): Update.
5713 (sh_sh64_register_name): Update.
5714 * s390-tdep.c (s390_register_name): Update.
5715 * rs6000-tdep.c (rs6000_register_name): Update.
5716 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5717 (ns32k_register_name_32382): Update.
5718 * d10v-tdep.c (d10v_ts2_register_name): Update.
5719 (d10v_ts3_register_name): Update.
5720 * xstormy16-tdep.c (xstormy16_register_name): Update.
5721 * vax-tdep.c (vax_register_name): Update.
5722 * v850-tdep.c (v850_register_name): Update.
5723 * m68hc11-tdep.c (m68hc11_register_name): Update.
5724 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5725 (am33_register_name): Update.
5726
5727 2002-06-17 Grace Sainsbury <graces@redhat.com>
5728
5729 * m68k-tdep.c: Reindented.
5730
5731 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5732
5733 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5734 list of predefined types.
5735
5736 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5737
5738 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5739 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5740 REGISTER_CONVERT_TO_RAW): Remove defines.
5741 (i386_register_virtual_type, i386_register_convertible,
5742 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5743 Remove prototypes.
5744 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5745 macros mentioned above.
5746
5747 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5748 (i386lynx_saved_pc_after_call): Remove prototype.
5749 * i386ly-tdep.c: Include "i386-tdep.h".
5750 (i386lynx_saved_pc_after_call): Make static. Use
5751 read_memory_nobpt instead of read_memory. Use
5752 read_memory_unsigned_integer instead of read_memory_integer.
5753 (i386lynx_init_abi): New function.
5754 (i386lynx_coff_osabi_sniffer): New function.
5755 (_initialize_i386bsd_tdep): New function.
5756
5757 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5758 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5759 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5760 (i386_fix_call_dummy): Remove prototype.
5761 * i386-tdep.c (i386_call_dummy_words): New variable.
5762 (i386_gdbarch_init): Adjust for removal of the
5763 macros mentioned above.
5764
5765 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5766
5767 * command.h (add_setshow_auto_boolean_cmd): Replace
5768 add_set_auto_boolean_cmd.
5769 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5770 add_set_auto_boolean_cmd.
5771 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5772 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5773 mask-address'' command.
5774 (show_mask_address): Add cmd parameter.
5775 * remote.c (add_packet_config_cmd): Update. Change type of
5776 set_func and show_func to cmd_sfunc_ftype.
5777 (_initialize_remote): Update `set remote Z-packet'
5778 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5779 (show_remote_protocol_e_packet_cmd): Ditto.
5780 (show_remote_protocol_E_packet_cmd): Ditto.
5781 (show_remote_protocol_P_packet_cmd): Ditto.
5782 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5783 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5784 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5785 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5786 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5787 (show_remote_protocol_Z_packet_cmd): Ditto.
5788 (show_remote_protocol_binary_download_cmd): Ditto.
5789 (show_remote_cmd): Pass NULL to all of above.
5790
5791 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5792
5793 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5794 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5795 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5796 POP_FRAME): Remove defines.
5797 (i386_push_arguments, i386_store_struct_return,
5798 i386_extract_return_value, i386_store_return_value,
5799 i386_extract_struct_value_address, i386_push_dummy_frame,
5800 i386_pop_frame): Renove prototypes.
5801 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5802 macros mentioned above.
5803
5804 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5805
5806 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5807 add_set_boolean_cmd.
5808 (add_setshow_cmd): New function.
5809 * command.h (add_setshow_boolean_cmd): Replace
5810 add_set_boolean_cmd.
5811 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5812 and ``set rdiromatzero''.
5813 * maint.c (_initialize_maint_cmds): Update commented out code.
5814 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5815 * target.c (initialize_targets): Update `set
5816 trust-readonly-sections'.
5817 * remote.c (_initialize_remote): Update `set remotebreak'.
5818
5819 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5820
5821 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5822 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5823 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5824 fit into multi-arch framework.
5825 (i386_breakpoint_from_pc): New function.
5826 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5827 above.
5828
5829 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5830 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5831 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5832 (i386_frameless_function_invocation, i386_frame_num_args,
5833 i386_frame_init_saved_regs): Remove prototypes.
5834 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5835 macros mentioned above.
5836
5837 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5838
5839 * cli/cli-decode.c (set_cmd_cfunc): Update.
5840 (set_cmd_sfunc): Update.
5841 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5842 (set_cmd_sfunc, set_cmd_cfunc): Update.
5843 * cli/cli-decode.h: Update.
5844
5845 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5846
5847 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5848 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5849
5850 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5851
5852 * defs.h (auto_boolean): Declare enum.
5853 * command.h (cmd_auto_boolean): Delete enum.
5854 * mips-tdep.c (mask_address_var): Update.
5855 (mips_mask_address_p): Update.
5856 (show_mask_address): Update.
5857 * remote.c (struct packet_config): Update.
5858 (update_packet_config): Update.
5859 (show_packet_config_cmd): Update.
5860 (packet_ok): Update.
5861 (add_packet_config_cmd): Update.
5862 (_initialize_remote):
5863 * command.h: Update.
5864 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5865 (do_setshow_command): Update.
5866 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5867 * cli/cli-decode.h: Update.
5868
5869 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5870
5871 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5872 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5873 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5874 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5875 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5876 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5877
5878 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5879 list of DJGPP COFF targets.
5880
5881 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5882 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5883 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5884 (FP0_REGNUM): Remove define.
5885 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5886 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5887 (i386_register_virtual_size): Remove protoype.
5888 * i386-tdep.c (i386_register_virtual_size): Removed.
5889 (i386_extract_return_value, i386_store_return_value): Use
5890 FP0_REGNUM instead of NUM_FREGS to determine whether the
5891 floating-point registers are available.
5892 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5893 Adjust for removal of macros mentioned above.
5894
5895 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5896
5897 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5898 comments.
5899 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5900 Remove prototypes.
5901 (supply_gregset, fill_gregset): Remove use of register keyword and
5902 remove declaration for regmap. Use I386_NUM_GREGS instead of
5903 NUM_REGS and NUM_FREGS.
5904 (FPREGSET_FSAVE_OFFSET): Remove.
5905 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5906 NUM_FREGS to determine whether the floating-point registers are
5907 available.
5908
5909 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5910 gnu_store_registers): Replace usage of NUM_GREGS with
5911 I386_NUM_GREGS.
5912
5913 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5914 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5915 usage of NUM_GREGS with I386_NUM_GREGS.
5916
5917 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5918
5919 * i386bsd-nat.c: Include "i386-tdep.h".
5920 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5921 I386_NUM_GREGS.
5922
5923 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5924 and associated comment. They no longer make any sense, since we
5925 don't use this file anymore on Linux.
5926
5927 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5928 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5929 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5930 elements in these arrays.
5931 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5932 MAX_NUM_REGS.
5933
5934 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5935
5936 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5937 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5938
5939 2002-06-14 Andrew Cagney <cagney@redhat.com>
5940
5941 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5942 EXTRACT_RETURN_VALUE.
5943 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5944 EXTRACT_STRUCT_VALUE_ADDRESS.
5945 * gdbarch.h, gdbarch.c: Regenerate.
5946
5947 * values.c (value_being_returned): Handle
5948 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5949 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5950
5951 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5952 * arm-tdep.c (arm_gdbarch_init): Update.
5953 * avr-tdep.c (avr_gdbarch_init): Update.
5954 * cris-tdep.c (cris_gdbarch_init): Update.
5955 * d10v-tdep.c (d10v_gdbarch_init): Update.
5956 * ia64-tdep.c (ia64_gdbarch_init): Update.
5957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5959 * s390-tdep.c (s390_gdbarch_init): Update.
5960 * sh-tdep.c (sh_gdbarch_init): Update.
5961 * s390-tdep.c (s390_gdbarch_init): Update.
5962 * sparc-tdep.c (sparc_gdbarch_init): Update.
5963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5964 * v850-tdep.c (v850_gdbarch_init): Update.
5965 * vax-tdep.c (vax_gdbarch_init): Update.
5966 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5968
5969 * config/arc/tm-arc.h: Update.
5970 * config/d30v/tm-d30v.h: Update.
5971 * config/fr30/tm-fr30.h: Update.
5972 * config/h8300/tm-h8300.h: Update.
5973 * config/h8500/tm-h8500.h: Update.
5974 * config/i386/tm-i386.h: Update.
5975 * config/i386/tm-ptx.h: Update.
5976 * config/i386/tm-symmetry.h: Update.
5977 * config/i960/tm-i960.h: Update.
5978 * config/m32r/tm-m32r.h: Update.
5979 * config/m68k/tm-delta68.h: Update.
5980 * config/m68k/tm-linux.h: Update.
5981 * config/m68k/tm-m68k.h: Update.
5982 * config/m88k/tm-m88k.h: Update.
5983 * config/mcore/tm-mcore.h: Update.
5984 * config/mips/tm-mips.h: Update.
5985 * config/mn10200/tm-mn10200.h: Update.
5986 * config/pa/tm-hppa.h: Update.
5987 * config/pa/tm-hppa64.h: Update.
5988 * config/sparc/tm-sp64.h: Update.
5989 * config/sparc/tm-sparc.h: Update.
5990 * config/sparc/tm-sparclet.h: Update.
5991 * config/z8k/tm-z8k.h: Update.
5992
5993 2002-06-14 Andrew Cagney <cagney@redhat.com>
5994
5995 * Makefile.in (i386_linux_tdep_h): Define.
5996 (i386_tdep_h, i387_tdep_h): Define.
5997 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5998 $(i386_tdep_h) and $(i387_tdep_h).
5999 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6000
6001 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6002
6003 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6004 Already covered by the default.
6005
6006 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6007 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6008 (i386_gdbarch_init): Initialize long_double_format and long_double
6009 bit.
6010
6011 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6012 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6013 Move these to ...
6014 * config/i386/i386sol2.mh: ... here.
6015 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6016 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6017 (SIGCONTEXT_PC_OFFSET): Remove define.
6018 (IN_SIGTRAMP): Remove define.
6019 * i386-sol2-tdep.c: New file.
6020
6021 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6022 * config/i386/tm-i386nw.h: Removed.
6023
6024 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6025 USE_STRUCT_CONVENTION): Remove defines.
6026 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6027 (get_longjmp_target): Remove prototype.
6028 (IN_SIGTRAMP): Remove define.
6029 (i386bsd_in_sigtramp): Remove prototype.
6030 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6031 function. Update comment accordingly
6032 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6033 (FRAME_SAVED_PC): Remove define.
6034 (i386bsd_frame_saved_pc): Remove prototype.
6035 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6036 GET_LONGJMP_TARGET): Remove defines.
6037 (get_longjmp_target): Remove prototype.
6038 (IN_SIGTRAMP): Remove define.
6039 (i386bsd_in_sigtramp): Remove prototype.
6040 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6041 function. Update comment accordingly
6042 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6043 (FRAME_SAVED_PC): Remove define.
6044 (i386bsd_frame_saved_pc): Remove prototype.
6045 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6046 Remove prototype.
6047 (USE_STRUCT_CONVENTION): Remove prototype.
6048 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6049 declaration.
6050 (_initialize_i386bsd_nat): Revise logic to determine some
6051 constants at compile time when compiling a native GDB. Warn if
6052 things don't match up with what we expect.
6053 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6054 Remove variables.
6055 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6056 to use date stored in `struct gdbarch_tdep'.
6057 (i386bsd_sigcontext_offset): Remove varaible.
6058 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6059 stored in `struct gdbarch_tdep'.
6060 (i386bsd_frame_saved_pc): Make static.
6061 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6062 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6063 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6064 i386fbsd4_sc_pc_offset): New variables.
6065 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6066 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6067 functions.
6068 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6069 functions.
6070 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6071 Modify the value of i386fbsd_sigtramp_start and
6072 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6073 i386fbsd_sigtramp_end.
6074 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6075 function.
6076
6077 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6078 define to i386-linux-tdep.h.
6079 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6080 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6081 defines.
6082 (i386_linux_register_name, i386_linux_register_byte,
6083 i386_linux_register_raw_size): Remove prototypes.
6084 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6085 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6086 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6087 TARGET_WRITE_PC): Remove defines.
6088 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6089 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6090 i386_linux_write_pc): Remove prototypes.
6091 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6092 (get_longjmp_target): Remove prototype.
6093 * i386-linux-tdep.h: New file.
6094 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6095 * i386-linux-tdep.c: Include "i386-tdep.h" and
6096 "i386-linux-tdep.h".
6097 (i386_linux_register_name, i386_linux_register_byte,
6098 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6099 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6100 Make static.
6101 (i386_linux_init_abi): New function.
6102 (_initialize_i386_linux_tdep): New function.
6103
6104 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6105 (i386_saved_pc_after_call): Remove prototype.
6106 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6107 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6108 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6109 (i386_register_name, i386_stab_reg_to_regnum,
6110 i386_dwarf_reg_to_regnum): Remove prototypes.
6111 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6112 SIZEOF_SSE_REGS): Remove defines.
6113 (REGISTER_BYTES): Remove define.
6114 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6115 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6116 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6117 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6118 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6119 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6120 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6121 (get_longjmp_target): Remove prototype.
6122 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6123 (sigtramp_saved_pc): Remove define.
6124 (i386v4_sigtramp_saved_pc): Remove prototype.
6125 * config/i386/tm-go32.h (FRAME_CHAIN,
6126 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6127 (i386go32_frame_saved_pc): Remove prototype.
6128 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6129 (get_longjmp_target): Remove prototype.
6130 * i386-tdep.h: Include "osabi.h".
6131 (enum i386_abi): Removed.
6132 (enum struct_return): New enum.
6133 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6134 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6135 sc_pc_offset members.
6136 (i386_gdbarch_register_os_abi): Remove prototype.
6137 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6138 I386_SSE_NUM_REGS): New defines.
6139 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6140 I386_SSE_SIZEOF_REGS): New defines.
6141 (i386_register_name, i386_register_byte, i386_register_raw_size):
6142 New prototypes.
6143 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6144 (i386bsd_sigtramp_saved_pc): New prototype.
6145 * i386-tdep.c: Don't include "elf-bfd.h".
6146 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6147 i386_frame_chain, i386_saved_pc_after_call): Make static.
6148 (i386_frame_saved_pc): Rewrite to call architecture dependent
6149 function to deal with signal handlers. Make static.
6150 (i386go32_frame_saved_pc): Removed.
6151 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6152 Removed.
6153 (i386_get_longjmp_target): New function.
6154 (default_struct_convention, pcc_struct_convention,
6155 reg_struct_convention, valid_conventions, struct_convention): New
6156 variables.
6157 (i386_use_struct_convention): New function.
6158 (i386v4_sigtramp_saved_pc): Renamed to
6159 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6160 (i386_pc_in_sigtramp): New function.
6161 (i386_abi_names): Removed.
6162 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6163 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6164 Removed.
6165 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6166 i386_gdbarch_register_os_abi): Removed.
6167 (struct i386_abi_handler): Removed.
6168 (i386_abi_handler_list): Removed.
6169 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6170 functions.
6171 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6172 i386_nw_init_abi): New functions.
6173 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6174 Use set_gdbarch_xxx() calls instead of relying on macros for a
6175 number of calls.
6176 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6177 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6178 Register the various architecture variants defined in this file.
6179
6180 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6181
6182 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6183 (struct main_type): Remove arg_types member. Update comments for
6184 struct field.
6185 (TYPE_ARG_TYPES): Remove.
6186 (TYPE_FN_FIELD_ARGS): Update.
6187 (smash_to_method_type): Update prototype.
6188
6189 * c-typeprint.c (cp_type_print_method_args): Take method type
6190 instead of argument list. Use new argument layout. Simplify.
6191 (c_type_print_args): Use new argument layout. Simplify.
6192 (c_type_print_base): Update call to cp_type_print_method_args.
6193 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6194 argument; use die->type instead. Update call to
6195 smash_to_method_type.
6196 (read_structure_scope): Update call to dwarf2_add_member_fn.
6197 * gdbtypes.c (allocate_stub_method): Update comment.
6198 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6199 Use new argument layout.
6200 (check_stub_method): Use new argument layout. Don't count
6201 void as an argument.
6202 (print_arg_types): Update comments. Use new argument layout.
6203 (recursive_dump_type): Don't print arg_types member.
6204 * hpread.c (hpread_read_struct_type): Use new argument layout.
6205 (fixup_class_method_type): Likewise.
6206 (hpread_type_lookup): Likewise.
6207 * stabsread.c (read_type): Update calls to read_args and
6208 smash_to_method_type.
6209 (read_args): Use new argument layout. Simplify.
6210 * valops.c (typecmp): Use new argument layout. Update parameters
6211 and comments. Simplify.
6212 (hand_function_call): Use new argument layout.
6213 (search_struct_method): Update call to typecmp.
6214 (find_overload_match): Use new argument layout.
6215
6216 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6217
6218 * NEWS: Mention multithreaded debug support for gdbserver.
6219
6220 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6221
6222 * MAINTAINERS: Mention NEWS.
6223
6224 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6225
6226 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6227 (struct mips_objfile_private, compare_pdr_entries): New.
6228 (non_heuristic_proc_desc): Read the ".pdr" section if it
6229 is present.
6230
6231 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6232
6233 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6234 (arm_debug): New static variable.
6235 (_initialize_arm_tdep): Add ``set debug arm'' command.
6236
6237 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6238
6239 * Makefile.in (sim_arm_h): Define.
6240 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6241 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6242 (arm_register_sim_regno): New function, map an internal REGNUM
6243 onto a simulator register number.
6244 (arm_gdbarch_init): Set register_sim_regno.
6245
6246 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6247
6248 * MAINTAINERS: Add self.
6249
6250 2002-06-11 Jim Blandy <jimb@redhat.com>
6251
6252 * source.c (source_info): Mention whether the symtab has
6253 information about preprocessor macros.
6254
6255 Call the command `info macro', not `show macro'.
6256 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6257 Fix error message.
6258 (_initialize_macrocmd): Register `info_macro_command' in
6259 `infolist', not `showlist'.
6260
6261 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6262
6263 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6264 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6265 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6266 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6267 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6268 unconditionally.
6269 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6270 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6271 (_initialize_mips_tdep): Remove dead code.
6272 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6273 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6274 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6275 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6276 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6277 MIPS_LAST_FP_ARG_REGNUM): Remove.
6278
6279 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6280
6281 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6282 (unwind_tmp_obstack_free, parse_frame_info)
6283 (update_context, cfi_read_fp, cfi_write_fp)
6284 (cfi_frame_chain, cfi_init_extra_frame_info)
6285 (cfi_virtual_frame_pointer): Use the above function.
6286 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6287
6288 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6289
6290 * v850-tdep.c (v850_type_is_scalar): New function.
6291 (v850_use_struct_convention): Match current gcc implementation
6292 as close as possible.
6293 (v850_push_arguments): Fix stack_offset handling. Don't write
6294 struct_addr into register. This is done by v850_store_struct_return.
6295 (v850_extract_return_value): Care for structs.
6296 (v850_store_return_value): Ditto.
6297 (v850_store_struct_return): Actually write address.
6298
6299 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6300
6301 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6302 without debug information too.
6303
6304 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6305
6306 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6307 Make multi-arch pure.
6308 * gdbarch.h, gdbarch.c: Re-generate.
6309 * arm-tdep.c (arm_print_float_info): Update.
6310 * arch-utils.h (default_print_float_info): Update.
6311 * arch-utils.c (default_print_float_info): Update.
6312 * infcmd.c (float_info): Update call.
6313
6314 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6315
6316 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6317 the front of the initialize list.
6318
6319 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6320
6321 * infrun.c (struct inferior_status): Replace fields
6322 selected_frame_address and selected_level with field
6323 selected_frame_id.
6324 (save_inferior_status): Update. Use get_frame_id.
6325 (struct restore_selected_frame_args): Delete.
6326 (restore_selected_frame): Update. Use frame_find_by_id.
6327 (restore_inferior_status): Update.
6328
6329 * breakpoint.h (struct breakpoint): Change type of
6330 watchpoint_frame to frame_id.
6331 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6332 call to get_current_frame.
6333 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6334 get_current_frame.
6335 (watchpoint_check): Use frame_find_by_id.
6336
6337 * frame.h (record_selected_frame): Delete declaration.
6338 * stack.c (record_selected_frame): Delete function.
6339
6340 * frame.h (struct frame_id): Define.
6341 (get_frame_id): Declare.
6342 (frame_find_by_id): Declare.
6343 * frame.c (frame_find_by_id): New function.
6344 (get_frame_id): New function.
6345
6346 2002-06-10 Andrey Volkov <avolkov@transas.com>
6347
6348 * ser-e7kpc.c: Fix duplicated define and call of
6349 _initialize_ser_e7000pc
6350
6351 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6352
6353 * signals/signals.c (target_signal_from_host): Fix #ifdef
6354 SIGRTMIN case.
6355 (do_target_signal_to_host): Likewise.
6356
6357 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6358
6359 * mips-tdep.c (mips_find_abi_section): New function.
6360 (mips_gdbarch_init): Call it.
6361
6362 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6363
6364 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6365 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6366 after Andrew's 2002-06-08 gdbarch change.
6367
6368 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6369
6370 * i386-linux-nat.c (suppy_gregset): Don't supply
6371 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6372 register cache.
6373 (fill_gregset): Don't fetch it under the same circumstances.
6374
6375 2002-06-09 Andrew Cagney <cagney@redhat.com>
6376
6377 * Makefile.in (callback_h): Define.
6378 (remote_sim_h): Update path to remote-sim.h.
6379 (remote-rdp.o): Add $(callback_h).
6380 (remote-sim.o): Use $(callback_h).
6381 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6382 * remote-rdp.c: Include "gdb/callback.h".
6383
6384 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6385
6386 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6387 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6388
6389 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6390
6391 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6392 * rdi-share/serpardr.c: Ditto.
6393 * rdi-share/unixcomm.c: Ditto.
6394 * rdi-share/serdrv.c: Ditto.
6395 * rdi-share/hostchan.h: Ditto.
6396 * rdi-share/hostchan.c: Ditto.
6397 * rdi-share/host.h: Ditto.
6398 * rdi-share/devsw.c: Ditto.
6399
6400 * objfiles.h: Change type of obj_private to void pointer.
6401 * pa64solib.c: Update copyright. Don't include "assert.h", use
6402 strcmp instead of STREQ, use LONGEST, do not use PTR
6403 * somsolib.c: Ditto.
6404
6405 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6406 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6407 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6408
6409 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6410
6411 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6412 (default_get_saved_register): Delete function.
6413 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6414 generic_unwind_get_saved_register.
6415 * gdbarch.h, gdbarch.c: Re-generate.
6416
6417 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6418
6419 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6420 generic_func_frame_chain_valid.
6421 * gdbarch.h, gdbarch.c: Re-generate.
6422 * blockframe.c (generic_func_frame_chain_valid): Only check
6423 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6424 passing FP to PC_IN_CALL_DUMMY.
6425 Fix PR gdb/360.
6426
6427 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6428
6429 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6430 (register_gdbarch_data): Initialize init_p.
6431 (gdbarch_data): Initialize data pointer using the init function.
6432 (init_gdbarch_data): Delete function.
6433 (gdbarch_update_p): Update.
6434 (initialize_non_multiarch): Update.
6435 (struct gdbarch): Add field initialized_p.
6436 * gdbarch.h, gdbarch.c: Re-generate.
6437
6438 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6439
6440 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6441 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6442 better do the things actually here.
6443 * x86-64-tdep.c (x86_64_register_name2nr): New.
6444 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6445 (x86_64_gdbarch_init): Respect the above change.
6446 * x86-64-tdep.h (x86_64_register_name2nr)
6447 (x86_64_register_nr2name): Add prototypes.
6448 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6449
6450 2002-06-06 Michael Snyder <msnyder@redhat.com>
6451
6452 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6453 Delete extra braces and re-indent.
6454 (d10v_store_return_value): Char return values
6455 must be shifted over by one byte in R0.
6456 (d10v_extract_return_value): Delete extra braces, re-indent.
6457
6458 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6459
6460 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6461 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6462 (d10v_integer_to_address): Rewrite.
6463 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6464 the d10v specific functions which take care of converting to the
6465 correct space.
6466
6467 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6468
6469 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6470 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6471
6472 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6473
6474 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6475 includes.
6476 * config/tm-linux.h: Ditto.
6477 * config/alpha/tm-alphalinux.h: Ditto.
6478 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6479 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6480 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6481 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6482 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6483 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6484 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6485 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6486 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6487 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6488 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6489 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6490 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6491 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6492 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6493 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6494 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6495 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6496 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6497 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6498 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6499 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6500 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6501 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6502 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6503 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6504 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6505 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6506 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6507 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6508 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6509 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6510 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6511 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6512 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6513 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6514 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6515
6516 2002-05-04 Aidan Skinner <aidan@velvet.net>
6517
6518 * ada-exp.tab.c: New file
6519 * ada-exp.y: New file
6520 * ada-lang.c: New file
6521 * ada-lang.h: New file
6522 * ada-lex.c: New file
6523 * ada-lex.l: New file
6524 * ada-tasks.c: New file
6525 * ada-typeprint.c: New file
6526 * ada-valprint.c: New file
6527
6528 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6531 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6532
6533 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6536 insetead of ppc-linux-tdep.o.
6537 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6538 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6539
6540 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6541
6542 2002-05-07 Christian Groessler <chris@groessler.org>
6543 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6544 bit register contents for little endian hosts.
6545
6546 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6547
6548 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6549 any maintainer.
6550
6551 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6552
6553 * gdbarch.h: Regenerate.
6554
6555 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6556
6557 * MAINTAINERS: Add everyone to write-after-approval list.
6558
6559 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6560
6561 * stack.c (frame_info): Use frame_register_unwind instead of
6562 saved_regs. Mention when the SP is on the stack or in a register.
6563
6564 * frame.h (frame_register_unwind_ftype): Define. Document.
6565 (struct frame_info): Add field register_unwind and
6566 register_unwind_cache.
6567 (frame_register_unwind): Declare.
6568 (generic_unwind_get_saved_register): Declare.
6569
6570 * frame.c (frame_register_unwind): New function.
6571 (generic_unwind_get_saved_register): New function.
6572
6573 * blockframe.c (generic_call_dummy_register_unwind): New function.
6574 (frame_saved_regs_register_unwind): New function.
6575 (set_unwind_by_pc): New function.
6576 (create_new_frame): New function.
6577 (get_prev_frame): New function.
6578
6579 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6580
6581 * a29k-share/: Delete directory.
6582 * remote-vx29k.c: Delete file.
6583
6584 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6585
6586 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6587 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6588
6589 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6590
6591 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6592 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6593 (sparc64nbsd-nat.o)
6594 (sparcnbsd-nat.o)
6595 (sparcnbsd-tdep.o): New dependency lists.
6596 * NEWS: Note new UltraSPARC NetBSD native configuration.
6597 * configure.host (sparc64-*-netbsd*): New host.
6598 * configure.tgt (sparc-*-netbsdelf*)
6599 (sparc-*-netbsd*): Set gdb_target to nbsd.
6600 (sparc64-*-netbsd*): New target.
6601 * sparc64nbsd-nat.c: New file.
6602 * sparcnbsd-nat.c: New file.
6603 * sparcnbsd-tdep.c: New file.
6604 * sparcnbsd-tdep.h: New file.
6605 * config/sparc/nbsd.mt: New file.
6606 * config/sparc/nbsd64.mh: New file.
6607 * config/sparc/nbsd64.mt: New file.
6608 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6609 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6610 (HOST_IPC): Remove.
6611 * config/sparc/nbsdaout.mt: Remove.
6612 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6613 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6614 (HOST_IPC): Remove.
6615 * config/sparc/nbsdelf.mt: Remove.
6616 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6617 sparc-nat.c compatiblity defines.
6618 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6619 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6620 * config/sparc/tm-nbsd64.h: New file.
6621 * config/sparc/tm-nbsdaout.h: Remove.
6622 * config/sparc/xm-nbsd.h: Remove.
6623
6624 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6625
6626 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6627 * sparc-tdep.c: Include osabi.h.
6628 (gdbarch_tdep): Add osabi member.
6629 (_initialize_sparc_tdep): Use gdbarch_register.
6630 (sparc_gdbarch_init): Use generic OS ABI framework.
6631 (sparc_dump_tdep): New function.
6632
6633 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6634
6635 * corefile.c (do_captured_read_memory_integer): Return non-zero
6636 result.
6637 (safe_read_memory_integer): Copy result of memory read when
6638 status is non-zero. Also, add comments.
6639
6640 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * Makefile.in (ppc_tdep_h): Define.
6643 (ppc-linux-nat.o)
6644 (ppc-linux-tdep.o)
6645 (rs6000-tdep.o): Use $(ppc_tdep_h).
6646 (ppc-sysv-tdep.o)
6647 (ppcnbsd-nat.o)
6648 (ppcnbsd-tdep.o): New dependency lists.
6649 * ppc-tdep.h: Use generic OS ABI framework.
6650 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6651 (ppc_linux_init_abi): New functions.
6652 (ppc_sysv_abi_broken_use_struct_convention)
6653 (ppc_sysv_abi_use_struct_convention)
6654 (ppc_sysv_abi_push_arguments): Move to...
6655 * ppc-sysv-tdep.c: ...here.
6656 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6657 * rs6000-tdep.c (process_note_abi_tag_sections)
6658 (get_elfosabi): Remove.
6659 (rs6000_gdbarch_init): Use generic OS ABI framework.
6660 (rs6000_dump_tdep): New function.
6661 (_initialize_rs6000_tdep): Use gdbarch_register.
6662 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6663 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6664 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6665 of ppc-linux-tdep.o.
6666 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6667 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6668 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6669 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6670 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6671 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6672
6673 2002-05-29 Jim Blandy <jimb@redhat.com>
6674
6675 * macroscope.c (default_macro_scope): Put `void' in empty argument
6676 list.
6677
6678 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6679
6680 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6681 * arch-utils.c: Include "sim-regno.h".
6682 * gdbarch.sh: Don't include "sim-regno.h".
6683 * gdbarch.h, gdbarch.c: Regenerate.
6684 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6685 here.
6686 * arch-utils.h (legacy_register_sim_regno): To here.
6687 * remote-sim.c (legacy_register_sim_regno): Move function from
6688 here.
6689 * arch-utils.c (legacy_register_sim_regno): To here.
6690
6691 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6692
6693 * sim-regno.h: New file.
6694 * Makefile.in (sim_regno_h): Define.
6695 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6696 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6697 (legacy_register_sim_regno): New function.
6698 (one2one_register_sim_regno): New function.
6699 (gdbsim_fetch_register): Rewrite.
6700 (gdbsim_store_register): Only store a register when
6701 REGISTER_SIM_REGNO is valid.
6702 * d10v-tdep.c: Include "sim-regno.h".
6703 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6704 (d10v_ts3_register_sim_regno): Ditto.
6705 * gdbarch.sh: Include "sim-regno.h".
6706 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6707 * gdbarch.h, gdbarch.c: Regenerate.
6708 * arch-utils.h (default_register_sim_regno): Delete declaration.
6709 * arch-utils.c (default_register_sim_regno): Delete function.
6710
6711 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6712
6713 * ppcnbsd-nat.c: Rewrite.
6714 * ppcnbsd-tdep.c: New file.
6715 * ppcnbsd-tdep.h: New file.
6716 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6717 solib.o, and solib-svr4.o.
6718 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6719 nbsd-tdep.o, and corelow.o.
6720
6721 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6722
6723 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6724 `tr' and `sed'. Mention that `broken' targets are not expected to
6725 build.
6726
6727 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6728
6729 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6730 Let PC point right after the prologue before looking up symbols.
6731
6732 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6733
6734 * i386-tdep.c (i386_register_virtual_type): Return
6735 builtin_type_vec128i for SSE registers.
6736
6737 * gdbtypes.h (builtin_type_vec128i): Declare.
6738
6739 * gdbtypes.c (build_builtin_type_vec128i): New function.
6740 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6741 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6742 (build_gdbtypes): Initialize new builtin vector types.
6743 (_initialize_gdbtypes): Register new vector types with gdbarch.
6744
6745 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6746
6747 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6748 since it has been multi-arch'd.
6749 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6750 Move Alpha and VAX multi-arch news entries to same section
6751 as other multi-arch news.
6752
6753 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6754
6755 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6756 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6757 static. Rename some register numbers to put them in ns32k-tdep
6758 private namespace.
6759 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6760 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6761 functions.
6762 (_initialize_ns32k_tdep): Use gdbarch_register.
6763 * ns32k-tdep.h: New file.
6764 * ns32knbsd-tdep.c: New file.
6765 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6766 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6767 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6768 REGISTER_BYTES, REGISTER_BYTE): Remove.
6769 * config/ns32k/tm-ns32k.h: New file.
6770 * config/ns32k/tm-umax.h: Remove.
6771
6772 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6773
6774 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6775 ns32k_store_struct_return, ns32k_extract_return_value,
6776 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6777 functions.
6778 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6779 ns32k_saved_pc_after_call.
6780 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6781 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6782 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6783 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6784 ns32k_extract_struct_value_address.
6785
6786 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6787
6788 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6789 ns32k_fix_call_dummy): New.
6790 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6791 ns32k_call_dummy_words.
6792 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6793 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6794 CALL_DUMMY_NARGS): Remove.
6795 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6796
6797 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6798
6799 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6800 ns32k_frame_saved_pc, ns32k_frame_args_address,
6801 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6802 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6803 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6804 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6805 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6806 (BREAKPOINT): Remove..
6807 (FRAME_CHAIN): Define as ns32k_frame_chain.
6808 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6809 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6810 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6811 (FRAME_FIND_SAVED_REGS): Remove.
6812 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6813 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6814 (POP_FRAME): Define as ns32k_pop_frame.
6815
6816 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6817
6818 * ns32k-tdep.c (ns32k_register_byte_32082,
6819 ns32k_register_byte_32382, ns32k_register_raw_size,
6820 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6821 functions.
6822 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6823 ns32k_register_byte_32382.
6824 * config/ns32k/tm-umax.h: Update copyright years.
6825 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6826 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6827 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6828 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6829 (ns32k_get_enter_addr): Fix prototype.
6830
6831 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6832
6833 * ns32k-tdep.c: Update copyright years.
6834 (ns32k_register_name_32082): New function.
6835 (ns32k_register_name_32382): Ditto.
6836 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6837 (REGISTER_NAME): Define as ns32k_register_name_32382.
6838 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6839 (REGISTER_NAME): Define as ns32k_register_name_32082.
6840
6841 2002-05-24 Jim Blandy <jimb@redhat.com>
6842
6843 * dwarf2read.c (free_line_header): Use xfree, not free.
6844
6845 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6846
6847 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6848 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6849
6850 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6851
6852 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6853
6854 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6855
6856 From Ross Alexander at NEC Europe:
6857 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6858
6859 2002-05-23 Michael Snyder <msnyder@redhat.com>
6860
6861 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6862 for input, rather than parse_and_eval_address.
6863
6864 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6865
6866 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6867 * Makefile.in (sim_d10v_h): Update definition.
6868
6869 2002-05-24 Andrew Cagney <cagney@redhat.com>
6870
6871 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6872 change `2002-05-22 Michael Snyder' below.
6873 (d10v_push_arguments): Ditto.
6874 (d10v_extract_return_value): Ditto.
6875
6876 2002-05-23 Jim Blandy <jimb@redhat.com>
6877
6878 * macrotab.c (check_for_redefinition): Don't complain if the new
6879 definition is the same as the previous one. Take more arguments
6880 to allow the comparison.
6881 (macro_define_object, macro_define_function): Pass more arguments
6882 to check_for_redefinition.
6883
6884 2002-05-22 Michael Snyder <msnyder@redhat.com>
6885
6886 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6887 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6888 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6889 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6890 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6891 Add a temp variable to save a call (and a memory read).
6892 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6893 if possible (so that PC_IN_CALL_DUMMY will work).
6894
6895 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6896
6897 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6898
6899 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6900
6901 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6902 fde->cie_ptr.
6903 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6904 (dwarf2_build_frame_info): Add offset to fde->initial_location
6905 so that frames of shared libraries are mapped correctly.
6906 (execute_stack_op): Change type of 'result' from ULONGEST to
6907 CORE_ADDR.
6908
6909 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6910
6911 * config/alpha/tm-nbsd.h: Include solib.h.
6912
6913 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6914
6915 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6916 assumptions about the host's byte order.
6917
6918 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6919
6920 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6921 to dependency list.
6922 * alphanbsd-tdep.c: Include solib-svr4.h.
6923 * shnbsd-tdep.c: Ditto.
6924
6925 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6928 nbsd-tdep.h to dependency list.
6929 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6930 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6931 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6932 nbsdaout.mh and nbsdelf.mh consistently.
6933 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6934 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6935 nbsdaout.mt and nbsdelf.mh consistently.
6936 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6937 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6938 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6939 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6940 a.out shared library stuff from here...
6941 * config/nm-nbsdaout.h: ...to here.
6942 * config/tm-nbsd.h: Remove.
6943 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6944 * config/arm/nbsd.mh: Remove.
6945 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6946 nbsd-tdep.o.
6947 * config/arm/nbsdaout.mh: New file.
6948 * config/arm/nbsdelf.mh: New file.
6949 * config/arm/nm-nbsdaout.h: New file.
6950 * config/i386/nbsd.mh: Remove.
6951 * config/i386/nbsd.mt: Remove.
6952 * config/i386/nbsdaout.mh: New file.
6953 * config/i386/nbsdaout.mt: New file.
6954 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6955 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6956 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6957 i386_register_u_addr): Remove.
6958 * config/i386/nm-nbsdaout.h: New file.
6959 * config/i386/nm-nbsdelf.h: Remove.
6960 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6961 (USE_STRUCT_CONVENTION): Remove.
6962 * config/i386/tm-nbsdaout.h: New file.
6963 * config/i386/tm-nbsdelf.h: Remove.
6964 * config/m68k/nbsd.mh: Remove.
6965 * config/m68k/nbsd.mt: Remove.
6966 * config/m68k/nbsdaout.mh: New file.
6967 * config/m68k/nbsdaout.mt: New file.
6968 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6969 * config/m68k/nm-nbsdaout.h: New file.
6970 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6971 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6972 * config/ns32k/nbsd.mh: Remove.
6973 * config/ns32k/nbsd.mt: Remove.
6974 * config/ns32k/nbsdaout.mh: New file.
6975 * config/ns32k/nbsdaout.mt: New file.
6976 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6977 * config/ns32k/nm-nbsdaout.h: New file.
6978 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6979 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6980 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6981 (SVR4_SHARED_LIBS): Remove.
6982 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6983 * config/sparc/nbsd.mh: Remove.
6984 * config/sparc/nbsd.mt: Remove.
6985 * config/sparc/nbsdaout.mh: New file.
6986 * config/sparc/nbsdaout.mt: New file.
6987 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6988 * config/sparc/nbsdelf.mt: New file.
6989 * config/sparc/nm-nbsdaout.h: New file.
6990 * config/sparc/nm-nbsdelf.h: Remove.
6991 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6992 * config/sparc/tm-nbsdaout.h: New file.
6993
6994 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6995
6996 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6997 mipsnbsd-tdep.c
6998 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6999
7000 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7001
7002 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7003 shnbsd-nat.c.
7004 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7005
7006 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7007
7008 * NEWS: Note new MIPS NetBSD native configuration.
7009 * configure.host (mips*-*-netbsd*): New host.
7010 * configure.tgt (mips*-*-netbsd*): New target.
7011 * mipsnbsd-nat.c: New file.
7012 * mipsnbsd-tdep.c: New file.
7013 * mipsnbsd-tdep.h: New file.
7014 * config/mips/nbsd.mh: New file.
7015 * config/mips/nbsd.mt: New file.
7016 * config/mips/nm-nbsd.h: New file.
7017 * config/mips/tm-nbsd.h: New file.
7018
7019 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7020
7021 * Makefile.in (SFILES): Add osabi.c.
7022 (COMMON_OBS): Add osabi.o.
7023 (osabi.o): New dependency list.
7024 * osabi.c: New file.
7025 * osabi.h: New file.
7026 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7027
7028 * Makefile.in (alpha_tdep_h): Define and use instead of
7029 alpha-tdep.h.
7030 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7031 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7032 Remove.
7033 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7034 * alpha-tdep.h: Include osabi.h.
7035 (alpha_abi): Remove.
7036 (gdbarch_tdep): Use generic OS ABI framework.
7037 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7038 gdbarch_register_osabi.
7039 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7040 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7041 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7042
7043 * Makefile.in (sh_tdep_h): Add osabi.h.
7044 * sh-tdep.h (sh_osabi): Remove.
7045 (gdbarch_tdep): Use generic OS ABI framework.
7046 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7047 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7048 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7049 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7050
7051 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7052 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7053 gdbarch_register_osabi.
7054 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7055 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7056 (get_elfosabi): Rename to...
7057 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7058 ABI framework support routines.
7059 (arm_gdbarch_init): Use generic OS ABI framework.
7060 (arm_dump_tdep): Likewise.
7061 (_initialize_arm_tdep): Likewise.
7062 * arm-tdep.h: Include osabi.h.
7063 (arm_abi): Remove.
7064 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7065 osabi member.
7066 (arm_gdbarch_register_os_abi): Remove prototype.
7067 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7068 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7069
7070 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7071 * mips-tdep.c: Include osabi.h.
7072 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7073 OS ABI framework.
7074
7075 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7076
7077 * h8300-tdep.c: Fix formatting.
7078
7079 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7080
7081 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7082 printing vector registers.
7083
7084 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7085
7086 From Fernando Nasser:
7087 * remote.c (remote_async_open_1): Re-throw the exception when the
7088 connection fails.
7089 (remote_cisco_open): Ditto.
7090 (remote_open_1): Ditto.
7091
7092 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7093
7094 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7095 (remote_start_remote): Add uiout parameter. Pass through to
7096 remote_start_remote_dummy.
7097 (remote_open_1): Use catch_exception instead of catch_errors.
7098 (remote_async_open_1): Ditto.
7099 (remote_cisco_open): Ditto.
7100
7101 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7102
7103 * remote.c (remote_start_remote): Replace PTR with void pointer.
7104 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7105 static.
7106
7107 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7108
7109 * gdb_indent.sh: Allow the script to be run in the sim directory.
7110
7111 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7112
7113 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7114 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7115
7116 * corelow.c (core_open): Only call set_gdbarch_from_file if
7117 exec_bfd is NULL.
7118
7119 2002-05-17 Andrey Volkov <avolkov@transas.com>
7120
7121 * h8300-tdep.c: Add support of EXR register
7122 * config/h8300/tm-h8300.h: Ditto.
7123
7124 2002-05-17 Andrey Volkov <avolkov@transas.com>
7125
7126 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7127
7128 2002-05-17 Andrey Volkov <avolkov@transas.com>
7129
7130 * h8300-tdep.c: Change literal regnums to REGNO.
7131
7132 2002-05-17 Jim Blandy <jimb@redhat.com>
7133
7134 * NEWS: Note addition of macro support.
7135
7136 Expand preprocessor macros in C expressions.
7137 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7138 (scan_macro_expansion, scanning_macro_expansion,
7139 finished_macro_expansion): New function declarations.
7140 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7141 variable declarations.
7142 * parser-defs.h (expression_context_pc): New declaration.
7143 * parse.c (expression_context_pc): New variable.
7144 (parse_exp_1): Set expression_context_pc, as well as
7145 expression_context_block.
7146 * c-exp.y (yylex): If we're not already reading the result of a
7147 macro expansion, try to macro-expand the next token. When we're
7148 done scanning a macro expansion, switch back to the mainline text.
7149 Commas and `if's in a macro's expansion don't terminate the input.
7150 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7151 (macro_original_text, macro_expanded_text,
7152 expression_macro_lookup_func, expression_macro_lookup_baton): New
7153 variables.
7154 (scan_macro_expansion, scanning_macro_expansion,
7155 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7156 c_preprocess_and_parse): New functions.
7157 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7158 c_preprocess_and_parse, instead of c_parse.
7159 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7160 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7161
7162 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7163
7164 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7165 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7166 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7167
7168 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7169
7170 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7171
7172 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7173
7174 * Makefile.in (sh_tdep_h): Define and use.
7175 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7176 register enum): Move to...
7177 * * sh-tdep.h: ...here.
7178 * sh-tdep.c: Include sh-tdep.h.
7179 * sh3-rom.c: Likewise.
7180 * shnbsd-tdep.c: Likewise.
7181
7182 2002-05-16 Michael Snyder <msnyder@redhat.com>
7183
7184 * arm-tdep.c: Spelling fix in comment.
7185
7186 2002-05-16 Jim Blandy <jimb@redhat.com>
7187
7188 Add commands for manually expanding macros and showing their
7189 definitions.
7190 * macrocmd.c, macroscope.c, macroscope.h: New files.
7191 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7192 (macroscope_h): New variable.
7193 (HFILES_NO_SRCDIR): Add macroscope.h.
7194 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7195 (macroscope.o, macrocmd.o): New rules.
7196
7197 Teach the Dwarf 2 reader to read macro information.
7198 * dwarf2read.c: #include "macrotab.h".
7199 (dwarf_macinfo_buffer): New variable.
7200 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7201 dwarf_macinfo_size.
7202 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7203 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7204 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7205 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7206 dwarf2_macro_spaces_in_definition): New complaints.
7207 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7208 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7209 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7210 the partial symbol table.
7211 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7212 from what's recorded in the partial symbol table.
7213 (read_file_scope): If the compilation unit has a
7214 `DW_AT_macro_info' attribute, read its macro information.
7215 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7216
7217 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7218
7219 Fix PR gdb/546
7220 * ser-tcp.c: Don't include <netinet/udp.h>.
7221
7222 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7223
7224 * MAINTAINERS: Update my email address.
7225
7226 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7227
7228 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7229 include file of the same name.
7230
7231 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7232
7233 * configure.tgt: Mark v850 as multi-arched.
7234 * config/v850/tm-v850.h: Remove file.
7235 * config/v850/v850.mt: Eliminate TM_FILE.
7236
7237 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7238
7239 * v850-tdep.c: Full multi-arch.
7240 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7241 Define GDB_MULTI_ARCH to 2.
7242
7243 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7244
7245 * p-exp.y (current_type): New static variable.
7246 Carries the type of the expression at the position that is parsed.
7247 (push_current_type, pop_current_type): Two new functions. Used
7248 to store/restore current_type in expression on specific tokens.
7249 (search_field): New static variable. Set to one after parsing a point
7250 as at that point only a FIELDNAME token should be searched.
7251 (FIELDNAME): New token. After a point only a token belonging to
7252 current_type type definition is allowed.
7253 (all over token rules): reset and change current_type according
7254 to rules.
7255 (exp '[' rule): insert implicit array index field if
7256 exp is a pascal string type.
7257
7258 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7259
7260 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7261 frame info. Use frame_info's saved_regs instead of matching member
7262 in extra_frame_info throughout.
7263 (v850_frame_init_saved_regs): New function.
7264 (v850_init_extra_frame_info): Move most functionality into
7265 v850_frame_init_saved_regs().
7266 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7267 (v850_frame_find_saved_regs): Remove declaration.
7268 (FRAME_FIND_SAVED_REGS): Remove definition.
7269 (v850_frame_init_saved_regs): Add declaration.
7270 (FRAME_INIT_SAVED_REGS): Add definition.
7271
7272 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7273
7274 * v850-tdep.c: Begin multi-arch'ing v850.
7275 (v850_target_architecture_hook): Remove function.
7276 (v850_gdbarch_init): New function. Add code previously in
7277 v850_target_architecture_hook().
7278 (_initialize_v850_tdep): Don't set target_architecture_hook.
7279 Call register_gdbarch_init() instead.
7280
7281 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7282
7283 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7284 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7285 (fixup_class_method_type): Likewise.
7286
7287 2002-05-15 Jim Blandy <jimb@redhat.com>
7288
7289 Add macro structures to GDB's symbol tables. Nobody puts anything
7290 in them yet.
7291 * symtab.h (struct symtab): New member: `macro_table'.
7292 * buildsym.h (pending_macros): New global variable.
7293 * buildsym.c: #include "macrotab.h".
7294 (buildsym_init): Initialize `pending_macros'.
7295 (end_symtab): If we found macro information while reading a CU's
7296 debugging info, do build a symtab structure for it. Make the
7297 symtab point to the macro information, and clear the
7298 `pending_macros' pointer which held it while we were reading the
7299 debug info.
7300 (really_free_pendings): Free any pending macro table.
7301 * objfiles.h (struct objfile): New member: `macro_cache'.
7302 * objfiles.c (allocate_objfile): Set allocate and free functions
7303 for the macro cache's objstack.
7304 (free_objfile): Empty the macro cache's obstack.
7305 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7306 set new allocate and free functions for it.
7307 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7308 free functions for the macro cache's objstack. (Why is this
7309 function building its own objfile?)
7310 * symmisc.c (print_objfile_statistics): Print statistics on the
7311 macro bcache.
7312 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7313
7314 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7315
7316 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7317 (REGISTER_U_ADDR): Delete definition.
7318 (arm_register_u_addr): Delete declaration.
7319
7320 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7321
7322 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7323 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7324
7325 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7326
7327 * regcache.c (register_valid): Revise comments refering to "Not
7328 available" and "unavailable".
7329 * frame.c (frame_register_read): Ditto.
7330 * findvar.c (value_of_register): Ditto.
7331
7332 2002-05-15 Andrew Cagney <cagney@redhat.com>
7333
7334 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7335 (remote-sim.o): Update dependencies.
7336 (d10v-tdep.o): Specify dependencies.
7337 (sim_d10v_h): Define.
7338
7339 2002-05-14 Jim Blandy <jimb@redhat.com>
7340
7341 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7342 * macrotab.c (macro_lookup_inclusion, find_definition,
7343 new_macro_table): Same.
7344
7345 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7346 not `! strcmp ()'. This is a dubious improvement.
7347 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7348
7349 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7350 although it's not necessary, to avoid a warning.
7351
7352 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7353
7354 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7355 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7356 TYPE_INSTANCE_FLAGS.
7357 (struct main_type): New.
7358 (struct type): Move most members to struct main_type. Change
7359 cv_type and as_type to new type_chain member. Add instance_flags.
7360 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7361 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7362 (finish_cv_type): Remove prototype.
7363 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7364 Set TYPE_CHAIN.
7365 (alloc_type_instance): New function.
7366 (smash_type): New function.
7367 (make_pointer_type, make_reference_type, make_function_type)
7368 (smash_to_member_type, smash_to_method_type): Call smash_type.
7369 (make_qualified_type): New function.
7370 (make_type_with_address_space): Call make_qualified_type.
7371 (make_cv_type): Likewise.
7372 (finish_cv_type): Remove unnecessary function.
7373 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7374 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7375 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7376 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7377 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7378 * hpread.c (hpread_read_struct_type): Likewise.
7379 * stabsread.c (read_struct_type): Likewise.
7380
7381 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7382
7383 * configure.tgt: Add a catch all sh* target, for cases like
7384 sh[2,3,4]-elf and sh-hms.
7385
7386 2002-05-14 Keith Seitz <keiths@redhat.com>
7387
7388 * event-loop.c (create_file_handler): Don't do anything but
7389 update data when we are given a fd which we are already
7390 monitoring.
7391
7392 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7393
7394 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7395 (update_context): Use __func__ in warnings.
7396
7397 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7398
7399 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7400 and tcp_close to net_open and net_close.
7401 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7402 using UDP if requested. Don't try to disable Nagle on UDP
7403 sockets.
7404 * remote.c (remote_serial_open): New function. Warn about UDP.
7405 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7406
7407 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7408
7409 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7410
7411 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7412
7413 * configure.tgt: Remove sh-hms target.
7414 * MAINTAINERS: Don't list sh-hms as a separate target.
7415
7416 2002-05-13 Jim Blandy <jimb@redhat.com>
7417
7418 Add first preprocessor macro-expansion files.
7419 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7420 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7421 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7422 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7423 (COMMON_OBS): Add macrotab.o, macroexp.o.
7424 (macroexp.o, macrotab.o): New rules.
7425
7426 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7427
7428 * config/m88k/tm-m88k.h: Update copyright.
7429 (m88k_target_write_pc): Declare
7430 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7431 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7432 (SHIFT_INST_REGS): Update definition.
7433 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7434 using old definition of TARGET_WRITE_PC.
7435 * regcache.c (generic_target_write_pc): Delete code handling
7436 NNPC_REGNUM.
7437 * gdbarch.sh (NNPC_REGNUM): Delete.
7438 * gdbarch.h, gdbarch.c: Regenerate.
7439
7440 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7441
7442 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7443 builtin reg number.
7444
7445 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7446
7447 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7448 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7449 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7450 access macros.
7451 * c-typeprint.c (cp_type_print_method_args): Likewise.
7452 (c_type_print_args): Likewise.
7453 * d10v-tdep.c (d10v_push_arguments): Likewise.
7454 (d10v_extract_return_value): Likewise.
7455 * expprint.c (print_subexp): Likewise.
7456 * gdbtypes.c (lookup_primitive_typename): Likewise.
7457 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7458 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7459 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7460 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7461 (TYPE_VECTOR): Likewise.
7462 * hpread.c (hpread_read_struct_type)
7463 (fix_static_member_physnames, fixup_class_method_type)
7464 (hpread_type_lookup): Likewise.
7465 * mdebugread.c (parse_symbol, parse_type): Likewise.
7466 * p-lang.c (is_pascal_string_type): Likewise.
7467 * valops.c (hand_function_call): Likewise.
7468 * x86-64-tdep.c (classify_argument): Likewise.
7469
7470 * hpread.c (hpread_read_function_type)
7471 (hpread_read_doc_function_type): Call replace_type.
7472 * dstread.c (create_new_type): Delete.
7473 (decode_dst_structure, process_dst_function): Call alloc_type.
7474 Use type access macros.
7475
7476 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7477
7478 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7479 the're not supported by the current architecture.
7480 (i387_fill_fxsave): Likewise.
7481
7482 2002-05-12 Fred Fish <fnf@redhat.com>
7483
7484 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7485 sect_index_xxx members to index the first slot in section_offsets
7486 if all of the section_offsets are zero.
7487
7488 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7489
7490 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7491 checked in with last change.
7492
7493 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7494
7495 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7496 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7497 config.sub.
7498
7499 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7500
7501 * Makefile.in: Update dependencies.
7502
7503 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7504
7505 * language.c (local_hex_string_custom): Simplify. Do not depend
7506 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7507
7508 * memattr.c (mem_info_command): Replace calls to
7509 longest_local_hex_string and longest_local_hex_string_custom.
7510 * buildsym.c (make_blockvector): Ditto.
7511 * solib.c (info_sharedlibrary_command): Ditto.
7512 * tracepoint.c (tracepoints_info): Ditto.
7513 * symtab.c (print_msymbol_info): Ditto.
7514
7515 * language.c (local_hex_string): Delete.
7516 (local_hex_string_custom): Delete.
7517 (longest_local_hex_string): Rename to local_hex_string.
7518 (longest_local_hex_string_custom): Rename to
7519 local_hex_string_custom.
7520 * language.h (local_hex_string): Change parameter type to LONGEST.
7521 (local_hex_string_custom): Ditto.
7522 (longest_local_hex_string): Delete declaration.
7523 (longest_local_hex_string_custom): Ditto.
7524
7525 * solib.c: Update copyright.
7526 * memattr.c: Update copyright.
7527
7528 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7529
7530 * arch-utils.h (legacy_register_to_value): Declare.
7531 (legacy_value_to_register): Declare.
7532 (legacy_convert_register_p): Declare.
7533 * arch-utils.c (legacy_register_to_value): New function.
7534 (legacy_value_to_register): New function.
7535 (legacy_convert_register_p): New function.
7536
7537 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7538 (VALUE_TO_REGISTER): Define.
7539 (CONVERT_REGISTER_P): Define.
7540 * gdbarch.h, gdbarch.c: Regenerate.
7541
7542 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7543 VALUE_TO_REGISTER.
7544 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7545 CONVERT_REGISTER_P.
7546
7547 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7548 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7549
7550 * Makefile.in: Update dependencies for valops.c.
7551 * valops.c: Include "gdb_assert.h".
7552 (typecmp): Skip THIS parameter to methods.
7553 (find_method_list): Remove static_memfuncp argument,
7554 update callers. Check for stub methods.
7555 (find_value_oload_method_list): Don't set *static_memfuncp.
7556 (find_overload_match): Don't check for stub methods. Assert
7557 that methods are not stubbed. Handle static methods.
7558 (value_find_oload_method_list): Remove static_memfuncp argument.
7559 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7560 to the argument list for static stub methods.
7561 * value.h (value_find_oload_method_list): Update prototype.
7562
7563 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7564
7565 * arch-utils.h (generic_register_size): Declare.
7566 (generic_register_raw_size, generic_register_virtual_size): Delete
7567 declarations.
7568 * arch-utils.c (generic_register_raw_size): Delete.
7569 (generic_register_size): New function.
7570 (generic_register_virtual_size): Delete.
7571
7572 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7573 default generic_register_size.
7574 * gdbarch.h, gdbarch.c: Re-generate.
7575
7576 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7577 register_virtual_size.
7578 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7579 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7580
7581 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7582
7583 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7584 * gdbarch.h, gdbarch.c: Regenerate.
7585 * gnu-v3-abi.c: Update copyright.
7586 (vtable_address_point_offset): Update.
7587 (gnuv3_rtti_type): Update.
7588 (gnuv3_baseclass_offset): Update.
7589 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7590 (init_fetch_link_map_offsets): Update.
7591 * remote.c (get_remote_state): Update.
7592
7593 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7594
7595 * TODO: Remove value_headof/value_from_vtable_info comment.
7596 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7597 * values.c (value_headof, value_from_vtable_info): Delete.
7598 * value.h (value_from_vtable_info): Delete prototype.
7599
7600 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7601
7602 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7603 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7604 $(gdb_regex_h).
7605 (gdb_assert_h): Define.
7606 (gdb_wait_h): Define.
7607 (gdb_regex_h): Define.
7608
7609 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7610
7611 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7612 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7613
7614 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7615
7616 * nbsd-tdep.c: Fix comment.
7617
7618 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7619
7620 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7621 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7622 (nbsd-tdep.o): New dependency list.
7623 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7624 nbsd-tdep.h.
7625 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7626 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7627 * nbsd-tdep.c: New file.
7628 * nbsd-tdep.h: New file.
7629 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7630 nbsd-tdep.h.
7631 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7632 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7633 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7634 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7635
7636 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7637
7638 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7639 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7640 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7641 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7642 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7643 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7644
7645 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7646
7647 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7648 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7649 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7650 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7651 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7652 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7653 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7654
7655 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7658 fetch_elfcore_registers to...
7659 * i386nbsd-tdep.c: ...here.
7660 (i386nbsd_use_struct_convention): Rename to...
7661 (i386nbsd_aout_use_struct_convention): ...this.
7662 (i386nbsd_supply_reg): New function.
7663 (i386nbsd_fill_reg): New function.
7664 (fetch_core_registers): Use i386nbsd_supply_reg.
7665 (fetch_elfcore_registers): Likewise.
7666 (_initialize_i386nbsd_tdep): New function.
7667 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7668 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7669 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7670 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7671 (i386nbsd_aout_use_struct_convention): ...this.
7672
7673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7674
7675 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7676 (store_inferior_registers): Use shnbsd_fill_reg.
7677 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7678 sh_nbsd_supply_register): Collapse into...
7679 (shnbsd_supply_reg): ...this.
7680 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7681 (shnbsd_fill_reg): ...this.
7682 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7683 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7684 (fetch_core_registers): Use shnbsd_supply_reg.
7685 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7686 (sh_nbsd_core_fns): Rename to...
7687 (shnbsd_core_fns): ...this.
7688 (sh_nbsd_elfcore_fns): Rename to...
7689 (shnbsd_elfcore_fns): ...this.
7690 (sh_nbsd_init_abi): Rename to...
7691 (shnbsd_init_abi): ...this.
7692 (_initialize_sh_nbsd_tdep): Rename to...
7693 (_initialize_shnbsd_tdep): ...this.
7694 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7695 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7696 sh_nbsd_fill_register): Remove prototypes.
7697 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7698
7699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7700
7701 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7702 (i387-nat.o): Delete dependency list.
7703 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7704 (x86-64-linux-nat.o): Likewise.
7705 * i387-nat.c: Delete file, moving contents to...
7706 * i387-tdep.c: ...here.
7707 * i387-nat.h: Rename...
7708 * i387-tdep.h: ...to this.
7709 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7710 * i386-linux-nat.c: Likewise.
7711 * i386bsd-nat.c: Likewise.
7712 * i386gnu-nat.c: Likewise.
7713 * i386nbsd-nat.c: Likewise.
7714 * i386v4-nat.c: Likewise.
7715 * x86-64-linux-nat.c: Likewise.
7716 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7717 * config/i386/go32.mh (NATDEPFILES): Likewise.
7718 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7719 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7720 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7721 * config/i386/linux.mh (NATDEPFILES): Likewise.
7722 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7723 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7724 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7725 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7726
7727 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7728
7729 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7730 (alphanbsd-nat.o): Remove dependency list.
7731 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7732 * alphanbsd-nat.c: Delete. Contents moved to...
7733 * alphanbsd-tdep.c: ...here.
7734 (_initialize_alphanbsd_tdep): Register core functions.
7735 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7736
7737 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7738
7739 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7740 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7741 (alphanbsd-nat.o): Likewise.
7742 (alphabsd-tdep.o): New dependency list.
7743 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7744 (fill_gregset): Use alphabsd_fill_reg.
7745 (supply_fpregset): Use alphabsd_supply_fpreg.
7746 (fill_fpregset): Use alphabsd_fill_fpreg.
7747 (fetch_inferior_registers): Use struct reg and struct fpreg
7748 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7749 and alphabsd_supply_fpreg.
7750 (store_inferior_registers): Use struct reg and struct fpreg
7751 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7752 and alphabsd_fill_fpreg.
7753 * alphabsd-tdep.c: New file.
7754 * alphabsd-tdep.h: New file.
7755 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7756 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7757 alphabsd_supply_fpreg.
7758 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7759 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7760
7761 2002-05-11 Eric Christopher <echristo@redhat.com>
7762
7763 * mips-tdep.c (mips_double_register_type): Fix thinko.
7764 (mips_single_register_type): Ditto.
7765 * MAINTAINERS: Add self.
7766
7767 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7768
7769 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7770 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7771 right thing on architectures with different endianness and/or
7772 integer sizes.
7773
7774 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7775
7776 From Christian Limpach <chris@Pin.LU>
7777 * configure.in: Change sed expression which comments out
7778 NATDEPFILES to also comment out continuation lines.
7779 * configure: Regenerate.
7780
7781 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7782
7783 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7784 big patch.
7785
7786 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7787
7788 * sh-tdep.c: Include correct file.
7789
7790 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7791
7792 New support for sh64-elf (sh5) target.
7793
7794 * configure.tgt: For sh64-elf target, default to sh-elf.
7795
7796 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7797 (struct gdbarch_tdep): Add new fields for new registers and ABI
7798 info.
7799
7800 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7801 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7802 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7803 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7804 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7805 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7806 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7807 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7808 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7809 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7810 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7811 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7812 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7813 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7814 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7815 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7816 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7817 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7818 sign_extend, sh64_nofp_frame_init_saved_regs,
7819 sh64_init_extra_frame_info, sh64_get_saved_register,
7820 sh64_extract_struct_value_address, sh64_pop_frame,
7821 sh64_push_arguments, sh64_extract_return_value,
7822 sh64_store_return_value, sh64_show_media_regs,
7823 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7824 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7825 sh_sh64_register_virtual_type,
7826 sh_sh64_register_convert_to_virtual,
7827 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7828 sh64_register_read, sh64_pseudo_register_write,
7829 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7830 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7831 sh64_do_pseudo_register, sh_compact_do_registers_info,
7832 sh64_do_registers_info, sh_gdbarch_init): New functions.
7833
7834 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7835
7836 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7837
7838 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7839
7840 * linespec.c (decode_line_1): Check for a double quote after
7841 a filename correctly.
7842
7843 2002-05-10 Jim Blandy <jimb@redhat.com>
7844
7845 Properly track the size of the current objfile's .debug_line section.
7846 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7847 (DWARF_LINE_SIZE): New macro.
7848 (dwarf2_build_psymtabs_hard): Record the line section's size in
7849 the partial symbol table.
7850 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7851 symbol table.
7852
7853 2002-05-10 Petr Sorfa <petrs@caldera.com>
7854
7855 * ia64-tdep.c: Handle breakpoints on L instruction type
7856 in MLX instruction bundle by moving the breakpoint to
7857 the third slot (X instruction type) as L holds only data.
7858
7859 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7860
7861 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7862 (process_one_symbol): Complain about discarding local symbols
7863 due to a misplaced N_LBRAC entry.
7864
7865 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7866
7867 From Daniel Berlin <dan@cgsoftware.com>
7868 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7869 decrease the depth we are at, in the case of templates.
7870
7871 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7872
7873 * mips-tdep.c (mips_float_register_type): New function.
7874 (mips_double_register_type): New function.
7875 (mips_print_register): Use them.
7876 (do_fp_register_row): Likewise.
7877
7878 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7879
7880 * signals/signals.c (signals): Remove conditional compilation around
7881 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7882 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7883
7884 2002-05-09 Michael Snyder <msnyder@redhat.com>
7885
7886 * remote-rdp.c (remote_rdp_can_run): Remove.
7887
7888 2002-05-09 Tom Tromey <tromey@redhat.com>
7889
7890 * jv-valprint.c (java_val_print): Handle `char' as a special case
7891 of TYPE_CODE_INT.
7892
7893 2002-05-09 Michael Snyder <msnyder@redhat.com>
7894
7895 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7896 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7897 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7898 str r(0123),[sp,#nn].
7899 (arm_skip_prologue): Ditto. Also make disassembly
7900 order-independent by placing it in a loop.
7901
7902 2002-05-06 Michael Snyder <msnyder@redhat.com>
7903
7904 * stabsread.c (read_type): Add recognition for new attribute:
7905 "@V;" means that an array type is actually a vector.
7906 This is analogous to the vector flag that's been added to dwarf2.
7907
7908 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7909
7910 * i386-tdep.h (i386_abi): New enum.
7911 (struct gdbarch_tdep): Replace os_ident member with abi.
7912 (i386_gdbarch_register_os_abi): New prototype.
7913 * i386-tdep.c (i386_abi_names): New array.
7914 (process_note_abi_tag_sections): Removed.
7915 (process_note_sections): New function.
7916 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7917 (struct i386_abi_handler): New struct.
7918 (i386_abi_handler_list): New variable.
7919 (i386_gdbarch_register_os_abi): New function.
7920 (i386_gdbarch_init): Adapt for the changes given above.
7921
7922 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7923
7924 * gregset.h: Say "GNU/Linux".
7925
7926 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7927
7928 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7929 (build_gdbtypes): Build builtin_type_v2_float.
7930 (_initialize_gdbtypes): Register new builtin type.
7931
7932 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7933
7934 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7935 (clear_gdbarch_swap): New function.
7936 (initialize_non_multiarch): Call.
7937 (gdbarch_update_p): Before calling init(), swap out and clear the
7938 existing architecture.
7939 * gdbarch.c: Regenerate.
7940
7941 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7942
7943 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7944 alphanbsd-tdep.c.
7945
7946 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7947
7948 * sh-nbsd-nat.c: Rename to...
7949 * shnbsd-nat.c: ...this.
7950 * sh-nbsd-tdep.c: Rename to...
7951 * shnbsd-tdep.c: ...this.
7952 * sh-nbsd-tdep.h: Rename to...
7953 * shnbsd-tdep.h: ...this.
7954 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7955 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7956
7957 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7958
7959 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7960 concatenation for command help messages.
7961
7962 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7963
7964 * NEWS: Note new sh*-*-netbsdelf* configuration.
7965 * configure.host: Set gdb_host_cpu to sh for all sh*.
7966 (sh*-*-netbsdelf*): New host.
7967 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7968 (sh*-*-netbsdelf*): New target.
7969 * sh-nbsd-nat.c: New file.
7970 * sh-nbsd-tdep.c: New file.
7971 * sh-nbsd-tdep.h: New file.
7972 * config/sh/nbsd.mh: New file.
7973 * config/sh/nbsd.mt: New file.
7974 * config/sh/nm-nbsd.h: New file.
7975 * config/sh/tm-nbsd.h: New file.
7976
7977 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * sh-tdep.c (sh_osabi_names): Declare.
7980 (process_note_abi_tag_sections): New function.
7981 (get_elfosabi): Ditto.
7982 (sh_gdbarch_register_os_abi): Ditto.
7983 (sh_dump_tdep): Ditto.
7984 _initialize_sh_tdep): Use gdbarch_register to register
7985 sh_gdbarch_init and sh_dump_tdep.
7986 * config/sh/tm-sh.h (sh_osabi): Declare.
7987 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7988
7989 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7990
7991 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7992 (thumb_scan_prologue): Ditto.
7993 (arm_find_callers_reg): Ditto.
7994 (arm_frame_chain): Ditto.
7995 (arm_init_extra_frame_info): Ditto.
7996 (arm_frame_saved_pc): Ditto.
7997 (arm_pop_frame): Ditto.
7998 (arm_push_return_address): New function.
7999 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8000 call_dummy_location, call_dummy_breakpoint_offset_p,
8001 call_dummy_breakpoint_offset, call_dummy_p,
8002 call_dummy_stack_adjust_p, call_dummy_words,
8003 sizeof_call_dummy_words, call_dummy_start_offset,
8004 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8005 call_dummy_address, push_return_address and push_dummy_frame for
8006 generic dummy frames.
8007
8008 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8011 size computation for alloca.
8012 (sh_fp_frame_init_saved_regs): Likewise.
8013
8014 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8015
8016 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8017 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8018 * arm-tdep.c (arm_store_return_value): Use them.
8019 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8020 * remote-rdp.c (remote_rdp_fetch_register): Use
8021 ARM_MAX_REGISTER_RAW_SIZE.
8022 (remote_rdp_store_register): Likewise.
8023
8024 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8025
8026 * dwarf2cfi.c: Code cleanup, removed unused variables,
8027 added default labels to switch {} statements.
8028 * x86-64-tdep.c: Ditto.
8029 * x86-64-linux-nat.c: Ditto.
8030
8031 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * solib.h: Protect against multiple inclusion.
8034
8035 2002-05-06 Jim Blandy <jimb@redhat.com>
8036
8037 Add first preprocessor macro-expansion files.
8038 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8039 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8040 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8041 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8042 (COMMON_OBS): Add macrotab.o, macroexp.o.
8043 (macroexp.o, macrotab.o): New rules.
8044
8045 Separate the job of reading the line number info statement program
8046 header (...expialidocious) out into its own function.
8047 * dwarf2read.c (struct line_head, struct filenames, struct
8048 directories): Replace with...
8049 (struct line_header): New structure, containing the full
8050 contents of the statement program header, including the
8051 include directory and file name tables.
8052 (read_file_scope): If we have line number info, instead of just
8053 calling dwarf_decode_lines to do all the work, call
8054 dwarf_decode_line_header first to get a `struct line_header'
8055 containing the data in the statement program header, and then
8056 pass that to dwarf_decode_lines, which will pick up where that
8057 left off. Be sure to clean up the `struct line_header' object.
8058 (dwarf_decode_line_header, free_line_header, add_include_dir,
8059 add_file_name): New functions.
8060 (dwarf_decode_lines): Move all the code to read the statement
8061 program header into dwarf_decode_line_header. Take the line
8062 header it built as the first argument, instead of the offset to
8063 the compilation unit's line number info. Use the new `struct
8064 line_header' type instead of the old structures. No need to do
8065 cleanups here now, since we don't allocate anything.
8066 (dwarf2_statement_list_fits_in_line_number_section,
8067 dwarf2_line_header_too_long): New complaints.
8068
8069 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8070
8071 * gdbtypes.c (init_vector_type): New function.
8072 (build_builtin_type_vec128): Simplify the representation of SIMD
8073 registers.
8074 (build_gdbtypes): Initialize new builtin vector types.
8075 (_initialize_gdbtypes): Register new vector types with gdbarch.
8076 (builtin_type_v4_float, builtin_type_v4_int32,
8077 builtin_type_v8_int16, builtin_type_v16_int8,
8078 builtin_type_v2_int32, builtin_type_v4_int16,
8079 builtin_type_v8_int8): New (renamed) SIMD types.
8080
8081 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8082
8083 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8084 (i387_fill_fxsave): Likewise.
8085
8086 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8087
8088 * alpha-tdep.c (alpha_extract_return_value): Don't use
8089 non-constant array size in prototype.
8090
8091 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8092
8093 From Brian Taylor <briant at model dot com>:
8094 * ui-out.c (ui_out_field_core_addr): Use the function
8095 longest_local_hex_string_custom'to format addresses > 32 bits
8096 wide.
8097
8098 * ui-out.c (ui_out_field_core_addr): Update comment.
8099
8100 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8101
8102 * stack.c (select_and_print_frame): Make static. Delete the
8103 parameter `level'.
8104 (func_command): Update call.
8105 (select_frame_command): Delete code computing the frame level.
8106 * frame.h (select_and_print_frame): Delete declaration.
8107
8108 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8109
8110 * sparc-tdep.c (sparc_get_saved_register): Comment why
8111 get_prev_frame call is safe.
8112
8113 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8114
8115 * frame.h (select_frame): Delete level parameter.
8116 * stack.c (select_frame): Update. Use frame_relative_level to
8117 obtain the frame's level.
8118 (select_and_print_frame): Update call.
8119 (select_frame_command): Ditto.
8120 (up_silently_base): Ditto.
8121 (down_silently_base): Ditto.
8122 * ocd.c (ocd_start_remote): Ditto.
8123 * remote-rdp.c (remote_rdp_open): Ditto.
8124 * remote-mips.c (mips_initialize): Ditto.
8125 (common_open): Ditto.
8126 * remote-e7000.c (e7000_start_remote): Ditto.
8127 * m3-nat.c (select_thread): Ditto.
8128 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8129 (child_get_current_exception_event): Ditto.
8130 * varobj.c (varobj_create): Ditto.
8131 (varobj_update): Ditto.
8132 (c_value_of_root): Ditto.
8133 * tracepoint.c (finish_tfind_command): Ditto.
8134 * corelow.c (core_open): Ditto.
8135 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8136 * thread.c (info_threads_command): Ditto.
8137 (switch_to_thread): Ditto.
8138 * infrun.c (normal_stop): Ditto.
8139 (restore_selected_frame): Ditto.
8140 (restore_inferior_status): Ditto.
8141 * breakpoint.c (insert_breakpoints): Ditto.
8142 (watchpoint_check): Ditto.
8143 (bpstat_stop_status): Ditto.
8144 (do_enable_breakpoint): Ditto.
8145 * blockframe.c (flush_cached_frames): Ditto.
8146 (reinit_frame_cache): Ditto.
8147
8148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8149
8150 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8151 maintainer.
8152
8153 2002-05-04 Jim Blandy <jimb@redhat.com>
8154
8155 * gdbtypes.c (replace_type): Doc fix.
8156
8157 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8158
8159 * valprint.c (strcat_longest): Delete commented out function.
8160 Update copyright.
8161
8162 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8163
8164 * MAINTAINERS: Mark a29k as deleted.
8165 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8166 Move new configurations to the top.
8167 * configure.tgt: Remove a29k.
8168 * config/a29k/tm-vx29k.h: Delete.
8169 * config/a29k/vx29k.mt: Delete.
8170 * config/a29k/tm-a29k.h: Delete.
8171 * config/a29k/a29k-udi.mt: Delete.
8172 * config/a29k/a29k.mt: Delete.
8173 * a29k-tdep.c: Delete.
8174 * remote-udi.c: Delete.
8175 * remote-mm.c: Delete.
8176 * remote-eb.c: Delete.
8177 * remote-adapt.c: Delete.
8178 * Makefile.in: Remove obsolete code.
8179 * config/s390/s390x.mt: Ditto.
8180 * config/s390/s390.mt: Ditto.
8181 * config/sparc/sparclynx.mh: Ditto.
8182 * config/sparc/linux.mh: Ditto.
8183 * config/pa/hppaosf.mh: Ditto.
8184 * config/pa/hppabsd.mh: Ditto.
8185 * config/ns32k/nbsd.mt: Ditto.
8186 * config/mips/vr5000.mt: Ditto.
8187 * config/m68k/sun3os4.mh: Ditto.
8188 * config/m68k/nbsd.mt: Ditto.
8189 * config/m68k/m68klynx.mh: Ditto.
8190 * config/m32r/m32r.mt: Ditto.
8191 * config/i386/x86-64linux.mt: Ditto.
8192 * config/i386/nbsdelf.mt: Ditto.
8193 * config/i386/nbsd.mt: Ditto.
8194 * config/i386/i386lynx.mh: Ditto.
8195
8196 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8197
8198 * target.c (debug_print_register): New function. Handle oversize
8199 registers.
8200 (debug_to_fetch_registers): Call.
8201 (debug_to_store_registers): Call.
8202
8203 2002-05-03 Jim Blandy <jimb@redhat.com>
8204
8205 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8206 (read_type): Doc fix.
8207 * gdbtypes.c (replace_type): Doc fix.
8208
8209 * stabsread.c (multiply_defined_struct): New complaint.
8210 (read_struct_type): If the type we were passed isn't empty, or
8211 incomplete, don't read the new struct type into it; complain,
8212 and return the original type unchanged. Take a new `type_code'
8213 argument, which is the type code for the new type.
8214 (read_type): Rather than storing the type's type code here, pass
8215 it as an argument to read_struct_type, and let that take care of
8216 storing it. That way, we don't overwrite the original type code,
8217 so read_struct_type can use it to decide whether we're overwriting
8218 something we shouldn't.
8219 (complain_about_struct_wipeout): New function.
8220
8221 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8222
8223 * gdbarch.sh: Assert that gdbarch is non-NULL.
8224 * gdbarch.c: Regenerate.
8225
8226 2002-05-03 Jason Merrill <jason@redhat.com>
8227
8228 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8229 and return NULL.
8230
8231 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8232
8233 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8234 (x86_64_dwarf2gdb_regno_map_length),
8235 (x86_64_dwarf2_reg_to_regnum): Added.
8236 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8237 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8238 (_initialize_x86_64_tdep): Synced with the change above.
8239 (x86_64_skip_prologue): Reformulated message.
8240
8241 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8242
8243 * f-exp.y: Also use new prev_lexptr variable
8244 to improve error reporting. Based on Michael Snyder
8245 2002-04-24 dated patch to c-exp.y.
8246 * jv-exp.y: Likewise.
8247 * m2-exp.y: Likewise.
8248
8249 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8250
8251 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8252 we are dealing with vectors.
8253
8254 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8255
8256 * config/m68k/tm-nbsd.h: Obvious fix,
8257 correct machine name.
8258
8259 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8260
8261 * p-typeprint.c (pascal_type_print_base): Add support
8262 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8263
8264 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8265
8266 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8267 for fondamental pascal 'char' type.
8268
8269 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8270
8271 * p-lang.h (is_pascal_string_type): Declaration changed,
8272 new sixth argument of type char ** added.
8273 * p-lang.c (is_pascal_string_type): Implementation
8274 changed. Args length_pos, length_size, string_pos, char_size
8275 can now be NULL. New argument arrayname set to the field
8276 name of the char array. Return value set to char array
8277 field index plus one.
8278 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8279 is_pascal_string_type function.
8280
8281 2002-05-02 Andrew Cagney <cagney@redhat.com>
8282
8283 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8284 <cagney@redhat.com> change.
8285 * gdbarch.c: Regenerate.
8286
8287 2002-05-02 Andrew Cagney <cagney@redhat.com>
8288
8289 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8290 before probing for a new one. Detect errorenous gdbarch_init
8291 functions.
8292 * gdbarch.c: Regenerate.
8293
8294 2002-05-01 Andrew Cagney <cagney@redhat.com>
8295
8296 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8297 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8298 * config/v850/tm-v850.h: Ditto. Update copyright.
8299
8300 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8301
8302 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8303 current_gdbarch.
8304
8305 2002-04-30 Michael Snyder <msnyder@redhat.com>
8306
8307 * arm-tdep.c: Whitespace clean-ups.
8308 (arm_skip_prologue): Fix thinko; two lines
8309 should have been removed as part of 4/24 change.
8310
8311 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8312
8313 * rs6000-tdep.c: Added comment describing how fpscr register
8314 numbers were chosen.
8315
8316 2002-04-30 Michael Snyder <msnyder@redhat.com>
8317
8318 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8319
8320 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8321
8322 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8323 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8324 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8325
8326 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8327
8328 From Louis Hamilton <hamilton@redhat.com>:
8329 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8330 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8331 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8332 not bfd-private xcoff data, to determine wordsize.
8333 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8334
8335 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8336
8337 GDB 5.2 released from 5.2 branch.
8338
8339 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8340
8341 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8342 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8343 (x86_64_register_info_table): Added comments with register numbers.
8344
8345 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8346
8347 * rs6000-tdep.c (rs6000_extract_return_value,
8348 rs6000_store_return_value): Handle returning vectors.
8349 (rs6000_gdbarch_init): Use
8350 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8351 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8352 New function.
8353 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8354 vectors.
8355 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8356 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8357
8358 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8359
8360 * hpread.c (hpread_psymtab_to_symtab_1,
8361 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8362 with fprintf_unfiltered (gdb_stderr,...).
8363
8364 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8365
8366 * remote-array.c (printf_monitor, write_monitor,
8367 array_insert_breakpoint, array_remove_breakpoint ):
8368 Replace fprintf (stderr,...
8369 with fprintf_unfiltered (gdb_stderr,....
8370 * remote-es.c: Likewise.
8371 * remote-os9k.c: Likewise.
8372 * remote-st.c: Likewise.
8373
8374 2002-04-28 Andreas Schwab <schwab@suse.de>
8375
8376 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8377 linux-proc.o and gcore.o.
8378
8379 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8380
8381 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8382 code without frame pointers.
8383
8384 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8385
8386 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8387 ON_STACK is needed.
8388
8389 2002-04-26 Ben Elliston <bje@redhat.com>
8390
8391 * target.c (do_xfer_memory): Correct reference to the new option
8392 "trust-readonly-sections".
8393
8394 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8395
8396 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8397 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8398 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8399 vectors.
8400 (read_array_type): Record the fact that this array type is really a
8401 vector (i.e. are passed in by value).
8402
8403 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8404
8405 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8406 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8407 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8408 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8409 * alpha-linux-tdep.c: Include frame.h.
8410 (alpha_linux_sigcontext_addr): New function.
8411 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8412 alpha_linux_sigcontext_addr.
8413 * alpha-osf1-tdep.c: Include gdbcore.h.
8414 (alpha_osf1_sigcontext_addr): New function.
8415 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8416 alpha_osf1_sigcontext_addr.
8417 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8418 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8419
8420 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8421
8422 * stack.c (selected_frame_level):
8423 (select_frame): Do not set selected_frame_level.
8424 * frame.h (selected_frame_level): Delete declaration.
8425
8426 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8427
8428 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8429 convert_from_func_ptr-addr when AIX / PowerOpen.
8430
8431 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8432
8433 * valops.c (hand_function_call): Call
8434 generic_save_call_dummy_addr.
8435 * frame.h (generic_save_call_dummy_addr): Declare.
8436 * blockframe.c (struct dummy_frame): Add fields call_lo and
8437 call_hi.
8438 (generic_find_dummy_frame): Check for PC in range call_lo to
8439 call_hi instead of entry_point_address.
8440 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8441 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8442 (generic_save_call_dummy_addr): New function.
8443
8444 2002-04-24 David S. Miller <davem@redhat.com>
8445
8446 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8447 sparc_skip_prologue.
8448 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8449 information to find prologue when possible.
8450 (sparc_prologue_frameless_p): Call examine_prologue directly.
8451 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8452 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8453 second argument.
8454 (SKIP_PROLOGUE): Likewise.
8455
8456 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8457
8458 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8459 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8460 indicate that the condition it was testing is always true.
8461 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8462 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8463 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8464
8465 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8466
8467 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8468 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8469 tdep->jb_pc and tdep->jb_elt_size.
8470 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8471 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8472 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8473 * alpha-nat.c (get_longjmp_target): Remove.
8474 (JB_ELEMENT_SIZE): Ditto.
8475 (JB_PC): Ditto.
8476 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8477 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8478 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8479 to alpha_get_longjmp_target.
8480 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8481 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8482 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8483
8484 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8485
8486 * README: Update to GDB 5.2.
8487
8488 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8489
8490 * gdbarch.sh (LC_ALL): Set to `c'.
8491
8492 2002-04-25 Theodore A. Roth <troth@verinet.com>
8493
8494 * avr-tdep.c: Ran through gdb_indent.sh.
8495
8496 2002-04-25 Theodore A. Roth <troth@verinet.com>
8497
8498 * MAINTAINERS: Add myself as AVR maintainer.
8499 * NEWS: Note new target avr.
8500
8501 2002-04-25 Theodore A. Roth <troth@verinet.com>
8502
8503 * Makefile.in: Add support for AVR target.
8504 * configure.tgt: Add support for AVR target.
8505 * avr-tdep.c: New file
8506 * config/avr/avr.mt: New file.
8507
8508 2002-04-25 Theodore A. Roth <troth@verinet.com>
8509
8510 * MAINTAINERS: Add myself to write-after-approval.
8511
8512 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8513
8514 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8515 with fprintf_unfiltered (gdb_stderr,....
8516
8517 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8518
8519 Fix PR gdb/508.
8520 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8521
8522 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8523
8524 * p-exp.y: Also use new prev_lexptr variable
8525 to improve error reporting. Based on Michael Snyder
8526 2002-04-24 dated patch to c-exp.y.
8527
8528 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8529
8530 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8531 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8532 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8533 to 0.
8534 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8535 and struct value.
8536 (FUNCTION_START_OFFSET): Remove.
8537 (BREAKPOINT): Ditto.
8538
8539 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8540
8541 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8542 * NEWS: Ditto.
8543
8544 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8545
8546 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8547 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8548 alpha_linux_pc_in_sigtramp.
8549 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8550 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8551 alpha_osf1_pc_in_sigtramp.
8552 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8553 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8554 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8555 alphafbsd_pc_in_sigtramp.
8556 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8557 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8558 alphanbsd_pc_in_sigtramp.
8559 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8560 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8561
8562 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8565
8566 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8567
8568 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8569 alphanbsd-tdep.c.
8570 (alphanbsd-nat.o): New dependency list.
8571 (alphanbsd-tdep.o): Ditto.
8572 * NEWS: Note new native NetBSD/alpha configuration.
8573 * alphanbsd-nat.c: New file.
8574 * alphanbsd-tdep.c: Ditto.
8575 * configure.host (alpha*-*-netbsd*): New host.
8576 * configure.tgt (alpha*-*-netbsd*): New target.
8577 * config/alpha/nbsd.mh: New file.
8578 * config/alpha/nbsd.mt: Ditto.
8579 * config/alpha/nm-nbsd.h: Ditto.
8580 * config/alpha/tm-nbsd.h: Ditto.
8581
8582 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8585 (alpha-osf1-tdep.o): New dependency list.
8586 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8587 and skip_sigtramp_frame members.
8588 * alpha-linux-tdep.c: Include gdbcore.h.
8589 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8590 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8591 * alpha-osf1-tdep.c: New file.
8592 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8593 alpha-osf1-dep.c.
8594 (alpha_frame_past_sigtramp_frame): New function.
8595 (alpha_dynamic_sigtramp_offset): Ditto.
8596 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8597 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8598 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8599 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8600 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8601 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8602 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8603 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8604 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8605 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8606 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8607 to find_solib_trampoline_target.
8608 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8609 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8610 (SKIP_TRAMPOLINE_CODE): Remove.
8611 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8612 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8613 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8614 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8615 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8616 (PROC_SIGTRAMP_MAGIC): Ditto.
8617 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8618 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8619 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8620 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8621 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8622
8623 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8624
8625 * NEWS: Note that Alpha targets are now multi-arch.
8626
8627 2002-04-24 Michael Snyder <msnyder@redhat.com>
8628
8629 * parser-defs.h (prev_lexptr): New external variable.
8630 * parse.c (parse_exp_1): Set prev_lexptr to null before
8631 calling the language-specific parser.
8632 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8633 (yyerror): Use prev_lexptr in error reporting.
8634
8635 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8636
8637 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8638 * gregset.h: If FILL_FPXREGSET is defined, provide
8639 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8640 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8641 is defined, call fill_fpxregset.
8642
8643 2002-04-24 Roland McGrath <roland@frob.com>
8644
8645 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8646 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8647 (supply_gregset, supply_fpregset): New functions.
8648
8649 * gnu-nat.c (gnu_find_memory_regions): New function.
8650 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8651 (gnu_xfer_memory): Add a cast.
8652
8653 2002-04-24 Michael Snyder <msnyder@redhat.com>
8654
8655 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8656 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8657 of argument regs ("str r(0123), [r11, #-nn"]).
8658 (arm_skip_prologue): Better handling for frameless functions.
8659 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8660 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8661
8662 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8663
8664 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8665 NUM_PSEUDO_REGS can be used.
8666
8667 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8668
8669 * arch-utils.h: Update copyright.
8670
8671 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8672 * gdbarch.h, gdbarch.c: Re-generate.
8673
8674 * inferior.h (IN_SIGTRAMP): Delete definition.
8675 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8676 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8677
8678 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8679 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8680 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8681 (find_proc_framesize): Ditto.
8682 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8683 (alpha_init_extra_frame_info): Ditto.
8684 * infrun.c (handle_inferior_event): Ditto.
8685 (handle_inferior_event): Ditto.
8686 (check_sigtramp2): Ditto.
8687 * blockframe.c (create_new_frame): Ditto.
8688 (get_prev_frame): Ditto.
8689 * ppc-linux-tdep.c: Update comments.
8690 * i386-linux-tdep.c: Update comments.
8691 * breakpoint.c (bpstat_what): Update comment.
8692
8693 2002-04-24 David S. Miller <davem@redhat.com>
8694
8695 * i960-tdep.c (register_in_window_p): New function.
8696 (i960_find_saved_register): Use it instead of
8697 REGISTER_IN_WINDOW_P.
8698 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8699
8700 * symtab.h (find_stab_function_addr): Kill extern.
8701 * minsyms.c (find_stab_function_addr): Remove from here...
8702 * dbxread.c: ... to here, and mark it static.
8703
8704 2002-04-20 David S. Miller <davem@redhat.com>
8705
8706 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8707 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8708
8709 2002-04-21 David S. Miller <davem@redhat.com>
8710
8711 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8712 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8713 (vx_write_register): Likewise.
8714
8715 2002-04-23 J. Brobecker <brobecker@gnat.com>
8716
8717 * source.c (is_regular_file): New function.
8718 (openp): Check wether file to open is a regular file
8719 to avoid opening directories.
8720
8721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * findvar.c (extract_signed_integer): Cast printf argument
8724 to suppress format warning.
8725 (extract_unsigned_integer): Likewise.
8726 * infcmd.c (registers_info): Likewise.
8727 * top.c (get_prompt_1): Likewise.
8728 * valops.c (value_assign): Likewise.
8729 * valprint.c (print_decimal): Likewise.
8730
8731 2002-04-22 H.J. Lu (hjl@gnu.org)
8732
8733 * c-exp.y (typebase): Support
8734
8735 [long|long long|short] [signed|unsigned] [int|]
8736
8737 and
8738
8739 signed [long|long long|short] int
8740
8741 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8742
8743 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8744 and vax-tdep.h.
8745 * vax-tdep.h: New file.
8746 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8747 Make several routines static.
8748 (vax_get_saved_register): New function.
8749 (vax_gdbarch_init): New function.
8750 (_initialize_vax_tdep): Register vax_gdbarch_init.
8751 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8752 Remove macros now under the control of gdbarch.
8753
8754 2002-04-22 Michael Snyder <msnyder@redhat.com>
8755
8756 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8757 Some whitespace and coding standards tweaks.
8758
8759 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8760
8761 * vax-tdep.c: Include regcache.h.
8762 (vax_call_dummy_words): New.
8763 (sizeof_vax_call_dummy_words): New.
8764 (vax_fix_call_dummy): New function.
8765 (vax_saved_pc_after_call): Ditto.
8766 * config/vax/tm-vax.h: Don't include regcache.h.
8767 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8768 (CALL_DUMMY): Remove.
8769 (CALL_DUMMY_WORDS): Define.
8770 (SIZEOF_CALL_DUMMY_WORDS): Define.
8771 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8772
8773 2002-04-18 Michael Snyder <msnyder@redhat.com>
8774
8775 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8776
8777 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8778
8779 * vax-tdep.c (vax_frame_chain): New function.
8780 (vax_push_dummy_frame): Ditto.
8781 (vax_pop_frame): Ditto.
8782 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8783 (FRAMELESS_FUNCTION_INVOCATION): Use
8784 generic_frameless_function_invocation_not.
8785 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8786 (POP_FRAME): Use vax_pop_frame.
8787
8788 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8789
8790 * vax-tdep.c (vax_store_struct_return): New function.
8791 (vax_extract_return_value): Ditto.
8792 (vax_store_return_value): Ditto.
8793 (vax_extract_struct_value_address): Ditto.
8794 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8795 vax_store_struct_return.
8796 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8797 (STORE_RETURN_VALUE): Use vax_store_return_value.
8798 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8799
8800 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8801
8802 * vax-tdep.c (vax_frame_saved_pc): New function.
8803 (vax_frame_args_address_correct): Ditto.
8804 (vax_frame_args_address): Ditto.
8805 (vax_frame_locals_address): Ditto.
8806 (vax_frame_num_args): Move code to be in proximity to
8807 other frame-related functions.
8808 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8809 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8810 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8811 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8812 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8813
8814 2002-04-22 H.J. Lu (hjl@gnu.org)
8815
8816 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8817 includedir.
8818
8819 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8822 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8823 (FRAME_INIT_SAVED_REGS): New macro.
8824
8825 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8826
8827 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8828
8829 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8830
8831 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8832 where needed.
8833 (fetch_osf_core_registers): Likewise.
8834 (supply_gregset): Likewise.
8835
8836 2002-04-22 J. Brobecker <brobecker@gnat.com>
8837
8838 * symfile.h (get_section_index): Define.
8839 * symfile.c (get_section_index): New function.
8840 * mdebugread.c (SC_IS_SBSS): New macro.
8841 (SC_IS_BSS): Return true for the scBss storage class only, as
8842 the scSBss storage class refers to the .sbss section.
8843 (parse_partial_symbols): Discard the symbols which associated
8844 section does not exist.
8845 Make sure to use the .sbss section index for symbols which
8846 storage class is scBss, rather than using the .bss section index.
8847
8848 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8849
8850 * vax-tdep.c: Update copyright years.
8851 (vax_register_name): New function.
8852 (vax_register_byte): Ditto.
8853 (vax_register_raw_size): Ditto.
8854 (vax_register_virtual_size): Ditto.
8855 (vax_register_virtual_type): Ditto.
8856 * config/vax/tm-vax.h: Update copyright years.
8857 (REGISTER_NAMES): Remove.
8858 (REGISTER_NAME): Define.
8859 (REGISTER_BYTE): Use vax_register_byte.
8860 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8861 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8862 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8863
8864 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8865
8866 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8867 declaration
8868 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8869
8870 2002-04-21 David S. Miller <davem@redhat.com>
8871
8872 * arch-utils.c (generic_prologue_frameless_p): Kill
8873 SKIP_PROLOGUE_FRAMELESS_P code.
8874 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8875 references.
8876 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8877 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8878 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8879 references.
8880 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8881 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8882 (sparc_gdbarch_init): Pass it to
8883 set_gdbarch_prologue_frameless_p.
8884
8885 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8886
8887 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8888 (alphabsd-nat.o): New dependency list.
8889
8890 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8891
8892 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8893 alphafbsd-tdep.c.
8894 (alpha-linux-tdep.o): New dependency list.
8895 (alphafbsd-tdep.o): Likewise.
8896
8897 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8898
8899 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8900 to here...
8901 * alpha-tdep.c: ...from here.
8902 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8903
8904 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8905
8906 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8907 prototype from here...
8908 * alpha-tdep.h: ...to here.
8909
8910 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8911
8912 * frame.h (selected_frame_level): Document as deprecated.
8913 (frame_relative_level): Declare.
8914 * stack.c (frame_relative_level): New function.
8915 (selected_frame_level): Document as deprecated.
8916 (select_frame): Do not set the selected_frame_level.
8917
8918 * stack.c (frame_info, record_selected_frame): Update.
8919 (frame_command, current_frame_command): Update.
8920 (up_silently_base, up_command, down_silently_base): Update.
8921 (down_command): Update.
8922 * inflow.c (kill_command): Update.
8923 * tracepoint.c (finish_tfind_command): Update.
8924 * corelow.c (core_open): Update.
8925 * thread.c (info_threads_command): Update.
8926 (do_captured_thread_select): Update.
8927 * infcmd.c (finish_command): Update.
8928 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8929
8930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8931
8932 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8933
8934 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8935
8936 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8937 type const.
8938
8939 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * alphafbsd-tdep.c: Update copyright years. Include
8942 alpha-tdep.h.
8943 (alphafbsd_use_struct_convention): Make static.
8944 (alphafbsd_init_abi): New function.
8945 (_initialize_alphafbsd_tdep): New function.
8946 * config/alpha/tm-fbsd.h: Update copyright years.
8947 (USE_STRUCT_CONVENTION): Remove.
8948
8949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8952 an Alpha ABI variant.
8953 (alpha_abi_handler_list): Declare.
8954 (alpha_gdbarch_register_os_abi): New function.
8955 (alpha_gdbarch_init): Give registered ABI variant handlers a
8956 chance to tweak the gdbarch once we have set up defaults.
8957 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8958
8959 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8962 to standard_coerce_float_to_double.
8963 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8964
8965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8966
8967 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8968 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8969 from gdbarch_tdep rather than a constant.
8970 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8971 the default text address for all Alpha Unix ABIs.
8972 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8973 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8974
8975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8976
8977 * alpha-tdep.h: New file. Includes several Alpha target constants
8978 taken from...
8979 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8980 let gdbarch deal with.
8981 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8982 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8983 to dependency list.
8984 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8985 Alpha target register names.
8986 * alphabsd-nat.c: Likewise.
8987 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8988 Alpha target register names. Make serveral routines static.
8989 (alpha_get_saved_register): New function.
8990 (alpha_abi_names): New.
8991 (process_note_abi_tag_sections): New function.
8992 (get_elfosabi): New function.
8993 (alpha_gdbarch_init): New function.
8994 (alpha_dump_tdep): New function.
8995 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8996
8997 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8998
8999 * frame.c (find_saved_register): Delete #ifdef
9000 HAVE_REGISTER_WINDOWS code.
9001 * config/sparc/tm-sparc.h: Update comments.
9002 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9003
9004 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9005
9006 * i960-tdep.c (i960_find_saved_register): New function.
9007 (i960_get_saved_register): New function.
9008 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9009 (i960_get_saved_register): Declare.
9010 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9011
9012 2002-04-20 David S. Miller <davem@redhat.com>
9013
9014 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9015
9016 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9017
9018 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9019 instead of NUM_PSEUDO_REGS.
9020
9021 2002-04-20 David S. Miller <davem@redhat.com>
9022
9023 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9024 GDB_MULTI_ARCH_PARTIAL
9025 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9026 define, let tm-sp64.h do it.
9027
9028 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9029
9030 * frame.c (find_saved_register): Avoid a NULL pointer
9031 dereference and actually walk the frame list.
9032
9033 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9034
9035 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9036 sorted in most most-recent-used order. Document.
9037 * gdbarch.h, gdbarch.c: Regenerate.
9038
9039 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9040
9041 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9042 instead of ->prev.
9043 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9044 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9045 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9046 instead of ->prev.
9047
9048 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9049
9050 Fix PR gdb/471.
9051 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9052 (build_builtin_type_vec128): Ditto.
9053 (append_composite_type_field): Fix calculation of type length in
9054 union case.
9055
9056 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9057
9058 * config/djgpp/README: Update.
9059
9060 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9061 compiler warnings.
9062
9063 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9064
9065 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9066 (alpha_setup_arbitrary_frame): ...to this.
9067 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9068 for alpha_setup_arbitrary_frame.
9069
9070 2002-04-18 Andrew Cagney <cagney@redhat.com>
9071
9072 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9073 * gdbarch.h, gdbarch.c: Regenerate.
9074
9075 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9076 * target.h (memory_breakpoint_from_pc): Update declaration.
9077 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9078
9079 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9080 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9081 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9082 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9083 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9084 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9085 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9086 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9087 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9088 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9089 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9090 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9091
9092 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9093 const pointer.
9094 * monitor.c (monitor_insert_breakpoint): Ditto.
9095 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9096
9097 * config/mcore/tm-mcore.h: Update copyright.
9098 * mem-break.c: Ditto.
9099 * xstormy16-tdep.c: Ditto.
9100
9101 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9102
9103 * p-exp.y: Add precedence rule for '^' token.
9104 This removes the shift/reduce conflicts.
9105 Remove the comment concerning these shift/reduce conflicts.
9106
9107 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9108
9109 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9110 (registers_powerpc_nofp): New register set for processors
9111 without floating point unit.
9112
9113 2002-04-18 David S. Miller <davem@redhat.com>
9114
9115 * MAINTAINERS: Add myself to write-after-approval.
9116
9117 2002-04-17 Michael Snyder <msnyder@redhat.com>
9118
9119 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9120
9121 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9122
9123 * rs6000-tdep.c (frame_initial_stack_address): Use
9124 frame_register_read to read the alloca_reg.
9125
9126 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9127
9128 * frame.c (find_saved_register): Find saved registers in the next
9129 not prev frame.
9130 Fix PR gdb/365.
9131
9132 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9133
9134 * gdbarch.sh (LANG): Set to ``c''.
9135
9136 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9137
9138 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9139
9140 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9141
9142 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9143 Update copyright.
9144
9145 * hpread.c (hpread_get_lntt): Add declaration.
9146 Also fix PR gdb/391.
9147
9148 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9149
9150 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9151 * aclocal.m4, configure: Re-generate.
9152 Fix PR gdb/391.
9153
9154 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9155
9156 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9157 instead of tm_print_insn.
9158
9159 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9160
9161 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9162
9163 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9164
9165 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9166 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9167 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9168
9169 2002-04-12 Don Howard <dhoward@redhat.com>
9170
9171 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9172 max_user_call_depth.
9173 (init_cmd_lists): Initialize the new value;
9174 * cli/cli-script.c (execute_user_command): Limit the call depth of
9175 user defined commands. This avoids a core-dump when user commands
9176 are infinitly recursive.
9177
9178 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9179
9180 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9181 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9182 from tdep struct instead of DEFAULT_LR_SAVE.
9183 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9184 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9185 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9186
9187 2002-04-12 Michael Snyder <msnyder@redhat.com>
9188
9189 * Remote.c: Spelling fix.
9190 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9191 If no symbol found for "sbrk", try "_sbrk".
9192 (make_output_phdrs): Use bfd_section_name.
9193 (gcore_copy_callback): Use bfd_section_name.
9194 * eval.c: Indentation fix-ups.
9195 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9196 in case it gets applied to an address that is already
9197 in the instruction space.
9198 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9199 * symfile.c: Fix indentation, long lines.
9200 * source.c: White space fix-up.
9201
9202 2002-04-12 Andrew Cagney <cagney@redhat.com>
9203
9204 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9205 * frame.c (frame_register_read): New function. Return non-zero on
9206 success.
9207 (read_relative_register_raw_bytes_for_frame): Delete.
9208 (read_relative_register_raw_bytes): Delete.
9209 * frame.h (frame_register_read): Declare.
9210 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9211 * sh-tdep.c: Ditto.
9212 * infcmd.c (do_registers_info): Ditto.
9213 * hppa-tdep.c: Ditto.
9214 * rs6000-tdep.c: Ditto.
9215 * h8500-tdep.c: Ditto.
9216 * mips-tdep.c: Ditto.
9217 * h8300-tdep.c: Ditto.
9218 * z8k-tdep.c: Ditto.
9219
9220 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9221
9222 From Jimi X <jimix@watson.ibm.com>:
9223 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9224 64-bit SysV ABI.
9225
9226 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9227
9228 From Jimi X <jimix@watson.ibm.com>:
9229 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9230 bfd info.
9231
9232 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9233
9234 From Jimi X <jimix@watson.ibm.com>:
9235 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9236 register sets for these processor variants.
9237
9238 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9239
9240 * regformats/reg-ppc.dat: Support FPSCR.
9241
9242 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9243
9244 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9245 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9246 Add fpscr as an invalid/unfetchable register.
9247 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9248 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9249 (fill_fpregset): Add support for register fpscr.
9250 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9251 (fill_gregset): Account for the fact that register ``mq'' might
9252 not exist.
9253 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9254 (registers_power): Add fpscr to register set at slot 71.
9255 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9256 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9257
9258 2002-04-11 Michael Snyder <msnyder@redhat.com>
9259
9260 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9261 * configure: Regenerate.
9262 * config.in: Regenerate.
9263 * acconfig.h: Add define for _SYSCALL32.
9264 * core-sol2.c: Remove #define _SYSCALL32.
9265 * solib-legacy.c: Remove #define _SYSCALL32.
9266
9267 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9268
9269 * stack.c (select_frame): Cleanup internal error message, do not
9270 use %p.
9271
9272 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9273
9274 * stack.c (select_frame): Check that selected_frame and the
9275 specified level are as expected.
9276 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9277 Update copyright.
9278 * frame.h (struct frame_info): Add field `level'. Update
9279 copyright.
9280 Work-in-progress PR gdb/464.
9281
9282 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9283
9284 * maint.c (maint_print_section_info): Rename print_section_info.
9285 (print_bfd_section_info, print_objfile_section_info): Update.
9286 * inferior.h (struct gdbarch): Add opaque declaration.
9287 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9288 * gdbarch.h: Regenerate.
9289
9290 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9291
9292 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9293 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9294 (kernel_u_size): Added.
9295 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9296 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9297
9298 2002-04-04 Jim Ingham <jingham@apple.com>
9299
9300 * valarith.c (find_size_for_pointer_math): New function, either returns
9301 the size for a pointer's target, returns 1 for void *, or errors for
9302 incomplete types.
9303 (value_add, value_sub): use find_size_for_pointer_math.
9304
9305 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9306
9307 * linux-low.c (linux_look_up_symbols): New hook.
9308 (linux_target_ops): Add linux_look_up_symbols.
9309 * remote-utils.c (decode_address): New function.
9310 (look_up_one_symbol): New function.
9311 * server.c (handle_query): Call target look_up_symbols hook.
9312 * server.h (look_up_one_symbol): Add prototype.
9313 * target.h (struct target_ops): Add look_up_symbols hook.
9314
9315 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9316
9317 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9318 override FP_REGNUM with frame->fp. Update copyright.
9319 * parse.c (num_std_regs, std_regs): Delete.
9320 (target_map_name_to_register): Do not search std_regs. Update
9321 function description.
9322 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9323 declarations. Update copyright.
9324 Fix PR gdb/251.
9325
9326 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9327
9328 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9329 after the last symbol in a block.
9330
9331 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9332
9333 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9334 is non zero as a found symbol.
9335
9336 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9337
9338 * findvar.c: Include "builtin-regs.h".
9339 (value_of_register): Call value_of_builtin_reg when applicable.
9340 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9341 (target_map_name_to_register): Call
9342 builtin_reg_map_name_to_regnum.
9343 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9344 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9345 (builtin_regs_h): Define.
9346 (builtin-regs.o): New target.
9347 (findvar.o): Add $(builtin_regs_h).
9348 * builtin-regs.c, builtin-regs.h: New files.
9349 * std-regs.c: New file.
9350 Partial fix for PR gdb/251.
9351
9352 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9353
9354 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9355 it's no longer required.
9356
9357 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9358
9359 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9360
9361 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9362
9363 From Jimi X <jimix@watson.ibm.com>:
9364 * rs6000-tdep.c (rs6000_software_single_step): Use
9365 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9366 and size. Use target_insert_breakpoint() and
9367 target_remove_breakpoint() to insert and remove breakpoints
9368 instead of explicit memory reads and writes.
9369
9370 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9371
9372 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9373 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9374 ELF_OBJECT_FORMAT ifdef.
9375
9376 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9377
9378 From Jimi X <jimix@watson.ibm.com>:
9379 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9380
9381 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9382
9383 From Jimi X <jimix@watson.ibm.com>:
9384 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9385 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9386
9387 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9388
9389 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9390 s/asprintf/xasprintf/.
9391 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9392
9393 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9394
9395 I believe Jeff Law denies responsability for this one:
9396 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9397 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9398 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9399 Work-around for PR gdb/366.
9400
9401 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9402
9403 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9404 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9405 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9406
9407 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9408
9409 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9410 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9411 information.
9412
9413 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9414
9415 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9416 maintainer.
9417
9418 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9419
9420 * README (Reporting Bugs in GDB): Document the bug web page as the
9421 prefered way of submitting bugs.
9422 Fix PR gdb/402.
9423
9424 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9425
9426 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9427 -1. Update comment.
9428 * gdbarch.h, gdbarch.c: Re-generate.
9429
9430 2002-04-07 Andreas Schwab <schwab@suse.de>
9431
9432 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9433 buffer to regcache_collect.
9434
9435 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9436
9437 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9438 * gdbarch.c, gdbarch.h: Re-generate.
9439
9440 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9441
9442 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9443 declaration. Fix -Werror.
9444
9445 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9446
9447 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9448 * gdbarch.c: Regenerate.
9449
9450 2002-04-05 Michael Snyder <msnyder@redhat.com>
9451
9452 * breakpoint.c (clear_command): Rewrite middle section to
9453 combine two loops with identical control conditions.
9454 Add a cleanup to eliminate a memory leak.
9455 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9456
9457 2002-04-05 H.J. Lu (hjl@gnu.org)
9458
9459 * solib-svr4.c (bkpt_names): Add "__start".
9460
9461 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9462
9463 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9464 as test for 64 bit target.
9465
9466 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9467
9468 * h8500-tdep.c (h8500_write_fp): Delete function.
9469 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9470 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9471 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9473 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9474 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9475 (s390_write_fp):
9476 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9477 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9478 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9479 (d10v_write_fp): Delete function.
9480 * inferior.h (write_fp, generic_target_write_fp): Delete
9481 declarations.
9482 * regcache.c (generic_target_write_fp): Delete function.
9483 (write_fp): Delete function.
9484 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9485 * gdbarch.h, gdbarch.c: Regenerate.
9486 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9487 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9488 (sparc64_write_fp): Delete declaration.
9489 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9490 (h8500_write_fp): Delete declaration.
9491
9492 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9493
9494 * sparc-tdep.c (sparc64_write_fp): Delete.
9495 (sparc_push_dummy_frame): Replace write_fp call with code to store
9496 the FP directly.
9497 (sparc_gdbarch_init): Do not initialize write_fp.
9498
9499 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9500
9501 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9502 clause.
9503
9504 2002-03-29 Jim Blandy <jimb@redhat.com>
9505
9506 * stack.c (get_selected_block): Add new argument `addr_in_block',
9507 used to return the exact code address we used to select the block,
9508 not just the block.
9509 * blockframe.c (get_frame_block, get_current_block): Same.
9510 * frame.h (get_frame_block, get_current_block,
9511 get_selected_block): Update declarations.
9512 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9513 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9514
9515 2002-04-05 Michael Snyder <msnyder@redhat.com>
9516
9517 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9518 warning message.
9519
9520 2002-04-05 J. Brobecker <brobecker@gnat.com>
9521
9522 * utils.c (xfullpath): New function.
9523 * defs.h (xfullpath): Add declaration.
9524 * source.c (openp): Use xfullpath in place of gdb_realpath to
9525 avoid resolving the basename part of filenames when the
9526 associated file is a symbolic link. This fixes a potential
9527 inconsistency between the filenames known to GDB and the
9528 filenames it prints in the annotations.
9529 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9530 to be able to match a filename with either the real filename, or
9531 the name of any symbolic link to this file.
9532 (lookup_partial_symtab): Ditto.
9533
9534 2002-04-04 Michael Snyder <msnyder@redhat.com>
9535
9536 * breakpoint.c: Add support for hardware breakpoints in overlays.
9537 (overlay_events_enabled): New state variable.
9538 (insert_breakpoints): Use overlay_events_enabled to decide
9539 whether to attempt to set a breakpoint at the overlay load addr.
9540 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9541 (remove_breakpoint): Use overlay_events_enabled to decide
9542 whether breakpoints need to be removed from overlay load addr.
9543 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9544 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9545 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9546 disable_overlay_breakpoints): Update overlay_events_enabled.
9547
9548 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9549
9550 * dwarf2read.c (struct function_range): New.
9551 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9552 (check_cu_functions): New.
9553 (read_file_scope): Initialize global function lists.
9554 Call dwarf_decode_line after processing children.
9555 (read_func_scope): Add to global function list.
9556 (dwarf_decode_lines): Call check_cu_functions everywhere
9557 record_line is called. Call record_line with a linenumber
9558 of 0 to mark sequence ends.
9559
9560 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9561
9562 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9563 change sync with glibc.
9564
9565 2002-04-03 Jim Blandy <jimb@redhat.com>
9566
9567 * configure.in: Call AC_C_INLINE.
9568 * configure: Regenerated.
9569
9570 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9571
9572 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9573 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9574
9575 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9576
9577 * NEWS: Mention gcore support on FreeBSD/i386.
9578
9579 * fbsd-proc.c: New file.
9580 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9581 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9582
9583 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9584 while statement.
9585
9586 2002-03-29 Jim Blandy <jimb@redhat.com>
9587
9588 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9589 unescaped newlines in string literals, but newer ones don't. So
9590 escape them.
9591
9592 2002-03-26 Michael Snyder <msnyder@redhat.com>
9593 Andrew Cagney <cagney@redhat.com>
9594
9595 * cli/cli-dump.c: New file. Dump memory to file,
9596 restore file to memory.
9597 * cli/cli-dump.h: New file.
9598 * Makefile.in: Add rules, dependencies for cli-dump.o.
9599 * NEWS: Mention new commands.
9600
9601 2002-03-28 Michael Snyder <msnyder@redhat.com>
9602
9603 * symfile.c (symbol_file_add): Move test for null symbols to later.
9604
9605 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9606
9607 From veksler at il.ibm.com:
9608 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9609 the xstrduped original path.
9610 Fix PR gdb/417.
9611
9612 2002-03-27 Michael Snyder <msnyder@redhat.com>
9613
9614 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9615 * infcmd.c (_initialize_infcmd): Ditto.
9616 * language.c (_initialize_language): Ditto.
9617 * symfile.c (_initialize_symfile): Ditto.
9618 * top.c (_init_main): Ditto.
9619 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9620
9621 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9622
9623 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9624 vector registers handling.
9625 (skip_prologue): Handle new AltiVec instructions. Fill in new
9626 fields of frame data.
9627 (frame_get_saved_regs): Fill in information for AltiVec registers.
9628
9629 2002-03-27 Jim Blandy <jimb@redhat.com>
9630
9631 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9632 a function; leave this macro here to invoke that function.
9633 (symbol_init_mangled_name): Declaration for that function.
9634 * symtab.c (symbol_init_mangled_name): New function.
9635
9636 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9637
9638 * valarith.c: Replace strerror with safe_strerror.
9639 * tracepoint.c: Ditto.
9640 * lin-lwp.c: Ditto.
9641 * go32-nat.c: Ditto.
9642 * inflow.c: Ditto.
9643 * gnu-nat.c: Ditto.
9644
9645 2002-03-27 Andreas Schwab <schwab@suse.de>
9646
9647 * event-top.c (command_line_handler): Remove useless if.
9648
9649 2002-03-27 Andreas Jaeger <aj@suse.de>
9650
9651 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9652 comment.
9653
9654 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9655
9656 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9657 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9658 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9659 (x86_64_linux_dr_get_status, supply_gregset),
9660 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9661 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9662 (x86_64_register_info_table): Add.
9663 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9664 (x86_64_register_raw_size, x86_64_register_virtual_type),
9665 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9666 general x86_64_register_info_table.
9667 (i386_gdbarch_init): gdbarch_register_bytes is now set
9668 dynamicaly during initialization.
9669 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9670 * gdbserver/linux-x86-64-low.c: Ditto.
9671
9672 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9673
9674 * gdbserver/server.c (main): Call target_signal_to_host_p
9675 and target_signal_to_host on signals received from the remote.
9676 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9677 target_signal_from_host on signals sent to the remote.
9678 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9679 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9680
9681 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9682
9683 * signals/signals.c: Include "server.h" in gdbserver build.
9684 (target_signal_from_name): Don't use STREQ.
9685 (_initialize_signals): Likewise. Don't include function in
9686 gdbserver build.
9687
9688 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9689
9690 * signals.c: Moved to...
9691 * signals/signals.c: Here.
9692 * Makefile (signals.o): Update.
9693
9694 2002-03-26 Jeff Law (law@redhat.com)
9695
9696 * somread.c (som_symtab_read): Remove some commented out code and
9697 updated related comments. Do not set the minimal symbol table to
9698 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9699 in a dynamic executable.
9700 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9701 where we are unable to find the minimal symbol for the given
9702 PC value.
9703
9704 2002-03-25 Jeff Law (law@redhat.com)
9705
9706 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9707
9708 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9709
9710 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9711
9712 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9713
9714 * command.h: Update copyright.
9715 (struct cmd_list_element): Replace definition with opaque
9716 declaration.
9717 (enum cmd_types): Document that it will eventually be moved to
9718 cli/cli-decode.h
9719 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9720 (MALLOCED_REPLACEMENT): Delete macro.
9721 * Makefile.in (cli_decode_h): Add $(command_h).
9722 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9723 * top.c: Include "cli/cli-decode.h".
9724 * completer.c: Include "cli/cli-decode.h".
9725 * maint.c: Include "cli/cli-decode.h".
9726 * cli/cli-decode.h: Include "command.h".
9727 (enum command_class): Delete.
9728 (enum cmd_types): Comment out.
9729 (enum cmd_auto_boolean): Delete.
9730 (enum var_types): Delete.
9731
9732 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9733
9734 * cli/cli-decode.c: Include "gdb_assert.h".
9735 (add_set_or_show_cmd): New static function.
9736 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9737 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9738 all fields, such as func, from the set command.
9739
9740 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9741
9742 * MAINTAINERS (sh-elf): Change warning flag to -w.
9743
9744 2002-03-23 Andrew Cagney <cagney@redhat.com>
9745
9746 * defs.h (error): Add printf format attribute.
9747 * thread-db.c (thread_from_lwp): Fix error format string.
9748 * stack.c (parse_frame_specification): Ditto.
9749 * cli/cli-decode.c (undef_cmd_error): Ditto.
9750 * scm-lang.c (scm_lookup_name): Ditto.
9751 * tracepoint.c (trace_error): Ditto.
9752 * remote-utils.c (usage): Ditto.
9753 * remote.c (compare_sections_command): Ditto.
9754 Fix PR gdb/328.
9755
9756 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9757
9758 * gdbtypes.c (append_composite_type_field): New function.
9759 (init_composite_type): New function.
9760 * gdbtypes.h (append_composite_type_field): Declare.
9761 (init_composite_type): Ditto.
9762
9763 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9764
9765 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9766 function.
9767 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9768 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9769 structure returning convention for SYSV ABI case, but not
9770 for GNU/Linux, FreeBSD, or NetBSD.
9771
9772 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * symtab.h (lookup_block_symbol): Add mangled_name argument
9775 to prototype.
9776
9777 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9778 with new mangled_name argument.
9779 * linespec.c (decode_line_1): Likewise.
9780 * valops (value_of_this): Likewise.
9781 * symtab.c (lookup_transparent_type): Likewise.
9782 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9783 (lookup_symbol): If we are given a mangled name, pass it down
9784 to lookup_symbol_aux.
9785 (lookup_block_symbol): If we are given a mangled name to check
9786 against, only return symbols which match it.
9787
9788 2002-03-22 Christopher Faylor <cgf@redhat.com>
9789
9790 * win32-nat.c (child_create_inferior): Check for proper shell to use
9791 here, in case the user changes it on the fly.
9792 (_initialize_inftarg): Remove shell path considerations.
9793
9794 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9795
9796 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9797 for gdbarch_max_register_raw_size and max_register_virtual_size.
9798 Adjust copyright year.
9799
9800 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9803 in a function to cover the entire beginning of the function
9804 as well if it does not already.
9805
9806 2002-03-21 Tom Rix <trix@redhat.com>
9807
9808 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9809 (rs6000_ptrace64): Renamed from ptrace64.
9810
9811 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9812
9813 * gdbserver/remote-utils.c (remote_open): Don't call
9814 getprotobyname, we're all using TCP here so just use
9815 IPPROTO_TCP.
9816 * gdbserver/gdbreplay.c (remote_open): Ditto.
9817
9818 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9819
9820 * regcache.c (_initialize_regcache): No need to call
9821 build_regcache() at this time; it gets called whenever
9822 the gdbarch changes.
9823
9824 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9825
9826 * sparc-nat.c: Include sys/param.h where possible.
9827
9828 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9829
9830 Fix PR gdb/422.
9831 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9832 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9833 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9834 complex types.
9835 * stabsread.c (rs6000_builtin_type): Likewise.
9836 (read_sun_floating_type): Likewise.
9837
9838 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9839
9840 * stabsread.c (read_member_functions): Remove skip code for duplicate
9841 constructor/destructor methods. Use standard parsing for these
9842 methods and just do not chain them to the list of methods after
9843 parsing.
9844
9845 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9846
9847 * coffread.c: Remove redundant static declarations. Replace
9848 occurrences of `PTR' with `void *'.
9849 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9850 * top.h (quit_cover): Likewise.
9851 * defs.h (catch_errors): Likewise.
9852
9853 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9854
9855 * defs.h (XMALLOC): Define.
9856 * gdb-events.sh (XMALLOC): Delete macro.
9857 * gdb-events.c, gdb-events.h: Regenerate.
9858 * gdbarch.sh (XMALLOC): Delete macro.
9859 * gdbarch.c: Regenerate.
9860 * serial.c (XMALLOC): Delete macro.
9861 * ui-file.c (XMALLOC): Ditto.
9862 * ser-unix.h (XMALLOC): Ditto.
9863 * sh-tdep.c (XMALLOC): Ditto.
9864 * ui-out.c (XMALLOC): Ditto.
9865 * utils.c (XMALLOC): Ditto.
9866 * i386-tdep.c (XMALLOC): Ditto.
9867 * gdb-events.c (XMALLOC): Ditto.
9868 * d10v-tdep.c (XMALLOC): Ditto.
9869 * cli-out.c (XMALLOC): Ditto.
9870
9871 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9872 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9873 * ui-file.c, ui-out.c: Ditto.
9874
9875 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9876
9877 * command.h (struct cmd_list_element): Add field context.
9878 (set_cmd_context, get_cmd_context): Declare.
9879 * cli/cli-decode.h: Ditto.
9880 * cli/cli-decode.c (get_cmd_context): New function.
9881 (set_cmd_context): New function.
9882 (add_cmd): Initialize context.
9883 Part of fixing PR gdb/145 and PR gdb/146.
9884
9885 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9886
9887 * cli/cli-decode.c (cmd_type): New function.
9888 * command.h (cmd_type): Declare.
9889 * infrun.c (set_schedlock_func): Call function cmd_type.
9890 * kod.c (kod_set_os): Call cmd_type.
9891 * cris-tdep.c (cris_version_update): Use function cmd_type.
9892 (cris_mode_update, cris_abi_update): Ditto.
9893
9894 * command.h: (execute_cmd_post_hook): Declare.
9895 (execute_cmd_pre_hook): Declare.
9896 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9897 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9898 functions. Execute pre/post hook while ensuring that afterwords
9899 hook_in is cleared.
9900 * top.c (execute_command): Use execute_cmd_post_hook, and
9901 execute_cmd_pre_hook to execute pre/post commands.
9902 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9903 hook_stop_stub.
9904 (hook_stop_stub): Call execute_cmd_pre_hook.
9905
9906 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9907
9908 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9909 set'' and this leads to a core dump. Move xstrdup of
9910 operating_system to after check that it is not NULL.
9911
9912 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9913
9914 * kod.c (kod_set_os): Remove unnecessary check that
9915 ``command->type'' is set_cmd.
9916
9917 * valprint.c (set_input_radix): Use input_radix.
9918 (set_output_radix): Use output_radix.
9919 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9920 isn't reverted.
9921
9922 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9923
9924 * value.h (struct value): Delete field ``substring_addr''. Change
9925 aligner fields to force_doublest_align, force_longest_align,
9926 force_core_addr_align and force_pointer_aligh.
9927
9928 * value.h (struct value): Fix typo in above change.
9929
9930 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9931
9932 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9933 to fix internal_error from ``maintenance print architecture''.
9934
9935 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9936
9937 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9938 for gcc versions after gcc-2.8.1.
9939
9940 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9941
9942 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9943 for method resolution. Restore adjustment of ``this'' pointer after
9944 calling value_struct_elt, which was accidentally removed during the
9945 HP merge.
9946
9947 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9948
9949 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9950 value_of_register.
9951 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9952 get_saved_register.
9953 * value.h (value_of_register): Update.
9954
9955 2002-03-14 Richard Henderson <rth@redhat.com>
9956
9957 * configure.in: Detect declaration for canonicalize_file_name.
9958 * utils.c (canonicalize_file_name): Declare, if needed.
9959 (gdb_realpath): Prefer realpath if available and usable.
9960 * config.in, configure: Rebuild.
9961
9962 2002-03-14 Richard Henderson <rth@redhat.com>
9963
9964 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9965 a constant array bound.
9966
9967 * MAINTAINERS: Add myself to write-after-approval.
9968
9969 2002-03-14 Michael Snyder <msnyder@redhat.com>
9970
9971 * symfile.c (syms_from_objfile): Return immediately if no syms.
9972 (symbol_file_add): Return immediately if no syms.
9973 (find_sym_fns): Return immediately if no syms.
9974
9975 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9976
9977 * gdbserver/remote-util.c (remote_open): Print remote-side's
9978 IP address when remote debugging over the network.
9979
9980 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9981
9982 * config/sparc/fbsd.mh: Fix copyright.
9983 * config/sparc/fbsd.mt: Likewise.
9984
9985 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9986
9987 * MAINTAINERS: Fix typo in name of gdb warnings option.
9988 (x86-64): Fix formating so that this can be parsed by awk.
9989
9990 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9991
9992 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9993 * defs.h: Include "gdb/signals.h".
9994 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9995
9996 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9997
9998 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9999 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10000 from x86-64-tdep.h
10001
10002 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10003 Don Howard <dhoward@redhat.com>
10004
10005 * mips-tdep.c (ST0_FR): Define.
10006 (mips2_fp_compat): New function, temporarily disabled.
10007 (mips_read_fp_register_single): New function.
10008 (mips_read_fp_register_double): New function.
10009 (mips_print_register): Use them.
10010 (do_fp_register_row): Likewise.
10011
10012 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10013
10014 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10015 approval''.
10016
10017 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10018
10019 * stabsread.c (read_member_functions): Fix is_stub test for
10020 static member functions, improve comment.
10021
10022 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10023
10024 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10025 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10026 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10027 commands that set boolean values.
10028 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10029 (arm_rdi_resume): Always initialize PC.
10030 (arm_rdi_open): Don't use rslt as a boolean.
10031 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10032 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10033 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10034 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10035
10036 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10037
10038 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10039 * configure: Rebuilt.
10040
10041 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10042
10043 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10044 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10045
10046 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10047
10048 * cli/cli-decode.c (set_cmd_completer): New function.
10049 * command.h (set_cmd_completer): Declare.
10050 * cli/cli-decode.h (set_cmd_completer): Ditto.
10051
10052 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10053 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10054 * win32-nat.c (_initialize_inftarg): Ditto.
10055 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10056 * proc-api.c (_initialize_proc_api): Ditto.
10057 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10058 * source.c (_initialize_source): Ditto.
10059 * exec.c (_initialize_exec): Ditto.
10060 * solib.c (_initialize_solib): Ditto.
10061 * top.c (init_main): Ditto.
10062 * tracepoint.c (_initialize_tracepoint): Ditto.
10063 * symfile.c (_initialize_symfile): Ditto.
10064 * printcmd.c (_initialize_printcmd): Ditto.
10065 * infcmd.c (_initialize_infcmd): Ditto.
10066 * corefile.c (_initialize_core): Ditto.
10067
10068 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10069
10070 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10071
10072 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10073
10074 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10075
10076 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10077
10078 * NEWS: Update headings, 5.2 has branched.
10079
10080 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10083 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10084 (register_addr, REGISTER_RAW_SIZE): Likewise.
10085 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10086 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10087
10088 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10089
10090 * MAINTAINERS (x86-64): Add myself.
10091 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10092 changed value_ptr -> struct value *
10093
10094 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10095
10096 * configure.host (sparc64-*-freebsd): Add.
10097 * configure.tgt: Likewise.
10098 * config/sparc/fbsd.mh: New file.
10099 * config/sparc/fbsd.mt: Likewise.
10100 * config/sparc/nm-fbsd.h: Likewise.
10101 * config/sparc/tm-fbsd.h: Likewise.
10102
10103 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10106 regformats/reg-s390x.dat.
10107
10108 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10109
10110 * utils.c: Add FIXME explaining true/false problem.
10111
10112 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10113
10114 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10115
10116 2002-02-28 Michael Chastain <mec@shout.net>
10117
10118 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10119
10120 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10121
10122 * gdbserver/linux-s390-low.c: New file.
10123 * regformats/reg-s390.dat: New file.
10124 * regformats/reg-s390x.dat: New file.
10125 * gdbserver/configure.srv: Add S/390.
10126 * gdbserver/Makefile.in: Add S/390.
10127 * configure.tgt: Enable gdbserver for S/390.
10128
10129 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10130
10131 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10132 first line of the doc string for "info dos", except at the end of
10133 the sentence, since the short help stops at the first period.
10134
10135 2002-02-28 Jason Merrill <jason@redhat.com>
10136
10137 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10138
10139 2002-02-27 Fred Fish <fnf@redhat.com>
10140
10141 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10142 comment (dumy -> dummy).
10143
10144 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10145
10146 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10147
10148 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10149
10150 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10151
10152 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10153
10154 * gdbserver/acconfig.h: New file.
10155 * gdbserver/i387-fp.c: New file.
10156 * gdbserver/i387-fp.h: New file.
10157 * gdbserver/linux-x86-64.c: New file.
10158 * regformats/reg-x86-64.dat: New file.
10159 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10160 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10161 * gdbserver/configure.in: Add support for regsets.
10162 * gdbserver/config.in: Regenerate.
10163 * gdbserver/configure: Regenerate.
10164 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10165 * gdbserver/linux-low.h: New file.
10166 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10167 for regsets.
10168 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10169 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10170 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10171 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10172 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10173 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10174 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10175 "i387-fp.h". Add PTRACE_GETREGS and friends.
10176 * gdbserver/regcache.c (supply_register): New function.
10177 (supply_register_by_name): New function.
10178 (collect_register): New function.
10179 (collect_register_by_name): New function.
10180
10181 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10184 (config.status): Add configure.srv dependency.
10185 (server_h): Add config.h dependency.
10186
10187 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10188
10189 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10190 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10191 * gdbserver/configure.srv: Change i386-*-linux* to use
10192 reg-i386-linux.o.
10193
10194 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10195
10196 * x86-64-tdep.c: Re-indent. Update copyright date.
10197
10198 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10199
10200 From Michal Ludvig <mludvig@suse.cz>:
10201 * x86-64-tdep.c (value.h): Delete.
10202 (gdb_assert.h): Include.
10203 (x86_64_register_convert_to_virtual,
10204 x86_64_register_convert_to_raw ): Add check which lets only
10205 floating-point values to be converted.
10206 (value_push): Delete.
10207 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10208 (i386_gdbarch_init): Number of register_bytes fixed.
10209
10210 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10211
10212 * MAINTAINERS: Add x86-64 target.
10213
10214 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10215
10216 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10217 * osfsolib.c (solib_map_sections): Ditto.
10218 * irix5-nat.c (solib_map_sections): Ditto.
10219 * corelow.c (gdb_check_format): Ditto.
10220 * symfile.c (symfile_bfd_open): Ditto.
10221 * solib.c (solib_map_sections): Ditto.
10222 Fix PR gdb/354.
10223
10224 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10225
10226 * remote.c (_initialize_remote): By default, disable ``e'' and
10227 ``E'' step out-of-range packets.
10228
10229 2002-02-26 Andreas Schwab <schwab@suse.de>
10230
10231 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10232 m68k_linux_frame_saved_pc.
10233 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10234 in_sigtramp.
10235 (SIGCONTEXT_PC_OFFSET): Remove.
10236 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10237 m68k_linux_sigtramp_saved_pc): New functions.
10238 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10239 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10240 (UCONTEXT_PC_OFFSET): Define.
10241 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10242 non-RT and RT signal trampolines.
10243
10244 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10245
10246 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10247 (TARGET_NBPG, STACK_END_ADDR): Delete
10248 (VARIABLES_INSIDE_BLOCK): Delete.
10249
10250 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10251
10252 * utils.c (perror_with_name): Make string parameter constant.
10253 (print_sys_errmsg): Ditto.
10254 (query): Ditto.
10255 * defs.h (perror_with_name): Update.
10256 (print_sys_errmsg): Update.
10257 (query): Update.
10258
10259 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10260
10261 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10262 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10263
10264 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10265
10266 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10267 if it already matches the current architecture from the exec file.
10268 Include arch-utils.h for gdbarch_info_init prototype.
10269 * Makefile.in (rs6000-nat.o): Update dependencies.
10270
10271 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10272
10273 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10274 list of exported variables.
10275
10276 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdbserver/configure.srv: New file.
10279 * gdbserver/configure.in: Use configure.srv instead
10280 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10281 from it.
10282 * gdbserver/configure: Regenerated.
10283 * gdbserver/terminal.h: New file.
10284 * gdbserver/Makefile.in: Update for configure changes. Remove
10285 more unneeded include paths.
10286
10287 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10288
10289 From wiz at danbala:
10290 * config/sparc/tm-sp64.h: Fix grammar and typos.
10291 Fix PR gdb/287.
10292
10293 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10294
10295 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10296 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10297 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10298 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10299 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10300 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10301 * s390-tdep.c: Ditto.
10302 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10303 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10304 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10305 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10306 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10307 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10308 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10309 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10310 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10311 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10312 Fix PR gdb/378.
10313
10314 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10315
10316 * lin-thread.c: Delete file.
10317 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10318 to gdb_proc_service.h.
10319 * configure: Re-generate.
10320
10321 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10322 * serial.c (serial_open): Delete check for "ocd".
10323 Fix PR gdb/349.
10324
10325 * Makefile.in (linux-thread.o): Delete target.
10326 * linux-thread.c: Delete file.
10327
10328 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10329 renamed SH files to be consistent.
10330
10331 * symtab.c (sort_search_symbols): Use xfree.
10332
10333 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10334
10335 * arm-linux-tdep.c (arm_linux_init_abi): Register
10336 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10337 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10338 definition with undef, since we don't want the sysvr4 definition.
10339 (SKIP_TRAMPOLINE_CODE): Likewise.
10340
10341 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10342
10343 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10344
10345 * configure.in: (AC_CHECK_FUNCS) Added test for
10346 canonicalize_file_name Regenerated.
10347 * config.in, configure: Regenerated.
10348 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10349 defined use canonicalize_file_name.
10350
10351 2002-02-23 Michael Chastain <mec@shout.net>
10352
10353 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10354
10355 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10356
10357 * README: Remove references to cygnus.com.
10358 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10359 dot com'' form. Remove references to cygnus.com and sourceware.
10360
10361 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10362
10363 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10364 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10365 1003.1-2001 no longer allows "head -1".
10366 * gdb/Makefile.in (version.c): Likewise.
10367 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10368 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10369 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10370
10371 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10372
10373 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10374 * command.h (cmd_cfunc_eq): Declare.
10375 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10376
10377 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10378 ``struct cmd_list_element *''.
10379 * cli/cli-cmds.c (is_complete_command): Update. Use
10380 cmd_cfunc_eq.
10381 * top.c (execute_command): Pass the command to
10382 is_complete_command.
10383 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10384
10385 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10386
10387 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10388 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10389 architecture defines.
10390 * s390-tdep.c (s390_gdbarch_init): Likewise.
10391
10392 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10393
10394 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10395 (arm_linux_push_arguments): Likewise.
10396 (arm_linux_init_abi): Register them. Also register linux-specific
10397 call_dummy_words.
10398 (find_minsym_and_objfile): Use strcmp, not STREQ.
10399 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10400 (arm_linux_call_dummy_words): Delete declaration.
10401 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10402 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10403 declarations.
10404 (LOWEST_PC): Delete.
10405
10406 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10407
10408 * maint.c (print_section_info): Do not prepend `0x' to filepos
10409 output, it will be handled by local_hex_string_custom.
10410
10411 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10412
10413 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10414 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10415 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10416
10417 2002-02-22 Jim Blandy <jimb@redhat.com>
10418
10419 Indicate that the bcache functions don't change the strings
10420 they're passed.
10421 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10422 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10423
10424 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10425
10426 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10427
10428 2002-02-21 Christopher Faylor <cgf@redhat.com>
10429
10430 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10431 find the complete path to a loaded DLL.
10432
10433 2002-02-21 Fred Fish <fnf@redhat.com>
10434
10435 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10436 that marks the end of the range of a function, enter a line number
10437 entry that has a line number of zero and a PC offset that matches
10438 the end of the function. This starts a range of PC's for which no
10439 line number information is known.
10440 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10441 PC's for which no line number info is found (line number is zero)
10442 then we didn't find any valid line information.
10443 * symtab.h: Document use of zero line number entry.
10444
10445 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10446
10447 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10448 (have_ptrace_getvrregs): Define for run time checks.
10449 (gdb_vrregset_t): New type for Altivec register handling.
10450 (fetch_register, store_register): Fetch/store altivec register
10451 when needed.
10452 (fetch_altivec_register, store_altivec_register): New functions.
10453 (supply_vrregset, fill_vrregset): New functions.
10454 (fetch_altivec_registers, store_altivec_registers): New functions.
10455 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10456 registers as well.
10457
10458 2002-02-21 Jiri Smid <smid@suse.cz>
10459
10460 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10461
10462 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10463
10464 * Makefile.in (armnbsd-nat.o): Update dependencies.
10465 * armnbsd-nat.c (supply_gregset): New function. Common code to
10466 supply the integer register set.
10467 (supply_fparegset): New function. Similar for FPA registers.
10468 (fetch_regs, fetch_fp_regs): Use them.
10469 (fetch_core_registers): Likewise.
10470 (fetch_elfcore_registers): New function.
10471 (arm_netbsd_elfcore_fns): New core-file type specification.
10472 (_initialize_arm_netbsd_nat): Register it.
10473
10474 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10475
10476 * armnbsd-nat.c: Include gdbcore.h.
10477 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10478 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10479 'void' to declaration, to shut up ARI.
10480 (fetch_core_registers): Make static. Rewrite using supply_register.
10481 (arm_netbsd_core_fns): New core-file type specification.
10482 (_initialize_arm_netbsd_nat): New function.
10483
10484 2002-02-21 Christopher Faylor <cgf@redhat.com>
10485
10486 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10487 value.
10488
10489 2002-02-20 Christopher Faylor <cgf@redhat.com>
10490
10491 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10492 fails.
10493
10494 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * jv-exp.y (parse_number): Change type of implicit longs
10497 to builtin_type_uint64.
10498
10499 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10500
10501 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10502 to be an integer instead of a `union wait'.
10503
10504 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10505
10506 * mips-linux-nat.c: Call the operating system GNU/Linux.
10507 * mips-linux-tdep.c: Likewise.
10508 * mips-tdep.c: Likewise.
10509
10510 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10511
10512 Fix PR gdb/265.
10513 * jv-exp.y (parse_number): Handle 64-bit integers.
10514
10515 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10518 AC_STDC_HEADERS to AC_HEADER_STDC.
10519 * gdbserver/configure: Regenerated.
10520
10521 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10522
10523 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10524 is defined.
10525 * sparc-tdep.c (get_longjmp_target): Likewise.
10526
10527 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10528
10529 * News: Add news about ARM and Multi-arch. Mention the new target
10530 arm*-*-netbsd*.
10531
10532 2002-02-19 Jim Blandy <jimb@redhat.com>
10533
10534 * stabsread.c (error_type_complaint): Improve error message.
10535
10536 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10537
10538 * gdbserver/README: Update documentation.
10539 * gdbserver/configure.in: Update configury to match documentation.
10540 * gdbserver/Makefile.in: Likewise.
10541 * gdbserver/configure: Regenerated.
10542 * gdbserver/aclocal.m4: New file, generated by aclocal.
10543 * gdbserver/config.in: New file, generated by autoheader.
10544
10545 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10546
10547 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10548 armnbsd-nat.c.
10549
10550 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10551
10552 * arm-tdep.h (enum arm_float_model): New enum.
10553 (struct gdbarch_tdep): Add fp_model.
10554 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10555 up floating-point conversions until we know the floating-point model
10556 in use by the inferior. Don't complain about being unable to
10557 determine the ABI of the inferior when we don't have one.
10558 (arm_extract_return_value): Support different floating-point models.
10559 (arm_store_return_value): Likewise.
10560 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10561 ARM_FLOAT_SOFT.
10562 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10563
10564 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10565
10566 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10567 of ``current_gdbarch''.
10568
10569 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10570
10571 * armnbsd-nat.c : ANSIfy all function declarations.
10572 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10573 (fetch_inferior_registers): Re-implement in terms of above.
10574 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10575 (store_inferior_registers): Re-implement in terms of above.
10576
10577 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10578
10579 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10580 kernel.
10581 * arm-linux-tdep.c: Likewise.
10582 * config/arm/tm-linux.h: Likewise.
10583
10584 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10585
10586 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10587 * config/arm/nbsd.mt (TM_FILE): Delete.
10588 * config/arm/tm-nbsd.h: Delete.
10589
10590 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10591
10592 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10593 Initialize CALL_DUMMY_LENGTH.
10594
10595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10596
10597 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10598 function.
10599 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10600 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10601 defines one thing and that is incorrect for this port.
10602 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10603
10604 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10605
10606 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10607
10608 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10609
10610 * win32-nat.c (display_selector): New function. Displays information
10611 about the information returned by GetThreadSelectorEntry API function.
10612 (display_selectors): New function. Displays the infomation of
10613 the selector given as argument, or of CS, DS ans FS selectors
10614 if no argument is given.
10615 ( _initialize_inftarg): Add "w32" as info prefix command.
10616 Add "info w32 selector" as command calling display_selectors.
10617
10618 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10619
10620 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10621 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10622 if not defined.
10623
10624 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10625
10626 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10627
10628 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10629
10630 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10631 (arm_fix_call_dummy): Call it.
10632 (arm_call_dummy_breakpoint_offset): Delete.
10633 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10634 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10635
10636 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10637
10638 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10639 Default to func_frame_chain_valid.
10640 * gdbarch.h, gdbarch.c: Re-generate.
10641 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10642
10643 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10644
10645 * ppc-linux-nat.c: Update copyright.
10646 (fetch_register, store_register): Add tid parameter, don't compute
10647 tid here.
10648 (fetch_ppc_registers, store_ppc_registers): Add tid
10649 parameter. Pass it along to callees.
10650 (fetch_inferior_registers, store_inferior_registers): Compute tid
10651 here, and pass it to calleed functions.
10652 (fill_gregset, supply_fpregset): Clean up formatting.
10653
10654 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10655
10656 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10657 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10658
10659 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10660
10661 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10662 * gdbarch.c gdbarch.h: Regenerate.
10663 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10664 function.
10665 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10666 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10667 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10668
10669 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10670 * arm-tdep.c (arm_get_longjmp_target): New function.
10671 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10672 this to a positive value register arm_get_longjmp_target as the
10673 longjmp handler.
10674 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10675 (arm_linux_init_abi): Set up longjmp description in tdep.
10676 * armnbsd-nat.c (get_longjmp_target): Delete.
10677 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10678 description in tdep.
10679 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10680 (get_longjmp_target): Delete declaration.
10681 (GET_LONGJMP_TARGET): Delete.
10682 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10683 (GET_LONGJMP_TARGET): Delete.
10684
10685 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10686
10687 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10688 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10689 of ``current_gdbarch''.
10690
10691 2002-02-17 Tom Tromey <tromey@redhat.com>
10692
10693 * cli/cli-cmds.c (compare_strings): New function.
10694 (complete_command): Only print each unique item once.
10695 * completer.h (complete_line): Declare.
10696 * completer.c (complete_line): New function.
10697 (line_completion_function): Use it.
10698
10699 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10700
10701 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10702 * gdbarch.h, gdbarch.c: Re-generate.
10703
10704 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10705
10706 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10707
10708 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10709
10710 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10711 * valops.c (value_arg_coerce): Don't take the address of a reference
10712 to convert an argument to a reference.
10713
10714 2002-02-15 Christopher Faylor <cgf@redhat.com>
10715
10716 * win32-nat.c (get_image_name): New function.
10717 (handle_load_dll): Use get_image_name function.
10718 (get_child_debug_event): Avoid registering debug events until possibly
10719 execed process is started.
10720 (child_create_inferior): Allow invocation via shell so that command
10721 line redirection, etc. works ok.
10722 (_initialize_inftarg): Add new command: "set shell" to control whether
10723 a shell is used to start a process.
10724
10725 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10728 instead of find_register_by_number.
10729 (cannot_store_register): Likewise.
10730
10731 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10732
10733 * dwarf2read.c: Replace fprintf (stderr, ...) by
10734 fprintf_unfiltered (gdb_stderr, ...).
10735
10736 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * gdbserver/gdbserver.1: Document --attach.
10739
10740 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10743 descriptions.
10744 * arm-tdep.c (arm_default_arm_le_breakpoint)
10745 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10746 (arm_default_thumb_be_breakpoint): New. Initialize them from
10747 traditional breakpoint defines.
10748 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10749 (arm_gdbarch_init): Initialize new breakpoint variables.
10750 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10751 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10752 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10753 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10754 code out to ...
10755 (arm_netbsd_init_abi_common): ... here; new function.
10756 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10757 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10758 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10759 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10760
10761 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10762
10763 * arm-tdep.h (enum arm_abi): New enum.
10764 (struct gdbarch_tdep): New structure.
10765 (LOWEST_PC): Provide a default.
10766 (arm_gdbarch_register_os_abi): Declare new function.
10767 * arm-tdep.c (arm_abi_names): New array.
10768 (process_note_abi_tag_sections): New function.
10769 (get_elfosabi): New function.
10770 (arm_gdbarch_register_os_abi): New function.
10771 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10772 support for that ABI has been built in, then call the appropriate
10773 configuration routine. Use gdbarch_num_regs() to get the number
10774 of registers.
10775 (arm_dump_tdep): New function.
10776 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10777 place-holder functions.
10778 (_initialize_arm_tdep): Register them.
10779 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10780
10781 * armnbsd-tdep.c: New file.
10782 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10783 * config/arm/nbsd.mt (TDEPFILES): Add it.
10784 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10785
10786 * armnbsd-nat.c: Include regcache.h.
10787 * Makefile.in (armnbsd-nat.o): Update dependency list.
10788
10789 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10790
10791 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * gdbserver/Makefile.in: Fix typos in target rules.
10794
10795 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10796
10797 Fix part of PR gdb/267.
10798 * linespec.c (find_methods): Handle constructors specially for now.
10799
10800 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10801
10802 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10803 handling.
10804 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10805 standard_coerce_float_to_double().
10806
10807 2002-02-14 Christopher Faylor <cgf@redhat.com>
10808
10809 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10810 GDBINIT_FILENAME.
10811
10812 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10813
10814 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10815 find_variant_by_name, because it confuses the multiarch
10816 framework. Return NULL if there isn't an architecture with the
10817 user supplied name, instead of forcing a different one without
10818 recording the change with the multiarch machinery.
10819 (find_variant_by_name): Delete.
10820
10821 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10822
10823 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10824 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10825
10826 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10827
10828 * stack.c (print_frame_info_base): When calling
10829 print_frame_info_listing_hook, set current_source_symtab.
10830
10831 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10832
10833 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10834 and remove unused $(INCLUDE_DIR).
10835 Add regcache.c to OBS.
10836 Add generated register protocol files to clean target.
10837 Update dependencies for new objects, obsolete old target code.
10838
10839 * gdbserver/linux-low.c: Remove all platform-specific code to
10840 new files. Remove various dead code. Update to use regcache
10841 functionality.
10842 * gdbserver/remote-utils.c (fromhex): Add return statement
10843 to quiet warning.
10844 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10845 constant.
10846 (input_interrupt): Add integer parameter to match prototype
10847 of a signal handler.
10848 (outreg): Use register_data ().
10849 (prepare_resume_reply): Use gdbserver_expedite_regs.
10850 * gdbserver/server.c (main): Dynamically allocate own_buf because
10851 PBUFSIZ is no longer constant. Use registers_to_string () and
10852 registers_from_string ().
10853 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10854 for error (), fatal (), and warning (). Update definition of
10855 PBUFSIZ to use regcache functionality. Add include guard.
10856 * gdbserver/utils.c (fatal): Add missing ``const''.
10857 (warning): New function.
10858
10859 * regformats/regdat.sh: Include "regcache.h" in generated files.
10860 Provide init_registers () function.
10861 * regformats/regdef.h: Add prototype for set_register_cache ().
10862 Add include guard.
10863
10864 * gdbserver/linux-arm-low.c: New file.
10865 * gdbserver/linux-i386-low.c: New file.
10866 * gdbserver/linux-ia64-low.c: New file.
10867 * gdbserver/linux-m68k-low.c: New file.
10868 * gdbserver/linux-mips-low.c: New file.
10869 * gdbserver/linux-ppc-low.c: New file.
10870 * gdbserver/linux-sh-low.c: New file.
10871
10872 * gdbserver/regcache.c: New file.
10873 * gdbserver/regcache.h: New file.
10874
10875 * gdbserver/low-linux.c: Removed obsolete file.
10876
10877 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10878
10879 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10880 * config/i386/linux.mt: Likewise.
10881 * config/ia64/linux.mt: Likewise.
10882 * config/m68k/linux.mh: Likewise.
10883 * config/powerpc/linux.mh: Likewise.
10884 * config/mips/linux.mt: Likewise.
10885
10886 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10887
10888 * config/i386/i386lynx.mh: Mark gdbserver variables
10889 as (currently) obsolete for this target.
10890 * config/i386/nbsd.mt: Likewise.
10891 * config/i386/nbsdelf.mt: Likewise.
10892 * config/m32r/m32r.mt: Likewise.
10893 * config/m68k/m68klynx.mh: Likewise.
10894 * config/m68k/nbsd.mt: Likewise.
10895 * config/m68k/sun3os4.mh: Likewise.
10896 * config/mips/vr5000.mt: Likewise.
10897 * config/ns32k/nbsd.mt: Likewise.
10898 * config/pa/hppabsd.mh: Likewise.
10899 * config/pa/hppaosf.mh: Likewise.
10900 * config/powerpc/nbsd.mt: Likewise.
10901 * config/rs6000/rs6000lynx.mh: Likewise.
10902 * config/s390/s390.mt: Likewise.
10903 * config/s390/s390x.mt: Likewise.
10904 * config/sparc/sparclynx.mh: Likewise.
10905 * config/sparc/sun4os4.mh: Likewise.
10906 * config/i386/x86-64linux.mt: Likewise.
10907 * config/sparc/linux.mh: Likewise.
10908
10909 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * configure.tgt: Configure gdbserver only for known working
10912 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10913 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10914 SUBDIRS if it is configured. Update comment for ${nativefile}.
10915 * configure: Regenerated.
10916
10917 2002-02-13 Michael Snyder <msnyder@redhat.com>
10918
10919 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10920
10921 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10922 (default_gcore_mach): Just return 0, work around a problem in bfd.
10923 (default_gcore_target): OK to return NULL if exec_bfd is null.
10924 (make_mem_sec): Use a cast, avoid a warning.
10925
10926 * procfs.c (find_memory_regions_callback): Use a cast instead of
10927 calling host_pointer_to_address (which complains if
10928 sizeof (host pointer) != sizeof (target pointer)).
10929 (procfs_make_note_section): Avoid overflow in psargs string.
10930
10931 * procfs.c (procfs_make_note_section): Make the default
10932 implementation return an error.
10933
10934 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10935
10936 * procfs.c (procfs_make_note_section): Provide a default definition
10937 (for alpha-dec-osf4.0f). Fix typos.
10938
10939 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10940
10941 * linux-proc.c: Add include of regcache.h.
10942 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10943
10944 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10945
10946 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10947 * memattr.c (create_mem_region): Disallow useless empty region.
10948 Regions are half-open intervals, so allow [A..B) [B..C) as
10949 non-overlapping.
10950
10951 2002-02-13 Michael Chastain <mec@shout.net>
10952
10953 * defs.h: Kill CONST_PTR.
10954 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10955 * c-lang.c (c_builtin_types): Likewise.
10956 * ch-lang.c (ch_builtin_types): Likewise.
10957 * f-lang.c (f_builtin_types): Likewise.
10958 * language.c (unknown_builtin_types): Likewise.
10959 * m2-lang.c (m2_builtin_types): Likewise.
10960 * p-lang.c (pascal_builtin_types): Likewise.
10961 * scm-lang.c (c_builtin_types): Likewise.
10962
10963 2002-02-13 Keith Seitz <keiths@redhat.com>
10964
10965 * arm-tdep.h (arm_get_next_pc): Add declaration.
10966
10967 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10968
10969 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10970 with other related struct-returning functions.
10971 (arm_extract_struct_value_address): New function.
10972 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10973 initialize float_format, double_format and long_double_format as
10974 appropriate to the endianness of the target.
10975 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10976 (arm_use_struct_convention): Delete declaration.
10977 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10978
10979 2002-02-13 Keith Seitz <keiths@redhat.com>
10980
10981 * defs.h (core_addr_to_string_nz): New function.
10982
10983 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10984
10985 Apply missing bits of 2002-01-15 patch.
10986 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10987 (fill_fpregset): Use i387_fill_fsave.
10988
10989 2002-02-12 Keith Seitz <keiths@redhat.com>
10990
10991 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10992 (core_addr_to_string_nz): New function.
10993
10994 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10995
10996 * arm-linux-nat.c: Really include arm-tdep.h.
10997 * config/arm/tm-linux.h (struct type, struct value): Declare.
10998
10999 2002-02-11 Michael Snyder <msnyder@redhat.com>
11000
11001 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11002 (gcore section): Ifdef for Solaris and Unixware only.
11003 (procfs_do_thread_registers): Unixware needs one lwpstatus
11004 per thread (not one prstatus or pstatus).
11005 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11006 not over all gdb threads. For unixware, call elfcore_write_pstatus
11007 once before iterating over threads.
11008
11009 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11010
11011 * arm-tdep.h: New file.
11012 * arm-tdep.c: Include arm-tdep.h.
11013 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11014 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11015 (arm_print_float_info, arm_register_type, convert_to_extended)
11016 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11017 (arm_extract_return_value, arm_register_name): Make static.
11018 (arm_software_single_step): Similarly. Fix types in declaration.
11019 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11020 (arm_store_return_value, arm_store_struct_return): New functions.
11021 (arm_gdbarch_init): Register the above functions. Also register
11022 call_dummy_start_offset, sizeof_call_dummy_words,
11023 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11024 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11025 max_register_virtual_size, register_size. Set up
11026 prologue_cache.saved_regs here, rather than ...
11027 (_initialize_arm_tdep): ... here.
11028 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11029 declarations.
11030 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11031 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11032 (arm_print_float_info, arm_register_type, convert_to_extended)
11033 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11034 (arm_extract_return_value, arm_register_name): Delete declarations.
11035 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11036 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11037 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11038 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11039 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11040 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11041 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11042 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11043 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11044 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11045 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11046 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11047 interface.
11048 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11049 * remote-rdi.c remote-rdp.c: Likewise.
11050 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11051 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11052 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11053 definition.
11054
11055 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11056 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11057 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11058 from non-ARM_ prefixed definitions.
11059 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11060 all uses of above.
11061 * remote-rdi.c remote-rdp.c: Likewise.
11062 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11063
11064 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * arm-tdep.c (arm_frameless_function_invocation)
11067 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11068 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11069 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11070 (arm_pop_frame, arm_get_next_pc): Make static.
11071 (arm_gdbarch_init): Register above in gdbarch structure.
11072 (arm_read_fp): Renamed from arm_target_read_fp.
11073 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11074 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11075 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11076 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11077 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11078 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11079 (arm_pc_is_thumb_dummy): Delete declarations.
11080 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11081 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11082 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11083 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11084
11085 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * symtab.c (compare_search_syms): New function.
11088 (sort_search_symbols): New function.
11089 (search_symbols): Sort symbols after searching rather than
11090 before.
11091
11092 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11093
11094 * NEWS: Linux -> GNU/Linux.
11095
11096 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11097
11098 * gdbarch.sh: For for level one methods, disallow a definition
11099 when partially multi-arched. Add comments explaining rationale.
11100 * gdbarch.h: Re-generate.
11101
11102 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11103
11104 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11105 multi-arch partial.
11106
11107 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11108
11109 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11110 field. Use diff -u.
11111 * gdbarch.c: Re-generate.
11112
11113 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11114
11115 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11116 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11117 partial.
11118
11119 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11120
11121 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11122 multi-arch partial.
11123 (PUSH_ARGUMENTS): Switch to using predefault.
11124 * gdbarch.c: Regenerate.
11125
11126 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11127
11128 * valops.c (PUSH_ARGUMENTS): Delete definition.
11129 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11130 partial. Default to default_push_arguments.
11131 * gdbarch.h, gdbarch.c: Regenerate.
11132
11133 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11134
11135 * defs.h (throw_exception): Rename return_to_top_level. Update
11136 comments.
11137 * utils.c (error_stream, internal_verror, quit): Ditto.
11138 * top.c (throw_exception, catcher): Ditto.
11139 * sparclet-rom.c (sparclet_load): Ditto.
11140 * remote.c (interrupt_query, minitelnet): Ditto.
11141 * remote-sds.c (interrupt_query): Ditto.
11142 * remote-mips.c (mips_error, mips_kill): Ditto.
11143 * ocd.c (interrupt_query): Ditto.
11144 * monitor.c (monitor_interrupt_query): Ditto.
11145 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11146 * target.h: Update comment.
11147
11148 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11149
11150 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11151
11152 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11153 default_double_format.
11154 * gdbarch.h, gdbarch.c: Re-generate.
11155 * findvar.c (floatformat_unknown): Delete variable definition.
11156 * doublest.h (floatformat_unknown): Delete variable declaration.
11157
11158 2002-02-09 Jim Blandy <jimb@redhat.com>
11159
11160 * stabsread.c (read_type): Add code to parse Sun's syntax for
11161 prototyped function types.
11162
11163 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11164
11165 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11166 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11167
11168 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11169
11170 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11171 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11172 now _initialize_xcoffsolib gets called again and overrides the
11173 commands from solib.c in a native configuration.
11174
11175 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11176
11177 * doublest.c (store_typed_floating): Don't try to return a value.
11178 Fixes PR gdb/290.
11179
11180 2002-02-08 Jim Blandy <jimb@redhat.com>
11181
11182 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11183 is prototyped and has no arguments, print its argument list as
11184 `(void)'.
11185
11186 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11187
11188 * MAINTAINERS (write-after-approval): Add myself.
11189 (paper-trail): I've escaped!
11190
11191 2002-02-08 Christopher Faylor <cgf@redhat.com>
11192
11193 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11194 changes.
11195 (_initialize_check_for_gdb_ini): Ditto.
11196
11197 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11198
11199 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11200 xaprintf -> xasprintf.
11201
11202 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11203
11204 * win32-nat.c: Remove use of printf and sprintf functions.
11205
11206 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11207
11208 * arm-tdep.c (arm_frame_chain_valid): Make static.
11209 (arm_push_arguments): Likewise.
11210 (arm_gdbarch_init): New function.
11211 (_initialize_arm_tdep): Call it.
11212 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11213 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11214 (FRAME_CHAIN_VALID): Delete.
11215 (arm_frame_chain_valid): Delete declaration.
11216 (PUSH_ARGUMENTS): Delete.
11217 (arm_push_arguments): Delete declaration.
11218 (CALL_DUMMY_P): Delete.
11219
11220 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11221 Corinna Vinschen <vinschen@redhat.com>
11222
11223 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11224 on builtin float types.
11225
11226 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * utils.c: Include <curses.h> before "bfd.h".
11229 * tui/tui-hooks.c: Likewise.
11230 * tui/tui.c: Likewise.
11231 * tui/tuiCommand.c: Likewise.
11232 * tui/tuiData.c: Likewise.
11233 * tui/tuiDataWin.c: Likewise.
11234 * tui/tuiDisassem.c: Likewise.
11235 * tui/tuiGeneralWin.c: Likewise.
11236 * tui/tuiIO.c: Likewise.
11237 * tui/tuiLayout.c: Likewise.
11238 * tui/tuiRegs.c: Likewise.
11239 * tui/tuiSource.c: Likewise.
11240 * tui/tuiSourceWin.c: Likewise.
11241 * tui/tuiStack.c: Likewise.
11242 * tui/tuiWin.c: Likewise.
11243
11244 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11245
11246 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11247 to include space for pseudoregs as well. Update loops accordingly.
11248 (sh_fp_frame_init_saved_regs): Ditto.
11249 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11250
11251 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11252
11253 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11254 Add Richard Earnshaw to Arm maintainers.
11255
11256 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11257
11258 * defs.h (warning_begin): Delete declaration.
11259
11260 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11261 Delete macro.
11262
11263 2002-02-07 Michael Snyder <msnyder@redhat.com>
11264
11265 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11266 Logic bug, remove misplaced else.
11267
11268 2002-02-07 Klee Dienes <klee@apple.com>
11269
11270 * fork-inferior.c (fork_inferior): Add '!' to the list of
11271 characters that need to be quoted when building a string for the
11272 shell. Quote '!' specifically with a backslash, since CSH chokes
11273 when trying to evaluate "str!str".
11274
11275 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11276
11277 * rdi-share/host.h: Only provide a typedef for bool if it is not
11278 defined.
11279
11280 2002-02-04 Michael Snyder <msnyder@redhat.com>
11281
11282 * breakpoint.h (enum bptype): Add new overlay event bp type.
11283 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11284
11285 * breakpoint.c (create_internal_breakpoint): New function.
11286 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11287 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11288 (create_thread_event_breakpoint): Ditto.
11289 (create_solib_event_breakpoint): Ditto.
11290 (create_overlay_event_breakpoint): New function.
11291 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11292 (update_breakpoints_after_exec): Delete and re-initialize
11293 overlay event breakpoints after an exec. Add FIXME comment
11294 about longjmp breakpoint.
11295 (print_it_typical): Ignore overlay event breakpoints.
11296 (print_one_breakpoint): Ditto.
11297 (mention): Ditto.
11298 (bpstat_what): Do not stop for overlay event breakpoints.
11299 (delete_breakpoint): Don't delete overlay event breakpoints.
11300 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11301 (breakpoint_re_set): Re-create overlay event breakpoint.
11302
11303 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11304 (overlay_manual_command): Disable overlay breakpoints.
11305 (overlay_off_command): Disable overlay breakpoints.
11306
11307 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11308
11309 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11310 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11311 to here from config/tm-arm.h.
11312 (coff_sym_is_thumb): Make static.
11313 (arm_elf_make_msymbol_special): New function.
11314 (arm_coff_make_msymbol_special): New function.
11315 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11316 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11317 (coff_sym_is_thumb): Delete declaration.
11318 (arm_elf_make_msymbol_special): Declare.
11319 (arm_coff_make_msymbol_special): Declare.
11320 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11321 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11322
11323 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11324
11325 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11326
11327 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11328
11329 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11330 * gdbarch.c gdbarch.h: Regenerate.
11331 * arch-utils.c (default_print_float_info): New function.
11332 * arch-utils.h (default_print_float_info): Prototype it.
11333 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11334 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11335 (PRINT_FLOAT_INFO): Document it.
11336
11337 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11338 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11339 (PRINT_FLOAT_INFO): Define.
11340
11341 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11342
11343 * win32-nat.c (_initialize_check_for_gdb_ini):
11344 Add typecast to sprintf argument to suppress a warning.
11345
11346 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11347
11348 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11349 to allow easier handling of pass state.
11350 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11351 that gives exception name and address.
11352 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11353 and set last_sig value to ourstatus->value.sig. Some missing
11354 exceptions added.
11355 (child_continue): Correctly report continue_status.
11356 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11357 TARGET_SIGNAL_0 (new default value).
11358 (child_resume): consider sig argument passed to decide if
11359 the exception should be passed to debuggee or not.
11360
11361 2002-02-05 Michael Snyder <msnyder@redhat.com>
11362
11363 * regcache.c (fetch_register): Call target_fetch_register
11364 only if we don't call FETCH_PSEUDO_REGISTER.
11365 (store_register): Call target_store_register only if we
11366 don't call STORE_PSEUDO_REGISTER.
11367
11368 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11369
11370 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11371 ELF_MAKE_MSYMBOL_SPECIAL.
11372 * gdbarch.c, gdbarch.h: Regenerate.
11373 * arch-utils.c (default_make_msymbol_special): New function.
11374 * arch-utils.h (default_make_msymbol_special): Export.
11375 * elfread.c (elf_symtab_read): Compile use of
11376 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11377 multiarched.
11378 * coffread.c (coff_symtab_read): Ditto, for
11379 COFF_MAKE_MSYMBOL_SPECIAL.
11380
11381 2002-02-05 Jim Blandy <jimb@redhat.com>
11382
11383 * solib-svr4.c (svr4_truncate_ptr): New function.
11384 (svr4_relocate_section_addresses): Do the address arithmetic with
11385 the appropriate truncation for target addresses, even when
11386 CORE_ADDR is larger than a target address.
11387
11388 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11389
11390 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11391 to (int *).
11392
11393 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11394
11395 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11396 code.
11397
11398 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11399
11400 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11401
11402 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * gdbserver/linux-low.c: Remove unused include files.
11405
11406 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11407
11408 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11409 (read_inferior_memory): Use it.
11410 (write_inferior_memory): Likewise.
11411
11412 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11413
11414 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11415 grubbing through sys_errlist.
11416
11417 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11418
11419 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11420
11421 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11422 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11423
11424 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11425
11426 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11427 (do_sfunc, set_cmd_sfunc): New functions.
11428
11429 * command.h (struct cmd_list_element): Add field func.
11430 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11431 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11432 * cli/cli-decode.h: Ditto.
11433
11434 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11435 (help_all, help_cmd_list): Ditto.
11436 (find_cmd, complete_on_cmdlist): Ditto.
11437 * top.c (execute_command): Ditto.
11438
11439 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11440 function.sfunc.
11441
11442 * infcmd.c (notice_args_read): Fix function signature.
11443
11444 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11445 * cli/cli-decode.c (add_set_cmd): Ditto.
11446 * utils.c (initialize_utils): Ditto.
11447 * maint.c (_initialize_maint_cmds): Ditto.
11448 * infrun.c (_initialize_infrun): Ditto.
11449 * demangle.c (_initialize_demangler): Ditto.
11450 * remote.c (add_packet_config_cmd): Ditto.
11451 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11452 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11453 * proc-api.c (_initialize_proc_api): Ditto.
11454 * kod.c (_initialize_kod): Ditto.
11455 * valprint.c (_initialize_valprint): Ditto.
11456 * top.c (init_main): Ditto.
11457 * infcmd.c (_initialize_infcmd): Ditto.
11458 * corefile.c (_initialize_core): Ditto.
11459 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11460 * arch-utils.c (initialize_current_architecture): Ditto.
11461 (_initialize_gdbarch_utils): Ditto.
11462 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11463
11464 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11465 * wince.c (_initialize_inftarg): Ditto.
11466 * symfile.c (_initialize_symfile): Ditto.
11467 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11468 * language.c (_initialize_language): Ditto.
11469 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11470
11471 2002-02-04 Michael Snyder <msnyder@redhat.com>
11472
11473 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11474
11475 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11476
11477 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11478 Add rules for building the register data files.
11479
11480 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11481
11482 * regformats/regdat.sh: Add braces to the definition of
11483 expedite_regs_${arch}.
11484
11485 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11486
11487 * regformats/regdef.h (struct reg): Add comment describing the
11488 requirements for offset and size fields.
11489
11490 2002-02-04 Andreas Schwab <schwab@suse.de>
11491
11492 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11493 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11494
11495 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11496
11497 * gdbarch.sh (copyright): Update years in generated header.
11498 (SMASH_TEXT_ADDRESS): Add rule.
11499 * gdbarch.h, gdbarch.c: Re-generate.
11500 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11501 * dbxread.c: Likewise.
11502 * dwarfread.c: Likewise.
11503 * elfread.c: Likewise.
11504 * somread.c: Likewise.
11505
11506 * arm-tdep.c (arm_smash_text_address): New function.
11507 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11508
11509 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11510
11511 Add support for hardware watchpoints on win32 native.
11512 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11513 CONTEXT_DEBUG_REGISTERS.
11514 (dr variable): New variable. Static array containing a local copy
11515 of debug registers.
11516 (debug_registers_changed): New variable. Reflects when debug registers
11517 are changed and need to be written to inferior.
11518 (debug_registers_used): New variable. Reflects when any debug register
11519 was set, used when new threads are created.
11520 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11521 i386-nat code.
11522 (thread_rec): Set dr array if id is the thread of current_event .
11523 (child_continue, child_resume): Change the debug registers for all
11524 threads if debug_registers_changed.
11525 (child_add_thread): Change the debug registers if debug_registers_used.
11526 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11527 Link nm.h to new nm-cygwin.h file.
11528 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11529 of hardware registers.
11530
11531 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11532
11533 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11534 Restore behavour broken by 2002-01-20 Andrew Cagney
11535 <ac131313@redhat.com> IEEE_FLOAT removal.
11536
11537 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11538
11539 * c-valprint.c (c_val_print): Pass a proper valaddr to
11540 cp_print_class_method.
11541 * valops.c (search_struct_method): If there is only one method
11542 and args is NULL, return that method.
11543
11544 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11545
11546 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11547 accessing tag_name directly.
11548
11549 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11552 of accessing tag_name directly.
11553
11554 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11555
11556 PR gdb/280
11557 * gdbtypes.c (replace_type): New function.
11558 * gdbtypes.h (replace_type): Add prototype.
11559 * stabsread.c (read_type): Use replace_type.
11560
11561 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11562
11563 * Makefile.in (memattr.o): Add missing dependencies rule.
11564
11565 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11566
11567 * breakpoint.c (break_at_finish_command): Really export.
11568 (break_at_finish_at_depth_command): Ditto.
11569 (tbreak_at_finish_command): Ditto.
11570 * hppa-tdep.c: Include completer.h.
11571 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11572 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11573
11574 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11575
11576 * utils.c (do_write): New function.
11577 (error_stream): Rewrite combining the code from error_begin and
11578 verror.
11579 (verror): Rewrite using error_stream.
11580 (error_begin): Delete function.
11581
11582 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11583
11584 * utils.c (error_begin): Make static.
11585 * defs.h (error_begin): Delete declaration.
11586
11587 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11588 (decode_line_1): Use cplusplus_error instead of error_begin,
11589 cplusplus_hint and return_to_top_level.
11590 * coffread.c (coff_symfile_read): Use error instead of error_begin
11591 and return_to_top_level.
11592 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11593
11594 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11595
11596 * language.h (type_error, range_error): Make string parameter
11597 constant.
11598 * language.c (warning_pre_print): Delete extern declaration.
11599 * dwarfread.c (warning_pre_print): Ditto.
11600 * language.c (type_error, range_error): Rewrite to use verror and
11601 vwarning instead of warning_begin.
11602
11603 2002-02-01 Michael Snyder <msnyder@redhat.com>
11604
11605 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11606 (set_ignore_count): Move misplaced comment back where it belongs.
11607
11608 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11609
11610 * command.h (NO_FUNCTION): Delete macro.
11611 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11612 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11613 * tracepoint.c (_initialize_tracepoint): Ditto.
11614 * cli/cli-decode.c (add_set_cmd): Ditto.
11615 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11616
11617 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11618
11619 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11620 Update ``this'' pointer when calling virtual functions.
11621
11622 2002-02-01 Michael Snyder <msnyder@redhat.com>
11623
11624 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11625 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11626
11627 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11628
11629 * regformats/reg-arm.dat: New file.
11630 * regformats/reg-i386.dat: New file.
11631 * regformats/reg-ia64.dat: New file.
11632 * regformats/reg-m68k.dat: New file.
11633 * regformats/reg-mips.dat: New file.
11634 * regformats/reg-ppc.dat: New file.
11635 * regformats/reg-sh.dat: New file.
11636 * regformats/regdef.h: New file.
11637 * regformats/regdat.sh: New file.
11638
11639 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11640
11641 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11642 (arm_frame_args_address, arm_frame_locals_address): New functions.
11643 (arm_frame_num_args): New function.
11644 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11645 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11646 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11647
11648 2002-01-31 Michael Snyder <msnyder@redhat.com>
11649
11650 * breakpoint.c (break_at_finish_command): Export.
11651 (break_at_finish_at_depth_command): Export.
11652 (tbreak_at_finish_command): Export.
11653 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11654 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11655 "txbreak" commands, which are HPPA specific.
11656
11657 * printcmd.c (disassemble_command): Remove an ancient
11658 artifact of an old merge.
11659
11660 * symfile.h (enum overlay_debugging_state):
11661 Define enum constant values for overlay mode.
11662 * symfile.c (overlay_debugging): Use enums instead of literals.
11663 (overlay_is_mapped, overlay_auto_command,
11664 overlay_manual_command): Ditto.
11665
11666 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11667 breakpoint_here_p, breakpoint_inserted_here_p,
11668 breakpoint_thread_match, bpstat_stop_status,
11669 describe_other_breakpoints, check_duplicates, clear_command):
11670 Coding standard fixes.
11671
11672 * target.c (target_xfer_memory): Add spaces, coding standard.
11673 (do_xfer_memory): Add missing line to trust-readonly
11674 code: check bfd SEC_READONLY flag for section.
11675
11676 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11677
11678 * PROBLEMS: Fix typo, 5.1->5.1.1.
11679
11680 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11681
11682 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11683 data symbols, since we search based on textlow and texthigh.
11684 (find_pc_sect_symtab): Likewise.
11685
11686 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11687
11688 * defs.h (vwarning): Declare.
11689 * utils.c (vwarning): New function.
11690 (warning): Call vwarning.
11691 (warning_begin): Delete function.
11692
11693 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11694 the warning message.
11695 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11696 warning_begin.
11697
11698 2002-01-30 Michael Snyder <msnyder@redhat.com>
11699
11700 * NEWS: Mention "set trust-readonly-sections" command.
11701 Mention generate-core-file command.
11702
11703 2002-01-15 Michael Snyder <msnyder@redhat.com>
11704
11705 * target.c: New command, "set trust-readonly-sections on".
11706 (do_xfer_memory): Honor the suggestion to trust readonly sections
11707 by reading them from the object file instead of from the target.
11708 (initialize_targets): Register command "set trust-readonly-sections".
11709
11710 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11711
11712 * parse.c (target_map_name_to_register): Simplify, search regs and
11713 pseudo-regs using a single loop.
11714
11715 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11716
11717 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11718
11719 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11720
11721 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11722 * config/i386/i386v42mp.mh: Add i387-nat.o .
11723 * i386v4-nat.c: Include i387-nat.h.
11724 (supply_fpregset): Use i387_supply_fsave.
11725 (fill_fpregset): Use i387_fill_fsave.
11726
11727 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11728
11729 * arm-tdep.c (arm_call_dummy_words): Define.
11730 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11731 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11732 (CALL_DUMMY_WORDS): Define.
11733 (arm_call_dummy_words): Declare.
11734 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11735 (arm_linux_call_dummy_words): Declare.
11736
11737 2002-01-30 Andreas Schwab <schwab@suse.de>
11738
11739 * m68klinux-nat.c: Fix last change to use regcache_collect
11740 instead of referencing registers[] directly.
11741
11742 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11743
11744 * parse.c (target_map_name_to_register): Delete code wrapped in
11745 #ifdef REGISTER_NAME_ALIAS_HOOK.
11746
11747 2002-01-28 Michael Snyder <msnyder@redhat.com>
11748
11749 * regcache.c (legacy_read_register_gen): Need to be able to
11750 read pseudo-register as well as real register.
11751 (legacy_write_register_gen): Ditto.
11752
11753 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11754
11755 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11756 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11757 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11758 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11759 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11760 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11761 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11762 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11763 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11764 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11765 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11766 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11767 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11768 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11769 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11770 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11771 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11772 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11773 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11774 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11775
11776 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11777
11778 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11779 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11780 (initialize_current_architecture): Update target_byte_order using
11781 information from BFD.
11782 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11783 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11784
11785 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11786
11787 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11788 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11789
11790 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11791 #ifdef INVALID_FLOAT.
11792 * infcmd.c (do_registers_info): Ditto.
11793 * values.c (unpack_double): Ditto. Add comment.
11794
11795 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11796 already commented out.
11797
11798 2002-01-26 Andreas Schwab <schwab@suse.de>
11799
11800 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11801 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11802 registers and add support for PTRACE_GETREGS.
11803
11804 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11805
11806 GDB 5.1.1 released from 5.1 branch.
11807 * NEWS: Add 5.1.1 news.
11808 * README: Sync with 5.1 branch.
11809
11810 2002-01-23 Fred Fish <fnf@redhat.com>
11811
11812 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11813 stabstring on initial malloc. Reallocing will copy it for us,
11814 if necessary.
11815
11816 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11817
11818 * Makefile.in (hpread_h): Delete.
11819 (HFILES_NO_SRCDIR): Remove hpread.h.
11820 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11821 (hpread.o): Update dependencies.
11822 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11823
11824 * hp-psymtab-read.c: Remove file.
11825 * hp-symtab-read.c: Remove file.
11826 * hpread.h: Remove file.
11827
11828 * hpread.c: Merge all contents of hp-psymtab-read.c,
11829 hp-symtab-read.c and hpread.h into this file, as it was prior to
11830 January 1999.
11831
11832 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11833 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11834 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11835 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11836
11837 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11840 fill_gregset): Call gdbarch_tdep() just once, assign result to
11841 variable and use that, instead of calling the function several
11842 times.
11843
11844 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11845
11846 * configure.host: Accept sparcv9 as alias for sparc64.
11847 * configure.tgt: Likewise.
11848
11849 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11850
11851 * solib-aix5.c (build_so_list_from_mapfile)
11852 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11853 arguments is not reversed.
11854 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11855 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11856
11857 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11858
11859 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11860 modified version of obsolete sh_fetch_pseudo_register.
11861 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11862 (sh4_register_read): New function.
11863 (sh_pseudo_register_write): New function. Renamed and modified
11864 version of obsolete sh_store_pseudo_register.
11865 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11866 (sh4_register_write): New function.
11867 (sh_gdbarch_init): Remove setting of gdbarch function
11868 fetch_pseudo_register and store_pseudo_register. Remove setting of
11869 register_convert_to_raw, register_convert_to_virtual,
11870 register_convertible.
11871 (sh_sh4_register_convertible): Delete. No longer needed. All is
11872 taken care by architecture specific functions
11873 register_read/register_write.
11874 (sh_sh4_register_convert_to_virtual): Make static.
11875 (sh_sh4_register_convert_to_raw): Ditto.
11876
11877 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11878
11879 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11880 (floatformat_is_nan, floatformat_mantissa): Ditto.
11881
11882 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11883 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11884 builtin_type_ieee_double_little,
11885 builtin_type_ieee_double_littlebyte_bigword,
11886 builtin_type_m68881_ext, builtin_type_i960_ext,
11887 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11888 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11889 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11890 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11891
11892 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11893
11894 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11895 parameter. Set frameless flag if it exists and depended of
11896 whether the scanned function is frameless or not.
11897 (xstormy16_skip_prologue): If function is frameless, return
11898 result of xstormy16_scan_prologue().
11899 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11900 call.
11901
11902 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11903
11904 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11905 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11906 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11907 sh_sh4_register_byte, sh_sh4_register_raw_size,
11908 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11909 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11910 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11911 sh_store_pseudo_register, sh_do_pseudo_register): Call
11912 gdbarch_tdep() just once, assign result to variable and use that,
11913 instead of calling the function several times.
11914
11915 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11916
11917 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11918 macros instead of LAST_FPU_CTRL_REGNUM.
11919 (store_register): Likewise.
11920
11921 2002-01-21 Jim Blandy <jimb@redhat.com>
11922
11923 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11924 is up-to-date before running the program, not just when a program
11925 exits.
11926
11927 2002-01-21 Fred Fish <fnf@redhat.com>
11928
11929 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11930 when we have found all instructions we are looking for.
11931
11932 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11933
11934 * arm-tdep.c (arm_register_name): New function.
11935 (arm_registers_names): Make static.
11936 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11937 (arm_register_name): Declare.
11938 (REGISTER_NAME): Use it.
11939
11940 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11941 Kevin Buettner <kevinb@redhat.com>
11942
11943 Convert arm targets to new FRAME interface.
11944 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11945 (arm_frame_find_save_regs): Delete.
11946 (arm_frame_init_saved_regs): New.
11947 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11948 Allocate extra_info as required. Convert all uses of fsr.regs
11949 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11950 to use extra_info.
11951 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11952 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11953 (check_prologue_cache, save_prologue_cache): Likewise.
11954 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11955 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11956 (FRAME_FIND_SAVED_REGS): Delete.
11957 (arm_frame_find_saved_regs): Delete prototype.
11958 (arm_frame_init_saved_regs): New prototype.
11959 (FRAME_INIT_SAVED_REGS): Define.
11960
11961 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11962
11963 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11964
11965 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11966
11967 From Jeff Law <law@redhat.com>:
11968 * infttrace.c: Include <sys/pstat.h>.
11969 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11970 exec file if the ttrace equivalent fails.
11971
11972 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11973
11974 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11975 (closeLogFile): Ditto.
11976
11977 2002-01-20 Michael Chastain <mec@shout.net>
11978
11979 * top.c (print_gdb_version): Bump copyright year to 2002.
11980
11981 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11982
11983 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11984 Zannoni and Eli Zaretskii.
11985
11986 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11987
11988 * buildsym.c: Update copyright years.
11989 * c-typeprint.c: Likewise.
11990 * dwarf2read.c: Likewise.
11991 * f-typeprint.c: Likewise.
11992 * gdbtypes.c: Likewise.
11993 * gdbtypes.h: Likewise.
11994 * hp-symtab-read.c: Likewise.
11995 * hpread.c: Likewise.
11996 * mdebugread.c: Likewise.
11997 * p-typeprint.c: Likewise.
11998
11999 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12000
12001 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12002 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12003 byte-order selectable.
12004 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12005 * arch-utils.c: Ditto.
12006 (set_endian): Ditto.
12007 (set_endian_from_file): Ditto.
12008 * gdbserver/low-sim.c (create_inferior): Ditto.
12009 * gdbarch.sh: Ditto.
12010 * gdbarch.h: Re-generate.
12011 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12012 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12013 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12014 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12015 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12016 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12017 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12018 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12019 macro definition.
12020 * config/mips/tm-wince.h: Remove #undef of macro
12021 TARGET_BYTE_ORDER_SELECTABLE.
12022 * config/sh/tm-wince.h: Ditto.
12023
12024 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12027 member function fields. Add accessor macro
12028 TYPE_FN_FIELD_ARTIFICIAL.
12029 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12030 * c-typeprint.c (c_type_print_base): Skip artificial member
12031 functions.
12032
12033 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12034
12035 * f-typeprint.c: Delete unused function f_type_print_args.
12036 * p-typeprint.c: Delete unused function pascal_type_print_args.
12037
12038 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12041 comment. Add ``artificial'' to ``union field_location''.
12042
12043 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12044
12045 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12046 * mdebugread.c (parse_symbol): Likewise.
12047 * stabsread.c (define_symbol): Likewise.
12048 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12049 initializing TYPE_FIELD_BITPOS to n (obsolete).
12050 (hpread_doc_function_type): Likewise.
12051 * hpread.c (hpread_function_type): Likewise.
12052
12053 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12054
12055 * configure.in (host_makefile_frag): Only require a host makefile
12056 fragment when a native build.
12057 * configure: Re-generate.
12058
12059 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12060
12061 * doublest.h (floatformat_from_type): Declare.
12062 * doublest.c (floatformat_from_type): New function.
12063 (convert_typed_floating): Use.
12064
12065 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12066 call to function floatformat_from_type.
12067
12068 * gdbarch.sh (IEEE_FLOAT): Delete.
12069 * gdbarch.h, gdbarch.c: Re-generate.
12070 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12071 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12072 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12073 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12074 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12075 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12076 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12077 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12078 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12079 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12080 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12081 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12082
12083 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12084 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12085 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12086 * sh-tdep.c (sh_gdbarch_init): Ditto.
12087 * mips-tdep.c (mips_gdbarch_init): Ditto.
12088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12089 * cris-tdep.c (cris_gdbarch_init): Ditto.
12090
12091 2002-01-20 Jiri Smid <smid@suse.cz>
12092
12093 * configure.host, configure.tgt: Support x86-64.
12094 * NEWS: Note new target x86-64.
12095
12096 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12097 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12098 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12099 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12100 x86-64-linux-nat.o): Fix dependencies.
12101
12102 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12103
12104 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12105 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12106 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12107 * config/sparc/xm-sun4os4.h: Delete file.
12108 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12109
12110 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12111
12112 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12113 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12114 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12115 * config/i386/i386lynx.mh (XM_FILE): Delete.
12116 * config/rs6000/xm-rs6000ly.h: Delete file.
12117 * config/sparc/xm-sparclynx.h: Delete file.
12118 * config/m68k/xm-m68klynx.h: Delete file.
12119 * config/i386/xm-i386lynx.h: Delete file.
12120 * config/xm-lynx.h: Delete file.
12121 * config/djgpp/fnchange.lst: Update.
12122
12123 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12124
12125 * alpha-tdep.c (alpha_register_byte): New function.
12126 (alpha_register_raw_size): Ditto.
12127 (alpha_register_virtual_size): Ditto.
12128 (alpha_skip_prologue_internal): Renamed from
12129 alpha_skip_prologue.
12130 (alpha_skip_prologue): New version that calls
12131 alpha_skip_prologue_internal.
12132 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12133 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12134 second argument from alpha_skip_prologue.
12135 (REGISTER_BYTE): Use alpha_register_byte.
12136 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12137 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12138 (FRAMELESS_FUNCTION_INVOCATION): Use
12139 generic_frameless_function_invocation_not.
12140 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12141 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12142
12143 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12144
12145 * config/mips/xm-news-mips.h: Delete file.
12146 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12147
12148 * config/m88k/xm-m88k.h: Delete file.
12149 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12150 * config/m88k/xm-delta88v4.h: Ditto.
12151 * config/m88k/xm-delta88.h: Ditto.
12152
12153 * config/alpha/xm-fbsd.h: Delete file.
12154 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12155
12156 * config/sparc/xm-sparc.h: Delete file.
12157 * Makefile.in (xm-sun4os4.h): Delete dependency.
12158 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12159 * config/sparc/xm-sun4os4.h: Ditto.
12160 * config/sparc/xm-linux.h: Ditto.
12161
12162 * config/i386/xm-windows.h: Delete file.
12163
12164 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12165
12166 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12167 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12168
12169 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12170
12171 * alpha-tdep.c (alpha_call_dummy_words): New.
12172 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12173 (CALL_DUMMY_P): Define.
12174 (CALL_DUMMY_WORDS): Define.
12175 (SIZEOF_CALL_DUMMY_WORDS): Define.
12176
12177 2002-01-19 Per Bothner <per@bothner.com>
12178
12179 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12180 isn't NULL, which can happen with some gcj-3.x-produced code.
12181
12182 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12183
12184 * alpha-tdep.c (alpha_register_virtual_type): New function.
12185 (alpha_init_frame_pc_first): Ditto.
12186 (alpha_fix_call_dummy): Ditto.
12187 (alpha_store_struct_return): Ditto.
12188 (alpha_extract_struct_value_address): Ditto.
12189 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12190 alpha_register_virtual_type.
12191 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12192 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12193 alpha_extract_struct_value_address.
12194 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12195 (INIT_FRAME_PC): Use init_frame_pc_noop.
12196 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12197
12198 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12199
12200 * i386gnu-nat.c: Include "i386-tdep.h".
12201 (fetch_fpregs): Simplify code dealing with uninitialized floating
12202 point states such that it doesn't require FP7_REGNUM.
12203
12204 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12205
12206 * alpha-tdep.c (frame_extra_info): New.
12207 (alpha_find_saved_regs): Make static. Use
12208 frame->extra_info.
12209 (alpha_frame_init_saved_regs): New function.
12210 (alpha_frame_saved_pc): Use frame->extra_info.
12211 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12212 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12213 (init_extra_frame_info): Rename to...
12214 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12215 (alpha_print_extra_frame_info): New function.
12216 (alpha_frame_locals_address): Ditto.
12217 (alpha_frame_args_address): Ditto.
12218 (alpha_pop_frame): Use frame->extra_info.
12219 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12220 alpha_frame_args_address.
12221 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12222 (alpha_find_saved_regs): Remove prototype.
12223 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12224 (EXTRA_FRAME_INFO): Remove.
12225 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12226 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12227
12228 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12229
12230 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12231 (alpha_cannot_fetch_register): Ditto.
12232 (alpha_cannot_store_register): Ditto.
12233 (alpha_register_convertible): Ditto.
12234 (alpha_use_struct_convention): Ditto.
12235 * config/alpha/tm-alpha.h: Update copyright years.
12236 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12237 (INNER_THAN): Use core_addr_lessthan.
12238 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12239 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12240 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12241 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12242 (FRAME_CHAIN): Remove unnecessary cast.
12243
12244 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12245
12246 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12247 obsolete.
12248
12249 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12250
12251 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12252 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12253 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12254 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12255 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12256 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12257 * x86-64-linux-nat.c: Ditto.
12258
12259 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12260
12261 * alpha-tdep.c (alpha_register_name): New function.
12262 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12263 (REGISTER_NAME): Define.
12264
12265 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12266
12267 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12268
12269 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12270
12271 * alpha-tdep.c: Update copyright years.
12272 (alpha_next_pc): New function.
12273 (alpha_software_single_step): Ditto.
12274 * config/alpha/tm-alpha.h: Add prototype for
12275 alpha_software_single_step.
12276
12277 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12278
12279 * alphabsd-nat.c: Update copyright years.
12280 (fill_gregset): Use regcache_collect.
12281 (fill_fpregset): Likewise.
12282 (fetch_inferior_registers): Only fetch integer registers
12283 if requested to do so.
12284 (store_inferior_registers): Only store integer registers
12285 if requested to do so.
12286
12287 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12288
12289 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12290 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12291 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12292 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12293 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12294 * config/arm/linux.mh (XDEPFILES): Delete.
12295 * config/arm/nbsd.mh (XDEPFILES): Delete.
12296 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12297 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12298 * config/i386/i386m3.mh (XDEPFILES): Delete.
12299 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12300 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12301 * config/i386/fbsd.mh (XDEPFILES): Delete.
12302 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12303 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12304 * config/i386/i386v4.mh (XDEPFILES): Delete.
12305 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12306 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12307 * config/i386/i386aix.mh (XDEPFILES): Delete.
12308 * config/i386/go32.mh (XDEPFILES): Delete.
12309 * config/i386/cygwin.mh (XDEPFILES): Delete.
12310 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12311 * config/i386/i386mach.mh (XDEPFILES): Delete.
12312 * config/i386/i386v32.mh (XDEPFILES): Delete.
12313 * config/i386/linux.mh (XDEPFILES): Delete.
12314 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12315 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12316 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12317 * config/i386/i386sco.mh (XDEPFILES): Delete.
12318 * config/i386/i386v.mh (XDEPFILES): Delete.
12319 * config/i386/nbsd.mh (XDEPFILES): Delete.
12320 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12321 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12322 * config/i386/symmetry.mh (XDEPFILES): Delete.
12323 * config/i386/obsd.mh (XDEPFILES): Delete.
12324 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12325 * config/ia64/linux.mh (XDEPFILES): Delete.
12326 * config/ia64/aix.mh (XDEPFILES): Delete.
12327 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12328 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12329 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12330 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12331 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12332 * config/m68k/linux.mh (XDEPFILES): Delete.
12333 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12334 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12335 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12336 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12337 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12338 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12339 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12340 * config/m88k/delta88.mh (XDEPFILES): Delete.
12341 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12342 * config/m88k/m88k.mh (XDEPFILES): Delete.
12343 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12344 * config/mips/linux.mh (XDEPFILES): Delete.
12345 * config/mips/irix6.mh (XDEPFILES): Delete.
12346 * config/mips/irix5.mh (XDEPFILES): Delete.
12347 * config/mips/irix4.mh (XDEPFILES): Delete.
12348 * config/mips/irix3.mh (XDEPFILES): Delete.
12349 * config/mips/decstation.mh (XDEPFILES): Delete.
12350 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12351 (NATDEPFILES): Move core-aout.o to here.
12352 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12353 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12354 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12355 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12356 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12357 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12358 * config/pa/hpux11.mh (XDEPFILES): Delete.
12359 * config/powerpc/aix.mh (XDEPFILES): Delete.
12360 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12361 * config/powerpc/linux.mh (XDEPFILES): Delete.
12362 * config/romp/rtbsd.mh: Rename XDEPFILES.
12363 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12364 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12365 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12366 * config/s390/s390.mh (XDEPFILES): Delete.
12367 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12368 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12369 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12370 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12371 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12372 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12373 * config/sparc/linux.mh (XDEPFILES): Delete.
12374 * config/vax/vaxult.mh (XDEPFILES): Delete.
12375 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12376 * Makefile.in (DEPFILES): Remove XDEPFILES.
12377
12378 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12379
12380 * utils.c (internal_verror): Fix comments, default is yes not no.
12381 Update queries to match. Default to quit and dump core.
12382
12383 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12384
12385 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12386 copyright.
12387 * defs.h, event-top.c, gdbcmd.h: Ditto.
12388 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12389 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12390 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12391 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12392 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12393 * mi/mi-main.c:Ditto.
12394
12395 * stack.c, symfile.c: Update copyright.
12396
12397 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12398
12399 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12400 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12401 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12402 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12403
12404 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12407 * gdbserver/low-lynx.c (myattach): Likewise.
12408 * gdbserver/low-nbsd.c (myattach): Likewise.
12409 * gdbserver/low-sim.c (myattach): Likewise.
12410 * gdbserver/low-sparc.c (myattach): Likewise.
12411 * gdbserver/low-sun3.c (myattach): Likewise.
12412
12413 * gdbserver/low-linux.c (myattach): New function.
12414
12415 * gdbserver/server.c (attach_inferior): New function.
12416 (main): Handle "--attach".
12417
12418 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12419
12420 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12421 maintainer.
12422
12423 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12424
12425 * c-typeprint.c (is_type_conversion_operator): Add additional
12426 check for non-conversion operators.
12427
12428 2002-01-15 Michael Snyder <msnyder@redhat.com>
12429
12430 * linux-proc.c: Add "info proc" command, a la procfs.c.
12431 (read_mapping): New function, abstract and re-use code.
12432 (linux_find_memory_regions): Use new func read_mapping.
12433 (linux_info_proc_cmd): New function, implement "info proc".
12434 (_initialize_linux_proc): Add new command "info proc".
12435
12436 2002-01-15 Michael Snyder <msnyder@redhat.com>
12437
12438 * symfile.c (generic_load): Use bfd_map_over_sections method
12439 instead of manipulating bfd structure members directly.
12440 (add_section_size_callback): New function, bfd sections callback
12441 used by generic_load.
12442 (load_sections_callback): New function, bfd sections callback
12443 used by generic_load.
12444
12445 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12446
12447 [Based on work by Jim Blandy]
12448 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12449 (builtin_type_vec128): Export.
12450 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12451 types.
12452 (builtin_type_vec128): New builtin type for 128 bit vector
12453 registers.
12454 (build_gdbtypes): Initialize builtin_type_v16qi and
12455 builtin_type_v8hi. Create the vec128 register builtin type
12456 structure.
12457 (build_builtin_type_vec128): New function.
12458 (_initialize_gdbtypes): Register builtin_type_v16qi and
12459 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12460 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12461 AltiVec register to new builtin type.
12462
12463 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12464
12465 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12466 to make_cv_type.
12467
12468 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12469
12470 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12471 CLEAN_UP_REGISTER_VALUE.
12472 * regcache.c (supply_register): Update only call.
12473
12474 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12475
12476 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12477 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12478 a29k-*-vxworks* targets as obsolete.
12479
12480 2002-01-14 Michael Snyder <msnyder@redhat.com>
12481
12482 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12483 until we can resolve portability issues.
12484 * gregset.h: Remove references to fpxregs.
12485 * gcore.c (gcore_command): Initialize note_sec to NULL.
12486
12487 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12488
12489 * signals.c (target_signal_to_name): Rewrite. Only use
12490 signals[].name when in bounds and non-NULL.
12491
12492 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12493
12494 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12495 * signals.c (target_signal_to_name): Verify that SIG is within the
12496 bounds of the signals array.
12497
12498 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12499
12500 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12501
12502 2002-01-13 Keith Seitz <keiths@redhat.com>
12503
12504 * stack.c (print_frame_info_base): Print the frame's pc
12505 only if when print_frame_info_listing_hook is not defined.
12506
12507 2002-01-13 Keith Seitz <keiths@redhat.com>
12508
12509 * varobj.c (varobj_set_value): Make sure that there were no
12510 errors evaluating the object before attempting to set its
12511 value.
12512 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12513 so this offset adjustment is no longer necessary.
12514 (create_child): Don't set the error flag if the child is
12515 a CPLUS_FAKE_CHILD.
12516 (value_of_child): If value_fetch_lazy fails, return NULL
12517 so that callers will be notified that an error occurred.
12518 (c_value_of_variable): Delay check of variable's validity
12519 until later. We actually want all structs and unions to have
12520 the value "{...}".
12521 Do not return "???" for variables which could not be evaluated.
12522 This error condition must be returned to the caller so that it
12523 can get the error condition from gdb.
12524 (cplus_name_of_child): Adjust index for vptr before figuring
12525 out the name of the child.
12526 (cplus_value_of_child): If a child's (real) parent is not valid,
12527 don't even bother trying to give a value for it. Just return
12528 an error. Change all instances in this function.
12529 (cplus_type_of_child): If our parent is one of the "fake"
12530 parents, we need to get at the type of the real parent, and
12531 derive the child's true type using this information.
12532
12533 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12534
12535 From 2002-01-09 John Marshall <johnm@falch.net>:
12536 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12537 sources.redhat.com, and tweak some related URLs which had
12538 suffered from linkrot.
12539
12540 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12541
12542 From Jeff law:
12543 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12544 structures passed in registers.
12545
12546 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12547
12548 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12549 white space which prevented compilation. Reported by DSK
12550 <dsk@student.unsw.edu.au>.
12551
12552 2002-01-11 Michael Snyder <msnyder@redhat.com>
12553
12554 * symfile.c (build_section_addr_info_from_section_tab):
12555 Use bfd access method instead of manipulating bfd directly.
12556 (syms_from_objfile): Ditto.
12557 (simple_overlay_update_1): Ditto.
12558 (simple_overlay_update): Ditto.
12559 (generic_load): Ditto.
12560 (overlay_unmapped_address): FIXME comment, bfd access methods.
12561 (sections_overlap): FIXME comment, bfd access methods.
12562 (pc_in_mapped_range): FIXME comment, bfd access methods.
12563 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12564 (section_is_mapped): FIXME comment, bfd access methods.
12565 (section_is_overlay): FIXME comment, bfd access methods.
12566
12567 * symfile.c (generic_load): Whitespace and long line cleanups.
12568 Remove duplicate variable, change several local variables to
12569 more appropriate data types.
12570 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12571
12572 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12573
12574 From Peter Schauer:
12575 * language.c (longest_local_hex_string_custom): Use phex_nz to
12576 convert NUM to a hex string.
12577
12578 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12579
12580 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12581 the function.
12582 Update Copyright year.
12583
12584 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12585
12586 * language.c (longest_raw_hex_string): Delete unused function.
12587
12588 2002-01-11 Petr Sorfa <petrs@caldera.com>
12589
12590 * MAINTAINERS (write-after-approval): Add myself.
12591 * dwarf2read.c (read_tag_string_type): Handling of
12592 DW_AT_byte_size.
12593 (read_tag_string_type): FORTRAN fix to prevent propagation of
12594 first string size.
12595 (set_cu_language): Handling of DW_LANG_Fortran95
12596
12597 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12598
12599 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12600 GETPID(inferior_ptid).
12601 (store_inferior_registers): Likewise.
12602
12603 2002-01-10 Jason Merrill <jason@redhat.com>
12604
12605 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12606 Fix DW_OP_minus.
12607
12608 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12609
12610 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12611 and bfd/elf32-sh-nbsd.c.
12612
12613 2002-01-10 Michael Snyder <msnyder@redhat.com>
12614
12615 * NEWS: Mention --pid and corefile/proc-id behavior change.
12616
12617 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12618 * gcore.c: Include cli/cli-decode.h instead of command.h.
12619
12620 * main.c (captured_main): Add new command line option "--pid".
12621 If the second command line argument (following the symbol-file)
12622 begins with a digit, try to attach to it before trying to open
12623 it as a corefile.
12624 (print_gdb_help): Document the "--pid" argument.
12625
12626 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12627
12628 * completer.c (command_completer): New function.
12629
12630 * completer.h <command_completer>: Add prototype.
12631
12632 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12633 completer for the "help" command.
12634
12635 2002-01-09 Jason Merrill <jason@redhat.com>
12636
12637 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12638
12639 2002-01-09 Michael Snyder <msnyder@redhat.com>
12640
12641 * i386-linux-nat.c (fill_fpxregset): Make global.
12642 (store_fpxregset): Ditto.
12643
12644 * gregset.h (gdb_fpxregset_t): Define.
12645 (supply_fpxregset): Prototype.
12646 (fill_fpxregset): Prototype.
12647
12648 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12649
12650 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12651
12652 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12653 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12654 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12655
12656 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12657
12658 * MAINTAINERS: Update target maintainer rules so that any
12659 Maintainer can approve a tested patch for a maintenance-only
12660 target.
12661
12662 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12663
12664 * MAINTAINERS (write-after-approval): Add myself.
12665
12666 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12667 IN_SIGTRAMP.
12668
12669 2002-01-08 Michael Snyder <msnyder@redhat.com>
12670
12671 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12672 real name of the executable, rather than the /proc name.
12673
12674 2002-01-03 Michael Snyder <msnyder@redhat.com>
12675
12676 Implement a "generate-core-file" command in gdb, save target state.
12677 * gcore.c: New file. Implement new command 'generate-core-file'.
12678 Save a corefile image of the current state of the inferior.
12679 * linux-proc.c: Add linux-specific code for saving corefiles.
12680 * target.h (struct target_ops): Add new target vectors for saving
12681 corefiles; to_find_memory_regions and to_make_corefile_notes.
12682 (target_find_memory_regions): New macro.
12683 (target_make_corefile_notes): New macro.
12684 * target.c (update_current_target): Inherit new target methods.
12685 (dummy_find_memory_regions): New place-holder method.
12686 (dummy_make_corefile_notes): New place-holder method.
12687 (init_dummy_target): Initialize new dummy target vectors.
12688 * exec.c (exec_set_find_memory_regions): New function.
12689 Allow the exec_ops vector for memory regions to be taken over.
12690 (exec_make_note_section): New function, target vector method.
12691 * defs.h (exec_set_find_memory_regions): Export prototype.
12692 * procfs.c (proc_find_memory_regions): New function, corefile method.
12693 (procfs_make_note_section): New function, corefile method.
12694 (init_procfs_ops): Set new target vector pointers.
12695 (find_memory_regions_callback): New function.
12696 (procfs_do_thread_registers): New function.
12697 (procfs_corefile_thread_callback): New function.
12698 * sol-thread.c (sol_find_memory_regions): New function.
12699 (sol_make_note_section): New function.
12700 (init_sol_thread_ops): Initialize new target vectors.
12701 * inftarg.c (inftarg_set_find_memory_regions): New function.
12702 Allow to_find_memory_regions vector to be taken over.
12703 (inftarg_set_make_corefile_notes): New function.
12704 Allow to_make_corefile_notes vector to be taken over.
12705 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12706 interface layer if not target_has_execution (may be a corefile).
12707 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12708 * config/sparc/sun4sol2.mh: Ditto.
12709 * config/alpha/alpha-linux.mh: Ditto.
12710 * config/arm/linux.mh: Ditto.
12711 * config/i386/x86-64linux.mh: Ditto.
12712 * config/ia64/linux.mh: Ditto.
12713 * config/m68k/linux.mh: Ditto.
12714 * config/mips/linux.mh: Ditto.
12715 * config/powerpc/linux.mh: Ditto.
12716 * config/sparc/linux.mh: Ditto.
12717
12718 2002-01-07 Michael Snyder <msnyder@redhat.com>
12719
12720 * arm-linux-nat.c: Remove references to regcache.c internal data
12721 (registers[] and register_valid[]).
12722
12723 2002-01-07 Michael Snyder <msnyder@redhat.com>
12724
12725 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12726 so that attaching to a pid will automatically read the process's
12727 symbol file and shlibs.
12728 * Makefile.in: Add rule for linux-proc.o.
12729 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12730 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12731 * config/arm/linux.mh: Ditto.
12732 * config/i386/linux.mh: Ditto.
12733 * config/i386/x86-64linux.mh: Ditto.
12734 * config/ia64/linux.mh: Ditto.
12735 * config/m68k/linux.mh: Ditto.
12736 * config/mips/linux.mh: Ditto.
12737 * config/powerpc/linux.mh: Ditto.
12738 * config/sparc/linux.mh: Ditto.
12739
12740 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12741
12742 * win32-nat.c: Add i386-tdep.h dependency.
12743
12744 2002-01-07 Michael Snyder <msnyder@redhat.com>
12745
12746 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12747 instead of bfd_get_arch_size. Don't bail out just because
12748 there's no exec_bfd.
12749
12750 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12751 * p-valprint.c (pascal_object_print_value): Ditto.
12752 * somread.c (som_symtab_read): Ditto.
12753 * symfile.c (simple_free_overlay_region_table): Ditto.
12754 * valops.c (value_assign): Ditto.
12755
12756 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12757 use tilde_expand and strerror for opening save-tracepoints file.
12758
12759 * thread-db.c (thread_db_new_objfile): Indendation fix.
12760
12761 * infptrace.c (GDB_MAX_ALLOCA): New define.
12762 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12763 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12764 can be overridden with whatever value is appropriate to the host).
12765 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12766 alloca to allocate potentially large buffer.
12767 * rs6000-nat.c (child_xfer_memory): Ditto.
12768 * symm-nat.c (child_xfer_memory): Ditto.
12769 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12770
12771 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12772
12773 From Nick Clifton <nickc@redhat.com>
12774 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12775
12776 2002-01-07 Michael Snyder <msnyder@redhat.com>
12777
12778 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12779 Don't use exec_bfd if it's NULL.
12780
12781 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12782
12783 * valops.c (value_arg_coerce): Fix formatting.
12784
12785 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12786
12787 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12788 * gnu-nat.c: Ditto.
12789
12790 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12791
12792 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12793 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12794 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12795 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12796 z8k-coff have not been multi-arched. Update z8k-coff build
12797 status.
12798
12799 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12800
12801 * MAINTAINERS: Mark a29k target as obsolete.
12802 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12803 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12804 comments.
12805 * NEWS: Note that a29k targets are obsolete.
12806 * a29k-tdep.c: Mark as obsolete.
12807 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12808 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12809 a29k-*-vxworks* targets as obsolete.
12810 * remote-adapt.c: Obsolete.
12811 * remote-eb.c: Obsolete.
12812 * remote-mm.c: Obsolete.
12813 * remote-udi.c: Obsolete.
12814 * config/a29k/a29k-udi.mt: Obsolete.
12815 * config/a29k/a29k.mt: Obsolete.
12816 * config/a29k/tm-a29k.h: Obsolete.
12817 * config/a29k/tm-vx29k.h: Obsolete.
12818 * config/a29k/vx29k.mt: Obsolete.
12819
12820 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12821
12822 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12823 with BFD_ENDIAN_BIG.
12824
12825 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12826
12827 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12828 * configure, config.in: Re-generate.
12829 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12830 * defs.h: Do not include <endian.h>.
12831
12832 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12833
12834 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12835 * config.in: Regenerate.
12836 * configure.in: Update copyright years.
12837 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12838 * configure: Regenerate.
12839 * i386bsd-nat.c: Update copyright years.
12840 (fill_gregset): Use regcache_collect.
12841 (fetch_inferior_registers): Only fetch integer registers
12842 if requested to do so. Add support for XMM registers
12843 using PT_GETXMMREGS.
12844 (store_inferior_registers): Only store integer registers
12845 if requested to do so. Add support for XMM registers
12846 using PT_SETXMMREGS.
12847 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12848 (store_inferior_registers): Remove.
12849 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12850 (fetch_elfcore_registers): New function.
12851 (i386nbsd_elfcore_fns): New.
12852 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12853 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12854 i386bsd-nat.o.
12855 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12856 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12857 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12858 * config/i386/tm-nbsd.h: Update copyright years.
12859 (HAVE_SSE_REGS): Define.
12860 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12861 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12862 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12863 (SIGCONTEXT_PC_OFFSET): Remove.
12864 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12865
12866 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12867
12868 * configure.tgt: Remove powerpc-*-macos* target.
12869 * config/m68k/xm-mpw.h: Delete file.
12870 * config/xm-mpw.h: Delete file.
12871 * ser-mac.c: Delete file.
12872 * mpw-make.sed: Delete file.
12873 * mpw-config.in: Delete file.
12874 * mac-xdep.c: Delete file.
12875 * mac-gdb.r: Delete file.
12876 * mac-defs.h: Delete file.
12877 * mac-nat.c: Delete file.
12878 * config/powerpc/macos.mh: Delete file.
12879 * config/powerpc/macos.mt: Delete file.
12880 * config/powerpc/nm-macos.h: Delete file.
12881 * config/powerpc/tm-macos.h: Delete file.
12882 * source.c (openp, open_source_file): Remove obsolete code.
12883 * top.c (gdb_readline): Ditto.
12884 * utils.c (query): Ditto.
12885 * event-top.c (display_gdb_prompt): Ditto.
12886 * Makefile.in (ser-mac.o): Delete obsolete target.
12887 * NEWS: Update.
12888
12889 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12890
12891 * defs.h (BIG_ENDIAN): Delete macro definition.
12892 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12893 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12894 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12895 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12896 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12897 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12898 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12899 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12900 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12901 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12902 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12903 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12904 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12905 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12906 * gdbarch.c: Re-generate.
12907
12908 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12909
12910 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12911 for core files.
12912
12913 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12914
12915 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12916
12917 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12918
12919 * value.h (value_ptr): Delete typedef.
12920
12921 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12922
12923 * i386nbsd-nat.c: Update copyright years.
12924 Include i386-tdep.h.
12925
12926 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12927
12928 * stabsread.c: Update copyright years.
12929
12930 From Debashis Mahata <debashis.mahata@wipro.com>:
12931 (read_struct_fields): Deal with Sun C compiler erroneous stab
12932 output for structs and unions.
12933 Fix PR gdb/269.
12934
12935 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12936
12937 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12938 prototype.
12939
12940 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12941
12942 * cp-abi.c: Fix whitespace.
12943 (baseclass_offset): New wrapper function.
12944 * cp-abi.h (baseclass_offset): Add prototype.
12945 (struct cp_abi_ops): Add baseclass_offset pointer.
12946
12947 * valops.c (vb_match): Move to...
12948 * gnu-v2-abi.c (vb_match): here.
12949 * valops.c (baseclass_offset): Move to...
12950 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12951
12952 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12953
12954 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12955 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12956 * hpacc-abi.c (init_hpacc_ops): Likewise.
12957
12958 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12959
12960 * valops.c (find_overload_match): Accept obj as a
12961 reference parameter. Update it before returning.
12962 * value.h (find_overload_match): Update prototype.
12963 * eval.c (evaluate_subexp_standard): Pass object to
12964 find_overload_match by reference.
12965
12966 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12967
12968 * valarith.c: Replace value_ptr with struct value pointer. Remove
12969 register attribute from value declarations.
12970 * valops.c: Ditto.
12971 * value.h: Ditto.
12972 * scm-lang.c (scm_lookup_name): Ditto.
12973
12974 2002-01-03 Michael Snyder <msnyder@redhat.com>
12975
12976 Abstract the functionality of iterating over mapped memory
12977 regions into a general purpose iterator function.
12978 * procfs.c (iterate_over_mappings): New function, general purpose
12979 iterator for memory sections.
12980 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12981 (solib_mappings_callback): New function, callback for above.
12982 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12983 (info_mappings_callback): New function, callback for above.
12984
12985 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12986
12987 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12988
12989 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12990 * i386-tdep.c: Include "elf-bfd.h".
12991 (process_note_abi_tag_sections): New function.
12992 (i386_gdbarch_init): Add code to recognize various OS/ABI
12993 combinations.
12994
12995 * maint.c (_initialize_maint_cmds): Add missing \ in
12996 string-literal.
12997
12998 For older changes see ChangeLog-2001
12999 \f
13000 Local Variables:
13001 mode: change-log
13002 left-margin: 8
13003 fill-column: 74
13004 version-control: never
13005 End:
This page took 0.306308 seconds and 4 git commands to generate.