2002-11-11 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2
3 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
4 instead of void_code_ptr.
5 (sigtramp_saved_pc): Ditto.
6
7 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
8 i386_fp_regnum_p.
9
10 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
11
12 * gdbtypes.h (struct main_type): Move artificial flag out of
13 loc. New member of ``struct field'' named static_kind. Reduce
14 overloaded meaning of bitsize.
15 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
16 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
17 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
18
19 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
20 new fields.
21 (template_to_fixed_record_type, template_to_static_fixed_type)
22 (to_record_with_fixed_variant_part): Likewise.
23 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
24 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
25 * dwarfread.c (struct_type, enum_type): Likewise.
26 * hpread.c (hpread_read_enum_type)
27 (hpread_read_function_type, hpread_read_doc_function_type)
28 (hpread_read_struct_type): Likewise.
29 * mdebugread.c (parse_symbol): Likewise.
30
31 2002-11-10 Andrew Cagney <ac131313@redhat.com>
32
33 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
34 * stack.c (print_frame_info_base): Update.
35 (print_frame_info_base, frame_info): Update.
36 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
37 (sparc_frame_saved_pc): Update.
38 * ada-lang.c (find_printable_frame): Update.
39 * breakpoint.c (deprecated_frame_in_dummy): Update.
40
41 2002-11-09 Mark Kettenis <kettenis@gnu.org>
42
43 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
44 defined.
45 (regmap): Extend to cover all registers.
46 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
47 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
48 definitions.
49 (fetch_register, sore_register): Simplify.
50 (old_fetch_inferior_registers, old_store_inferior_registers):
51 Remove functions.
52 (cannot_fetch_register, cannot_store_register): Change
53 implementation to use regmap array to decide which registers
54 cannot be fetched/stored. This removes $orig_eax from the
55 registers that cannot be fetched/stored.
56 (fetch_inferior_registers): Call fetch_register directly instead
57 of calling old_fetch_inferior_registers.
58 (store_inferior_registers): Call store_register directly instead
59 of calling old_store_inferior_registers.
60 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
61 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
62 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
63
64 2002-11-09 Klee Dienes <kdienes@apple.com>
65
66 * i387-tdep.c (i387_supply_register): When called with NULL as a
67 buffer, mark the register as not provided (to mirror the behavior
68 of supply_register).
69 (i387_supply_fxsave): Ditto.
70 (i387_supply_fsave): Ditto (inherits the behavior from
71 i387_supply_register).
72
73 2002-11-09 Klee Dienes <kdienes@apple.com>
74
75 * blockframe.c (sigtramp_saved_pc): Use
76 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
77 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
78 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
79
80 2002-11-09 Andrew Cagney <ac131313@redhat.com>
81
82 * frame.c (get_prev_frame): Test prev_p to identify a previously
83 unwound frame. Initialize prev_p.
84 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
85 comment.
86
87 2002-11-09 Andrew Cagney <ac131313@redhat.com>
88
89 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
90 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
91 more comments. Zap dead code.
92
93 2002-11-09 Mark Kettenis <kettenis@gnu.org>
94
95 * infcmd.c (print_vector_info, print_float_info): Move code that
96 checks whether the target has any registers and whether there is a
97 selected frame up, such that it is also used if a target provides
98 multi-arch definitions of these functions.
99
100 2002-11-08 Andrew Cagney <ac131313@redhat.com>
101
102 * Makefile.in (DESTDIR): Define.
103 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
104 prefix.
105
106 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
107 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
108
109 2002-11-08 Andrew Cagney <ac131313@redhat.com>
110
111 * i386-linux-tdep.c: Include "reggroups.h".
112 (i386_linux_register_reggroup_p): New function.
113 (i386_linux_init_abi): Set register_reggroup_p to
114 i386_linux_register_reggroup_p.
115 * i386-tdep.h (i386_register_reggroup_p): Declare.
116 * i386-tdep.c: Include "reggroups.h".
117 (i386_init_reggroups): New function.
118 (i386_add_reggroups): New function.
119 (i386_register_reggroup_p): New function.
120 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
121 (_initialize_i386_tdep): Call i386_init_reggroups.
122 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
123 specific reggroups.
124
125 2002-11-09 Mark Kettenis <kettenis@gnu.org>
126
127 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
128 request that's available in *BSD.
129
130 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
131
132 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
133 FDOFF_REGNUM.
134
135 2002-11-08 Andrew Cagney <ac131313@redhat.com>
136
137 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
138 * dummy-frame.c (find_dummy_frame): Rename
139 generic_find_dummy_frame, make static. Return the dummy frame
140 instead of the regcache.
141 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
142 (cached_find_dummy_frame): New function. Use find_dummy_frame.
143 (dummy_frame_register_unwind): Rename
144 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
145 * dummy-frame.h (dummy_frame_register_unwind): Rename
146 generic_call_dummy_register_unwind.
147
148 2002-11-08 Mark Kettenis <kettenis@gnu.org>
149
150 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
151 except the inclusion of "i386/tm-i386.h", to...
152 * config/i386/nm-i386v42mp.h: ...here.
153 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
154
155 2002-11-08 Andrew Cagney <ac131313@redhat.com>
156
157 * Makefile.in (frame.o): Update dependencies.
158 * blockframe.c (current_frame, frame_obstack_alloc)
159 (frame_saved_regs_zalloc, get_current_frame)
160 (set_current_frame, create_new_frame)
161 (set_unwind_by_pc, get_next_frame)
162 (flush_cached_frames, reinit_frame_cache)
163 (frame_saved_regs_register_unwind)
164 (deprecated_generic_get_saved_register)
165 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
166 (_initialize_blockframe): Move frame code from here...
167 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
168 "annotate.h" and "dummy-frame.h".
169 (_initialize_frame): New function.
170
171 2002-11-08 Jim Blandy <jimb@redhat.com>
172
173 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
174 when we finish a function a context.
175 * buildsym.h (outermost_context_p): New macro.
176 (Bug analyzed by David Edelsohn.)
177
178 2002-11-08 Andrew Cagney <ac131313@redhat.com>
179
180 * blockframe.c: Include "dummy-frame.h".
181 (struct dummy_frame, dummy_frame_stack)
182 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
183 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
184 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
185 (generic_save_call_dummy_addr, generic_pop_current_frame)
186 (generic_pop_dummy_frame, generic_fix_call_dummy)
187 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
188 dummy frame code from here...
189 * dummy-frame.c: ...to here. New file.
190 * dummy-frame.h: New file.
191 (generic_call_dummy_register_unwind): Declare.
192 (generic_find_dummy_frame): Declare.
193 * Makefile.in (SFILES): Add dummy-frame.c.
194 (dummy-frame.o): Specify dependencies.
195 (dummy_frame_h): Define.
196 (COMMON_OBS): Add dummy-frame.o.
197 (blockframe.o): Update dependencies.
198
199 2002-11-08 Jim Blandy <jimb@redhat.com>
200
201 * dwarf2read.c (read_func_scope): Restore local_symbols and
202 param_symbols after we finish the function context. (Based on a
203 patch from David Edelsohn.)
204
205 2002-11-08 David Carlton <carlton@math.stanford.edu>
206
207 * linespec.c (symbol_found): New function.
208 (minsym_found): New function.
209 (decode_line_1): Separate out some code into separate functions.
210
211 2002-11-08 Joel Brobecker <brobecker@gnat.com>
212
213 * i386-tdep.c (i386_frameless_signal_p): Make non static for
214 the benefit of the interix target.
215 * i386-tdep.h (i386_frameless_signal_p): Declare.
216
217 2002-11-08 Andrew Cagney <ac131313@redhat.com>
218
219 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
220 declaration that snuck in from change below.
221
222 2002-11-06 Andrew Cagney <cagney@redhat.com>
223
224 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
225 all callers.
226 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
227 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
228 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
229 (i386_mxcsr_regnum_p): new function. Use instead of
230 MXCSR_REGNUM_P.
231 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
232 (i386_sse_regnum_p): Declare.
233 (i386_mxcsr_regnum_p): Declare.
234 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
235 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
236 (IS_FP_REGNUM): Update definition.
237 (IS_FPU_CTRL_REGNUM): Update definition..
238 (IS_SSE_REGNUM): Update definition..
239 * i386v-nat.c (register_u_addr): Update.
240 * go32-nat.c (fetch_register): Update.
241 (store_register): Update.
242
243 2002-11-07 Joel Brobecker <brobecker@gnat.com>
244
245 Preparation work to convert the hppa targets to multiarch partial.
246
247 * hppa-tdep.c: Add new functions replacing macro bodies from
248 config/pa/tm-hppa.h. These function will be used to initialize
249 the gdbarch structure. Import some comments from tm-hppa.h,
250 and place them where appropriate, to avoid loosing them when
251 we cleanup this file.
252 (hppa_reg_struct_has_addr): New function.
253 (hppa_inner_than): New function.
254 (hppa_stack_align): New function.
255 (hppa_pc_requires_run_before_use): New function.
256 (hppa_instruction_nullified): New function.
257 (hppa_register_byte): New function.
258 (hppa_register_virtual_type): New function.
259 (hppa_store_struct_return): New function.
260 (hppa_cannot_store_register): New function.
261 (hppa_frame_args_address): New function.
262 (hppa_frame_locals_address): New function.
263 (hppa_smash_text_address): New function.
264 (hppa_coerce_float_to_double): New function. Requires the inclusion
265 of "language.h".
266
267 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
268
269 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
270 gdbarch-eligible macro to a call to the new associated function
271 created in hppa-tdep.c.
272 (INNER_THAN): Likewise.
273 (STACK_ALIGN): Likewise.
274 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
275 (INSTRUCTION_NULLIFIED): Likewise.
276 (REGISTER_BYTE): Likewise.
277 (REGISTER_VIRTUAL_TYPE): Likewise.
278 (STORE_STRUCT_RETURN): Likewise.
279 (CANNOT_STORE_REGISTER): Likewise.
280 (FRAME_ARGS_ADDRESS): Likewise.
281 (FRAME_LOCALS_ADDRESS): Likewise.
282 (SMASH_TEXT_ADDRESS): Likewise.
283 (COERCE_FLOAT_TO_DOUBLE): Likewise.
284 (ABOUT_TO_RETURN): Delete, as no longer used.
285
286 2002-11-07 Fernando Nasser <fnasser@redhat.com>
287
288 * printcmd.c (disassemble_command): Remove obsolete function.
289 (_initialize_printcmd): Do not create disassemble command here.
290 * cli/cli-cmds.c (disassemble_command): New function. Implements
291 disassemble command.
292 (init_cli_cmds): Create disassemble command here instead.
293
294 2002-11-07 Andrew Cagney <ac131313@redhat.com>
295
296 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
297
298 2002-11-07 Andrew Cagney <ac131313@redhat.com>
299
300 * regcache.h (regcache_cooked_read_using_offset_hack)
301 (regcache_cooked_write_using_offset_hack): Delete declarations.
302 (register_changed): Delete declaration.
303 * regcache.c (regcache_cooked_read_using_offset_hack)
304 (regcache_cooked_write_using_offset_hack): Delete functions.
305 (cooked_xfer_using_offset_hack): Delete function.
306 (register_changed): Delete function.
307
308 2002-11-07 Jim Blandy <jimb@redhat.com>
309
310 * macroscope.c: #include "complaints.h".
311 (sal_macro_scope): Cope with filenames that appear in the symtabs,
312 but not in the macro table.
313 * Makefile.in (macroscope.o): Record dependency.
314
315 2002-11-07 Joel Brobecker <brobecker@gnat.com>
316
317 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
318
319 2002-11-07 Andrew Cagney <ac131313@redhat.com>
320
321 * regcache.c (deprecated_registers_fetched): Update.
322 * regcache.h (deprecated_registers_fetched): Rename
323 registers_fetched.
324 * remote-vxsparc.c (vx_read_register): Update.
325 * remote-vxmips.c (vx_read_register): Update.
326 * remote-vx68.c (vx_read_register): Update.
327 * irix5-nat.c (fetch_core_registers): Update.
328 * mipsm3-nat.c (fetch_inferior_registers): Update.
329 * sun3-nat.c (fetch_inferior_registers): Update.
330 * symm-nat.c (fetch_inferior_registers): Update.
331 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
332 (fetch_core_registers): Update.
333 (fetch_kcore_registers): Update.
334 * mips-nat.c (fetch_inferior_registers): Update.
335 * corelow.c (get_core_registers): Update.
336 * a68v-nat.c (fetch_inferior_registers): Update.
337
338 2002-11-06 Joel Brobecker <brobecker@gnat.com>
339
340 Put in place the framework necessary for multiarching the hppa targets.
341 * hppa-tdep.c (hppa_gdbarch_init): New function.
342 (hppa_dump_tdep): New function.
343 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
344 tdep structure dumper.
345 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
346 until the multi-arching conversion has partially been completed.
347
348 2002-11-06 Andrew Cagney <ac131313@redhat.com>
349
350 * valops.c (value_assign): Merge lval_register case into
351 lval_reg_frame_relative. Use frame_register and
352 regcache_cooked_write instead of get_saved_register and
353 write_register_bytes. After flushing the register cache, try to
354 re-select the selected frame.
355
356 2002-11-06 Andrew Cagney <ac131313@redhat.com>
357
358 * regcache.h (deprecated_register_valid): Rename register_valid.
359 * regcache.c: Update.
360 * ia64-aix-nat.c: Update.
361 * i386gnu-nat.c: Update.
362 * alpha-nat.c: Update.
363 * sparc-nat.c: Update.
364 * lynx-nat.c: Update.
365 * remote-mips.c: Update.
366
367 2002-11-06 Joel Brobecker <brobecker@gnat.com>
368
369 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
370 to end of file, to be more consistent with the pratice followed
371 by other targets.
372
373 2002-11-06 Andrew Cagney <ac131313@redhat.com>
374
375 * infcmd.c: Include "reggroups.h" and <ctype.h>.
376 (print_float_info): Print registers in float_reggroup.
377 (print_vector_info): Print registers in vector_reggroup.
378 (default_print_registers_info): When all, print registers in
379 all_reggroup. Otherwize, print registers in general_reggroup.
380 (registers_info): Rewrite. Add support for register groups.
381 Eliminate a goto.
382
383 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
384
385 * symtab.c (methods_info): Delete. It has been ifdeffed out for
386 ages.
387 (symtab_symbol_info): Remove eons old ifdeffed out code.
388 (_initialize_symtab): Remove prehistoric disabled 'info methods'
389 command.
390
391 2002-11-06 Theodore A. Roth <troth@openavr.org>
392
393 * c-exp.y: Add missing semi-colons.
394 * f-exp.y: Add missing semi-colons.
395 * m2-exp.y: Add missing semi-colons.
396 * p-exp.y: Add missing semi-colons.
397 Add empty action to start rule to avoid a type clash error when
398 building with bison >= 1.50.
399
400 2002-11-06 Jim Blandy <jimb@redhat.com>
401
402 * macrotab.h (struct macro_source_file): Doc fix.
403
404 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
405
406 * varobj.c (child_exists, cplus_number_of_children): Change
407 STREQ macro references to strcmp.
408 (cplus_name_of_child): Change code to handle the fact that
409 fields are not necessarily contiguous with regards to their
410 access control. This is a fix for PR gdb/792.
411
412 2002-11-05 Andrew Cagney <ac131313@redhat.com>
413
414 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
415 * gdbarch.h, gdbarch.c: Regnerate.
416 * frame.h (frame_register): Declare.
417 * frame.c (frame_register): New function.
418 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
419 GET_SAVED_REGISTER, otherwize call
420 generic_unwind_get_saved_register.
421 (frame_register_read): Use frame_register instead of
422 get_saved_register.
423
424 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
425
426 From Jim Ingham <jingham@apple.com>:
427 * event-top.c (gdb_disable_readline): New function.
428 (_initialize_event_loop): Move comment.
429
430 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
431
432 * event-loop.c (start_event_loop): Add comment.
433 Update copyright.
434
435 2002-11-05 Andrew Cagney <ac131313@redhat.com>
436
437 * infcmd.c (default_print_registers_info): Do not call
438 PRINT_REGISTER_HOOK.
439
440 2002-11-05 Andrew Cagney <ac131313@redhat.com>
441
442 * sparc-tdep.c (sparc_print_register_hook): Make static.
443 (sparc_print_registers_info): New function.
444 (sparc_do_registers_info): New function.
445 (sparclet_print_registers_info): New function.
446 (sparclet_do_registers_info): New function.
447 (do_sparc_print_registers_info): New function.
448 (sparc_print_registers): New static function, clone of infcmd.c's
449 default_print_registers_info.
450 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
451 (sparclet_do_registers_info): Declare.
452 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
453 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
454 Re-define.
455 (sparc_do_registers_info): Declare.
456 (PRINT_REGISTER_HOOK): Delete macro.
457 (sparc_print_register_hook): Delete declaration.
458
459 2002-11-05 David Carlton <carlton@math.stanford.edu>
460
461 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
462 functions.
463 (lookup_symbol_aux_local): New function.
464 (lookup_symbol_aux_symtabs): New function.
465 (lookup_symbol_aux_psymtabs): New function.
466
467 2002-11-05 David Carlton <carlton@math.stanford.edu>
468
469 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
470 previous values of 'objfile' and 'block'.
471
472 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
473
474 * values.c (value_change_enclosing_type): Set
475 enclosing_type field correctly also for the case where
476 more memory needs to be allocated.
477
478 2002-11-03 Mark Kettenis <kettenis@gnu.org>
479
480 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
481 of puts_filtered.
482
483 * i387-tdep.c (i387_print_float_info): Replace calls to
484 register_read and deprecated_read_register_gen with calls to
485 frame_register_read, and make the necessary adjustments to the
486 surrounding code.
487
488 2002-11-02 Andrew Cagney <ac131313@redhat.com>
489
490 * gdbarch.sh (register_reggroup_p): Allow default value.
491 * gdbarch.h, gdbarch.c: Regenerate.
492
493 2002-11-02 Andrew Cagney <ac131313@redhat.com>
494
495 * regcache.h: Add coment indicating replacements for deprecated
496 functions.
497
498 2002-11-02 Andrew Cagney <cagney@redhat.com>
499
500 * reggroups.h, reggroups.c: New files.
501 * regcache.c: Include "reggroups.h".
502 (enum regcache_dump_what): Add `regcache_dump_groups'.
503 (regcache_dump): Contract size of the "Type" column. When
504 specified, dump the register's groups.
505 (maintenance_print_register_groups): New function.
506 (_initialize_regcache): Add command `maint print register-groups'.
507 * Makefile.in (COMMON_OBS): Add reggroups.o
508 (SFILES): Add reggroups.c.
509 (reggroups_h): Define.
510 (regcache.o, gdbarch.o): Update dependencies.
511 (reggroups.o): Specify dependencies.
512 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
513 Add opaque declaration for `struct reggroup' in generated .h file.
514 Include "reggroups.h" in generated .c file.
515 gdbarch.h, gdbarch.c: Re-generate.
516
517 2002-11-02 Andrew Cagney <cagney@redhat.com>
518
519 * regcache.h (deprecated_read_register_gen): Rename
520 read_register_gen.
521 (deprecated_write_register_gen): Rename write_register_gen.
522 * i387-tdep.c: Update.
523 * x86-64-linux-nat.c: Update
524 * wince.c: Update.
525 * thread-db.c: Update.
526 * win32-nat.c: Update.
527 * mips-tdep.c: Update.
528 * d10v-tdep.c: Update.
529 * cris-tdep.c: Update.
530 * remote-sim.c: Update.
531 * remote-rdi.c: Update.
532 * remote-rdp.c: Update.
533 * frame.c: Update.
534 * target.c: Update.
535 * blockframe.c: Update.
536 * x86-64-tdep.c: Update.
537 * xstormy16-tdep.c: Update.
538 * sh-tdep.c: Update.
539 * s390-tdep.c: Update.
540 * rs6000-tdep.c: Update.
541 * sparc-tdep.c: Update.
542 * i386-tdep.c: Update.
543 * dwarf2cfi.c: Update.
544 * regcache.c: Update.
545
546 2002-11-01 Joel Brobecker <brobecker@gnat.com>
547
548 New interix-specific files:
549 * config/i386/nm-interix.h: New file.
550 * config/i386/interix.mh: New file.
551 * config/i386/interix.mt: New file.
552 * i386-interix-nat.c: New file.
553 * i386-interix-tdep.c: New file.
554
555 2002-11-01 Andrew Cagney <cagney@redhat.com>
556
557 * frame.h (deprecated_generic_get_saved_register): Rename
558 generic_get_saved_register.
559 * blockframe.c (deprecated_generic_get_saved_register): Update.
560 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
561 (xstormy16_frame_saved_register): Update.
562 * sh-tdep.c (sh_gdbarch_init): Update.
563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
564 * ia64-tdep.c (ia64_get_saved_register): Update.
565 * cris-tdep.c (cris_gdbarch_init): Update.
566 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
567 * arm-tdep.c (arm_gdbarch_init): Update.
568
569 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
570
571 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
572
573 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
574
575 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
576 trampolines in sigaction.
577
578 2002-10-31 Andrew Cagney <cagney@redhat.com>
579
580 * h8300-tdep.c: Include "gdb_assert.h".
581 (h8300_print_register): Add gdbarch, file and frame parameters.
582 Use frame_read_unsigned_register to read the register's value.
583 Use fprintf_filtered to display output.
584 (h8300_print_registers_info): Replace h8300_do_registers_info.
585 (h8300_gdbarch_init): Set print_registers_info.
586
587 2002-10-31 Andrew Cagney <cagney@redhat.com>
588
589 * frame.c (frame_read_unsigned_register): New function.
590 (frame_read_signed_register): New function.
591 * frame.h (frame_read_unsigned_register): Declare.
592 (frame_read_signed_register): Declare.
593
594 2002-10-31 Andrew Cagney <cagney@redhat.com>
595
596 * h8500-tdep.c (h8500_print_registers_info): New static function,
597 clone of infcmd.c's default_print_registers_info.
598 (h8500_do_registers_info): New funtion.
599 (h8500_print_register_hook): Rename print_register_hook, make
600 static.
601
602 * config/h8500/tm-h8500.h: Update copyright.
603 (DEPRECATED_DO_REGISTERS_INFO): Define.
604 (h8500_do_registers_info: Declare.
605 (PRINT_REGISTER_HOOK): Delete macro.
606 (print_register_hook): Delete function.
607
608 2002-10-31 Andrew Cagney <cagney@redhat.com>
609
610 * z8k-tdep.c (z8k_print_register_hook): Make static.
611 (z8k_print_registers_info): New static function, clone of
612 infcmd.c's default_print_registers_info.
613 (z8k_do_registers_info): New function. Wrap
614 z8k_print_registers_info.
615 * config/z8k/tm-z8k.h: Update copyright.
616 (PRINT_REGISTER_HOOK): Delete macro.
617 (z8k_print_register_hook): Delete declaration.
618 (DEPRECATED_DO_REGISTERS_INFO): Define.
619 (z8k_do_registers_info): Declare.
620
621 2002-10-30 Joel Brobecker <brobecker@gnat.com>
622
623 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
624 as this is already provided by value.h, and was actually causing
625 a compilation error because of a conflict in parameter type
626 declaration due to a missing const keyword.
627 (low_text_segment_addres): Fix a compilation warning.
628
629 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
630
631 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
632 registers without a name.
633 (mips_linux_cannot_store_register): Don't store registers without
634 a name.
635
636 2002-10-28 David Carlton <carlton@math.stanford.edu>
637
638 * symtab.c (find_addr_symbol): Delete. (It was already commented
639 out.)
640 * symtab.h: Delete prototype for find_addr_symbol.
641
642 2002-10-26 Andrew Cagney <cagney@redhat.com>
643
644 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
645 DO_REGISTERS_INFO.
646 gdbarch.h, gdbarch.c: Re-generate.
647 * infcmd.c (default_print_registers_info): Update reference.
648 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
649 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
650 * sh-tdep.c (sh_gdbarch_init): Ditto.
651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
652 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
653
654 2002-10-26 Mark Kettenis <kettenis@gnu.org>
655
656 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
657 cfi_init_extra_frame_info.
658 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
659 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
660
661 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
662 target where necessary. Add more comments and remove the ones
663 that don't provide any useful information.
664
665 * i386-tdep.c (i386_frame_saved_pc): Replace call to
666 deprecated_read_register_dummy with
667 frame_unwind_unsigned_register.
668
669 * i386-tdep.c (i386_extract_struct_value_address): Use
670 regcache_raw_read_unsigned instead of
671 regcache_cooked_read_unsigned since we know that the register
672 we're reading isn't a pseudo register. Rename variable 'val' into
673 the more descriptive 'addr'.
674
675 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
676 (x86_64_push_return_address): Add comment.
677 (x86_64_pop_frame): Make static.
678 (examine_argument): Clarify comment.
679 (x86_64_skip_prologue): Make prolog_expact variable static.
680
681 * dwarf2cfi.c: Fix some formatting problems.
682 (context_cpy, read_encoded_pointer): Clarify comments.
683
684 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
685 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
686 i386 target back into x86_64_gdbarch_init. Add some comments and
687 remove meaningless ones.
688
689 2002-10-25 Andrew Cagney <cagney@redhat.com>
690
691 * complaints.h (struct deprecated_complaint): Rename `struct
692 complaint'.
693 * complaints.c (complain): Update.
694 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
695 incorrect comment indicating that "symfile.h" was being included
696 for the `struct complaint' definition.
697 * remote-vx.c: Update.
698 * objc-lang.c: Update.
699 * xcoffread.c: Update.
700 * hpread.c: Update.
701 * mdebugread.c: Update.
702 * stabsread.c: Update.
703 * dwarf2read.c: Update.
704 * dwarfread.c: Update.
705 * elfread.c: Update.
706 * coffread.c: Update.
707 * stabsread.h: Update.
708 * dbxread.c: Update.
709 * buildsym.c: Update.
710 * gdbtypes.c: Update.
711 * macrotab.c: Update.
712
713 2002-10-25 Mark Kettenis <kettenis@gnu.org>
714
715 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
716 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
717 (x86_64_init_abi): ...new function.
718
719 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
720 * i386v-nat.c: Include "i386-tdep.h".
721
722 2002-10-25 Andrew Cagney <cagney@redhat.com>
723
724 * gdbtypes.c (address_space_name_to_int): Update.
725 (address_space_int_to_name): Update.
726 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
727 multi-arch predicate.
728 (address_class_name_to_type_flags): Ditto.
729 * gdbarch.h, gdbarch.c: Re-generate.
730
731 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
732
733 2002-10-24 Martin M. Hunt <hunt@redhat.com>
734
735 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
736
737 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
738
739 * symtab.h (INIT_SAL): Delete macro.
740 (init_sal): Export.
741 * symtab.c (init_sal): New function.
742
743 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
744 to init_sal function call.
745 (find_sal_from_funcs_and_line): Ditto.
746 (all_sals_for_line): Ditto.
747 * breakpoint.c (create_internal_breakpoint): Ditto.
748 (create_fork_vfork_event_catchpoint): Ditto.
749 (create_exec_event_catchpoint): Ditto.
750 (parse_breakpoint_sals): Ditto.
751 (watch_command_1): Ditto.
752 (handle_gnu_4_16_catch_command): Ditto.
753 (clear_command): Ditto.
754 * hppa-tdep.c (child_enable_exception_callback): Ditto.
755 * infcmd.c (run_stack_dummy): Ditto.
756 * infrun.c (process_event_stop_test): Ditto.
757 (check_sigtramp2): Ditto.
758 (step_over_function): Ditto.
759 * linespec.c (decode_line_2): Ditto.
760 (decode_line_1): Ditto.
761 * source.c (line_info): Ditto.
762 * symtab.c (find_pc_sect_line): Ditto.
763
764 2002-10-24 Michal Ludvig <mludvig@suse.cz>
765
766 * dwarf2cfi.c (struct context)
767 (struct context_reg): Moved to dwarf2cfi.h
768 (context_alloc, frame_state_alloc, context_cpy):
769 Made extern instead of static, removed prototypes.
770 * dwarf2cfi.h (struct context)
771 (struct context_reg): New, moved from dwarf2cfi.c
772 (context_alloc, frame_state_alloc, context_cpy):
773 New prototypes.
774 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
775 Changed from static to extern.
776 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
777 (LINUX_SIGCONTEXT_FP_OFFSET)
778 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
779 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
780 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
781 * x86-64-tdep.c (x86_64_gdbarch_init): Several
782 set_gdbarch_*() calls now use x86-64 specific functions
783 instead of DWARF2 CFI ones.
784 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
785 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
786 (x86_64_init_extra_frame_info): New prototypes.
787
788 2002-10-23 David Carlton <carlton@math.stanford.edu>
789
790 * linespec.c: #include "parser-defs.h".
791 Delete prototype for find_template_name_end.
792 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
793
794 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
795
796 * NEWS: add recent mi fixes.
797 * varobj.c (struct varobj): Add new "updated" flag.
798 (new_variable): Default "updated" flag to 0.
799 (varobj_set_value): Set "updated" flag to 1 if value
800 changes.
801 (varobj_update): Check varobj "updated" flag before
802 comparing old and refreshed values. Fix for
803 PR gdb/702.
804
805 2002-10-23 David Carlton <carlton@math.stanford.edu>
806
807 * parse.c (parse_exp_1): Use BLOCK_START.
808 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
809 SYMBOL_BLOCK_VALUE.
810 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
811
812 2002-10-23 David Carlton <carlton@math.stanford.edu>
813
814 * symtab.c: Delete cplusplus_hint.
815 Delete prototype for find_template_name_end.
816
817 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
818
819 * symtab.h: Update comment.
820
821 2002-10-23 Michael Snyder <msnyder@redhat.com>
822
823 * printcmd.c (address_info): Restore quotes in output.
824 * valops.c (value_of_local): Restore quotes in error message.
825
826 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
827
828 * symtab.c (symbol_demangled_name): New function.
829 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
830 turning most of it into a function.
831 (symbol_demangled_name): Export.
832
833 2002-10-23 Michael Snyder <msnyder@redhat.com>
834
835 * valops.c (value_of_local): Restore quotes in error message.
836
837 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
838
839 * symtab.c (symbol_init_language_specific): New function.
840 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
841 turning most of it into a function.
842 (symbol_init_language_specific): Export.
843
844 2002-10-23 David Carlton <carlton@math.stanford.edu>
845
846 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
847 (dwarf_attr_name): Ditto.
848 (dwarf_type_encoding_name): Ditto.
849 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
850 (process_die): Handle DW_TAG_namespace,
851 DW_TAG_imported_declaration, DW_TAG_imported_module.
852 (read_namespace): New function.
853
854 2002-10-22 Joel Brobecker <brobecker@gnat.com>
855
856 * configure.in: Define NEW_PROC_API on Interix too.
857 * configure: Regenerate.
858
859 2002-10-21 Joel Brobecker <brobecker@gnat.com>
860
861 * configure: Regenerate using the proper version of autoconf.
862
863 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
864
865 * findvar.c (read_var_value): Temporarily disable TLS code, until
866 complete TLS support is added.
867
868 2002-10-21 Jim Blandy <jimb@redhat.com>
869 Elena Zannoni <ezannoni@redhat.com>
870
871 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
872 for thread local storage locations.
873 (struct symbol): Add objfile field.
874 (SYMBOL_OBJFILE): Define.
875 * dwarf2read.c (is_thread_local): New static variable.
876 (new_symbol): If variable is in thread local fill in address class
877 and objfile appropriately.
878 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
879 stack operation.
880 * printcmd.c (address_info): Print the information for thread
881 local storage variable.
882 * findvar.c (read_var_value): In case of thread local variable,
883 defer to the target vector code to compute address.
884
885 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
886
887 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
888 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
889
890 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
891
892 * symtab.h (address_class): Rename
893 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
894 * hpread.c (hpread_process_one_debug_symbol): Ditto.
895 * printcmd.c (address_info): Ditto.
896 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
897
898 2002-10-20 Mark Kettenis <kettenis@gnu.org>
899
900 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
901 DBREG_DRX macro to acces debug registers.
902
903 * Makefile.in (i386obsd-tdep.o): New target.
904
905 * solib-sunos.c: Include "bcache.h" and "regcache.h".
906 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
907
908 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
909 * config/i386/obsd.mt: New file.
910 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
911 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
912 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
913 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
914 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
915 * i386obsd-tdep.c: New file.
916
917 2002-10-19 Adam Fedor <fedor@gnu.org>
918
919 * objc-exp.y (name_not_typename): Fix invalid comment.
920
921 2002-10-20 Mark Kettenis <kettenis@gnu.org>
922
923 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
924 to allocate partial syms and macro byte caches.
925
926 2002-10-18 David Carlton <carlton@math.stanford.edu>
927
928 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
929
930 2002-10-18 Adam Fedor <fedor@gnu.org>
931
932 * stabsread.c (find_name_end): New function.
933 (define_symbol): Use it.
934
935 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
936
937 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
938 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
939 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
940 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
941
942 2002-10-17 David Carlton <carlton@math.stanford.edu>
943
944 * symfile.h: Add opaque declaration for struct obstack.
945 Declare obsavestring to take a const char *.
946 * symfile.c (obsavestring): Make first argument a const char *.
947
948 2002-10-16 Adam Fedor <fedor@gnu.org>
949
950 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
951 names when matching breakpoints in current file.
952
953 2002-10-16 Kevin Buettner <kevinb@redhat.com>
954
955 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
956 (read_tag_pointer_type): Add address class support.
957 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
958 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
959 New methods.
960 * gdbarch.h, gdbarch.c: Regenerate.
961 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
962 (make_type_with_address_space, recursive_type_dump): Add address
963 class support.
964 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
965 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
966 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
967
968 2002-10-16 Klee Dienes <kdienes@apple.com>
969
970 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
971 to get the last character of a char[] buffer, not
972 name[sizeof(vptr_name)-1].
973
974 2002-10-14 Adam Fedor <fedor@gnu.org>
975
976 * symtab.h: New objc_specific struct.
977 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
978 (SYMBOL_DEMANGLED_NAME): Likewise.
979
980 2002-10-14 Adam Fedor <fedor@gnu.org>
981
982 * symfile.c (init_filename_language_table): Add ObjC file extension.
983
984 2002-10-14 Adam Fedor <fedor@gnu.org>
985
986 * utils.c (puts_filtered_tabular): New function.
987 (fprintf_symbol_filtered): Get ObjC demangled name.
988 * defs.h (puts_filtered_tabular): Declared.
989
990 2002-10-14 Kevin Buettner <kevinb@redhat.com>
991
992 * c-lang.h (c_type_print_varspec_prefix): Delete.
993 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
994 ``need_post_space'' parameter. Adjust all callers.
995
996 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
997
998 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
999 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1000 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1001 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1002
1003 2002-10-13 Adam Fedor <fedor@gnu.org>
1004
1005 * source.c (print_source_lines): Update comments.
1006
1007 2002-10-13 Adam Fedor <fedor@gnu.org>
1008
1009 * valops.c (value_of_local): New function.
1010 (value_of_this): Use it.
1011 * value.h (value_of_local): Declared.
1012
1013 2002-10-13 Adam Fedor <fedor@gnu.org>
1014
1015 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1016 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1017
1018 2002-10-12 Adam Fedor <fedor@gnu.org>
1019
1020 * language.c (binop_result_type): Add language_objc to case.
1021 (integral_type): Likewise.
1022 (character_type): Likewise.
1023 (string_type): Likewise.
1024 (boolean_type): Likewise.
1025 (structured_type): Likewise.
1026 (binop_type_check): Likewise.
1027
1028 2002-10-11 Adam Fedor <fedor@gnu.org>
1029
1030 * printcmd.c (address_info): Print 'self' for ObjC.
1031
1032 2002-10-11 Adam Fedor <fedor@gnu.org>
1033
1034 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1035 OP_SELF.
1036
1037 2002-10-11 Adam Fedor <fedor@gnu.org>
1038
1039 * language.h (CAST_IS_CONVERSION): Add language_objc.
1040
1041 2002-10-11 Adam Fedor <fedor@gnu.org>
1042
1043 * defs.h (enum language): Add language_objc.
1044
1045 2002-10-11 Klee Dienes <kdienes@apple.com>
1046
1047 * corefile.c (read_memory_typed_address): New function.
1048 * gdbcore.h (read_memory_typed_address): Add prototype.
1049 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1050 to read a value destined for a CORE_ADDR, not read_memory_integer.
1051 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1052 (f77_get_dynamic_lowerbound): Ditto.
1053
1054 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1055
1056 * utils.c (string_to_core_addr): After turning string into
1057 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1058 which will do necessary sign-extension, etc.
1059
1060 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1061
1062 * c-exp.y (THIS): Delete token and grammar rule.
1063 (yylex): Don't return THIS.
1064 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1065 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1066 * demangle.c (cplus_markers): Update comment. Put '$'
1067 first. Remove CPLUS_MARKER.
1068 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1069 * jv-exp.y (THIS): Delete token and grammar rule.
1070 (yylex): Don't return THIS.
1071 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1072 * objc-exp.y (THIS): Delete token and grammar rule.
1073 (yylex): Don't return THIS.
1074 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1075 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1076 (read_member_functions): Likewise for opname.
1077 (read_tilde_fields): Use is_cplus_marker.
1078
1079 * defs.h (CPLUS_MARKER): Don't define.
1080 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1081 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1082 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1083 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1084 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1085
1086 * config/i386/tm-i386v4.h: Delete file.
1087 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1088 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1089 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1090 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1091 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1092 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1093 * config/i386/i386v4.mt (TM_FILE): Likewise.
1094 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1095
1096 2002-10-10 Marko Mlinar <markom@opencores.org>
1097
1098 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1099 accidentially not commited 2002-10-09
1100 * gdbarch.h, gdbarch.c: Re-generate.
1101
1102 2002-10-09 Marko Mlinar <markom@opencores.org>
1103
1104 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1105 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1106 * gdbarch.h, gdbarch.c: Re-generate.
1107
1108 2002-10-08 Petr Sorfa <petrs@caldera.com>
1109
1110 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1111
1112 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1113 so we can work on more than one compilation unit at a time. This
1114 helps prepare GDB to handle inter-CU die references.
1115 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1116 the code to be defined before struct comp_unit_head.
1117 (comp_unit_head): Added new members - offset, cu_head,
1118 begin_die, next and dwarf2_abbrevs.
1119 (dwarf2_abbrevs): Removed single static var; now member of
1120 struct comp_unit_head.
1121 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1122 members.
1123 (psymtab_to_symtab_1): Changed to work with the new
1124 struct comp_unit_head.
1125 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1126 constructs the dwarf2_abbrevs[] inside the cu_header.
1127 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1128 dwarf2_abbrev table to clean up.
1129 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1130 handling of dwarf2_abbrevs inside the cu_header.
1131 (read_partial_die): Now supports the call to the new
1132 dwarf2_lookup_abbrev.
1133 (read_full_die): Now supports the call to the new
1134 dwarf2_lookup_abbrev.
1135
1136 2002-10-06 Christopher Faylor <cgf@redhat.com>
1137
1138 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1139 insure that shell variables, such as "transformed_name" are propagated
1140 to later shell statements in rule.
1141
1142 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1143
1144 * config/i386/nm-i386sco.h: Add protection against
1145 multiple-inclusion. Include "i386/nm-i386v.h".
1146 (REGISTER_U_ADDR): Remove define.
1147 (i386_register_u_addr): Remove prototype.
1148
1149 2002-10-04 Michael Snyder <msnyder@redhat.com>
1150
1151 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1152 before treating it as a single-step event.
1153
1154 2002-10-03 Adam Fedor <fedor@gnu.org>
1155
1156 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1157 (objc_demangle): Remove assignment in if statements, Replace
1158 free with xfree.
1159 (add_msglist): Likewise.
1160 (end_msglist): Likewise.
1161 (complare_selectors): Likewise.
1162 (selectors_info): Likewise.
1163 (compare_classes): Likewise.
1164 (classes_info): Likewise.
1165 (print_object_command): Likewise.
1166 (find_objc_msgcall_submethod): Replace PTR with void *.
1167 * objc-lang.h: Remove check for __STDC__.
1168
1169 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1170
1171 * ui-out.h (ui_out_field_fmt_int): New prototype.
1172 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1173 of field width and alignment.
1174 * stack.c (print_frame_info_base): When printing frame level, use
1175 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1176 PR gdb/192
1177
1178 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1179
1180 * MAINTAINERS: Add self to Write After Approval list.
1181
1182 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1183
1184 * infcmd.c (interrupt_target_command_wrapper): Delete.
1185 (interrupt_target_command): Make non static.
1186 (nofp_registers_info): Make static.
1187 * stack.c (return_command_wrapper): Delete.
1188 (return_command): Make non static.
1189
1190 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1191
1192 * event-top.c (gdb_setup_readline): New function. Code moved from
1193 _initialize_event_loop().
1194 (_initialize_event_loop): Call gdb_setup_readline().
1195
1196 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1197
1198 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1199 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1200 * gdbarch.h, gdbarch.c: Re-generate.
1201
1202 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1203
1204 Fix PR gdb/778
1205 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1206 before recursing.
1207 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1208 of fill_in_vptr_fieldno.
1209
1210 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1211
1212 * inferior.h (registers_info, stepi_command, nexti_command,
1213 continue_command, interrupt_target_command): Export from infcmd.c.
1214 * frame.h (args_info, selected_frame_level_changed_hook,
1215 return_command): Export from stack.c.
1216 * v850ice.c (stepi_command, nexti_command, continue_command): use
1217 prototypes from inferior.h.
1218 * tracepoint.c (registers_info, args_info, locals_info): Use
1219 prototypes from frame.h and inferior.h.
1220 * Makefile.in (mi-main.o): Add dependency on frame.h.
1221
1222 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1223
1224 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1225 value in register 3 adjusted by ppc_gp0_regnum.
1226
1227 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1228
1229 2002-10-02 Marko Mlinar <markom@opencores.org>
1230
1231 * MAINTAINERS: Add myself to the Write After Approval list.
1232
1233 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1234
1235 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1236 of the section for the N64 ABI, fixed.
1237
1238 * config/mips/tm-irix6.h: Include solib.h.
1239
1240 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1241
1242 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1243 GNU operators.
1244
1245 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1246
1247 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1248 and that "mi0" syntax has been removed.
1249
1250 2002-09-30 David Carlton <carlton@math.stanford.edu>
1251
1252 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1253 * ppc-sysv-tdep.c: #include "gdb_string.h".
1254 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1255 pacify GCC.
1256
1257 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1258
1259 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1260 "vrsave"'s register number.
1261
1262 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1263
1264 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1265 use frame_unwind_signed_register to obtain the PC.
1266 (mips_frame_chain): Handle a generic dummy frame.
1267 (mips_init_extra_frame_info): When a generic dummy frame, don't
1268 re-compute the frame base.
1269 (mips_pop_frame): Handle generic dummy frames.
1270 (mips_gdbarch_init): When generic dummy frames, set
1271 use_generic_dummy_frames, push_dummy_frame to
1272 generic_push_dummy_frame, pc_in_call_dummy to
1273 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1274 generic_save_dummy_frame_tos.
1275
1276 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1277
1278 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1279 against TOP when TOP was explictly set.
1280 (generic_push_dummy_frame): Set TOP to zero.
1281
1282 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1283
1284 * event-loop.c (start_event_loop): Rename variable 'result' to
1285 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1286
1287 2002-09-30 Keith Seitz <keiths@redhat.com>
1288
1289 * gdb-events.sh (selected_thread_changed): New event.
1290 * gdb-events.c: Regenerated.
1291 * gdb-events.h: Regenerated.
1292
1293 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1294
1295 * MAINTAINERS: Add self to Write After Approval list.
1296
1297 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1298
1299 * disasm.c: New file.
1300 * disasm.h: New file.
1301 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1302 (compare_lines): Ditto.
1303 (dump_insns): Ditto.
1304 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1305 argument.
1306 (do_assembly_only): Ditto.
1307 (do_disassembly): Renamed to gdb_disassembly and moved to
1308 disasm.c. Sdded uiout argument.
1309 * Makefile.in: Add new files. Reorder SFILES list. Update
1310 dependencies. Include libgdb.a later in the insight executable.
1311
1312 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1313
1314 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1315 bfd/elf64-alpha-fbsd.c.
1316
1317 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1318
1319 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1320 i386gnu-tdep.c.
1321
1322 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1323
1324 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1325 __FUNCTION__.
1326 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1327 function name.
1328 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1329 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1330 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1331 (S_msg_sig_post_reply): Ditto.
1332
1333 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1334
1335 * sh-tdep.c (sh_use_struct_convention): Use definition according
1336 to ABI.
1337 (sh_push_arguments): Store in register with correct endianess.
1338 (sh_default_store_return_value): Ditto.
1339 (sh_gdbarch_init): Set sizeof long double to 8.
1340
1341 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1342
1343 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1344 Fix some whitespace problems.
1345
1346 2002-09-27 David Carlton <carlton@math.stanford.edu>
1347
1348 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1349 (mcore-tdep.o): Ditto.
1350 (ns32k-tdep.o): Ditto.
1351 (ns32knbsd-tdep.o): Ditto.
1352 (sh3-rom.o): Ditto.
1353 (vax-tdep.o): Ditto.
1354 * cris-tdep.c: #include "gdb_string.h"
1355 * mcore-tdep.c: Ditto.
1356 * ns32k-tdep.c: Ditto.
1357 * ns32knbsd-tdep.c: Ditto.
1358 * sh3-rom.c: Ditto.
1359 * vax-tdep.c: Ditto.
1360
1361 2002-09-27 David Carlton <carlton@math.stanford.edu>
1362
1363 * config/djgpp/fnchange.lst: Add entries for
1364 gdb/testsuite/gdb.c++/m-static files.
1365
1366 2002-09-27 Jim Wilson <wilson@redhat.com>
1367
1368 * MAINTAINERS: Add myself to the Write After Approval list.
1369
1370 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1371
1372 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1373
1374
1375 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1376
1377 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1378 frame.
1379
1380 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1381
1382 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1383 (rs6000_struct_return_address): Delete variable.
1384 (rs6000_store_struct_return): Update.
1385 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1386 deprecated_extract_struct_value_address.
1387 (rs6000_frame_align): New function.
1388 (rs6000_gdbarch_init): Set frame_align.
1389
1390 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1391
1392 From Grace Sainsbury <graces@redhat.com>:
1393 * Makefile.in (gdbtk-main.o): New target.
1394 (gdb.o): New target.
1395 (main_h): Define.
1396 (main.o): Update dependencies.
1397 (gdb$(EXEEXT)): Add gdb.o.
1398 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1399 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1400 (SUBDIR_GDBTK_CLEAN): Set.
1401 (install-gdbtk): Install the insight binary.
1402 (uninstall-gdbtk): New target.
1403 (all-gdbtk, clean-gdbtk): New rule.
1404 * top.c (use_windows): Default to zero.
1405 * main.c: Include "main.h".
1406 (main): Delete.
1407 (struct captured_main_args): Delete.
1408 (gdb_main): New function.
1409 * main.h: New file.
1410 * gdb.c: New File.
1411
1412 2002-09-25 Andrew Cagney <cagney@redhat.com>
1413
1414 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1415 (frame_map_regnum_to_name): New function.
1416 (frame_map_name_to_regnum): New function.
1417 * frame.h (frame_map_name_to_regnum): Declare.
1418 (frame_map_regnum_to_name): Declare.
1419 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1420 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1421 * parse.c: Do not include "builtin-regs.h".
1422 (target_map_name_to_register): Delete function.
1423 (write_dollar_variable): Use frame_map_name_to_regnum.
1424 * parser-defs.h (target_map_name_to_register): Delete declaration.
1425 * expprint.c: Include "frame.h".
1426 (print_subexp): Use frame_map_regnum_to_name.
1427 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1428 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1429
1430 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1431
1432 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1433 wasn't saved, and the next innermost frame is a dummy, return the
1434 dummy frame's link register.
1435
1436 2002-09-24 Jim Blandy <jimb@redhat.com>
1437
1438 Fix from Paul Breed:
1439 * main.c (captured_main): Add a `break' after the case for 'b'.
1440
1441 2002-09-24 Keith Seitz <keiths@redhat.com>
1442
1443 * varobj.c (c_type_of_child): Use get_target_type instead
1444 of TYPE_TARGET_TYPE.
1445
1446 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1447
1448 * source.c (get_current_or_default_source_symtab_and_line): Remove
1449 function.
1450 (set_default_source_symtab_and_line): New function. Attempts to
1451 determine a source file to list lines from if one is not currently
1452 defined.
1453 (get_current_source_symtab_and_line): Initialize sal.pc and
1454 sal.end fields.
1455 (set_current_source_symtab_and_line): Mark argument as const.
1456 * source.h: Update declarations and comments.
1457 * linespec.c (decode_line_1): Replace call to removed routine above.
1458 * stack.c (print_frame_info_base): Ditto.
1459 * cli/cli-cmds.c (edit_command): Ditto.
1460 (list_command): Ditto.
1461
1462 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1463
1464 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1465 sal.pc and sal.end fields.
1466 (get_current_or_default_source_symtab_and_line): Ditto.
1467 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1468 so we do not cause a new source symtab to be searched for (reverting an
1469 unintentional change from the 2002-09-20 patch).
1470 * scm-lang.c (scm_unpac): Ditto.
1471
1472 2002-09-21 Andrew Cagney <cagney@redhat.com>
1473
1474 * complaints.c (symfile_explanations): Remove new-line from
1475 ``isolated_message''.
1476 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1477 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1478
1479 2002-09-20 Nick Clifton <nickc@redhat.com>
1480
1481 * NEWS: Announce that V850EA ISA is no longer supported.
1482 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1483
1484 2002-09-20 David Carlton <carlton@math.stanford.edu>
1485
1486 * Makefile.in (c-lang.o): Correct dependencies.
1487 (utils.o): Gather dependencies.
1488 (charset.o): Move.
1489 * c-lang.c: #include "gdb_string.h"
1490
1491 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1492
1493 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1494 * cli/cli-cmds.c (list_command): New function. Implements the new
1495 cli edit command.
1496 (_init_cli_cmds): Add new command definition.
1497 * gdb.1: Document edit command.
1498 * doc/gdb.texinfo: Document edit command.
1499
1500 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1501
1502 * source.c: Make global variables current_source_symtab and
1503 current_source_line static.
1504 (list_command): Moved to cli/cli-cmds.c.
1505 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1506 (get_first_line_listed): New accessor function.
1507 (get_lines_to_list): New accessor function.
1508 (get_current_source_symtab_and_line): New function. Retrieves the
1509 position in the source code that we consider current.
1510 (get_current_or_default_source_symtab_and_line): New function.
1511 Like the above but attempts to determine a default position if one
1512 is not currently defined.
1513 (set_current_source_symtab_and_line): New function. Sets the source
1514 code position considered current and returns the previously set one.
1515 (clear_current_source_symtab_and_line): Reset stored information about
1516 a current source line.
1517 (_initialize_source): Remove registration for the "list" command and
1518 its alias.
1519 * source.h: Add declarations for the new functions above.
1520 * symtab.h: Remove declarations for the global variables mentioned
1521 above.
1522 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1523 obtain current source line.
1524 * linespec.c (decode_line_1): Ditto.
1525 * macroscope.c (default_macro_scope): Ditto.
1526 * scm-lang.c (scm_unpac): Ditto.
1527 * stack.c (print_frame_info_base): Ditto.
1528 * symfile.c (clear_symtab_users): Ditto.
1529 * symtab.c (decode_line_spec): Ditto.
1530 * cli/cli-cmds.c (list_command): Moved here from source.c.
1531 (ambiguous_line_spec): Moved here from source.c.
1532 (_init_cli_cmds): Add definition for "list" and its alias.
1533 * Makefile.in: Update dependencies.
1534
1535 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1536
1537 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1538 with what gcc thinks is correct.
1539
1540 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1541
1542 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1543 multiple register push instruction.
1544
1545 2002-09-19 Jim Blandy <jimb@redhat.com>
1546
1547 Add support for distinct host and target character sets.
1548 * charset.c, charset.h: New files.
1549 * c-exp.y: #include "charset.h".
1550 (yylex): Convert character and string literals to the target
1551 character set, before returning them as the semantic value of the
1552 token.
1553 * c-lang.c: #include "charset.h".
1554 (c_emit_char): Use charset-specific methods to recognize
1555 characters with backslash escape forms, to decide which characters
1556 to print literally and which to print using numeric escape
1557 sequences, and to convert target characters to host characters
1558 before printing.
1559 * utils.c: #include "charset.h".
1560 (no_control_char_error): New function.
1561 (parse_escape): Use charset-specific methods to recognize
1562 backslash escapes, parse `control character' notation, and convert
1563 characters from the host character set to the target character set.
1564 * configure.in: Set the default host character set.
1565 Check where to find iconv, and what its argument types might be.
1566 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1567 * Makefile.in (SFILES): List charset.c.
1568 (COMMON_OBS): List charset.o.
1569 (charset.o): New rule.
1570 (charset_h): New header dependency variable.
1571 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1572 (LIBICONV): New variable, set by configure.
1573 (CLIBS): Include $(LIBICONV) here.
1574 * aclocal.m4, config.in, configure: Regenerated.
1575
1576 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1577
1578 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1579 bison 1.35 warning.
1580
1581 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1582
1583 * gdb_mbuild.sh: New file.
1584
1585 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1586
1587 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1588
1589 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1590
1591 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1592 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1593 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1594 valops.c, value.h: Revert previous change.
1595
1596 2002-09-18 Michael Snyder <msnyder@redhat.com>
1597
1598 Preliminary support for Objective-C:
1599 * defs.h (language_objc): New enum value.
1600 (puts_filtered_tabular): Declaration only, exported from utils.c.
1601 (skip_quoted): Delete, declared in completer.h.
1602 * c-exp.y: Include completer.h.
1603 * p-exp.y: Ditto.
1604 * jv-exp.y: Ditto.
1605 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1606 New operator enum values.
1607 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1608 * language.c (binop_result_type): Handle language_objc case.
1609 (integral_type, character_type, string_type, boolean_type,
1610 structured_type, binop_type_check): Ditto.
1611 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1612 (struct objc_specific): Add to general_symbol_info.
1613 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1614 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1615 * parser-defs.h (struct objc_class_str): New struct type.
1616 (start_msglist, end_msglist, add_msglist): Declaration only,
1617 exported from objc-lang.c.
1618 * value.h (value_of_local, value_nsstring,
1619 call_function_by_hand_expecting_type): Exported from valops.c.
1620 * valops.c (find_function_addr): Export.
1621 (call_function_by_hand_expecting_type): New function.
1622 (value_of_local): New function.
1623 * symfile.c (init_filename_language_table): Add ".m" extension
1624 for Objective-C.
1625 * utils.c (puts_filtered_tabular): New function.
1626 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1627 (set/show demangle): Extend help-string to refer to ObjC.
1628 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1629 * stabsread.c (symbol_reference_defined): Objective-C symbols
1630 may contain colons: make allowances when scanning stabs strings
1631 for colons.
1632 (objc_find_colon): New function.
1633 * printcmd.c (address_info): If language == objc then print
1634 "self" instead of "this".
1635 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1636 OP_NSSTRING, and OP_SELF.
1637 (prefixify_subexp): Ditto.
1638 * source.c (print_source_lines): Mention objc in comment.
1639 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1640 method names.
1641
1642 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1643
1644 * complaints.h: Update copyright.
1645 (struct complaints): Declare.
1646 (struct complaint): Make `message' constant.
1647 (internal_complaint): Declare.
1648 (complaint): Declare.
1649 (complaint_root): Delete declaration.
1650 (symfile_complaints): Delete declaration.
1651 (struct complaints): Add opaque declaration.
1652 (clear_complaints): Add a complaints parameter.
1653 * complaints.c: Update copyright.
1654 (enum complaint_series): Define.
1655 (complaint_root): Delete.
1656 (struct complaints): Define.
1657 (complaint_sentinel, symfile_complaint_book): New variables.
1658 (symfile_explanations, symfile_complaints): New variables.
1659 New variables.
1660 (get_complaints): New function.
1661 (vcomplaint): New function.
1662 (complaint): New function.
1663 (internal_complaint): New function.
1664 (complain): Call vcomplain with symfile_complaint.
1665 (clear_complaints): Rewrite.
1666 (_initialize_complaints): Use add_setshow_command.
1667 * Makefile.in (complaints.o): Update dependencies.
1668 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1669 to call to clear_complaints.
1670 (new_symfile_objfile, reread_symbols): Ditto.
1671 (oldsyms_complaint): Delete.
1672 (empty_symtab_complaint, unknown_option_complaint): Delete.
1673 (free_named_symtabs): Use complaint instead of complain.
1674
1675 2002-09-18 Michael Snyder <msnyder@redhat.com>
1676
1677 Contributed by Apple Computer, Inc. Merged with current sources
1678 by Adam Fedor <fedor@doc.com> [cagney].
1679
1680 * objc-lang.c: First clean-up round: comments, indentation.
1681 * objc-lang.h: Ditto.
1682 * objc-lang.y: Ditto.
1683
1684 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1685
1686 * maint.c (maintenance_internal_error): Print the parameter as the
1687 error message.
1688 (maintenance_internal_warning): New function.
1689 (_initialize_maint_cmds): Add command `maint internal-warning'.
1690
1691 * defs.h (internal_warning, internal_vwarning): Declare.
1692 * utils.c (struct internal_problem): Define.
1693 (internal_vproblem): New function.
1694 (internal_warning): New function.
1695 (internal_vwarning): New function.
1696 (internal_warning_problem, internal_error_problem): New variables.
1697 (internal_verror): Just call internal_vproblem.
1698
1699 2002-09-18 Michael Snyder <msnyder@redhat.com>
1700
1701 * objc-lang.c: New file, support for Objective-C.
1702 Preliminary check-in, not yet integrated into gdb.
1703 * objc-lang.h: New file.
1704 * objc-exp.y: New file.
1705
1706 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1707
1708 * infrun.c (signal_stop_update): Convert definition to ISO C.
1709 (signal_print_update): Ditto.
1710 (signal_pass_update): Ditto.
1711 * inflow.c (terminal_save_ours): Ditto.
1712
1713 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1714 comments.
1715
1716 * config/djgpp/fnchange.lst: Handle name clashes between
1717 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1718 bfd/coff-tic80.c.
1719
1720 * i386-linux-tdep.h: Fix tipo.
1721
1722 2002-09-18 Adam Fedor <fedor@gnu.org>
1723
1724 * MAINTAINERS: Add myself to the Write After Approval list.
1725
1726 2002-09-18 Jim Blandy <jimb@redhat.com>
1727
1728 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1729 texthigh and textlow to reader-specific structs caused
1730 objfile_relocate to miss them. This is fixable, but the work that
1731 the change was supposed to prepare GDB for never got done anyway.
1732
1733 2002-09-18 David Carlton <carlton@math.stanford.edu>
1734
1735 * MAINTAINERS: Alphabetize Write After Approval list.
1736
1737 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1738
1739 Fix PR gdb/709
1740 * values.c (value_static_field): Call read_var_value.
1741
1742 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1743
1744 * valops.c (hand_function_call): Align the initial stack pointer
1745 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1746 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1747 return value.
1748 * mips-tdep.c (mips_frame_align): New function.
1749 (mips_gdbarch_init): Set frame_align.
1750 * gdbarch.sh (FRAME_ALIGN): New method.
1751 * gdbarch.h, gdbarch.c: Re-generate.
1752
1753 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1754
1755 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1756 registers.
1757
1758 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1759
1760 * NEWS: Mention that MIPS $fp behavior changed.
1761 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1762 reference to FP_REGNUM.
1763 (mipsnbsd_cannot_store_register): Ditto.
1764 * mips-linux-nat.c: Update copyright.
1765 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1766 (mips_linux_cannot_store_register): Ditto.
1767 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1768 * config/mips/tm-mips.h: Update copyright.
1769 (FP_REGNUM): Delete macro.
1770 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1771 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1772 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1773 (mips_r3041_reg_names, mips_r3051_reg_names)
1774 (mips_r3081_reg_names): Replace "fp" with "".
1775 Fix PR gdb/480.
1776
1777 2002-09-17 Theodore A. Roth <troth@verinet.com>
1778
1779 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1780 generic_read_register_dummy() (PR gdb/703).
1781 (avr_push_return_address): #if 0 out unused vars.
1782 (avr_gdbarch_init): Enable use of avr_push_return_address().
1783
1784 2002-09-17 Michael Snyder <msnyder@redhat.com>
1785
1786 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1787 RTE will take care of it.
1788
1789 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1790
1791 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1792 invalid, return SP_REGNUM.
1793
1794 2002-09-17 Michael Snyder <msnyder@redhat.com>
1795
1796 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1797 point registers without sign extension.
1798
1799 2002-09-17 Andrew Cagney <cagney@redhat.com>
1800
1801 * blockframe.c (deprecated_read_register_dummy): Rename
1802 generic_read_register_dummy.
1803 * frame.c (frame_unwind_signed_register): New function.
1804 (frame_unwind_unsigned_register): New function.
1805 * frame.h (frame_unwind_signed_register): Declare.
1806 (frame_unwind_unsigned_register): Declare.
1807 (deprecated_read_register_dummy): Rename
1808 generic_read_register_dummy.
1809
1810 * h8300-tdep.c (h8300_frame_chain): Update.
1811 (h8300_frame_saved_pc): Update.
1812 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1813 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1814 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1815 (s390_frame_chain): Update.
1816 * v850-tdep.c (v850_find_callers_reg): Update.
1817 (v850_frame_saved_pc): Update.
1818 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1819 (m32r_find_callers_reg): Update.
1820 (m32r_frame_saved_pc): Update.
1821 * sh-tdep.c (sh_find_callers_reg): Update.
1822 (sh64_get_saved_pr): Update.
1823 (sh_init_extra_frame_info): Update.
1824 (sh_init_extra_frame_info): Update.
1825 (sh64_init_extra_frame_info): Update.
1826 (sh64_init_extra_frame_info): Update.
1827 * mcore-tdep.c (mcore_find_callers_reg): Update.
1828 (mcore_frame_saved_pc): Update.
1829 (mcore_init_extra_frame_info): Update.
1830 * i386-tdep.c (i386_frame_saved_pc): Update.
1831 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1832 (ia64_init_extra_frame_info): Update.
1833 (ia64_init_extra_frame_info): Update.
1834 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1835 * cris-tdep.c (cris_init_extra_frame_info): Update.
1836 * avr-tdep.c (avr_frame_chain): Update.
1837 (avr_init_extra_frame_info): Update.
1838 (avr_frame_saved_pc): Update.
1839 * arm-tdep.c (arm_find_callers_reg): Update.
1840 (arm_init_extra_frame_info): Update.
1841 (arm_frame_saved_pc): Update.
1842
1843 2002-09-17 Tom Tromey <tromey@redhat.com>
1844
1845 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1846 is "'".
1847
1848 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1849
1850 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1851 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1852 NEXT_PROLOGUE_INSN.
1853 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1854 NEXT_PROLOGUE_INSN.
1855
1856 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1857
1858 * osfsolib.c: Remove file, replaced by solib-osf.c.
1859 * Makefile.in: Remove compilation rules for osfsolib.c.
1860
1861 2002-09-16 David Carlton <carlton@math.stanford.edu>
1862
1863 * cp-valprint.c (cp_print_class_method): Correct args to
1864 check_stub_method_group.
1865
1866 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1867
1868 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1869 `set architecture'. Unify naming convention of functions.
1870 (h8300_skip_prologue): Improve prologue analysis.
1871 (h8300_push_arguments): Rewritten to more closely match GCC's
1872 bizarre argument-passing behavior, along with the comment describing
1873 said behavior.
1874 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1875 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1876 sim, remote-e7000.c, remote-hms.c and remote.c
1877
1878 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1879
1880 * i386-tdep.c (gdb_print_insn_i386): Removed.
1881 (i386_print_insn): New function.
1882 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1883 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1884 tm_print_insn_info.
1885
1886 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1887
1888 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1889 zero.
1890
1891 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1892
1893 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1894 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1895 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1896
1897 2002-09-13 Christopher Faylor <cgf@redhat.com>
1898
1899 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1900
1901 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * gdbtypes.c (check_stub_method): Make static.
1904 (check_stub_method_group): New function.
1905 * gdbtypes.h: Update prototypes.
1906 * cp-support.c: New file.
1907 * cp-support.h: New file.
1908
1909 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1910 (update_method_name_from_physname): New function.
1911 (read_member_functions): Correct method names for operators
1912 and v3 constructors/destructors. Separate v2 constructors and
1913 destructors.
1914 * Makefile.in (stabsread.o): Update dependencies.
1915 (SFILES): Add cp-support.c.
1916 (COMMON_OBS): Add cp-support.o.
1917 (cp_support_h, cp-support.o): Add.
1918
1919 * cp-valprint.c (cp_print_class_method): Call
1920 check_stub_method_group instead of check_stub_method. Remove
1921 extraneous QUITs.
1922 * p-valprint.c (pascal_object_print_class_method): Likewise.
1923 * valops.c (search_struct_method): Likewise.
1924 (find_method_list, value_struct_elt_for_reference): Likewise.
1925
1926 2002-09-13 Andrew Cagney <cagney@redhat.com>
1927
1928 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1929 * gdbarch.h, gdbarch.c: Regenerate.
1930
1931 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1932
1933 * frame.c (find_saved_register): Delete function.
1934 * frame.h (find_saved_register): Delete declaration.
1935 Fix PR gdb/631.
1936
1937 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1938
1939 * mips-tdep.c (read_next_frame_reg): Re-hack using
1940 frame_register_unwind.
1941
1942 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1943
1944 * mips-tdep.c (mips_get_saved_register): Re-hack using
1945 frame_register_unwind.
1946
1947 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1948
1949 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1950 vector. Will be useful for Interix.
1951 * gdbarch.h, gdbarch.c: Regenerate.
1952
1953 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1954 name of the malloc function by NAME_OF_MALLOC.
1955
1956 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1957
1958 * value.h (find_function_in_inferior): Add const keyword to
1959 one of the parameters. Allows us to invoke this function with
1960 a const char *.
1961 * valops.c (find_function_in_inferior): Likewise.
1962
1963 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1964
1965 * exec.c (xfer_memory): Fix compilation warning with old versions
1966 of GCC.
1967 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1968
1969 2002-09-12 David Carlton <carlton@math.stanford.edu>
1970
1971 * symtab.h: Run through gdb_indent.h.
1972 Add 2002 to Copyright year list.
1973
1974 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1975
1976 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1977 mach constants.
1978 * MAINTAINERS: Add myself to write after approval list.
1979
1980 2002-09-11 J. Brobecker <brobecker@gnat.com>
1981
1982 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1983
1984 2002-09-11 J. Brobecker <brobecker@gnat.com>
1985
1986 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1987 Interix.
1988
1989 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1990
1991 * procfs.c (do_detach): Clear current signal, not just fault.
1992 Corrects problem with breakpoint trap signal leaking to detached
1993 process on Tru64.
1994
1995 2002-09-10 Michael Snyder <msnyder@redhat.com>
1996
1997 * buildsym.c (finish_block): Protect against null pointer.
1998
1999 2002-09-10 Andrew Cagney <cagney@redhat.com>
2000
2001 * infcmd.c (default_print_registers_info): Send all output to
2002 ``file'' instead of ``gdb_stdout''.
2003
2004 2002-09-10 Michael Snyder <msnyder@redhat.com>
2005
2006 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2007 LONGEST, and use signed register read (addresses are sign-
2008 extended for mips).
2009
2010 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2011
2012 * event-loop.c (gdb_do_one_event): Make public.
2013 * event-loop.h (gdb_do_one_event): Declare.
2014
2015 2002-09-10 Jeff Law <law@redhat.com>
2016
2017 * infttrace.c (child_resume): Simplify and rework to avoid
2018 TT_PROC_CONTINUE.
2019
2020 2002-09-09 Fred Fish <fnf@intrinsity.com>
2021
2022 * printcmd.c (print_scalar_formatted): "len" is the number of
2023 target bytes, NOT the number of target bits.
2024
2025 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2026
2027 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2028 * top.c (init_main): Set rl_terminal_name.
2029
2030 2002-09-08 Aidan Skinner <aidan@velvet.net>
2031
2032 * ada-lang.c (ada_array_bound, ada_type_match,
2033 _initialize_ada_language): Fix K&R definitions.
2034 * ada-tasks.c (get_current_task): Fix K&R definitions.
2035 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2036
2037 2002-09-07 Christopher Faylor <cgf@redhat.com>
2038
2039 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2040 Add XP.
2041
2042 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2043
2044 * i386-tdep.c (i386_register_virtual_type,
2045 i386_register_convertible, i386_register_convert_to_virtual,
2046 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2047 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2048 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2049 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2050 Don't set push_arguments twice.
2051
2052 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2053 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2054 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2055 sigtramp_end to NULL.
2056 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2057 defines.
2058 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2059
2060 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2061 whitespace.
2062
2063 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2064 * gdbarch.h, gdbarch.c: Re-generate.
2065 * blockframe.c (find_pc_sect_partial_function): Convert to use
2066 SIGTRAMP_START_P predicate.
2067
2068 2002-09-05 Michael Snyder <msnyder@redhat.com>
2069
2070 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2071 generic_dummy_frame method and old method. Also distinguish
2072 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2073 (arm_extract_return_value): Use new regcache method.
2074
2075 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2076 adjustment that doesn't conform to the ABI.
2077 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2078 saved regcache, not from current regcache.
2079
2080 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2081
2082 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2083 * README: Update.
2084
2085 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2086
2087 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2088 if arm_apcs_32 is false.
2089
2090 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2091
2092 GDB 5.3 branch created.
2093
2094 2002-09-03 Theodore A. Roth <troth@verinet.com>
2095
2096 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2097 generic_unwind_get_saved_register.
2098
2099 2002-09-03 David Carlton <carlton@math.stanford.edu>
2100
2101 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2102 argument (PR gdb/653). Update call to smash_to_method_type.
2103 (read_structure_scope): Update call to dwarf2_add_member_fn.
2104
2105 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2106
2107 * x86-64-linux-tdep.c: Include gdb_string.h
2108 * x86-64-linux-nat.c: Ditto.
2109
2110 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2111
2112 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2113 when YYDEBUG is set to 1.
2114 * c-exp.y: Likewise.
2115 * f-exp.y: Likewise.
2116 * jv-exp.y: Likewise.
2117 * m2-exp.y: Likewise.
2118 * p-exp.y: Likewise.
2119
2120 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2121
2122 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2123 dependency list.
2124 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2125 solib_svr4_fetch_link_map_offsets to
2126 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2127 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2128 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2129 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2130 solib-svr4.o, and solib-legacy.o.
2131 * config/i386/tm-nbsd.h: Include solib.h.
2132
2133 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2134
2135 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2136 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2137 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2138 comment noting that this needs its own target configuration.
2139 * config/i386/nbsd.mt: New file.
2140 * config/i386/nbsdaout.mt: Remove.
2141 * config/i386/nbsdelf.mt: Ditto.
2142 * config/i386/tm-nbsdaout.h: Ditto.
2143
2144 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2145
2146 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2147 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2148 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2149 tdep->sigtramp_end.
2150 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2151 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2152 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2153
2154 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2155
2156 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2157 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2158 * i386-tdep.h (i386bsd_init_abi): New prototype.
2159 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2160 function declaration.
2161 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2162 for NetBSD-a.out or NetBSD-ELF.
2163 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2164 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2165 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2166 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2167 and nbsd-tdep.h.
2168 (i386nbsd_pc_in_sigtramp): New function.
2169 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2170 i386nbsd_pc_in_sigtramp.
2171 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2172 and i386nbsdelf_init_abi OS ABI handlers.
2173 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2174 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2175
2176 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2177
2178 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2179 registers if the target really has them.
2180
2181 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2182
2183 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2184 than nbsd-tdep.h.
2185
2186 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2187
2188 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2189 list.
2190 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2191 (alphanbsd_skip_sigtramp_frame): New functions.
2192 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2193 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2194 to alphanbsd_sigcontext_addr.
2195
2196 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2197
2198 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2199 list.
2200 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2201 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2202 nbsd_pc_in_sigtramp.
2203 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2204 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2205 * nbsd-tdep.c: Include gdb_string.h.
2206 (nbsd_pc_in_sigtramp): New function.
2207 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2208 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2209 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2210 ppcnbsd_pc_in_sigtramp.
2211 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2212 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2213 shnbsd_pc_in_sigtramp.
2214 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2215 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2216 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2217
2218 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2219
2220 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2221 watchpoints to NULL.
2222 (insert_breakpoints): set val field of watchpoints if NULL.
2223
2224
2225 2002-08-29 Jim Blandy <jimb@redhat.com>
2226
2227 * symtab.c (lookup_symbol_aux): In the cases where we find a
2228 minimal symbol of an appropriate name and use its address to
2229 select a symtab to read and search, use `name' (as passed to us)
2230 as the demangled name when searching the symtab's global and
2231 static blocks, not the minsym's name.
2232
2233 2002-08-29 Keith Seitz <keiths@redhat.com>
2234
2235 * stack.c (print_frame_info_base): Always set current_source_symtab
2236 and current_source_line.
2237
2238 2002-08-29 Donn Terry <donnte@microsoft.com>
2239
2240 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2241
2242 2002-08-28 Keith Seitz <keiths@redhat.com>
2243
2244 * stack.c (select_frame): Add FIXME concerning selected-frame
2245 events.
2246 (select_frame_command): Send selected-frame-level-changed
2247 event notification, but only if the level actually changed.
2248 (up_silently_base): Add selected-frame-level-changed event
2249 notification.
2250 (down_silently_base): Likewise.
2251
2252 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2253
2254 * Makefile.in: Update dependencies for all gdb/*.c files.
2255
2256 2002-08-27 Tom Tromey <tromey@redhat.com>
2257
2258 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2259 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2260 Update dependencies.
2261 * i387-tdep.c: Include gdb_string.h.
2262 * osabi.c: Likewise.
2263 * i386-linux-nat.c: Likewise.
2264 * lin-lwp.c: Likewise.
2265 * ax-gdb.c: Likewise.
2266 * signals/signals.c: Likewise.
2267 * jv-valprint.c: Likewise.
2268 * p-lang.c: Likewise.
2269 * c-valprint.c: Likewise.
2270 * cp-abi.c: Likewise.
2271
2272 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2273
2274 * cli/cli-script.h (copy_command_lines): Export.
2275 * breakpoint.c: Include cli/cli-script.h.
2276 * Makefile.in (breakpoint.o): Update dependencies.
2277
2278 2002-08-26 Michael Snyder <msnyder@redhat.com>
2279
2280 * breakpoint.c (insert_breakpoints): Protect all references
2281 to 'process_warning'. Shorten long lines.
2282
2283 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2284
2285 * cli/cli-script.c (copy_command_lines): New function.
2286 * defs.h (copy_command_lines): Export.
2287 * testsuite/gdb.base/commands.exp: New tests for commands
2288 attached to a temporary breakpoint, and for commands that
2289 delete the breakpoint they are attached to.
2290
2291 2002-08-26 Michael Snyder <msnyder@redhat.com>
2292
2293 * breakpoint.c (bpstat_stop_status): Instead of copying the
2294 pointer to the breakpoint commands struct, make a new copy
2295 of the struct and point to that.
2296 (bpstat_clear): Free the commands struct.
2297 (bpstat_clear_actions): Free the commands struct.
2298 (bpstat_do_actions): Free the command actions. Also execute
2299 the local cleanups, instead of deleting them.
2300 (delete_breakpoint): Leave the commands field of the bpstat
2301 chain alone -- it will be freed later.
2302
2303 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2304
2305 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2306 deleted in 2002-08-20 commit. This function is still used by
2307 ppc-linux-nat.c.
2308
2309 2002-08-26 Keith Seitz <keiths@redhat.com>
2310
2311 * gdb-events.sh: Add selected-frame-level-changed event.
2312 * gdb-events.c: Regenerated.
2313 * gdb-events.h: Regenerated.
2314
2315 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2316
2317 Fix PR gdb/393:
2318 * inflow.c (terminal_save_ours): New function to save terminal
2319 settings.
2320 * inferior.h (terminal_save_ours): Declare.
2321 * target.c (debug_to_terminal_save_ours): New function.
2322 (cleanup_target): Defaults to_terminal_save_ours.
2323 (update_current_target): Inherit to_terminal_save_ours.
2324 (setup_target_debug): Set to_terminal_save_ours.
2325 * target.h (target_terminal_save_ours): New to save terminal settings.
2326 (target_ops): New member to_terminal_save_ours.
2327 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2328 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2329 * inftarg.c (init_child_ops): Likewise.
2330 * m3-nat.c (init_m3_ops): Likewise.
2331 * procfs.c (init_procfs_ops): Likewise.
2332 * wince.c (init_child_ops): Likewise.
2333 * win32-nat.c (init_child_ops): Likewise.
2334 * sol-thread.c (init_sol_thread_ops): Likewise.
2335
2336 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2337
2338 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2339 use regcache_* functions.
2340 (i386_gdbarch_init): Set store_return_value instead of
2341 deprecated_store_return_value.
2342
2343 * regcache.c (regcache_raw_write_signed,
2344 regcache_raw_write_unsigned): New functions.
2345 * regcache.h (regcache_raw_write_signed,
2346 regcache_raw_write_unsigned): New prototypes.
2347
2348 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2349
2350 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2351 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2352 source file dependencies. Cleanup corresponding generator rules.
2353
2354 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2355
2356 * regcache.h (register_offset_hack): Declare.
2357 (regcache_cooked_read_using_offset_hack): Declare.
2358 (regcache_cooked_write_using_offset_hack): Declare.
2359
2360 * regcache.c (register_offset_hack): New function.
2361 (regcache_cooked_read_using_offset_hack): New function.
2362 (regcache_cooked_write_using_offset_hack): New function.
2363 (regcache_dump): Check that the registers, according to their
2364 offset, are packed hard against each other.
2365 (cooked_xfer_using_offset_hack): New function.
2366
2367 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2368
2369 * regcache.c (struct regcache_descr): Add field register_type.
2370 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2371 in as a parameter
2372 (init_regcache_descr): Initialize register_type. Pass the descr
2373 to init_legacy_regcache_descr. Use register_type instead of
2374 REGISTER_VIRTUAL_TYPE.
2375 (register_type): New function.
2376 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2377 * regcache.h (register_type): Declare.
2378
2379 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2380
2381 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2382 instead of deprecated_store_return_value. Fix fallout from
2383 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2384
2385 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2386
2387 * regcache.c (max_register_size): New function.
2388 (init_legacy_regcache_descr): Ensure that max_register_size is
2389 large enough for REGISTER_VIRTUAL_SIZE.
2390 * regcache.h (max_register_size): Declare.
2391
2392 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2393
2394 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2395 store_return_value.
2396 (e500_extract_return_value): Change type of valbuf pointer to
2397 void.
2398
2399 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2400
2401 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2402 workaround.
2403
2404 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2405 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2406 long long) to prevent compiler warning on 64-bit systems.
2407
2408 2002-08-23 Andrew Cagney <cagney@redhat.com>
2409
2410 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2411 (DEPRECATED_STORE_RETURN_VALUE): New method.
2412 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2413 * gdbarch.h, gdbarch.c: Re-generate.
2414
2415 * values.c (set_return_value): Pass current_regcache to
2416 STORE_RETURN_VALUE.
2417 * arch-utils.h (legacy_store_return_value): Declare.
2418 * arch-utils.c (legacy_store_return_value): New function.
2419 (legacy_extract_return_value): Update parameters.
2420
2421 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2422 STORE_RETURN_VALUE.
2423 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2424 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2425 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2426 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2427 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2428 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2429 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2430 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2431 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2432 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2433
2434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2435 * i386-tdep.c (i386_extract_return_value): Update.
2436 * arch-utils.c (legacy_extract_return_value): Update.
2437 * frv-tdep.c (frv_gdbarch_init): Update.
2438 * cris-tdep.c (cris_gdbarch_init): Update.
2439 * d10v-tdep.c (d10v_gdbarch_init): Update.
2440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2441 * m68k-tdep.c (m68k_gdbarch_init): Update.
2442 * mcore-tdep.c (mcore_gdbarch_init): Update.
2443 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2444 * s390-tdep.c (s390_gdbarch_init): Update.
2445 * sparc-tdep.c (sparc_gdbarch_init): Update.
2446 * sh-tdep.c (sh_gdbarch_init): Update.
2447 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2448 * v850-tdep.c (v850_gdbarch_init): Update.
2449 * avr-tdep.c (avr_gdbarch_init): Update.
2450 * ia64-tdep.c (ia64_gdbarch_init): Update.
2451 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2452 * vax-tdep.c (vax_gdbarch_init): Update.
2453 * alpha-tdep.c (alpha_gdbarch_init): Update.
2454 * arm-tdep.c (arm_gdbarch_init): Update.
2455 * mips-tdep.c (mips_gdbarch_init): Update.
2456 * i386-tdep.c (i386_gdbarch_init): Update.
2457
2458 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2459
2460 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2461 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2462
2463 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2464
2465 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2466 problems.
2467
2468 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2469
2470 * infrun.c (handle_inferior_event): Move a comment outside of a
2471 function call, in order to avoid indent reformatting this part
2472 of the code in an unreadable way.
2473
2474 2002-08-23 Grace Sainsbury <graces@redhat.com>
2475
2476 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2477 when breakpoints fail. Move general breakpoint error messages to
2478 insert_breakpoints.
2479 * breakpoint.c (insert_breakpoints): Change warnings when
2480 breakpoints are nto inserted to specify the type. Remove call to
2481 memory_error when hardware breakpoints can't be inserted. Remove
2482 multiple calls to warning so all messages are sent to the user at
2483 once.
2484 (delete_breakpoints): Make insert error messsages more explicit.
2485
2486 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2487
2488 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2489 gdbserver/ChangeLog.
2490
2491 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2492
2493 * i386-tdep.c: Include "objfiles.h".
2494 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2495 skip_trampoline_code.
2496 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2497 (CPLUS_MARKER): Define to '.'.
2498
2499 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2500 member.
2501 (linux_corefile_thread_callback): Increase args->num_notes.
2502 (linux_make_note_section): Initialize thread_args.num_notes, and
2503 use it to determine whether notes for any threads were created.
2504
2505 2002-08-23 Donn Terry <donnte@microsoft.com>
2506
2507 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2508 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2509 and PCUNKILL.
2510 (write_with_trace): Conditionalize out the switch branch handling
2511 PCSHOLD if the corresponding macro is not defined. Likewise for
2512 PRSABORT and PRSTOP.
2513 This change will be needed by the Interix port.
2514
2515 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2516
2517 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2518 write_register wherever possible instead of manipulating the
2519 register bytes directly.
2520 Assign VALUE_CONTENTS to a variable and use that.
2521 The GPR numbers are now dependent on the architecture.
2522
2523 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2524
2525 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2526 ev_offset fields.
2527 (skip_prologue): Add support for BookE/e500 instructions.
2528 (e500_extract_return_value): New function.
2529 (frame_get_saved_regs): Add support for saving ev registers and
2530 pseudo gpr's.
2531 (e500_store_return_value): New function.
2532 (rs6000_gdbarch_init): Move up default intializations of
2533 deprecated_extract_return_value and store_return_value. Overwrite
2534 init of store_return_value with e500 specific version.
2535 Set extract_return_value for e500.
2536
2537 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2538
2539 * blockframe.c (generic_call_dummy_register_unwind): Use
2540 regcache_cooked_read to catch cases in which the variable is
2541 stored in a pseudo register.
2542
2543 2002-08-22 Andrew Cagney <cagney@redhat.com>
2544
2545 * NEWS: Mention that the i960 has been made obsolete.
2546 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2547 i960-tdep.c
2548 (remote-nrom.o): Obsolete target.
2549 (remote-nindy.o, i960-tdep.o): Ditto.
2550 * remote-nrom.c: Make file obsolete.
2551 * remote-nindy.c, remote-vx960.c: Ditto.
2552 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2553 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2554 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2555 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2556 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2557 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2558 i960-*-vxworks* obsolete.
2559 * MAINTAINERS: Note that the i960 is obsolete.
2560
2561 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2562
2563 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2564 detach to allow reinitialization.
2565
2566 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2567
2568 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2569 attempt).
2570
2571 2002-08-22 Jim Blandy <jimb@redhat.com>
2572
2573 * coffread.c (coff_symfile_read): Don't try to read the line
2574 number table from disk if the image file doesn't have a symbol
2575 table; we'll never actually look at the info anyway, and Windows
2576 ships DLL's with bogus file offsets for the line number data.
2577
2578 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2579
2580 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2581 an e500 executable.
2582
2583 2002-08-21 Michael Snyder <msnyder@redhat.com>
2584
2585 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2586 (MSYMBOL_SIZE): Replace macro with function.
2587 (DEFAULT_MIPS_TYPE): Delete unused macro.
2588 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2589 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2590
2591 2002-08-21 Jim Blandy <jimb@redhat.com>
2592
2593 * valops.c (value_cast): Simplify and correct logic for doing a
2594 static cast from a pointer to a base class to a pointer to a
2595 derived class.
2596
2597 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2598
2599 * infcmd.c (default_print_registers_info): Replace
2600 do_registers_info.
2601 (registers_info): Use gdbarch_print_registers_info instead of
2602 DO_REGISTERS_INFO.
2603 * inferior.h (default_print_registers_info): Replace
2604 do_registers_info.
2605 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2606 (DO_REGISTERS_INFO): Change to a predicate function.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608
2609 2002-08-21 Keith Seitz <keiths@redhat.com>
2610
2611 * gdb-events.sh: Add target-changed event.
2612 * gdb-events.c: Regenerated.
2613 * gdb-events.c: Regenerated.
2614 * valops.c (value_assign): Add target-changed event notification
2615 to inlval_register, lval_memory, and lval_reg_frame_relative.
2616
2617 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2618
2619 * NEWS: Add an entry regarding the improvement of the next/step
2620 operation on Alpha Tru64 multi-processor machines.
2621
2622 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2623
2624 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2625 directores.
2626 * Makefile.in: Update all _h macro definitions.
2627 * Makefile.in (install-gdbtk): Move to install section.
2628 (rdi-share/libangsd.a): Move to end of file.
2629
2630 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2631
2632 * frame.c (frame_register_unwind): When a register, set addrp to
2633 the register's byte.
2634
2635 2002-08-20 Michael Snyder <msnyder@redhat.com>
2636
2637 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2638 used locally, so move them from the target machine header to here.
2639 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2640 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2641 Make static.
2642 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2643
2644 2002-08-20 Andrew Cagney <cagney@redhat.com>
2645
2646 * NEWS: Mention that the Apollo line was made obsolete.
2647 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2648 m68*-hp-hpux* obsolete.
2649 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2650 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2651 * buildsym.c (make_blockvector): Make static.
2652 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2653 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2654 (ALLDEPFILES): Remove dstread.c.
2655 (dstread.o): Obsolete make rule.
2656 * dstread.c: Makefile obsolete.
2657 * dst.h: Ditto.
2658 * config/m68k/hp300hpux.mt: Ditto.
2659 * config/m68k/hp300hpux.mh: Ditto.
2660 * config/m68k/hp300bsd.mt: Ditto.
2661 * config/m68k/hp300bsd.mh: Ditto.
2662 * config/m68k/apollo68b.mt: Ditto.
2663 * config/m68k/apollo68v.mh: Ditto.
2664 * config/m68k/apollo68b.mh: Ditto.
2665
2666 2002-08-20 Michael Snyder <msnyder@redhat.com>
2667
2668 * mips-tdep.c (mips_in_return_stub): Make static.
2669 (mips_gdbarch_init): Set in_solib_return_trampoline.
2670 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2671
2672 2002-08-20 Michael Snyder <msnyder@redhat.com>
2673
2674 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2675 * gdbarch.c, gdbarch.h: Regenerate.
2676 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2677 Add.
2678 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2679
2680 2002-08-20 Michael Snyder <msnyder@redhat.com>
2681
2682 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2683 (mips_gdbarch_init): Set skip_trampoline_code,
2684 in_solib_call_trampoline.
2685 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2686 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2687
2688 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2689
2690 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2691
2692 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2693 vector type for ev registers.
2694 (e500_pseudo_register_read): New function.
2695 (e500_pseudo_register_write): New function.
2696 (e500_dwarf2_reg_to_regnum): New function.
2697 (PPC_UISA_NOFP_SPRS): New macro.
2698 (PPC_EV_REGS): New macro.
2699 (PPC_GPRS_PSEUDO_REGS): New macro.
2700 (registers_e500): New register set for e500.
2701 (variants): Add e500 variant.
2702 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2703 before setting architectural dependent variations. Initialize ev
2704 registers numbers. Add case for e500 architecture. Set the
2705 number of pseudo registers.
2706
2707 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2708
2709 * rs6000-tdep.c: Clean up comments.
2710
2711 2002-08-20 Andrew Cagney <cagney@redhat.com>
2712
2713 * h8300-tdep.c: Re-indent file.
2714
2715 2002-08-20 Jim Blandy <jimb@redhat.com>
2716
2717 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2718 default for this.
2719
2720 2002-08-20 Keith Seitz <keiths@redhat.com>
2721
2722 * breakpoints.c (watch_command_1): Use internal breakpoint
2723 when setting a watchpoint_scope breakpoint.
2724
2725 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2728 (build_builtin_type_vec64i): Ditto.
2729 (build_builtin_type_vec128): Ditto.
2730 (build_builtin_type_vec128i): Ditto.
2731
2732 2002-08-19 Michael Snyder <msnyder@redhat.com>
2733
2734 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2735 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2736 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2737 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2738 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2739 CALL_DUMMY_ADDRESS): Delete.
2740 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2741 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2742 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2743 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2744 push_return_address.
2745 (mips_register_raw_size, mips_eabi_use_struct_convention,
2746 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2747 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2748 mips_init_extra_frame_info, mips_eabi_push_arguments,
2749 mips_n32n64_push_arguments, mips_push_return_address,
2750 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2751 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2752
2753 2002-08-19 Michael Snyder <msnyder@redhat.com>
2754
2755 * mips-tdep.c (mips_frame_num_args): New function.
2756 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2757 frame_saved_pc, frame_args_address, frame_locals_address,
2758 frame_num_args, and frame_args_skip.
2759 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2760 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2761 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2762 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2763
2764 2002-08-20 Michael Snyder <msnyder@redhat.com>
2765
2766 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2767 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2768 * mips-tdep.c (mips_store_struct_return): New function.
2769 (mips_extract_struct_value_address): New function.
2770 (mips_gdbarch_init): Set store_struct_return and
2771 extract_struct_value_address.
2772
2773 2002-08-20 David Carlton <carlton@math.stanford.edu>
2774
2775 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2776 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2777 (read_file_scope): Check that line_header is nonzero before
2778 decoding macro information.
2779
2780 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2781
2782 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2783 flag the general-purpose registers as floating-point on targets
2784 that don't support the floating-point registers.
2785
2786 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2787
2788 * rs6000-tdep.c (altivec_register_p): Delete.
2789 (rs6000_do_altivec_registers): Delete.
2790 (rs6000_altivec_registers_info): Delete.
2791 (rs6000_do_registers_info): Delete.
2792 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2793 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2794
2795 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2796
2797 * infcmd.c (do_registers_info): Print vector registers in hex
2798 format only.
2799 (print_vector_info): Check that printing registers
2800 makes sense.
2801 (print_float_info): Ditto.
2802
2803 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2804
2805 * mips-tdep.c (mips_gdbarch_init): Update.
2806 (mips_o32_extract_return_value): Rewrite.
2807 (mips_o32_store_return_value): Rewrite.
2808 (mips_o32_xfer_return_value): New function.
2809 (mips_xfer_register): Tweak debug print message. Allow for
2810 buf_offset when dumping the value transfered.
2811
2812 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2813
2814 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2815 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2816 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2817 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2818 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2819
2820 2002-08-14 Michael Snyder <msnyder@redhat.com>
2821
2822 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2823
2824 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2825
2826 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2827 register.
2828 (P): New macro to define a register as a pseudo register.
2829 (R, R4, R8, R16, FR32, R64, R0): Updated.
2830 (struct variant): Add new fields for number of pseudo registers
2831 and number of total registers.
2832 (tot_num_registers): New macro replacing....
2833 (num_registers): ...deleted macro.
2834 (num_registers): New function.
2835 (num_pseudo_registers): New function.
2836 (variants): Update all variants to intialize new fields correctly.
2837 Postpone initialization of number of pseudo regs and real regs.
2838 (init_variants): New function.
2839 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2840 registers offsets.
2841
2842 2002-08-19 David Carlton <carlton@math.stanford.edu>
2843
2844 * valops.c (search_struct_field): Change error message to treat
2845 return value of 0 from value_static_field as meaning that field is
2846 optimized out.
2847 (value_struct_elt_for_reference): Ditto.
2848 * values.c (value_static_field): Treat an unresolved location the
2849 same as a nonexistent symbol. Fix PR gdb/635.
2850 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2851 enclosed. Fix PR gdb/574.
2852 * MAINTAINERS: Add self to Write After Approval list.
2853
2854 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2855
2856 * mips-tdep.c (mips_xfer_register): New function.
2857 (mips_n32n64_extract_return_value): Rewrite.
2858 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2859 instead of deprecated_extract_return_value.
2860
2861 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2862
2863 * rs6000-tdep.c (TDEP): Delete macro.
2864 (branch_dest): Replace use of TDEP macro with its body.
2865 (rs6000_pop_frame): Ditto.
2866 (rs6000_push_arguments): Ditto.
2867 (rs6000_skip_trampoline_code): Ditto.
2868 (rs6000_frame_saved_pc): Ditto.
2869 (rs6000_frame_chain): Ditto.
2870 (rs6000_register_name): Ditto.
2871 (rs6000_register_byte): Ditto.
2872 (rs6000_register_raw_size): Ditto.
2873 (rs6000_register_virtual_type): Ditto.
2874 (rs6000_register_convertible): Ditto.
2875 (rs6000_convert_from_func_ptr_addr): Ditto.
2876
2877 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2880 conditionally.
2881 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2882 MIPS_LINUX_JB_ELEMENT_SIZE.
2883 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2884 for MAX_REGISTER_RAW_SIZE arrays.
2885 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2886 MIPS_LINUX_JB_ELEMENT_SIZE.
2887
2888 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2889
2890 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2891
2892 2002-08-19 Aidan Skinner <aidan@velvet.net>
2893
2894 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2895 ada-valprint.c ada-tasks.c.
2896 (YYFILES): Add ada-exp.y.
2897 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2898 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2899 (ada-exp.tab.o): New target.
2900
2901 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2902
2903 * regcache.c (regcache_xfer_part): New function.
2904 (regcache_raw_read_part): New function.
2905 (regcache_raw_write_part): New function.
2906 (regcache_cooked_read_part): New function.
2907 (regcache_cooked_write_part): New function.
2908 * regcache.h (regcache_raw_read_part): Declare.
2909 (regcache_raw_write_part): Declare.
2910 (regcache_cooked_read_part): Declare.
2911 (regcache_cooked_write_part): Declare.
2912
2913 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2914
2915 * remote.c (remote_open_1): Add async_p.
2916 (remote_async_open_1): Delete.
2917 (open_remote_target): Delete.
2918 (remote_open, extended_remote_open): Update calls to remote_open_1.
2919 (remote_async_open, extended_remote_async_open): Call
2920 remote_open_1 instead of remote_async_open_1.
2921
2922 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2923
2924 * blockframe.c: Fix a few coding standard violations.
2925
2926 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2927
2928 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2929 here from ...
2930 * config/i386/tm-i386sco5.h: ... here. File removed.
2931 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2932
2933 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2934 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2935 (TM_FILE): Set to tm-i386.h.
2936 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2937 * config/i386/tm-i386v.h: Remove file.
2938 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2939 instead of "i386/tm-i386v.h".
2940 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2941 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2942 "i386/tm-i386v.h".
2943 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2944 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2945 "i386/tm-i386.h".
2946
2947 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2948
2949 * config/i386/nm-i386v.h: Add protection against
2950 multiple-inclusion.
2951 (i386_register_u_addr): Remove prototype.
2952 (register_u_addr): New prototype.
2953 (REGISTER_U_ADDR): Redefine accordingly.
2954 * i386v-nat.c: Improve several comments.
2955 (i386_register_u_addr): Change signature and rename to
2956 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2957 ubase variable.
2958
2959 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2960
2961 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2962 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2963 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2964 deprecated_extract_return_value.
2965 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2966 rename mips_o32o64_push_arguments.
2967 (mips_gdbarch_init): Update.
2968 (mips_extract_return_value): Delete.
2969 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2970 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2971 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2972 (mips_n32n64_extract_return_value): Clone
2973 mips_extract_return_value.
2974 (mips_store_return_value): Delete.
2975 (mips_o32_store_return_value): Clone mips_store_return_value.
2976 (mips_o64_store_return_value): Clone mips_store_return_value.
2977 (mips_eabi_store_return_value): Clone mips_store_return_value.
2978 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2979
2980 2002-08-18 Aidan Skinner <aidan@velvet.net>
2981
2982 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2983 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2984
2985 2002-08-18 Aidan Skinner <aidan@velvet.net>
2986
2987 * ada-lang.c: Run through gdb_indent.sh.
2988 * ada-lang.h: Run through gdb_indent.sh.
2989 * ada-tasks.c: Run through gdb_indent.sh.
2990 * ada-typeprint.c: Run through gdb_indent.sh.
2991 * ada-valprint.c: Run through gdb_indent.sh.
2992
2993 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2994
2995 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2996 ABI.
2997
2998 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2999
3000 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3001
3002 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3003 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3004
3005 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3006 write_register_gen instead of write_register_bytes.
3007
3008 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3009 i[3456]-*-osf1mk* configurations have been made obsolete.
3010 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3011 i[3456]86-*-osf1mk* hosts obsolete.
3012 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3013 targets obsolete.
3014 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3015 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3016 config/i386/i386m3.mt, config/i386/nm-m3.h,
3017 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3018 config/i386/i386mk.mh, config/i386/i386mk.mt,
3019 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3020 obsolete.
3021 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3022 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3023 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3024
3025 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3026
3027 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3028 (hppa_value_returned_from_stack): Declare.
3029 (hppa_extract_return_value): Declare.
3030 * config/pa/hppa.mt: New file.
3031 * configure.tgt: Recognize hppa*-*-*.
3032 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3033
3034 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3035
3036 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3037 comment.
3038
3039 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3040
3041 * top.c (gdb_rl_operate_and_get_next): Make sure
3042 operate-and-get-next functions correctly even when the history
3043 list is completely filled.
3044
3045 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3046
3047 * MAINTAINERS (Target Instruction Set Architectures): Rename
3048 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3049 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3050 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3051 already listed under Host/Native.
3052
3053 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3054 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3055 mips*-*-*.
3056
3057 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3058
3059 * config/ia64/ia64.mt: New file.
3060 * config/alpha/alpha.mt: New file.
3061 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3062 ia64-linux-gnu. Mention that ia64-elf is broken.
3063 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3064
3065 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3066
3067 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3068 generic_func_frame_valid instead of func_frame_valid.
3069
3070 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3071
3072 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3073 procfs appears to be broken when debugging on multi-processor
3074 machines. So enable software single stepping in order to avoid
3075 using the procfs interface to do next/step operations, using
3076 internal breakpoints instead.
3077
3078 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3079 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3080 make this pc address equal to the value it would have if the
3081 system stepping capability was used. Also set a new flag used
3082 to ensure that we don't readjust the PC one more time later.
3083
3084 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3085 address by DECR_PC_AFTER_BREAK when software single step is
3086 in use for this architecture, as this has already been taken
3087 care of in handle_inferior_event().
3088
3089 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3090
3091 * infrun.c (handle_inferior_event): Minor reformatting, to make
3092 a rather long condition expression easier to read.
3093
3094 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3095
3096 * Makefile.in (gdbtk.o): Move to end of file.
3097 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3098 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3099 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3100 (gdbtk-wrapper.o, gdbres.o): Ditto.
3101
3102 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3103
3104 * Makefile.in (copying.o): Separate out compile rule.
3105 (hpux-thread.o, procfs.o, signals.o): Ditto.
3106 (v850ice.o, z8k-tdep.o): Ditto.
3107 (tui-file.o): Move to TUI section.
3108 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3109 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3110
3111 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3112
3113 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3114 skip_trampoline_code, for better namespace-proofing.
3115
3116 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3117
3118 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3119
3120 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3121
3122 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3123
3124 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3125 signal, check whether we hit a breakpoint before checking for a
3126 single step breakpoint. Otherwise, GDB fails to notice that a
3127 breakpoint has been hit when stepping onto a breakpoint.
3128
3129 2002-08-16 Keith Seitz <keiths@redhat.com>
3130
3131 * gdb-events.sh (clear_gdb_event_hooks): New function.
3132 * gdb-events.c: Regenerate.
3133 * gdb-events.h: Regenerate.
3134
3135 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3136
3137 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3138 not_a_sw_breakpoint.
3139 * breakpoint.h (bpstat_stop_status): Add parameter names.
3140
3141 2002-08-16 Grace Sainsbury <graces@redhat.com>
3142
3143 * remote.c (remote_insert_hw_breakpoint)
3144 (remote_remove_hw_breakpoint): Fix calculation of length field
3145 for Z-packet.
3146
3147 2002-08-15 Michael Snyder <msnyder@redhat.com>
3148
3149 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3150 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3151 (supply_fpregset): Ditto.
3152
3153 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3154 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3155 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3156 (TARGET_READ_SP): Delete.
3157 (DO_REGISTERS_INFO): Delete.
3158 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3159 Delete.
3160 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3161 from macros to functions.
3162
3163 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3164 (mips_register_convertible, mips_register_convert_to_virtual,
3165 mips_register_convert_to_raw): Make static.
3166 (mips_read_sp): New function.
3167 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3168 (mips_do_registers_info): Make static.
3169 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3170 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3171 (mips_register_convert_from_type, mips_register_convert_to_type):
3172 New functions.
3173 (mips_gdbarch_init): Set up function_start_offset,
3174 register_virtual_size, pc_in_sigtramp.
3175
3176 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3177
3178 * infcmd.c (vector_info): New function.
3179 (_initialize_infcmd): Add command "info vector".
3180 (print_vector_info): New function.
3181
3182 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3183 * gdbarch.h, gdbarch.c: Regenerate.
3184
3185 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3186
3187 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3188 ``print_all''. Only print vector registers when ``print_all''.
3189
3190 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3191
3192 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3193 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3194
3195 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3196 Add `args' parameter.
3197 * gdbarch.h, gdbarch.c: Regenerate.
3198
3199 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3200
3201 * infcmd.c (float_info): Call print_float_info.
3202 (print_float_info): New function. By default, print the
3203 floating-point registers.
3204
3205 * arch-utils.h (default_print_float_info): Delete declaration.
3206 * arch-utils.c (default_print_float_info): Delete function.
3207
3208 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3209
3210 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3211 out define.
3212
3213 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3214 FRAME.
3215
3216 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3217 * configure.host: Make i[3456]86-*-aix host obsolete.
3218 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3219 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3220 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3221 config/i386/xm-i386aix.h: Make files obsolete.
3222 * i386aix-nat.c: Make file obsolete.
3223 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3224 (i386aix-nat.o): Make target obsolete.
3225
3226 * config/i386/nm-gnu.h: Removed.
3227 * config/i386/nm-i386gnu.h: New file.
3228 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3229 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3230 Moved here from ...
3231 * config/i386/tm-i386gnu.h: ... here. Removed.
3232 * config/i386/xm-i386gnu.h: Removed.
3233 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3234 (NAT_FILE): Set to nm-i386gnu.h.
3235 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3236 * i386-tdep.c: New file.
3237 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3238 (i386gnu-tdep.o): Specify dependencies.
3239
3240 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3241
3242 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3243 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3244 Adjust a few comments to reflect reality a bit closer.
3245 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3246 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3247 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3248 target_insert_watchpoint, target_remove_watchpoint):
3249 Move defines to ...
3250 * config/i386/nm-i386sco5.h: ... here.
3251 (kernel_u_size): Add prototype. Improve a few comments and add
3252 protection against multiple inclusion.
3253
3254 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3255 out define.
3256
3257 * uw-thread.c (SP_ARG0): Define if not already defined.
3258 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3259
3260 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3261
3262 * config/i386/tm-i386.h: Don't include "regcache.h".
3263
3264 * i387-tdep.h (i387_print_float_info): New prototype.
3265 * i387-tdep.c (print_i387_value, print_i387_ext,
3266 print_i387_status_word, print_i387_control_word): Add `struct
3267 ui_file *' argument and use it for output.
3268 (i387_print_float_info): Renamed from i387_float_info. Add
3269 `struct gdbarch *' and `struct ui_file *' arguments and use the
3270 latter for output.
3271 * i386-tdep.c: Include "i387-tdep.h".
3272 (i386_gdbarch_init): Set print_float_info.
3273 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3274 (FLOAT_INFO): Remove define.
3275
3276 2002-08-13 Michael Snyder <msnyder@redhat.com>
3277
3278 * mips-tdep.c (mips_push_arguments): Rename to
3279 mips_eabi_push_arguments, and tune for EABI.
3280 (MIPS_REGS_HAVE_HOME_P): Delete.
3281 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3282 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3283 Delete references to mips_regs_have_home_p.
3284
3285 2002-08-14 Keith Seitz <keiths@redhat.com>
3286
3287 * Makefile.in (install-gdbtk): Create insight plugin directory.
3288 Install plugins.tcl file.
3289
3290 2002-08-14 Keith Seitz <keiths@redhat.com>
3291
3292 * configure.in: Move SUBDIRS to near top of the file so that
3293 --enable options may add things to it.
3294 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3295 * configure: Regenerate.
3296
3297 2002-08-13 Michael Snyder <msnyder@redhat.com>
3298
3299 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3300 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3301 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3302
3303 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3304
3305 * vax-tdep.c (vax_get_saved_register): Delete function.
3306 (vax_gdbarch_init): Update.
3307 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3308 (ns32k_gdbarch_init): Update.
3309 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3310 (alpha_gdbarch_init): Update.
3311
3312 2002-08-13 Andrew Cagney <cagney@redhat.com>
3313
3314 * regcache.c (init_regcache_descr): Overallocate the
3315 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3316 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3317 nr_raw_registers.
3318 (set_register_cached): Add range checking assertions. Use
3319 current_regcache.
3320
3321 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3322
3323 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3324 numbers for MMX registers.
3325
3326 2002-08-13 Andrew Cagney <cagney@redhat.com>
3327
3328 * i386-tdep.c (i386_gdbarch_init): Use
3329 generic_unwind_get_saved_register.
3330
3331 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3332
3333 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3334 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3335 target vector.
3336 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3337 Delete. Add comment regarding this now-deleted target method.
3338
3339 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3340
3341 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3342 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3343 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3344 real PC and the page number (if it's within the memory bank window).
3345 (m68hc11_pseudo_register_write): Likewise when saving.
3346 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3347 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3348 (m68hc11_register_raw_size): And use 32-bit for it.
3349 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3350 16K memory bank is used by the prog; also use the virtual pc.
3351
3352 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3353
3354 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3355 (m68hc11_gdbarch_init): Install it in gdbarch.
3356 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3357 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3358 (MSYMBOL_SIZE): New for documentation.
3359 (insn_return_kind): Enum to specify how a function returns.
3360 (frame_extra_info): Cleanup and record the return mode.
3361 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3362 register in address computation.
3363 (m68hc11_get_return_insn): New to obtain the return instruction used
3364 by the function.
3365 (m68hc11_frame_init_saved_regs): Take into account the return
3366 instruction used by the function for far and interrupt functions.
3367 (m68hc11_init_extra_frame_info): Take into account page register.
3368 (m68hc11_frame_args_address): Adjust according to the return mode.
3369 (show_regs): Print page register only when it's used.
3370
3371 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3372
3373 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3374 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3375 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3376 registers.
3377 (m68hc11_register_raw_size): Likewise.
3378
3379 2002-08-13 Andrew Cagney <cagney@redhat.com>
3380
3381 * i386-tdep.c (i386_register_name): Handle mmx registers.
3382 (mmx_regnum_p): New function.
3383 (i386_mmx_names): New array.
3384 (mmx_num_regs): New variable.
3385 (i386_pseudo_register_read): New function.
3386 (i386_pseudo_register_write): New function.
3387 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3388
3389 * regcache.c (regcache_raw_read_unsigned): New function.
3390 (regcache_raw_read_signed): New function.
3391 * regcache.h (regcache_raw_read_unsigned): Declare.
3392 (regcache_raw_read_signed): Declare.
3393
3394 2002-08-13 Andrew Cagney <cagney@redhat.com>
3395
3396 * regcache.c (regcache_raw_read_as_address): Delete function.
3397 (regcache_cooked_read_signed): New function.
3398 (regcache_cooked_read_unsigned): New function.
3399 * regcache.h (regcache_cooked_read_signed): Declare.
3400 (regcache_cooked_read_unsigned): Declare.
3401 (regcache_raw_read_as_address): Delete declaration.
3402
3403 * blockframe.c (generic_read_register_dummy): Use
3404 regcache_cooked_read_unsigned.
3405 * i386-tdep.c (i386_extract_struct_value_address): Use
3406 regcache_cooked_read_unsigned.
3407
3408 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3409
3410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3411 double sizes according to ELF ABI flags.
3412 (gdbarch_tdep): Record elf_flags.
3413
3414 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3415
3416 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3417 (m6812_prolog): They can appear in 68HC12 function prologue.
3418 (m68hc11_frame_chain): Cleanup.
3419
3420 2002-08-12 Andrew Cagney <cagney@redhat.com>
3421
3422 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3423 declarations.
3424 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3425 (i386_linux_register_raw_size): Delete function.
3426 (i386_linux_init_abi): Update.
3427 * i386-tdep.c (i386_register_raw_size): Delete function.
3428 (i386_register_byte): Delete function.
3429 (i386_gdbarch_init): Update.
3430 (i386_register_size): Delete array.
3431 (i386_register_offset): Delete array.
3432
3433 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3434 (REGISTER_RAW_SIZE): Delete macro.
3435 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3436 (REGISTER_BYTE): Delete macro.
3437
3438 2002-08-11 Aidan Skinner <aidan@velvet.net>
3439
3440 * ada-lang.c (ada_lookup_partial_symbol)
3441 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3442 prototype names so that grep ^func works properly.
3443
3444 * ada-lang.c (ada_array_element_type)
3445 (ada_lookup_partial_symbol): Fix typos in parameter list.
3446
3447 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3448 Fix prototype names so that grep ^func works properly.
3449
3450 2002-08-10 Andrew Cagney <cagney@redhat.com>
3451 Elena Zannoni <ezannoni@redhat.com>
3452 Martin M. Hunt <hunt@redhat.com>
3453
3454 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3455 (build_builtin_type_vec128i): Set the vector bit.
3456 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3457 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3458 (build_builtin_type_vec64): New function.
3459 (build_builtin_type_vec64i): New function.
3460 (build_gdbtypes): Initialize builtin_type_vec64 and
3461 builtin_type_vec64i.
3462
3463 2002-08-09 Andrew Cagney <cagney@redhat.com>
3464
3465 * regcache.c (regcache_dump): Compare the register offset
3466 with REGISTER_BYTE.
3467 * arch-utils.c (generic_register_byte): New function.
3468 * arch-utils.h (generic_register_byte): Declare.
3469 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3470 * gdbarch.h, gdbarch.c: Regenerate.
3471
3472 2002-08-09 Andrew Cagney <cagney@redhat.com>
3473
3474 * regcache.c: Include "gdbcmd.h"
3475 (_initialize_regcache): Add commands "maintenance print
3476 registers", "maintenance print raw-registers" and "maintenance
3477 print cooked-registers".
3478 (enum regcache_dump_what): Define.
3479 (dump_endian_bytes): New function.
3480 (regcache_dump): New function.
3481 (regcache_print): New function.
3482 (maintenance_print_registers): New function.
3483 (maintenance_print_raw_registers): New function.
3484 (maintenance_print_cooked_registers): New function.
3485 * Makefile.in (regcache.o): Update dependencies.
3486
3487 2002-08-09 Michael Snyder <msnyder@redhat.com>
3488
3489 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3490 (mips_push_arguments): Correct some comments. Use paddr_nz
3491 for printing addresses in debug output. Replace static
3492 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3493 (mips_n32n64_push_arguments): New function, cloned from
3494 mips_push_arguments and tuned for the n32/n64 ABI.
3495 (mips_push_register): Buffer needs dynamic allocation.
3496 (mips_print_register): Ditto.
3497 (do_gp_register_row): Ditto.
3498 (mips_store_return_value): Ditto.
3499 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3500
3501 2002-08-09 Don Howard <dhoward@redhat.com>
3502
3503 * memattr.c (mem_info_command): Print special case of upper bound
3504 as max CORE_ADDR + 1.
3505
3506 2002-08-08 Michael Snyder <msnyder@redhat.com>
3507
3508 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3509 returns structs by ref if they're too big to fit in two registers.
3510
3511 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3512
3513 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3514 saved regs value.
3515 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3516 mips_find_saved_regs().
3517 (mips_pop_frame): Likewise.
3518
3519 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3520
3521 * blockframe.c (frame_saved_regs_register_unwind): Revise
3522 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3523 frames are in use.
3524
3525 2002-08-09 Grace Sainsbury <graces@redhat.com>
3526
3527 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3528 T-packets; the 'a' is not taken as a register number.
3529 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3530 (remote_stopped_data_address): New functions; add to target
3531 vector.
3532 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3533 prototypes to match other implementations of this
3534 function. replace integer argument with pointer -- the length
3535 field in the Z-packet is the length of what is pointed to or 1 if
3536 pointer is null. Add to target vector.
3537 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3538 target vector.
3539
3540 From Mark Salter:
3541 * remote.c (remote_wait): Add support to extract optional
3542 watchpoint information from T-packet. Ignore unrecognized
3543 optional info in T-packet.
3544 (remote_async_wait): Ditto.
3545
3546 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3547
3548 * cli/cli-dump.c: Change fopen modes to use binary open modes
3549 as defined in include/fopen-bin.h throughout.
3550
3551 2002-08-08 Michael Snyder <msnyder@redhat.com>
3552
3553 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3554
3555 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3556
3557 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3558 assertion failure by returning early after a warning.
3559
3560 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3561
3562 * mips-tdep.c (mips_find_saved_regs): Make static.
3563 (mips_frame_init_saved_regs): New function.
3564 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3565 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3566 (mips_find_saved_regs): Delete declaration.
3567
3568 2002-08-08 Grace Sainsbury <graces@redhat.com>
3569
3570 * remote.c (remote_wait, remote_async_wait): Change
3571 thread_num from int to ULONGEST.
3572 (unpack_varlen_hex): Change result parameter from
3573 int * to ULONGEST *.
3574
3575 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3576
3577 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3578 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3579 powerpc*-*-*.
3580 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3581
3582 2002-08-08 Andrew Cagney <cagney@redhat.com>
3583
3584 * gcore.c (override_derive_stack_segment): Delete variable.
3585 (preempt_derive_stack_segment): Delete function.
3586 (derive_stack_segment): Delete function.
3587 (default_derive_stack_segment): Renamed to derive_stack_segment.
3588 (override_derive_heap_segment): Delete variable.
3589 (preempt_derive_heap_segment): Delete function.
3590 (derive_heap_segment): Delete function.
3591 (default_derive_heap_segment): Rename to derive_heap_segment.
3592
3593 2002-08-06 Michael Snyder <msnyder@redhat.com>
3594
3595 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3596 * mips-tdep.c (mips_EABI_use_struct_convention,
3597 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3598 New functions. (mips_use_struct_convention): Delete.
3599 (mips_gdbarch_init): set use_gdbarch_convention.
3600
3601 2002-08-06 Michael Snyder <msnyder@redhat.com>
3602
3603 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3604 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3605 mips_o32_reg_struct_has_addr): New functions.
3606 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3607
3608 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3609
3610 * regcache.c (pseudo_register): Delete function.
3611 (fetch_register): Delete function.
3612 (store_register): Delete function.
3613 (regcache_raw_read, legacy_read_register_gen): Use
3614 target_fetch_registers instead of fetch_register.
3615 (legacy_write_register_gen, regcache_raw_write): Use
3616 target_store_register instead of store_register.
3617 (write_register_bytes): Ditto.
3618
3619 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3620 (STORE_PSEUDO_REGISTER): Delete.
3621 * gdbarch.h, gdbarch.c: Regenerate.
3622
3623 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3624
3625 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3626 write dump file binary.
3627
3628 2002-08-05 Michael Snyder <msnyder@redhat.com>
3629
3630 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3631 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3632 (mips_gdbarch_init): Set N32 target to be mips64.
3633
3634 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3635
3636 * frame.c (find_saved_register): Break out of loop once saved
3637 register address is found. Don't mention sparc in loop comment
3638 anymore.
3639
3640 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3641
3642 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3643 mips_default_saved_regsize to 8.
3644
3645 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3646
3647 * gcore.c: Do not include <sys/procfs.h>.
3648 * Makefile.in (gcore.o): Update dependencies.
3649
3650 2002-08-06 Andrew Cagney <cagney@redhat.com>
3651
3652 * configure.tgt: Make arc-*-* obsolete.
3653 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3654 * MAINTAINERS: Make arc-elf obsolete.
3655 * arc-tdep.c: Make file obsolete.
3656 * config/arc/arc.mt: Ditto.
3657 * config/arc/tm-arc.h: Ditto.
3658
3659 2002-08-05 Theodore A. Roth <troth@verinet.com>
3660
3661 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3662
3663 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3664
3665 * mcore-tdep.c (mcore_gdbarch_init): Use
3666 generic_unwind_get_saved_register instead of
3667 generic_get_saved_register.
3668 * v850-tdep.c (v850_gdbarch_init): Ditto.
3669 * frv-tdep.c (frv_gdbarch_init): Ditto.
3670 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3671 * s390-tdep.c (s390_gdbarch_init): Ditto.
3672 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3673 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3674 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3675
3676 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3677
3678 * objfiles.h: Add missing #include "symfile.h"
3679
3680 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3681
3682 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3683
3684 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3685 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3686 of FIELD_BITSIZE.
3687
3688 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3689
3690 * NEWS: Cleanup and nitpick.
3691
3692 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3693
3694 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3695
3696 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3697
3698 * Makefile.in (gdbtk-bp.o): Update dependencies.
3699 (gdbtk-register.o): Ditto.
3700 (gdbtk-varobj.o): Ditto.
3701
3702 2002-08-03 Andrew Cagney <cagney@redhat.com>
3703
3704 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3705 m68hc11_fetch_pseudo_register.
3706 (m68hc11_pseudo_register_write): Replace
3707 m68hc11_store_pseudo_register.
3708 (m68hc11_gdbarch_init): Update.
3709
3710 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3711
3712 * gdbarch.sh: Include "gdb_string.h".
3713 * gdbarch.c: Regenerate.
3714
3715 * regcache.c: Include "gdb_string.h".
3716 * ax-general.c: Ditto.
3717 * varobj.c: Ditto.
3718 * std-regs.c: Ditto.
3719 * fbsd-proc.c: Ditto.
3720 * thread.c: Ditto.
3721
3722 * Makefile.in (regcache.o): Update dependencies.
3723 (thread.o, gdbarch.o): Ditto.
3724 (ax-general.o, gdbarch.o): Ditto.
3725 (varobj.o, std-regs.o): Ditto.
3726 (fbsd-proc.o): Specify dependencies.
3727
3728 2002-08-02 Andrew Cagney <cagney@redhat.com>
3729
3730 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3731 regnum.
3732 (regcache_cooked_write): Ditto.
3733
3734 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3735
3736 * regcache.c (regcache_cooked_read): New function.
3737 (regcache_cooked_write): New function.
3738 (read_register_gen): Rewrite using regcache_cooked_read.
3739 (write_register_gen): Rewrite using regcache_cooked_write.
3740
3741 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3742 Declare.
3743
3744 2002-08-02 Andrew Cagney <cagney@redhat.com>
3745
3746 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3747 Replace the architecture methods register_read and register_write.
3748 * gdbarch.h, gdbarch.c: Regenerate.
3749 * regcache.c (init_regcache_descr): Update.
3750 (read_register_gen): Update.
3751 (write_register_gen): Update.
3752 (supply_register): Update comment.
3753
3754 * sh-tdep.c (sh_gdbarch_init): Update.
3755 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3756 `regcache' and `gdbarch' parameters. Make `buffer' a void
3757 pointer. Update code.
3758 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3759 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3760 void pointer. Update code.
3761 (sh64_register_write): Delete.
3762 (sh4_register_read): Delete.
3763 (sh64_register_read): Delete.
3764 (sh4_register_write): Delete.
3765 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3766 void pointer, `to' parameter a void pointer.
3767 (sh_sh64_register_convert_to_raw): Ditto.
3768
3769 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3770
3771 * mips-tdep.c (mips_register_virtual_type): Use architecture
3772 invariant return values.
3773
3774 2002-08-01 Andrew Cagney <cagney@redhat.com>
3775
3776 * linux-proc.c: Include "gdb_string.h".
3777 * Makefile.in (linux-proc.o): Update dependency list.
3778
3779 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3780
3781 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3782 comment.
3783
3784 2002-08-01 Grace Sainsbury <graces@redhat.com>
3785
3786 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3787 to_insert_watchpoint, to_remove_watchpoint,
3788 to_stopped_by_watchpoint, to_stopped_data_address,
3789 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3790 target vecctor. Define their corresponding macros so they call
3791 them.
3792
3793 * target.c: Add default and debug versions of for
3794 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3795 to_insert_watchpoint, to_remove_watchpoint,
3796 to_stopped_by_watchpoint, to_stopped_data_address,
3797 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3798
3799 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3800
3801 * mips-tdep.c (mips_register_virtual_type): New function.
3802 (mips_gdbarch_init): Register mips_register_virtual_type()
3803 with gdbarch machinery.
3804 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3805 this file instead of tm-bigmips.h.
3806 (MIPS_REGSIZE): Delete this macro.
3807 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3808 multiarch version in mips-tdep.c will be found.
3809
3810 2002-08-01 Andrew Cagney <cagney@redhat.com>
3811
3812 * NEWS: Menion that CHILL has been made obsolete.
3813
3814 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3815 * stabsread.c (read_range_type): Ditto.
3816 * gdbtypes.h: Ditto.
3817 * language.c (binop_type_check): Ditto.
3818 (binop_result_type): Ditto.
3819 (integral_type): Ditto.
3820 (character_type): Ditto.
3821 (string_type): Ditto.
3822 (boolean_type): Ditto.
3823 (structured_type): Ditto.
3824 (lang_bool_type): Ditto.
3825 (binop_type_check): Ditto.
3826 * language.h (_LANG_chill): Ditto.
3827 * dwarfread.c (set_cu_language): Ditto.
3828 * dwarfread.c (CHILL_PRODUCER): Ditto.
3829 * dwarfread.c (handle_producer): Ditto.
3830 * expression.h (enum exp_opcode): Ditto.
3831 * eval.c: Ditto for comments.
3832 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3833 * expprint.c (print_subexp): Ditto.
3834 (print_subexp): Ditto.
3835 * valops.c (value_cast): Ditto.
3836 (search_struct_field): Ditto.
3837 * value.h (COERCE_VARYING_ARRAY): Ditto.
3838 * symfile.c (init_filename_language_table): Ditto.
3839 (add_psymbol_with_dem_name_to_list): Ditto.
3840 * valarith.c (value_binop): Ditto.
3841 (value_neg): Ditto.
3842 * valops.c (value_slice): Ditto.
3843 * symtab.h (union language_specific): Ditto.
3844 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3845 (SYMBOL_DEMANGLED_NAME): Ditto.
3846 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3847 * defs.h (enum language): Ditto.
3848 * symtab.c (got_symtab): Ditto.
3849 * utils.c (fprintf_symbol_filtered): Ditto.
3850
3851 * ch-typeprint.c: Make file obsolete.
3852 * ch-valprint.c: Make file obsolete.
3853 * ch-lang.h: Make file obsolete.
3854 * ch-exp.c: Make file obsolete.
3855 * ch-lang.c: Make file obsolete.
3856
3857 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3858 CHILL_LIB.
3859 (TARGET_FLAGS_TO_PASS): Ditto.
3860 (CHILLFLAGS): Obsolete.
3861 (CHILL): Obsolete.
3862 (CHILL_FOR_TARGET): Obsolete.
3863 (CHILL_LIB): Obsolete.
3864 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3865 ch-valprint.c.
3866 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3867 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3868 ch-lang.o.
3869 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3870 targets.
3871
3872 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3873
3874 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3875 This does not change anything at the moment, but will be helpful
3876 later when full Ada support is integrated.
3877
3878 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3879
3880 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3881 help message.
3882
3883 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3884
3885 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3886 and save it in a local variable. Use variable in later test.
3887
3888 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3889
3890 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3891 test. (Thanks to Daniel Jacobowitz.)
3892
3893 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3894
3895 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3896 (mips_abi_strings): Add "n64".
3897 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3898
3899 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3900
3901 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3902 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3903
3904 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3905
3906 * utils.c (host_pointer_to_address, address_to_host_pointer):
3907 Use gdb_assert() instead of explicit call to internal_error().
3908
3909 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3910
3911 * Makefile.in (rs6000-nat.o): Update dependencies.
3912
3913 From Nicholas Duffek:
3914 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3915 (aix-thread.o): New rule.
3916 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3917 * config/powerpc/aix432.mh: New file.
3918
3919 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3920
3921 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3922 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3923 (fetch_core_registers, ppc_linux_supply_gregset)
3924 (ppc_linux_supply_fpregset): New functions.
3925 (ppc_linux_regset_core_fns): New.
3926 (_initialize_ppc_linux_tdep): Call add_core_fns.
3927 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3928 and ppc_linux_supply_gregset.
3929 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3930 (supply_fpregset): Call ppc_linux_supply_fpregset.
3931 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3932 corelow.o.
3933 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3934
3935 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * symtab.c (lookup_symbol): Demangle before lowercasing.
3938
3939 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3940
3941 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3942 declaration.
3943 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3944 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3945 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3946 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3947 "gdb_string.h".
3948 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3949 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3950 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3951 (avr-tdep.o, mon960-rom.o): Ditto.
3952 (aout_stabs_gnu_h): Define.
3953 (symtab_h): Remove $(gdb_obstack_h).
3954
3955 2002-07-30 Jim Blandy <jimb@redhat.com>
3956
3957 Patch from David Carlton <carlton@math.stanford.edu>:
3958 * gdbinit.in: Move the `dir' commands that add GDB's own source
3959 directory to the search path to the end, so that the `gdb' source
3960 directory will be searched first.
3961
3962 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3963
3964 * gdb_obstack.h: New file.
3965 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3966 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3967 * objfiles.h: Include "gdb_obstack.h".
3968 * Makefile.in (gdb_obstack_h): Define.
3969 (symtab_h): Add $(gdb_obstack_h).
3970 (objfiles_h): Add $(gdb_obstack_h).
3971
3972 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3973 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3974 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3975 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3976 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3977 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3978 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3979 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3980
3981 * Makefile.in (bcache.o): Update dependencies.
3982 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3983 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3984 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3985 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3986 (stabsread.o, symfile.o, symmisc.o): Ditto.
3987 (symtab.o, typeprint.o, macroexp.o): Ditto.
3988 (macrotab.o, mdebugread.o): Ditto.
3989 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3990 (coff_ecoff_h, aout_aout64_h): Define.
3991 (aout_stabs_gnu_h, libaout_h): Define.
3992
3993 2002-07-29 Andrew Cagney <cagney@redhat.com>
3994
3995 * regcache.c (struct regcache_descr): Rename nr_registers to
3996 nr_cooked_registers. Revise comments describing the structure
3997 member fields.
3998 (init_regcache_descr): Update.
3999 (init_legacy_regcache_descr): Update.
4000 (read_register_gen, write_register_gen): When a cooked register in
4001 the raw register range, directly access the value from the raw
4002 register cache.
4003
4004 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4005
4006 * z8k-tdep.c: Do not include "obstack.h".
4007 * h8300-tdep.c, h8500-tdep.c: Ditto.
4008 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4009 * valprint.c, v850-tdep.c: Ditto.
4010 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4011 * mn10200-tdep.c: Ditto.
4012
4013 * Makefile.in (z8k-tdep.o): Update dependencies.
4014 (m68hc11-tdep.o, valprint.o): Ditto.
4015 (v850-tdep.o, d10v-tdep.o): Ditto.
4016 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4017 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4018 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4019 (sh_opc_h, gdb_sim_sh_h): Define.
4020 (elf_sh_h, elf_bfd_h): Define.
4021 (opcode_m68hc11_h): Define.
4022 (OPCODES_SRC, OPCODES_DIR): define.
4023 (OPCODES): Use $(OPCODES_DIR).
4024 (gdb_sim_d10v_h): Rename sim_d10v_h.
4025 (gdb_sim_arm_h): Rename sim_arm_h.
4026
4027 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4028
4029 * utils.c (host_pointer_to_address, address_to_host_pointer):
4030 Change internal_error() message to indicate function responsible
4031 for the error.
4032
4033 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4034
4035 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4036 calls to local_hex_string_custom().
4037
4038 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4039
4040 * irix5-nat.c: Move IRIX shared library support from here...
4041 * solib-irix.c: ...to here. Revised substantially to work with
4042 generic solib framework.
4043
4044 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4045 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4046 * mips-irix-tdep.c: New file.
4047
4048 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4049 (mips-irix-tdep.o, solib-irix.o): New rules.
4050 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4051 solib-irix.o.
4052 * config/mips/irix6.mt (TDEPFILES): Likewise.
4053 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4054
4055 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4056
4057 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4058 disabled (via ``#if 0'') includes.
4059
4060 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4061
4062 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4063 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4064 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4065 Add support for the fpscr register.
4066 * rs6000-nat.c (regmap, fetch_inferior_registers)
4067 (store_inferior_registers, fetch_core_registers): Likewise.
4068
4069 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4070
4071 * rs6000-nat.c (language.h): Include.
4072 (special_regs): Delete this array.
4073 (regmap): New function.
4074 (fetch_register, store_register): Use regmap() to map gdb
4075 register numbers to ptrace register numbers. Also, use
4076 outputs from regmap() to make decisions regarding type of
4077 ptrace() call to make. In particular, don't compare against
4078 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4079 (fetch_inferior_registers, store_inferior_registers): Where
4080 possible, obtain register numbers from tdep struct. Don't
4081 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4082 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4083 (LAST_UISA_SP_REGNUM): Delete.
4084
4085 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4086
4087 * rs6000-nat.c (ppc-tdep.h): Include.
4088 (fetch_registers, store_register, fetch_core_registers): Don't
4089 access registers[] directly. Instead, use supply_register() or
4090 regcache_collect() as appropriate.
4091 (find_toc_address): Format hex address with local_hex_string().
4092
4093 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4094
4095 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4096 bfd/elf32-frv.c.
4097
4098 2002-07-24 Tom Tromey <tromey@redhat.com>
4099
4100 * jv-exp.y: Marked all strings with _().
4101 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4102 internal_error.
4103 (MethodInvocation, CastExpression, parse_number, yyerror,
4104 java_type_from_name, push_expression_name, yylex): Typo fixes.
4105
4106 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4107
4108 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4109 (tee_file_flush, tee_file_write, tee_file_fputs)
4110 (tee_file_isatty): New.
4111 * ui-file.h (tee_file_new): Add prototype.
4112
4113 2002-07-24 Aidan Skinner <aidan@velvet.net>
4114
4115 * ada-lang.c: Change k&r style function definitions to prototyped
4116 form.
4117 * ada-typeprint.c: Change k&r style function definitions to prototyped
4118 form.
4119 * ada-valprint.c: Change k&r style function definitions to prototyped
4120 form.
4121
4122 2002-07-24 Andrew Cagney <cagney@redhat.com>
4123
4124 * README: Remove reference to remote-bug.
4125 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4126 remote-bug.c.
4127 (m88k-nat.o): Delete rule.
4128 (m88k-tdep.o): Delete rule.
4129 (remote-bug.o): Delete rule.
4130 * MAINTAINERS: Mark as obsolete.
4131 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4132 * m88k-tdep.c: Make file obsolete.
4133 * config/m88k/m88k.mh: Ditto.
4134 * config/m88k/delta88v4.mh: Ditto.
4135 * config/m88k/delta88v4.mt: Ditto.
4136 * config/m88k/delta88.mt: Ditto.
4137 * config/m88k/delta88.mh: Ditto.
4138 * remote-bug.c: Ditto.
4139 * config/m88k/tm-delta88.h: Ditto.
4140 * config/m88k/nm-delta88v4.h: Ditto.
4141 * config/m88k/xm-delta88.h: Ditto.
4142 * config/m88k/xm-dgux.h: Ditto.
4143 * config/m88k/tm-m88k.h: Ditto.
4144 * config/m88k/nm-m88k.h: Ditto.
4145 * config/m88k/tm-delta88v4.h: Ditto.
4146 * m88k-nat.c: Ditto.
4147 * cxux-nat.c: Ditto.
4148 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4149 and m88*-*-* obsolete.
4150 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4151 m88*-*-* obsolete.
4152
4153 2002-07-24 Andrew Cagney <cagney@redhat.com>
4154
4155 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4156 constant. Same for local pointer variables.
4157 (extract_signed_integer): Ditto.
4158 * defs.h (extract_unsigned_integer): Update.
4159 (extract_signed_integer): Update.
4160
4161 2002-07-24 Andrew Cagney <cagney@redhat.com>
4162
4163 * regcache.c (regcache_raw_write): Change buf parameter to a
4164 constant void pointer.
4165 (regcache_raw_read): Change buf parameter to a void pointer.
4166 (legacy_write_register_gen): Change myaddr parameter a constant
4167 void pointer.
4168 (supply_register): Change val parameter to a const void pointer.
4169 * regcache.h (regcache_raw_write): Update declaration.
4170 (regcache_raw_read): Update declaration.
4171 (supply_register): Update declaration.
4172
4173 2002-07-24 Tom Tromey <tromey@redhat.com>
4174
4175 * defs.h (gdb_readline_wrapper): Declare.
4176 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4177 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4178 * top.c (gdb_readline_wrapper): New function.
4179 (command_line_input): Use it.
4180
4181 2002-07-24 Andrew Cagney <cagney@redhat.com>
4182
4183 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4184 regcache_read and regcache_write.
4185 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4186 * regcache.c: Update.
4187 * sh-tdep.c (sh64_push_arguments): Update comment.
4188 (sh_pseudo_register_read): Update.
4189 (sh_pseudo_register_write): Update.
4190 (sh4_register_read): Update.
4191 (sh4_register_write): Update.
4192 (sh64_pseudo_register_read): Update.
4193 (sh64_pseudo_register_write): Update.
4194 (sh64_register_read): Update.
4195 (sh64_register_write): Update.
4196 * i386-tdep.c (i386_extract_return_value): Update.
4197 (i386_extract_struct_value_address): Update.
4198 (i386_extract_return_value): Update.
4199 * blockframe.c (generic_read_register_dummy): Update.
4200 (generic_call_dummy_register_unwind): Update
4201 * infrun.c (write_inferior_status_register): Update.
4202
4203 2002-07-23 Jim Blandy <jimb@redhat.com>
4204
4205 * parser-defs.h (expression_context_pc): Make this extern.
4206 (Thanks to Michael Snyder.)
4207
4208 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4209
4210 GDB 5.2.1 released from 5.2 branch.
4211 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4212 * README: Update to mention 5.2.1.
4213
4214 2002-07-23 Mark Salter <msalter@redhat.com>
4215
4216 * remote.c (remote_read_bytes): Fix check for error.
4217
4218 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4219
4220 * aix-thread.c (language.h): Include.
4221 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4222 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4223 Print newlines at end of debug messages.
4224 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4225 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4226
4227 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4228
4229 * aix-thread.c (ppc-tdep.h): Include.
4230 (special_register_p): New function.
4231 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4232 (store_regs_user_thread): Use register number information from
4233 gdbarch_tdep struct instead of hardcoded offsets relative to
4234 FIRST_UISA_SP_REGNUM.
4235 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4236 special_register_p() instead of using FPLAST_REGNUM and
4237 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4238 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4239 will be MQ's register number.
4240
4241 2002-07-22 Michael Snyder <msnyder@redhat.com>
4242
4243 * aix-thread.c (ops): Rename to aix_thread_ops.
4244 (base_ops): Rename to base_target.
4245 (ops_attach): Rename to aix_thread_attach.
4246 (ops_detach): Rename to aix_thread_detach.
4247 (ops_resume): Rename to aix_thread_detach.
4248 (ops_wait): Rename to aix_thread_wait.
4249 (ops_kill): Rename to aix_thread_kill.
4250 (init_ops): Rename to init_aix_thread_ops.
4251 (ops_fetch_register): Rename to aix_thread_fetch_register.
4252 (ops_store_register): Rename to aix_thread_store_register.
4253 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4254 (ops_thread_alive): Rename to aix_thread_thread_alive.
4255 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4256 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4257 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4258 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4259 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4260 (store_regs_lib): Rename to store_regs_user_thread.
4261 (store_regs_kern): Rename to store_regs_kernel_thread.
4262
4263 2002-07-22 Michael Snyder <msnyder@redhat.com>
4264
4265 * aix-thread.c (ops_prepare_to_store): Eliminate.
4266 (init_ops): Don't initialize ops.prepare_to_store.
4267 (store_regs_kern): Pre-fetch register buffers from child,
4268 because some registers may not be in the cache. Copy
4269 regs from register cache only if they are cached.
4270 (store_regs_lib): Copy regs from register cache only
4271 if they are cached.
4272 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4273 fill_gprs64): Ditto.
4274
4275 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4276
4277 * aix-thread.c (gdb_assert.h): Include.
4278 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4279 register sizes (from register cache) match size of buffer holding
4280 register data.
4281 (fill_sprs32): Change parameter types to match those in the ptrace()
4282 buffer.
4283 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4284 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4285
4286 2002-07-22 Michael Snyder <msnyder@redhat.com>
4287
4288 * aix-thread.c (supply_sprs64): Cosmetic change.
4289 (supply_sprs32): Cosmetic change.
4290 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4291 (fill_sprs64): Use regcache_collect instead of read_register.
4292 (store_regs_lib): Use regcache_collect instead of
4293 read_register. Use fill_sprs32 instead of fill_sprs64,
4294 if debugging a 32-bit architecture.
4295 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4296 out of the register cache, instead of passing a pointer into
4297 the register cache directly to ptrace. Use regcache_collect
4298 insteaad of read_register.
4299 (ops_prepare_to_store): Use target_read_registers instead
4300 of read_register_bytes.
4301
4302 2002-07-20 Aidan Skinner <aidan@velvet.net>
4303
4304 * MAINTAINERS: Add self under write after approval.
4305
4306 2002-07-20 Aidan Skinner <aidan@velvet.net>
4307
4308 * ada-tasks.c: Change k&r style function definitions to prototyped
4309 form.
4310
4311 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4312
4313 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4314 * x86-64-tdep.c: Include "objfiles.h".
4315 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4316 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4317
4318 2002-07-17 Michal Ludvig <michal@suse.cz>
4319
4320 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4321 (update_context): Initialise cfa variable.
4322
4323 2002-07-17 Michael Snyder <msnyder@redhat.com>
4324
4325 * aix-thread.c: Shorten some long lines.
4326 Bring comments into line with code spec.
4327
4328 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4329
4330 * infrun.c: Re-indent using gdb_indent.sh.
4331
4332 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4333
4334 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4335 Leave the indentation temporarily untouched, to minimize the diffs.
4336
4337 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4338
4339 * stabsread.c: Make os9k sections of the code obsolete,
4340 for real this time.
4341 * stabsread.h: Make os9k sections of the code obsolete.
4342
4343 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4344
4345 * linux-low.c (regsets_store_inferior_registers): Add free()
4346 at the end of a loop to prevent memory leak.
4347 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4348 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4349 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4350 line a comment.
4351 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4352
4353 2002-07-17 Jim Blandy <jimb@redhat.com>
4354
4355 * macrocmd.c (info_macro_command): Remove newline from error
4356 message.
4357
4358 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4359
4360 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4361 (sh_gdbarch_init): Use it for sh-dsp.
4362
4363 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4364
4365 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4366 64-bit DWARF2 format.
4367
4368 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4369
4370 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4371 <sys/proc.h> when not available.
4372
4373 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4374
4375 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4376 * stabsread.c: Make os9k sections of the code obsolete.
4377 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4378 * config/i386/i386os9k.mt: Make file obsolete.
4379 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4380 (COMMON_OBS): Remove os9kread.o
4381 (SFILES): Remove os9kread.c.
4382 (os9kread.o, remote-os9k.o): Make target obsolete.
4383 * remote-os9k.c: Make file obsolete.
4384 * os9kread.c: Make file obsolete.
4385 * Makefile.in
4386
4387 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4388
4389 * NEWS: Mention that the FR30 has been made obsolete.
4390 * fr30-tdep.c: Make file obsolete.
4391 * config/fr30/tm-fr30.h: Ditto.
4392 * config/fr30/fr30.mt: Ditto.
4393 * configure.tgt: Make fr30-*-elf obsolete.
4394 * MAINTAINERS: Make fr30-elf obsolete.
4395
4396 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4397
4398 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4399 found is not inside a section.
4400
4401 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4402
4403 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4404 strerror().
4405 (pdc_realloc): Use xrealloc() instead of realloc().
4406
4407 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4408
4409 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4410 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4411 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4412 macros.
4413
4414 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4415
4416 * aix-thread.c (ptrace_check): Eliminate goto.
4417 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4418 problem.
4419
4420 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4421
4422 * aix-thread.c (gdbcmd.h): Include.
4423 (DEBUG, DBG, DBG2, dbg): Eliminate.
4424 (debug_aix_thread): New static global.
4425 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4426 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4427 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4428 invocations to DBG and DBG2 macros to test against
4429 ``debug_aix_thread'' and call fprintf_unfiltered().
4430 (_initialize_aix_thread): Add new command "set debug aix-thread".
4431
4432 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4433
4434 From Gerhard Tonn <TON@de.ibm.com>:
4435 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4436 instead of supply_register.
4437
4438 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4439
4440 * dwarf2cfi.c: Include "gdb_assert.h".
4441 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4442 non-NULL.
4443 (update_context): Do not use __func__. Add missing ``break''.
4444 (update_context): Do not use __func__.
4445
4446 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4447
4448 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4449 and its setting. Set gdbarch instruction printing functions
4450 directly. For non-rs6000 case use new function
4451 gdb_print_insn_powerpc.
4452 (gdb_print_insn_powerpc): New function.
4453
4454 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4455
4456 * NEWS: Mention that the d30v has been marked obsolete.
4457 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4458 * configure.tgt: Mark d30v-*-* as obsolete.
4459 * d30v-tdep.c: Mark file as obsolete.
4460 * config/d30v/d30v.mt: Ditto.
4461 * config/d30v/tm-d30v.h: Ditto.
4462
4463 2002-07-13 Aidan Skinner <aidan@velvet.net>
4464
4465 * ada-tasks.c (add_task_entry): replace calls to
4466 malloc() with xmalloc
4467 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4468
4469 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4470 ada_finish_decode_line_1, all_sals_for_line
4471 ada_breakpoint_rewrite): replace calls to free() with xfree()
4472
4473 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4474
4475 From Nicholas Duffek (with minor changes by Martin Hunt,
4476 Louis Hamilton, and Kevin Buettner):
4477 * aix-thread.c: New file.
4478
4479 2002-07-12 Petr Sorfa <petrs@caldera.com>
4480
4481 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4482 complaint for invalid attribute class or form.
4483 (read_func_scope): DW_AT_frame_base
4484 better handling of DW_AT_block*.
4485 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4486 better handling of DW_AT_block*.
4487 (read_common_block): DW_AT_location
4488 better handling of DW_AT_block*.
4489 (read_partial_die): DW_AT_location better handling
4490 of DW_AT_block*.
4491 (new_symbol): DW_AT_external better handling of
4492 DW_AT_block*. Proper initialization of variable
4493 "addr".
4494 (attr_form_is_block): New function that returns true
4495 if the attribute's form is of DW_FORM_block*.
4496
4497 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4498
4499 * valops.c (find_method_list): Remove comment about
4500 removed STATIC_MEMFUNCP argument.
4501 (value_find_oload_method_list): Likewise.
4502
4503 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4504
4505 From Nicholas Duffek:
4506 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4507 target_new_objfile_hook.
4508
4509 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4510
4511 From Nicholas Duffek:
4512 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4513 csect.
4514
4515 2002-07-12 Andrew Cagney <cagney@redhat.com>
4516
4517 * MAINTAINERS: Mention --enable-sim-build-warnings.
4518 (m68hc11-elf): Disable sim build warnings.
4519 (m32r-elf): Mark as broken obsolete candidate.
4520 (x86_64-linux-gnu): Mark as buildable with -Werror.
4521 (arm-elf): Change -w to ``,'' which enables warnings but not
4522 -Werror.
4523
4524 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4525
4526 * bcache.h: Update copyright.
4527 (struct bstring, struct bcache): Move definition to "bcache.c".
4528 Replaced by opaque declaration.
4529 (bcache_xfree): Replace free_bcache.
4530 (bcache_xmalloc, bcache_memory_used): Declare.
4531
4532 * bcache.c: Update copyright.
4533 (struct bstring, struct bcache): Moved to here from "bcache.h".
4534 Update comments.
4535 (bcache_xmalloc, bcache_memory_used): New functions.
4536 (bcache_xfree): Replace function free_bcache.
4537
4538 * Makefile.in (objfiles.o): Add $(bcache_h).
4539 (objfiles_h): Remove $(bcache_h).
4540 (symfile.o): Add $(bcache_h).
4541
4542 * symmisc.c: Update copyright.
4543 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4544 (print_objfile_statistics): Use bcache_memory_used.
4545
4546 * symfile.c: Include "bcache.h".
4547 (reread_symbols): Use bcache_xfree.
4548 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4549 (add_psymbol_to_list): Pass psymbol_cache by value.
4550 (add_psymbol_with_dem_name_to_list): Ditto.
4551
4552 * objfiles.h: Update copyright.
4553 (struct bcache): Declare opaque. Do not include "bcache.h".
4554 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4555 bcache'' pointers.
4556 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4557
4558 * objfiles.c: Include "bcache.h". Update copyright.
4559 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4560 macro_cache.
4561 (free_objfile): Use bcache_xfree.
4562
4563 2002-07-11 Grace Sainsbury <graces@redhat.com>
4564
4565 * monitor.c (monitor_fetch_register): Make name a constant.
4566 (monitor_store_register): Same.
4567
4568 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4569
4570 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4571 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4572 (finish_block) For non-function blocks, hash the symbol table. For
4573 function blocks, mark the symbol table as unhashed.
4574 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4575 (msymbol_hash_iw): Likewise.
4576 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4577 value.
4578 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4579 (lookup_minimal_symbol): Likewise for both.
4580 * symtab.h (struct block): Add `hashtable' flag. Comment the
4581 hashtable.
4582 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4583 (ALL_BLOCK_SYMBOLS): Update.
4584 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4585 (struct symbol): Add `hash_next' pointer.
4586 * symtab.c (lookup_block_symbol): Search using the hash table when
4587 possible.
4588 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4589 (search_symbols, find_addr_symbol): Likewise.
4590
4591 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4592 (read_dst_symtab): Likewise.
4593 * jv-lang.c (get_java_class_symtab): Likewise.
4594 * mdebugread.c: Include "gdb_assert.h".
4595 (shrink_block): Assert that the block being modified is not hashed.
4596 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4597 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4598 symbols.
4599 (dump_symtab): Recognize hashed blocks.
4600 * printcmd.c (print_frame_args): Assert that function blocks do not
4601 have hashed symbol tables.
4602 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4603 (fill_in_ada_prototype, debug_print_block): Likewise.
4604 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4605
4606 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4607
4608 * stack.c (print_frame): Use result of frame_address_in_block()
4609 instead of fi->pc when evaluating symbols.
4610 (backtrace_command_1): Ditto.
4611
4612 2002-07-11 Andrew Cagney <cagney@redhat.com>
4613
4614 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4615 Make static.
4616
4617 * arm-tdep.c (arm_register_name): Make return type constant.
4618
4619 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4620
4621 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4622 prototype.
4623 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4624 * s390-tdep.c (s390_fp_regnum): Ditto.
4625 (s390_read_fp): Ditto.
4626 (s390_pop_frame): Ditto.
4627 (_initialize_s390_tdep): Ditto.
4628 * remote.c (get_remote_state): Ditto.
4629 * procfs.c (mappingflags): Ditto.
4630 * memattr.c (_initialize_mem): Ditto.
4631 * mcore-tdep.c (mcore_pop_frame): Ditto.
4632 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4633 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4634 * language.c (set_case_str): Ditto.
4635 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4636 * frv-tdep.c (new_variant): Ditto.
4637 (frv_stopped_data_address): Ditto.
4638 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4639 (context_alloc): Ditto.
4640 (frame_state_alloc): Ditto.
4641 (unwind_tmp_obstack_init): Ditto.
4642 (unwind_tmp_obstack_free): Ditto.
4643 (cfi_read_fp): Ditto.
4644 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4645 (cris_pop_frame): Ditto.
4646 * c-lang.c (scanning_macro_expansion): Ditto.
4647 (finished_macro_expansion): Ditto.
4648 (c_preprocess_and_parse): Ditto.
4649 * gdbarch.sh: Ditto.
4650 * gdbarch.h, gdbarch.c: Regenerate.
4651 * config/mn10200/tm-mn10200.h: Adjust indentation.
4652 * target.c: Adjust indentation.
4653 * symtab.h: Adjust indentation.
4654 * stabsread.h: Adjust indentation.
4655 * remote-es.c: Adjust indentation.
4656 * os9kread.c: Adjust indentation.
4657
4658 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4659
4660 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4661 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4662
4663 2002-07-10 Grace Sainsbury <graces@redhat.com>
4664
4665 * NEWS: Mention m68k, mcore multi-arching.
4666 * MAINTAINERS: Change status of m68k, mcore to reflect
4667 multi-arching.
4668
4669 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4670
4671 * valops.c (find_overload_match): Free oload_syms.
4672
4673 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4674
4675 Define HAVE_SYS_PROC_H if sys/proc.h exists
4676 * configure.in: Add check for sys/proc.h
4677 * config.in: Regenerate.
4678 * configure: Regenerate.
4679
4680 2002-07-09 Grace Sainsbury <graces@redhat.com>
4681
4682 * config/m68k/tm-m68k.h: Remove macros wrapped in
4683 #if !GDB_MULTI_ARCH.
4684
4685 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4686
4687 * config.in, configure: Regenerate.
4688
4689 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4690
4691 * dwarf2cfi.c: Include "gcore.h".
4692 (execute_stack_op): Fix implementation of the
4693 DW_OP_deref and DW_OP_deref_size operators by letting do their
4694 lookup in the target.
4695
4696 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4697
4698 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4699 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4700 tdep->sc_sp_offset.
4701
4702 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4703
4704 Fix PR gdb/595, gdb/602
4705 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4706 Don't call value_cast, just read the vtable pointer; update comments
4707 to match.
4708
4709 2002-07-05 Grace Sainsbury <graces@redhat.com>
4710
4711 * config/mcore/tm-mcore.h: Remove file.
4712 * config/mcore/mcore.mt: Remove definition of TM_FILE
4713 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4714
4715 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4716
4717 * i386bsd-tdep.c: Include "gdb_string.h".
4718
4719 2002-07-04 Grace Sainsbury <graces@redhat.com>
4720
4721 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4722 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4723 mcore-tdep.
4724 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4725 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4726 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4727 (RETVAL_REGNUM): Move macros from tm-mcore.h
4728 (mcore_reg_struct_has_addr): New function.
4729 (mcore_gdbarch_init): Added initializations for the macros removed
4730 from tm-mcore.h.
4731
4732 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4733
4734 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4735 traditonal string branding within the ELF header.
4736
4737 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4738
4739 * symtab.c (remove_params): New function.
4740 (make_symbol_overload_list): Use it instead of cplus_demangle.
4741 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4742
4743 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4744
4745 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4746
4747 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4748 New variables.
4749 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4750 and tdep->sigtramp_end.
4751 * i386obsd-nat.c: New file.
4752 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4753
4754 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4755 Don't call get_current_frame().
4756
4757 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4758
4759 * i386-nat.c (child_post_startup_inferior): New function
4760 calling i386_cleanup_dregs if
4761 I386_USE_GENERIC_WATCHPOINTS is defined.
4762 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4763 conditional to acknowledge that i386-nat.c has its
4764 own child_post_startup_inferior function.
4765
4766 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4767
4768 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4769 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4770 instead of MAX_REGISTER_RAW_SIZE.
4771 (i386_extract_return_value, i386_extract_struct_value_address):
4772 Convert to use regcache.
4773 (i386_gdbarch_init): Set max_register_raw_size and
4774 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4775 Set extract_return_value and extract_struct_value_address instead
4776 of their deprecated variants.
4777
4778 Convert i386 target to generic dummy frames.
4779 * i386-tdep.c: Include "symfile.h".
4780 (i386_frameless_signal_p): Consider a function to be frameless if
4781 the pc points at the first instruction of the function.
4782 (i386_frame_chain): Handle (generic) call dummies.
4783 (i386_frame_saved_pc): Likewise.
4784 (i386_frame_init_saved_regs): Remove code dealing with call
4785 dummies on the stack.
4786 (i386_push_dummy_frame): Removed.
4787 (i386_call_dummy_words): Removed.
4788 (i386_fix_call_dummy): Removed.
4789 (i386_push_return_address): New function.
4790 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4791 parameter, and don't call get_current_frame.
4792 (i386_pop_frame): New function.
4793 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4794 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4795 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4796 call_dummy_length to 0, set call_dummy_words to NULL, set
4797 sizeof_call_dummy_words to 0, set fix_call_dummy to
4798 generic_fix_call_dummy, set pc_in_call_dummy to
4799 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4800 generic_push_dummy_frame, set push_return_address to
4801 i386_push_return_address and set frame_chain_valid to
4802 generic_file_frame_chain_valid.
4803
4804 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4805
4806 * gdbarch.sh (struct regcache): Add opaque declaration.
4807 (EXTRACT_RETURN_VALUE): New architecture method.
4808 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4809 * gdbarch.h, gdbarch.c: Regenerate.
4810 * arch-utils.c (legacy_extract_return_value): New function.
4811 * arch-utils.h (legacy_extract_return_value): Declare.
4812 * values.c (value_being_returned): Re-enable code handling
4813 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4814 deprecated_grub_regcache_for_registers call to block handling
4815 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4816 (EXTRACT_RETURN_VALUE): Do not define.
4817
4818 2002-07-03 Grace Sainsbury <graces@redhat.com>
4819
4820 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4821 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4822 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4823 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4824 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4825 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4826 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4827 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4828 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4829 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4830 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4831 argument so the function fits the prototype in the architecture
4832 vector.
4833 (mcore_pop_frame): Remove argument so the function fits the
4834 prototype. Use get_current_frame instead of the argument.
4835 (mcore_push_arguments): Change type of struct_return so the
4836 function can be used in the architecture vector.
4837 (mcore_store_struct_return): Add.
4838 (mcore_frame_init_saved_regs): Add.
4839 (mcore_gdbarch_init): Add function calls to replace the macros
4840 removed from tm-mcore.h
4841
4842 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4843
4844 * infcmd.c (print_return_value): Remove compatibility code calling
4845 deprecated_grub_regcache_for_registers.
4846
4847 * values.c: Include "regcache.h".
4848 (value_being_returned): Update. Use
4849 deprecated_grub_regcache_for_registers to extract the register
4850 buffer address.
4851 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4852 ``struct regcache''.
4853 * Makefile.in (values.o): Add dependency on $(regcache_h).
4854
4855 * inferior.h (run_stack_dummy): Change type of second parameter to
4856 a ``struct regcache''.
4857 * valops.c (hand_function_call): Change type of retbuf to ``struct
4858 regcache''. Allocate using regcache_xmalloc, clean using
4859 make_cleanup_regcache_xfree.
4860 * infcmd.c (run_stack_dummy): Update. Use
4861 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4862
4863 * regcache.c (do_regcache_xfree): New function.
4864 (make_cleanup_regcache_xfree): New function.
4865 * regcache.h (make_cleanup_regcache_xfree): Declare.
4866
4867 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4868
4869 * event-top.c (command_line_handler): Don't read past
4870 beginning of buffer.
4871
4872 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4873
4874 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4875 struct frame_id.
4876 (varobj_create): Store frame_id for root.
4877 (varobj_gen_name): Use xasprintf.
4878 (varobj_update): Save and restore frame using get_frame_id() and
4879 frame_find_by_id().
4880 (create_child): Use xasprintf.
4881 (new_root_variable): Initialize frame_id.
4882 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4883 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4884 to prevent memory leak.
4885
4886 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4887
4888 * valops.c (hand_function_call): Move declaration of retbuf to
4889 start of function, allocate using malloc, add a cleanup but before
4890 the inf_status cleanup, cleanup the buffer. Rename local variable
4891 old_chain to inf_status_cleanup.
4892
4893 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4894
4895 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4896
4897 * cli/cli-decode.c (cmd_func_p): New function.
4898 (cmd_func): New function.
4899
4900 * command.h: Add cmd_func() and cmd_func_p().
4901
4902 2002-07-03 Grace Sainsbury <graces@redhat.com>
4903
4904 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4905 (REGISTER_SIZE): Remove.
4906 (MAX_REGISTER_RAW_SIZE): Remove.
4907 (REGISTER_VIRTUAL_TYPE): Remove.
4908 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4909 (REGISTER_NAME): Remove.
4910 (USE_GENERIC_DUMMY_FRAMES): Remove.
4911 (CALL_DUMMY): Remove.
4912 (CALL_DUMMY_START_OFFSET): Remove.
4913 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4914 (CALL_DUMMY_LOCATION): Remove.
4915 (FIX_CALL_DUMMY): Remove.
4916 (CALL_DUMMY_ADDRESS): Remove.
4917 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4918 (SAVE_DUMMY_FRAME_TOS): Remove.
4919 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4920 (mcore_register_virtual_type): New function.
4921 (mcore_register_byte): New function.
4922 (mcore_register_size): New function.
4923 (mcore_register_name): New function.
4924 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4925 macros removed from tm-mcore.h.
4926 (mcore_dump_tdep): Add.
4927 (_initialize_mcore_tdep): Add gdbarch_register call.
4928
4929 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4930
4931 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4932 frameless_look_for_prologue, such that we actually call this
4933 function.
4934
4935 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4936
4937 * frame.h (frame_address_in_block): New function.
4938
4939 * blockframe.c (frame_address_in_block): New function extracted
4940 from get_frame_block().
4941 (get_frame_block): Use frame_address_in_block().
4942 (block_innermost_frame): Use frame_address_in_block() to match
4943 the frame pc address against the block boundaries rather than
4944 the frame pc directly. This prevents a failure when a frame pc
4945 is actually a return-address pointing immediately after the end
4946 of the given block.
4947
4948 2002-07-02 Grace Sainsbury <graces@redhat.com>
4949
4950 * MAINTAINERS: Add self under write after approval.
4951
4952 2002-07-02 Grace Sainsbury <graces@redhat.com>
4953
4954 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4955 used in architecture vector. The default is
4956 m68k_local_breakpoint_from_pc.
4957 (m68k_local_breakpoint_from_pc): Add.
4958 (enum): Add register numbers from tm-m68k.h.
4959 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4960 vector.
4961 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4962 GDB_MULTI_ARCH_PARTIAL.
4963 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4964 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4965 m68k-tdep.c.
4966 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4967 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4968 to enum in m68k-tdep.c
4969
4970 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4971
4972 * solib-osf.c (open_map): Compute the list of shared libraries
4973 loaded by the inferior, rather than the list of libraries loaded
4974 by GDB itself. Otherwise, GDB ends up reading the symbols from
4975 the wrong shared libraries...
4976
4977 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4978
4979 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4980 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4981 macros.
4982 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4983 Remove functions.
4984 (FRAMELESS_SIGNAL): Remove function.
4985 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4986 i386_linux_saved_pc_after_call): Removed.
4987 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4988 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4989 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4990
4991 * i386-tdep.c (i386_frameless_signal_p): New function.
4992 (i386_frame_chain): Deal with frameless signals.
4993 (i386_sigtramp_saved_sp): New function.
4994 (i386_frame_saved_pc): Deal with frameless signals.
4995 (i386_saved_pc_after_call): Make sure the correct value is
4996 returned just after entry into a sigtramp.
4997 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4998 i386fbsd4_sc_sp_offset): New variables.
4999 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5000 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5001 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5002 similiar to what we already did for sc_pc_offset.
5003 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5004 tdep->sc_sp_offset.
5005
5006 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5007
5008 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5009
5010 * config/i386/tm-x86-64linux.h: New.
5011 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5012 definitions.
5013 * config/i386/nm-x86-64.h: Rename to ...
5014 * config/i386/nm-x86-64linux.h: ... this one.
5015 * config/i386/x86-64linux.mh: Reflect the above change.
5016
5017 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5018
5019 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5020 with sigcontext_addr. Add sc_sp_offset.
5021 (i386bsd_sigtramp_saved_pc): Remove prototype.
5022 (i386bsd_sicontext_addr): Add prototype.
5023 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5024 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5025 (i386_svr4_sigtramp_saved_pc): Removed.
5026 (i386_svr4_sigcontext_addr): New function.
5027 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5028 Initialize tdep->sigcontext_addr instead. Initialize
5029 tdep->sc_pc_offset and tdep->sc_sp_offset.
5030 (i386_gdbarch_init): Likewise.
5031 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5032 any more.
5033 (i386bsd_sigtramp_saved_pc): Remove function.
5034 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5035 Initialize tdep->sigcontext_addr instead. Initialize
5036 tdep->sc_pc_offset.
5037 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5038 of tdep->sigtramp_saved_pc.
5039 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5040 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5041 instead.
5042
5043 * i386-tdep.c (i386_frameless_function_invocation,
5044 i386_frame_num_args, i386_frame_init_saved_regs,
5045 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5046 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5047 i386_extract_return_value, i386_store_return_value,
5048 i386_extract_struct_value_address, i386_register_virtual_type,
5049 i386_register_convertible, i386_register_convert_to_virtual,
5050 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5051 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5052 static.
5053
5054 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5055
5056 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5057
5058 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5059 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5060 this macro. Include "value.h".
5061
5062 2002-06-30 Aidan Skinner <aidan@velvet.net>
5063
5064 * ada-exp.tab.c: remove as it's a generated file
5065 * ada-lex.c: remove as it's a generated file
5066
5067 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5068
5069 * config/i386/tm-i386.h (struct frame_info, struct
5070 frame_saved_regs, struct value, struct type): Remove forward
5071 declarations.
5072
5073 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5074 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5075 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5076 (FILL_FPXREGSET): Define.
5077
5078 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5079
5080 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5081 i[3456]86-*-netbsd* case.
5082 * config/i386/tm-obsd.h: Removed.
5083 * config/i386/obsd.mt: Removed.
5084 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5085 core-aout.o.
5086 (MH_CFLAGS): Add -DYYDEBUG=0.
5087
5088 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5089 i386nbsd_sc_pc_offset on OpenBSD too.
5090
5091 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5092 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5093 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5094 define.
5095 * i386bsd-tdep.c: Include "arch-utils.h".
5096 (i386bsd_aout_in_solib_call_trampoline): New function.
5097 (i386bsd_init_abi): Set in_solib_call_trampoline to
5098 i386bsd_aout_in_solib_call_trampoline.
5099 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5100 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5101
5102 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5103
5104 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5105 (struct obstack, struct bcache): Add opaque declarations.
5106 * Makefile.in (macrotab_h): Update
5107
5108 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5109
5110 * blockframe.c (generic_find_dummy_frame): Change return type to
5111 ``struct regcache''.
5112 (struct dummy_frame): Replace field ``registers'' with regcache, a
5113 struct regcache object.
5114 (generic_find_dummy_frame): Update.
5115 (generic_push_dummy_frame): Update. Use regcache_xfree,
5116 regcache_xmalloc and regcache_cpy.
5117 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5118 regcache_xfree.
5119 (deprecated_generic_find_dummy_frame): Update.
5120 (generic_read_register_dummy): Update. Use
5121 regcache_read_as_address.
5122 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5123 (generic_get_saved_register): Update. Use regcache_read.
5124
5125 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5126
5127 * Makefile.in (objfiles_h): Add $(bcache_h).
5128 * objfiles.h: Include "bcache.h".
5129
5130 * Makefile.in (symtab_h): Remove $(bcache_h).
5131 * symtab.h: Do not include "bcache.h".
5132
5133 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5134
5135 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5136 generic_func_frame_chain_valid.
5137
5138 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5139
5140 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5141 * config/i386/tm-fbsd.h: Likewise.
5142
5143 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5144
5145 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5146 generic_unwind_get_saved_register.
5147
5148 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5149
5150 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5151 * regcache.c (supply_register): Add missing argument to
5152 register_buffer call.
5153
5154 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5155
5156 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5157 Solaris /bin/grep does not not like it. From Peter Schauer.
5158
5159 2002-06-26 Tom Tromey <tromey@redhat.com>
5160
5161 * command.h (add_setshow_cmd): Declare.
5162 (add_setshow_cmd_full): Declare.
5163 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5164 returns void. Use add_setshow_cmd_full.
5165 (add_setshow_cmd_full): New function.
5166 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5167 (add_setshow_boolean_cmd): Likewise.
5168
5169 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5170
5171 * config/vax/tm-vax.h: Protect from multiple inclusion.
5172 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5173 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5174 * config/vax/tm-vaxbsd.h: ...here. New file.
5175 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5176
5177 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5178
5179 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5180 (BELIEVE_PCC_PROMOTION): Remove.
5181 (AP_REGNUM): Move to...
5182 * config/vax/nm-vax.h: ...here.
5183 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5184 (vax_breakpoint_from_pc): New function.
5185 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5186 and gdbarch_believe_pcc_promotion.
5187
5188 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5189
5190 * Makefile.in (vax_tdep_h): Define.
5191 (vax-tdep.o): Use $(vax_tdep_h).
5192 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5193 (vax_dump_tdep): New function.
5194 (_initialize_vax_tdep): Register vax_dump_tdep.
5195 * vax-tdep.h: Include osabi.h.
5196 (struct gdbarch_tdep): New.
5197
5198 2002-06-26 Andrew Cagney <cagney@redhat.com>
5199
5200 * frame.h (deprecated_generic_find_dummy_frame): Rename
5201 generic_find_dummy_frame.
5202 * blockframe.c (generic_find_dummy_frame): Make static.
5203 (deprecated_generic_find_dummy_frame): New function.
5204 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5205 generic_find_dummy_frame with deprecated_find_dummy_frame.
5206 (sh64_nofp_frame_init_saved_regs): Ditto.
5207 (sh_fp_frame_init_saved_regs): Ditto.
5208 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5209 (s390_frame_chain): Ditto.
5210 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5211
5212 2002-06-26 Grace Sainsbury <graces@redhat.com>
5213
5214 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5215 gdbarch vector are at the top.
5216 (NUM_REGS): Remove.
5217 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5218 (FRAME_ARGS_ADDRESS): Remove.
5219 (FRAME_LOCALS_ADDRESS): Remove.
5220 (FRAME_NUM_ARGS): Remove.
5221 (FRAME_ARGS_SKIP): Remove.
5222 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5223 (m68k_gdbarch_init): Add gdbarch initializations for macros
5224 undefined in tm-m68k.h
5225
5226 2002-06-26 Grace Sainsbury <graces@redhat.com>
5227
5228 * monitor.h: Add the function regname to monitor_ops
5229 structure. This way NUM_REGS does not have to be a constant.
5230 * monitor.c (monitor_fetch_register): Added support for regname
5231 function. The function is called if the array regnames is NULL.
5232 (monitor_store_register): Same.
5233 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5234 regnames array.
5235 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5236 cpu32bug_cmds.regname to point to new function.
5237 * abug-rom.c (abug_regname): Same as above.
5238 (init_abug_cmds): Same.
5239 * dbug-rom.c (dbug_regname): Same as above.
5240 (init_dbug_cmds): Same.
5241 * remote-est.c (est_regname): Same.
5242 (init_est_cmds): Same.
5243 * rom68k-rom.c (rom68k_regname): Same.
5244 (init_rom68k_cmds): Same.
5245
5246 2002-06-25 Tom Tromey <tromey@redhat.com>
5247
5248 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5249
5250 2002-06-25 Andrew Cagney <cagney@redhat.com>
5251
5252 * infrun.c (stop_registers): Change variable's type to ``struct
5253 regcache'''.
5254 (xmalloc_inferior_status): Delete function.
5255 (free_inferior_status): Delete function.
5256 (normal_stop): Use regcache_cpy.
5257 (struct inferior_status): Change type of fields ``stop_registers''
5258 and ``registers'' to ``struct regcache''.
5259 (write_inferior_status_register): Use regcache_write.
5260 (save_inferior_status): Instead of calling
5261 xmalloc_inferior_status, allocate the inf_status buffer directly.
5262 Use regcache_dup_no_passthrough and regcache_dup to save the
5263 buffers.
5264 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5265 Replace the stop_registers regcache instead of overriding it. Use
5266 regcache_xfree. Instead of calling free_inferior_status, xfree
5267 the buffer directly.
5268 (discard_inferior_status): Use regcache_xfree. Instead of calling
5269 free_inferior_status, xfree the buffer directly.
5270 (build_infrun): Use regcache_xmalloc.
5271 (_initialize_infrun): Delete redundant call to build_infrun.
5272
5273 * Makefile.in (infcmd.o): Add $(regcache_h).
5274
5275 * infcmd.c: Include "regcache.h".
5276 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5277 obtain the address of `stop_registers' register buffer.
5278 (print_return_value): Ditto.
5279
5280 * inferior.h (struct regcache): Add opaque declaration.
5281 (stop_registers): Change variable's declared type to ``struct
5282 regcache''.
5283
5284 2002-06-24 Tom Tromey <tromey@redhat.com>
5285
5286 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5287 * target.c (initialize_targets): Fixed typo in
5288 trust-readonly-sections `show' documentation.
5289
5290 * main.c: Marked all strings with _().
5291
5292 2002-06-24 Don Howard <dhoward@redhat.com>
5293
5294 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5295 that means max CORE_ADDR+1.
5296 (lookup_mem_region): Ditto.
5297 (mem_info_command): Ditto.
5298
5299 2002-06-24 Grace Sainsbury <graces@redhat.com>
5300
5301 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5302 (REGISTER_BYTES_OK): Remove.
5303 (REGISTER_BYTES): Remove.
5304 (STORE_STRUCT_RETURN): Remove.
5305 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5306 (STORE_RETURN_VALUE): Remove.
5307 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5308 (FRAME_CHAIN): Remove.
5309 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5310 (FRAME_SAVED_PC): Remove.
5311 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5312 (m68k_store_struct_return): Add.
5313 (m68k_deprecated_extract_return_value): Add.
5314 (m68k_deprecated_extract_struct_value_address): Add.
5315 (m68k_store_return_value): Add.
5316 (m68k_frame_chain): Add.
5317 (m68k_frameless_function_invocation): Add.
5318 (m68k_frame_saved_pc): Add.
5319 (m68k_gdbarch_init): added set_gdbarch calls for new
5320 functions and deleted macros.
5321
5322 2002-06-23 Tom Tromey <tromey@redhat.com>
5323
5324 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5325 (ALLDEPFILES): Likewise.
5326 (udiheaders): Removed.
5327 (udip2soc.o): Likewise.
5328 (udi2go32.o): Likewise.
5329 (udr.o): Likewise.
5330 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5331
5332 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5333
5334 * infrun.c (_initialize_infrun): Delete unnecessary call to
5335 build_infrun.
5336
5337 * regcache.h: Update comments describing the regcache_cpy family
5338 of functions.
5339 (regcache_save, regcache_restore): Delete declaration.
5340 (regcache_save_no_passthrough): Delete declaration.
5341 (regcache_restore_no_passthrough): Delete declaration.
5342 * regcache.c (regcache_save): Delete function.
5343 (regcache_save_no_passthrough): Delete function.
5344 (regcache_restore): Delete function.
5345 (regcache_restore_no_passthrough): Delete function.
5346
5347 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5348
5349 * config/m68k/tm-m68k.h: Fix typo.
5350 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5351 (m68k_frame_init_saved_regs): Declare.
5352
5353 2002-06-21 Jim Blandy <jimb@redhat.com>
5354
5355 Remove some vestiges of Harris 88k support.
5356 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5357 register numbering quirk.
5358 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5359 odd symbols occurring in Harris 88k ELF targets.
5360
5361 2002-06-21 Tom Tromey <tromey@redhat.com>
5362
5363 * gdb_locale.h: New file.
5364 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5365 (defs_h): Added gdb_locale.h.
5366 * configure, config.in: Rebuilt.
5367 * configure.in (PACKAGE): Define.
5368 * defs.h: Include gdb_locale.h.
5369 * main.c (captured_main): Call setlocale, bindtextdomain,
5370 textdomain.
5371
5372 2002-06-21 Dave Brolley <brolley@redhat.com>
5373
5374 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5375 * config/frv/frv.mt: New file.
5376 * config/frv/tm-frv.h: New file.
5377 * configure.tgt: Support frv-*-*.
5378 * Makefile.in (frv-tdep.o): New target.
5379 * frv-tdep.c: New file.
5380 * NEWS: Mention frv.
5381
5382 2002-06-21 Dave Brolley <brolley@redhat.com>
5383
5384 * MAINTAINERS: Add self to "Write After Approval" list.
5385
5386 2002-06-21 Grace Sainsbury <graces@redhat.com>
5387
5388 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5389 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5390 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5391 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5392 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5393
5394 * m68k-tdep.c: Include arch-utils.h
5395 (m68k_register_raw_size): Add.
5396 (m68k_register_virtual_size): Add.
5397 (m68k_register_virtual_type): Add.
5398 (m68k_register_name): Add.
5399 (m68k_stack_align): Add.
5400 (m68k_register_byte): Add.
5401 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5402 tm-m68k.h.
5403
5404 2002-06-21 Grace Sainsbury <graces@redhat.com>
5405
5406 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5407 m68k_find_saved_regs.
5408 (m68k_pop_frame): Removed saved_regs structure, and replaced
5409 references to it with frame->saved_regs.
5410 (m68k_gdbarch_init): Added function calls to initialize the
5411 gdbarch structure.
5412 (m68k_fix_call_dummy): Add.
5413 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5414 (CALL_DUMMY): Remove.
5415 (CALL_DUMMY_LENGTH): Remove.
5416 (CALL_DUMMY_START_OFFSET): Remove.
5417 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5418 (FIX_CALL_DUMMY): Remove.
5419 (PUSH_DUMMY_FRAME): Remove.
5420 (POP_FRAME): Remove.
5421
5422 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5423
5424 * parse.c (parse_fprintf): New function used to avoid calls to
5425 fprintf in bison parser generated debug code.
5426 * parser-defs.h: Declaration of new parse_fprintf function.
5427 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5428 Set YYDEBUG to 1 by default.
5429 Set YYFPRINTF as parse_fprintf.
5430
5431 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5432
5433 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5434 encoding anymore.
5435 (pointer_encoding, enum ptr_encoding): New.
5436 (execute_cfa_program): Take care about pointer encoding.
5437 (dwarf2_build_frame_info): Only call parse_frame_info for
5438 .debug_frame and .eh_frame.
5439 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5440 fixed augmentation handling, added relative addressing,
5441 ignore duplicate FDEs. Added comments.
5442 * dwarf2cfi.c: Reindented.
5443
5444 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5445
5446 * event-top.c (command_handler): Don't use space_at_cmd_start
5447 unless there is sbrk() on the host. Assign time and space data
5448 to union fields of the appropriate length.
5449
5450 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5451
5452 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5453 x86_64_register_name. Return type changed to 'const char *'.
5454 (x86_64_register_name2nr): Rename to x86_64_register_number.
5455 (x86_64_gdbarch_init): Update to reflect the change.
5456 * x86-64-tdep.h: Ditto.
5457 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5458 (supply_fpregset): Ditto.
5459
5460 2002-06-19 Andrew Cagney <cagney@redhat.com>
5461
5462 * regcache.h: Update copyright.
5463 (struct regcache, struct gdbarch): Add opaque declarations.
5464 (current_regcache): Declare global variable.
5465 (regcache_read, regcache_write): Add gdbarch parameter.
5466 (regcache_save, regcache_save_no_passthrough)
5467 (regcache_restore, regcache_restore_no_passthrough)
5468 (regcache_dup, regcache_dup_no_passthrough)
5469 (regcache_cpy, regcache_cpy_no_passthrough)
5470 (deprecated_grub_regcache_for_registers)
5471 (deprecated_grub_regcache_for_register_valid)
5472 (regcache_valid_p): Add function declarations.
5473
5474 * regcache.c: Update copyright.
5475 (regcache_descr_handle): New global variable.
5476 (struct regcache_descr): Define.
5477 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5478 (regcache_descr, xfree_regcache_descr): New functions.
5479 (struct regcache): Define.
5480 (regcache_xmalloc, regcache_xfree): New functions.
5481 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5482 (regcache_dup, regcache_dup_no_passthrough): New functions.
5483 (regcache_valid_p, regcache_read_as_address): New functions.
5484 (deprecated_grub_regcache_for_registers): New function.
5485 (deprecated_grub_regcache_for_register_valid): New function.
5486 (current_regcache): New global variable.
5487 (register_buffer): Add regcache parameter. Update calls.
5488 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5489 (read_register_gen, write_register_gen): Update register_buffer
5490 call. Test for legacy_p instead of gdbarch_register_read_p or
5491 gdbarch_register_write_p.
5492 (regcache_collect): Update register_buffer call.
5493 (build_regcache): Rewrite. Use deprecated grub functions.
5494 (regcache_save, regcache_save_no_passthrough): New functions.
5495 (regcache_restore, regcache_restore_no_passthrough): New
5496 functions.
5497 (_initialize_regcache): Create the regcache_data_handle. Swap
5498 current_regcache global variable.
5499
5500 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5501 parameter to regcache_read and regcache_write calls.
5502 (sh4_register_read): Ditto.
5503 (sh64_pseudo_register_read): Ditto.
5504 (sh64_register_read): Ditto.
5505 (sh_pseudo_register_write): Ditto.
5506 (sh4_register_write): Ditto.
5507 (sh64_pseudo_register_write): Ditto.
5508 (sh64_register_write): Ditto.
5509
5510 * defs.h (XCALLOC): Define.
5511
5512 2002-06-19 Grace Sainsbury <graces@redhat.com>
5513
5514 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5515 * m68k-tdep.c (m68k_gdbarch_init): Added.
5516 (m68k_dump_tdep): Added.
5517
5518 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5519
5520 * ada-lang.c (fill_in_ada_prototype): Update comment.
5521
5522 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5523
5524 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5525 MIPS_ABI_LAST.
5526 (mips_abi_string, mips_abi_strings): New.
5527 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5528 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5529 tdep->mips_abi_string. Honor mips_abi_string. Default to
5530 O32 if no ABI is found.
5531 (mips_dump_tdep): Use mips_abi_strings.
5532 (mips_abi_update): New function.
5533 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5534 ``set mips abi'' and ``show mips abi''. Check the size of
5535 mips_abi_strings.
5536
5537 2002-06-19 Andrew Cagney <cagney@redhat.com>
5538
5539 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5540 constant.
5541
5542 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5543
5544 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5545 current frame using only the first stack size adjustment. All
5546 subsequent size adjustments are not considered to be part of
5547 the "static" part of the current frame.
5548 Compute the address of the saved registers relative to the
5549 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5550 in use in this frame.
5551
5552 2002-06-18 Don Howard <dhoward@redhat.com>
5553
5554 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5555 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5556 suggesting this solution.
5557
5558 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5559
5560 * config/romp/xm-rtbsd.h: Delete file.
5561 * config/romp/rtbsd.mh: Delete file.
5562
5563 2002-06-18 Keith Seitz <keiths@redhat.com>
5564
5565 * breakpoint.c (condition_command): Post breakpoint_modify
5566 when a condition is added to an existing breakpoint.
5567 (commands_command): Likewise for commands.
5568 (set_ignore_count): Likewise for ignore counts.
5569 If no tty, do not simply return, still need to send event
5570 notification.
5571 (ignore_command): Only print a newline if the command came
5572 from a tty.
5573 Don't call breakpoints_changed, since this is now properly
5574 handled by set_ignore_count.
5575
5576 2002-06-18 Andrew Cagney <cagney@redhat.com>
5577
5578 * MAINTAINERS: Note that cris-elf target can be compiled with
5579 -Werror.
5580 * cris-tdep.c (cris_register_name): Make return type constant.
5581 (cris_breakpoint_from_pc): Ditto.
5582
5583 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5584
5585 * frame.h (struct frame_info): Change type of context to
5586 'struct context'.
5587
5588 2002-06-17 Andrew Cagney <cagney@redhat.com>
5589
5590 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5591 pointer.
5592 * gdbarch.h, gdbarch.c: Regenerate.
5593 * config/mips/tm-mips.h (mips_register_name): Update.
5594 * i386-tdep.h (i386_register_name): Update.
5595 * mips-tdep.c (mips_register_name): Update
5596 * alpha-tdep.c (alpha_register_name): Update.
5597 * arch-utils.c (legacy_register_name): Update.
5598 * arch-utils.h (legacy_register_name): Update.
5599 * avr-tdep.c (avr_register_name): Update.
5600 * ia64-tdep.c (ia64_register_name): Update.
5601 * i386-tdep.c (i386_register_name): Update.
5602 * sparc-tdep.c (sparc32_register_name): Update.
5603 (sparc64_register_name): Update.
5604 (sparclite_register_name): Update.
5605 (sparclet_register_name): Update.
5606 * sh-tdep.c (sh_generic_register_name): Update.
5607 (sh_sh_register_name): Update.
5608 (sh_sh3_register_name): Update.
5609 (sh_sh3e_register_name): Update.
5610 (sh_sh_dsp_register_name): Update.
5611 (sh_sh3_dsp_register_name): Update.
5612 (sh_sh4_register_name): Update.
5613 (sh_sh64_register_name): Update.
5614 * s390-tdep.c (s390_register_name): Update.
5615 * rs6000-tdep.c (rs6000_register_name): Update.
5616 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5617 (ns32k_register_name_32382): Update.
5618 * d10v-tdep.c (d10v_ts2_register_name): Update.
5619 (d10v_ts3_register_name): Update.
5620 * xstormy16-tdep.c (xstormy16_register_name): Update.
5621 * vax-tdep.c (vax_register_name): Update.
5622 * v850-tdep.c (v850_register_name): Update.
5623 * m68hc11-tdep.c (m68hc11_register_name): Update.
5624 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5625 (am33_register_name): Update.
5626
5627 2002-06-17 Grace Sainsbury <graces@redhat.com>
5628
5629 * m68k-tdep.c: Reindented.
5630
5631 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5632
5633 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5634 list of predefined types.
5635
5636 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5637
5638 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5639 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5640 REGISTER_CONVERT_TO_RAW): Remove defines.
5641 (i386_register_virtual_type, i386_register_convertible,
5642 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5643 Remove prototypes.
5644 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5645 macros mentioned above.
5646
5647 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5648 (i386lynx_saved_pc_after_call): Remove prototype.
5649 * i386ly-tdep.c: Include "i386-tdep.h".
5650 (i386lynx_saved_pc_after_call): Make static. Use
5651 read_memory_nobpt instead of read_memory. Use
5652 read_memory_unsigned_integer instead of read_memory_integer.
5653 (i386lynx_init_abi): New function.
5654 (i386lynx_coff_osabi_sniffer): New function.
5655 (_initialize_i386bsd_tdep): New function.
5656
5657 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5658 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5659 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5660 (i386_fix_call_dummy): Remove prototype.
5661 * i386-tdep.c (i386_call_dummy_words): New variable.
5662 (i386_gdbarch_init): Adjust for removal of the
5663 macros mentioned above.
5664
5665 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5666
5667 * command.h (add_setshow_auto_boolean_cmd): Replace
5668 add_set_auto_boolean_cmd.
5669 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5670 add_set_auto_boolean_cmd.
5671 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5672 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5673 mask-address'' command.
5674 (show_mask_address): Add cmd parameter.
5675 * remote.c (add_packet_config_cmd): Update. Change type of
5676 set_func and show_func to cmd_sfunc_ftype.
5677 (_initialize_remote): Update `set remote Z-packet'
5678 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5679 (show_remote_protocol_e_packet_cmd): Ditto.
5680 (show_remote_protocol_E_packet_cmd): Ditto.
5681 (show_remote_protocol_P_packet_cmd): Ditto.
5682 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5683 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5684 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5685 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5686 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5687 (show_remote_protocol_Z_packet_cmd): Ditto.
5688 (show_remote_protocol_binary_download_cmd): Ditto.
5689 (show_remote_cmd): Pass NULL to all of above.
5690
5691 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5692
5693 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5694 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5695 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5696 POP_FRAME): Remove defines.
5697 (i386_push_arguments, i386_store_struct_return,
5698 i386_extract_return_value, i386_store_return_value,
5699 i386_extract_struct_value_address, i386_push_dummy_frame,
5700 i386_pop_frame): Renove prototypes.
5701 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5702 macros mentioned above.
5703
5704 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5705
5706 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5707 add_set_boolean_cmd.
5708 (add_setshow_cmd): New function.
5709 * command.h (add_setshow_boolean_cmd): Replace
5710 add_set_boolean_cmd.
5711 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5712 and ``set rdiromatzero''.
5713 * maint.c (_initialize_maint_cmds): Update commented out code.
5714 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5715 * target.c (initialize_targets): Update `set
5716 trust-readonly-sections'.
5717 * remote.c (_initialize_remote): Update `set remotebreak'.
5718
5719 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5720
5721 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5722 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5723 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5724 fit into multi-arch framework.
5725 (i386_breakpoint_from_pc): New function.
5726 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5727 above.
5728
5729 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5730 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5731 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5732 (i386_frameless_function_invocation, i386_frame_num_args,
5733 i386_frame_init_saved_regs): Remove prototypes.
5734 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5735 macros mentioned above.
5736
5737 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5738
5739 * cli/cli-decode.c (set_cmd_cfunc): Update.
5740 (set_cmd_sfunc): Update.
5741 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5742 (set_cmd_sfunc, set_cmd_cfunc): Update.
5743 * cli/cli-decode.h: Update.
5744
5745 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5746
5747 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5748 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5749
5750 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5751
5752 * defs.h (auto_boolean): Declare enum.
5753 * command.h (cmd_auto_boolean): Delete enum.
5754 * mips-tdep.c (mask_address_var): Update.
5755 (mips_mask_address_p): Update.
5756 (show_mask_address): Update.
5757 * remote.c (struct packet_config): Update.
5758 (update_packet_config): Update.
5759 (show_packet_config_cmd): Update.
5760 (packet_ok): Update.
5761 (add_packet_config_cmd): Update.
5762 (_initialize_remote):
5763 * command.h: Update.
5764 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5765 (do_setshow_command): Update.
5766 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5767 * cli/cli-decode.h: Update.
5768
5769 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5770
5771 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5772 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5773 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5774 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5775 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5776 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5777
5778 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5779 list of DJGPP COFF targets.
5780
5781 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5782 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5783 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5784 (FP0_REGNUM): Remove define.
5785 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5786 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5787 (i386_register_virtual_size): Remove protoype.
5788 * i386-tdep.c (i386_register_virtual_size): Removed.
5789 (i386_extract_return_value, i386_store_return_value): Use
5790 FP0_REGNUM instead of NUM_FREGS to determine whether the
5791 floating-point registers are available.
5792 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5793 Adjust for removal of macros mentioned above.
5794
5795 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5796
5797 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5798 comments.
5799 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5800 Remove prototypes.
5801 (supply_gregset, fill_gregset): Remove use of register keyword and
5802 remove declaration for regmap. Use I386_NUM_GREGS instead of
5803 NUM_REGS and NUM_FREGS.
5804 (FPREGSET_FSAVE_OFFSET): Remove.
5805 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5806 NUM_FREGS to determine whether the floating-point registers are
5807 available.
5808
5809 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5810 gnu_store_registers): Replace usage of NUM_GREGS with
5811 I386_NUM_GREGS.
5812
5813 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5814 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5815 usage of NUM_GREGS with I386_NUM_GREGS.
5816
5817 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5818
5819 * i386bsd-nat.c: Include "i386-tdep.h".
5820 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5821 I386_NUM_GREGS.
5822
5823 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5824 and associated comment. They no longer make any sense, since we
5825 don't use this file anymore on Linux.
5826
5827 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5828 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5829 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5830 elements in these arrays.
5831 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5832 MAX_NUM_REGS.
5833
5834 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5835
5836 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5837 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5838
5839 2002-06-14 Andrew Cagney <cagney@redhat.com>
5840
5841 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5842 EXTRACT_RETURN_VALUE.
5843 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5844 EXTRACT_STRUCT_VALUE_ADDRESS.
5845 * gdbarch.h, gdbarch.c: Regenerate.
5846
5847 * values.c (value_being_returned): Handle
5848 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5849 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5850
5851 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5852 * arm-tdep.c (arm_gdbarch_init): Update.
5853 * avr-tdep.c (avr_gdbarch_init): Update.
5854 * cris-tdep.c (cris_gdbarch_init): Update.
5855 * d10v-tdep.c (d10v_gdbarch_init): Update.
5856 * ia64-tdep.c (ia64_gdbarch_init): Update.
5857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5859 * s390-tdep.c (s390_gdbarch_init): Update.
5860 * sh-tdep.c (sh_gdbarch_init): Update.
5861 * s390-tdep.c (s390_gdbarch_init): Update.
5862 * sparc-tdep.c (sparc_gdbarch_init): Update.
5863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5864 * v850-tdep.c (v850_gdbarch_init): Update.
5865 * vax-tdep.c (vax_gdbarch_init): Update.
5866 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5868
5869 * config/arc/tm-arc.h: Update.
5870 * config/d30v/tm-d30v.h: Update.
5871 * config/fr30/tm-fr30.h: Update.
5872 * config/h8300/tm-h8300.h: Update.
5873 * config/h8500/tm-h8500.h: Update.
5874 * config/i386/tm-i386.h: Update.
5875 * config/i386/tm-ptx.h: Update.
5876 * config/i386/tm-symmetry.h: Update.
5877 * config/i960/tm-i960.h: Update.
5878 * config/m32r/tm-m32r.h: Update.
5879 * config/m68k/tm-delta68.h: Update.
5880 * config/m68k/tm-linux.h: Update.
5881 * config/m68k/tm-m68k.h: Update.
5882 * config/m88k/tm-m88k.h: Update.
5883 * config/mcore/tm-mcore.h: Update.
5884 * config/mips/tm-mips.h: Update.
5885 * config/mn10200/tm-mn10200.h: Update.
5886 * config/pa/tm-hppa.h: Update.
5887 * config/pa/tm-hppa64.h: Update.
5888 * config/sparc/tm-sp64.h: Update.
5889 * config/sparc/tm-sparc.h: Update.
5890 * config/sparc/tm-sparclet.h: Update.
5891 * config/z8k/tm-z8k.h: Update.
5892
5893 2002-06-14 Andrew Cagney <cagney@redhat.com>
5894
5895 * Makefile.in (i386_linux_tdep_h): Define.
5896 (i386_tdep_h, i387_tdep_h): Define.
5897 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5898 $(i386_tdep_h) and $(i387_tdep_h).
5899 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5900
5901 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5902
5903 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5904 Already covered by the default.
5905
5906 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5907 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5908 (i386_gdbarch_init): Initialize long_double_format and long_double
5909 bit.
5910
5911 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5912 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5913 Move these to ...
5914 * config/i386/i386sol2.mh: ... here.
5915 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5916 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5917 (SIGCONTEXT_PC_OFFSET): Remove define.
5918 (IN_SIGTRAMP): Remove define.
5919 * i386-sol2-tdep.c: New file.
5920
5921 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5922 * config/i386/tm-i386nw.h: Removed.
5923
5924 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5925 USE_STRUCT_CONVENTION): Remove defines.
5926 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5927 (get_longjmp_target): Remove prototype.
5928 (IN_SIGTRAMP): Remove define.
5929 (i386bsd_in_sigtramp): Remove prototype.
5930 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5931 function. Update comment accordingly
5932 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5933 (FRAME_SAVED_PC): Remove define.
5934 (i386bsd_frame_saved_pc): Remove prototype.
5935 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5936 GET_LONGJMP_TARGET): Remove defines.
5937 (get_longjmp_target): Remove prototype.
5938 (IN_SIGTRAMP): Remove define.
5939 (i386bsd_in_sigtramp): Remove prototype.
5940 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5941 function. Update comment accordingly
5942 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5943 (FRAME_SAVED_PC): Remove define.
5944 (i386bsd_frame_saved_pc): Remove prototype.
5945 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5946 Remove prototype.
5947 (USE_STRUCT_CONVENTION): Remove prototype.
5948 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5949 declaration.
5950 (_initialize_i386bsd_nat): Revise logic to determine some
5951 constants at compile time when compiling a native GDB. Warn if
5952 things don't match up with what we expect.
5953 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5954 Remove variables.
5955 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5956 to use date stored in `struct gdbarch_tdep'.
5957 (i386bsd_sigcontext_offset): Remove varaible.
5958 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5959 stored in `struct gdbarch_tdep'.
5960 (i386bsd_frame_saved_pc): Make static.
5961 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5962 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5963 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5964 i386fbsd4_sc_pc_offset): New variables.
5965 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5966 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5967 functions.
5968 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5969 functions.
5970 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5971 Modify the value of i386fbsd_sigtramp_start and
5972 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5973 i386fbsd_sigtramp_end.
5974 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5975 function.
5976
5977 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5978 define to i386-linux-tdep.h.
5979 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5980 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5981 defines.
5982 (i386_linux_register_name, i386_linux_register_byte,
5983 i386_linux_register_raw_size): Remove prototypes.
5984 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5985 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5986 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5987 TARGET_WRITE_PC): Remove defines.
5988 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5989 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5990 i386_linux_write_pc): Remove prototypes.
5991 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5992 (get_longjmp_target): Remove prototype.
5993 * i386-linux-tdep.h: New file.
5994 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5995 * i386-linux-tdep.c: Include "i386-tdep.h" and
5996 "i386-linux-tdep.h".
5997 (i386_linux_register_name, i386_linux_register_byte,
5998 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5999 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6000 Make static.
6001 (i386_linux_init_abi): New function.
6002 (_initialize_i386_linux_tdep): New function.
6003
6004 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6005 (i386_saved_pc_after_call): Remove prototype.
6006 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6007 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6008 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6009 (i386_register_name, i386_stab_reg_to_regnum,
6010 i386_dwarf_reg_to_regnum): Remove prototypes.
6011 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6012 SIZEOF_SSE_REGS): Remove defines.
6013 (REGISTER_BYTES): Remove define.
6014 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6015 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6016 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6017 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6018 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6019 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6020 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6021 (get_longjmp_target): Remove prototype.
6022 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6023 (sigtramp_saved_pc): Remove define.
6024 (i386v4_sigtramp_saved_pc): Remove prototype.
6025 * config/i386/tm-go32.h (FRAME_CHAIN,
6026 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6027 (i386go32_frame_saved_pc): Remove prototype.
6028 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6029 (get_longjmp_target): Remove prototype.
6030 * i386-tdep.h: Include "osabi.h".
6031 (enum i386_abi): Removed.
6032 (enum struct_return): New enum.
6033 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6034 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6035 sc_pc_offset members.
6036 (i386_gdbarch_register_os_abi): Remove prototype.
6037 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6038 I386_SSE_NUM_REGS): New defines.
6039 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6040 I386_SSE_SIZEOF_REGS): New defines.
6041 (i386_register_name, i386_register_byte, i386_register_raw_size):
6042 New prototypes.
6043 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6044 (i386bsd_sigtramp_saved_pc): New prototype.
6045 * i386-tdep.c: Don't include "elf-bfd.h".
6046 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6047 i386_frame_chain, i386_saved_pc_after_call): Make static.
6048 (i386_frame_saved_pc): Rewrite to call architecture dependent
6049 function to deal with signal handlers. Make static.
6050 (i386go32_frame_saved_pc): Removed.
6051 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6052 Removed.
6053 (i386_get_longjmp_target): New function.
6054 (default_struct_convention, pcc_struct_convention,
6055 reg_struct_convention, valid_conventions, struct_convention): New
6056 variables.
6057 (i386_use_struct_convention): New function.
6058 (i386v4_sigtramp_saved_pc): Renamed to
6059 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6060 (i386_pc_in_sigtramp): New function.
6061 (i386_abi_names): Removed.
6062 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6063 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6064 Removed.
6065 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6066 i386_gdbarch_register_os_abi): Removed.
6067 (struct i386_abi_handler): Removed.
6068 (i386_abi_handler_list): Removed.
6069 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6070 functions.
6071 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6072 i386_nw_init_abi): New functions.
6073 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6074 Use set_gdbarch_xxx() calls instead of relying on macros for a
6075 number of calls.
6076 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6077 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6078 Register the various architecture variants defined in this file.
6079
6080 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6081
6082 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6083 (struct main_type): Remove arg_types member. Update comments for
6084 struct field.
6085 (TYPE_ARG_TYPES): Remove.
6086 (TYPE_FN_FIELD_ARGS): Update.
6087 (smash_to_method_type): Update prototype.
6088
6089 * c-typeprint.c (cp_type_print_method_args): Take method type
6090 instead of argument list. Use new argument layout. Simplify.
6091 (c_type_print_args): Use new argument layout. Simplify.
6092 (c_type_print_base): Update call to cp_type_print_method_args.
6093 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6094 argument; use die->type instead. Update call to
6095 smash_to_method_type.
6096 (read_structure_scope): Update call to dwarf2_add_member_fn.
6097 * gdbtypes.c (allocate_stub_method): Update comment.
6098 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6099 Use new argument layout.
6100 (check_stub_method): Use new argument layout. Don't count
6101 void as an argument.
6102 (print_arg_types): Update comments. Use new argument layout.
6103 (recursive_dump_type): Don't print arg_types member.
6104 * hpread.c (hpread_read_struct_type): Use new argument layout.
6105 (fixup_class_method_type): Likewise.
6106 (hpread_type_lookup): Likewise.
6107 * stabsread.c (read_type): Update calls to read_args and
6108 smash_to_method_type.
6109 (read_args): Use new argument layout. Simplify.
6110 * valops.c (typecmp): Use new argument layout. Update parameters
6111 and comments. Simplify.
6112 (hand_function_call): Use new argument layout.
6113 (search_struct_method): Update call to typecmp.
6114 (find_overload_match): Use new argument layout.
6115
6116 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6117
6118 * NEWS: Mention multithreaded debug support for gdbserver.
6119
6120 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6121
6122 * MAINTAINERS: Mention NEWS.
6123
6124 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6125
6126 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6127 (struct mips_objfile_private, compare_pdr_entries): New.
6128 (non_heuristic_proc_desc): Read the ".pdr" section if it
6129 is present.
6130
6131 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6132
6133 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6134 (arm_debug): New static variable.
6135 (_initialize_arm_tdep): Add ``set debug arm'' command.
6136
6137 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6138
6139 * Makefile.in (sim_arm_h): Define.
6140 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6141 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6142 (arm_register_sim_regno): New function, map an internal REGNUM
6143 onto a simulator register number.
6144 (arm_gdbarch_init): Set register_sim_regno.
6145
6146 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6147
6148 * MAINTAINERS: Add self.
6149
6150 2002-06-11 Jim Blandy <jimb@redhat.com>
6151
6152 * source.c (source_info): Mention whether the symtab has
6153 information about preprocessor macros.
6154
6155 Call the command `info macro', not `show macro'.
6156 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6157 Fix error message.
6158 (_initialize_macrocmd): Register `info_macro_command' in
6159 `infolist', not `showlist'.
6160
6161 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6162
6163 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6164 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6165 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6166 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6167 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6168 unconditionally.
6169 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6170 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6171 (_initialize_mips_tdep): Remove dead code.
6172 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6173 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6174 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6175 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6176 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6177 MIPS_LAST_FP_ARG_REGNUM): Remove.
6178
6179 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6180
6181 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6182 (unwind_tmp_obstack_free, parse_frame_info)
6183 (update_context, cfi_read_fp, cfi_write_fp)
6184 (cfi_frame_chain, cfi_init_extra_frame_info)
6185 (cfi_virtual_frame_pointer): Use the above function.
6186 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6187
6188 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6189
6190 * v850-tdep.c (v850_type_is_scalar): New function.
6191 (v850_use_struct_convention): Match current gcc implementation
6192 as close as possible.
6193 (v850_push_arguments): Fix stack_offset handling. Don't write
6194 struct_addr into register. This is done by v850_store_struct_return.
6195 (v850_extract_return_value): Care for structs.
6196 (v850_store_return_value): Ditto.
6197 (v850_store_struct_return): Actually write address.
6198
6199 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6200
6201 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6202 without debug information too.
6203
6204 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6205
6206 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6207 Make multi-arch pure.
6208 * gdbarch.h, gdbarch.c: Re-generate.
6209 * arm-tdep.c (arm_print_float_info): Update.
6210 * arch-utils.h (default_print_float_info): Update.
6211 * arch-utils.c (default_print_float_info): Update.
6212 * infcmd.c (float_info): Update call.
6213
6214 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6215
6216 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6217 the front of the initialize list.
6218
6219 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6220
6221 * infrun.c (struct inferior_status): Replace fields
6222 selected_frame_address and selected_level with field
6223 selected_frame_id.
6224 (save_inferior_status): Update. Use get_frame_id.
6225 (struct restore_selected_frame_args): Delete.
6226 (restore_selected_frame): Update. Use frame_find_by_id.
6227 (restore_inferior_status): Update.
6228
6229 * breakpoint.h (struct breakpoint): Change type of
6230 watchpoint_frame to frame_id.
6231 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6232 call to get_current_frame.
6233 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6234 get_current_frame.
6235 (watchpoint_check): Use frame_find_by_id.
6236
6237 * frame.h (record_selected_frame): Delete declaration.
6238 * stack.c (record_selected_frame): Delete function.
6239
6240 * frame.h (struct frame_id): Define.
6241 (get_frame_id): Declare.
6242 (frame_find_by_id): Declare.
6243 * frame.c (frame_find_by_id): New function.
6244 (get_frame_id): New function.
6245
6246 2002-06-10 Andrey Volkov <avolkov@transas.com>
6247
6248 * ser-e7kpc.c: Fix duplicated define and call of
6249 _initialize_ser_e7000pc
6250
6251 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6252
6253 * signals/signals.c (target_signal_from_host): Fix #ifdef
6254 SIGRTMIN case.
6255 (do_target_signal_to_host): Likewise.
6256
6257 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6258
6259 * mips-tdep.c (mips_find_abi_section): New function.
6260 (mips_gdbarch_init): Call it.
6261
6262 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6263
6264 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6265 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6266 after Andrew's 2002-06-08 gdbarch change.
6267
6268 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6269
6270 * i386-linux-nat.c (suppy_gregset): Don't supply
6271 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6272 register cache.
6273 (fill_gregset): Don't fetch it under the same circumstances.
6274
6275 2002-06-09 Andrew Cagney <cagney@redhat.com>
6276
6277 * Makefile.in (callback_h): Define.
6278 (remote_sim_h): Update path to remote-sim.h.
6279 (remote-rdp.o): Add $(callback_h).
6280 (remote-sim.o): Use $(callback_h).
6281 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6282 * remote-rdp.c: Include "gdb/callback.h".
6283
6284 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6285
6286 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6287 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6288
6289 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6290
6291 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6292 * rdi-share/serpardr.c: Ditto.
6293 * rdi-share/unixcomm.c: Ditto.
6294 * rdi-share/serdrv.c: Ditto.
6295 * rdi-share/hostchan.h: Ditto.
6296 * rdi-share/hostchan.c: Ditto.
6297 * rdi-share/host.h: Ditto.
6298 * rdi-share/devsw.c: Ditto.
6299
6300 * objfiles.h: Change type of obj_private to void pointer.
6301 * pa64solib.c: Update copyright. Don't include "assert.h", use
6302 strcmp instead of STREQ, use LONGEST, do not use PTR
6303 * somsolib.c: Ditto.
6304
6305 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6306 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6307 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6308
6309 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6310
6311 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6312 (default_get_saved_register): Delete function.
6313 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6314 generic_unwind_get_saved_register.
6315 * gdbarch.h, gdbarch.c: Re-generate.
6316
6317 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6318
6319 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6320 generic_func_frame_chain_valid.
6321 * gdbarch.h, gdbarch.c: Re-generate.
6322 * blockframe.c (generic_func_frame_chain_valid): Only check
6323 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6324 passing FP to PC_IN_CALL_DUMMY.
6325 Fix PR gdb/360.
6326
6327 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6328
6329 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6330 (register_gdbarch_data): Initialize init_p.
6331 (gdbarch_data): Initialize data pointer using the init function.
6332 (init_gdbarch_data): Delete function.
6333 (gdbarch_update_p): Update.
6334 (initialize_non_multiarch): Update.
6335 (struct gdbarch): Add field initialized_p.
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337
6338 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6339
6340 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6341 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6342 better do the things actually here.
6343 * x86-64-tdep.c (x86_64_register_name2nr): New.
6344 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6345 (x86_64_gdbarch_init): Respect the above change.
6346 * x86-64-tdep.h (x86_64_register_name2nr)
6347 (x86_64_register_nr2name): Add prototypes.
6348 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6349
6350 2002-06-06 Michael Snyder <msnyder@redhat.com>
6351
6352 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6353 Delete extra braces and re-indent.
6354 (d10v_store_return_value): Char return values
6355 must be shifted over by one byte in R0.
6356 (d10v_extract_return_value): Delete extra braces, re-indent.
6357
6358 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6359
6360 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6361 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6362 (d10v_integer_to_address): Rewrite.
6363 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6364 the d10v specific functions which take care of converting to the
6365 correct space.
6366
6367 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6368
6369 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6370 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6371
6372 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6373
6374 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6375 includes.
6376 * config/tm-linux.h: Ditto.
6377 * config/alpha/tm-alphalinux.h: Ditto.
6378 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6379 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6380 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6381 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6382 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6383 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6384 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6385 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6386 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6387 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6388 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6389 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6390 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6391 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6392 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6393 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6394 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6395 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6396 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6397 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6398 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6399 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6400 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6401 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6402 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6403 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6404 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6405 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6406 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6407 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6408 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6409 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6410 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6411 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6412 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6413 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6414 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6415
6416 2002-05-04 Aidan Skinner <aidan@velvet.net>
6417
6418 * ada-exp.tab.c: New file
6419 * ada-exp.y: New file
6420 * ada-lang.c: New file
6421 * ada-lang.h: New file
6422 * ada-lex.c: New file
6423 * ada-lex.l: New file
6424 * ada-tasks.c: New file
6425 * ada-typeprint.c: New file
6426 * ada-valprint.c: New file
6427
6428 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6429
6430 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6431 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6432
6433 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6434
6435 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6436 insetead of ppc-linux-tdep.o.
6437 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6438 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6439
6440 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6441
6442 2002-05-07 Christian Groessler <chris@groessler.org>
6443 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6444 bit register contents for little endian hosts.
6445
6446 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6447
6448 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6449 any maintainer.
6450
6451 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6452
6453 * gdbarch.h: Regenerate.
6454
6455 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6456
6457 * MAINTAINERS: Add everyone to write-after-approval list.
6458
6459 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6460
6461 * stack.c (frame_info): Use frame_register_unwind instead of
6462 saved_regs. Mention when the SP is on the stack or in a register.
6463
6464 * frame.h (frame_register_unwind_ftype): Define. Document.
6465 (struct frame_info): Add field register_unwind and
6466 register_unwind_cache.
6467 (frame_register_unwind): Declare.
6468 (generic_unwind_get_saved_register): Declare.
6469
6470 * frame.c (frame_register_unwind): New function.
6471 (generic_unwind_get_saved_register): New function.
6472
6473 * blockframe.c (generic_call_dummy_register_unwind): New function.
6474 (frame_saved_regs_register_unwind): New function.
6475 (set_unwind_by_pc): New function.
6476 (create_new_frame): New function.
6477 (get_prev_frame): New function.
6478
6479 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6480
6481 * a29k-share/: Delete directory.
6482 * remote-vx29k.c: Delete file.
6483
6484 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6485
6486 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6487 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6488
6489 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6492 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6493 (sparc64nbsd-nat.o)
6494 (sparcnbsd-nat.o)
6495 (sparcnbsd-tdep.o): New dependency lists.
6496 * NEWS: Note new UltraSPARC NetBSD native configuration.
6497 * configure.host (sparc64-*-netbsd*): New host.
6498 * configure.tgt (sparc-*-netbsdelf*)
6499 (sparc-*-netbsd*): Set gdb_target to nbsd.
6500 (sparc64-*-netbsd*): New target.
6501 * sparc64nbsd-nat.c: New file.
6502 * sparcnbsd-nat.c: New file.
6503 * sparcnbsd-tdep.c: New file.
6504 * sparcnbsd-tdep.h: New file.
6505 * config/sparc/nbsd.mt: New file.
6506 * config/sparc/nbsd64.mh: New file.
6507 * config/sparc/nbsd64.mt: New file.
6508 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6509 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6510 (HOST_IPC): Remove.
6511 * config/sparc/nbsdaout.mt: Remove.
6512 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6513 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6514 (HOST_IPC): Remove.
6515 * config/sparc/nbsdelf.mt: Remove.
6516 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6517 sparc-nat.c compatiblity defines.
6518 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6519 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6520 * config/sparc/tm-nbsd64.h: New file.
6521 * config/sparc/tm-nbsdaout.h: Remove.
6522 * config/sparc/xm-nbsd.h: Remove.
6523
6524 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6525
6526 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6527 * sparc-tdep.c: Include osabi.h.
6528 (gdbarch_tdep): Add osabi member.
6529 (_initialize_sparc_tdep): Use gdbarch_register.
6530 (sparc_gdbarch_init): Use generic OS ABI framework.
6531 (sparc_dump_tdep): New function.
6532
6533 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6534
6535 * corefile.c (do_captured_read_memory_integer): Return non-zero
6536 result.
6537 (safe_read_memory_integer): Copy result of memory read when
6538 status is non-zero. Also, add comments.
6539
6540 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6541
6542 * Makefile.in (ppc_tdep_h): Define.
6543 (ppc-linux-nat.o)
6544 (ppc-linux-tdep.o)
6545 (rs6000-tdep.o): Use $(ppc_tdep_h).
6546 (ppc-sysv-tdep.o)
6547 (ppcnbsd-nat.o)
6548 (ppcnbsd-tdep.o): New dependency lists.
6549 * ppc-tdep.h: Use generic OS ABI framework.
6550 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6551 (ppc_linux_init_abi): New functions.
6552 (ppc_sysv_abi_broken_use_struct_convention)
6553 (ppc_sysv_abi_use_struct_convention)
6554 (ppc_sysv_abi_push_arguments): Move to...
6555 * ppc-sysv-tdep.c: ...here.
6556 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6557 * rs6000-tdep.c (process_note_abi_tag_sections)
6558 (get_elfosabi): Remove.
6559 (rs6000_gdbarch_init): Use generic OS ABI framework.
6560 (rs6000_dump_tdep): New function.
6561 (_initialize_rs6000_tdep): Use gdbarch_register.
6562 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6563 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6564 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6565 of ppc-linux-tdep.o.
6566 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6567 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6568 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6569 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6570 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6571 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6572
6573 2002-05-29 Jim Blandy <jimb@redhat.com>
6574
6575 * macroscope.c (default_macro_scope): Put `void' in empty argument
6576 list.
6577
6578 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6579
6580 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6581 * arch-utils.c: Include "sim-regno.h".
6582 * gdbarch.sh: Don't include "sim-regno.h".
6583 * gdbarch.h, gdbarch.c: Regenerate.
6584 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6585 here.
6586 * arch-utils.h (legacy_register_sim_regno): To here.
6587 * remote-sim.c (legacy_register_sim_regno): Move function from
6588 here.
6589 * arch-utils.c (legacy_register_sim_regno): To here.
6590
6591 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6592
6593 * sim-regno.h: New file.
6594 * Makefile.in (sim_regno_h): Define.
6595 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6596 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6597 (legacy_register_sim_regno): New function.
6598 (one2one_register_sim_regno): New function.
6599 (gdbsim_fetch_register): Rewrite.
6600 (gdbsim_store_register): Only store a register when
6601 REGISTER_SIM_REGNO is valid.
6602 * d10v-tdep.c: Include "sim-regno.h".
6603 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6604 (d10v_ts3_register_sim_regno): Ditto.
6605 * gdbarch.sh: Include "sim-regno.h".
6606 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6607 * gdbarch.h, gdbarch.c: Regenerate.
6608 * arch-utils.h (default_register_sim_regno): Delete declaration.
6609 * arch-utils.c (default_register_sim_regno): Delete function.
6610
6611 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * ppcnbsd-nat.c: Rewrite.
6614 * ppcnbsd-tdep.c: New file.
6615 * ppcnbsd-tdep.h: New file.
6616 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6617 solib.o, and solib-svr4.o.
6618 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6619 nbsd-tdep.o, and corelow.o.
6620
6621 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6622
6623 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6624 `tr' and `sed'. Mention that `broken' targets are not expected to
6625 build.
6626
6627 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6628
6629 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6630 Let PC point right after the prologue before looking up symbols.
6631
6632 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6633
6634 * i386-tdep.c (i386_register_virtual_type): Return
6635 builtin_type_vec128i for SSE registers.
6636
6637 * gdbtypes.h (builtin_type_vec128i): Declare.
6638
6639 * gdbtypes.c (build_builtin_type_vec128i): New function.
6640 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6641 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6642 (build_gdbtypes): Initialize new builtin vector types.
6643 (_initialize_gdbtypes): Register new vector types with gdbarch.
6644
6645 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6646
6647 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6648 since it has been multi-arch'd.
6649 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6650 Move Alpha and VAX multi-arch news entries to same section
6651 as other multi-arch news.
6652
6653 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6654
6655 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6656 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6657 static. Rename some register numbers to put them in ns32k-tdep
6658 private namespace.
6659 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6660 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6661 functions.
6662 (_initialize_ns32k_tdep): Use gdbarch_register.
6663 * ns32k-tdep.h: New file.
6664 * ns32knbsd-tdep.c: New file.
6665 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6666 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6667 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6668 REGISTER_BYTES, REGISTER_BYTE): Remove.
6669 * config/ns32k/tm-ns32k.h: New file.
6670 * config/ns32k/tm-umax.h: Remove.
6671
6672 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6673
6674 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6675 ns32k_store_struct_return, ns32k_extract_return_value,
6676 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6677 functions.
6678 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6679 ns32k_saved_pc_after_call.
6680 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6681 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6682 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6683 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6684 ns32k_extract_struct_value_address.
6685
6686 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6687
6688 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6689 ns32k_fix_call_dummy): New.
6690 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6691 ns32k_call_dummy_words.
6692 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6693 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6694 CALL_DUMMY_NARGS): Remove.
6695 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6696
6697 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6698
6699 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6700 ns32k_frame_saved_pc, ns32k_frame_args_address,
6701 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6702 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6703 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6704 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6705 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6706 (BREAKPOINT): Remove..
6707 (FRAME_CHAIN): Define as ns32k_frame_chain.
6708 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6709 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6710 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6711 (FRAME_FIND_SAVED_REGS): Remove.
6712 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6713 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6714 (POP_FRAME): Define as ns32k_pop_frame.
6715
6716 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6717
6718 * ns32k-tdep.c (ns32k_register_byte_32082,
6719 ns32k_register_byte_32382, ns32k_register_raw_size,
6720 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6721 functions.
6722 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6723 ns32k_register_byte_32382.
6724 * config/ns32k/tm-umax.h: Update copyright years.
6725 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6726 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6727 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6728 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6729 (ns32k_get_enter_addr): Fix prototype.
6730
6731 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6732
6733 * ns32k-tdep.c: Update copyright years.
6734 (ns32k_register_name_32082): New function.
6735 (ns32k_register_name_32382): Ditto.
6736 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6737 (REGISTER_NAME): Define as ns32k_register_name_32382.
6738 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6739 (REGISTER_NAME): Define as ns32k_register_name_32082.
6740
6741 2002-05-24 Jim Blandy <jimb@redhat.com>
6742
6743 * dwarf2read.c (free_line_header): Use xfree, not free.
6744
6745 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6746
6747 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6748 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6749
6750 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6751
6752 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6753
6754 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6755
6756 From Ross Alexander at NEC Europe:
6757 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6758
6759 2002-05-23 Michael Snyder <msnyder@redhat.com>
6760
6761 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6762 for input, rather than parse_and_eval_address.
6763
6764 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6765
6766 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6767 * Makefile.in (sim_d10v_h): Update definition.
6768
6769 2002-05-24 Andrew Cagney <cagney@redhat.com>
6770
6771 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6772 change `2002-05-22 Michael Snyder' below.
6773 (d10v_push_arguments): Ditto.
6774 (d10v_extract_return_value): Ditto.
6775
6776 2002-05-23 Jim Blandy <jimb@redhat.com>
6777
6778 * macrotab.c (check_for_redefinition): Don't complain if the new
6779 definition is the same as the previous one. Take more arguments
6780 to allow the comparison.
6781 (macro_define_object, macro_define_function): Pass more arguments
6782 to check_for_redefinition.
6783
6784 2002-05-22 Michael Snyder <msnyder@redhat.com>
6785
6786 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6787 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6788 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6789 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6790 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6791 Add a temp variable to save a call (and a memory read).
6792 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6793 if possible (so that PC_IN_CALL_DUMMY will work).
6794
6795 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6796
6797 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6798
6799 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6800
6801 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6802 fde->cie_ptr.
6803 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6804 (dwarf2_build_frame_info): Add offset to fde->initial_location
6805 so that frames of shared libraries are mapped correctly.
6806 (execute_stack_op): Change type of 'result' from ULONGEST to
6807 CORE_ADDR.
6808
6809 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6810
6811 * config/alpha/tm-nbsd.h: Include solib.h.
6812
6813 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6814
6815 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6816 assumptions about the host's byte order.
6817
6818 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6819
6820 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6821 to dependency list.
6822 * alphanbsd-tdep.c: Include solib-svr4.h.
6823 * shnbsd-tdep.c: Ditto.
6824
6825 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6826
6827 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6828 nbsd-tdep.h to dependency list.
6829 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6830 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6831 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6832 nbsdaout.mh and nbsdelf.mh consistently.
6833 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6834 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6835 nbsdaout.mt and nbsdelf.mh consistently.
6836 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6837 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6838 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6839 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6840 a.out shared library stuff from here...
6841 * config/nm-nbsdaout.h: ...to here.
6842 * config/tm-nbsd.h: Remove.
6843 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6844 * config/arm/nbsd.mh: Remove.
6845 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6846 nbsd-tdep.o.
6847 * config/arm/nbsdaout.mh: New file.
6848 * config/arm/nbsdelf.mh: New file.
6849 * config/arm/nm-nbsdaout.h: New file.
6850 * config/i386/nbsd.mh: Remove.
6851 * config/i386/nbsd.mt: Remove.
6852 * config/i386/nbsdaout.mh: New file.
6853 * config/i386/nbsdaout.mt: New file.
6854 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6855 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6856 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6857 i386_register_u_addr): Remove.
6858 * config/i386/nm-nbsdaout.h: New file.
6859 * config/i386/nm-nbsdelf.h: Remove.
6860 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6861 (USE_STRUCT_CONVENTION): Remove.
6862 * config/i386/tm-nbsdaout.h: New file.
6863 * config/i386/tm-nbsdelf.h: Remove.
6864 * config/m68k/nbsd.mh: Remove.
6865 * config/m68k/nbsd.mt: Remove.
6866 * config/m68k/nbsdaout.mh: New file.
6867 * config/m68k/nbsdaout.mt: New file.
6868 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6869 * config/m68k/nm-nbsdaout.h: New file.
6870 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6871 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6872 * config/ns32k/nbsd.mh: Remove.
6873 * config/ns32k/nbsd.mt: Remove.
6874 * config/ns32k/nbsdaout.mh: New file.
6875 * config/ns32k/nbsdaout.mt: New file.
6876 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6877 * config/ns32k/nm-nbsdaout.h: New file.
6878 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6879 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6880 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6881 (SVR4_SHARED_LIBS): Remove.
6882 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6883 * config/sparc/nbsd.mh: Remove.
6884 * config/sparc/nbsd.mt: Remove.
6885 * config/sparc/nbsdaout.mh: New file.
6886 * config/sparc/nbsdaout.mt: New file.
6887 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6888 * config/sparc/nbsdelf.mt: New file.
6889 * config/sparc/nm-nbsdaout.h: New file.
6890 * config/sparc/nm-nbsdelf.h: Remove.
6891 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6892 * config/sparc/tm-nbsdaout.h: New file.
6893
6894 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6895
6896 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6897 mipsnbsd-tdep.c
6898 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6899
6900 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6901
6902 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6903 shnbsd-nat.c.
6904 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6905
6906 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6907
6908 * NEWS: Note new MIPS NetBSD native configuration.
6909 * configure.host (mips*-*-netbsd*): New host.
6910 * configure.tgt (mips*-*-netbsd*): New target.
6911 * mipsnbsd-nat.c: New file.
6912 * mipsnbsd-tdep.c: New file.
6913 * mipsnbsd-tdep.h: New file.
6914 * config/mips/nbsd.mh: New file.
6915 * config/mips/nbsd.mt: New file.
6916 * config/mips/nm-nbsd.h: New file.
6917 * config/mips/tm-nbsd.h: New file.
6918
6919 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6920
6921 * Makefile.in (SFILES): Add osabi.c.
6922 (COMMON_OBS): Add osabi.o.
6923 (osabi.o): New dependency list.
6924 * osabi.c: New file.
6925 * osabi.h: New file.
6926 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6927
6928 * Makefile.in (alpha_tdep_h): Define and use instead of
6929 alpha-tdep.h.
6930 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6931 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6932 Remove.
6933 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6934 * alpha-tdep.h: Include osabi.h.
6935 (alpha_abi): Remove.
6936 (gdbarch_tdep): Use generic OS ABI framework.
6937 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6938 gdbarch_register_osabi.
6939 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6940 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6941 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6942
6943 * Makefile.in (sh_tdep_h): Add osabi.h.
6944 * sh-tdep.h (sh_osabi): Remove.
6945 (gdbarch_tdep): Use generic OS ABI framework.
6946 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6947 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6948 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6949 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6950
6951 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6952 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6953 gdbarch_register_osabi.
6954 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6955 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6956 (get_elfosabi): Rename to...
6957 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6958 ABI framework support routines.
6959 (arm_gdbarch_init): Use generic OS ABI framework.
6960 (arm_dump_tdep): Likewise.
6961 (_initialize_arm_tdep): Likewise.
6962 * arm-tdep.h: Include osabi.h.
6963 (arm_abi): Remove.
6964 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6965 osabi member.
6966 (arm_gdbarch_register_os_abi): Remove prototype.
6967 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6968 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6969
6970 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6971 * mips-tdep.c: Include osabi.h.
6972 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6973 OS ABI framework.
6974
6975 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6976
6977 * h8300-tdep.c: Fix formatting.
6978
6979 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6980
6981 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6982 printing vector registers.
6983
6984 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6985
6986 From Fernando Nasser:
6987 * remote.c (remote_async_open_1): Re-throw the exception when the
6988 connection fails.
6989 (remote_cisco_open): Ditto.
6990 (remote_open_1): Ditto.
6991
6992 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6993
6994 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6995 (remote_start_remote): Add uiout parameter. Pass through to
6996 remote_start_remote_dummy.
6997 (remote_open_1): Use catch_exception instead of catch_errors.
6998 (remote_async_open_1): Ditto.
6999 (remote_cisco_open): Ditto.
7000
7001 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7002
7003 * remote.c (remote_start_remote): Replace PTR with void pointer.
7004 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7005 static.
7006
7007 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7008
7009 * gdb_indent.sh: Allow the script to be run in the sim directory.
7010
7011 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7012
7013 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7014 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7015
7016 * corelow.c (core_open): Only call set_gdbarch_from_file if
7017 exec_bfd is NULL.
7018
7019 2002-05-17 Andrey Volkov <avolkov@transas.com>
7020
7021 * h8300-tdep.c: Add support of EXR register
7022 * config/h8300/tm-h8300.h: Ditto.
7023
7024 2002-05-17 Andrey Volkov <avolkov@transas.com>
7025
7026 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7027
7028 2002-05-17 Andrey Volkov <avolkov@transas.com>
7029
7030 * h8300-tdep.c: Change literal regnums to REGNO.
7031
7032 2002-05-17 Jim Blandy <jimb@redhat.com>
7033
7034 * NEWS: Note addition of macro support.
7035
7036 Expand preprocessor macros in C expressions.
7037 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7038 (scan_macro_expansion, scanning_macro_expansion,
7039 finished_macro_expansion): New function declarations.
7040 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7041 variable declarations.
7042 * parser-defs.h (expression_context_pc): New declaration.
7043 * parse.c (expression_context_pc): New variable.
7044 (parse_exp_1): Set expression_context_pc, as well as
7045 expression_context_block.
7046 * c-exp.y (yylex): If we're not already reading the result of a
7047 macro expansion, try to macro-expand the next token. When we're
7048 done scanning a macro expansion, switch back to the mainline text.
7049 Commas and `if's in a macro's expansion don't terminate the input.
7050 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7051 (macro_original_text, macro_expanded_text,
7052 expression_macro_lookup_func, expression_macro_lookup_baton): New
7053 variables.
7054 (scan_macro_expansion, scanning_macro_expansion,
7055 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7056 c_preprocess_and_parse): New functions.
7057 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7058 c_preprocess_and_parse, instead of c_parse.
7059 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7060 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7061
7062 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7063
7064 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7065 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7066 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7067
7068 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7069
7070 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7071
7072 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7073
7074 * Makefile.in (sh_tdep_h): Define and use.
7075 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7076 register enum): Move to...
7077 * * sh-tdep.h: ...here.
7078 * sh-tdep.c: Include sh-tdep.h.
7079 * sh3-rom.c: Likewise.
7080 * shnbsd-tdep.c: Likewise.
7081
7082 2002-05-16 Michael Snyder <msnyder@redhat.com>
7083
7084 * arm-tdep.c: Spelling fix in comment.
7085
7086 2002-05-16 Jim Blandy <jimb@redhat.com>
7087
7088 Add commands for manually expanding macros and showing their
7089 definitions.
7090 * macrocmd.c, macroscope.c, macroscope.h: New files.
7091 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7092 (macroscope_h): New variable.
7093 (HFILES_NO_SRCDIR): Add macroscope.h.
7094 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7095 (macroscope.o, macrocmd.o): New rules.
7096
7097 Teach the Dwarf 2 reader to read macro information.
7098 * dwarf2read.c: #include "macrotab.h".
7099 (dwarf_macinfo_buffer): New variable.
7100 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7101 dwarf_macinfo_size.
7102 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7103 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7104 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7105 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7106 dwarf2_macro_spaces_in_definition): New complaints.
7107 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7108 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7109 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7110 the partial symbol table.
7111 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7112 from what's recorded in the partial symbol table.
7113 (read_file_scope): If the compilation unit has a
7114 `DW_AT_macro_info' attribute, read its macro information.
7115 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7116
7117 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7118
7119 Fix PR gdb/546
7120 * ser-tcp.c: Don't include <netinet/udp.h>.
7121
7122 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7123
7124 * MAINTAINERS: Update my email address.
7125
7126 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7127
7128 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7129 include file of the same name.
7130
7131 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7132
7133 * configure.tgt: Mark v850 as multi-arched.
7134 * config/v850/tm-v850.h: Remove file.
7135 * config/v850/v850.mt: Eliminate TM_FILE.
7136
7137 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7138
7139 * v850-tdep.c: Full multi-arch.
7140 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7141 Define GDB_MULTI_ARCH to 2.
7142
7143 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7144
7145 * p-exp.y (current_type): New static variable.
7146 Carries the type of the expression at the position that is parsed.
7147 (push_current_type, pop_current_type): Two new functions. Used
7148 to store/restore current_type in expression on specific tokens.
7149 (search_field): New static variable. Set to one after parsing a point
7150 as at that point only a FIELDNAME token should be searched.
7151 (FIELDNAME): New token. After a point only a token belonging to
7152 current_type type definition is allowed.
7153 (all over token rules): reset and change current_type according
7154 to rules.
7155 (exp '[' rule): insert implicit array index field if
7156 exp is a pascal string type.
7157
7158 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7159
7160 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7161 frame info. Use frame_info's saved_regs instead of matching member
7162 in extra_frame_info throughout.
7163 (v850_frame_init_saved_regs): New function.
7164 (v850_init_extra_frame_info): Move most functionality into
7165 v850_frame_init_saved_regs().
7166 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7167 (v850_frame_find_saved_regs): Remove declaration.
7168 (FRAME_FIND_SAVED_REGS): Remove definition.
7169 (v850_frame_init_saved_regs): Add declaration.
7170 (FRAME_INIT_SAVED_REGS): Add definition.
7171
7172 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7173
7174 * v850-tdep.c: Begin multi-arch'ing v850.
7175 (v850_target_architecture_hook): Remove function.
7176 (v850_gdbarch_init): New function. Add code previously in
7177 v850_target_architecture_hook().
7178 (_initialize_v850_tdep): Don't set target_architecture_hook.
7179 Call register_gdbarch_init() instead.
7180
7181 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7182
7183 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7184 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7185 (fixup_class_method_type): Likewise.
7186
7187 2002-05-15 Jim Blandy <jimb@redhat.com>
7188
7189 Add macro structures to GDB's symbol tables. Nobody puts anything
7190 in them yet.
7191 * symtab.h (struct symtab): New member: `macro_table'.
7192 * buildsym.h (pending_macros): New global variable.
7193 * buildsym.c: #include "macrotab.h".
7194 (buildsym_init): Initialize `pending_macros'.
7195 (end_symtab): If we found macro information while reading a CU's
7196 debugging info, do build a symtab structure for it. Make the
7197 symtab point to the macro information, and clear the
7198 `pending_macros' pointer which held it while we were reading the
7199 debug info.
7200 (really_free_pendings): Free any pending macro table.
7201 * objfiles.h (struct objfile): New member: `macro_cache'.
7202 * objfiles.c (allocate_objfile): Set allocate and free functions
7203 for the macro cache's objstack.
7204 (free_objfile): Empty the macro cache's obstack.
7205 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7206 set new allocate and free functions for it.
7207 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7208 free functions for the macro cache's objstack. (Why is this
7209 function building its own objfile?)
7210 * symmisc.c (print_objfile_statistics): Print statistics on the
7211 macro bcache.
7212 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7213
7214 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7215
7216 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7217 (REGISTER_U_ADDR): Delete definition.
7218 (arm_register_u_addr): Delete declaration.
7219
7220 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7221
7222 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7223 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7224
7225 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7226
7227 * regcache.c (register_valid): Revise comments refering to "Not
7228 available" and "unavailable".
7229 * frame.c (frame_register_read): Ditto.
7230 * findvar.c (value_of_register): Ditto.
7231
7232 2002-05-15 Andrew Cagney <cagney@redhat.com>
7233
7234 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7235 (remote-sim.o): Update dependencies.
7236 (d10v-tdep.o): Specify dependencies.
7237 (sim_d10v_h): Define.
7238
7239 2002-05-14 Jim Blandy <jimb@redhat.com>
7240
7241 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7242 * macrotab.c (macro_lookup_inclusion, find_definition,
7243 new_macro_table): Same.
7244
7245 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7246 not `! strcmp ()'. This is a dubious improvement.
7247 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7248
7249 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7250 although it's not necessary, to avoid a warning.
7251
7252 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7253
7254 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7255 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7256 TYPE_INSTANCE_FLAGS.
7257 (struct main_type): New.
7258 (struct type): Move most members to struct main_type. Change
7259 cv_type and as_type to new type_chain member. Add instance_flags.
7260 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7261 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7262 (finish_cv_type): Remove prototype.
7263 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7264 Set TYPE_CHAIN.
7265 (alloc_type_instance): New function.
7266 (smash_type): New function.
7267 (make_pointer_type, make_reference_type, make_function_type)
7268 (smash_to_member_type, smash_to_method_type): Call smash_type.
7269 (make_qualified_type): New function.
7270 (make_type_with_address_space): Call make_qualified_type.
7271 (make_cv_type): Likewise.
7272 (finish_cv_type): Remove unnecessary function.
7273 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7274 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7275 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7276 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7277 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7278 * hpread.c (hpread_read_struct_type): Likewise.
7279 * stabsread.c (read_struct_type): Likewise.
7280
7281 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7282
7283 * configure.tgt: Add a catch all sh* target, for cases like
7284 sh[2,3,4]-elf and sh-hms.
7285
7286 2002-05-14 Keith Seitz <keiths@redhat.com>
7287
7288 * event-loop.c (create_file_handler): Don't do anything but
7289 update data when we are given a fd which we are already
7290 monitoring.
7291
7292 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7293
7294 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7295 (update_context): Use __func__ in warnings.
7296
7297 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7298
7299 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7300 and tcp_close to net_open and net_close.
7301 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7302 using UDP if requested. Don't try to disable Nagle on UDP
7303 sockets.
7304 * remote.c (remote_serial_open): New function. Warn about UDP.
7305 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7306
7307 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7308
7309 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7310
7311 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7312
7313 * configure.tgt: Remove sh-hms target.
7314 * MAINTAINERS: Don't list sh-hms as a separate target.
7315
7316 2002-05-13 Jim Blandy <jimb@redhat.com>
7317
7318 Add first preprocessor macro-expansion files.
7319 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7320 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7321 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7322 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7323 (COMMON_OBS): Add macrotab.o, macroexp.o.
7324 (macroexp.o, macrotab.o): New rules.
7325
7326 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7327
7328 * config/m88k/tm-m88k.h: Update copyright.
7329 (m88k_target_write_pc): Declare
7330 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7331 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7332 (SHIFT_INST_REGS): Update definition.
7333 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7334 using old definition of TARGET_WRITE_PC.
7335 * regcache.c (generic_target_write_pc): Delete code handling
7336 NNPC_REGNUM.
7337 * gdbarch.sh (NNPC_REGNUM): Delete.
7338 * gdbarch.h, gdbarch.c: Regenerate.
7339
7340 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7341
7342 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7343 builtin reg number.
7344
7345 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7346
7347 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7348 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7349 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7350 access macros.
7351 * c-typeprint.c (cp_type_print_method_args): Likewise.
7352 (c_type_print_args): Likewise.
7353 * d10v-tdep.c (d10v_push_arguments): Likewise.
7354 (d10v_extract_return_value): Likewise.
7355 * expprint.c (print_subexp): Likewise.
7356 * gdbtypes.c (lookup_primitive_typename): Likewise.
7357 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7358 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7359 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7360 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7361 (TYPE_VECTOR): Likewise.
7362 * hpread.c (hpread_read_struct_type)
7363 (fix_static_member_physnames, fixup_class_method_type)
7364 (hpread_type_lookup): Likewise.
7365 * mdebugread.c (parse_symbol, parse_type): Likewise.
7366 * p-lang.c (is_pascal_string_type): Likewise.
7367 * valops.c (hand_function_call): Likewise.
7368 * x86-64-tdep.c (classify_argument): Likewise.
7369
7370 * hpread.c (hpread_read_function_type)
7371 (hpread_read_doc_function_type): Call replace_type.
7372 * dstread.c (create_new_type): Delete.
7373 (decode_dst_structure, process_dst_function): Call alloc_type.
7374 Use type access macros.
7375
7376 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7377
7378 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7379 the're not supported by the current architecture.
7380 (i387_fill_fxsave): Likewise.
7381
7382 2002-05-12 Fred Fish <fnf@redhat.com>
7383
7384 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7385 sect_index_xxx members to index the first slot in section_offsets
7386 if all of the section_offsets are zero.
7387
7388 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7389
7390 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7391 checked in with last change.
7392
7393 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7394
7395 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7396 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7397 config.sub.
7398
7399 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7400
7401 * Makefile.in: Update dependencies.
7402
7403 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7404
7405 * language.c (local_hex_string_custom): Simplify. Do not depend
7406 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7407
7408 * memattr.c (mem_info_command): Replace calls to
7409 longest_local_hex_string and longest_local_hex_string_custom.
7410 * buildsym.c (make_blockvector): Ditto.
7411 * solib.c (info_sharedlibrary_command): Ditto.
7412 * tracepoint.c (tracepoints_info): Ditto.
7413 * symtab.c (print_msymbol_info): Ditto.
7414
7415 * language.c (local_hex_string): Delete.
7416 (local_hex_string_custom): Delete.
7417 (longest_local_hex_string): Rename to local_hex_string.
7418 (longest_local_hex_string_custom): Rename to
7419 local_hex_string_custom.
7420 * language.h (local_hex_string): Change parameter type to LONGEST.
7421 (local_hex_string_custom): Ditto.
7422 (longest_local_hex_string): Delete declaration.
7423 (longest_local_hex_string_custom): Ditto.
7424
7425 * solib.c: Update copyright.
7426 * memattr.c: Update copyright.
7427
7428 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7429
7430 * arch-utils.h (legacy_register_to_value): Declare.
7431 (legacy_value_to_register): Declare.
7432 (legacy_convert_register_p): Declare.
7433 * arch-utils.c (legacy_register_to_value): New function.
7434 (legacy_value_to_register): New function.
7435 (legacy_convert_register_p): New function.
7436
7437 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7438 (VALUE_TO_REGISTER): Define.
7439 (CONVERT_REGISTER_P): Define.
7440 * gdbarch.h, gdbarch.c: Regenerate.
7441
7442 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7443 VALUE_TO_REGISTER.
7444 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7445 CONVERT_REGISTER_P.
7446
7447 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7448 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7449
7450 * Makefile.in: Update dependencies for valops.c.
7451 * valops.c: Include "gdb_assert.h".
7452 (typecmp): Skip THIS parameter to methods.
7453 (find_method_list): Remove static_memfuncp argument,
7454 update callers. Check for stub methods.
7455 (find_value_oload_method_list): Don't set *static_memfuncp.
7456 (find_overload_match): Don't check for stub methods. Assert
7457 that methods are not stubbed. Handle static methods.
7458 (value_find_oload_method_list): Remove static_memfuncp argument.
7459 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7460 to the argument list for static stub methods.
7461 * value.h (value_find_oload_method_list): Update prototype.
7462
7463 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7464
7465 * arch-utils.h (generic_register_size): Declare.
7466 (generic_register_raw_size, generic_register_virtual_size): Delete
7467 declarations.
7468 * arch-utils.c (generic_register_raw_size): Delete.
7469 (generic_register_size): New function.
7470 (generic_register_virtual_size): Delete.
7471
7472 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7473 default generic_register_size.
7474 * gdbarch.h, gdbarch.c: Re-generate.
7475
7476 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7477 register_virtual_size.
7478 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7480
7481 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7482
7483 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7484 * gdbarch.h, gdbarch.c: Regenerate.
7485 * gnu-v3-abi.c: Update copyright.
7486 (vtable_address_point_offset): Update.
7487 (gnuv3_rtti_type): Update.
7488 (gnuv3_baseclass_offset): Update.
7489 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7490 (init_fetch_link_map_offsets): Update.
7491 * remote.c (get_remote_state): Update.
7492
7493 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * TODO: Remove value_headof/value_from_vtable_info comment.
7496 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7497 * values.c (value_headof, value_from_vtable_info): Delete.
7498 * value.h (value_from_vtable_info): Delete prototype.
7499
7500 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7501
7502 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7503 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7504 $(gdb_regex_h).
7505 (gdb_assert_h): Define.
7506 (gdb_wait_h): Define.
7507 (gdb_regex_h): Define.
7508
7509 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7510
7511 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7512 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7513
7514 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7515
7516 * nbsd-tdep.c: Fix comment.
7517
7518 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7519
7520 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7521 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7522 (nbsd-tdep.o): New dependency list.
7523 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7524 nbsd-tdep.h.
7525 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7526 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7527 * nbsd-tdep.c: New file.
7528 * nbsd-tdep.h: New file.
7529 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7530 nbsd-tdep.h.
7531 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7532 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7533 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7534 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7535
7536 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7537
7538 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7539 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7540 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7541 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7542 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7543 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7544
7545 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7546
7547 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7548 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7549 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7550 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7551 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7552 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7553 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7554
7555 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7556
7557 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7558 fetch_elfcore_registers to...
7559 * i386nbsd-tdep.c: ...here.
7560 (i386nbsd_use_struct_convention): Rename to...
7561 (i386nbsd_aout_use_struct_convention): ...this.
7562 (i386nbsd_supply_reg): New function.
7563 (i386nbsd_fill_reg): New function.
7564 (fetch_core_registers): Use i386nbsd_supply_reg.
7565 (fetch_elfcore_registers): Likewise.
7566 (_initialize_i386nbsd_tdep): New function.
7567 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7568 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7569 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7570 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7571 (i386nbsd_aout_use_struct_convention): ...this.
7572
7573 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7574
7575 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7576 (store_inferior_registers): Use shnbsd_fill_reg.
7577 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7578 sh_nbsd_supply_register): Collapse into...
7579 (shnbsd_supply_reg): ...this.
7580 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7581 (shnbsd_fill_reg): ...this.
7582 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7583 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7584 (fetch_core_registers): Use shnbsd_supply_reg.
7585 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7586 (sh_nbsd_core_fns): Rename to...
7587 (shnbsd_core_fns): ...this.
7588 (sh_nbsd_elfcore_fns): Rename to...
7589 (shnbsd_elfcore_fns): ...this.
7590 (sh_nbsd_init_abi): Rename to...
7591 (shnbsd_init_abi): ...this.
7592 (_initialize_sh_nbsd_tdep): Rename to...
7593 (_initialize_shnbsd_tdep): ...this.
7594 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7595 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7596 sh_nbsd_fill_register): Remove prototypes.
7597 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7598
7599 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7602 (i387-nat.o): Delete dependency list.
7603 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7604 (x86-64-linux-nat.o): Likewise.
7605 * i387-nat.c: Delete file, moving contents to...
7606 * i387-tdep.c: ...here.
7607 * i387-nat.h: Rename...
7608 * i387-tdep.h: ...to this.
7609 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7610 * i386-linux-nat.c: Likewise.
7611 * i386bsd-nat.c: Likewise.
7612 * i386gnu-nat.c: Likewise.
7613 * i386nbsd-nat.c: Likewise.
7614 * i386v4-nat.c: Likewise.
7615 * x86-64-linux-nat.c: Likewise.
7616 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7617 * config/i386/go32.mh (NATDEPFILES): Likewise.
7618 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7619 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7620 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7621 * config/i386/linux.mh (NATDEPFILES): Likewise.
7622 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7623 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7624 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7625 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7626
7627 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7628
7629 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7630 (alphanbsd-nat.o): Remove dependency list.
7631 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7632 * alphanbsd-nat.c: Delete. Contents moved to...
7633 * alphanbsd-tdep.c: ...here.
7634 (_initialize_alphanbsd_tdep): Register core functions.
7635 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7636
7637 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7638
7639 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7640 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7641 (alphanbsd-nat.o): Likewise.
7642 (alphabsd-tdep.o): New dependency list.
7643 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7644 (fill_gregset): Use alphabsd_fill_reg.
7645 (supply_fpregset): Use alphabsd_supply_fpreg.
7646 (fill_fpregset): Use alphabsd_fill_fpreg.
7647 (fetch_inferior_registers): Use struct reg and struct fpreg
7648 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7649 and alphabsd_supply_fpreg.
7650 (store_inferior_registers): Use struct reg and struct fpreg
7651 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7652 and alphabsd_fill_fpreg.
7653 * alphabsd-tdep.c: New file.
7654 * alphabsd-tdep.h: New file.
7655 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7656 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7657 alphabsd_supply_fpreg.
7658 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7659 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7660
7661 2002-05-11 Eric Christopher <echristo@redhat.com>
7662
7663 * mips-tdep.c (mips_double_register_type): Fix thinko.
7664 (mips_single_register_type): Ditto.
7665 * MAINTAINERS: Add self.
7666
7667 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7668
7669 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7670 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7671 right thing on architectures with different endianness and/or
7672 integer sizes.
7673
7674 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7675
7676 From Christian Limpach <chris@Pin.LU>
7677 * configure.in: Change sed expression which comments out
7678 NATDEPFILES to also comment out continuation lines.
7679 * configure: Regenerate.
7680
7681 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7682
7683 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7684 big patch.
7685
7686 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7687
7688 * sh-tdep.c: Include correct file.
7689
7690 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7691
7692 New support for sh64-elf (sh5) target.
7693
7694 * configure.tgt: For sh64-elf target, default to sh-elf.
7695
7696 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7697 (struct gdbarch_tdep): Add new fields for new registers and ABI
7698 info.
7699
7700 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7701 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7702 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7703 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7704 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7705 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7706 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7707 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7708 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7709 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7710 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7711 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7712 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7713 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7714 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7715 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7716 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7717 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7718 sign_extend, sh64_nofp_frame_init_saved_regs,
7719 sh64_init_extra_frame_info, sh64_get_saved_register,
7720 sh64_extract_struct_value_address, sh64_pop_frame,
7721 sh64_push_arguments, sh64_extract_return_value,
7722 sh64_store_return_value, sh64_show_media_regs,
7723 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7724 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7725 sh_sh64_register_virtual_type,
7726 sh_sh64_register_convert_to_virtual,
7727 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7728 sh64_register_read, sh64_pseudo_register_write,
7729 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7730 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7731 sh64_do_pseudo_register, sh_compact_do_registers_info,
7732 sh64_do_registers_info, sh_gdbarch_init): New functions.
7733
7734 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7735
7736 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7737
7738 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7739
7740 * linespec.c (decode_line_1): Check for a double quote after
7741 a filename correctly.
7742
7743 2002-05-10 Jim Blandy <jimb@redhat.com>
7744
7745 Properly track the size of the current objfile's .debug_line section.
7746 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7747 (DWARF_LINE_SIZE): New macro.
7748 (dwarf2_build_psymtabs_hard): Record the line section's size in
7749 the partial symbol table.
7750 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7751 symbol table.
7752
7753 2002-05-10 Petr Sorfa <petrs@caldera.com>
7754
7755 * ia64-tdep.c: Handle breakpoints on L instruction type
7756 in MLX instruction bundle by moving the breakpoint to
7757 the third slot (X instruction type) as L holds only data.
7758
7759 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7760
7761 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7762 (process_one_symbol): Complain about discarding local symbols
7763 due to a misplaced N_LBRAC entry.
7764
7765 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7766
7767 From Daniel Berlin <dan@cgsoftware.com>
7768 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7769 decrease the depth we are at, in the case of templates.
7770
7771 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * mips-tdep.c (mips_float_register_type): New function.
7774 (mips_double_register_type): New function.
7775 (mips_print_register): Use them.
7776 (do_fp_register_row): Likewise.
7777
7778 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7779
7780 * signals/signals.c (signals): Remove conditional compilation around
7781 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7782 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7783
7784 2002-05-09 Michael Snyder <msnyder@redhat.com>
7785
7786 * remote-rdp.c (remote_rdp_can_run): Remove.
7787
7788 2002-05-09 Tom Tromey <tromey@redhat.com>
7789
7790 * jv-valprint.c (java_val_print): Handle `char' as a special case
7791 of TYPE_CODE_INT.
7792
7793 2002-05-09 Michael Snyder <msnyder@redhat.com>
7794
7795 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7796 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7797 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7798 str r(0123),[sp,#nn].
7799 (arm_skip_prologue): Ditto. Also make disassembly
7800 order-independent by placing it in a loop.
7801
7802 2002-05-06 Michael Snyder <msnyder@redhat.com>
7803
7804 * stabsread.c (read_type): Add recognition for new attribute:
7805 "@V;" means that an array type is actually a vector.
7806 This is analogous to the vector flag that's been added to dwarf2.
7807
7808 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7809
7810 * i386-tdep.h (i386_abi): New enum.
7811 (struct gdbarch_tdep): Replace os_ident member with abi.
7812 (i386_gdbarch_register_os_abi): New prototype.
7813 * i386-tdep.c (i386_abi_names): New array.
7814 (process_note_abi_tag_sections): Removed.
7815 (process_note_sections): New function.
7816 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7817 (struct i386_abi_handler): New struct.
7818 (i386_abi_handler_list): New variable.
7819 (i386_gdbarch_register_os_abi): New function.
7820 (i386_gdbarch_init): Adapt for the changes given above.
7821
7822 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7823
7824 * gregset.h: Say "GNU/Linux".
7825
7826 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7827
7828 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7829 (build_gdbtypes): Build builtin_type_v2_float.
7830 (_initialize_gdbtypes): Register new builtin type.
7831
7832 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7833
7834 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7835 (clear_gdbarch_swap): New function.
7836 (initialize_non_multiarch): Call.
7837 (gdbarch_update_p): Before calling init(), swap out and clear the
7838 existing architecture.
7839 * gdbarch.c: Regenerate.
7840
7841 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7842
7843 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7844 alphanbsd-tdep.c.
7845
7846 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7847
7848 * sh-nbsd-nat.c: Rename to...
7849 * shnbsd-nat.c: ...this.
7850 * sh-nbsd-tdep.c: Rename to...
7851 * shnbsd-tdep.c: ...this.
7852 * sh-nbsd-tdep.h: Rename to...
7853 * shnbsd-tdep.h: ...this.
7854 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7855 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7856
7857 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7858
7859 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7860 concatenation for command help messages.
7861
7862 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7863
7864 * NEWS: Note new sh*-*-netbsdelf* configuration.
7865 * configure.host: Set gdb_host_cpu to sh for all sh*.
7866 (sh*-*-netbsdelf*): New host.
7867 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7868 (sh*-*-netbsdelf*): New target.
7869 * sh-nbsd-nat.c: New file.
7870 * sh-nbsd-tdep.c: New file.
7871 * sh-nbsd-tdep.h: New file.
7872 * config/sh/nbsd.mh: New file.
7873 * config/sh/nbsd.mt: New file.
7874 * config/sh/nm-nbsd.h: New file.
7875 * config/sh/tm-nbsd.h: New file.
7876
7877 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7878
7879 * sh-tdep.c (sh_osabi_names): Declare.
7880 (process_note_abi_tag_sections): New function.
7881 (get_elfosabi): Ditto.
7882 (sh_gdbarch_register_os_abi): Ditto.
7883 (sh_dump_tdep): Ditto.
7884 _initialize_sh_tdep): Use gdbarch_register to register
7885 sh_gdbarch_init and sh_dump_tdep.
7886 * config/sh/tm-sh.h (sh_osabi): Declare.
7887 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7888
7889 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7890
7891 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7892 (thumb_scan_prologue): Ditto.
7893 (arm_find_callers_reg): Ditto.
7894 (arm_frame_chain): Ditto.
7895 (arm_init_extra_frame_info): Ditto.
7896 (arm_frame_saved_pc): Ditto.
7897 (arm_pop_frame): Ditto.
7898 (arm_push_return_address): New function.
7899 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7900 call_dummy_location, call_dummy_breakpoint_offset_p,
7901 call_dummy_breakpoint_offset, call_dummy_p,
7902 call_dummy_stack_adjust_p, call_dummy_words,
7903 sizeof_call_dummy_words, call_dummy_start_offset,
7904 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7905 call_dummy_address, push_return_address and push_dummy_frame for
7906 generic dummy frames.
7907
7908 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7909
7910 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7911 size computation for alloca.
7912 (sh_fp_frame_init_saved_regs): Likewise.
7913
7914 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7915
7916 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7917 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7918 * arm-tdep.c (arm_store_return_value): Use them.
7919 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7920 * remote-rdp.c (remote_rdp_fetch_register): Use
7921 ARM_MAX_REGISTER_RAW_SIZE.
7922 (remote_rdp_store_register): Likewise.
7923
7924 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7925
7926 * dwarf2cfi.c: Code cleanup, removed unused variables,
7927 added default labels to switch {} statements.
7928 * x86-64-tdep.c: Ditto.
7929 * x86-64-linux-nat.c: Ditto.
7930
7931 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7932
7933 * solib.h: Protect against multiple inclusion.
7934
7935 2002-05-06 Jim Blandy <jimb@redhat.com>
7936
7937 Add first preprocessor macro-expansion files.
7938 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7939 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7940 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7941 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7942 (COMMON_OBS): Add macrotab.o, macroexp.o.
7943 (macroexp.o, macrotab.o): New rules.
7944
7945 Separate the job of reading the line number info statement program
7946 header (...expialidocious) out into its own function.
7947 * dwarf2read.c (struct line_head, struct filenames, struct
7948 directories): Replace with...
7949 (struct line_header): New structure, containing the full
7950 contents of the statement program header, including the
7951 include directory and file name tables.
7952 (read_file_scope): If we have line number info, instead of just
7953 calling dwarf_decode_lines to do all the work, call
7954 dwarf_decode_line_header first to get a `struct line_header'
7955 containing the data in the statement program header, and then
7956 pass that to dwarf_decode_lines, which will pick up where that
7957 left off. Be sure to clean up the `struct line_header' object.
7958 (dwarf_decode_line_header, free_line_header, add_include_dir,
7959 add_file_name): New functions.
7960 (dwarf_decode_lines): Move all the code to read the statement
7961 program header into dwarf_decode_line_header. Take the line
7962 header it built as the first argument, instead of the offset to
7963 the compilation unit's line number info. Use the new `struct
7964 line_header' type instead of the old structures. No need to do
7965 cleanups here now, since we don't allocate anything.
7966 (dwarf2_statement_list_fits_in_line_number_section,
7967 dwarf2_line_header_too_long): New complaints.
7968
7969 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7970
7971 * gdbtypes.c (init_vector_type): New function.
7972 (build_builtin_type_vec128): Simplify the representation of SIMD
7973 registers.
7974 (build_gdbtypes): Initialize new builtin vector types.
7975 (_initialize_gdbtypes): Register new vector types with gdbarch.
7976 (builtin_type_v4_float, builtin_type_v4_int32,
7977 builtin_type_v8_int16, builtin_type_v16_int8,
7978 builtin_type_v2_int32, builtin_type_v4_int16,
7979 builtin_type_v8_int8): New (renamed) SIMD types.
7980
7981 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7982
7983 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7984 (i387_fill_fxsave): Likewise.
7985
7986 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7987
7988 * alpha-tdep.c (alpha_extract_return_value): Don't use
7989 non-constant array size in prototype.
7990
7991 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7992
7993 From Brian Taylor <briant at model dot com>:
7994 * ui-out.c (ui_out_field_core_addr): Use the function
7995 longest_local_hex_string_custom'to format addresses > 32 bits
7996 wide.
7997
7998 * ui-out.c (ui_out_field_core_addr): Update comment.
7999
8000 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8001
8002 * stack.c (select_and_print_frame): Make static. Delete the
8003 parameter `level'.
8004 (func_command): Update call.
8005 (select_frame_command): Delete code computing the frame level.
8006 * frame.h (select_and_print_frame): Delete declaration.
8007
8008 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8009
8010 * sparc-tdep.c (sparc_get_saved_register): Comment why
8011 get_prev_frame call is safe.
8012
8013 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8014
8015 * frame.h (select_frame): Delete level parameter.
8016 * stack.c (select_frame): Update. Use frame_relative_level to
8017 obtain the frame's level.
8018 (select_and_print_frame): Update call.
8019 (select_frame_command): Ditto.
8020 (up_silently_base): Ditto.
8021 (down_silently_base): Ditto.
8022 * ocd.c (ocd_start_remote): Ditto.
8023 * remote-rdp.c (remote_rdp_open): Ditto.
8024 * remote-mips.c (mips_initialize): Ditto.
8025 (common_open): Ditto.
8026 * remote-e7000.c (e7000_start_remote): Ditto.
8027 * m3-nat.c (select_thread): Ditto.
8028 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8029 (child_get_current_exception_event): Ditto.
8030 * varobj.c (varobj_create): Ditto.
8031 (varobj_update): Ditto.
8032 (c_value_of_root): Ditto.
8033 * tracepoint.c (finish_tfind_command): Ditto.
8034 * corelow.c (core_open): Ditto.
8035 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8036 * thread.c (info_threads_command): Ditto.
8037 (switch_to_thread): Ditto.
8038 * infrun.c (normal_stop): Ditto.
8039 (restore_selected_frame): Ditto.
8040 (restore_inferior_status): Ditto.
8041 * breakpoint.c (insert_breakpoints): Ditto.
8042 (watchpoint_check): Ditto.
8043 (bpstat_stop_status): Ditto.
8044 (do_enable_breakpoint): Ditto.
8045 * blockframe.c (flush_cached_frames): Ditto.
8046 (reinit_frame_cache): Ditto.
8047
8048 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8049
8050 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8051 maintainer.
8052
8053 2002-05-04 Jim Blandy <jimb@redhat.com>
8054
8055 * gdbtypes.c (replace_type): Doc fix.
8056
8057 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8058
8059 * valprint.c (strcat_longest): Delete commented out function.
8060 Update copyright.
8061
8062 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8063
8064 * MAINTAINERS: Mark a29k as deleted.
8065 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8066 Move new configurations to the top.
8067 * configure.tgt: Remove a29k.
8068 * config/a29k/tm-vx29k.h: Delete.
8069 * config/a29k/vx29k.mt: Delete.
8070 * config/a29k/tm-a29k.h: Delete.
8071 * config/a29k/a29k-udi.mt: Delete.
8072 * config/a29k/a29k.mt: Delete.
8073 * a29k-tdep.c: Delete.
8074 * remote-udi.c: Delete.
8075 * remote-mm.c: Delete.
8076 * remote-eb.c: Delete.
8077 * remote-adapt.c: Delete.
8078 * Makefile.in: Remove obsolete code.
8079 * config/s390/s390x.mt: Ditto.
8080 * config/s390/s390.mt: Ditto.
8081 * config/sparc/sparclynx.mh: Ditto.
8082 * config/sparc/linux.mh: Ditto.
8083 * config/pa/hppaosf.mh: Ditto.
8084 * config/pa/hppabsd.mh: Ditto.
8085 * config/ns32k/nbsd.mt: Ditto.
8086 * config/mips/vr5000.mt: Ditto.
8087 * config/m68k/sun3os4.mh: Ditto.
8088 * config/m68k/nbsd.mt: Ditto.
8089 * config/m68k/m68klynx.mh: Ditto.
8090 * config/m32r/m32r.mt: Ditto.
8091 * config/i386/x86-64linux.mt: Ditto.
8092 * config/i386/nbsdelf.mt: Ditto.
8093 * config/i386/nbsd.mt: Ditto.
8094 * config/i386/i386lynx.mh: Ditto.
8095
8096 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8097
8098 * target.c (debug_print_register): New function. Handle oversize
8099 registers.
8100 (debug_to_fetch_registers): Call.
8101 (debug_to_store_registers): Call.
8102
8103 2002-05-03 Jim Blandy <jimb@redhat.com>
8104
8105 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8106 (read_type): Doc fix.
8107 * gdbtypes.c (replace_type): Doc fix.
8108
8109 * stabsread.c (multiply_defined_struct): New complaint.
8110 (read_struct_type): If the type we were passed isn't empty, or
8111 incomplete, don't read the new struct type into it; complain,
8112 and return the original type unchanged. Take a new `type_code'
8113 argument, which is the type code for the new type.
8114 (read_type): Rather than storing the type's type code here, pass
8115 it as an argument to read_struct_type, and let that take care of
8116 storing it. That way, we don't overwrite the original type code,
8117 so read_struct_type can use it to decide whether we're overwriting
8118 something we shouldn't.
8119 (complain_about_struct_wipeout): New function.
8120
8121 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8122
8123 * gdbarch.sh: Assert that gdbarch is non-NULL.
8124 * gdbarch.c: Regenerate.
8125
8126 2002-05-03 Jason Merrill <jason@redhat.com>
8127
8128 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8129 and return NULL.
8130
8131 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8132
8133 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8134 (x86_64_dwarf2gdb_regno_map_length),
8135 (x86_64_dwarf2_reg_to_regnum): Added.
8136 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8137 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8138 (_initialize_x86_64_tdep): Synced with the change above.
8139 (x86_64_skip_prologue): Reformulated message.
8140
8141 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8142
8143 * f-exp.y: Also use new prev_lexptr variable
8144 to improve error reporting. Based on Michael Snyder
8145 2002-04-24 dated patch to c-exp.y.
8146 * jv-exp.y: Likewise.
8147 * m2-exp.y: Likewise.
8148
8149 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8150
8151 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8152 we are dealing with vectors.
8153
8154 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8155
8156 * config/m68k/tm-nbsd.h: Obvious fix,
8157 correct machine name.
8158
8159 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8160
8161 * p-typeprint.c (pascal_type_print_base): Add support
8162 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8163
8164 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8165
8166 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8167 for fondamental pascal 'char' type.
8168
8169 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8170
8171 * p-lang.h (is_pascal_string_type): Declaration changed,
8172 new sixth argument of type char ** added.
8173 * p-lang.c (is_pascal_string_type): Implementation
8174 changed. Args length_pos, length_size, string_pos, char_size
8175 can now be NULL. New argument arrayname set to the field
8176 name of the char array. Return value set to char array
8177 field index plus one.
8178 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8179 is_pascal_string_type function.
8180
8181 2002-05-02 Andrew Cagney <cagney@redhat.com>
8182
8183 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8184 <cagney@redhat.com> change.
8185 * gdbarch.c: Regenerate.
8186
8187 2002-05-02 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8190 before probing for a new one. Detect errorenous gdbarch_init
8191 functions.
8192 * gdbarch.c: Regenerate.
8193
8194 2002-05-01 Andrew Cagney <cagney@redhat.com>
8195
8196 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8197 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8198 * config/v850/tm-v850.h: Ditto. Update copyright.
8199
8200 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8201
8202 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8203 current_gdbarch.
8204
8205 2002-04-30 Michael Snyder <msnyder@redhat.com>
8206
8207 * arm-tdep.c: Whitespace clean-ups.
8208 (arm_skip_prologue): Fix thinko; two lines
8209 should have been removed as part of 4/24 change.
8210
8211 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8212
8213 * rs6000-tdep.c: Added comment describing how fpscr register
8214 numbers were chosen.
8215
8216 2002-04-30 Michael Snyder <msnyder@redhat.com>
8217
8218 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8219
8220 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8221
8222 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8223 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8224 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8225
8226 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8227
8228 From Louis Hamilton <hamilton@redhat.com>:
8229 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8230 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8231 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8232 not bfd-private xcoff data, to determine wordsize.
8233 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8234
8235 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8236
8237 GDB 5.2 released from 5.2 branch.
8238
8239 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8240
8241 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8242 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8243 (x86_64_register_info_table): Added comments with register numbers.
8244
8245 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8246
8247 * rs6000-tdep.c (rs6000_extract_return_value,
8248 rs6000_store_return_value): Handle returning vectors.
8249 (rs6000_gdbarch_init): Use
8250 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8251 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8252 New function.
8253 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8254 vectors.
8255 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8256 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8257
8258 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8259
8260 * hpread.c (hpread_psymtab_to_symtab_1,
8261 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8262 with fprintf_unfiltered (gdb_stderr,...).
8263
8264 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8265
8266 * remote-array.c (printf_monitor, write_monitor,
8267 array_insert_breakpoint, array_remove_breakpoint ):
8268 Replace fprintf (stderr,...
8269 with fprintf_unfiltered (gdb_stderr,....
8270 * remote-es.c: Likewise.
8271 * remote-os9k.c: Likewise.
8272 * remote-st.c: Likewise.
8273
8274 2002-04-28 Andreas Schwab <schwab@suse.de>
8275
8276 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8277 linux-proc.o and gcore.o.
8278
8279 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8280
8281 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8282 code without frame pointers.
8283
8284 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8285
8286 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8287 ON_STACK is needed.
8288
8289 2002-04-26 Ben Elliston <bje@redhat.com>
8290
8291 * target.c (do_xfer_memory): Correct reference to the new option
8292 "trust-readonly-sections".
8293
8294 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8295
8296 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8297 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8298 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8299 vectors.
8300 (read_array_type): Record the fact that this array type is really a
8301 vector (i.e. are passed in by value).
8302
8303 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8304
8305 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8306 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8307 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8308 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8309 * alpha-linux-tdep.c: Include frame.h.
8310 (alpha_linux_sigcontext_addr): New function.
8311 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8312 alpha_linux_sigcontext_addr.
8313 * alpha-osf1-tdep.c: Include gdbcore.h.
8314 (alpha_osf1_sigcontext_addr): New function.
8315 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8316 alpha_osf1_sigcontext_addr.
8317 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8318 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8319
8320 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8321
8322 * stack.c (selected_frame_level):
8323 (select_frame): Do not set selected_frame_level.
8324 * frame.h (selected_frame_level): Delete declaration.
8325
8326 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8327
8328 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8329 convert_from_func_ptr-addr when AIX / PowerOpen.
8330
8331 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8332
8333 * valops.c (hand_function_call): Call
8334 generic_save_call_dummy_addr.
8335 * frame.h (generic_save_call_dummy_addr): Declare.
8336 * blockframe.c (struct dummy_frame): Add fields call_lo and
8337 call_hi.
8338 (generic_find_dummy_frame): Check for PC in range call_lo to
8339 call_hi instead of entry_point_address.
8340 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8341 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8342 (generic_save_call_dummy_addr): New function.
8343
8344 2002-04-24 David S. Miller <davem@redhat.com>
8345
8346 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8347 sparc_skip_prologue.
8348 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8349 information to find prologue when possible.
8350 (sparc_prologue_frameless_p): Call examine_prologue directly.
8351 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8352 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8353 second argument.
8354 (SKIP_PROLOGUE): Likewise.
8355
8356 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8357
8358 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8359 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8360 indicate that the condition it was testing is always true.
8361 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8362 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8363 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8364
8365 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8366
8367 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8368 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8369 tdep->jb_pc and tdep->jb_elt_size.
8370 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8371 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8372 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8373 * alpha-nat.c (get_longjmp_target): Remove.
8374 (JB_ELEMENT_SIZE): Ditto.
8375 (JB_PC): Ditto.
8376 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8377 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8378 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8379 to alpha_get_longjmp_target.
8380 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8381 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8382 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8383
8384 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8385
8386 * README: Update to GDB 5.2.
8387
8388 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8389
8390 * gdbarch.sh (LC_ALL): Set to `c'.
8391
8392 2002-04-25 Theodore A. Roth <troth@verinet.com>
8393
8394 * avr-tdep.c: Ran through gdb_indent.sh.
8395
8396 2002-04-25 Theodore A. Roth <troth@verinet.com>
8397
8398 * MAINTAINERS: Add myself as AVR maintainer.
8399 * NEWS: Note new target avr.
8400
8401 2002-04-25 Theodore A. Roth <troth@verinet.com>
8402
8403 * Makefile.in: Add support for AVR target.
8404 * configure.tgt: Add support for AVR target.
8405 * avr-tdep.c: New file
8406 * config/avr/avr.mt: New file.
8407
8408 2002-04-25 Theodore A. Roth <troth@verinet.com>
8409
8410 * MAINTAINERS: Add myself to write-after-approval.
8411
8412 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8413
8414 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8415 with fprintf_unfiltered (gdb_stderr,....
8416
8417 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8418
8419 Fix PR gdb/508.
8420 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8421
8422 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8423
8424 * p-exp.y: Also use new prev_lexptr variable
8425 to improve error reporting. Based on Michael Snyder
8426 2002-04-24 dated patch to c-exp.y.
8427
8428 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8429
8430 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8431 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8432 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8433 to 0.
8434 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8435 and struct value.
8436 (FUNCTION_START_OFFSET): Remove.
8437 (BREAKPOINT): Ditto.
8438
8439 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8440
8441 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8442 * NEWS: Ditto.
8443
8444 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8445
8446 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8447 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8448 alpha_linux_pc_in_sigtramp.
8449 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8450 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8451 alpha_osf1_pc_in_sigtramp.
8452 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8453 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8454 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8455 alphafbsd_pc_in_sigtramp.
8456 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8457 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8458 alphanbsd_pc_in_sigtramp.
8459 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8460 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8461
8462 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8463
8464 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8465
8466 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8467
8468 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8469 alphanbsd-tdep.c.
8470 (alphanbsd-nat.o): New dependency list.
8471 (alphanbsd-tdep.o): Ditto.
8472 * NEWS: Note new native NetBSD/alpha configuration.
8473 * alphanbsd-nat.c: New file.
8474 * alphanbsd-tdep.c: Ditto.
8475 * configure.host (alpha*-*-netbsd*): New host.
8476 * configure.tgt (alpha*-*-netbsd*): New target.
8477 * config/alpha/nbsd.mh: New file.
8478 * config/alpha/nbsd.mt: Ditto.
8479 * config/alpha/nm-nbsd.h: Ditto.
8480 * config/alpha/tm-nbsd.h: Ditto.
8481
8482 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8483
8484 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8485 (alpha-osf1-tdep.o): New dependency list.
8486 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8487 and skip_sigtramp_frame members.
8488 * alpha-linux-tdep.c: Include gdbcore.h.
8489 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8490 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8491 * alpha-osf1-tdep.c: New file.
8492 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8493 alpha-osf1-dep.c.
8494 (alpha_frame_past_sigtramp_frame): New function.
8495 (alpha_dynamic_sigtramp_offset): Ditto.
8496 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8497 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8498 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8499 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8500 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8501 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8502 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8503 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8504 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8505 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8506 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8507 to find_solib_trampoline_target.
8508 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8509 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8510 (SKIP_TRAMPOLINE_CODE): Remove.
8511 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8512 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8513 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8514 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8515 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8516 (PROC_SIGTRAMP_MAGIC): Ditto.
8517 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8518 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8519 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8520 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8521 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8522
8523 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8524
8525 * NEWS: Note that Alpha targets are now multi-arch.
8526
8527 2002-04-24 Michael Snyder <msnyder@redhat.com>
8528
8529 * parser-defs.h (prev_lexptr): New external variable.
8530 * parse.c (parse_exp_1): Set prev_lexptr to null before
8531 calling the language-specific parser.
8532 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8533 (yyerror): Use prev_lexptr in error reporting.
8534
8535 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8536
8537 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8538 * gregset.h: If FILL_FPXREGSET is defined, provide
8539 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8540 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8541 is defined, call fill_fpxregset.
8542
8543 2002-04-24 Roland McGrath <roland@frob.com>
8544
8545 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8546 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8547 (supply_gregset, supply_fpregset): New functions.
8548
8549 * gnu-nat.c (gnu_find_memory_regions): New function.
8550 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8551 (gnu_xfer_memory): Add a cast.
8552
8553 2002-04-24 Michael Snyder <msnyder@redhat.com>
8554
8555 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8556 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8557 of argument regs ("str r(0123), [r11, #-nn"]).
8558 (arm_skip_prologue): Better handling for frameless functions.
8559 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8560 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8561
8562 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8563
8564 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8565 NUM_PSEUDO_REGS can be used.
8566
8567 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8568
8569 * arch-utils.h: Update copyright.
8570
8571 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8572 * gdbarch.h, gdbarch.c: Re-generate.
8573
8574 * inferior.h (IN_SIGTRAMP): Delete definition.
8575 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8576 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8577
8578 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8579 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8580 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8581 (find_proc_framesize): Ditto.
8582 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8583 (alpha_init_extra_frame_info): Ditto.
8584 * infrun.c (handle_inferior_event): Ditto.
8585 (handle_inferior_event): Ditto.
8586 (check_sigtramp2): Ditto.
8587 * blockframe.c (create_new_frame): Ditto.
8588 (get_prev_frame): Ditto.
8589 * ppc-linux-tdep.c: Update comments.
8590 * i386-linux-tdep.c: Update comments.
8591 * breakpoint.c (bpstat_what): Update comment.
8592
8593 2002-04-24 David S. Miller <davem@redhat.com>
8594
8595 * i960-tdep.c (register_in_window_p): New function.
8596 (i960_find_saved_register): Use it instead of
8597 REGISTER_IN_WINDOW_P.
8598 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8599
8600 * symtab.h (find_stab_function_addr): Kill extern.
8601 * minsyms.c (find_stab_function_addr): Remove from here...
8602 * dbxread.c: ... to here, and mark it static.
8603
8604 2002-04-20 David S. Miller <davem@redhat.com>
8605
8606 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8607 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8608
8609 2002-04-21 David S. Miller <davem@redhat.com>
8610
8611 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8612 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8613 (vx_write_register): Likewise.
8614
8615 2002-04-23 J. Brobecker <brobecker@gnat.com>
8616
8617 * source.c (is_regular_file): New function.
8618 (openp): Check wether file to open is a regular file
8619 to avoid opening directories.
8620
8621 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8622
8623 * findvar.c (extract_signed_integer): Cast printf argument
8624 to suppress format warning.
8625 (extract_unsigned_integer): Likewise.
8626 * infcmd.c (registers_info): Likewise.
8627 * top.c (get_prompt_1): Likewise.
8628 * valops.c (value_assign): Likewise.
8629 * valprint.c (print_decimal): Likewise.
8630
8631 2002-04-22 H.J. Lu (hjl@gnu.org)
8632
8633 * c-exp.y (typebase): Support
8634
8635 [long|long long|short] [signed|unsigned] [int|]
8636
8637 and
8638
8639 signed [long|long long|short] int
8640
8641 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8644 and vax-tdep.h.
8645 * vax-tdep.h: New file.
8646 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8647 Make several routines static.
8648 (vax_get_saved_register): New function.
8649 (vax_gdbarch_init): New function.
8650 (_initialize_vax_tdep): Register vax_gdbarch_init.
8651 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8652 Remove macros now under the control of gdbarch.
8653
8654 2002-04-22 Michael Snyder <msnyder@redhat.com>
8655
8656 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8657 Some whitespace and coding standards tweaks.
8658
8659 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8660
8661 * vax-tdep.c: Include regcache.h.
8662 (vax_call_dummy_words): New.
8663 (sizeof_vax_call_dummy_words): New.
8664 (vax_fix_call_dummy): New function.
8665 (vax_saved_pc_after_call): Ditto.
8666 * config/vax/tm-vax.h: Don't include regcache.h.
8667 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8668 (CALL_DUMMY): Remove.
8669 (CALL_DUMMY_WORDS): Define.
8670 (SIZEOF_CALL_DUMMY_WORDS): Define.
8671 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8672
8673 2002-04-18 Michael Snyder <msnyder@redhat.com>
8674
8675 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8676
8677 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8678
8679 * vax-tdep.c (vax_frame_chain): New function.
8680 (vax_push_dummy_frame): Ditto.
8681 (vax_pop_frame): Ditto.
8682 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8683 (FRAMELESS_FUNCTION_INVOCATION): Use
8684 generic_frameless_function_invocation_not.
8685 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8686 (POP_FRAME): Use vax_pop_frame.
8687
8688 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8689
8690 * vax-tdep.c (vax_store_struct_return): New function.
8691 (vax_extract_return_value): Ditto.
8692 (vax_store_return_value): Ditto.
8693 (vax_extract_struct_value_address): Ditto.
8694 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8695 vax_store_struct_return.
8696 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8697 (STORE_RETURN_VALUE): Use vax_store_return_value.
8698 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8699
8700 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8701
8702 * vax-tdep.c (vax_frame_saved_pc): New function.
8703 (vax_frame_args_address_correct): Ditto.
8704 (vax_frame_args_address): Ditto.
8705 (vax_frame_locals_address): Ditto.
8706 (vax_frame_num_args): Move code to be in proximity to
8707 other frame-related functions.
8708 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8709 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8710 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8711 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8712 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8713
8714 2002-04-22 H.J. Lu (hjl@gnu.org)
8715
8716 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8717 includedir.
8718
8719 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8720
8721 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8722 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8723 (FRAME_INIT_SAVED_REGS): New macro.
8724
8725 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8726
8727 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8728
8729 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8730
8731 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8732 where needed.
8733 (fetch_osf_core_registers): Likewise.
8734 (supply_gregset): Likewise.
8735
8736 2002-04-22 J. Brobecker <brobecker@gnat.com>
8737
8738 * symfile.h (get_section_index): Define.
8739 * symfile.c (get_section_index): New function.
8740 * mdebugread.c (SC_IS_SBSS): New macro.
8741 (SC_IS_BSS): Return true for the scBss storage class only, as
8742 the scSBss storage class refers to the .sbss section.
8743 (parse_partial_symbols): Discard the symbols which associated
8744 section does not exist.
8745 Make sure to use the .sbss section index for symbols which
8746 storage class is scBss, rather than using the .bss section index.
8747
8748 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8749
8750 * vax-tdep.c: Update copyright years.
8751 (vax_register_name): New function.
8752 (vax_register_byte): Ditto.
8753 (vax_register_raw_size): Ditto.
8754 (vax_register_virtual_size): Ditto.
8755 (vax_register_virtual_type): Ditto.
8756 * config/vax/tm-vax.h: Update copyright years.
8757 (REGISTER_NAMES): Remove.
8758 (REGISTER_NAME): Define.
8759 (REGISTER_BYTE): Use vax_register_byte.
8760 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8761 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8762 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8763
8764 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8765
8766 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8767 declaration
8768 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8769
8770 2002-04-21 David S. Miller <davem@redhat.com>
8771
8772 * arch-utils.c (generic_prologue_frameless_p): Kill
8773 SKIP_PROLOGUE_FRAMELESS_P code.
8774 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8775 references.
8776 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8777 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8778 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8779 references.
8780 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8781 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8782 (sparc_gdbarch_init): Pass it to
8783 set_gdbarch_prologue_frameless_p.
8784
8785 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8786
8787 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8788 (alphabsd-nat.o): New dependency list.
8789
8790 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8791
8792 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8793 alphafbsd-tdep.c.
8794 (alpha-linux-tdep.o): New dependency list.
8795 (alphafbsd-tdep.o): Likewise.
8796
8797 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8798
8799 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8800 to here...
8801 * alpha-tdep.c: ...from here.
8802 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8803
8804 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8805
8806 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8807 prototype from here...
8808 * alpha-tdep.h: ...to here.
8809
8810 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8811
8812 * frame.h (selected_frame_level): Document as deprecated.
8813 (frame_relative_level): Declare.
8814 * stack.c (frame_relative_level): New function.
8815 (selected_frame_level): Document as deprecated.
8816 (select_frame): Do not set the selected_frame_level.
8817
8818 * stack.c (frame_info, record_selected_frame): Update.
8819 (frame_command, current_frame_command): Update.
8820 (up_silently_base, up_command, down_silently_base): Update.
8821 (down_command): Update.
8822 * inflow.c (kill_command): Update.
8823 * tracepoint.c (finish_tfind_command): Update.
8824 * corelow.c (core_open): Update.
8825 * thread.c (info_threads_command): Update.
8826 (do_captured_thread_select): Update.
8827 * infcmd.c (finish_command): Update.
8828 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8829
8830 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8831
8832 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8833
8834 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8835
8836 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8837 type const.
8838
8839 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8840
8841 * alphafbsd-tdep.c: Update copyright years. Include
8842 alpha-tdep.h.
8843 (alphafbsd_use_struct_convention): Make static.
8844 (alphafbsd_init_abi): New function.
8845 (_initialize_alphafbsd_tdep): New function.
8846 * config/alpha/tm-fbsd.h: Update copyright years.
8847 (USE_STRUCT_CONVENTION): Remove.
8848
8849 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8850
8851 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8852 an Alpha ABI variant.
8853 (alpha_abi_handler_list): Declare.
8854 (alpha_gdbarch_register_os_abi): New function.
8855 (alpha_gdbarch_init): Give registered ABI variant handlers a
8856 chance to tweak the gdbarch once we have set up defaults.
8857 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8858
8859 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8860
8861 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8862 to standard_coerce_float_to_double.
8863 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8864
8865 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8866
8867 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8868 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8869 from gdbarch_tdep rather than a constant.
8870 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8871 the default text address for all Alpha Unix ABIs.
8872 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8873 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8874
8875 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8876
8877 * alpha-tdep.h: New file. Includes several Alpha target constants
8878 taken from...
8879 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8880 let gdbarch deal with.
8881 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8882 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8883 to dependency list.
8884 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8885 Alpha target register names.
8886 * alphabsd-nat.c: Likewise.
8887 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8888 Alpha target register names. Make serveral routines static.
8889 (alpha_get_saved_register): New function.
8890 (alpha_abi_names): New.
8891 (process_note_abi_tag_sections): New function.
8892 (get_elfosabi): New function.
8893 (alpha_gdbarch_init): New function.
8894 (alpha_dump_tdep): New function.
8895 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8896
8897 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8898
8899 * frame.c (find_saved_register): Delete #ifdef
8900 HAVE_REGISTER_WINDOWS code.
8901 * config/sparc/tm-sparc.h: Update comments.
8902 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8903
8904 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8905
8906 * i960-tdep.c (i960_find_saved_register): New function.
8907 (i960_get_saved_register): New function.
8908 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8909 (i960_get_saved_register): Declare.
8910 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8911
8912 2002-04-20 David S. Miller <davem@redhat.com>
8913
8914 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8915
8916 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8917
8918 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8919 instead of NUM_PSEUDO_REGS.
8920
8921 2002-04-20 David S. Miller <davem@redhat.com>
8922
8923 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8924 GDB_MULTI_ARCH_PARTIAL
8925 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8926 define, let tm-sp64.h do it.
8927
8928 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8929
8930 * frame.c (find_saved_register): Avoid a NULL pointer
8931 dereference and actually walk the frame list.
8932
8933 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8934
8935 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8936 sorted in most most-recent-used order. Document.
8937 * gdbarch.h, gdbarch.c: Regenerate.
8938
8939 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8940
8941 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8942 instead of ->prev.
8943 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8944 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8945 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8946 instead of ->prev.
8947
8948 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8949
8950 Fix PR gdb/471.
8951 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8952 (build_builtin_type_vec128): Ditto.
8953 (append_composite_type_field): Fix calculation of type length in
8954 union case.
8955
8956 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8957
8958 * config/djgpp/README: Update.
8959
8960 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8961 compiler warnings.
8962
8963 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8964
8965 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8966 (alpha_setup_arbitrary_frame): ...to this.
8967 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8968 for alpha_setup_arbitrary_frame.
8969
8970 2002-04-18 Andrew Cagney <cagney@redhat.com>
8971
8972 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8973 * gdbarch.h, gdbarch.c: Regenerate.
8974
8975 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8976 * target.h (memory_breakpoint_from_pc): Update declaration.
8977 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8978
8979 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8980 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8981 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8982 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8983 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8984 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8985 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8986 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8987 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8988 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8989 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8990 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8991
8992 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8993 const pointer.
8994 * monitor.c (monitor_insert_breakpoint): Ditto.
8995 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8996
8997 * config/mcore/tm-mcore.h: Update copyright.
8998 * mem-break.c: Ditto.
8999 * xstormy16-tdep.c: Ditto.
9000
9001 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9002
9003 * p-exp.y: Add precedence rule for '^' token.
9004 This removes the shift/reduce conflicts.
9005 Remove the comment concerning these shift/reduce conflicts.
9006
9007 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9008
9009 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9010 (registers_powerpc_nofp): New register set for processors
9011 without floating point unit.
9012
9013 2002-04-18 David S. Miller <davem@redhat.com>
9014
9015 * MAINTAINERS: Add myself to write-after-approval.
9016
9017 2002-04-17 Michael Snyder <msnyder@redhat.com>
9018
9019 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9020
9021 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9022
9023 * rs6000-tdep.c (frame_initial_stack_address): Use
9024 frame_register_read to read the alloca_reg.
9025
9026 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9027
9028 * frame.c (find_saved_register): Find saved registers in the next
9029 not prev frame.
9030 Fix PR gdb/365.
9031
9032 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9033
9034 * gdbarch.sh (LANG): Set to ``c''.
9035
9036 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9037
9038 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9039
9040 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9041
9042 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9043 Update copyright.
9044
9045 * hpread.c (hpread_get_lntt): Add declaration.
9046 Also fix PR gdb/391.
9047
9048 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9049
9050 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9051 * aclocal.m4, configure: Re-generate.
9052 Fix PR gdb/391.
9053
9054 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9055
9056 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9057 instead of tm_print_insn.
9058
9059 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9062
9063 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9064
9065 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9066 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9067 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9068
9069 2002-04-12 Don Howard <dhoward@redhat.com>
9070
9071 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9072 max_user_call_depth.
9073 (init_cmd_lists): Initialize the new value;
9074 * cli/cli-script.c (execute_user_command): Limit the call depth of
9075 user defined commands. This avoids a core-dump when user commands
9076 are infinitly recursive.
9077
9078 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9079
9080 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9081 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9082 from tdep struct instead of DEFAULT_LR_SAVE.
9083 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9084 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9085 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9086
9087 2002-04-12 Michael Snyder <msnyder@redhat.com>
9088
9089 * Remote.c: Spelling fix.
9090 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9091 If no symbol found for "sbrk", try "_sbrk".
9092 (make_output_phdrs): Use bfd_section_name.
9093 (gcore_copy_callback): Use bfd_section_name.
9094 * eval.c: Indentation fix-ups.
9095 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9096 in case it gets applied to an address that is already
9097 in the instruction space.
9098 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9099 * symfile.c: Fix indentation, long lines.
9100 * source.c: White space fix-up.
9101
9102 2002-04-12 Andrew Cagney <cagney@redhat.com>
9103
9104 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9105 * frame.c (frame_register_read): New function. Return non-zero on
9106 success.
9107 (read_relative_register_raw_bytes_for_frame): Delete.
9108 (read_relative_register_raw_bytes): Delete.
9109 * frame.h (frame_register_read): Declare.
9110 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9111 * sh-tdep.c: Ditto.
9112 * infcmd.c (do_registers_info): Ditto.
9113 * hppa-tdep.c: Ditto.
9114 * rs6000-tdep.c: Ditto.
9115 * h8500-tdep.c: Ditto.
9116 * mips-tdep.c: Ditto.
9117 * h8300-tdep.c: Ditto.
9118 * z8k-tdep.c: Ditto.
9119
9120 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9121
9122 From Jimi X <jimix@watson.ibm.com>:
9123 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9124 64-bit SysV ABI.
9125
9126 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9127
9128 From Jimi X <jimix@watson.ibm.com>:
9129 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9130 bfd info.
9131
9132 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9133
9134 From Jimi X <jimix@watson.ibm.com>:
9135 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9136 register sets for these processor variants.
9137
9138 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9139
9140 * regformats/reg-ppc.dat: Support FPSCR.
9141
9142 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9143
9144 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9145 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9146 Add fpscr as an invalid/unfetchable register.
9147 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9148 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9149 (fill_fpregset): Add support for register fpscr.
9150 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9151 (fill_gregset): Account for the fact that register ``mq'' might
9152 not exist.
9153 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9154 (registers_power): Add fpscr to register set at slot 71.
9155 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9156 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9157
9158 2002-04-11 Michael Snyder <msnyder@redhat.com>
9159
9160 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9161 * configure: Regenerate.
9162 * config.in: Regenerate.
9163 * acconfig.h: Add define for _SYSCALL32.
9164 * core-sol2.c: Remove #define _SYSCALL32.
9165 * solib-legacy.c: Remove #define _SYSCALL32.
9166
9167 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9168
9169 * stack.c (select_frame): Cleanup internal error message, do not
9170 use %p.
9171
9172 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9173
9174 * stack.c (select_frame): Check that selected_frame and the
9175 specified level are as expected.
9176 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9177 Update copyright.
9178 * frame.h (struct frame_info): Add field `level'. Update
9179 copyright.
9180 Work-in-progress PR gdb/464.
9181
9182 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9183
9184 * maint.c (maint_print_section_info): Rename print_section_info.
9185 (print_bfd_section_info, print_objfile_section_info): Update.
9186 * inferior.h (struct gdbarch): Add opaque declaration.
9187 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9188 * gdbarch.h: Regenerate.
9189
9190 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9191
9192 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9193 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9194 (kernel_u_size): Added.
9195 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9196 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9197
9198 2002-04-04 Jim Ingham <jingham@apple.com>
9199
9200 * valarith.c (find_size_for_pointer_math): New function, either returns
9201 the size for a pointer's target, returns 1 for void *, or errors for
9202 incomplete types.
9203 (value_add, value_sub): use find_size_for_pointer_math.
9204
9205 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * linux-low.c (linux_look_up_symbols): New hook.
9208 (linux_target_ops): Add linux_look_up_symbols.
9209 * remote-utils.c (decode_address): New function.
9210 (look_up_one_symbol): New function.
9211 * server.c (handle_query): Call target look_up_symbols hook.
9212 * server.h (look_up_one_symbol): Add prototype.
9213 * target.h (struct target_ops): Add look_up_symbols hook.
9214
9215 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9216
9217 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9218 override FP_REGNUM with frame->fp. Update copyright.
9219 * parse.c (num_std_regs, std_regs): Delete.
9220 (target_map_name_to_register): Do not search std_regs. Update
9221 function description.
9222 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9223 declarations. Update copyright.
9224 Fix PR gdb/251.
9225
9226 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9227
9228 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9229 after the last symbol in a block.
9230
9231 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9232
9233 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9234 is non zero as a found symbol.
9235
9236 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9237
9238 * findvar.c: Include "builtin-regs.h".
9239 (value_of_register): Call value_of_builtin_reg when applicable.
9240 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9241 (target_map_name_to_register): Call
9242 builtin_reg_map_name_to_regnum.
9243 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9244 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9245 (builtin_regs_h): Define.
9246 (builtin-regs.o): New target.
9247 (findvar.o): Add $(builtin_regs_h).
9248 * builtin-regs.c, builtin-regs.h: New files.
9249 * std-regs.c: New file.
9250 Partial fix for PR gdb/251.
9251
9252 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9253
9254 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9255 it's no longer required.
9256
9257 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9258
9259 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9260
9261 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9262
9263 From Jimi X <jimix@watson.ibm.com>:
9264 * rs6000-tdep.c (rs6000_software_single_step): Use
9265 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9266 and size. Use target_insert_breakpoint() and
9267 target_remove_breakpoint() to insert and remove breakpoints
9268 instead of explicit memory reads and writes.
9269
9270 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9271
9272 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9273 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9274 ELF_OBJECT_FORMAT ifdef.
9275
9276 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9277
9278 From Jimi X <jimix@watson.ibm.com>:
9279 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9280
9281 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9282
9283 From Jimi X <jimix@watson.ibm.com>:
9284 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9285 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9286
9287 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9288
9289 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9290 s/asprintf/xasprintf/.
9291 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9292
9293 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9294
9295 I believe Jeff Law denies responsability for this one:
9296 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9297 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9298 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9299 Work-around for PR gdb/366.
9300
9301 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9302
9303 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9304 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9305 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9306
9307 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9308
9309 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9310 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9311 information.
9312
9313 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9314
9315 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9316 maintainer.
9317
9318 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9319
9320 * README (Reporting Bugs in GDB): Document the bug web page as the
9321 prefered way of submitting bugs.
9322 Fix PR gdb/402.
9323
9324 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9325
9326 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9327 -1. Update comment.
9328 * gdbarch.h, gdbarch.c: Re-generate.
9329
9330 2002-04-07 Andreas Schwab <schwab@suse.de>
9331
9332 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9333 buffer to regcache_collect.
9334
9335 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9336
9337 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9338 * gdbarch.c, gdbarch.h: Re-generate.
9339
9340 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9341
9342 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9343 declaration. Fix -Werror.
9344
9345 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9346
9347 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9348 * gdbarch.c: Regenerate.
9349
9350 2002-04-05 Michael Snyder <msnyder@redhat.com>
9351
9352 * breakpoint.c (clear_command): Rewrite middle section to
9353 combine two loops with identical control conditions.
9354 Add a cleanup to eliminate a memory leak.
9355 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9356
9357 2002-04-05 H.J. Lu (hjl@gnu.org)
9358
9359 * solib-svr4.c (bkpt_names): Add "__start".
9360
9361 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9362
9363 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9364 as test for 64 bit target.
9365
9366 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9367
9368 * h8500-tdep.c (h8500_write_fp): Delete function.
9369 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9370 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9371 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9373 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9374 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9375 (s390_write_fp):
9376 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9377 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9378 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9379 (d10v_write_fp): Delete function.
9380 * inferior.h (write_fp, generic_target_write_fp): Delete
9381 declarations.
9382 * regcache.c (generic_target_write_fp): Delete function.
9383 (write_fp): Delete function.
9384 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9385 * gdbarch.h, gdbarch.c: Regenerate.
9386 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9387 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9388 (sparc64_write_fp): Delete declaration.
9389 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9390 (h8500_write_fp): Delete declaration.
9391
9392 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9393
9394 * sparc-tdep.c (sparc64_write_fp): Delete.
9395 (sparc_push_dummy_frame): Replace write_fp call with code to store
9396 the FP directly.
9397 (sparc_gdbarch_init): Do not initialize write_fp.
9398
9399 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9400
9401 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9402 clause.
9403
9404 2002-03-29 Jim Blandy <jimb@redhat.com>
9405
9406 * stack.c (get_selected_block): Add new argument `addr_in_block',
9407 used to return the exact code address we used to select the block,
9408 not just the block.
9409 * blockframe.c (get_frame_block, get_current_block): Same.
9410 * frame.h (get_frame_block, get_current_block,
9411 get_selected_block): Update declarations.
9412 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9413 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9414
9415 2002-04-05 Michael Snyder <msnyder@redhat.com>
9416
9417 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9418 warning message.
9419
9420 2002-04-05 J. Brobecker <brobecker@gnat.com>
9421
9422 * utils.c (xfullpath): New function.
9423 * defs.h (xfullpath): Add declaration.
9424 * source.c (openp): Use xfullpath in place of gdb_realpath to
9425 avoid resolving the basename part of filenames when the
9426 associated file is a symbolic link. This fixes a potential
9427 inconsistency between the filenames known to GDB and the
9428 filenames it prints in the annotations.
9429 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9430 to be able to match a filename with either the real filename, or
9431 the name of any symbolic link to this file.
9432 (lookup_partial_symtab): Ditto.
9433
9434 2002-04-04 Michael Snyder <msnyder@redhat.com>
9435
9436 * breakpoint.c: Add support for hardware breakpoints in overlays.
9437 (overlay_events_enabled): New state variable.
9438 (insert_breakpoints): Use overlay_events_enabled to decide
9439 whether to attempt to set a breakpoint at the overlay load addr.
9440 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9441 (remove_breakpoint): Use overlay_events_enabled to decide
9442 whether breakpoints need to be removed from overlay load addr.
9443 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9444 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9445 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9446 disable_overlay_breakpoints): Update overlay_events_enabled.
9447
9448 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * dwarf2read.c (struct function_range): New.
9451 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9452 (check_cu_functions): New.
9453 (read_file_scope): Initialize global function lists.
9454 Call dwarf_decode_line after processing children.
9455 (read_func_scope): Add to global function list.
9456 (dwarf_decode_lines): Call check_cu_functions everywhere
9457 record_line is called. Call record_line with a linenumber
9458 of 0 to mark sequence ends.
9459
9460 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9461
9462 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9463 change sync with glibc.
9464
9465 2002-04-03 Jim Blandy <jimb@redhat.com>
9466
9467 * configure.in: Call AC_C_INLINE.
9468 * configure: Regenerated.
9469
9470 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9471
9472 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9473 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9474
9475 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9476
9477 * NEWS: Mention gcore support on FreeBSD/i386.
9478
9479 * fbsd-proc.c: New file.
9480 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9481 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9482
9483 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9484 while statement.
9485
9486 2002-03-29 Jim Blandy <jimb@redhat.com>
9487
9488 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9489 unescaped newlines in string literals, but newer ones don't. So
9490 escape them.
9491
9492 2002-03-26 Michael Snyder <msnyder@redhat.com>
9493 Andrew Cagney <cagney@redhat.com>
9494
9495 * cli/cli-dump.c: New file. Dump memory to file,
9496 restore file to memory.
9497 * cli/cli-dump.h: New file.
9498 * Makefile.in: Add rules, dependencies for cli-dump.o.
9499 * NEWS: Mention new commands.
9500
9501 2002-03-28 Michael Snyder <msnyder@redhat.com>
9502
9503 * symfile.c (symbol_file_add): Move test for null symbols to later.
9504
9505 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9506
9507 From veksler at il.ibm.com:
9508 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9509 the xstrduped original path.
9510 Fix PR gdb/417.
9511
9512 2002-03-27 Michael Snyder <msnyder@redhat.com>
9513
9514 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9515 * infcmd.c (_initialize_infcmd): Ditto.
9516 * language.c (_initialize_language): Ditto.
9517 * symfile.c (_initialize_symfile): Ditto.
9518 * top.c (_init_main): Ditto.
9519 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9520
9521 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9522
9523 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9524 vector registers handling.
9525 (skip_prologue): Handle new AltiVec instructions. Fill in new
9526 fields of frame data.
9527 (frame_get_saved_regs): Fill in information for AltiVec registers.
9528
9529 2002-03-27 Jim Blandy <jimb@redhat.com>
9530
9531 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9532 a function; leave this macro here to invoke that function.
9533 (symbol_init_mangled_name): Declaration for that function.
9534 * symtab.c (symbol_init_mangled_name): New function.
9535
9536 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9537
9538 * valarith.c: Replace strerror with safe_strerror.
9539 * tracepoint.c: Ditto.
9540 * lin-lwp.c: Ditto.
9541 * go32-nat.c: Ditto.
9542 * inflow.c: Ditto.
9543 * gnu-nat.c: Ditto.
9544
9545 2002-03-27 Andreas Schwab <schwab@suse.de>
9546
9547 * event-top.c (command_line_handler): Remove useless if.
9548
9549 2002-03-27 Andreas Jaeger <aj@suse.de>
9550
9551 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9552 comment.
9553
9554 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9555
9556 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9557 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9558 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9559 (x86_64_linux_dr_get_status, supply_gregset),
9560 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9561 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9562 (x86_64_register_info_table): Add.
9563 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9564 (x86_64_register_raw_size, x86_64_register_virtual_type),
9565 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9566 general x86_64_register_info_table.
9567 (i386_gdbarch_init): gdbarch_register_bytes is now set
9568 dynamicaly during initialization.
9569 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9570 * gdbserver/linux-x86-64-low.c: Ditto.
9571
9572 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * gdbserver/server.c (main): Call target_signal_to_host_p
9575 and target_signal_to_host on signals received from the remote.
9576 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9577 target_signal_from_host on signals sent to the remote.
9578 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9579 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9580
9581 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9582
9583 * signals/signals.c: Include "server.h" in gdbserver build.
9584 (target_signal_from_name): Don't use STREQ.
9585 (_initialize_signals): Likewise. Don't include function in
9586 gdbserver build.
9587
9588 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * signals.c: Moved to...
9591 * signals/signals.c: Here.
9592 * Makefile (signals.o): Update.
9593
9594 2002-03-26 Jeff Law (law@redhat.com)
9595
9596 * somread.c (som_symtab_read): Remove some commented out code and
9597 updated related comments. Do not set the minimal symbol table to
9598 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9599 in a dynamic executable.
9600 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9601 where we are unable to find the minimal symbol for the given
9602 PC value.
9603
9604 2002-03-25 Jeff Law (law@redhat.com)
9605
9606 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9607
9608 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9609
9610 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9611
9612 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9613
9614 * command.h: Update copyright.
9615 (struct cmd_list_element): Replace definition with opaque
9616 declaration.
9617 (enum cmd_types): Document that it will eventually be moved to
9618 cli/cli-decode.h
9619 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9620 (MALLOCED_REPLACEMENT): Delete macro.
9621 * Makefile.in (cli_decode_h): Add $(command_h).
9622 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9623 * top.c: Include "cli/cli-decode.h".
9624 * completer.c: Include "cli/cli-decode.h".
9625 * maint.c: Include "cli/cli-decode.h".
9626 * cli/cli-decode.h: Include "command.h".
9627 (enum command_class): Delete.
9628 (enum cmd_types): Comment out.
9629 (enum cmd_auto_boolean): Delete.
9630 (enum var_types): Delete.
9631
9632 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9633
9634 * cli/cli-decode.c: Include "gdb_assert.h".
9635 (add_set_or_show_cmd): New static function.
9636 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9637 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9638 all fields, such as func, from the set command.
9639
9640 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9641
9642 * MAINTAINERS (sh-elf): Change warning flag to -w.
9643
9644 2002-03-23 Andrew Cagney <cagney@redhat.com>
9645
9646 * defs.h (error): Add printf format attribute.
9647 * thread-db.c (thread_from_lwp): Fix error format string.
9648 * stack.c (parse_frame_specification): Ditto.
9649 * cli/cli-decode.c (undef_cmd_error): Ditto.
9650 * scm-lang.c (scm_lookup_name): Ditto.
9651 * tracepoint.c (trace_error): Ditto.
9652 * remote-utils.c (usage): Ditto.
9653 * remote.c (compare_sections_command): Ditto.
9654 Fix PR gdb/328.
9655
9656 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9657
9658 * gdbtypes.c (append_composite_type_field): New function.
9659 (init_composite_type): New function.
9660 * gdbtypes.h (append_composite_type_field): Declare.
9661 (init_composite_type): Ditto.
9662
9663 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9664
9665 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9666 function.
9667 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9668 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9669 structure returning convention for SYSV ABI case, but not
9670 for GNU/Linux, FreeBSD, or NetBSD.
9671
9672 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9673
9674 * symtab.h (lookup_block_symbol): Add mangled_name argument
9675 to prototype.
9676
9677 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9678 with new mangled_name argument.
9679 * linespec.c (decode_line_1): Likewise.
9680 * valops (value_of_this): Likewise.
9681 * symtab.c (lookup_transparent_type): Likewise.
9682 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9683 (lookup_symbol): If we are given a mangled name, pass it down
9684 to lookup_symbol_aux.
9685 (lookup_block_symbol): If we are given a mangled name to check
9686 against, only return symbols which match it.
9687
9688 2002-03-22 Christopher Faylor <cgf@redhat.com>
9689
9690 * win32-nat.c (child_create_inferior): Check for proper shell to use
9691 here, in case the user changes it on the fly.
9692 (_initialize_inftarg): Remove shell path considerations.
9693
9694 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9695
9696 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9697 for gdbarch_max_register_raw_size and max_register_virtual_size.
9698 Adjust copyright year.
9699
9700 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9701
9702 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9703 in a function to cover the entire beginning of the function
9704 as well if it does not already.
9705
9706 2002-03-21 Tom Rix <trix@redhat.com>
9707
9708 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9709 (rs6000_ptrace64): Renamed from ptrace64.
9710
9711 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9712
9713 * gdbserver/remote-utils.c (remote_open): Don't call
9714 getprotobyname, we're all using TCP here so just use
9715 IPPROTO_TCP.
9716 * gdbserver/gdbreplay.c (remote_open): Ditto.
9717
9718 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9719
9720 * regcache.c (_initialize_regcache): No need to call
9721 build_regcache() at this time; it gets called whenever
9722 the gdbarch changes.
9723
9724 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9725
9726 * sparc-nat.c: Include sys/param.h where possible.
9727
9728 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9729
9730 Fix PR gdb/422.
9731 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9732 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9733 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9734 complex types.
9735 * stabsread.c (rs6000_builtin_type): Likewise.
9736 (read_sun_floating_type): Likewise.
9737
9738 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9739
9740 * stabsread.c (read_member_functions): Remove skip code for duplicate
9741 constructor/destructor methods. Use standard parsing for these
9742 methods and just do not chain them to the list of methods after
9743 parsing.
9744
9745 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9746
9747 * coffread.c: Remove redundant static declarations. Replace
9748 occurrences of `PTR' with `void *'.
9749 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9750 * top.h (quit_cover): Likewise.
9751 * defs.h (catch_errors): Likewise.
9752
9753 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9754
9755 * defs.h (XMALLOC): Define.
9756 * gdb-events.sh (XMALLOC): Delete macro.
9757 * gdb-events.c, gdb-events.h: Regenerate.
9758 * gdbarch.sh (XMALLOC): Delete macro.
9759 * gdbarch.c: Regenerate.
9760 * serial.c (XMALLOC): Delete macro.
9761 * ui-file.c (XMALLOC): Ditto.
9762 * ser-unix.h (XMALLOC): Ditto.
9763 * sh-tdep.c (XMALLOC): Ditto.
9764 * ui-out.c (XMALLOC): Ditto.
9765 * utils.c (XMALLOC): Ditto.
9766 * i386-tdep.c (XMALLOC): Ditto.
9767 * gdb-events.c (XMALLOC): Ditto.
9768 * d10v-tdep.c (XMALLOC): Ditto.
9769 * cli-out.c (XMALLOC): Ditto.
9770
9771 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9772 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9773 * ui-file.c, ui-out.c: Ditto.
9774
9775 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9776
9777 * command.h (struct cmd_list_element): Add field context.
9778 (set_cmd_context, get_cmd_context): Declare.
9779 * cli/cli-decode.h: Ditto.
9780 * cli/cli-decode.c (get_cmd_context): New function.
9781 (set_cmd_context): New function.
9782 (add_cmd): Initialize context.
9783 Part of fixing PR gdb/145 and PR gdb/146.
9784
9785 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9786
9787 * cli/cli-decode.c (cmd_type): New function.
9788 * command.h (cmd_type): Declare.
9789 * infrun.c (set_schedlock_func): Call function cmd_type.
9790 * kod.c (kod_set_os): Call cmd_type.
9791 * cris-tdep.c (cris_version_update): Use function cmd_type.
9792 (cris_mode_update, cris_abi_update): Ditto.
9793
9794 * command.h: (execute_cmd_post_hook): Declare.
9795 (execute_cmd_pre_hook): Declare.
9796 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9797 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9798 functions. Execute pre/post hook while ensuring that afterwords
9799 hook_in is cleared.
9800 * top.c (execute_command): Use execute_cmd_post_hook, and
9801 execute_cmd_pre_hook to execute pre/post commands.
9802 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9803 hook_stop_stub.
9804 (hook_stop_stub): Call execute_cmd_pre_hook.
9805
9806 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9807
9808 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9809 set'' and this leads to a core dump. Move xstrdup of
9810 operating_system to after check that it is not NULL.
9811
9812 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9813
9814 * kod.c (kod_set_os): Remove unnecessary check that
9815 ``command->type'' is set_cmd.
9816
9817 * valprint.c (set_input_radix): Use input_radix.
9818 (set_output_radix): Use output_radix.
9819 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9820 isn't reverted.
9821
9822 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9823
9824 * value.h (struct value): Delete field ``substring_addr''. Change
9825 aligner fields to force_doublest_align, force_longest_align,
9826 force_core_addr_align and force_pointer_aligh.
9827
9828 * value.h (struct value): Fix typo in above change.
9829
9830 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9831
9832 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9833 to fix internal_error from ``maintenance print architecture''.
9834
9835 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9836
9837 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9838 for gcc versions after gcc-2.8.1.
9839
9840 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9841
9842 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9843 for method resolution. Restore adjustment of ``this'' pointer after
9844 calling value_struct_elt, which was accidentally removed during the
9845 HP merge.
9846
9847 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9848
9849 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9850 value_of_register.
9851 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9852 get_saved_register.
9853 * value.h (value_of_register): Update.
9854
9855 2002-03-14 Richard Henderson <rth@redhat.com>
9856
9857 * configure.in: Detect declaration for canonicalize_file_name.
9858 * utils.c (canonicalize_file_name): Declare, if needed.
9859 (gdb_realpath): Prefer realpath if available and usable.
9860 * config.in, configure: Rebuild.
9861
9862 2002-03-14 Richard Henderson <rth@redhat.com>
9863
9864 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9865 a constant array bound.
9866
9867 * MAINTAINERS: Add myself to write-after-approval.
9868
9869 2002-03-14 Michael Snyder <msnyder@redhat.com>
9870
9871 * symfile.c (syms_from_objfile): Return immediately if no syms.
9872 (symbol_file_add): Return immediately if no syms.
9873 (find_sym_fns): Return immediately if no syms.
9874
9875 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9876
9877 * gdbserver/remote-util.c (remote_open): Print remote-side's
9878 IP address when remote debugging over the network.
9879
9880 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9881
9882 * config/sparc/fbsd.mh: Fix copyright.
9883 * config/sparc/fbsd.mt: Likewise.
9884
9885 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9886
9887 * MAINTAINERS: Fix typo in name of gdb warnings option.
9888 (x86-64): Fix formating so that this can be parsed by awk.
9889
9890 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9891
9892 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9893 * defs.h: Include "gdb/signals.h".
9894 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9895
9896 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9897
9898 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9899 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9900 from x86-64-tdep.h
9901
9902 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9903 Don Howard <dhoward@redhat.com>
9904
9905 * mips-tdep.c (ST0_FR): Define.
9906 (mips2_fp_compat): New function, temporarily disabled.
9907 (mips_read_fp_register_single): New function.
9908 (mips_read_fp_register_double): New function.
9909 (mips_print_register): Use them.
9910 (do_fp_register_row): Likewise.
9911
9912 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9913
9914 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9915 approval''.
9916
9917 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9918
9919 * stabsread.c (read_member_functions): Fix is_stub test for
9920 static member functions, improve comment.
9921
9922 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9923
9924 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9925 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9926 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9927 commands that set boolean values.
9928 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9929 (arm_rdi_resume): Always initialize PC.
9930 (arm_rdi_open): Don't use rslt as a boolean.
9931 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9932 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9933 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9934 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9935
9936 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9937
9938 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9939 * configure: Rebuilt.
9940
9941 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9942
9943 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9944 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9945
9946 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9947
9948 * cli/cli-decode.c (set_cmd_completer): New function.
9949 * command.h (set_cmd_completer): Declare.
9950 * cli/cli-decode.h (set_cmd_completer): Ditto.
9951
9952 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9953 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9954 * win32-nat.c (_initialize_inftarg): Ditto.
9955 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9956 * proc-api.c (_initialize_proc_api): Ditto.
9957 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9958 * source.c (_initialize_source): Ditto.
9959 * exec.c (_initialize_exec): Ditto.
9960 * solib.c (_initialize_solib): Ditto.
9961 * top.c (init_main): Ditto.
9962 * tracepoint.c (_initialize_tracepoint): Ditto.
9963 * symfile.c (_initialize_symfile): Ditto.
9964 * printcmd.c (_initialize_printcmd): Ditto.
9965 * infcmd.c (_initialize_infcmd): Ditto.
9966 * corefile.c (_initialize_core): Ditto.
9967
9968 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9969
9970 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9971
9972 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9973
9974 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9975
9976 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9977
9978 * NEWS: Update headings, 5.2 has branched.
9979
9980 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9983 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9984 (register_addr, REGISTER_RAW_SIZE): Likewise.
9985 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9986 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9987
9988 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9989
9990 * MAINTAINERS (x86-64): Add myself.
9991 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9992 changed value_ptr -> struct value *
9993
9994 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9995
9996 * configure.host (sparc64-*-freebsd): Add.
9997 * configure.tgt: Likewise.
9998 * config/sparc/fbsd.mh: New file.
9999 * config/sparc/fbsd.mt: Likewise.
10000 * config/sparc/nm-fbsd.h: Likewise.
10001 * config/sparc/tm-fbsd.h: Likewise.
10002
10003 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10004
10005 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10006 regformats/reg-s390x.dat.
10007
10008 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10009
10010 * utils.c: Add FIXME explaining true/false problem.
10011
10012 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10013
10014 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10015
10016 2002-02-28 Michael Chastain <mec@shout.net>
10017
10018 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10019
10020 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * gdbserver/linux-s390-low.c: New file.
10023 * regformats/reg-s390.dat: New file.
10024 * regformats/reg-s390x.dat: New file.
10025 * gdbserver/configure.srv: Add S/390.
10026 * gdbserver/Makefile.in: Add S/390.
10027 * configure.tgt: Enable gdbserver for S/390.
10028
10029 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10030
10031 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10032 first line of the doc string for "info dos", except at the end of
10033 the sentence, since the short help stops at the first period.
10034
10035 2002-02-28 Jason Merrill <jason@redhat.com>
10036
10037 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10038
10039 2002-02-27 Fred Fish <fnf@redhat.com>
10040
10041 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10042 comment (dumy -> dummy).
10043
10044 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10045
10046 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10047
10048 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10049
10050 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10051
10052 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10053
10054 * gdbserver/acconfig.h: New file.
10055 * gdbserver/i387-fp.c: New file.
10056 * gdbserver/i387-fp.h: New file.
10057 * gdbserver/linux-x86-64.c: New file.
10058 * regformats/reg-x86-64.dat: New file.
10059 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10060 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10061 * gdbserver/configure.in: Add support for regsets.
10062 * gdbserver/config.in: Regenerate.
10063 * gdbserver/configure: Regenerate.
10064 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10065 * gdbserver/linux-low.h: New file.
10066 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10067 for regsets.
10068 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10069 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10070 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10071 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10072 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10073 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10074 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10075 "i387-fp.h". Add PTRACE_GETREGS and friends.
10076 * gdbserver/regcache.c (supply_register): New function.
10077 (supply_register_by_name): New function.
10078 (collect_register): New function.
10079 (collect_register_by_name): New function.
10080
10081 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10082
10083 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10084 (config.status): Add configure.srv dependency.
10085 (server_h): Add config.h dependency.
10086
10087 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10088
10089 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10090 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10091 * gdbserver/configure.srv: Change i386-*-linux* to use
10092 reg-i386-linux.o.
10093
10094 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10095
10096 * x86-64-tdep.c: Re-indent. Update copyright date.
10097
10098 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10099
10100 From Michal Ludvig <mludvig@suse.cz>:
10101 * x86-64-tdep.c (value.h): Delete.
10102 (gdb_assert.h): Include.
10103 (x86_64_register_convert_to_virtual,
10104 x86_64_register_convert_to_raw ): Add check which lets only
10105 floating-point values to be converted.
10106 (value_push): Delete.
10107 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10108 (i386_gdbarch_init): Number of register_bytes fixed.
10109
10110 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10111
10112 * MAINTAINERS: Add x86-64 target.
10113
10114 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10115
10116 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10117 * osfsolib.c (solib_map_sections): Ditto.
10118 * irix5-nat.c (solib_map_sections): Ditto.
10119 * corelow.c (gdb_check_format): Ditto.
10120 * symfile.c (symfile_bfd_open): Ditto.
10121 * solib.c (solib_map_sections): Ditto.
10122 Fix PR gdb/354.
10123
10124 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10125
10126 * remote.c (_initialize_remote): By default, disable ``e'' and
10127 ``E'' step out-of-range packets.
10128
10129 2002-02-26 Andreas Schwab <schwab@suse.de>
10130
10131 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10132 m68k_linux_frame_saved_pc.
10133 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10134 in_sigtramp.
10135 (SIGCONTEXT_PC_OFFSET): Remove.
10136 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10137 m68k_linux_sigtramp_saved_pc): New functions.
10138 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10139 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10140 (UCONTEXT_PC_OFFSET): Define.
10141 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10142 non-RT and RT signal trampolines.
10143
10144 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10145
10146 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10147 (TARGET_NBPG, STACK_END_ADDR): Delete
10148 (VARIABLES_INSIDE_BLOCK): Delete.
10149
10150 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10151
10152 * utils.c (perror_with_name): Make string parameter constant.
10153 (print_sys_errmsg): Ditto.
10154 (query): Ditto.
10155 * defs.h (perror_with_name): Update.
10156 (print_sys_errmsg): Update.
10157 (query): Update.
10158
10159 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10160
10161 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10162 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10163
10164 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10165
10166 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10167 if it already matches the current architecture from the exec file.
10168 Include arch-utils.h for gdbarch_info_init prototype.
10169 * Makefile.in (rs6000-nat.o): Update dependencies.
10170
10171 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10172
10173 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10174 list of exported variables.
10175
10176 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * gdbserver/configure.srv: New file.
10179 * gdbserver/configure.in: Use configure.srv instead
10180 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10181 from it.
10182 * gdbserver/configure: Regenerated.
10183 * gdbserver/terminal.h: New file.
10184 * gdbserver/Makefile.in: Update for configure changes. Remove
10185 more unneeded include paths.
10186
10187 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10188
10189 From wiz at danbala:
10190 * config/sparc/tm-sp64.h: Fix grammar and typos.
10191 Fix PR gdb/287.
10192
10193 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10194
10195 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10196 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10197 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10198 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10199 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10200 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10201 * s390-tdep.c: Ditto.
10202 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10203 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10204 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10205 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10206 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10207 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10208 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10209 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10210 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10211 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10212 Fix PR gdb/378.
10213
10214 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10215
10216 * lin-thread.c: Delete file.
10217 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10218 to gdb_proc_service.h.
10219 * configure: Re-generate.
10220
10221 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10222 * serial.c (serial_open): Delete check for "ocd".
10223 Fix PR gdb/349.
10224
10225 * Makefile.in (linux-thread.o): Delete target.
10226 * linux-thread.c: Delete file.
10227
10228 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10229 renamed SH files to be consistent.
10230
10231 * symtab.c (sort_search_symbols): Use xfree.
10232
10233 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10234
10235 * arm-linux-tdep.c (arm_linux_init_abi): Register
10236 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10237 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10238 definition with undef, since we don't want the sysvr4 definition.
10239 (SKIP_TRAMPOLINE_CODE): Likewise.
10240
10241 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10242
10243 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10244
10245 * configure.in: (AC_CHECK_FUNCS) Added test for
10246 canonicalize_file_name Regenerated.
10247 * config.in, configure: Regenerated.
10248 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10249 defined use canonicalize_file_name.
10250
10251 2002-02-23 Michael Chastain <mec@shout.net>
10252
10253 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10254
10255 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10256
10257 * README: Remove references to cygnus.com.
10258 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10259 dot com'' form. Remove references to cygnus.com and sourceware.
10260
10261 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10262
10263 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10264 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10265 1003.1-2001 no longer allows "head -1".
10266 * gdb/Makefile.in (version.c): Likewise.
10267 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10268 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10269 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10270
10271 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10272
10273 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10274 * command.h (cmd_cfunc_eq): Declare.
10275 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10276
10277 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10278 ``struct cmd_list_element *''.
10279 * cli/cli-cmds.c (is_complete_command): Update. Use
10280 cmd_cfunc_eq.
10281 * top.c (execute_command): Pass the command to
10282 is_complete_command.
10283 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10284
10285 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10286
10287 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10288 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10289 architecture defines.
10290 * s390-tdep.c (s390_gdbarch_init): Likewise.
10291
10292 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10293
10294 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10295 (arm_linux_push_arguments): Likewise.
10296 (arm_linux_init_abi): Register them. Also register linux-specific
10297 call_dummy_words.
10298 (find_minsym_and_objfile): Use strcmp, not STREQ.
10299 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10300 (arm_linux_call_dummy_words): Delete declaration.
10301 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10302 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10303 declarations.
10304 (LOWEST_PC): Delete.
10305
10306 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10307
10308 * maint.c (print_section_info): Do not prepend `0x' to filepos
10309 output, it will be handled by local_hex_string_custom.
10310
10311 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10312
10313 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10314 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10315 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10316
10317 2002-02-22 Jim Blandy <jimb@redhat.com>
10318
10319 Indicate that the bcache functions don't change the strings
10320 they're passed.
10321 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10322 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10323
10324 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10325
10326 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10327
10328 2002-02-21 Christopher Faylor <cgf@redhat.com>
10329
10330 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10331 find the complete path to a loaded DLL.
10332
10333 2002-02-21 Fred Fish <fnf@redhat.com>
10334
10335 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10336 that marks the end of the range of a function, enter a line number
10337 entry that has a line number of zero and a PC offset that matches
10338 the end of the function. This starts a range of PC's for which no
10339 line number information is known.
10340 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10341 PC's for which no line number info is found (line number is zero)
10342 then we didn't find any valid line information.
10343 * symtab.h: Document use of zero line number entry.
10344
10345 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10346
10347 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10348 (have_ptrace_getvrregs): Define for run time checks.
10349 (gdb_vrregset_t): New type for Altivec register handling.
10350 (fetch_register, store_register): Fetch/store altivec register
10351 when needed.
10352 (fetch_altivec_register, store_altivec_register): New functions.
10353 (supply_vrregset, fill_vrregset): New functions.
10354 (fetch_altivec_registers, store_altivec_registers): New functions.
10355 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10356 registers as well.
10357
10358 2002-02-21 Jiri Smid <smid@suse.cz>
10359
10360 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10361
10362 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10363
10364 * Makefile.in (armnbsd-nat.o): Update dependencies.
10365 * armnbsd-nat.c (supply_gregset): New function. Common code to
10366 supply the integer register set.
10367 (supply_fparegset): New function. Similar for FPA registers.
10368 (fetch_regs, fetch_fp_regs): Use them.
10369 (fetch_core_registers): Likewise.
10370 (fetch_elfcore_registers): New function.
10371 (arm_netbsd_elfcore_fns): New core-file type specification.
10372 (_initialize_arm_netbsd_nat): Register it.
10373
10374 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10375
10376 * armnbsd-nat.c: Include gdbcore.h.
10377 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10378 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10379 'void' to declaration, to shut up ARI.
10380 (fetch_core_registers): Make static. Rewrite using supply_register.
10381 (arm_netbsd_core_fns): New core-file type specification.
10382 (_initialize_arm_netbsd_nat): New function.
10383
10384 2002-02-21 Christopher Faylor <cgf@redhat.com>
10385
10386 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10387 value.
10388
10389 2002-02-20 Christopher Faylor <cgf@redhat.com>
10390
10391 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10392 fails.
10393
10394 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * jv-exp.y (parse_number): Change type of implicit longs
10397 to builtin_type_uint64.
10398
10399 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10400
10401 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10402 to be an integer instead of a `union wait'.
10403
10404 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10405
10406 * mips-linux-nat.c: Call the operating system GNU/Linux.
10407 * mips-linux-tdep.c: Likewise.
10408 * mips-tdep.c: Likewise.
10409
10410 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10411
10412 Fix PR gdb/265.
10413 * jv-exp.y (parse_number): Handle 64-bit integers.
10414
10415 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10416
10417 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10418 AC_STDC_HEADERS to AC_HEADER_STDC.
10419 * gdbserver/configure: Regenerated.
10420
10421 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10422
10423 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10424 is defined.
10425 * sparc-tdep.c (get_longjmp_target): Likewise.
10426
10427 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10428
10429 * News: Add news about ARM and Multi-arch. Mention the new target
10430 arm*-*-netbsd*.
10431
10432 2002-02-19 Jim Blandy <jimb@redhat.com>
10433
10434 * stabsread.c (error_type_complaint): Improve error message.
10435
10436 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * gdbserver/README: Update documentation.
10439 * gdbserver/configure.in: Update configury to match documentation.
10440 * gdbserver/Makefile.in: Likewise.
10441 * gdbserver/configure: Regenerated.
10442 * gdbserver/aclocal.m4: New file, generated by aclocal.
10443 * gdbserver/config.in: New file, generated by autoheader.
10444
10445 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10446
10447 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10448 armnbsd-nat.c.
10449
10450 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10451
10452 * arm-tdep.h (enum arm_float_model): New enum.
10453 (struct gdbarch_tdep): Add fp_model.
10454 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10455 up floating-point conversions until we know the floating-point model
10456 in use by the inferior. Don't complain about being unable to
10457 determine the ABI of the inferior when we don't have one.
10458 (arm_extract_return_value): Support different floating-point models.
10459 (arm_store_return_value): Likewise.
10460 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10461 ARM_FLOAT_SOFT.
10462 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10463
10464 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10465
10466 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10467 of ``current_gdbarch''.
10468
10469 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10470
10471 * armnbsd-nat.c : ANSIfy all function declarations.
10472 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10473 (fetch_inferior_registers): Re-implement in terms of above.
10474 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10475 (store_inferior_registers): Re-implement in terms of above.
10476
10477 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10478
10479 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10480 kernel.
10481 * arm-linux-tdep.c: Likewise.
10482 * config/arm/tm-linux.h: Likewise.
10483
10484 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10485
10486 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10487 * config/arm/nbsd.mt (TM_FILE): Delete.
10488 * config/arm/tm-nbsd.h: Delete.
10489
10490 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10491
10492 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10493 Initialize CALL_DUMMY_LENGTH.
10494
10495 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10496
10497 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10498 function.
10499 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10500 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10501 defines one thing and that is incorrect for this port.
10502 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10503
10504 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10505
10506 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10507
10508 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10509
10510 * win32-nat.c (display_selector): New function. Displays information
10511 about the information returned by GetThreadSelectorEntry API function.
10512 (display_selectors): New function. Displays the infomation of
10513 the selector given as argument, or of CS, DS ans FS selectors
10514 if no argument is given.
10515 ( _initialize_inftarg): Add "w32" as info prefix command.
10516 Add "info w32 selector" as command calling display_selectors.
10517
10518 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10519
10520 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10521 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10522 if not defined.
10523
10524 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10525
10526 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10527
10528 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10529
10530 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10531 (arm_fix_call_dummy): Call it.
10532 (arm_call_dummy_breakpoint_offset): Delete.
10533 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10534 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10535
10536 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10537
10538 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10539 Default to func_frame_chain_valid.
10540 * gdbarch.h, gdbarch.c: Re-generate.
10541 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10542
10543 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10544
10545 * ppc-linux-nat.c: Update copyright.
10546 (fetch_register, store_register): Add tid parameter, don't compute
10547 tid here.
10548 (fetch_ppc_registers, store_ppc_registers): Add tid
10549 parameter. Pass it along to callees.
10550 (fetch_inferior_registers, store_inferior_registers): Compute tid
10551 here, and pass it to calleed functions.
10552 (fill_gregset, supply_fpregset): Clean up formatting.
10553
10554 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10557 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10558
10559 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10560
10561 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10562 * gdbarch.c gdbarch.h: Regenerate.
10563 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10564 function.
10565 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10566 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10567 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10568
10569 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10570 * arm-tdep.c (arm_get_longjmp_target): New function.
10571 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10572 this to a positive value register arm_get_longjmp_target as the
10573 longjmp handler.
10574 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10575 (arm_linux_init_abi): Set up longjmp description in tdep.
10576 * armnbsd-nat.c (get_longjmp_target): Delete.
10577 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10578 description in tdep.
10579 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10580 (get_longjmp_target): Delete declaration.
10581 (GET_LONGJMP_TARGET): Delete.
10582 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10583 (GET_LONGJMP_TARGET): Delete.
10584
10585 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10586
10587 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10588 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10589 of ``current_gdbarch''.
10590
10591 2002-02-17 Tom Tromey <tromey@redhat.com>
10592
10593 * cli/cli-cmds.c (compare_strings): New function.
10594 (complete_command): Only print each unique item once.
10595 * completer.h (complete_line): Declare.
10596 * completer.c (complete_line): New function.
10597 (line_completion_function): Use it.
10598
10599 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10600
10601 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10602 * gdbarch.h, gdbarch.c: Re-generate.
10603
10604 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10605
10606 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10607
10608 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10609
10610 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10611 * valops.c (value_arg_coerce): Don't take the address of a reference
10612 to convert an argument to a reference.
10613
10614 2002-02-15 Christopher Faylor <cgf@redhat.com>
10615
10616 * win32-nat.c (get_image_name): New function.
10617 (handle_load_dll): Use get_image_name function.
10618 (get_child_debug_event): Avoid registering debug events until possibly
10619 execed process is started.
10620 (child_create_inferior): Allow invocation via shell so that command
10621 line redirection, etc. works ok.
10622 (_initialize_inftarg): Add new command: "set shell" to control whether
10623 a shell is used to start a process.
10624
10625 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10626
10627 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10628 instead of find_register_by_number.
10629 (cannot_store_register): Likewise.
10630
10631 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10632
10633 * dwarf2read.c: Replace fprintf (stderr, ...) by
10634 fprintf_unfiltered (gdb_stderr, ...).
10635
10636 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * gdbserver/gdbserver.1: Document --attach.
10639
10640 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10641
10642 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10643 descriptions.
10644 * arm-tdep.c (arm_default_arm_le_breakpoint)
10645 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10646 (arm_default_thumb_be_breakpoint): New. Initialize them from
10647 traditional breakpoint defines.
10648 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10649 (arm_gdbarch_init): Initialize new breakpoint variables.
10650 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10651 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10652 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10653 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10654 code out to ...
10655 (arm_netbsd_init_abi_common): ... here; new function.
10656 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10657 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10658 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10659 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10660
10661 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10662
10663 * arm-tdep.h (enum arm_abi): New enum.
10664 (struct gdbarch_tdep): New structure.
10665 (LOWEST_PC): Provide a default.
10666 (arm_gdbarch_register_os_abi): Declare new function.
10667 * arm-tdep.c (arm_abi_names): New array.
10668 (process_note_abi_tag_sections): New function.
10669 (get_elfosabi): New function.
10670 (arm_gdbarch_register_os_abi): New function.
10671 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10672 support for that ABI has been built in, then call the appropriate
10673 configuration routine. Use gdbarch_num_regs() to get the number
10674 of registers.
10675 (arm_dump_tdep): New function.
10676 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10677 place-holder functions.
10678 (_initialize_arm_tdep): Register them.
10679 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10680
10681 * armnbsd-tdep.c: New file.
10682 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10683 * config/arm/nbsd.mt (TDEPFILES): Add it.
10684 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10685
10686 * armnbsd-nat.c: Include regcache.h.
10687 * Makefile.in (armnbsd-nat.o): Update dependency list.
10688
10689 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10690
10691 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * gdbserver/Makefile.in: Fix typos in target rules.
10694
10695 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10696
10697 Fix part of PR gdb/267.
10698 * linespec.c (find_methods): Handle constructors specially for now.
10699
10700 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10701
10702 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10703 handling.
10704 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10705 standard_coerce_float_to_double().
10706
10707 2002-02-14 Christopher Faylor <cgf@redhat.com>
10708
10709 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10710 GDBINIT_FILENAME.
10711
10712 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10713
10714 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10715 find_variant_by_name, because it confuses the multiarch
10716 framework. Return NULL if there isn't an architecture with the
10717 user supplied name, instead of forcing a different one without
10718 recording the change with the multiarch machinery.
10719 (find_variant_by_name): Delete.
10720
10721 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10722
10723 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10724 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10725
10726 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10727
10728 * stack.c (print_frame_info_base): When calling
10729 print_frame_info_listing_hook, set current_source_symtab.
10730
10731 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10732
10733 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10734 and remove unused $(INCLUDE_DIR).
10735 Add regcache.c to OBS.
10736 Add generated register protocol files to clean target.
10737 Update dependencies for new objects, obsolete old target code.
10738
10739 * gdbserver/linux-low.c: Remove all platform-specific code to
10740 new files. Remove various dead code. Update to use regcache
10741 functionality.
10742 * gdbserver/remote-utils.c (fromhex): Add return statement
10743 to quiet warning.
10744 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10745 constant.
10746 (input_interrupt): Add integer parameter to match prototype
10747 of a signal handler.
10748 (outreg): Use register_data ().
10749 (prepare_resume_reply): Use gdbserver_expedite_regs.
10750 * gdbserver/server.c (main): Dynamically allocate own_buf because
10751 PBUFSIZ is no longer constant. Use registers_to_string () and
10752 registers_from_string ().
10753 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10754 for error (), fatal (), and warning (). Update definition of
10755 PBUFSIZ to use regcache functionality. Add include guard.
10756 * gdbserver/utils.c (fatal): Add missing ``const''.
10757 (warning): New function.
10758
10759 * regformats/regdat.sh: Include "regcache.h" in generated files.
10760 Provide init_registers () function.
10761 * regformats/regdef.h: Add prototype for set_register_cache ().
10762 Add include guard.
10763
10764 * gdbserver/linux-arm-low.c: New file.
10765 * gdbserver/linux-i386-low.c: New file.
10766 * gdbserver/linux-ia64-low.c: New file.
10767 * gdbserver/linux-m68k-low.c: New file.
10768 * gdbserver/linux-mips-low.c: New file.
10769 * gdbserver/linux-ppc-low.c: New file.
10770 * gdbserver/linux-sh-low.c: New file.
10771
10772 * gdbserver/regcache.c: New file.
10773 * gdbserver/regcache.h: New file.
10774
10775 * gdbserver/low-linux.c: Removed obsolete file.
10776
10777 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10780 * config/i386/linux.mt: Likewise.
10781 * config/ia64/linux.mt: Likewise.
10782 * config/m68k/linux.mh: Likewise.
10783 * config/powerpc/linux.mh: Likewise.
10784 * config/mips/linux.mt: Likewise.
10785
10786 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10787
10788 * config/i386/i386lynx.mh: Mark gdbserver variables
10789 as (currently) obsolete for this target.
10790 * config/i386/nbsd.mt: Likewise.
10791 * config/i386/nbsdelf.mt: Likewise.
10792 * config/m32r/m32r.mt: Likewise.
10793 * config/m68k/m68klynx.mh: Likewise.
10794 * config/m68k/nbsd.mt: Likewise.
10795 * config/m68k/sun3os4.mh: Likewise.
10796 * config/mips/vr5000.mt: Likewise.
10797 * config/ns32k/nbsd.mt: Likewise.
10798 * config/pa/hppabsd.mh: Likewise.
10799 * config/pa/hppaosf.mh: Likewise.
10800 * config/powerpc/nbsd.mt: Likewise.
10801 * config/rs6000/rs6000lynx.mh: Likewise.
10802 * config/s390/s390.mt: Likewise.
10803 * config/s390/s390x.mt: Likewise.
10804 * config/sparc/sparclynx.mh: Likewise.
10805 * config/sparc/sun4os4.mh: Likewise.
10806 * config/i386/x86-64linux.mt: Likewise.
10807 * config/sparc/linux.mh: Likewise.
10808
10809 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10810
10811 * configure.tgt: Configure gdbserver only for known working
10812 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10813 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10814 SUBDIRS if it is configured. Update comment for ${nativefile}.
10815 * configure: Regenerated.
10816
10817 2002-02-13 Michael Snyder <msnyder@redhat.com>
10818
10819 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10820
10821 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10822 (default_gcore_mach): Just return 0, work around a problem in bfd.
10823 (default_gcore_target): OK to return NULL if exec_bfd is null.
10824 (make_mem_sec): Use a cast, avoid a warning.
10825
10826 * procfs.c (find_memory_regions_callback): Use a cast instead of
10827 calling host_pointer_to_address (which complains if
10828 sizeof (host pointer) != sizeof (target pointer)).
10829 (procfs_make_note_section): Avoid overflow in psargs string.
10830
10831 * procfs.c (procfs_make_note_section): Make the default
10832 implementation return an error.
10833
10834 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10835
10836 * procfs.c (procfs_make_note_section): Provide a default definition
10837 (for alpha-dec-osf4.0f). Fix typos.
10838
10839 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10840
10841 * linux-proc.c: Add include of regcache.h.
10842 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10843
10844 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10845
10846 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10847 * memattr.c (create_mem_region): Disallow useless empty region.
10848 Regions are half-open intervals, so allow [A..B) [B..C) as
10849 non-overlapping.
10850
10851 2002-02-13 Michael Chastain <mec@shout.net>
10852
10853 * defs.h: Kill CONST_PTR.
10854 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10855 * c-lang.c (c_builtin_types): Likewise.
10856 * ch-lang.c (ch_builtin_types): Likewise.
10857 * f-lang.c (f_builtin_types): Likewise.
10858 * language.c (unknown_builtin_types): Likewise.
10859 * m2-lang.c (m2_builtin_types): Likewise.
10860 * p-lang.c (pascal_builtin_types): Likewise.
10861 * scm-lang.c (c_builtin_types): Likewise.
10862
10863 2002-02-13 Keith Seitz <keiths@redhat.com>
10864
10865 * arm-tdep.h (arm_get_next_pc): Add declaration.
10866
10867 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10868
10869 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10870 with other related struct-returning functions.
10871 (arm_extract_struct_value_address): New function.
10872 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10873 initialize float_format, double_format and long_double_format as
10874 appropriate to the endianness of the target.
10875 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10876 (arm_use_struct_convention): Delete declaration.
10877 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10878
10879 2002-02-13 Keith Seitz <keiths@redhat.com>
10880
10881 * defs.h (core_addr_to_string_nz): New function.
10882
10883 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10884
10885 Apply missing bits of 2002-01-15 patch.
10886 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10887 (fill_fpregset): Use i387_fill_fsave.
10888
10889 2002-02-12 Keith Seitz <keiths@redhat.com>
10890
10891 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10892 (core_addr_to_string_nz): New function.
10893
10894 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10895
10896 * arm-linux-nat.c: Really include arm-tdep.h.
10897 * config/arm/tm-linux.h (struct type, struct value): Declare.
10898
10899 2002-02-11 Michael Snyder <msnyder@redhat.com>
10900
10901 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10902 (gcore section): Ifdef for Solaris and Unixware only.
10903 (procfs_do_thread_registers): Unixware needs one lwpstatus
10904 per thread (not one prstatus or pstatus).
10905 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10906 not over all gdb threads. For unixware, call elfcore_write_pstatus
10907 once before iterating over threads.
10908
10909 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10910
10911 * arm-tdep.h: New file.
10912 * arm-tdep.c: Include arm-tdep.h.
10913 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10914 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10915 (arm_print_float_info, arm_register_type, convert_to_extended)
10916 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10917 (arm_extract_return_value, arm_register_name): Make static.
10918 (arm_software_single_step): Similarly. Fix types in declaration.
10919 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10920 (arm_store_return_value, arm_store_struct_return): New functions.
10921 (arm_gdbarch_init): Register the above functions. Also register
10922 call_dummy_start_offset, sizeof_call_dummy_words,
10923 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10924 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10925 max_register_virtual_size, register_size. Set up
10926 prologue_cache.saved_regs here, rather than ...
10927 (_initialize_arm_tdep): ... here.
10928 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10929 declarations.
10930 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10931 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10932 (arm_print_float_info, arm_register_type, convert_to_extended)
10933 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10934 (arm_extract_return_value, arm_register_name): Delete declarations.
10935 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10936 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10937 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10938 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10939 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10940 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10941 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10942 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10943 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10944 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10945 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10946 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10947 interface.
10948 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10949 * remote-rdi.c remote-rdp.c: Likewise.
10950 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10951 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10952 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10953 definition.
10954
10955 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10956 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10957 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10958 from non-ARM_ prefixed definitions.
10959 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10960 all uses of above.
10961 * remote-rdi.c remote-rdp.c: Likewise.
10962 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10963
10964 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10965
10966 * arm-tdep.c (arm_frameless_function_invocation)
10967 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10968 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10969 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10970 (arm_pop_frame, arm_get_next_pc): Make static.
10971 (arm_gdbarch_init): Register above in gdbarch structure.
10972 (arm_read_fp): Renamed from arm_target_read_fp.
10973 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10974 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10975 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10976 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10977 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10978 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10979 (arm_pc_is_thumb_dummy): Delete declarations.
10980 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10981 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10982 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10983 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10984
10985 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10986
10987 * symtab.c (compare_search_syms): New function.
10988 (sort_search_symbols): New function.
10989 (search_symbols): Sort symbols after searching rather than
10990 before.
10991
10992 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10993
10994 * NEWS: Linux -> GNU/Linux.
10995
10996 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10997
10998 * gdbarch.sh: For for level one methods, disallow a definition
10999 when partially multi-arched. Add comments explaining rationale.
11000 * gdbarch.h: Re-generate.
11001
11002 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11003
11004 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11005 multi-arch partial.
11006
11007 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11008
11009 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11010 field. Use diff -u.
11011 * gdbarch.c: Re-generate.
11012
11013 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11014
11015 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11016 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11017 partial.
11018
11019 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11020
11021 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11022 multi-arch partial.
11023 (PUSH_ARGUMENTS): Switch to using predefault.
11024 * gdbarch.c: Regenerate.
11025
11026 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11027
11028 * valops.c (PUSH_ARGUMENTS): Delete definition.
11029 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11030 partial. Default to default_push_arguments.
11031 * gdbarch.h, gdbarch.c: Regenerate.
11032
11033 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11034
11035 * defs.h (throw_exception): Rename return_to_top_level. Update
11036 comments.
11037 * utils.c (error_stream, internal_verror, quit): Ditto.
11038 * top.c (throw_exception, catcher): Ditto.
11039 * sparclet-rom.c (sparclet_load): Ditto.
11040 * remote.c (interrupt_query, minitelnet): Ditto.
11041 * remote-sds.c (interrupt_query): Ditto.
11042 * remote-mips.c (mips_error, mips_kill): Ditto.
11043 * ocd.c (interrupt_query): Ditto.
11044 * monitor.c (monitor_interrupt_query): Ditto.
11045 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11046 * target.h: Update comment.
11047
11048 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11049
11050 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11051
11052 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11053 default_double_format.
11054 * gdbarch.h, gdbarch.c: Re-generate.
11055 * findvar.c (floatformat_unknown): Delete variable definition.
11056 * doublest.h (floatformat_unknown): Delete variable declaration.
11057
11058 2002-02-09 Jim Blandy <jimb@redhat.com>
11059
11060 * stabsread.c (read_type): Add code to parse Sun's syntax for
11061 prototyped function types.
11062
11063 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11064
11065 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11066 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11067
11068 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11069
11070 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11071 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11072 now _initialize_xcoffsolib gets called again and overrides the
11073 commands from solib.c in a native configuration.
11074
11075 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11076
11077 * doublest.c (store_typed_floating): Don't try to return a value.
11078 Fixes PR gdb/290.
11079
11080 2002-02-08 Jim Blandy <jimb@redhat.com>
11081
11082 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11083 is prototyped and has no arguments, print its argument list as
11084 `(void)'.
11085
11086 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11087
11088 * MAINTAINERS (write-after-approval): Add myself.
11089 (paper-trail): I've escaped!
11090
11091 2002-02-08 Christopher Faylor <cgf@redhat.com>
11092
11093 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11094 changes.
11095 (_initialize_check_for_gdb_ini): Ditto.
11096
11097 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11098
11099 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11100 xaprintf -> xasprintf.
11101
11102 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11103
11104 * win32-nat.c: Remove use of printf and sprintf functions.
11105
11106 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11107
11108 * arm-tdep.c (arm_frame_chain_valid): Make static.
11109 (arm_push_arguments): Likewise.
11110 (arm_gdbarch_init): New function.
11111 (_initialize_arm_tdep): Call it.
11112 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11113 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11114 (FRAME_CHAIN_VALID): Delete.
11115 (arm_frame_chain_valid): Delete declaration.
11116 (PUSH_ARGUMENTS): Delete.
11117 (arm_push_arguments): Delete declaration.
11118 (CALL_DUMMY_P): Delete.
11119
11120 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11121 Corinna Vinschen <vinschen@redhat.com>
11122
11123 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11124 on builtin float types.
11125
11126 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11127
11128 * utils.c: Include <curses.h> before "bfd.h".
11129 * tui/tui-hooks.c: Likewise.
11130 * tui/tui.c: Likewise.
11131 * tui/tuiCommand.c: Likewise.
11132 * tui/tuiData.c: Likewise.
11133 * tui/tuiDataWin.c: Likewise.
11134 * tui/tuiDisassem.c: Likewise.
11135 * tui/tuiGeneralWin.c: Likewise.
11136 * tui/tuiIO.c: Likewise.
11137 * tui/tuiLayout.c: Likewise.
11138 * tui/tuiRegs.c: Likewise.
11139 * tui/tuiSource.c: Likewise.
11140 * tui/tuiSourceWin.c: Likewise.
11141 * tui/tuiStack.c: Likewise.
11142 * tui/tuiWin.c: Likewise.
11143
11144 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11145
11146 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11147 to include space for pseudoregs as well. Update loops accordingly.
11148 (sh_fp_frame_init_saved_regs): Ditto.
11149 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11150
11151 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11152
11153 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11154 Add Richard Earnshaw to Arm maintainers.
11155
11156 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11157
11158 * defs.h (warning_begin): Delete declaration.
11159
11160 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11161 Delete macro.
11162
11163 2002-02-07 Michael Snyder <msnyder@redhat.com>
11164
11165 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11166 Logic bug, remove misplaced else.
11167
11168 2002-02-07 Klee Dienes <klee@apple.com>
11169
11170 * fork-inferior.c (fork_inferior): Add '!' to the list of
11171 characters that need to be quoted when building a string for the
11172 shell. Quote '!' specifically with a backslash, since CSH chokes
11173 when trying to evaluate "str!str".
11174
11175 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11176
11177 * rdi-share/host.h: Only provide a typedef for bool if it is not
11178 defined.
11179
11180 2002-02-04 Michael Snyder <msnyder@redhat.com>
11181
11182 * breakpoint.h (enum bptype): Add new overlay event bp type.
11183 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11184
11185 * breakpoint.c (create_internal_breakpoint): New function.
11186 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11187 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11188 (create_thread_event_breakpoint): Ditto.
11189 (create_solib_event_breakpoint): Ditto.
11190 (create_overlay_event_breakpoint): New function.
11191 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11192 (update_breakpoints_after_exec): Delete and re-initialize
11193 overlay event breakpoints after an exec. Add FIXME comment
11194 about longjmp breakpoint.
11195 (print_it_typical): Ignore overlay event breakpoints.
11196 (print_one_breakpoint): Ditto.
11197 (mention): Ditto.
11198 (bpstat_what): Do not stop for overlay event breakpoints.
11199 (delete_breakpoint): Don't delete overlay event breakpoints.
11200 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11201 (breakpoint_re_set): Re-create overlay event breakpoint.
11202
11203 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11204 (overlay_manual_command): Disable overlay breakpoints.
11205 (overlay_off_command): Disable overlay breakpoints.
11206
11207 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11208
11209 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11210 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11211 to here from config/tm-arm.h.
11212 (coff_sym_is_thumb): Make static.
11213 (arm_elf_make_msymbol_special): New function.
11214 (arm_coff_make_msymbol_special): New function.
11215 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11216 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11217 (coff_sym_is_thumb): Delete declaration.
11218 (arm_elf_make_msymbol_special): Declare.
11219 (arm_coff_make_msymbol_special): Declare.
11220 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11221 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11222
11223 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11224
11225 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11226
11227 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11228
11229 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11230 * gdbarch.c gdbarch.h: Regenerate.
11231 * arch-utils.c (default_print_float_info): New function.
11232 * arch-utils.h (default_print_float_info): Prototype it.
11233 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11234 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11235 (PRINT_FLOAT_INFO): Document it.
11236
11237 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11238 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11239 (PRINT_FLOAT_INFO): Define.
11240
11241 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11242
11243 * win32-nat.c (_initialize_check_for_gdb_ini):
11244 Add typecast to sprintf argument to suppress a warning.
11245
11246 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11247
11248 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11249 to allow easier handling of pass state.
11250 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11251 that gives exception name and address.
11252 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11253 and set last_sig value to ourstatus->value.sig. Some missing
11254 exceptions added.
11255 (child_continue): Correctly report continue_status.
11256 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11257 TARGET_SIGNAL_0 (new default value).
11258 (child_resume): consider sig argument passed to decide if
11259 the exception should be passed to debuggee or not.
11260
11261 2002-02-05 Michael Snyder <msnyder@redhat.com>
11262
11263 * regcache.c (fetch_register): Call target_fetch_register
11264 only if we don't call FETCH_PSEUDO_REGISTER.
11265 (store_register): Call target_store_register only if we
11266 don't call STORE_PSEUDO_REGISTER.
11267
11268 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11269
11270 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11271 ELF_MAKE_MSYMBOL_SPECIAL.
11272 * gdbarch.c, gdbarch.h: Regenerate.
11273 * arch-utils.c (default_make_msymbol_special): New function.
11274 * arch-utils.h (default_make_msymbol_special): Export.
11275 * elfread.c (elf_symtab_read): Compile use of
11276 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11277 multiarched.
11278 * coffread.c (coff_symtab_read): Ditto, for
11279 COFF_MAKE_MSYMBOL_SPECIAL.
11280
11281 2002-02-05 Jim Blandy <jimb@redhat.com>
11282
11283 * solib-svr4.c (svr4_truncate_ptr): New function.
11284 (svr4_relocate_section_addresses): Do the address arithmetic with
11285 the appropriate truncation for target addresses, even when
11286 CORE_ADDR is larger than a target address.
11287
11288 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11289
11290 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11291 to (int *).
11292
11293 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11296 code.
11297
11298 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11301
11302 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11303
11304 * gdbserver/linux-low.c: Remove unused include files.
11305
11306 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11309 (read_inferior_memory): Use it.
11310 (write_inferior_memory): Likewise.
11311
11312 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11313
11314 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11315 grubbing through sys_errlist.
11316
11317 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11320
11321 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11322 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11323
11324 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11325
11326 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11327 (do_sfunc, set_cmd_sfunc): New functions.
11328
11329 * command.h (struct cmd_list_element): Add field func.
11330 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11331 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11332 * cli/cli-decode.h: Ditto.
11333
11334 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11335 (help_all, help_cmd_list): Ditto.
11336 (find_cmd, complete_on_cmdlist): Ditto.
11337 * top.c (execute_command): Ditto.
11338
11339 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11340 function.sfunc.
11341
11342 * infcmd.c (notice_args_read): Fix function signature.
11343
11344 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11345 * cli/cli-decode.c (add_set_cmd): Ditto.
11346 * utils.c (initialize_utils): Ditto.
11347 * maint.c (_initialize_maint_cmds): Ditto.
11348 * infrun.c (_initialize_infrun): Ditto.
11349 * demangle.c (_initialize_demangler): Ditto.
11350 * remote.c (add_packet_config_cmd): Ditto.
11351 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11352 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11353 * proc-api.c (_initialize_proc_api): Ditto.
11354 * kod.c (_initialize_kod): Ditto.
11355 * valprint.c (_initialize_valprint): Ditto.
11356 * top.c (init_main): Ditto.
11357 * infcmd.c (_initialize_infcmd): Ditto.
11358 * corefile.c (_initialize_core): Ditto.
11359 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11360 * arch-utils.c (initialize_current_architecture): Ditto.
11361 (_initialize_gdbarch_utils): Ditto.
11362 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11363
11364 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11365 * wince.c (_initialize_inftarg): Ditto.
11366 * symfile.c (_initialize_symfile): Ditto.
11367 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11368 * language.c (_initialize_language): Ditto.
11369 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11370
11371 2002-02-04 Michael Snyder <msnyder@redhat.com>
11372
11373 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11374
11375 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11378 Add rules for building the register data files.
11379
11380 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * regformats/regdat.sh: Add braces to the definition of
11383 expedite_regs_${arch}.
11384
11385 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11386
11387 * regformats/regdef.h (struct reg): Add comment describing the
11388 requirements for offset and size fields.
11389
11390 2002-02-04 Andreas Schwab <schwab@suse.de>
11391
11392 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11393 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11394
11395 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11396
11397 * gdbarch.sh (copyright): Update years in generated header.
11398 (SMASH_TEXT_ADDRESS): Add rule.
11399 * gdbarch.h, gdbarch.c: Re-generate.
11400 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11401 * dbxread.c: Likewise.
11402 * dwarfread.c: Likewise.
11403 * elfread.c: Likewise.
11404 * somread.c: Likewise.
11405
11406 * arm-tdep.c (arm_smash_text_address): New function.
11407 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11408
11409 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11410
11411 Add support for hardware watchpoints on win32 native.
11412 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11413 CONTEXT_DEBUG_REGISTERS.
11414 (dr variable): New variable. Static array containing a local copy
11415 of debug registers.
11416 (debug_registers_changed): New variable. Reflects when debug registers
11417 are changed and need to be written to inferior.
11418 (debug_registers_used): New variable. Reflects when any debug register
11419 was set, used when new threads are created.
11420 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11421 i386-nat code.
11422 (thread_rec): Set dr array if id is the thread of current_event .
11423 (child_continue, child_resume): Change the debug registers for all
11424 threads if debug_registers_changed.
11425 (child_add_thread): Change the debug registers if debug_registers_used.
11426 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11427 Link nm.h to new nm-cygwin.h file.
11428 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11429 of hardware registers.
11430
11431 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11432
11433 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11434 Restore behavour broken by 2002-01-20 Andrew Cagney
11435 <ac131313@redhat.com> IEEE_FLOAT removal.
11436
11437 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * c-valprint.c (c_val_print): Pass a proper valaddr to
11440 cp_print_class_method.
11441 * valops.c (search_struct_method): If there is only one method
11442 and args is NULL, return that method.
11443
11444 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11447 accessing tag_name directly.
11448
11449 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11450
11451 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11452 of accessing tag_name directly.
11453
11454 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11455
11456 PR gdb/280
11457 * gdbtypes.c (replace_type): New function.
11458 * gdbtypes.h (replace_type): Add prototype.
11459 * stabsread.c (read_type): Use replace_type.
11460
11461 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11462
11463 * Makefile.in (memattr.o): Add missing dependencies rule.
11464
11465 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11466
11467 * breakpoint.c (break_at_finish_command): Really export.
11468 (break_at_finish_at_depth_command): Ditto.
11469 (tbreak_at_finish_command): Ditto.
11470 * hppa-tdep.c: Include completer.h.
11471 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11472 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11473
11474 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11475
11476 * utils.c (do_write): New function.
11477 (error_stream): Rewrite combining the code from error_begin and
11478 verror.
11479 (verror): Rewrite using error_stream.
11480 (error_begin): Delete function.
11481
11482 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11483
11484 * utils.c (error_begin): Make static.
11485 * defs.h (error_begin): Delete declaration.
11486
11487 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11488 (decode_line_1): Use cplusplus_error instead of error_begin,
11489 cplusplus_hint and return_to_top_level.
11490 * coffread.c (coff_symfile_read): Use error instead of error_begin
11491 and return_to_top_level.
11492 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11493
11494 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11495
11496 * language.h (type_error, range_error): Make string parameter
11497 constant.
11498 * language.c (warning_pre_print): Delete extern declaration.
11499 * dwarfread.c (warning_pre_print): Ditto.
11500 * language.c (type_error, range_error): Rewrite to use verror and
11501 vwarning instead of warning_begin.
11502
11503 2002-02-01 Michael Snyder <msnyder@redhat.com>
11504
11505 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11506 (set_ignore_count): Move misplaced comment back where it belongs.
11507
11508 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11509
11510 * command.h (NO_FUNCTION): Delete macro.
11511 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11512 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11513 * tracepoint.c (_initialize_tracepoint): Ditto.
11514 * cli/cli-decode.c (add_set_cmd): Ditto.
11515 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11516
11517 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11518
11519 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11520 Update ``this'' pointer when calling virtual functions.
11521
11522 2002-02-01 Michael Snyder <msnyder@redhat.com>
11523
11524 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11525 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11526
11527 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11528
11529 * regformats/reg-arm.dat: New file.
11530 * regformats/reg-i386.dat: New file.
11531 * regformats/reg-ia64.dat: New file.
11532 * regformats/reg-m68k.dat: New file.
11533 * regformats/reg-mips.dat: New file.
11534 * regformats/reg-ppc.dat: New file.
11535 * regformats/reg-sh.dat: New file.
11536 * regformats/regdef.h: New file.
11537 * regformats/regdat.sh: New file.
11538
11539 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11540
11541 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11542 (arm_frame_args_address, arm_frame_locals_address): New functions.
11543 (arm_frame_num_args): New function.
11544 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11545 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11546 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11547
11548 2002-01-31 Michael Snyder <msnyder@redhat.com>
11549
11550 * breakpoint.c (break_at_finish_command): Export.
11551 (break_at_finish_at_depth_command): Export.
11552 (tbreak_at_finish_command): Export.
11553 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11554 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11555 "txbreak" commands, which are HPPA specific.
11556
11557 * printcmd.c (disassemble_command): Remove an ancient
11558 artifact of an old merge.
11559
11560 * symfile.h (enum overlay_debugging_state):
11561 Define enum constant values for overlay mode.
11562 * symfile.c (overlay_debugging): Use enums instead of literals.
11563 (overlay_is_mapped, overlay_auto_command,
11564 overlay_manual_command): Ditto.
11565
11566 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11567 breakpoint_here_p, breakpoint_inserted_here_p,
11568 breakpoint_thread_match, bpstat_stop_status,
11569 describe_other_breakpoints, check_duplicates, clear_command):
11570 Coding standard fixes.
11571
11572 * target.c (target_xfer_memory): Add spaces, coding standard.
11573 (do_xfer_memory): Add missing line to trust-readonly
11574 code: check bfd SEC_READONLY flag for section.
11575
11576 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11577
11578 * PROBLEMS: Fix typo, 5.1->5.1.1.
11579
11580 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11581
11582 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11583 data symbols, since we search based on textlow and texthigh.
11584 (find_pc_sect_symtab): Likewise.
11585
11586 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11587
11588 * defs.h (vwarning): Declare.
11589 * utils.c (vwarning): New function.
11590 (warning): Call vwarning.
11591 (warning_begin): Delete function.
11592
11593 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11594 the warning message.
11595 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11596 warning_begin.
11597
11598 2002-01-30 Michael Snyder <msnyder@redhat.com>
11599
11600 * NEWS: Mention "set trust-readonly-sections" command.
11601 Mention generate-core-file command.
11602
11603 2002-01-15 Michael Snyder <msnyder@redhat.com>
11604
11605 * target.c: New command, "set trust-readonly-sections on".
11606 (do_xfer_memory): Honor the suggestion to trust readonly sections
11607 by reading them from the object file instead of from the target.
11608 (initialize_targets): Register command "set trust-readonly-sections".
11609
11610 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11611
11612 * parse.c (target_map_name_to_register): Simplify, search regs and
11613 pseudo-regs using a single loop.
11614
11615 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11616
11617 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11618
11619 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11620
11621 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11622 * config/i386/i386v42mp.mh: Add i387-nat.o .
11623 * i386v4-nat.c: Include i387-nat.h.
11624 (supply_fpregset): Use i387_supply_fsave.
11625 (fill_fpregset): Use i387_fill_fsave.
11626
11627 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11628
11629 * arm-tdep.c (arm_call_dummy_words): Define.
11630 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11631 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11632 (CALL_DUMMY_WORDS): Define.
11633 (arm_call_dummy_words): Declare.
11634 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11635 (arm_linux_call_dummy_words): Declare.
11636
11637 2002-01-30 Andreas Schwab <schwab@suse.de>
11638
11639 * m68klinux-nat.c: Fix last change to use regcache_collect
11640 instead of referencing registers[] directly.
11641
11642 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11643
11644 * parse.c (target_map_name_to_register): Delete code wrapped in
11645 #ifdef REGISTER_NAME_ALIAS_HOOK.
11646
11647 2002-01-28 Michael Snyder <msnyder@redhat.com>
11648
11649 * regcache.c (legacy_read_register_gen): Need to be able to
11650 read pseudo-register as well as real register.
11651 (legacy_write_register_gen): Ditto.
11652
11653 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11654
11655 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11656 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11657 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11658 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11659 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11660 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11661 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11662 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11663 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11664 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11665 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11666 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11667 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11668 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11669 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11670 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11671 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11672 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11673 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11674 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11675
11676 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11677
11678 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11679 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11680 (initialize_current_architecture): Update target_byte_order using
11681 information from BFD.
11682 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11683 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11684
11685 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11686
11687 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11688 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11689
11690 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11691 #ifdef INVALID_FLOAT.
11692 * infcmd.c (do_registers_info): Ditto.
11693 * values.c (unpack_double): Ditto. Add comment.
11694
11695 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11696 already commented out.
11697
11698 2002-01-26 Andreas Schwab <schwab@suse.de>
11699
11700 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11701 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11702 registers and add support for PTRACE_GETREGS.
11703
11704 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11705
11706 GDB 5.1.1 released from 5.1 branch.
11707 * NEWS: Add 5.1.1 news.
11708 * README: Sync with 5.1 branch.
11709
11710 2002-01-23 Fred Fish <fnf@redhat.com>
11711
11712 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11713 stabstring on initial malloc. Reallocing will copy it for us,
11714 if necessary.
11715
11716 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11717
11718 * Makefile.in (hpread_h): Delete.
11719 (HFILES_NO_SRCDIR): Remove hpread.h.
11720 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11721 (hpread.o): Update dependencies.
11722 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11723
11724 * hp-psymtab-read.c: Remove file.
11725 * hp-symtab-read.c: Remove file.
11726 * hpread.h: Remove file.
11727
11728 * hpread.c: Merge all contents of hp-psymtab-read.c,
11729 hp-symtab-read.c and hpread.h into this file, as it was prior to
11730 January 1999.
11731
11732 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11733 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11734 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11735 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11736
11737 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11738
11739 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11740 fill_gregset): Call gdbarch_tdep() just once, assign result to
11741 variable and use that, instead of calling the function several
11742 times.
11743
11744 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11745
11746 * configure.host: Accept sparcv9 as alias for sparc64.
11747 * configure.tgt: Likewise.
11748
11749 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11750
11751 * solib-aix5.c (build_so_list_from_mapfile)
11752 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11753 arguments is not reversed.
11754 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11755 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11756
11757 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11758
11759 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11760 modified version of obsolete sh_fetch_pseudo_register.
11761 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11762 (sh4_register_read): New function.
11763 (sh_pseudo_register_write): New function. Renamed and modified
11764 version of obsolete sh_store_pseudo_register.
11765 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11766 (sh4_register_write): New function.
11767 (sh_gdbarch_init): Remove setting of gdbarch function
11768 fetch_pseudo_register and store_pseudo_register. Remove setting of
11769 register_convert_to_raw, register_convert_to_virtual,
11770 register_convertible.
11771 (sh_sh4_register_convertible): Delete. No longer needed. All is
11772 taken care by architecture specific functions
11773 register_read/register_write.
11774 (sh_sh4_register_convert_to_virtual): Make static.
11775 (sh_sh4_register_convert_to_raw): Ditto.
11776
11777 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11778
11779 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11780 (floatformat_is_nan, floatformat_mantissa): Ditto.
11781
11782 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11783 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11784 builtin_type_ieee_double_little,
11785 builtin_type_ieee_double_littlebyte_bigword,
11786 builtin_type_m68881_ext, builtin_type_i960_ext,
11787 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11788 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11789 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11790 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11791
11792 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11793
11794 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11795 parameter. Set frameless flag if it exists and depended of
11796 whether the scanned function is frameless or not.
11797 (xstormy16_skip_prologue): If function is frameless, return
11798 result of xstormy16_scan_prologue().
11799 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11800 call.
11801
11802 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11803
11804 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11805 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11806 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11807 sh_sh4_register_byte, sh_sh4_register_raw_size,
11808 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11809 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11810 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11811 sh_store_pseudo_register, sh_do_pseudo_register): Call
11812 gdbarch_tdep() just once, assign result to variable and use that,
11813 instead of calling the function several times.
11814
11815 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11816
11817 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11818 macros instead of LAST_FPU_CTRL_REGNUM.
11819 (store_register): Likewise.
11820
11821 2002-01-21 Jim Blandy <jimb@redhat.com>
11822
11823 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11824 is up-to-date before running the program, not just when a program
11825 exits.
11826
11827 2002-01-21 Fred Fish <fnf@redhat.com>
11828
11829 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11830 when we have found all instructions we are looking for.
11831
11832 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11833
11834 * arm-tdep.c (arm_register_name): New function.
11835 (arm_registers_names): Make static.
11836 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11837 (arm_register_name): Declare.
11838 (REGISTER_NAME): Use it.
11839
11840 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11841 Kevin Buettner <kevinb@redhat.com>
11842
11843 Convert arm targets to new FRAME interface.
11844 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11845 (arm_frame_find_save_regs): Delete.
11846 (arm_frame_init_saved_regs): New.
11847 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11848 Allocate extra_info as required. Convert all uses of fsr.regs
11849 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11850 to use extra_info.
11851 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11852 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11853 (check_prologue_cache, save_prologue_cache): Likewise.
11854 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11855 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11856 (FRAME_FIND_SAVED_REGS): Delete.
11857 (arm_frame_find_saved_regs): Delete prototype.
11858 (arm_frame_init_saved_regs): New prototype.
11859 (FRAME_INIT_SAVED_REGS): Define.
11860
11861 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11862
11863 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11864
11865 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11866
11867 From Jeff Law <law@redhat.com>:
11868 * infttrace.c: Include <sys/pstat.h>.
11869 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11870 exec file if the ttrace equivalent fails.
11871
11872 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11873
11874 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11875 (closeLogFile): Ditto.
11876
11877 2002-01-20 Michael Chastain <mec@shout.net>
11878
11879 * top.c (print_gdb_version): Bump copyright year to 2002.
11880
11881 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11882
11883 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11884 Zannoni and Eli Zaretskii.
11885
11886 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11887
11888 * buildsym.c: Update copyright years.
11889 * c-typeprint.c: Likewise.
11890 * dwarf2read.c: Likewise.
11891 * f-typeprint.c: Likewise.
11892 * gdbtypes.c: Likewise.
11893 * gdbtypes.h: Likewise.
11894 * hp-symtab-read.c: Likewise.
11895 * hpread.c: Likewise.
11896 * mdebugread.c: Likewise.
11897 * p-typeprint.c: Likewise.
11898
11899 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11900
11901 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11902 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11903 byte-order selectable.
11904 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11905 * arch-utils.c: Ditto.
11906 (set_endian): Ditto.
11907 (set_endian_from_file): Ditto.
11908 * gdbserver/low-sim.c (create_inferior): Ditto.
11909 * gdbarch.sh: Ditto.
11910 * gdbarch.h: Re-generate.
11911 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11912 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11913 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11914 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11915 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11916 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11917 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11918 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11919 macro definition.
11920 * config/mips/tm-wince.h: Remove #undef of macro
11921 TARGET_BYTE_ORDER_SELECTABLE.
11922 * config/sh/tm-wince.h: Ditto.
11923
11924 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11927 member function fields. Add accessor macro
11928 TYPE_FN_FIELD_ARTIFICIAL.
11929 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11930 * c-typeprint.c (c_type_print_base): Skip artificial member
11931 functions.
11932
11933 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11934
11935 * f-typeprint.c: Delete unused function f_type_print_args.
11936 * p-typeprint.c: Delete unused function pascal_type_print_args.
11937
11938 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11939
11940 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11941 comment. Add ``artificial'' to ``union field_location''.
11942
11943 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11944
11945 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11946 * mdebugread.c (parse_symbol): Likewise.
11947 * stabsread.c (define_symbol): Likewise.
11948 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11949 initializing TYPE_FIELD_BITPOS to n (obsolete).
11950 (hpread_doc_function_type): Likewise.
11951 * hpread.c (hpread_function_type): Likewise.
11952
11953 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11954
11955 * configure.in (host_makefile_frag): Only require a host makefile
11956 fragment when a native build.
11957 * configure: Re-generate.
11958
11959 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11960
11961 * doublest.h (floatformat_from_type): Declare.
11962 * doublest.c (floatformat_from_type): New function.
11963 (convert_typed_floating): Use.
11964
11965 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11966 call to function floatformat_from_type.
11967
11968 * gdbarch.sh (IEEE_FLOAT): Delete.
11969 * gdbarch.h, gdbarch.c: Re-generate.
11970 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11971 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11972 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11973 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11974 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11975 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11976 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11977 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11978 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11979 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11980 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11981 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11982
11983 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11984 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11985 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11986 * sh-tdep.c (sh_gdbarch_init): Ditto.
11987 * mips-tdep.c (mips_gdbarch_init): Ditto.
11988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11989 * cris-tdep.c (cris_gdbarch_init): Ditto.
11990
11991 2002-01-20 Jiri Smid <smid@suse.cz>
11992
11993 * configure.host, configure.tgt: Support x86-64.
11994 * NEWS: Note new target x86-64.
11995
11996 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11997 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11998 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11999 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12000 x86-64-linux-nat.o): Fix dependencies.
12001
12002 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12003
12004 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12005 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12006 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12007 * config/sparc/xm-sun4os4.h: Delete file.
12008 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12009
12010 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12011
12012 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12013 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12014 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12015 * config/i386/i386lynx.mh (XM_FILE): Delete.
12016 * config/rs6000/xm-rs6000ly.h: Delete file.
12017 * config/sparc/xm-sparclynx.h: Delete file.
12018 * config/m68k/xm-m68klynx.h: Delete file.
12019 * config/i386/xm-i386lynx.h: Delete file.
12020 * config/xm-lynx.h: Delete file.
12021 * config/djgpp/fnchange.lst: Update.
12022
12023 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12024
12025 * alpha-tdep.c (alpha_register_byte): New function.
12026 (alpha_register_raw_size): Ditto.
12027 (alpha_register_virtual_size): Ditto.
12028 (alpha_skip_prologue_internal): Renamed from
12029 alpha_skip_prologue.
12030 (alpha_skip_prologue): New version that calls
12031 alpha_skip_prologue_internal.
12032 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12033 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12034 second argument from alpha_skip_prologue.
12035 (REGISTER_BYTE): Use alpha_register_byte.
12036 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12037 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12038 (FRAMELESS_FUNCTION_INVOCATION): Use
12039 generic_frameless_function_invocation_not.
12040 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12041 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12042
12043 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12044
12045 * config/mips/xm-news-mips.h: Delete file.
12046 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12047
12048 * config/m88k/xm-m88k.h: Delete file.
12049 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12050 * config/m88k/xm-delta88v4.h: Ditto.
12051 * config/m88k/xm-delta88.h: Ditto.
12052
12053 * config/alpha/xm-fbsd.h: Delete file.
12054 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12055
12056 * config/sparc/xm-sparc.h: Delete file.
12057 * Makefile.in (xm-sun4os4.h): Delete dependency.
12058 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12059 * config/sparc/xm-sun4os4.h: Ditto.
12060 * config/sparc/xm-linux.h: Ditto.
12061
12062 * config/i386/xm-windows.h: Delete file.
12063
12064 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12065
12066 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12067 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12068
12069 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12070
12071 * alpha-tdep.c (alpha_call_dummy_words): New.
12072 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12073 (CALL_DUMMY_P): Define.
12074 (CALL_DUMMY_WORDS): Define.
12075 (SIZEOF_CALL_DUMMY_WORDS): Define.
12076
12077 2002-01-19 Per Bothner <per@bothner.com>
12078
12079 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12080 isn't NULL, which can happen with some gcj-3.x-produced code.
12081
12082 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12083
12084 * alpha-tdep.c (alpha_register_virtual_type): New function.
12085 (alpha_init_frame_pc_first): Ditto.
12086 (alpha_fix_call_dummy): Ditto.
12087 (alpha_store_struct_return): Ditto.
12088 (alpha_extract_struct_value_address): Ditto.
12089 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12090 alpha_register_virtual_type.
12091 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12092 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12093 alpha_extract_struct_value_address.
12094 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12095 (INIT_FRAME_PC): Use init_frame_pc_noop.
12096 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12097
12098 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12099
12100 * i386gnu-nat.c: Include "i386-tdep.h".
12101 (fetch_fpregs): Simplify code dealing with uninitialized floating
12102 point states such that it doesn't require FP7_REGNUM.
12103
12104 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12105
12106 * alpha-tdep.c (frame_extra_info): New.
12107 (alpha_find_saved_regs): Make static. Use
12108 frame->extra_info.
12109 (alpha_frame_init_saved_regs): New function.
12110 (alpha_frame_saved_pc): Use frame->extra_info.
12111 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12112 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12113 (init_extra_frame_info): Rename to...
12114 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12115 (alpha_print_extra_frame_info): New function.
12116 (alpha_frame_locals_address): Ditto.
12117 (alpha_frame_args_address): Ditto.
12118 (alpha_pop_frame): Use frame->extra_info.
12119 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12120 alpha_frame_args_address.
12121 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12122 (alpha_find_saved_regs): Remove prototype.
12123 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12124 (EXTRA_FRAME_INFO): Remove.
12125 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12126 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12127
12128 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12129
12130 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12131 (alpha_cannot_fetch_register): Ditto.
12132 (alpha_cannot_store_register): Ditto.
12133 (alpha_register_convertible): Ditto.
12134 (alpha_use_struct_convention): Ditto.
12135 * config/alpha/tm-alpha.h: Update copyright years.
12136 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12137 (INNER_THAN): Use core_addr_lessthan.
12138 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12139 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12140 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12141 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12142 (FRAME_CHAIN): Remove unnecessary cast.
12143
12144 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12145
12146 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12147 obsolete.
12148
12149 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12150
12151 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12152 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12153 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12154 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12155 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12156 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12157 * x86-64-linux-nat.c: Ditto.
12158
12159 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12160
12161 * alpha-tdep.c (alpha_register_name): New function.
12162 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12163 (REGISTER_NAME): Define.
12164
12165 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12166
12167 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12168
12169 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12170
12171 * alpha-tdep.c: Update copyright years.
12172 (alpha_next_pc): New function.
12173 (alpha_software_single_step): Ditto.
12174 * config/alpha/tm-alpha.h: Add prototype for
12175 alpha_software_single_step.
12176
12177 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12178
12179 * alphabsd-nat.c: Update copyright years.
12180 (fill_gregset): Use regcache_collect.
12181 (fill_fpregset): Likewise.
12182 (fetch_inferior_registers): Only fetch integer registers
12183 if requested to do so.
12184 (store_inferior_registers): Only store integer registers
12185 if requested to do so.
12186
12187 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12188
12189 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12190 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12191 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12192 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12193 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12194 * config/arm/linux.mh (XDEPFILES): Delete.
12195 * config/arm/nbsd.mh (XDEPFILES): Delete.
12196 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12197 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12198 * config/i386/i386m3.mh (XDEPFILES): Delete.
12199 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12200 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12201 * config/i386/fbsd.mh (XDEPFILES): Delete.
12202 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12203 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12204 * config/i386/i386v4.mh (XDEPFILES): Delete.
12205 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12206 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12207 * config/i386/i386aix.mh (XDEPFILES): Delete.
12208 * config/i386/go32.mh (XDEPFILES): Delete.
12209 * config/i386/cygwin.mh (XDEPFILES): Delete.
12210 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12211 * config/i386/i386mach.mh (XDEPFILES): Delete.
12212 * config/i386/i386v32.mh (XDEPFILES): Delete.
12213 * config/i386/linux.mh (XDEPFILES): Delete.
12214 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12215 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12216 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12217 * config/i386/i386sco.mh (XDEPFILES): Delete.
12218 * config/i386/i386v.mh (XDEPFILES): Delete.
12219 * config/i386/nbsd.mh (XDEPFILES): Delete.
12220 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12221 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12222 * config/i386/symmetry.mh (XDEPFILES): Delete.
12223 * config/i386/obsd.mh (XDEPFILES): Delete.
12224 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12225 * config/ia64/linux.mh (XDEPFILES): Delete.
12226 * config/ia64/aix.mh (XDEPFILES): Delete.
12227 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12228 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12229 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12230 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12231 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12232 * config/m68k/linux.mh (XDEPFILES): Delete.
12233 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12234 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12235 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12236 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12237 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12238 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12239 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12240 * config/m88k/delta88.mh (XDEPFILES): Delete.
12241 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12242 * config/m88k/m88k.mh (XDEPFILES): Delete.
12243 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12244 * config/mips/linux.mh (XDEPFILES): Delete.
12245 * config/mips/irix6.mh (XDEPFILES): Delete.
12246 * config/mips/irix5.mh (XDEPFILES): Delete.
12247 * config/mips/irix4.mh (XDEPFILES): Delete.
12248 * config/mips/irix3.mh (XDEPFILES): Delete.
12249 * config/mips/decstation.mh (XDEPFILES): Delete.
12250 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12251 (NATDEPFILES): Move core-aout.o to here.
12252 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12253 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12254 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12255 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12256 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12257 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12258 * config/pa/hpux11.mh (XDEPFILES): Delete.
12259 * config/powerpc/aix.mh (XDEPFILES): Delete.
12260 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12261 * config/powerpc/linux.mh (XDEPFILES): Delete.
12262 * config/romp/rtbsd.mh: Rename XDEPFILES.
12263 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12264 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12265 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12266 * config/s390/s390.mh (XDEPFILES): Delete.
12267 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12268 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12269 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12270 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12271 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12272 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12273 * config/sparc/linux.mh (XDEPFILES): Delete.
12274 * config/vax/vaxult.mh (XDEPFILES): Delete.
12275 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12276 * Makefile.in (DEPFILES): Remove XDEPFILES.
12277
12278 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12279
12280 * utils.c (internal_verror): Fix comments, default is yes not no.
12281 Update queries to match. Default to quit and dump core.
12282
12283 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12284
12285 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12286 copyright.
12287 * defs.h, event-top.c, gdbcmd.h: Ditto.
12288 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12289 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12290 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12291 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12292 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12293 * mi/mi-main.c:Ditto.
12294
12295 * stack.c, symfile.c: Update copyright.
12296
12297 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12300 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12301 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12302 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12303
12304 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12305
12306 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12307 * gdbserver/low-lynx.c (myattach): Likewise.
12308 * gdbserver/low-nbsd.c (myattach): Likewise.
12309 * gdbserver/low-sim.c (myattach): Likewise.
12310 * gdbserver/low-sparc.c (myattach): Likewise.
12311 * gdbserver/low-sun3.c (myattach): Likewise.
12312
12313 * gdbserver/low-linux.c (myattach): New function.
12314
12315 * gdbserver/server.c (attach_inferior): New function.
12316 (main): Handle "--attach".
12317
12318 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12319
12320 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12321 maintainer.
12322
12323 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12324
12325 * c-typeprint.c (is_type_conversion_operator): Add additional
12326 check for non-conversion operators.
12327
12328 2002-01-15 Michael Snyder <msnyder@redhat.com>
12329
12330 * linux-proc.c: Add "info proc" command, a la procfs.c.
12331 (read_mapping): New function, abstract and re-use code.
12332 (linux_find_memory_regions): Use new func read_mapping.
12333 (linux_info_proc_cmd): New function, implement "info proc".
12334 (_initialize_linux_proc): Add new command "info proc".
12335
12336 2002-01-15 Michael Snyder <msnyder@redhat.com>
12337
12338 * symfile.c (generic_load): Use bfd_map_over_sections method
12339 instead of manipulating bfd structure members directly.
12340 (add_section_size_callback): New function, bfd sections callback
12341 used by generic_load.
12342 (load_sections_callback): New function, bfd sections callback
12343 used by generic_load.
12344
12345 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12346
12347 [Based on work by Jim Blandy]
12348 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12349 (builtin_type_vec128): Export.
12350 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12351 types.
12352 (builtin_type_vec128): New builtin type for 128 bit vector
12353 registers.
12354 (build_gdbtypes): Initialize builtin_type_v16qi and
12355 builtin_type_v8hi. Create the vec128 register builtin type
12356 structure.
12357 (build_builtin_type_vec128): New function.
12358 (_initialize_gdbtypes): Register builtin_type_v16qi and
12359 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12360 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12361 AltiVec register to new builtin type.
12362
12363 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12364
12365 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12366 to make_cv_type.
12367
12368 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12369
12370 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12371 CLEAN_UP_REGISTER_VALUE.
12372 * regcache.c (supply_register): Update only call.
12373
12374 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12375
12376 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12377 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12378 a29k-*-vxworks* targets as obsolete.
12379
12380 2002-01-14 Michael Snyder <msnyder@redhat.com>
12381
12382 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12383 until we can resolve portability issues.
12384 * gregset.h: Remove references to fpxregs.
12385 * gcore.c (gcore_command): Initialize note_sec to NULL.
12386
12387 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12388
12389 * signals.c (target_signal_to_name): Rewrite. Only use
12390 signals[].name when in bounds and non-NULL.
12391
12392 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12393
12394 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12395 * signals.c (target_signal_to_name): Verify that SIG is within the
12396 bounds of the signals array.
12397
12398 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12399
12400 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12401
12402 2002-01-13 Keith Seitz <keiths@redhat.com>
12403
12404 * stack.c (print_frame_info_base): Print the frame's pc
12405 only if when print_frame_info_listing_hook is not defined.
12406
12407 2002-01-13 Keith Seitz <keiths@redhat.com>
12408
12409 * varobj.c (varobj_set_value): Make sure that there were no
12410 errors evaluating the object before attempting to set its
12411 value.
12412 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12413 so this offset adjustment is no longer necessary.
12414 (create_child): Don't set the error flag if the child is
12415 a CPLUS_FAKE_CHILD.
12416 (value_of_child): If value_fetch_lazy fails, return NULL
12417 so that callers will be notified that an error occurred.
12418 (c_value_of_variable): Delay check of variable's validity
12419 until later. We actually want all structs and unions to have
12420 the value "{...}".
12421 Do not return "???" for variables which could not be evaluated.
12422 This error condition must be returned to the caller so that it
12423 can get the error condition from gdb.
12424 (cplus_name_of_child): Adjust index for vptr before figuring
12425 out the name of the child.
12426 (cplus_value_of_child): If a child's (real) parent is not valid,
12427 don't even bother trying to give a value for it. Just return
12428 an error. Change all instances in this function.
12429 (cplus_type_of_child): If our parent is one of the "fake"
12430 parents, we need to get at the type of the real parent, and
12431 derive the child's true type using this information.
12432
12433 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12434
12435 From 2002-01-09 John Marshall <johnm@falch.net>:
12436 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12437 sources.redhat.com, and tweak some related URLs which had
12438 suffered from linkrot.
12439
12440 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12441
12442 From Jeff law:
12443 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12444 structures passed in registers.
12445
12446 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12447
12448 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12449 white space which prevented compilation. Reported by DSK
12450 <dsk@student.unsw.edu.au>.
12451
12452 2002-01-11 Michael Snyder <msnyder@redhat.com>
12453
12454 * symfile.c (build_section_addr_info_from_section_tab):
12455 Use bfd access method instead of manipulating bfd directly.
12456 (syms_from_objfile): Ditto.
12457 (simple_overlay_update_1): Ditto.
12458 (simple_overlay_update): Ditto.
12459 (generic_load): Ditto.
12460 (overlay_unmapped_address): FIXME comment, bfd access methods.
12461 (sections_overlap): FIXME comment, bfd access methods.
12462 (pc_in_mapped_range): FIXME comment, bfd access methods.
12463 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12464 (section_is_mapped): FIXME comment, bfd access methods.
12465 (section_is_overlay): FIXME comment, bfd access methods.
12466
12467 * symfile.c (generic_load): Whitespace and long line cleanups.
12468 Remove duplicate variable, change several local variables to
12469 more appropriate data types.
12470 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12471
12472 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12473
12474 From Peter Schauer:
12475 * language.c (longest_local_hex_string_custom): Use phex_nz to
12476 convert NUM to a hex string.
12477
12478 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12479
12480 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12481 the function.
12482 Update Copyright year.
12483
12484 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12485
12486 * language.c (longest_raw_hex_string): Delete unused function.
12487
12488 2002-01-11 Petr Sorfa <petrs@caldera.com>
12489
12490 * MAINTAINERS (write-after-approval): Add myself.
12491 * dwarf2read.c (read_tag_string_type): Handling of
12492 DW_AT_byte_size.
12493 (read_tag_string_type): FORTRAN fix to prevent propagation of
12494 first string size.
12495 (set_cu_language): Handling of DW_LANG_Fortran95
12496
12497 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12498
12499 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12500 GETPID(inferior_ptid).
12501 (store_inferior_registers): Likewise.
12502
12503 2002-01-10 Jason Merrill <jason@redhat.com>
12504
12505 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12506 Fix DW_OP_minus.
12507
12508 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12509
12510 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12511 and bfd/elf32-sh-nbsd.c.
12512
12513 2002-01-10 Michael Snyder <msnyder@redhat.com>
12514
12515 * NEWS: Mention --pid and corefile/proc-id behavior change.
12516
12517 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12518 * gcore.c: Include cli/cli-decode.h instead of command.h.
12519
12520 * main.c (captured_main): Add new command line option "--pid".
12521 If the second command line argument (following the symbol-file)
12522 begins with a digit, try to attach to it before trying to open
12523 it as a corefile.
12524 (print_gdb_help): Document the "--pid" argument.
12525
12526 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12527
12528 * completer.c (command_completer): New function.
12529
12530 * completer.h <command_completer>: Add prototype.
12531
12532 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12533 completer for the "help" command.
12534
12535 2002-01-09 Jason Merrill <jason@redhat.com>
12536
12537 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12538
12539 2002-01-09 Michael Snyder <msnyder@redhat.com>
12540
12541 * i386-linux-nat.c (fill_fpxregset): Make global.
12542 (store_fpxregset): Ditto.
12543
12544 * gregset.h (gdb_fpxregset_t): Define.
12545 (supply_fpxregset): Prototype.
12546 (fill_fpxregset): Prototype.
12547
12548 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12549
12550 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12551
12552 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12553 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12554 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12555
12556 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12557
12558 * MAINTAINERS: Update target maintainer rules so that any
12559 Maintainer can approve a tested patch for a maintenance-only
12560 target.
12561
12562 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12563
12564 * MAINTAINERS (write-after-approval): Add myself.
12565
12566 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12567 IN_SIGTRAMP.
12568
12569 2002-01-08 Michael Snyder <msnyder@redhat.com>
12570
12571 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12572 real name of the executable, rather than the /proc name.
12573
12574 2002-01-03 Michael Snyder <msnyder@redhat.com>
12575
12576 Implement a "generate-core-file" command in gdb, save target state.
12577 * gcore.c: New file. Implement new command 'generate-core-file'.
12578 Save a corefile image of the current state of the inferior.
12579 * linux-proc.c: Add linux-specific code for saving corefiles.
12580 * target.h (struct target_ops): Add new target vectors for saving
12581 corefiles; to_find_memory_regions and to_make_corefile_notes.
12582 (target_find_memory_regions): New macro.
12583 (target_make_corefile_notes): New macro.
12584 * target.c (update_current_target): Inherit new target methods.
12585 (dummy_find_memory_regions): New place-holder method.
12586 (dummy_make_corefile_notes): New place-holder method.
12587 (init_dummy_target): Initialize new dummy target vectors.
12588 * exec.c (exec_set_find_memory_regions): New function.
12589 Allow the exec_ops vector for memory regions to be taken over.
12590 (exec_make_note_section): New function, target vector method.
12591 * defs.h (exec_set_find_memory_regions): Export prototype.
12592 * procfs.c (proc_find_memory_regions): New function, corefile method.
12593 (procfs_make_note_section): New function, corefile method.
12594 (init_procfs_ops): Set new target vector pointers.
12595 (find_memory_regions_callback): New function.
12596 (procfs_do_thread_registers): New function.
12597 (procfs_corefile_thread_callback): New function.
12598 * sol-thread.c (sol_find_memory_regions): New function.
12599 (sol_make_note_section): New function.
12600 (init_sol_thread_ops): Initialize new target vectors.
12601 * inftarg.c (inftarg_set_find_memory_regions): New function.
12602 Allow to_find_memory_regions vector to be taken over.
12603 (inftarg_set_make_corefile_notes): New function.
12604 Allow to_make_corefile_notes vector to be taken over.
12605 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12606 interface layer if not target_has_execution (may be a corefile).
12607 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12608 * config/sparc/sun4sol2.mh: Ditto.
12609 * config/alpha/alpha-linux.mh: Ditto.
12610 * config/arm/linux.mh: Ditto.
12611 * config/i386/x86-64linux.mh: Ditto.
12612 * config/ia64/linux.mh: Ditto.
12613 * config/m68k/linux.mh: Ditto.
12614 * config/mips/linux.mh: Ditto.
12615 * config/powerpc/linux.mh: Ditto.
12616 * config/sparc/linux.mh: Ditto.
12617
12618 2002-01-07 Michael Snyder <msnyder@redhat.com>
12619
12620 * arm-linux-nat.c: Remove references to regcache.c internal data
12621 (registers[] and register_valid[]).
12622
12623 2002-01-07 Michael Snyder <msnyder@redhat.com>
12624
12625 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12626 so that attaching to a pid will automatically read the process's
12627 symbol file and shlibs.
12628 * Makefile.in: Add rule for linux-proc.o.
12629 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12630 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12631 * config/arm/linux.mh: Ditto.
12632 * config/i386/linux.mh: Ditto.
12633 * config/i386/x86-64linux.mh: Ditto.
12634 * config/ia64/linux.mh: Ditto.
12635 * config/m68k/linux.mh: Ditto.
12636 * config/mips/linux.mh: Ditto.
12637 * config/powerpc/linux.mh: Ditto.
12638 * config/sparc/linux.mh: Ditto.
12639
12640 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12641
12642 * win32-nat.c: Add i386-tdep.h dependency.
12643
12644 2002-01-07 Michael Snyder <msnyder@redhat.com>
12645
12646 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12647 instead of bfd_get_arch_size. Don't bail out just because
12648 there's no exec_bfd.
12649
12650 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12651 * p-valprint.c (pascal_object_print_value): Ditto.
12652 * somread.c (som_symtab_read): Ditto.
12653 * symfile.c (simple_free_overlay_region_table): Ditto.
12654 * valops.c (value_assign): Ditto.
12655
12656 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12657 use tilde_expand and strerror for opening save-tracepoints file.
12658
12659 * thread-db.c (thread_db_new_objfile): Indendation fix.
12660
12661 * infptrace.c (GDB_MAX_ALLOCA): New define.
12662 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12663 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12664 can be overridden with whatever value is appropriate to the host).
12665 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12666 alloca to allocate potentially large buffer.
12667 * rs6000-nat.c (child_xfer_memory): Ditto.
12668 * symm-nat.c (child_xfer_memory): Ditto.
12669 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12670
12671 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12672
12673 From Nick Clifton <nickc@redhat.com>
12674 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12675
12676 2002-01-07 Michael Snyder <msnyder@redhat.com>
12677
12678 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12679 Don't use exec_bfd if it's NULL.
12680
12681 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12682
12683 * valops.c (value_arg_coerce): Fix formatting.
12684
12685 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12686
12687 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12688 * gnu-nat.c: Ditto.
12689
12690 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12691
12692 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12693 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12694 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12695 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12696 z8k-coff have not been multi-arched. Update z8k-coff build
12697 status.
12698
12699 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12700
12701 * MAINTAINERS: Mark a29k target as obsolete.
12702 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12703 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12704 comments.
12705 * NEWS: Note that a29k targets are obsolete.
12706 * a29k-tdep.c: Mark as obsolete.
12707 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12708 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12709 a29k-*-vxworks* targets as obsolete.
12710 * remote-adapt.c: Obsolete.
12711 * remote-eb.c: Obsolete.
12712 * remote-mm.c: Obsolete.
12713 * remote-udi.c: Obsolete.
12714 * config/a29k/a29k-udi.mt: Obsolete.
12715 * config/a29k/a29k.mt: Obsolete.
12716 * config/a29k/tm-a29k.h: Obsolete.
12717 * config/a29k/tm-vx29k.h: Obsolete.
12718 * config/a29k/vx29k.mt: Obsolete.
12719
12720 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12721
12722 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12723 with BFD_ENDIAN_BIG.
12724
12725 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12726
12727 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12728 * configure, config.in: Re-generate.
12729 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12730 * defs.h: Do not include <endian.h>.
12731
12732 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12733
12734 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12735 * config.in: Regenerate.
12736 * configure.in: Update copyright years.
12737 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12738 * configure: Regenerate.
12739 * i386bsd-nat.c: Update copyright years.
12740 (fill_gregset): Use regcache_collect.
12741 (fetch_inferior_registers): Only fetch integer registers
12742 if requested to do so. Add support for XMM registers
12743 using PT_GETXMMREGS.
12744 (store_inferior_registers): Only store integer registers
12745 if requested to do so. Add support for XMM registers
12746 using PT_SETXMMREGS.
12747 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12748 (store_inferior_registers): Remove.
12749 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12750 (fetch_elfcore_registers): New function.
12751 (i386nbsd_elfcore_fns): New.
12752 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12753 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12754 i386bsd-nat.o.
12755 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12756 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12757 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12758 * config/i386/tm-nbsd.h: Update copyright years.
12759 (HAVE_SSE_REGS): Define.
12760 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12761 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12762 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12763 (SIGCONTEXT_PC_OFFSET): Remove.
12764 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12765
12766 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12767
12768 * configure.tgt: Remove powerpc-*-macos* target.
12769 * config/m68k/xm-mpw.h: Delete file.
12770 * config/xm-mpw.h: Delete file.
12771 * ser-mac.c: Delete file.
12772 * mpw-make.sed: Delete file.
12773 * mpw-config.in: Delete file.
12774 * mac-xdep.c: Delete file.
12775 * mac-gdb.r: Delete file.
12776 * mac-defs.h: Delete file.
12777 * mac-nat.c: Delete file.
12778 * config/powerpc/macos.mh: Delete file.
12779 * config/powerpc/macos.mt: Delete file.
12780 * config/powerpc/nm-macos.h: Delete file.
12781 * config/powerpc/tm-macos.h: Delete file.
12782 * source.c (openp, open_source_file): Remove obsolete code.
12783 * top.c (gdb_readline): Ditto.
12784 * utils.c (query): Ditto.
12785 * event-top.c (display_gdb_prompt): Ditto.
12786 * Makefile.in (ser-mac.o): Delete obsolete target.
12787 * NEWS: Update.
12788
12789 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12790
12791 * defs.h (BIG_ENDIAN): Delete macro definition.
12792 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12793 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12794 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12795 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12796 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12797 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12798 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12799 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12800 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12801 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12802 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12803 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12804 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12805 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12806 * gdbarch.c: Re-generate.
12807
12808 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12809
12810 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12811 for core files.
12812
12813 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12814
12815 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12816
12817 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12818
12819 * value.h (value_ptr): Delete typedef.
12820
12821 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12822
12823 * i386nbsd-nat.c: Update copyright years.
12824 Include i386-tdep.h.
12825
12826 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12827
12828 * stabsread.c: Update copyright years.
12829
12830 From Debashis Mahata <debashis.mahata@wipro.com>:
12831 (read_struct_fields): Deal with Sun C compiler erroneous stab
12832 output for structs and unions.
12833 Fix PR gdb/269.
12834
12835 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12836
12837 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12838 prototype.
12839
12840 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12841
12842 * cp-abi.c: Fix whitespace.
12843 (baseclass_offset): New wrapper function.
12844 * cp-abi.h (baseclass_offset): Add prototype.
12845 (struct cp_abi_ops): Add baseclass_offset pointer.
12846
12847 * valops.c (vb_match): Move to...
12848 * gnu-v2-abi.c (vb_match): here.
12849 * valops.c (baseclass_offset): Move to...
12850 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12851
12852 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12853
12854 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12855 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12856 * hpacc-abi.c (init_hpacc_ops): Likewise.
12857
12858 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12859
12860 * valops.c (find_overload_match): Accept obj as a
12861 reference parameter. Update it before returning.
12862 * value.h (find_overload_match): Update prototype.
12863 * eval.c (evaluate_subexp_standard): Pass object to
12864 find_overload_match by reference.
12865
12866 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12867
12868 * valarith.c: Replace value_ptr with struct value pointer. Remove
12869 register attribute from value declarations.
12870 * valops.c: Ditto.
12871 * value.h: Ditto.
12872 * scm-lang.c (scm_lookup_name): Ditto.
12873
12874 2002-01-03 Michael Snyder <msnyder@redhat.com>
12875
12876 Abstract the functionality of iterating over mapped memory
12877 regions into a general purpose iterator function.
12878 * procfs.c (iterate_over_mappings): New function, general purpose
12879 iterator for memory sections.
12880 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12881 (solib_mappings_callback): New function, callback for above.
12882 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12883 (info_mappings_callback): New function, callback for above.
12884
12885 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12886
12887 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12888
12889 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12890 * i386-tdep.c: Include "elf-bfd.h".
12891 (process_note_abi_tag_sections): New function.
12892 (i386_gdbarch_init): Add code to recognize various OS/ABI
12893 combinations.
12894
12895 * maint.c (_initialize_maint_cmds): Add missing \ in
12896 string-literal.
12897
12898 For older changes see ChangeLog-2001
12899 \f
12900 Local Variables:
12901 mode: change-log
12902 left-margin: 8
12903 fill-column: 74
12904 version-control: never
12905 End: