2002-11-11 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2
3 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
4 i386_fp_regnum_p.
5
6 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
7
8 * gdbtypes.h (struct main_type): Move artificial flag out of
9 loc. New member of ``struct field'' named static_kind. Reduce
10 overloaded meaning of bitsize.
11 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
12 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
13 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
14
15 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
16 new fields.
17 (template_to_fixed_record_type, template_to_static_fixed_type)
18 (to_record_with_fixed_variant_part): Likewise.
19 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
20 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
21 * dwarfread.c (struct_type, enum_type): Likewise.
22 * hpread.c (hpread_read_enum_type)
23 (hpread_read_function_type, hpread_read_doc_function_type)
24 (hpread_read_struct_type): Likewise.
25 * mdebugread.c (parse_symbol): Likewise.
26
27 2002-11-10 Andrew Cagney <ac131313@redhat.com>
28
29 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
30 * stack.c (print_frame_info_base): Update.
31 (print_frame_info_base, frame_info): Update.
32 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
33 (sparc_frame_saved_pc): Update.
34 * ada-lang.c (find_printable_frame): Update.
35 * breakpoint.c (deprecated_frame_in_dummy): Update.
36
37 2002-11-09 Mark Kettenis <kettenis@gnu.org>
38
39 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
40 defined.
41 (regmap): Extend to cover all registers.
42 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
43 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
44 definitions.
45 (fetch_register, sore_register): Simplify.
46 (old_fetch_inferior_registers, old_store_inferior_registers):
47 Remove functions.
48 (cannot_fetch_register, cannot_store_register): Change
49 implementation to use regmap array to decide which registers
50 cannot be fetched/stored. This removes $orig_eax from the
51 registers that cannot be fetched/stored.
52 (fetch_inferior_registers): Call fetch_register directly instead
53 of calling old_fetch_inferior_registers.
54 (store_inferior_registers): Call store_register directly instead
55 of calling old_store_inferior_registers.
56 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
57 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
58 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
59
60 2002-11-09 Klee Dienes <kdienes@apple.com>
61
62 * i387-tdep.c (i387_supply_register): When called with NULL as a
63 buffer, mark the register as not provided (to mirror the behavior
64 of supply_register).
65 (i387_supply_fxsave): Ditto.
66 (i387_supply_fsave): Ditto (inherits the behavior from
67 i387_supply_register).
68
69 2002-11-09 Klee Dienes <kdienes@apple.com>
70
71 * blockframe.c (sigtramp_saved_pc): Use
72 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
73 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
74 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
75
76 2002-11-09 Andrew Cagney <ac131313@redhat.com>
77
78 * frame.c (get_prev_frame): Test prev_p to identify a previously
79 unwound frame. Initialize prev_p.
80 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
81 comment.
82
83 2002-11-09 Andrew Cagney <ac131313@redhat.com>
84
85 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
86 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
87 more comments. Zap dead code.
88
89 2002-11-09 Mark Kettenis <kettenis@gnu.org>
90
91 * infcmd.c (print_vector_info, print_float_info): Move code that
92 checks whether the target has any registers and whether there is a
93 selected frame up, such that it is also used if a target provides
94 multi-arch definitions of these functions.
95
96 2002-11-08 Andrew Cagney <ac131313@redhat.com>
97
98 * Makefile.in (DESTDIR): Define.
99 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
100 prefix.
101
102 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
103 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
104
105 2002-11-08 Andrew Cagney <ac131313@redhat.com>
106
107 * i386-linux-tdep.c: Include "reggroups.h".
108 (i386_linux_register_reggroup_p): New function.
109 (i386_linux_init_abi): Set register_reggroup_p to
110 i386_linux_register_reggroup_p.
111 * i386-tdep.h (i386_register_reggroup_p): Declare.
112 * i386-tdep.c: Include "reggroups.h".
113 (i386_init_reggroups): New function.
114 (i386_add_reggroups): New function.
115 (i386_register_reggroup_p): New function.
116 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
117 (_initialize_i386_tdep): Call i386_init_reggroups.
118 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
119 specific reggroups.
120
121 2002-11-09 Mark Kettenis <kettenis@gnu.org>
122
123 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
124 request that's available in *BSD.
125
126 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
127
128 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
129 FDOFF_REGNUM.
130
131 2002-11-08 Andrew Cagney <ac131313@redhat.com>
132
133 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
134 * dummy-frame.c (find_dummy_frame): Rename
135 generic_find_dummy_frame, make static. Return the dummy frame
136 instead of the regcache.
137 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
138 (cached_find_dummy_frame): New function. Use find_dummy_frame.
139 (dummy_frame_register_unwind): Rename
140 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
141 * dummy-frame.h (dummy_frame_register_unwind): Rename
142 generic_call_dummy_register_unwind.
143
144 2002-11-08 Mark Kettenis <kettenis@gnu.org>
145
146 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
147 except the inclusion of "i386/tm-i386.h", to...
148 * config/i386/nm-i386v42mp.h: ...here.
149 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
150
151 2002-11-08 Andrew Cagney <ac131313@redhat.com>
152
153 * Makefile.in (frame.o): Update dependencies.
154 * blockframe.c (current_frame, frame_obstack_alloc)
155 (frame_saved_regs_zalloc, get_current_frame)
156 (set_current_frame, create_new_frame)
157 (set_unwind_by_pc, get_next_frame)
158 (flush_cached_frames, reinit_frame_cache)
159 (frame_saved_regs_register_unwind)
160 (deprecated_generic_get_saved_register)
161 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
162 (_initialize_blockframe): Move frame code from here...
163 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
164 "annotate.h" and "dummy-frame.h".
165 (_initialize_frame): New function.
166
167 2002-11-08 Jim Blandy <jimb@redhat.com>
168
169 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
170 when we finish a function a context.
171 * buildsym.h (outermost_context_p): New macro.
172 (Bug analyzed by David Edelsohn.)
173
174 2002-11-08 Andrew Cagney <ac131313@redhat.com>
175
176 * blockframe.c: Include "dummy-frame.h".
177 (struct dummy_frame, dummy_frame_stack)
178 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
179 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
180 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
181 (generic_save_call_dummy_addr, generic_pop_current_frame)
182 (generic_pop_dummy_frame, generic_fix_call_dummy)
183 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
184 dummy frame code from here...
185 * dummy-frame.c: ...to here. New file.
186 * dummy-frame.h: New file.
187 (generic_call_dummy_register_unwind): Declare.
188 (generic_find_dummy_frame): Declare.
189 * Makefile.in (SFILES): Add dummy-frame.c.
190 (dummy-frame.o): Specify dependencies.
191 (dummy_frame_h): Define.
192 (COMMON_OBS): Add dummy-frame.o.
193 (blockframe.o): Update dependencies.
194
195 2002-11-08 Jim Blandy <jimb@redhat.com>
196
197 * dwarf2read.c (read_func_scope): Restore local_symbols and
198 param_symbols after we finish the function context. (Based on a
199 patch from David Edelsohn.)
200
201 2002-11-08 David Carlton <carlton@math.stanford.edu>
202
203 * linespec.c (symbol_found): New function.
204 (minsym_found): New function.
205 (decode_line_1): Separate out some code into separate functions.
206
207 2002-11-08 Joel Brobecker <brobecker@gnat.com>
208
209 * i386-tdep.c (i386_frameless_signal_p): Make non static for
210 the benefit of the interix target.
211 * i386-tdep.h (i386_frameless_signal_p): Declare.
212
213 2002-11-08 Andrew Cagney <ac131313@redhat.com>
214
215 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
216 declaration that snuck in from change below.
217
218 2002-11-06 Andrew Cagney <cagney@redhat.com>
219
220 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
221 all callers.
222 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
223 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
224 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
225 (i386_mxcsr_regnum_p): new function. Use instead of
226 MXCSR_REGNUM_P.
227 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
228 (i386_sse_regnum_p): Declare.
229 (i386_mxcsr_regnum_p): Declare.
230 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
231 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
232 (IS_FP_REGNUM): Update definition.
233 (IS_FPU_CTRL_REGNUM): Update definition..
234 (IS_SSE_REGNUM): Update definition..
235 * i386v-nat.c (register_u_addr): Update.
236 * go32-nat.c (fetch_register): Update.
237 (store_register): Update.
238
239 2002-11-07 Joel Brobecker <brobecker@gnat.com>
240
241 Preparation work to convert the hppa targets to multiarch partial.
242
243 * hppa-tdep.c: Add new functions replacing macro bodies from
244 config/pa/tm-hppa.h. These function will be used to initialize
245 the gdbarch structure. Import some comments from tm-hppa.h,
246 and place them where appropriate, to avoid loosing them when
247 we cleanup this file.
248 (hppa_reg_struct_has_addr): New function.
249 (hppa_inner_than): New function.
250 (hppa_stack_align): New function.
251 (hppa_pc_requires_run_before_use): New function.
252 (hppa_instruction_nullified): New function.
253 (hppa_register_byte): New function.
254 (hppa_register_virtual_type): New function.
255 (hppa_store_struct_return): New function.
256 (hppa_cannot_store_register): New function.
257 (hppa_frame_args_address): New function.
258 (hppa_frame_locals_address): New function.
259 (hppa_smash_text_address): New function.
260 (hppa_coerce_float_to_double): New function. Requires the inclusion
261 of "language.h".
262
263 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
264
265 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
266 gdbarch-eligible macro to a call to the new associated function
267 created in hppa-tdep.c.
268 (INNER_THAN): Likewise.
269 (STACK_ALIGN): Likewise.
270 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
271 (INSTRUCTION_NULLIFIED): Likewise.
272 (REGISTER_BYTE): Likewise.
273 (REGISTER_VIRTUAL_TYPE): Likewise.
274 (STORE_STRUCT_RETURN): Likewise.
275 (CANNOT_STORE_REGISTER): Likewise.
276 (FRAME_ARGS_ADDRESS): Likewise.
277 (FRAME_LOCALS_ADDRESS): Likewise.
278 (SMASH_TEXT_ADDRESS): Likewise.
279 (COERCE_FLOAT_TO_DOUBLE): Likewise.
280 (ABOUT_TO_RETURN): Delete, as no longer used.
281
282 2002-11-07 Fernando Nasser <fnasser@redhat.com>
283
284 * printcmd.c (disassemble_command): Remove obsolete function.
285 (_initialize_printcmd): Do not create disassemble command here.
286 * cli/cli-cmds.c (disassemble_command): New function. Implements
287 disassemble command.
288 (init_cli_cmds): Create disassemble command here instead.
289
290 2002-11-07 Andrew Cagney <ac131313@redhat.com>
291
292 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
293
294 2002-11-07 Andrew Cagney <ac131313@redhat.com>
295
296 * regcache.h (regcache_cooked_read_using_offset_hack)
297 (regcache_cooked_write_using_offset_hack): Delete declarations.
298 (register_changed): Delete declaration.
299 * regcache.c (regcache_cooked_read_using_offset_hack)
300 (regcache_cooked_write_using_offset_hack): Delete functions.
301 (cooked_xfer_using_offset_hack): Delete function.
302 (register_changed): Delete function.
303
304 2002-11-07 Jim Blandy <jimb@redhat.com>
305
306 * macroscope.c: #include "complaints.h".
307 (sal_macro_scope): Cope with filenames that appear in the symtabs,
308 but not in the macro table.
309 * Makefile.in (macroscope.o): Record dependency.
310
311 2002-11-07 Joel Brobecker <brobecker@gnat.com>
312
313 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
314
315 2002-11-07 Andrew Cagney <ac131313@redhat.com>
316
317 * regcache.c (deprecated_registers_fetched): Update.
318 * regcache.h (deprecated_registers_fetched): Rename
319 registers_fetched.
320 * remote-vxsparc.c (vx_read_register): Update.
321 * remote-vxmips.c (vx_read_register): Update.
322 * remote-vx68.c (vx_read_register): Update.
323 * irix5-nat.c (fetch_core_registers): Update.
324 * mipsm3-nat.c (fetch_inferior_registers): Update.
325 * sun3-nat.c (fetch_inferior_registers): Update.
326 * symm-nat.c (fetch_inferior_registers): Update.
327 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
328 (fetch_core_registers): Update.
329 (fetch_kcore_registers): Update.
330 * mips-nat.c (fetch_inferior_registers): Update.
331 * corelow.c (get_core_registers): Update.
332 * a68v-nat.c (fetch_inferior_registers): Update.
333
334 2002-11-06 Joel Brobecker <brobecker@gnat.com>
335
336 Put in place the framework necessary for multiarching the hppa targets.
337 * hppa-tdep.c (hppa_gdbarch_init): New function.
338 (hppa_dump_tdep): New function.
339 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
340 tdep structure dumper.
341 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
342 until the multi-arching conversion has partially been completed.
343
344 2002-11-06 Andrew Cagney <ac131313@redhat.com>
345
346 * valops.c (value_assign): Merge lval_register case into
347 lval_reg_frame_relative. Use frame_register and
348 regcache_cooked_write instead of get_saved_register and
349 write_register_bytes. After flushing the register cache, try to
350 re-select the selected frame.
351
352 2002-11-06 Andrew Cagney <ac131313@redhat.com>
353
354 * regcache.h (deprecated_register_valid): Rename register_valid.
355 * regcache.c: Update.
356 * ia64-aix-nat.c: Update.
357 * i386gnu-nat.c: Update.
358 * alpha-nat.c: Update.
359 * sparc-nat.c: Update.
360 * lynx-nat.c: Update.
361 * remote-mips.c: Update.
362
363 2002-11-06 Joel Brobecker <brobecker@gnat.com>
364
365 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
366 to end of file, to be more consistent with the pratice followed
367 by other targets.
368
369 2002-11-06 Andrew Cagney <ac131313@redhat.com>
370
371 * infcmd.c: Include "reggroups.h" and <ctype.h>.
372 (print_float_info): Print registers in float_reggroup.
373 (print_vector_info): Print registers in vector_reggroup.
374 (default_print_registers_info): When all, print registers in
375 all_reggroup. Otherwize, print registers in general_reggroup.
376 (registers_info): Rewrite. Add support for register groups.
377 Eliminate a goto.
378
379 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
380
381 * symtab.c (methods_info): Delete. It has been ifdeffed out for
382 ages.
383 (symtab_symbol_info): Remove eons old ifdeffed out code.
384 (_initialize_symtab): Remove prehistoric disabled 'info methods'
385 command.
386
387 2002-11-06 Theodore A. Roth <troth@openavr.org>
388
389 * c-exp.y: Add missing semi-colons.
390 * f-exp.y: Add missing semi-colons.
391 * m2-exp.y: Add missing semi-colons.
392 * p-exp.y: Add missing semi-colons.
393 Add empty action to start rule to avoid a type clash error when
394 building with bison >= 1.50.
395
396 2002-11-06 Jim Blandy <jimb@redhat.com>
397
398 * macrotab.h (struct macro_source_file): Doc fix.
399
400 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
401
402 * varobj.c (child_exists, cplus_number_of_children): Change
403 STREQ macro references to strcmp.
404 (cplus_name_of_child): Change code to handle the fact that
405 fields are not necessarily contiguous with regards to their
406 access control. This is a fix for PR gdb/792.
407
408 2002-11-05 Andrew Cagney <ac131313@redhat.com>
409
410 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
411 * gdbarch.h, gdbarch.c: Regnerate.
412 * frame.h (frame_register): Declare.
413 * frame.c (frame_register): New function.
414 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
415 GET_SAVED_REGISTER, otherwize call
416 generic_unwind_get_saved_register.
417 (frame_register_read): Use frame_register instead of
418 get_saved_register.
419
420 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
421
422 From Jim Ingham <jingham@apple.com>:
423 * event-top.c (gdb_disable_readline): New function.
424 (_initialize_event_loop): Move comment.
425
426 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
427
428 * event-loop.c (start_event_loop): Add comment.
429 Update copyright.
430
431 2002-11-05 Andrew Cagney <ac131313@redhat.com>
432
433 * infcmd.c (default_print_registers_info): Do not call
434 PRINT_REGISTER_HOOK.
435
436 2002-11-05 Andrew Cagney <ac131313@redhat.com>
437
438 * sparc-tdep.c (sparc_print_register_hook): Make static.
439 (sparc_print_registers_info): New function.
440 (sparc_do_registers_info): New function.
441 (sparclet_print_registers_info): New function.
442 (sparclet_do_registers_info): New function.
443 (do_sparc_print_registers_info): New function.
444 (sparc_print_registers): New static function, clone of infcmd.c's
445 default_print_registers_info.
446 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
447 (sparclet_do_registers_info): Declare.
448 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
449 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
450 Re-define.
451 (sparc_do_registers_info): Declare.
452 (PRINT_REGISTER_HOOK): Delete macro.
453 (sparc_print_register_hook): Delete declaration.
454
455 2002-11-05 David Carlton <carlton@math.stanford.edu>
456
457 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
458 functions.
459 (lookup_symbol_aux_local): New function.
460 (lookup_symbol_aux_symtabs): New function.
461 (lookup_symbol_aux_psymtabs): New function.
462
463 2002-11-05 David Carlton <carlton@math.stanford.edu>
464
465 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
466 previous values of 'objfile' and 'block'.
467
468 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
469
470 * values.c (value_change_enclosing_type): Set
471 enclosing_type field correctly also for the case where
472 more memory needs to be allocated.
473
474 2002-11-03 Mark Kettenis <kettenis@gnu.org>
475
476 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
477 of puts_filtered.
478
479 * i387-tdep.c (i387_print_float_info): Replace calls to
480 register_read and deprecated_read_register_gen with calls to
481 frame_register_read, and make the necessary adjustments to the
482 surrounding code.
483
484 2002-11-02 Andrew Cagney <ac131313@redhat.com>
485
486 * gdbarch.sh (register_reggroup_p): Allow default value.
487 * gdbarch.h, gdbarch.c: Regenerate.
488
489 2002-11-02 Andrew Cagney <ac131313@redhat.com>
490
491 * regcache.h: Add coment indicating replacements for deprecated
492 functions.
493
494 2002-11-02 Andrew Cagney <cagney@redhat.com>
495
496 * reggroups.h, reggroups.c: New files.
497 * regcache.c: Include "reggroups.h".
498 (enum regcache_dump_what): Add `regcache_dump_groups'.
499 (regcache_dump): Contract size of the "Type" column. When
500 specified, dump the register's groups.
501 (maintenance_print_register_groups): New function.
502 (_initialize_regcache): Add command `maint print register-groups'.
503 * Makefile.in (COMMON_OBS): Add reggroups.o
504 (SFILES): Add reggroups.c.
505 (reggroups_h): Define.
506 (regcache.o, gdbarch.o): Update dependencies.
507 (reggroups.o): Specify dependencies.
508 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
509 Add opaque declaration for `struct reggroup' in generated .h file.
510 Include "reggroups.h" in generated .c file.
511 gdbarch.h, gdbarch.c: Re-generate.
512
513 2002-11-02 Andrew Cagney <cagney@redhat.com>
514
515 * regcache.h (deprecated_read_register_gen): Rename
516 read_register_gen.
517 (deprecated_write_register_gen): Rename write_register_gen.
518 * i387-tdep.c: Update.
519 * x86-64-linux-nat.c: Update
520 * wince.c: Update.
521 * thread-db.c: Update.
522 * win32-nat.c: Update.
523 * mips-tdep.c: Update.
524 * d10v-tdep.c: Update.
525 * cris-tdep.c: Update.
526 * remote-sim.c: Update.
527 * remote-rdi.c: Update.
528 * remote-rdp.c: Update.
529 * frame.c: Update.
530 * target.c: Update.
531 * blockframe.c: Update.
532 * x86-64-tdep.c: Update.
533 * xstormy16-tdep.c: Update.
534 * sh-tdep.c: Update.
535 * s390-tdep.c: Update.
536 * rs6000-tdep.c: Update.
537 * sparc-tdep.c: Update.
538 * i386-tdep.c: Update.
539 * dwarf2cfi.c: Update.
540 * regcache.c: Update.
541
542 2002-11-01 Joel Brobecker <brobecker@gnat.com>
543
544 New interix-specific files:
545 * config/i386/nm-interix.h: New file.
546 * config/i386/interix.mh: New file.
547 * config/i386/interix.mt: New file.
548 * i386-interix-nat.c: New file.
549 * i386-interix-tdep.c: New file.
550
551 2002-11-01 Andrew Cagney <cagney@redhat.com>
552
553 * frame.h (deprecated_generic_get_saved_register): Rename
554 generic_get_saved_register.
555 * blockframe.c (deprecated_generic_get_saved_register): Update.
556 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
557 (xstormy16_frame_saved_register): Update.
558 * sh-tdep.c (sh_gdbarch_init): Update.
559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
560 * ia64-tdep.c (ia64_get_saved_register): Update.
561 * cris-tdep.c (cris_gdbarch_init): Update.
562 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
563 * arm-tdep.c (arm_gdbarch_init): Update.
564
565 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
566
567 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
568
569 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
570
571 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
572 trampolines in sigaction.
573
574 2002-10-31 Andrew Cagney <cagney@redhat.com>
575
576 * h8300-tdep.c: Include "gdb_assert.h".
577 (h8300_print_register): Add gdbarch, file and frame parameters.
578 Use frame_read_unsigned_register to read the register's value.
579 Use fprintf_filtered to display output.
580 (h8300_print_registers_info): Replace h8300_do_registers_info.
581 (h8300_gdbarch_init): Set print_registers_info.
582
583 2002-10-31 Andrew Cagney <cagney@redhat.com>
584
585 * frame.c (frame_read_unsigned_register): New function.
586 (frame_read_signed_register): New function.
587 * frame.h (frame_read_unsigned_register): Declare.
588 (frame_read_signed_register): Declare.
589
590 2002-10-31 Andrew Cagney <cagney@redhat.com>
591
592 * h8500-tdep.c (h8500_print_registers_info): New static function,
593 clone of infcmd.c's default_print_registers_info.
594 (h8500_do_registers_info): New funtion.
595 (h8500_print_register_hook): Rename print_register_hook, make
596 static.
597
598 * config/h8500/tm-h8500.h: Update copyright.
599 (DEPRECATED_DO_REGISTERS_INFO): Define.
600 (h8500_do_registers_info: Declare.
601 (PRINT_REGISTER_HOOK): Delete macro.
602 (print_register_hook): Delete function.
603
604 2002-10-31 Andrew Cagney <cagney@redhat.com>
605
606 * z8k-tdep.c (z8k_print_register_hook): Make static.
607 (z8k_print_registers_info): New static function, clone of
608 infcmd.c's default_print_registers_info.
609 (z8k_do_registers_info): New function. Wrap
610 z8k_print_registers_info.
611 * config/z8k/tm-z8k.h: Update copyright.
612 (PRINT_REGISTER_HOOK): Delete macro.
613 (z8k_print_register_hook): Delete declaration.
614 (DEPRECATED_DO_REGISTERS_INFO): Define.
615 (z8k_do_registers_info): Declare.
616
617 2002-10-30 Joel Brobecker <brobecker@gnat.com>
618
619 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
620 as this is already provided by value.h, and was actually causing
621 a compilation error because of a conflict in parameter type
622 declaration due to a missing const keyword.
623 (low_text_segment_addres): Fix a compilation warning.
624
625 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
626
627 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
628 registers without a name.
629 (mips_linux_cannot_store_register): Don't store registers without
630 a name.
631
632 2002-10-28 David Carlton <carlton@math.stanford.edu>
633
634 * symtab.c (find_addr_symbol): Delete. (It was already commented
635 out.)
636 * symtab.h: Delete prototype for find_addr_symbol.
637
638 2002-10-26 Andrew Cagney <cagney@redhat.com>
639
640 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
641 DO_REGISTERS_INFO.
642 gdbarch.h, gdbarch.c: Re-generate.
643 * infcmd.c (default_print_registers_info): Update reference.
644 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
645 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
646 * sh-tdep.c (sh_gdbarch_init): Ditto.
647 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
648 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
649
650 2002-10-26 Mark Kettenis <kettenis@gnu.org>
651
652 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
653 cfi_init_extra_frame_info.
654 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
655 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
656
657 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
658 target where necessary. Add more comments and remove the ones
659 that don't provide any useful information.
660
661 * i386-tdep.c (i386_frame_saved_pc): Replace call to
662 deprecated_read_register_dummy with
663 frame_unwind_unsigned_register.
664
665 * i386-tdep.c (i386_extract_struct_value_address): Use
666 regcache_raw_read_unsigned instead of
667 regcache_cooked_read_unsigned since we know that the register
668 we're reading isn't a pseudo register. Rename variable 'val' into
669 the more descriptive 'addr'.
670
671 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
672 (x86_64_push_return_address): Add comment.
673 (x86_64_pop_frame): Make static.
674 (examine_argument): Clarify comment.
675 (x86_64_skip_prologue): Make prolog_expact variable static.
676
677 * dwarf2cfi.c: Fix some formatting problems.
678 (context_cpy, read_encoded_pointer): Clarify comments.
679
680 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
681 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
682 i386 target back into x86_64_gdbarch_init. Add some comments and
683 remove meaningless ones.
684
685 2002-10-25 Andrew Cagney <cagney@redhat.com>
686
687 * complaints.h (struct deprecated_complaint): Rename `struct
688 complaint'.
689 * complaints.c (complain): Update.
690 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
691 incorrect comment indicating that "symfile.h" was being included
692 for the `struct complaint' definition.
693 * remote-vx.c: Update.
694 * objc-lang.c: Update.
695 * xcoffread.c: Update.
696 * hpread.c: Update.
697 * mdebugread.c: Update.
698 * stabsread.c: Update.
699 * dwarf2read.c: Update.
700 * dwarfread.c: Update.
701 * elfread.c: Update.
702 * coffread.c: Update.
703 * stabsread.h: Update.
704 * dbxread.c: Update.
705 * buildsym.c: Update.
706 * gdbtypes.c: Update.
707 * macrotab.c: Update.
708
709 2002-10-25 Mark Kettenis <kettenis@gnu.org>
710
711 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
712 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
713 (x86_64_init_abi): ...new function.
714
715 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
716 * i386v-nat.c: Include "i386-tdep.h".
717
718 2002-10-25 Andrew Cagney <cagney@redhat.com>
719
720 * gdbtypes.c (address_space_name_to_int): Update.
721 (address_space_int_to_name): Update.
722 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
723 multi-arch predicate.
724 (address_class_name_to_type_flags): Ditto.
725 * gdbarch.h, gdbarch.c: Re-generate.
726
727 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
728
729 2002-10-24 Martin M. Hunt <hunt@redhat.com>
730
731 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
732
733 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
734
735 * symtab.h (INIT_SAL): Delete macro.
736 (init_sal): Export.
737 * symtab.c (init_sal): New function.
738
739 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
740 to init_sal function call.
741 (find_sal_from_funcs_and_line): Ditto.
742 (all_sals_for_line): Ditto.
743 * breakpoint.c (create_internal_breakpoint): Ditto.
744 (create_fork_vfork_event_catchpoint): Ditto.
745 (create_exec_event_catchpoint): Ditto.
746 (parse_breakpoint_sals): Ditto.
747 (watch_command_1): Ditto.
748 (handle_gnu_4_16_catch_command): Ditto.
749 (clear_command): Ditto.
750 * hppa-tdep.c (child_enable_exception_callback): Ditto.
751 * infcmd.c (run_stack_dummy): Ditto.
752 * infrun.c (process_event_stop_test): Ditto.
753 (check_sigtramp2): Ditto.
754 (step_over_function): Ditto.
755 * linespec.c (decode_line_2): Ditto.
756 (decode_line_1): Ditto.
757 * source.c (line_info): Ditto.
758 * symtab.c (find_pc_sect_line): Ditto.
759
760 2002-10-24 Michal Ludvig <mludvig@suse.cz>
761
762 * dwarf2cfi.c (struct context)
763 (struct context_reg): Moved to dwarf2cfi.h
764 (context_alloc, frame_state_alloc, context_cpy):
765 Made extern instead of static, removed prototypes.
766 * dwarf2cfi.h (struct context)
767 (struct context_reg): New, moved from dwarf2cfi.c
768 (context_alloc, frame_state_alloc, context_cpy):
769 New prototypes.
770 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
771 Changed from static to extern.
772 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
773 (LINUX_SIGCONTEXT_FP_OFFSET)
774 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
775 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
776 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
777 * x86-64-tdep.c (x86_64_gdbarch_init): Several
778 set_gdbarch_*() calls now use x86-64 specific functions
779 instead of DWARF2 CFI ones.
780 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
781 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
782 (x86_64_init_extra_frame_info): New prototypes.
783
784 2002-10-23 David Carlton <carlton@math.stanford.edu>
785
786 * linespec.c: #include "parser-defs.h".
787 Delete prototype for find_template_name_end.
788 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
789
790 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
791
792 * NEWS: add recent mi fixes.
793 * varobj.c (struct varobj): Add new "updated" flag.
794 (new_variable): Default "updated" flag to 0.
795 (varobj_set_value): Set "updated" flag to 1 if value
796 changes.
797 (varobj_update): Check varobj "updated" flag before
798 comparing old and refreshed values. Fix for
799 PR gdb/702.
800
801 2002-10-23 David Carlton <carlton@math.stanford.edu>
802
803 * parse.c (parse_exp_1): Use BLOCK_START.
804 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
805 SYMBOL_BLOCK_VALUE.
806 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
807
808 2002-10-23 David Carlton <carlton@math.stanford.edu>
809
810 * symtab.c: Delete cplusplus_hint.
811 Delete prototype for find_template_name_end.
812
813 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
814
815 * symtab.h: Update comment.
816
817 2002-10-23 Michael Snyder <msnyder@redhat.com>
818
819 * printcmd.c (address_info): Restore quotes in output.
820 * valops.c (value_of_local): Restore quotes in error message.
821
822 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
823
824 * symtab.c (symbol_demangled_name): New function.
825 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
826 turning most of it into a function.
827 (symbol_demangled_name): Export.
828
829 2002-10-23 Michael Snyder <msnyder@redhat.com>
830
831 * valops.c (value_of_local): Restore quotes in error message.
832
833 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
834
835 * symtab.c (symbol_init_language_specific): New function.
836 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
837 turning most of it into a function.
838 (symbol_init_language_specific): Export.
839
840 2002-10-23 David Carlton <carlton@math.stanford.edu>
841
842 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
843 (dwarf_attr_name): Ditto.
844 (dwarf_type_encoding_name): Ditto.
845 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
846 (process_die): Handle DW_TAG_namespace,
847 DW_TAG_imported_declaration, DW_TAG_imported_module.
848 (read_namespace): New function.
849
850 2002-10-22 Joel Brobecker <brobecker@gnat.com>
851
852 * configure.in: Define NEW_PROC_API on Interix too.
853 * configure: Regenerate.
854
855 2002-10-21 Joel Brobecker <brobecker@gnat.com>
856
857 * configure: Regenerate using the proper version of autoconf.
858
859 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
860
861 * findvar.c (read_var_value): Temporarily disable TLS code, until
862 complete TLS support is added.
863
864 2002-10-21 Jim Blandy <jimb@redhat.com>
865 Elena Zannoni <ezannoni@redhat.com>
866
867 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
868 for thread local storage locations.
869 (struct symbol): Add objfile field.
870 (SYMBOL_OBJFILE): Define.
871 * dwarf2read.c (is_thread_local): New static variable.
872 (new_symbol): If variable is in thread local fill in address class
873 and objfile appropriately.
874 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
875 stack operation.
876 * printcmd.c (address_info): Print the information for thread
877 local storage variable.
878 * findvar.c (read_var_value): In case of thread local variable,
879 defer to the target vector code to compute address.
880
881 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
882
883 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
884 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
885
886 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
887
888 * symtab.h (address_class): Rename
889 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
890 * hpread.c (hpread_process_one_debug_symbol): Ditto.
891 * printcmd.c (address_info): Ditto.
892 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
893
894 2002-10-20 Mark Kettenis <kettenis@gnu.org>
895
896 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
897 DBREG_DRX macro to acces debug registers.
898
899 * Makefile.in (i386obsd-tdep.o): New target.
900
901 * solib-sunos.c: Include "bcache.h" and "regcache.h".
902 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
903
904 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
905 * config/i386/obsd.mt: New file.
906 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
907 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
908 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
909 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
910 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
911 * i386obsd-tdep.c: New file.
912
913 2002-10-19 Adam Fedor <fedor@gnu.org>
914
915 * objc-exp.y (name_not_typename): Fix invalid comment.
916
917 2002-10-20 Mark Kettenis <kettenis@gnu.org>
918
919 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
920 to allocate partial syms and macro byte caches.
921
922 2002-10-18 David Carlton <carlton@math.stanford.edu>
923
924 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
925
926 2002-10-18 Adam Fedor <fedor@gnu.org>
927
928 * stabsread.c (find_name_end): New function.
929 (define_symbol): Use it.
930
931 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
932
933 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
934 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
935 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
936 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
937
938 2002-10-17 David Carlton <carlton@math.stanford.edu>
939
940 * symfile.h: Add opaque declaration for struct obstack.
941 Declare obsavestring to take a const char *.
942 * symfile.c (obsavestring): Make first argument a const char *.
943
944 2002-10-16 Adam Fedor <fedor@gnu.org>
945
946 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
947 names when matching breakpoints in current file.
948
949 2002-10-16 Kevin Buettner <kevinb@redhat.com>
950
951 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
952 (read_tag_pointer_type): Add address class support.
953 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
954 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
955 New methods.
956 * gdbarch.h, gdbarch.c: Regenerate.
957 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
958 (make_type_with_address_space, recursive_type_dump): Add address
959 class support.
960 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
961 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
962 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
963
964 2002-10-16 Klee Dienes <kdienes@apple.com>
965
966 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
967 to get the last character of a char[] buffer, not
968 name[sizeof(vptr_name)-1].
969
970 2002-10-14 Adam Fedor <fedor@gnu.org>
971
972 * symtab.h: New objc_specific struct.
973 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
974 (SYMBOL_DEMANGLED_NAME): Likewise.
975
976 2002-10-14 Adam Fedor <fedor@gnu.org>
977
978 * symfile.c (init_filename_language_table): Add ObjC file extension.
979
980 2002-10-14 Adam Fedor <fedor@gnu.org>
981
982 * utils.c (puts_filtered_tabular): New function.
983 (fprintf_symbol_filtered): Get ObjC demangled name.
984 * defs.h (puts_filtered_tabular): Declared.
985
986 2002-10-14 Kevin Buettner <kevinb@redhat.com>
987
988 * c-lang.h (c_type_print_varspec_prefix): Delete.
989 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
990 ``need_post_space'' parameter. Adjust all callers.
991
992 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
993
994 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
995 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
996 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
997 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
998
999 2002-10-13 Adam Fedor <fedor@gnu.org>
1000
1001 * source.c (print_source_lines): Update comments.
1002
1003 2002-10-13 Adam Fedor <fedor@gnu.org>
1004
1005 * valops.c (value_of_local): New function.
1006 (value_of_this): Use it.
1007 * value.h (value_of_local): Declared.
1008
1009 2002-10-13 Adam Fedor <fedor@gnu.org>
1010
1011 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1012 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1013
1014 2002-10-12 Adam Fedor <fedor@gnu.org>
1015
1016 * language.c (binop_result_type): Add language_objc to case.
1017 (integral_type): Likewise.
1018 (character_type): Likewise.
1019 (string_type): Likewise.
1020 (boolean_type): Likewise.
1021 (structured_type): Likewise.
1022 (binop_type_check): Likewise.
1023
1024 2002-10-11 Adam Fedor <fedor@gnu.org>
1025
1026 * printcmd.c (address_info): Print 'self' for ObjC.
1027
1028 2002-10-11 Adam Fedor <fedor@gnu.org>
1029
1030 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1031 OP_SELF.
1032
1033 2002-10-11 Adam Fedor <fedor@gnu.org>
1034
1035 * language.h (CAST_IS_CONVERSION): Add language_objc.
1036
1037 2002-10-11 Adam Fedor <fedor@gnu.org>
1038
1039 * defs.h (enum language): Add language_objc.
1040
1041 2002-10-11 Klee Dienes <kdienes@apple.com>
1042
1043 * corefile.c (read_memory_typed_address): New function.
1044 * gdbcore.h (read_memory_typed_address): Add prototype.
1045 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1046 to read a value destined for a CORE_ADDR, not read_memory_integer.
1047 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1048 (f77_get_dynamic_lowerbound): Ditto.
1049
1050 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1051
1052 * utils.c (string_to_core_addr): After turning string into
1053 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1054 which will do necessary sign-extension, etc.
1055
1056 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1057
1058 * c-exp.y (THIS): Delete token and grammar rule.
1059 (yylex): Don't return THIS.
1060 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1061 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1062 * demangle.c (cplus_markers): Update comment. Put '$'
1063 first. Remove CPLUS_MARKER.
1064 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1065 * jv-exp.y (THIS): Delete token and grammar rule.
1066 (yylex): Don't return THIS.
1067 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1068 * objc-exp.y (THIS): Delete token and grammar rule.
1069 (yylex): Don't return THIS.
1070 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1071 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1072 (read_member_functions): Likewise for opname.
1073 (read_tilde_fields): Use is_cplus_marker.
1074
1075 * defs.h (CPLUS_MARKER): Don't define.
1076 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1077 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1078 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1079 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1080 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1081
1082 * config/i386/tm-i386v4.h: Delete file.
1083 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1084 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1085 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1086 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1087 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1088 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1089 * config/i386/i386v4.mt (TM_FILE): Likewise.
1090 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1091
1092 2002-10-10 Marko Mlinar <markom@opencores.org>
1093
1094 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1095 accidentially not commited 2002-10-09
1096 * gdbarch.h, gdbarch.c: Re-generate.
1097
1098 2002-10-09 Marko Mlinar <markom@opencores.org>
1099
1100 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1101 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1102 * gdbarch.h, gdbarch.c: Re-generate.
1103
1104 2002-10-08 Petr Sorfa <petrs@caldera.com>
1105
1106 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1107
1108 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1109 so we can work on more than one compilation unit at a time. This
1110 helps prepare GDB to handle inter-CU die references.
1111 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1112 the code to be defined before struct comp_unit_head.
1113 (comp_unit_head): Added new members - offset, cu_head,
1114 begin_die, next and dwarf2_abbrevs.
1115 (dwarf2_abbrevs): Removed single static var; now member of
1116 struct comp_unit_head.
1117 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1118 members.
1119 (psymtab_to_symtab_1): Changed to work with the new
1120 struct comp_unit_head.
1121 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1122 constructs the dwarf2_abbrevs[] inside the cu_header.
1123 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1124 dwarf2_abbrev table to clean up.
1125 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1126 handling of dwarf2_abbrevs inside the cu_header.
1127 (read_partial_die): Now supports the call to the new
1128 dwarf2_lookup_abbrev.
1129 (read_full_die): Now supports the call to the new
1130 dwarf2_lookup_abbrev.
1131
1132 2002-10-06 Christopher Faylor <cgf@redhat.com>
1133
1134 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1135 insure that shell variables, such as "transformed_name" are propagated
1136 to later shell statements in rule.
1137
1138 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1139
1140 * config/i386/nm-i386sco.h: Add protection against
1141 multiple-inclusion. Include "i386/nm-i386v.h".
1142 (REGISTER_U_ADDR): Remove define.
1143 (i386_register_u_addr): Remove prototype.
1144
1145 2002-10-04 Michael Snyder <msnyder@redhat.com>
1146
1147 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1148 before treating it as a single-step event.
1149
1150 2002-10-03 Adam Fedor <fedor@gnu.org>
1151
1152 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1153 (objc_demangle): Remove assignment in if statements, Replace
1154 free with xfree.
1155 (add_msglist): Likewise.
1156 (end_msglist): Likewise.
1157 (complare_selectors): Likewise.
1158 (selectors_info): Likewise.
1159 (compare_classes): Likewise.
1160 (classes_info): Likewise.
1161 (print_object_command): Likewise.
1162 (find_objc_msgcall_submethod): Replace PTR with void *.
1163 * objc-lang.h: Remove check for __STDC__.
1164
1165 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1166
1167 * ui-out.h (ui_out_field_fmt_int): New prototype.
1168 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1169 of field width and alignment.
1170 * stack.c (print_frame_info_base): When printing frame level, use
1171 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1172 PR gdb/192
1173
1174 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1175
1176 * MAINTAINERS: Add self to Write After Approval list.
1177
1178 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1179
1180 * infcmd.c (interrupt_target_command_wrapper): Delete.
1181 (interrupt_target_command): Make non static.
1182 (nofp_registers_info): Make static.
1183 * stack.c (return_command_wrapper): Delete.
1184 (return_command): Make non static.
1185
1186 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1187
1188 * event-top.c (gdb_setup_readline): New function. Code moved from
1189 _initialize_event_loop().
1190 (_initialize_event_loop): Call gdb_setup_readline().
1191
1192 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1193
1194 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1195 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1196 * gdbarch.h, gdbarch.c: Re-generate.
1197
1198 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1199
1200 Fix PR gdb/778
1201 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1202 before recursing.
1203 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1204 of fill_in_vptr_fieldno.
1205
1206 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1207
1208 * inferior.h (registers_info, stepi_command, nexti_command,
1209 continue_command, interrupt_target_command): Export from infcmd.c.
1210 * frame.h (args_info, selected_frame_level_changed_hook,
1211 return_command): Export from stack.c.
1212 * v850ice.c (stepi_command, nexti_command, continue_command): use
1213 prototypes from inferior.h.
1214 * tracepoint.c (registers_info, args_info, locals_info): Use
1215 prototypes from frame.h and inferior.h.
1216 * Makefile.in (mi-main.o): Add dependency on frame.h.
1217
1218 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1219
1220 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1221 value in register 3 adjusted by ppc_gp0_regnum.
1222
1223 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1224
1225 2002-10-02 Marko Mlinar <markom@opencores.org>
1226
1227 * MAINTAINERS: Add myself to the Write After Approval list.
1228
1229 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1230
1231 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1232 of the section for the N64 ABI, fixed.
1233
1234 * config/mips/tm-irix6.h: Include solib.h.
1235
1236 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1237
1238 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1239 GNU operators.
1240
1241 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1242
1243 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1244 and that "mi0" syntax has been removed.
1245
1246 2002-09-30 David Carlton <carlton@math.stanford.edu>
1247
1248 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1249 * ppc-sysv-tdep.c: #include "gdb_string.h".
1250 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1251 pacify GCC.
1252
1253 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1254
1255 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1256 "vrsave"'s register number.
1257
1258 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1259
1260 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1261 use frame_unwind_signed_register to obtain the PC.
1262 (mips_frame_chain): Handle a generic dummy frame.
1263 (mips_init_extra_frame_info): When a generic dummy frame, don't
1264 re-compute the frame base.
1265 (mips_pop_frame): Handle generic dummy frames.
1266 (mips_gdbarch_init): When generic dummy frames, set
1267 use_generic_dummy_frames, push_dummy_frame to
1268 generic_push_dummy_frame, pc_in_call_dummy to
1269 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1270 generic_save_dummy_frame_tos.
1271
1272 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1273
1274 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1275 against TOP when TOP was explictly set.
1276 (generic_push_dummy_frame): Set TOP to zero.
1277
1278 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1279
1280 * event-loop.c (start_event_loop): Rename variable 'result' to
1281 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1282
1283 2002-09-30 Keith Seitz <keiths@redhat.com>
1284
1285 * gdb-events.sh (selected_thread_changed): New event.
1286 * gdb-events.c: Regenerated.
1287 * gdb-events.h: Regenerated.
1288
1289 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1290
1291 * MAINTAINERS: Add self to Write After Approval list.
1292
1293 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1294
1295 * disasm.c: New file.
1296 * disasm.h: New file.
1297 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1298 (compare_lines): Ditto.
1299 (dump_insns): Ditto.
1300 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1301 argument.
1302 (do_assembly_only): Ditto.
1303 (do_disassembly): Renamed to gdb_disassembly and moved to
1304 disasm.c. Sdded uiout argument.
1305 * Makefile.in: Add new files. Reorder SFILES list. Update
1306 dependencies. Include libgdb.a later in the insight executable.
1307
1308 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1309
1310 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1311 bfd/elf64-alpha-fbsd.c.
1312
1313 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1314
1315 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1316 i386gnu-tdep.c.
1317
1318 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1319
1320 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1321 __FUNCTION__.
1322 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1323 function name.
1324 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1325 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1326 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1327 (S_msg_sig_post_reply): Ditto.
1328
1329 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1330
1331 * sh-tdep.c (sh_use_struct_convention): Use definition according
1332 to ABI.
1333 (sh_push_arguments): Store in register with correct endianess.
1334 (sh_default_store_return_value): Ditto.
1335 (sh_gdbarch_init): Set sizeof long double to 8.
1336
1337 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1338
1339 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1340 Fix some whitespace problems.
1341
1342 2002-09-27 David Carlton <carlton@math.stanford.edu>
1343
1344 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1345 (mcore-tdep.o): Ditto.
1346 (ns32k-tdep.o): Ditto.
1347 (ns32knbsd-tdep.o): Ditto.
1348 (sh3-rom.o): Ditto.
1349 (vax-tdep.o): Ditto.
1350 * cris-tdep.c: #include "gdb_string.h"
1351 * mcore-tdep.c: Ditto.
1352 * ns32k-tdep.c: Ditto.
1353 * ns32knbsd-tdep.c: Ditto.
1354 * sh3-rom.c: Ditto.
1355 * vax-tdep.c: Ditto.
1356
1357 2002-09-27 David Carlton <carlton@math.stanford.edu>
1358
1359 * config/djgpp/fnchange.lst: Add entries for
1360 gdb/testsuite/gdb.c++/m-static files.
1361
1362 2002-09-27 Jim Wilson <wilson@redhat.com>
1363
1364 * MAINTAINERS: Add myself to the Write After Approval list.
1365
1366 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1367
1368 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1369
1370
1371 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1372
1373 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1374 frame.
1375
1376 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1377
1378 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1379 (rs6000_struct_return_address): Delete variable.
1380 (rs6000_store_struct_return): Update.
1381 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1382 deprecated_extract_struct_value_address.
1383 (rs6000_frame_align): New function.
1384 (rs6000_gdbarch_init): Set frame_align.
1385
1386 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1387
1388 From Grace Sainsbury <graces@redhat.com>:
1389 * Makefile.in (gdbtk-main.o): New target.
1390 (gdb.o): New target.
1391 (main_h): Define.
1392 (main.o): Update dependencies.
1393 (gdb$(EXEEXT)): Add gdb.o.
1394 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1395 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1396 (SUBDIR_GDBTK_CLEAN): Set.
1397 (install-gdbtk): Install the insight binary.
1398 (uninstall-gdbtk): New target.
1399 (all-gdbtk, clean-gdbtk): New rule.
1400 * top.c (use_windows): Default to zero.
1401 * main.c: Include "main.h".
1402 (main): Delete.
1403 (struct captured_main_args): Delete.
1404 (gdb_main): New function.
1405 * main.h: New file.
1406 * gdb.c: New File.
1407
1408 2002-09-25 Andrew Cagney <cagney@redhat.com>
1409
1410 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1411 (frame_map_regnum_to_name): New function.
1412 (frame_map_name_to_regnum): New function.
1413 * frame.h (frame_map_name_to_regnum): Declare.
1414 (frame_map_regnum_to_name): Declare.
1415 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1416 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1417 * parse.c: Do not include "builtin-regs.h".
1418 (target_map_name_to_register): Delete function.
1419 (write_dollar_variable): Use frame_map_name_to_regnum.
1420 * parser-defs.h (target_map_name_to_register): Delete declaration.
1421 * expprint.c: Include "frame.h".
1422 (print_subexp): Use frame_map_regnum_to_name.
1423 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1424 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1425
1426 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1427
1428 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1429 wasn't saved, and the next innermost frame is a dummy, return the
1430 dummy frame's link register.
1431
1432 2002-09-24 Jim Blandy <jimb@redhat.com>
1433
1434 Fix from Paul Breed:
1435 * main.c (captured_main): Add a `break' after the case for 'b'.
1436
1437 2002-09-24 Keith Seitz <keiths@redhat.com>
1438
1439 * varobj.c (c_type_of_child): Use get_target_type instead
1440 of TYPE_TARGET_TYPE.
1441
1442 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1443
1444 * source.c (get_current_or_default_source_symtab_and_line): Remove
1445 function.
1446 (set_default_source_symtab_and_line): New function. Attempts to
1447 determine a source file to list lines from if one is not currently
1448 defined.
1449 (get_current_source_symtab_and_line): Initialize sal.pc and
1450 sal.end fields.
1451 (set_current_source_symtab_and_line): Mark argument as const.
1452 * source.h: Update declarations and comments.
1453 * linespec.c (decode_line_1): Replace call to removed routine above.
1454 * stack.c (print_frame_info_base): Ditto.
1455 * cli/cli-cmds.c (edit_command): Ditto.
1456 (list_command): Ditto.
1457
1458 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1459
1460 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1461 sal.pc and sal.end fields.
1462 (get_current_or_default_source_symtab_and_line): Ditto.
1463 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1464 so we do not cause a new source symtab to be searched for (reverting an
1465 unintentional change from the 2002-09-20 patch).
1466 * scm-lang.c (scm_unpac): Ditto.
1467
1468 2002-09-21 Andrew Cagney <cagney@redhat.com>
1469
1470 * complaints.c (symfile_explanations): Remove new-line from
1471 ``isolated_message''.
1472 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1473 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1474
1475 2002-09-20 Nick Clifton <nickc@redhat.com>
1476
1477 * NEWS: Announce that V850EA ISA is no longer supported.
1478 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1479
1480 2002-09-20 David Carlton <carlton@math.stanford.edu>
1481
1482 * Makefile.in (c-lang.o): Correct dependencies.
1483 (utils.o): Gather dependencies.
1484 (charset.o): Move.
1485 * c-lang.c: #include "gdb_string.h"
1486
1487 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1488
1489 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1490 * cli/cli-cmds.c (list_command): New function. Implements the new
1491 cli edit command.
1492 (_init_cli_cmds): Add new command definition.
1493 * gdb.1: Document edit command.
1494 * doc/gdb.texinfo: Document edit command.
1495
1496 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1497
1498 * source.c: Make global variables current_source_symtab and
1499 current_source_line static.
1500 (list_command): Moved to cli/cli-cmds.c.
1501 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1502 (get_first_line_listed): New accessor function.
1503 (get_lines_to_list): New accessor function.
1504 (get_current_source_symtab_and_line): New function. Retrieves the
1505 position in the source code that we consider current.
1506 (get_current_or_default_source_symtab_and_line): New function.
1507 Like the above but attempts to determine a default position if one
1508 is not currently defined.
1509 (set_current_source_symtab_and_line): New function. Sets the source
1510 code position considered current and returns the previously set one.
1511 (clear_current_source_symtab_and_line): Reset stored information about
1512 a current source line.
1513 (_initialize_source): Remove registration for the "list" command and
1514 its alias.
1515 * source.h: Add declarations for the new functions above.
1516 * symtab.h: Remove declarations for the global variables mentioned
1517 above.
1518 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1519 obtain current source line.
1520 * linespec.c (decode_line_1): Ditto.
1521 * macroscope.c (default_macro_scope): Ditto.
1522 * scm-lang.c (scm_unpac): Ditto.
1523 * stack.c (print_frame_info_base): Ditto.
1524 * symfile.c (clear_symtab_users): Ditto.
1525 * symtab.c (decode_line_spec): Ditto.
1526 * cli/cli-cmds.c (list_command): Moved here from source.c.
1527 (ambiguous_line_spec): Moved here from source.c.
1528 (_init_cli_cmds): Add definition for "list" and its alias.
1529 * Makefile.in: Update dependencies.
1530
1531 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1532
1533 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1534 with what gcc thinks is correct.
1535
1536 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1537
1538 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1539 multiple register push instruction.
1540
1541 2002-09-19 Jim Blandy <jimb@redhat.com>
1542
1543 Add support for distinct host and target character sets.
1544 * charset.c, charset.h: New files.
1545 * c-exp.y: #include "charset.h".
1546 (yylex): Convert character and string literals to the target
1547 character set, before returning them as the semantic value of the
1548 token.
1549 * c-lang.c: #include "charset.h".
1550 (c_emit_char): Use charset-specific methods to recognize
1551 characters with backslash escape forms, to decide which characters
1552 to print literally and which to print using numeric escape
1553 sequences, and to convert target characters to host characters
1554 before printing.
1555 * utils.c: #include "charset.h".
1556 (no_control_char_error): New function.
1557 (parse_escape): Use charset-specific methods to recognize
1558 backslash escapes, parse `control character' notation, and convert
1559 characters from the host character set to the target character set.
1560 * configure.in: Set the default host character set.
1561 Check where to find iconv, and what its argument types might be.
1562 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1563 * Makefile.in (SFILES): List charset.c.
1564 (COMMON_OBS): List charset.o.
1565 (charset.o): New rule.
1566 (charset_h): New header dependency variable.
1567 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1568 (LIBICONV): New variable, set by configure.
1569 (CLIBS): Include $(LIBICONV) here.
1570 * aclocal.m4, config.in, configure: Regenerated.
1571
1572 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1573
1574 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1575 bison 1.35 warning.
1576
1577 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1578
1579 * gdb_mbuild.sh: New file.
1580
1581 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1582
1583 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1584
1585 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1586
1587 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1588 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1589 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1590 valops.c, value.h: Revert previous change.
1591
1592 2002-09-18 Michael Snyder <msnyder@redhat.com>
1593
1594 Preliminary support for Objective-C:
1595 * defs.h (language_objc): New enum value.
1596 (puts_filtered_tabular): Declaration only, exported from utils.c.
1597 (skip_quoted): Delete, declared in completer.h.
1598 * c-exp.y: Include completer.h.
1599 * p-exp.y: Ditto.
1600 * jv-exp.y: Ditto.
1601 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1602 New operator enum values.
1603 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1604 * language.c (binop_result_type): Handle language_objc case.
1605 (integral_type, character_type, string_type, boolean_type,
1606 structured_type, binop_type_check): Ditto.
1607 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1608 (struct objc_specific): Add to general_symbol_info.
1609 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1610 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1611 * parser-defs.h (struct objc_class_str): New struct type.
1612 (start_msglist, end_msglist, add_msglist): Declaration only,
1613 exported from objc-lang.c.
1614 * value.h (value_of_local, value_nsstring,
1615 call_function_by_hand_expecting_type): Exported from valops.c.
1616 * valops.c (find_function_addr): Export.
1617 (call_function_by_hand_expecting_type): New function.
1618 (value_of_local): New function.
1619 * symfile.c (init_filename_language_table): Add ".m" extension
1620 for Objective-C.
1621 * utils.c (puts_filtered_tabular): New function.
1622 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1623 (set/show demangle): Extend help-string to refer to ObjC.
1624 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1625 * stabsread.c (symbol_reference_defined): Objective-C symbols
1626 may contain colons: make allowances when scanning stabs strings
1627 for colons.
1628 (objc_find_colon): New function.
1629 * printcmd.c (address_info): If language == objc then print
1630 "self" instead of "this".
1631 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1632 OP_NSSTRING, and OP_SELF.
1633 (prefixify_subexp): Ditto.
1634 * source.c (print_source_lines): Mention objc in comment.
1635 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1636 method names.
1637
1638 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1639
1640 * complaints.h: Update copyright.
1641 (struct complaints): Declare.
1642 (struct complaint): Make `message' constant.
1643 (internal_complaint): Declare.
1644 (complaint): Declare.
1645 (complaint_root): Delete declaration.
1646 (symfile_complaints): Delete declaration.
1647 (struct complaints): Add opaque declaration.
1648 (clear_complaints): Add a complaints parameter.
1649 * complaints.c: Update copyright.
1650 (enum complaint_series): Define.
1651 (complaint_root): Delete.
1652 (struct complaints): Define.
1653 (complaint_sentinel, symfile_complaint_book): New variables.
1654 (symfile_explanations, symfile_complaints): New variables.
1655 New variables.
1656 (get_complaints): New function.
1657 (vcomplaint): New function.
1658 (complaint): New function.
1659 (internal_complaint): New function.
1660 (complain): Call vcomplain with symfile_complaint.
1661 (clear_complaints): Rewrite.
1662 (_initialize_complaints): Use add_setshow_command.
1663 * Makefile.in (complaints.o): Update dependencies.
1664 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1665 to call to clear_complaints.
1666 (new_symfile_objfile, reread_symbols): Ditto.
1667 (oldsyms_complaint): Delete.
1668 (empty_symtab_complaint, unknown_option_complaint): Delete.
1669 (free_named_symtabs): Use complaint instead of complain.
1670
1671 2002-09-18 Michael Snyder <msnyder@redhat.com>
1672
1673 Contributed by Apple Computer, Inc. Merged with current sources
1674 by Adam Fedor <fedor@doc.com> [cagney].
1675
1676 * objc-lang.c: First clean-up round: comments, indentation.
1677 * objc-lang.h: Ditto.
1678 * objc-lang.y: Ditto.
1679
1680 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1681
1682 * maint.c (maintenance_internal_error): Print the parameter as the
1683 error message.
1684 (maintenance_internal_warning): New function.
1685 (_initialize_maint_cmds): Add command `maint internal-warning'.
1686
1687 * defs.h (internal_warning, internal_vwarning): Declare.
1688 * utils.c (struct internal_problem): Define.
1689 (internal_vproblem): New function.
1690 (internal_warning): New function.
1691 (internal_vwarning): New function.
1692 (internal_warning_problem, internal_error_problem): New variables.
1693 (internal_verror): Just call internal_vproblem.
1694
1695 2002-09-18 Michael Snyder <msnyder@redhat.com>
1696
1697 * objc-lang.c: New file, support for Objective-C.
1698 Preliminary check-in, not yet integrated into gdb.
1699 * objc-lang.h: New file.
1700 * objc-exp.y: New file.
1701
1702 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1703
1704 * infrun.c (signal_stop_update): Convert definition to ISO C.
1705 (signal_print_update): Ditto.
1706 (signal_pass_update): Ditto.
1707 * inflow.c (terminal_save_ours): Ditto.
1708
1709 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1710 comments.
1711
1712 * config/djgpp/fnchange.lst: Handle name clashes between
1713 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1714 bfd/coff-tic80.c.
1715
1716 * i386-linux-tdep.h: Fix tipo.
1717
1718 2002-09-18 Adam Fedor <fedor@gnu.org>
1719
1720 * MAINTAINERS: Add myself to the Write After Approval list.
1721
1722 2002-09-18 Jim Blandy <jimb@redhat.com>
1723
1724 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1725 texthigh and textlow to reader-specific structs caused
1726 objfile_relocate to miss them. This is fixable, but the work that
1727 the change was supposed to prepare GDB for never got done anyway.
1728
1729 2002-09-18 David Carlton <carlton@math.stanford.edu>
1730
1731 * MAINTAINERS: Alphabetize Write After Approval list.
1732
1733 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1734
1735 Fix PR gdb/709
1736 * values.c (value_static_field): Call read_var_value.
1737
1738 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1739
1740 * valops.c (hand_function_call): Align the initial stack pointer
1741 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1742 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1743 return value.
1744 * mips-tdep.c (mips_frame_align): New function.
1745 (mips_gdbarch_init): Set frame_align.
1746 * gdbarch.sh (FRAME_ALIGN): New method.
1747 * gdbarch.h, gdbarch.c: Re-generate.
1748
1749 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1750
1751 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1752 registers.
1753
1754 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1755
1756 * NEWS: Mention that MIPS $fp behavior changed.
1757 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1758 reference to FP_REGNUM.
1759 (mipsnbsd_cannot_store_register): Ditto.
1760 * mips-linux-nat.c: Update copyright.
1761 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1762 (mips_linux_cannot_store_register): Ditto.
1763 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1764 * config/mips/tm-mips.h: Update copyright.
1765 (FP_REGNUM): Delete macro.
1766 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1767 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1768 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1769 (mips_r3041_reg_names, mips_r3051_reg_names)
1770 (mips_r3081_reg_names): Replace "fp" with "".
1771 Fix PR gdb/480.
1772
1773 2002-09-17 Theodore A. Roth <troth@verinet.com>
1774
1775 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1776 generic_read_register_dummy() (PR gdb/703).
1777 (avr_push_return_address): #if 0 out unused vars.
1778 (avr_gdbarch_init): Enable use of avr_push_return_address().
1779
1780 2002-09-17 Michael Snyder <msnyder@redhat.com>
1781
1782 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1783 RTE will take care of it.
1784
1785 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1786
1787 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1788 invalid, return SP_REGNUM.
1789
1790 2002-09-17 Michael Snyder <msnyder@redhat.com>
1791
1792 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1793 point registers without sign extension.
1794
1795 2002-09-17 Andrew Cagney <cagney@redhat.com>
1796
1797 * blockframe.c (deprecated_read_register_dummy): Rename
1798 generic_read_register_dummy.
1799 * frame.c (frame_unwind_signed_register): New function.
1800 (frame_unwind_unsigned_register): New function.
1801 * frame.h (frame_unwind_signed_register): Declare.
1802 (frame_unwind_unsigned_register): Declare.
1803 (deprecated_read_register_dummy): Rename
1804 generic_read_register_dummy.
1805
1806 * h8300-tdep.c (h8300_frame_chain): Update.
1807 (h8300_frame_saved_pc): Update.
1808 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1809 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1810 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1811 (s390_frame_chain): Update.
1812 * v850-tdep.c (v850_find_callers_reg): Update.
1813 (v850_frame_saved_pc): Update.
1814 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1815 (m32r_find_callers_reg): Update.
1816 (m32r_frame_saved_pc): Update.
1817 * sh-tdep.c (sh_find_callers_reg): Update.
1818 (sh64_get_saved_pr): Update.
1819 (sh_init_extra_frame_info): Update.
1820 (sh_init_extra_frame_info): Update.
1821 (sh64_init_extra_frame_info): Update.
1822 (sh64_init_extra_frame_info): Update.
1823 * mcore-tdep.c (mcore_find_callers_reg): Update.
1824 (mcore_frame_saved_pc): Update.
1825 (mcore_init_extra_frame_info): Update.
1826 * i386-tdep.c (i386_frame_saved_pc): Update.
1827 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1828 (ia64_init_extra_frame_info): Update.
1829 (ia64_init_extra_frame_info): Update.
1830 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1831 * cris-tdep.c (cris_init_extra_frame_info): Update.
1832 * avr-tdep.c (avr_frame_chain): Update.
1833 (avr_init_extra_frame_info): Update.
1834 (avr_frame_saved_pc): Update.
1835 * arm-tdep.c (arm_find_callers_reg): Update.
1836 (arm_init_extra_frame_info): Update.
1837 (arm_frame_saved_pc): Update.
1838
1839 2002-09-17 Tom Tromey <tromey@redhat.com>
1840
1841 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1842 is "'".
1843
1844 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1845
1846 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1847 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1848 NEXT_PROLOGUE_INSN.
1849 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1850 NEXT_PROLOGUE_INSN.
1851
1852 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1853
1854 * osfsolib.c: Remove file, replaced by solib-osf.c.
1855 * Makefile.in: Remove compilation rules for osfsolib.c.
1856
1857 2002-09-16 David Carlton <carlton@math.stanford.edu>
1858
1859 * cp-valprint.c (cp_print_class_method): Correct args to
1860 check_stub_method_group.
1861
1862 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1863
1864 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1865 `set architecture'. Unify naming convention of functions.
1866 (h8300_skip_prologue): Improve prologue analysis.
1867 (h8300_push_arguments): Rewritten to more closely match GCC's
1868 bizarre argument-passing behavior, along with the comment describing
1869 said behavior.
1870 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1871 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1872 sim, remote-e7000.c, remote-hms.c and remote.c
1873
1874 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1875
1876 * i386-tdep.c (gdb_print_insn_i386): Removed.
1877 (i386_print_insn): New function.
1878 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1879 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1880 tm_print_insn_info.
1881
1882 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1883
1884 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1885 zero.
1886
1887 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1888
1889 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1890 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1891 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1892
1893 2002-09-13 Christopher Faylor <cgf@redhat.com>
1894
1895 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1896
1897 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1898
1899 * gdbtypes.c (check_stub_method): Make static.
1900 (check_stub_method_group): New function.
1901 * gdbtypes.h: Update prototypes.
1902 * cp-support.c: New file.
1903 * cp-support.h: New file.
1904
1905 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1906 (update_method_name_from_physname): New function.
1907 (read_member_functions): Correct method names for operators
1908 and v3 constructors/destructors. Separate v2 constructors and
1909 destructors.
1910 * Makefile.in (stabsread.o): Update dependencies.
1911 (SFILES): Add cp-support.c.
1912 (COMMON_OBS): Add cp-support.o.
1913 (cp_support_h, cp-support.o): Add.
1914
1915 * cp-valprint.c (cp_print_class_method): Call
1916 check_stub_method_group instead of check_stub_method. Remove
1917 extraneous QUITs.
1918 * p-valprint.c (pascal_object_print_class_method): Likewise.
1919 * valops.c (search_struct_method): Likewise.
1920 (find_method_list, value_struct_elt_for_reference): Likewise.
1921
1922 2002-09-13 Andrew Cagney <cagney@redhat.com>
1923
1924 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1925 * gdbarch.h, gdbarch.c: Regenerate.
1926
1927 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1928
1929 * frame.c (find_saved_register): Delete function.
1930 * frame.h (find_saved_register): Delete declaration.
1931 Fix PR gdb/631.
1932
1933 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1934
1935 * mips-tdep.c (read_next_frame_reg): Re-hack using
1936 frame_register_unwind.
1937
1938 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1939
1940 * mips-tdep.c (mips_get_saved_register): Re-hack using
1941 frame_register_unwind.
1942
1943 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1944
1945 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1946 vector. Will be useful for Interix.
1947 * gdbarch.h, gdbarch.c: Regenerate.
1948
1949 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1950 name of the malloc function by NAME_OF_MALLOC.
1951
1952 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1953
1954 * value.h (find_function_in_inferior): Add const keyword to
1955 one of the parameters. Allows us to invoke this function with
1956 a const char *.
1957 * valops.c (find_function_in_inferior): Likewise.
1958
1959 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1960
1961 * exec.c (xfer_memory): Fix compilation warning with old versions
1962 of GCC.
1963 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1964
1965 2002-09-12 David Carlton <carlton@math.stanford.edu>
1966
1967 * symtab.h: Run through gdb_indent.h.
1968 Add 2002 to Copyright year list.
1969
1970 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1971
1972 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1973 mach constants.
1974 * MAINTAINERS: Add myself to write after approval list.
1975
1976 2002-09-11 J. Brobecker <brobecker@gnat.com>
1977
1978 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1979
1980 2002-09-11 J. Brobecker <brobecker@gnat.com>
1981
1982 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1983 Interix.
1984
1985 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1986
1987 * procfs.c (do_detach): Clear current signal, not just fault.
1988 Corrects problem with breakpoint trap signal leaking to detached
1989 process on Tru64.
1990
1991 2002-09-10 Michael Snyder <msnyder@redhat.com>
1992
1993 * buildsym.c (finish_block): Protect against null pointer.
1994
1995 2002-09-10 Andrew Cagney <cagney@redhat.com>
1996
1997 * infcmd.c (default_print_registers_info): Send all output to
1998 ``file'' instead of ``gdb_stdout''.
1999
2000 2002-09-10 Michael Snyder <msnyder@redhat.com>
2001
2002 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2003 LONGEST, and use signed register read (addresses are sign-
2004 extended for mips).
2005
2006 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2007
2008 * event-loop.c (gdb_do_one_event): Make public.
2009 * event-loop.h (gdb_do_one_event): Declare.
2010
2011 2002-09-10 Jeff Law <law@redhat.com>
2012
2013 * infttrace.c (child_resume): Simplify and rework to avoid
2014 TT_PROC_CONTINUE.
2015
2016 2002-09-09 Fred Fish <fnf@intrinsity.com>
2017
2018 * printcmd.c (print_scalar_formatted): "len" is the number of
2019 target bytes, NOT the number of target bits.
2020
2021 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2022
2023 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2024 * top.c (init_main): Set rl_terminal_name.
2025
2026 2002-09-08 Aidan Skinner <aidan@velvet.net>
2027
2028 * ada-lang.c (ada_array_bound, ada_type_match,
2029 _initialize_ada_language): Fix K&R definitions.
2030 * ada-tasks.c (get_current_task): Fix K&R definitions.
2031 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2032
2033 2002-09-07 Christopher Faylor <cgf@redhat.com>
2034
2035 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2036 Add XP.
2037
2038 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2039
2040 * i386-tdep.c (i386_register_virtual_type,
2041 i386_register_convertible, i386_register_convert_to_virtual,
2042 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2043 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2044 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2045 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2046 Don't set push_arguments twice.
2047
2048 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2049 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2050 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2051 sigtramp_end to NULL.
2052 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2053 defines.
2054 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2055
2056 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2057 whitespace.
2058
2059 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2060 * gdbarch.h, gdbarch.c: Re-generate.
2061 * blockframe.c (find_pc_sect_partial_function): Convert to use
2062 SIGTRAMP_START_P predicate.
2063
2064 2002-09-05 Michael Snyder <msnyder@redhat.com>
2065
2066 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2067 generic_dummy_frame method and old method. Also distinguish
2068 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2069 (arm_extract_return_value): Use new regcache method.
2070
2071 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2072 adjustment that doesn't conform to the ABI.
2073 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2074 saved regcache, not from current regcache.
2075
2076 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2077
2078 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2079 * README: Update.
2080
2081 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2082
2083 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2084 if arm_apcs_32 is false.
2085
2086 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2087
2088 GDB 5.3 branch created.
2089
2090 2002-09-03 Theodore A. Roth <troth@verinet.com>
2091
2092 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2093 generic_unwind_get_saved_register.
2094
2095 2002-09-03 David Carlton <carlton@math.stanford.edu>
2096
2097 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2098 argument (PR gdb/653). Update call to smash_to_method_type.
2099 (read_structure_scope): Update call to dwarf2_add_member_fn.
2100
2101 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2102
2103 * x86-64-linux-tdep.c: Include gdb_string.h
2104 * x86-64-linux-nat.c: Ditto.
2105
2106 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2107
2108 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2109 when YYDEBUG is set to 1.
2110 * c-exp.y: Likewise.
2111 * f-exp.y: Likewise.
2112 * jv-exp.y: Likewise.
2113 * m2-exp.y: Likewise.
2114 * p-exp.y: Likewise.
2115
2116 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2117
2118 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2119 dependency list.
2120 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2121 solib_svr4_fetch_link_map_offsets to
2122 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2123 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2124 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2125 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2126 solib-svr4.o, and solib-legacy.o.
2127 * config/i386/tm-nbsd.h: Include solib.h.
2128
2129 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2130
2131 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2132 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2133 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2134 comment noting that this needs its own target configuration.
2135 * config/i386/nbsd.mt: New file.
2136 * config/i386/nbsdaout.mt: Remove.
2137 * config/i386/nbsdelf.mt: Ditto.
2138 * config/i386/tm-nbsdaout.h: Ditto.
2139
2140 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2141
2142 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2143 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2144 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2145 tdep->sigtramp_end.
2146 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2147 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2148 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2149
2150 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2151
2152 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2153 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2154 * i386-tdep.h (i386bsd_init_abi): New prototype.
2155 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2156 function declaration.
2157 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2158 for NetBSD-a.out or NetBSD-ELF.
2159 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2160 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2161 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2162 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2163 and nbsd-tdep.h.
2164 (i386nbsd_pc_in_sigtramp): New function.
2165 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2166 i386nbsd_pc_in_sigtramp.
2167 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2168 and i386nbsdelf_init_abi OS ABI handlers.
2169 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2170 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2171
2172 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2173
2174 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2175 registers if the target really has them.
2176
2177 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2178
2179 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2180 than nbsd-tdep.h.
2181
2182 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2183
2184 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2185 list.
2186 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2187 (alphanbsd_skip_sigtramp_frame): New functions.
2188 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2189 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2190 to alphanbsd_sigcontext_addr.
2191
2192 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2193
2194 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2195 list.
2196 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2197 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2198 nbsd_pc_in_sigtramp.
2199 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2200 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2201 * nbsd-tdep.c: Include gdb_string.h.
2202 (nbsd_pc_in_sigtramp): New function.
2203 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2204 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2205 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2206 ppcnbsd_pc_in_sigtramp.
2207 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2208 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2209 shnbsd_pc_in_sigtramp.
2210 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2211 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2212 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2213
2214 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2215
2216 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2217 watchpoints to NULL.
2218 (insert_breakpoints): set val field of watchpoints if NULL.
2219
2220
2221 2002-08-29 Jim Blandy <jimb@redhat.com>
2222
2223 * symtab.c (lookup_symbol_aux): In the cases where we find a
2224 minimal symbol of an appropriate name and use its address to
2225 select a symtab to read and search, use `name' (as passed to us)
2226 as the demangled name when searching the symtab's global and
2227 static blocks, not the minsym's name.
2228
2229 2002-08-29 Keith Seitz <keiths@redhat.com>
2230
2231 * stack.c (print_frame_info_base): Always set current_source_symtab
2232 and current_source_line.
2233
2234 2002-08-29 Donn Terry <donnte@microsoft.com>
2235
2236 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2237
2238 2002-08-28 Keith Seitz <keiths@redhat.com>
2239
2240 * stack.c (select_frame): Add FIXME concerning selected-frame
2241 events.
2242 (select_frame_command): Send selected-frame-level-changed
2243 event notification, but only if the level actually changed.
2244 (up_silently_base): Add selected-frame-level-changed event
2245 notification.
2246 (down_silently_base): Likewise.
2247
2248 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2249
2250 * Makefile.in: Update dependencies for all gdb/*.c files.
2251
2252 2002-08-27 Tom Tromey <tromey@redhat.com>
2253
2254 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2255 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2256 Update dependencies.
2257 * i387-tdep.c: Include gdb_string.h.
2258 * osabi.c: Likewise.
2259 * i386-linux-nat.c: Likewise.
2260 * lin-lwp.c: Likewise.
2261 * ax-gdb.c: Likewise.
2262 * signals/signals.c: Likewise.
2263 * jv-valprint.c: Likewise.
2264 * p-lang.c: Likewise.
2265 * c-valprint.c: Likewise.
2266 * cp-abi.c: Likewise.
2267
2268 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2269
2270 * cli/cli-script.h (copy_command_lines): Export.
2271 * breakpoint.c: Include cli/cli-script.h.
2272 * Makefile.in (breakpoint.o): Update dependencies.
2273
2274 2002-08-26 Michael Snyder <msnyder@redhat.com>
2275
2276 * breakpoint.c (insert_breakpoints): Protect all references
2277 to 'process_warning'. Shorten long lines.
2278
2279 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2280
2281 * cli/cli-script.c (copy_command_lines): New function.
2282 * defs.h (copy_command_lines): Export.
2283 * testsuite/gdb.base/commands.exp: New tests for commands
2284 attached to a temporary breakpoint, and for commands that
2285 delete the breakpoint they are attached to.
2286
2287 2002-08-26 Michael Snyder <msnyder@redhat.com>
2288
2289 * breakpoint.c (bpstat_stop_status): Instead of copying the
2290 pointer to the breakpoint commands struct, make a new copy
2291 of the struct and point to that.
2292 (bpstat_clear): Free the commands struct.
2293 (bpstat_clear_actions): Free the commands struct.
2294 (bpstat_do_actions): Free the command actions. Also execute
2295 the local cleanups, instead of deleting them.
2296 (delete_breakpoint): Leave the commands field of the bpstat
2297 chain alone -- it will be freed later.
2298
2299 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2300
2301 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2302 deleted in 2002-08-20 commit. This function is still used by
2303 ppc-linux-nat.c.
2304
2305 2002-08-26 Keith Seitz <keiths@redhat.com>
2306
2307 * gdb-events.sh: Add selected-frame-level-changed event.
2308 * gdb-events.c: Regenerated.
2309 * gdb-events.h: Regenerated.
2310
2311 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2312
2313 Fix PR gdb/393:
2314 * inflow.c (terminal_save_ours): New function to save terminal
2315 settings.
2316 * inferior.h (terminal_save_ours): Declare.
2317 * target.c (debug_to_terminal_save_ours): New function.
2318 (cleanup_target): Defaults to_terminal_save_ours.
2319 (update_current_target): Inherit to_terminal_save_ours.
2320 (setup_target_debug): Set to_terminal_save_ours.
2321 * target.h (target_terminal_save_ours): New to save terminal settings.
2322 (target_ops): New member to_terminal_save_ours.
2323 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2324 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2325 * inftarg.c (init_child_ops): Likewise.
2326 * m3-nat.c (init_m3_ops): Likewise.
2327 * procfs.c (init_procfs_ops): Likewise.
2328 * wince.c (init_child_ops): Likewise.
2329 * win32-nat.c (init_child_ops): Likewise.
2330 * sol-thread.c (init_sol_thread_ops): Likewise.
2331
2332 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2333
2334 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2335 use regcache_* functions.
2336 (i386_gdbarch_init): Set store_return_value instead of
2337 deprecated_store_return_value.
2338
2339 * regcache.c (regcache_raw_write_signed,
2340 regcache_raw_write_unsigned): New functions.
2341 * regcache.h (regcache_raw_write_signed,
2342 regcache_raw_write_unsigned): New prototypes.
2343
2344 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2345
2346 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2347 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2348 source file dependencies. Cleanup corresponding generator rules.
2349
2350 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2351
2352 * regcache.h (register_offset_hack): Declare.
2353 (regcache_cooked_read_using_offset_hack): Declare.
2354 (regcache_cooked_write_using_offset_hack): Declare.
2355
2356 * regcache.c (register_offset_hack): New function.
2357 (regcache_cooked_read_using_offset_hack): New function.
2358 (regcache_cooked_write_using_offset_hack): New function.
2359 (regcache_dump): Check that the registers, according to their
2360 offset, are packed hard against each other.
2361 (cooked_xfer_using_offset_hack): New function.
2362
2363 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2364
2365 * regcache.c (struct regcache_descr): Add field register_type.
2366 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2367 in as a parameter
2368 (init_regcache_descr): Initialize register_type. Pass the descr
2369 to init_legacy_regcache_descr. Use register_type instead of
2370 REGISTER_VIRTUAL_TYPE.
2371 (register_type): New function.
2372 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2373 * regcache.h (register_type): Declare.
2374
2375 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2376
2377 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2378 instead of deprecated_store_return_value. Fix fallout from
2379 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2380
2381 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2382
2383 * regcache.c (max_register_size): New function.
2384 (init_legacy_regcache_descr): Ensure that max_register_size is
2385 large enough for REGISTER_VIRTUAL_SIZE.
2386 * regcache.h (max_register_size): Declare.
2387
2388 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2389
2390 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2391 store_return_value.
2392 (e500_extract_return_value): Change type of valbuf pointer to
2393 void.
2394
2395 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2396
2397 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2398 workaround.
2399
2400 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2401 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2402 long long) to prevent compiler warning on 64-bit systems.
2403
2404 2002-08-23 Andrew Cagney <cagney@redhat.com>
2405
2406 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2407 (DEPRECATED_STORE_RETURN_VALUE): New method.
2408 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2409 * gdbarch.h, gdbarch.c: Re-generate.
2410
2411 * values.c (set_return_value): Pass current_regcache to
2412 STORE_RETURN_VALUE.
2413 * arch-utils.h (legacy_store_return_value): Declare.
2414 * arch-utils.c (legacy_store_return_value): New function.
2415 (legacy_extract_return_value): Update parameters.
2416
2417 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2418 STORE_RETURN_VALUE.
2419 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2420 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2421 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2422 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2423 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2424 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2425 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2426 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2427 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2428 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2429
2430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2431 * i386-tdep.c (i386_extract_return_value): Update.
2432 * arch-utils.c (legacy_extract_return_value): Update.
2433 * frv-tdep.c (frv_gdbarch_init): Update.
2434 * cris-tdep.c (cris_gdbarch_init): Update.
2435 * d10v-tdep.c (d10v_gdbarch_init): Update.
2436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2437 * m68k-tdep.c (m68k_gdbarch_init): Update.
2438 * mcore-tdep.c (mcore_gdbarch_init): Update.
2439 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2440 * s390-tdep.c (s390_gdbarch_init): Update.
2441 * sparc-tdep.c (sparc_gdbarch_init): Update.
2442 * sh-tdep.c (sh_gdbarch_init): Update.
2443 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2444 * v850-tdep.c (v850_gdbarch_init): Update.
2445 * avr-tdep.c (avr_gdbarch_init): Update.
2446 * ia64-tdep.c (ia64_gdbarch_init): Update.
2447 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2448 * vax-tdep.c (vax_gdbarch_init): Update.
2449 * alpha-tdep.c (alpha_gdbarch_init): Update.
2450 * arm-tdep.c (arm_gdbarch_init): Update.
2451 * mips-tdep.c (mips_gdbarch_init): Update.
2452 * i386-tdep.c (i386_gdbarch_init): Update.
2453
2454 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2455
2456 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2457 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2458
2459 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2460
2461 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2462 problems.
2463
2464 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2465
2466 * infrun.c (handle_inferior_event): Move a comment outside of a
2467 function call, in order to avoid indent reformatting this part
2468 of the code in an unreadable way.
2469
2470 2002-08-23 Grace Sainsbury <graces@redhat.com>
2471
2472 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2473 when breakpoints fail. Move general breakpoint error messages to
2474 insert_breakpoints.
2475 * breakpoint.c (insert_breakpoints): Change warnings when
2476 breakpoints are nto inserted to specify the type. Remove call to
2477 memory_error when hardware breakpoints can't be inserted. Remove
2478 multiple calls to warning so all messages are sent to the user at
2479 once.
2480 (delete_breakpoints): Make insert error messsages more explicit.
2481
2482 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2483
2484 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2485 gdbserver/ChangeLog.
2486
2487 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2488
2489 * i386-tdep.c: Include "objfiles.h".
2490 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2491 skip_trampoline_code.
2492 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2493 (CPLUS_MARKER): Define to '.'.
2494
2495 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2496 member.
2497 (linux_corefile_thread_callback): Increase args->num_notes.
2498 (linux_make_note_section): Initialize thread_args.num_notes, and
2499 use it to determine whether notes for any threads were created.
2500
2501 2002-08-23 Donn Terry <donnte@microsoft.com>
2502
2503 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2504 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2505 and PCUNKILL.
2506 (write_with_trace): Conditionalize out the switch branch handling
2507 PCSHOLD if the corresponding macro is not defined. Likewise for
2508 PRSABORT and PRSTOP.
2509 This change will be needed by the Interix port.
2510
2511 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2512
2513 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2514 write_register wherever possible instead of manipulating the
2515 register bytes directly.
2516 Assign VALUE_CONTENTS to a variable and use that.
2517 The GPR numbers are now dependent on the architecture.
2518
2519 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2520
2521 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2522 ev_offset fields.
2523 (skip_prologue): Add support for BookE/e500 instructions.
2524 (e500_extract_return_value): New function.
2525 (frame_get_saved_regs): Add support for saving ev registers and
2526 pseudo gpr's.
2527 (e500_store_return_value): New function.
2528 (rs6000_gdbarch_init): Move up default intializations of
2529 deprecated_extract_return_value and store_return_value. Overwrite
2530 init of store_return_value with e500 specific version.
2531 Set extract_return_value for e500.
2532
2533 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2534
2535 * blockframe.c (generic_call_dummy_register_unwind): Use
2536 regcache_cooked_read to catch cases in which the variable is
2537 stored in a pseudo register.
2538
2539 2002-08-22 Andrew Cagney <cagney@redhat.com>
2540
2541 * NEWS: Mention that the i960 has been made obsolete.
2542 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2543 i960-tdep.c
2544 (remote-nrom.o): Obsolete target.
2545 (remote-nindy.o, i960-tdep.o): Ditto.
2546 * remote-nrom.c: Make file obsolete.
2547 * remote-nindy.c, remote-vx960.c: Ditto.
2548 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2549 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2550 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2551 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2552 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2553 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2554 i960-*-vxworks* obsolete.
2555 * MAINTAINERS: Note that the i960 is obsolete.
2556
2557 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2558
2559 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2560 detach to allow reinitialization.
2561
2562 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2563
2564 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2565 attempt).
2566
2567 2002-08-22 Jim Blandy <jimb@redhat.com>
2568
2569 * coffread.c (coff_symfile_read): Don't try to read the line
2570 number table from disk if the image file doesn't have a symbol
2571 table; we'll never actually look at the info anyway, and Windows
2572 ships DLL's with bogus file offsets for the line number data.
2573
2574 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2575
2576 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2577 an e500 executable.
2578
2579 2002-08-21 Michael Snyder <msnyder@redhat.com>
2580
2581 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2582 (MSYMBOL_SIZE): Replace macro with function.
2583 (DEFAULT_MIPS_TYPE): Delete unused macro.
2584 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2585 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2586
2587 2002-08-21 Jim Blandy <jimb@redhat.com>
2588
2589 * valops.c (value_cast): Simplify and correct logic for doing a
2590 static cast from a pointer to a base class to a pointer to a
2591 derived class.
2592
2593 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2594
2595 * infcmd.c (default_print_registers_info): Replace
2596 do_registers_info.
2597 (registers_info): Use gdbarch_print_registers_info instead of
2598 DO_REGISTERS_INFO.
2599 * inferior.h (default_print_registers_info): Replace
2600 do_registers_info.
2601 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2602 (DO_REGISTERS_INFO): Change to a predicate function.
2603 * gdbarch.h, gdbarch.c: Regenerate.
2604
2605 2002-08-21 Keith Seitz <keiths@redhat.com>
2606
2607 * gdb-events.sh: Add target-changed event.
2608 * gdb-events.c: Regenerated.
2609 * gdb-events.c: Regenerated.
2610 * valops.c (value_assign): Add target-changed event notification
2611 to inlval_register, lval_memory, and lval_reg_frame_relative.
2612
2613 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2614
2615 * NEWS: Add an entry regarding the improvement of the next/step
2616 operation on Alpha Tru64 multi-processor machines.
2617
2618 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2619
2620 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2621 directores.
2622 * Makefile.in: Update all _h macro definitions.
2623 * Makefile.in (install-gdbtk): Move to install section.
2624 (rdi-share/libangsd.a): Move to end of file.
2625
2626 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2627
2628 * frame.c (frame_register_unwind): When a register, set addrp to
2629 the register's byte.
2630
2631 2002-08-20 Michael Snyder <msnyder@redhat.com>
2632
2633 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2634 used locally, so move them from the target machine header to here.
2635 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2636 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2637 Make static.
2638 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2639
2640 2002-08-20 Andrew Cagney <cagney@redhat.com>
2641
2642 * NEWS: Mention that the Apollo line was made obsolete.
2643 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2644 m68*-hp-hpux* obsolete.
2645 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2646 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2647 * buildsym.c (make_blockvector): Make static.
2648 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2649 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2650 (ALLDEPFILES): Remove dstread.c.
2651 (dstread.o): Obsolete make rule.
2652 * dstread.c: Makefile obsolete.
2653 * dst.h: Ditto.
2654 * config/m68k/hp300hpux.mt: Ditto.
2655 * config/m68k/hp300hpux.mh: Ditto.
2656 * config/m68k/hp300bsd.mt: Ditto.
2657 * config/m68k/hp300bsd.mh: Ditto.
2658 * config/m68k/apollo68b.mt: Ditto.
2659 * config/m68k/apollo68v.mh: Ditto.
2660 * config/m68k/apollo68b.mh: Ditto.
2661
2662 2002-08-20 Michael Snyder <msnyder@redhat.com>
2663
2664 * mips-tdep.c (mips_in_return_stub): Make static.
2665 (mips_gdbarch_init): Set in_solib_return_trampoline.
2666 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2667
2668 2002-08-20 Michael Snyder <msnyder@redhat.com>
2669
2670 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2671 * gdbarch.c, gdbarch.h: Regenerate.
2672 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2673 Add.
2674 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2675
2676 2002-08-20 Michael Snyder <msnyder@redhat.com>
2677
2678 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2679 (mips_gdbarch_init): Set skip_trampoline_code,
2680 in_solib_call_trampoline.
2681 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2682 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2683
2684 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2685
2686 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2687
2688 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2689 vector type for ev registers.
2690 (e500_pseudo_register_read): New function.
2691 (e500_pseudo_register_write): New function.
2692 (e500_dwarf2_reg_to_regnum): New function.
2693 (PPC_UISA_NOFP_SPRS): New macro.
2694 (PPC_EV_REGS): New macro.
2695 (PPC_GPRS_PSEUDO_REGS): New macro.
2696 (registers_e500): New register set for e500.
2697 (variants): Add e500 variant.
2698 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2699 before setting architectural dependent variations. Initialize ev
2700 registers numbers. Add case for e500 architecture. Set the
2701 number of pseudo registers.
2702
2703 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2704
2705 * rs6000-tdep.c: Clean up comments.
2706
2707 2002-08-20 Andrew Cagney <cagney@redhat.com>
2708
2709 * h8300-tdep.c: Re-indent file.
2710
2711 2002-08-20 Jim Blandy <jimb@redhat.com>
2712
2713 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2714 default for this.
2715
2716 2002-08-20 Keith Seitz <keiths@redhat.com>
2717
2718 * breakpoints.c (watch_command_1): Use internal breakpoint
2719 when setting a watchpoint_scope breakpoint.
2720
2721 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2722
2723 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2724 (build_builtin_type_vec64i): Ditto.
2725 (build_builtin_type_vec128): Ditto.
2726 (build_builtin_type_vec128i): Ditto.
2727
2728 2002-08-19 Michael Snyder <msnyder@redhat.com>
2729
2730 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2731 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2732 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2733 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2734 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2735 CALL_DUMMY_ADDRESS): Delete.
2736 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2737 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2738 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2739 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2740 push_return_address.
2741 (mips_register_raw_size, mips_eabi_use_struct_convention,
2742 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2743 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2744 mips_init_extra_frame_info, mips_eabi_push_arguments,
2745 mips_n32n64_push_arguments, mips_push_return_address,
2746 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2747 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2748
2749 2002-08-19 Michael Snyder <msnyder@redhat.com>
2750
2751 * mips-tdep.c (mips_frame_num_args): New function.
2752 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2753 frame_saved_pc, frame_args_address, frame_locals_address,
2754 frame_num_args, and frame_args_skip.
2755 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2756 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2757 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2758 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2759
2760 2002-08-20 Michael Snyder <msnyder@redhat.com>
2761
2762 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2763 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2764 * mips-tdep.c (mips_store_struct_return): New function.
2765 (mips_extract_struct_value_address): New function.
2766 (mips_gdbarch_init): Set store_struct_return and
2767 extract_struct_value_address.
2768
2769 2002-08-20 David Carlton <carlton@math.stanford.edu>
2770
2771 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2772 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2773 (read_file_scope): Check that line_header is nonzero before
2774 decoding macro information.
2775
2776 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2777
2778 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2779 flag the general-purpose registers as floating-point on targets
2780 that don't support the floating-point registers.
2781
2782 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2783
2784 * rs6000-tdep.c (altivec_register_p): Delete.
2785 (rs6000_do_altivec_registers): Delete.
2786 (rs6000_altivec_registers_info): Delete.
2787 (rs6000_do_registers_info): Delete.
2788 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2789 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2790
2791 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2792
2793 * infcmd.c (do_registers_info): Print vector registers in hex
2794 format only.
2795 (print_vector_info): Check that printing registers
2796 makes sense.
2797 (print_float_info): Ditto.
2798
2799 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2800
2801 * mips-tdep.c (mips_gdbarch_init): Update.
2802 (mips_o32_extract_return_value): Rewrite.
2803 (mips_o32_store_return_value): Rewrite.
2804 (mips_o32_xfer_return_value): New function.
2805 (mips_xfer_register): Tweak debug print message. Allow for
2806 buf_offset when dumping the value transfered.
2807
2808 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2809
2810 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2811 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2812 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2813 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2814 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2815
2816 2002-08-14 Michael Snyder <msnyder@redhat.com>
2817
2818 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2819
2820 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2821
2822 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2823 register.
2824 (P): New macro to define a register as a pseudo register.
2825 (R, R4, R8, R16, FR32, R64, R0): Updated.
2826 (struct variant): Add new fields for number of pseudo registers
2827 and number of total registers.
2828 (tot_num_registers): New macro replacing....
2829 (num_registers): ...deleted macro.
2830 (num_registers): New function.
2831 (num_pseudo_registers): New function.
2832 (variants): Update all variants to intialize new fields correctly.
2833 Postpone initialization of number of pseudo regs and real regs.
2834 (init_variants): New function.
2835 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2836 registers offsets.
2837
2838 2002-08-19 David Carlton <carlton@math.stanford.edu>
2839
2840 * valops.c (search_struct_field): Change error message to treat
2841 return value of 0 from value_static_field as meaning that field is
2842 optimized out.
2843 (value_struct_elt_for_reference): Ditto.
2844 * values.c (value_static_field): Treat an unresolved location the
2845 same as a nonexistent symbol. Fix PR gdb/635.
2846 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2847 enclosed. Fix PR gdb/574.
2848 * MAINTAINERS: Add self to Write After Approval list.
2849
2850 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2851
2852 * mips-tdep.c (mips_xfer_register): New function.
2853 (mips_n32n64_extract_return_value): Rewrite.
2854 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2855 instead of deprecated_extract_return_value.
2856
2857 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2858
2859 * rs6000-tdep.c (TDEP): Delete macro.
2860 (branch_dest): Replace use of TDEP macro with its body.
2861 (rs6000_pop_frame): Ditto.
2862 (rs6000_push_arguments): Ditto.
2863 (rs6000_skip_trampoline_code): Ditto.
2864 (rs6000_frame_saved_pc): Ditto.
2865 (rs6000_frame_chain): Ditto.
2866 (rs6000_register_name): Ditto.
2867 (rs6000_register_byte): Ditto.
2868 (rs6000_register_raw_size): Ditto.
2869 (rs6000_register_virtual_type): Ditto.
2870 (rs6000_register_convertible): Ditto.
2871 (rs6000_convert_from_func_ptr_addr): Ditto.
2872
2873 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2874
2875 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2876 conditionally.
2877 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2878 MIPS_LINUX_JB_ELEMENT_SIZE.
2879 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2880 for MAX_REGISTER_RAW_SIZE arrays.
2881 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2882 MIPS_LINUX_JB_ELEMENT_SIZE.
2883
2884 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2885
2886 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2887
2888 2002-08-19 Aidan Skinner <aidan@velvet.net>
2889
2890 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2891 ada-valprint.c ada-tasks.c.
2892 (YYFILES): Add ada-exp.y.
2893 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2894 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2895 (ada-exp.tab.o): New target.
2896
2897 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2898
2899 * regcache.c (regcache_xfer_part): New function.
2900 (regcache_raw_read_part): New function.
2901 (regcache_raw_write_part): New function.
2902 (regcache_cooked_read_part): New function.
2903 (regcache_cooked_write_part): New function.
2904 * regcache.h (regcache_raw_read_part): Declare.
2905 (regcache_raw_write_part): Declare.
2906 (regcache_cooked_read_part): Declare.
2907 (regcache_cooked_write_part): Declare.
2908
2909 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2910
2911 * remote.c (remote_open_1): Add async_p.
2912 (remote_async_open_1): Delete.
2913 (open_remote_target): Delete.
2914 (remote_open, extended_remote_open): Update calls to remote_open_1.
2915 (remote_async_open, extended_remote_async_open): Call
2916 remote_open_1 instead of remote_async_open_1.
2917
2918 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2919
2920 * blockframe.c: Fix a few coding standard violations.
2921
2922 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2923
2924 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2925 here from ...
2926 * config/i386/tm-i386sco5.h: ... here. File removed.
2927 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2928
2929 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2930 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2931 (TM_FILE): Set to tm-i386.h.
2932 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2933 * config/i386/tm-i386v.h: Remove file.
2934 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2935 instead of "i386/tm-i386v.h".
2936 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2937 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2938 "i386/tm-i386v.h".
2939 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2940 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2941 "i386/tm-i386.h".
2942
2943 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2944
2945 * config/i386/nm-i386v.h: Add protection against
2946 multiple-inclusion.
2947 (i386_register_u_addr): Remove prototype.
2948 (register_u_addr): New prototype.
2949 (REGISTER_U_ADDR): Redefine accordingly.
2950 * i386v-nat.c: Improve several comments.
2951 (i386_register_u_addr): Change signature and rename to
2952 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2953 ubase variable.
2954
2955 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2956
2957 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2958 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2959 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2960 deprecated_extract_return_value.
2961 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2962 rename mips_o32o64_push_arguments.
2963 (mips_gdbarch_init): Update.
2964 (mips_extract_return_value): Delete.
2965 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2966 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2967 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2968 (mips_n32n64_extract_return_value): Clone
2969 mips_extract_return_value.
2970 (mips_store_return_value): Delete.
2971 (mips_o32_store_return_value): Clone mips_store_return_value.
2972 (mips_o64_store_return_value): Clone mips_store_return_value.
2973 (mips_eabi_store_return_value): Clone mips_store_return_value.
2974 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2975
2976 2002-08-18 Aidan Skinner <aidan@velvet.net>
2977
2978 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2979 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2980
2981 2002-08-18 Aidan Skinner <aidan@velvet.net>
2982
2983 * ada-lang.c: Run through gdb_indent.sh.
2984 * ada-lang.h: Run through gdb_indent.sh.
2985 * ada-tasks.c: Run through gdb_indent.sh.
2986 * ada-typeprint.c: Run through gdb_indent.sh.
2987 * ada-valprint.c: Run through gdb_indent.sh.
2988
2989 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2990
2991 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2992 ABI.
2993
2994 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2995
2996 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2997
2998 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2999 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3000
3001 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3002 write_register_gen instead of write_register_bytes.
3003
3004 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3005 i[3456]-*-osf1mk* configurations have been made obsolete.
3006 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3007 i[3456]86-*-osf1mk* hosts obsolete.
3008 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3009 targets obsolete.
3010 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3011 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3012 config/i386/i386m3.mt, config/i386/nm-m3.h,
3013 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3014 config/i386/i386mk.mh, config/i386/i386mk.mt,
3015 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3016 obsolete.
3017 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3018 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3019 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3020
3021 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3022
3023 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3024 (hppa_value_returned_from_stack): Declare.
3025 (hppa_extract_return_value): Declare.
3026 * config/pa/hppa.mt: New file.
3027 * configure.tgt: Recognize hppa*-*-*.
3028 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3029
3030 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3031
3032 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3033 comment.
3034
3035 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3036
3037 * top.c (gdb_rl_operate_and_get_next): Make sure
3038 operate-and-get-next functions correctly even when the history
3039 list is completely filled.
3040
3041 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3042
3043 * MAINTAINERS (Target Instruction Set Architectures): Rename
3044 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3045 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3046 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3047 already listed under Host/Native.
3048
3049 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3050 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3051 mips*-*-*.
3052
3053 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3054
3055 * config/ia64/ia64.mt: New file.
3056 * config/alpha/alpha.mt: New file.
3057 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3058 ia64-linux-gnu. Mention that ia64-elf is broken.
3059 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3060
3061 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3062
3063 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3064 generic_func_frame_valid instead of func_frame_valid.
3065
3066 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3067
3068 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3069 procfs appears to be broken when debugging on multi-processor
3070 machines. So enable software single stepping in order to avoid
3071 using the procfs interface to do next/step operations, using
3072 internal breakpoints instead.
3073
3074 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3075 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3076 make this pc address equal to the value it would have if the
3077 system stepping capability was used. Also set a new flag used
3078 to ensure that we don't readjust the PC one more time later.
3079
3080 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3081 address by DECR_PC_AFTER_BREAK when software single step is
3082 in use for this architecture, as this has already been taken
3083 care of in handle_inferior_event().
3084
3085 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3086
3087 * infrun.c (handle_inferior_event): Minor reformatting, to make
3088 a rather long condition expression easier to read.
3089
3090 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3091
3092 * Makefile.in (gdbtk.o): Move to end of file.
3093 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3094 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3095 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3096 (gdbtk-wrapper.o, gdbres.o): Ditto.
3097
3098 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3099
3100 * Makefile.in (copying.o): Separate out compile rule.
3101 (hpux-thread.o, procfs.o, signals.o): Ditto.
3102 (v850ice.o, z8k-tdep.o): Ditto.
3103 (tui-file.o): Move to TUI section.
3104 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3105 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3106
3107 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3108
3109 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3110 skip_trampoline_code, for better namespace-proofing.
3111
3112 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3113
3114 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3115
3116 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3117
3118 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3119
3120 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3121 signal, check whether we hit a breakpoint before checking for a
3122 single step breakpoint. Otherwise, GDB fails to notice that a
3123 breakpoint has been hit when stepping onto a breakpoint.
3124
3125 2002-08-16 Keith Seitz <keiths@redhat.com>
3126
3127 * gdb-events.sh (clear_gdb_event_hooks): New function.
3128 * gdb-events.c: Regenerate.
3129 * gdb-events.h: Regenerate.
3130
3131 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3132
3133 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3134 not_a_sw_breakpoint.
3135 * breakpoint.h (bpstat_stop_status): Add parameter names.
3136
3137 2002-08-16 Grace Sainsbury <graces@redhat.com>
3138
3139 * remote.c (remote_insert_hw_breakpoint)
3140 (remote_remove_hw_breakpoint): Fix calculation of length field
3141 for Z-packet.
3142
3143 2002-08-15 Michael Snyder <msnyder@redhat.com>
3144
3145 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3146 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3147 (supply_fpregset): Ditto.
3148
3149 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3150 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3151 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3152 (TARGET_READ_SP): Delete.
3153 (DO_REGISTERS_INFO): Delete.
3154 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3155 Delete.
3156 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3157 from macros to functions.
3158
3159 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3160 (mips_register_convertible, mips_register_convert_to_virtual,
3161 mips_register_convert_to_raw): Make static.
3162 (mips_read_sp): New function.
3163 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3164 (mips_do_registers_info): Make static.
3165 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3166 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3167 (mips_register_convert_from_type, mips_register_convert_to_type):
3168 New functions.
3169 (mips_gdbarch_init): Set up function_start_offset,
3170 register_virtual_size, pc_in_sigtramp.
3171
3172 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3173
3174 * infcmd.c (vector_info): New function.
3175 (_initialize_infcmd): Add command "info vector".
3176 (print_vector_info): New function.
3177
3178 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3179 * gdbarch.h, gdbarch.c: Regenerate.
3180
3181 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3182
3183 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3184 ``print_all''. Only print vector registers when ``print_all''.
3185
3186 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3187
3188 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3189 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3190
3191 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3192 Add `args' parameter.
3193 * gdbarch.h, gdbarch.c: Regenerate.
3194
3195 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3196
3197 * infcmd.c (float_info): Call print_float_info.
3198 (print_float_info): New function. By default, print the
3199 floating-point registers.
3200
3201 * arch-utils.h (default_print_float_info): Delete declaration.
3202 * arch-utils.c (default_print_float_info): Delete function.
3203
3204 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3205
3206 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3207 out define.
3208
3209 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3210 FRAME.
3211
3212 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3213 * configure.host: Make i[3456]86-*-aix host obsolete.
3214 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3215 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3216 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3217 config/i386/xm-i386aix.h: Make files obsolete.
3218 * i386aix-nat.c: Make file obsolete.
3219 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3220 (i386aix-nat.o): Make target obsolete.
3221
3222 * config/i386/nm-gnu.h: Removed.
3223 * config/i386/nm-i386gnu.h: New file.
3224 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3225 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3226 Moved here from ...
3227 * config/i386/tm-i386gnu.h: ... here. Removed.
3228 * config/i386/xm-i386gnu.h: Removed.
3229 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3230 (NAT_FILE): Set to nm-i386gnu.h.
3231 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3232 * i386-tdep.c: New file.
3233 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3234 (i386gnu-tdep.o): Specify dependencies.
3235
3236 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3237
3238 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3239 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3240 Adjust a few comments to reflect reality a bit closer.
3241 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3242 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3243 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3244 target_insert_watchpoint, target_remove_watchpoint):
3245 Move defines to ...
3246 * config/i386/nm-i386sco5.h: ... here.
3247 (kernel_u_size): Add prototype. Improve a few comments and add
3248 protection against multiple inclusion.
3249
3250 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3251 out define.
3252
3253 * uw-thread.c (SP_ARG0): Define if not already defined.
3254 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3255
3256 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3257
3258 * config/i386/tm-i386.h: Don't include "regcache.h".
3259
3260 * i387-tdep.h (i387_print_float_info): New prototype.
3261 * i387-tdep.c (print_i387_value, print_i387_ext,
3262 print_i387_status_word, print_i387_control_word): Add `struct
3263 ui_file *' argument and use it for output.
3264 (i387_print_float_info): Renamed from i387_float_info. Add
3265 `struct gdbarch *' and `struct ui_file *' arguments and use the
3266 latter for output.
3267 * i386-tdep.c: Include "i387-tdep.h".
3268 (i386_gdbarch_init): Set print_float_info.
3269 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3270 (FLOAT_INFO): Remove define.
3271
3272 2002-08-13 Michael Snyder <msnyder@redhat.com>
3273
3274 * mips-tdep.c (mips_push_arguments): Rename to
3275 mips_eabi_push_arguments, and tune for EABI.
3276 (MIPS_REGS_HAVE_HOME_P): Delete.
3277 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3278 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3279 Delete references to mips_regs_have_home_p.
3280
3281 2002-08-14 Keith Seitz <keiths@redhat.com>
3282
3283 * Makefile.in (install-gdbtk): Create insight plugin directory.
3284 Install plugins.tcl file.
3285
3286 2002-08-14 Keith Seitz <keiths@redhat.com>
3287
3288 * configure.in: Move SUBDIRS to near top of the file so that
3289 --enable options may add things to it.
3290 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3291 * configure: Regenerate.
3292
3293 2002-08-13 Michael Snyder <msnyder@redhat.com>
3294
3295 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3296 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3297 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3298
3299 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3300
3301 * vax-tdep.c (vax_get_saved_register): Delete function.
3302 (vax_gdbarch_init): Update.
3303 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3304 (ns32k_gdbarch_init): Update.
3305 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3306 (alpha_gdbarch_init): Update.
3307
3308 2002-08-13 Andrew Cagney <cagney@redhat.com>
3309
3310 * regcache.c (init_regcache_descr): Overallocate the
3311 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3312 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3313 nr_raw_registers.
3314 (set_register_cached): Add range checking assertions. Use
3315 current_regcache.
3316
3317 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3318
3319 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3320 numbers for MMX registers.
3321
3322 2002-08-13 Andrew Cagney <cagney@redhat.com>
3323
3324 * i386-tdep.c (i386_gdbarch_init): Use
3325 generic_unwind_get_saved_register.
3326
3327 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3328
3329 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3330 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3331 target vector.
3332 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3333 Delete. Add comment regarding this now-deleted target method.
3334
3335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3336
3337 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3338 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3339 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3340 real PC and the page number (if it's within the memory bank window).
3341 (m68hc11_pseudo_register_write): Likewise when saving.
3342 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3343 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3344 (m68hc11_register_raw_size): And use 32-bit for it.
3345 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3346 16K memory bank is used by the prog; also use the virtual pc.
3347
3348 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3349
3350 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3351 (m68hc11_gdbarch_init): Install it in gdbarch.
3352 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3353 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3354 (MSYMBOL_SIZE): New for documentation.
3355 (insn_return_kind): Enum to specify how a function returns.
3356 (frame_extra_info): Cleanup and record the return mode.
3357 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3358 register in address computation.
3359 (m68hc11_get_return_insn): New to obtain the return instruction used
3360 by the function.
3361 (m68hc11_frame_init_saved_regs): Take into account the return
3362 instruction used by the function for far and interrupt functions.
3363 (m68hc11_init_extra_frame_info): Take into account page register.
3364 (m68hc11_frame_args_address): Adjust according to the return mode.
3365 (show_regs): Print page register only when it's used.
3366
3367 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3368
3369 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3370 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3371 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3372 registers.
3373 (m68hc11_register_raw_size): Likewise.
3374
3375 2002-08-13 Andrew Cagney <cagney@redhat.com>
3376
3377 * i386-tdep.c (i386_register_name): Handle mmx registers.
3378 (mmx_regnum_p): New function.
3379 (i386_mmx_names): New array.
3380 (mmx_num_regs): New variable.
3381 (i386_pseudo_register_read): New function.
3382 (i386_pseudo_register_write): New function.
3383 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3384
3385 * regcache.c (regcache_raw_read_unsigned): New function.
3386 (regcache_raw_read_signed): New function.
3387 * regcache.h (regcache_raw_read_unsigned): Declare.
3388 (regcache_raw_read_signed): Declare.
3389
3390 2002-08-13 Andrew Cagney <cagney@redhat.com>
3391
3392 * regcache.c (regcache_raw_read_as_address): Delete function.
3393 (regcache_cooked_read_signed): New function.
3394 (regcache_cooked_read_unsigned): New function.
3395 * regcache.h (regcache_cooked_read_signed): Declare.
3396 (regcache_cooked_read_unsigned): Declare.
3397 (regcache_raw_read_as_address): Delete declaration.
3398
3399 * blockframe.c (generic_read_register_dummy): Use
3400 regcache_cooked_read_unsigned.
3401 * i386-tdep.c (i386_extract_struct_value_address): Use
3402 regcache_cooked_read_unsigned.
3403
3404 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3405
3406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3407 double sizes according to ELF ABI flags.
3408 (gdbarch_tdep): Record elf_flags.
3409
3410 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3411
3412 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3413 (m6812_prolog): They can appear in 68HC12 function prologue.
3414 (m68hc11_frame_chain): Cleanup.
3415
3416 2002-08-12 Andrew Cagney <cagney@redhat.com>
3417
3418 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3419 declarations.
3420 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3421 (i386_linux_register_raw_size): Delete function.
3422 (i386_linux_init_abi): Update.
3423 * i386-tdep.c (i386_register_raw_size): Delete function.
3424 (i386_register_byte): Delete function.
3425 (i386_gdbarch_init): Update.
3426 (i386_register_size): Delete array.
3427 (i386_register_offset): Delete array.
3428
3429 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3430 (REGISTER_RAW_SIZE): Delete macro.
3431 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3432 (REGISTER_BYTE): Delete macro.
3433
3434 2002-08-11 Aidan Skinner <aidan@velvet.net>
3435
3436 * ada-lang.c (ada_lookup_partial_symbol)
3437 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3438 prototype names so that grep ^func works properly.
3439
3440 * ada-lang.c (ada_array_element_type)
3441 (ada_lookup_partial_symbol): Fix typos in parameter list.
3442
3443 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3444 Fix prototype names so that grep ^func works properly.
3445
3446 2002-08-10 Andrew Cagney <cagney@redhat.com>
3447 Elena Zannoni <ezannoni@redhat.com>
3448 Martin M. Hunt <hunt@redhat.com>
3449
3450 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3451 (build_builtin_type_vec128i): Set the vector bit.
3452 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3453 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3454 (build_builtin_type_vec64): New function.
3455 (build_builtin_type_vec64i): New function.
3456 (build_gdbtypes): Initialize builtin_type_vec64 and
3457 builtin_type_vec64i.
3458
3459 2002-08-09 Andrew Cagney <cagney@redhat.com>
3460
3461 * regcache.c (regcache_dump): Compare the register offset
3462 with REGISTER_BYTE.
3463 * arch-utils.c (generic_register_byte): New function.
3464 * arch-utils.h (generic_register_byte): Declare.
3465 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3466 * gdbarch.h, gdbarch.c: Regenerate.
3467
3468 2002-08-09 Andrew Cagney <cagney@redhat.com>
3469
3470 * regcache.c: Include "gdbcmd.h"
3471 (_initialize_regcache): Add commands "maintenance print
3472 registers", "maintenance print raw-registers" and "maintenance
3473 print cooked-registers".
3474 (enum regcache_dump_what): Define.
3475 (dump_endian_bytes): New function.
3476 (regcache_dump): New function.
3477 (regcache_print): New function.
3478 (maintenance_print_registers): New function.
3479 (maintenance_print_raw_registers): New function.
3480 (maintenance_print_cooked_registers): New function.
3481 * Makefile.in (regcache.o): Update dependencies.
3482
3483 2002-08-09 Michael Snyder <msnyder@redhat.com>
3484
3485 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3486 (mips_push_arguments): Correct some comments. Use paddr_nz
3487 for printing addresses in debug output. Replace static
3488 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3489 (mips_n32n64_push_arguments): New function, cloned from
3490 mips_push_arguments and tuned for the n32/n64 ABI.
3491 (mips_push_register): Buffer needs dynamic allocation.
3492 (mips_print_register): Ditto.
3493 (do_gp_register_row): Ditto.
3494 (mips_store_return_value): Ditto.
3495 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3496
3497 2002-08-09 Don Howard <dhoward@redhat.com>
3498
3499 * memattr.c (mem_info_command): Print special case of upper bound
3500 as max CORE_ADDR + 1.
3501
3502 2002-08-08 Michael Snyder <msnyder@redhat.com>
3503
3504 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3505 returns structs by ref if they're too big to fit in two registers.
3506
3507 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3508
3509 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3510 saved regs value.
3511 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3512 mips_find_saved_regs().
3513 (mips_pop_frame): Likewise.
3514
3515 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3516
3517 * blockframe.c (frame_saved_regs_register_unwind): Revise
3518 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3519 frames are in use.
3520
3521 2002-08-09 Grace Sainsbury <graces@redhat.com>
3522
3523 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3524 T-packets; the 'a' is not taken as a register number.
3525 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3526 (remote_stopped_data_address): New functions; add to target
3527 vector.
3528 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3529 prototypes to match other implementations of this
3530 function. replace integer argument with pointer -- the length
3531 field in the Z-packet is the length of what is pointed to or 1 if
3532 pointer is null. Add to target vector.
3533 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3534 target vector.
3535
3536 From Mark Salter:
3537 * remote.c (remote_wait): Add support to extract optional
3538 watchpoint information from T-packet. Ignore unrecognized
3539 optional info in T-packet.
3540 (remote_async_wait): Ditto.
3541
3542 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3543
3544 * cli/cli-dump.c: Change fopen modes to use binary open modes
3545 as defined in include/fopen-bin.h throughout.
3546
3547 2002-08-08 Michael Snyder <msnyder@redhat.com>
3548
3549 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3550
3551 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3552
3553 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3554 assertion failure by returning early after a warning.
3555
3556 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3557
3558 * mips-tdep.c (mips_find_saved_regs): Make static.
3559 (mips_frame_init_saved_regs): New function.
3560 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3561 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3562 (mips_find_saved_regs): Delete declaration.
3563
3564 2002-08-08 Grace Sainsbury <graces@redhat.com>
3565
3566 * remote.c (remote_wait, remote_async_wait): Change
3567 thread_num from int to ULONGEST.
3568 (unpack_varlen_hex): Change result parameter from
3569 int * to ULONGEST *.
3570
3571 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3572
3573 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3574 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3575 powerpc*-*-*.
3576 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3577
3578 2002-08-08 Andrew Cagney <cagney@redhat.com>
3579
3580 * gcore.c (override_derive_stack_segment): Delete variable.
3581 (preempt_derive_stack_segment): Delete function.
3582 (derive_stack_segment): Delete function.
3583 (default_derive_stack_segment): Renamed to derive_stack_segment.
3584 (override_derive_heap_segment): Delete variable.
3585 (preempt_derive_heap_segment): Delete function.
3586 (derive_heap_segment): Delete function.
3587 (default_derive_heap_segment): Rename to derive_heap_segment.
3588
3589 2002-08-06 Michael Snyder <msnyder@redhat.com>
3590
3591 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3592 * mips-tdep.c (mips_EABI_use_struct_convention,
3593 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3594 New functions. (mips_use_struct_convention): Delete.
3595 (mips_gdbarch_init): set use_gdbarch_convention.
3596
3597 2002-08-06 Michael Snyder <msnyder@redhat.com>
3598
3599 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3600 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3601 mips_o32_reg_struct_has_addr): New functions.
3602 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3603
3604 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3605
3606 * regcache.c (pseudo_register): Delete function.
3607 (fetch_register): Delete function.
3608 (store_register): Delete function.
3609 (regcache_raw_read, legacy_read_register_gen): Use
3610 target_fetch_registers instead of fetch_register.
3611 (legacy_write_register_gen, regcache_raw_write): Use
3612 target_store_register instead of store_register.
3613 (write_register_bytes): Ditto.
3614
3615 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3616 (STORE_PSEUDO_REGISTER): Delete.
3617 * gdbarch.h, gdbarch.c: Regenerate.
3618
3619 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3620
3621 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3622 write dump file binary.
3623
3624 2002-08-05 Michael Snyder <msnyder@redhat.com>
3625
3626 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3627 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3628 (mips_gdbarch_init): Set N32 target to be mips64.
3629
3630 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3631
3632 * frame.c (find_saved_register): Break out of loop once saved
3633 register address is found. Don't mention sparc in loop comment
3634 anymore.
3635
3636 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3637
3638 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3639 mips_default_saved_regsize to 8.
3640
3641 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3642
3643 * gcore.c: Do not include <sys/procfs.h>.
3644 * Makefile.in (gcore.o): Update dependencies.
3645
3646 2002-08-06 Andrew Cagney <cagney@redhat.com>
3647
3648 * configure.tgt: Make arc-*-* obsolete.
3649 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3650 * MAINTAINERS: Make arc-elf obsolete.
3651 * arc-tdep.c: Make file obsolete.
3652 * config/arc/arc.mt: Ditto.
3653 * config/arc/tm-arc.h: Ditto.
3654
3655 2002-08-05 Theodore A. Roth <troth@verinet.com>
3656
3657 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3658
3659 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3660
3661 * mcore-tdep.c (mcore_gdbarch_init): Use
3662 generic_unwind_get_saved_register instead of
3663 generic_get_saved_register.
3664 * v850-tdep.c (v850_gdbarch_init): Ditto.
3665 * frv-tdep.c (frv_gdbarch_init): Ditto.
3666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3667 * s390-tdep.c (s390_gdbarch_init): Ditto.
3668 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3669 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3670 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3671
3672 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3673
3674 * objfiles.h: Add missing #include "symfile.h"
3675
3676 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3677
3678 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3679
3680 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3681 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3682 of FIELD_BITSIZE.
3683
3684 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3685
3686 * NEWS: Cleanup and nitpick.
3687
3688 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3689
3690 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3691
3692 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3693
3694 * Makefile.in (gdbtk-bp.o): Update dependencies.
3695 (gdbtk-register.o): Ditto.
3696 (gdbtk-varobj.o): Ditto.
3697
3698 2002-08-03 Andrew Cagney <cagney@redhat.com>
3699
3700 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3701 m68hc11_fetch_pseudo_register.
3702 (m68hc11_pseudo_register_write): Replace
3703 m68hc11_store_pseudo_register.
3704 (m68hc11_gdbarch_init): Update.
3705
3706 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3707
3708 * gdbarch.sh: Include "gdb_string.h".
3709 * gdbarch.c: Regenerate.
3710
3711 * regcache.c: Include "gdb_string.h".
3712 * ax-general.c: Ditto.
3713 * varobj.c: Ditto.
3714 * std-regs.c: Ditto.
3715 * fbsd-proc.c: Ditto.
3716 * thread.c: Ditto.
3717
3718 * Makefile.in (regcache.o): Update dependencies.
3719 (thread.o, gdbarch.o): Ditto.
3720 (ax-general.o, gdbarch.o): Ditto.
3721 (varobj.o, std-regs.o): Ditto.
3722 (fbsd-proc.o): Specify dependencies.
3723
3724 2002-08-02 Andrew Cagney <cagney@redhat.com>
3725
3726 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3727 regnum.
3728 (regcache_cooked_write): Ditto.
3729
3730 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3731
3732 * regcache.c (regcache_cooked_read): New function.
3733 (regcache_cooked_write): New function.
3734 (read_register_gen): Rewrite using regcache_cooked_read.
3735 (write_register_gen): Rewrite using regcache_cooked_write.
3736
3737 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3738 Declare.
3739
3740 2002-08-02 Andrew Cagney <cagney@redhat.com>
3741
3742 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3743 Replace the architecture methods register_read and register_write.
3744 * gdbarch.h, gdbarch.c: Regenerate.
3745 * regcache.c (init_regcache_descr): Update.
3746 (read_register_gen): Update.
3747 (write_register_gen): Update.
3748 (supply_register): Update comment.
3749
3750 * sh-tdep.c (sh_gdbarch_init): Update.
3751 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3752 `regcache' and `gdbarch' parameters. Make `buffer' a void
3753 pointer. Update code.
3754 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3755 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3756 void pointer. Update code.
3757 (sh64_register_write): Delete.
3758 (sh4_register_read): Delete.
3759 (sh64_register_read): Delete.
3760 (sh4_register_write): Delete.
3761 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3762 void pointer, `to' parameter a void pointer.
3763 (sh_sh64_register_convert_to_raw): Ditto.
3764
3765 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3766
3767 * mips-tdep.c (mips_register_virtual_type): Use architecture
3768 invariant return values.
3769
3770 2002-08-01 Andrew Cagney <cagney@redhat.com>
3771
3772 * linux-proc.c: Include "gdb_string.h".
3773 * Makefile.in (linux-proc.o): Update dependency list.
3774
3775 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3776
3777 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3778 comment.
3779
3780 2002-08-01 Grace Sainsbury <graces@redhat.com>
3781
3782 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3783 to_insert_watchpoint, to_remove_watchpoint,
3784 to_stopped_by_watchpoint, to_stopped_data_address,
3785 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3786 target vecctor. Define their corresponding macros so they call
3787 them.
3788
3789 * target.c: Add default and debug versions of for
3790 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3791 to_insert_watchpoint, to_remove_watchpoint,
3792 to_stopped_by_watchpoint, to_stopped_data_address,
3793 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3794
3795 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3796
3797 * mips-tdep.c (mips_register_virtual_type): New function.
3798 (mips_gdbarch_init): Register mips_register_virtual_type()
3799 with gdbarch machinery.
3800 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3801 this file instead of tm-bigmips.h.
3802 (MIPS_REGSIZE): Delete this macro.
3803 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3804 multiarch version in mips-tdep.c will be found.
3805
3806 2002-08-01 Andrew Cagney <cagney@redhat.com>
3807
3808 * NEWS: Menion that CHILL has been made obsolete.
3809
3810 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3811 * stabsread.c (read_range_type): Ditto.
3812 * gdbtypes.h: Ditto.
3813 * language.c (binop_type_check): Ditto.
3814 (binop_result_type): Ditto.
3815 (integral_type): Ditto.
3816 (character_type): Ditto.
3817 (string_type): Ditto.
3818 (boolean_type): Ditto.
3819 (structured_type): Ditto.
3820 (lang_bool_type): Ditto.
3821 (binop_type_check): Ditto.
3822 * language.h (_LANG_chill): Ditto.
3823 * dwarfread.c (set_cu_language): Ditto.
3824 * dwarfread.c (CHILL_PRODUCER): Ditto.
3825 * dwarfread.c (handle_producer): Ditto.
3826 * expression.h (enum exp_opcode): Ditto.
3827 * eval.c: Ditto for comments.
3828 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3829 * expprint.c (print_subexp): Ditto.
3830 (print_subexp): Ditto.
3831 * valops.c (value_cast): Ditto.
3832 (search_struct_field): Ditto.
3833 * value.h (COERCE_VARYING_ARRAY): Ditto.
3834 * symfile.c (init_filename_language_table): Ditto.
3835 (add_psymbol_with_dem_name_to_list): Ditto.
3836 * valarith.c (value_binop): Ditto.
3837 (value_neg): Ditto.
3838 * valops.c (value_slice): Ditto.
3839 * symtab.h (union language_specific): Ditto.
3840 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3841 (SYMBOL_DEMANGLED_NAME): Ditto.
3842 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3843 * defs.h (enum language): Ditto.
3844 * symtab.c (got_symtab): Ditto.
3845 * utils.c (fprintf_symbol_filtered): Ditto.
3846
3847 * ch-typeprint.c: Make file obsolete.
3848 * ch-valprint.c: Make file obsolete.
3849 * ch-lang.h: Make file obsolete.
3850 * ch-exp.c: Make file obsolete.
3851 * ch-lang.c: Make file obsolete.
3852
3853 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3854 CHILL_LIB.
3855 (TARGET_FLAGS_TO_PASS): Ditto.
3856 (CHILLFLAGS): Obsolete.
3857 (CHILL): Obsolete.
3858 (CHILL_FOR_TARGET): Obsolete.
3859 (CHILL_LIB): Obsolete.
3860 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3861 ch-valprint.c.
3862 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3863 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3864 ch-lang.o.
3865 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3866 targets.
3867
3868 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3869
3870 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3871 This does not change anything at the moment, but will be helpful
3872 later when full Ada support is integrated.
3873
3874 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3875
3876 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3877 help message.
3878
3879 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3880
3881 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3882 and save it in a local variable. Use variable in later test.
3883
3884 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3885
3886 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3887 test. (Thanks to Daniel Jacobowitz.)
3888
3889 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3890
3891 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3892 (mips_abi_strings): Add "n64".
3893 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3894
3895 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3896
3897 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3898 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3899
3900 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3901
3902 * utils.c (host_pointer_to_address, address_to_host_pointer):
3903 Use gdb_assert() instead of explicit call to internal_error().
3904
3905 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3906
3907 * Makefile.in (rs6000-nat.o): Update dependencies.
3908
3909 From Nicholas Duffek:
3910 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3911 (aix-thread.o): New rule.
3912 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3913 * config/powerpc/aix432.mh: New file.
3914
3915 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3916
3917 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3918 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3919 (fetch_core_registers, ppc_linux_supply_gregset)
3920 (ppc_linux_supply_fpregset): New functions.
3921 (ppc_linux_regset_core_fns): New.
3922 (_initialize_ppc_linux_tdep): Call add_core_fns.
3923 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3924 and ppc_linux_supply_gregset.
3925 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3926 (supply_fpregset): Call ppc_linux_supply_fpregset.
3927 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3928 corelow.o.
3929 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3930
3931 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3932
3933 * symtab.c (lookup_symbol): Demangle before lowercasing.
3934
3935 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3936
3937 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3938 declaration.
3939 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3940 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3941 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3942 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3943 "gdb_string.h".
3944 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3945 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3946 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3947 (avr-tdep.o, mon960-rom.o): Ditto.
3948 (aout_stabs_gnu_h): Define.
3949 (symtab_h): Remove $(gdb_obstack_h).
3950
3951 2002-07-30 Jim Blandy <jimb@redhat.com>
3952
3953 Patch from David Carlton <carlton@math.stanford.edu>:
3954 * gdbinit.in: Move the `dir' commands that add GDB's own source
3955 directory to the search path to the end, so that the `gdb' source
3956 directory will be searched first.
3957
3958 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3959
3960 * gdb_obstack.h: New file.
3961 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3962 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3963 * objfiles.h: Include "gdb_obstack.h".
3964 * Makefile.in (gdb_obstack_h): Define.
3965 (symtab_h): Add $(gdb_obstack_h).
3966 (objfiles_h): Add $(gdb_obstack_h).
3967
3968 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3969 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3970 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3971 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3972 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3973 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3974 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3975 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3976
3977 * Makefile.in (bcache.o): Update dependencies.
3978 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3979 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3980 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3981 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3982 (stabsread.o, symfile.o, symmisc.o): Ditto.
3983 (symtab.o, typeprint.o, macroexp.o): Ditto.
3984 (macrotab.o, mdebugread.o): Ditto.
3985 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3986 (coff_ecoff_h, aout_aout64_h): Define.
3987 (aout_stabs_gnu_h, libaout_h): Define.
3988
3989 2002-07-29 Andrew Cagney <cagney@redhat.com>
3990
3991 * regcache.c (struct regcache_descr): Rename nr_registers to
3992 nr_cooked_registers. Revise comments describing the structure
3993 member fields.
3994 (init_regcache_descr): Update.
3995 (init_legacy_regcache_descr): Update.
3996 (read_register_gen, write_register_gen): When a cooked register in
3997 the raw register range, directly access the value from the raw
3998 register cache.
3999
4000 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4001
4002 * z8k-tdep.c: Do not include "obstack.h".
4003 * h8300-tdep.c, h8500-tdep.c: Ditto.
4004 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4005 * valprint.c, v850-tdep.c: Ditto.
4006 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4007 * mn10200-tdep.c: Ditto.
4008
4009 * Makefile.in (z8k-tdep.o): Update dependencies.
4010 (m68hc11-tdep.o, valprint.o): Ditto.
4011 (v850-tdep.o, d10v-tdep.o): Ditto.
4012 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4013 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4014 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4015 (sh_opc_h, gdb_sim_sh_h): Define.
4016 (elf_sh_h, elf_bfd_h): Define.
4017 (opcode_m68hc11_h): Define.
4018 (OPCODES_SRC, OPCODES_DIR): define.
4019 (OPCODES): Use $(OPCODES_DIR).
4020 (gdb_sim_d10v_h): Rename sim_d10v_h.
4021 (gdb_sim_arm_h): Rename sim_arm_h.
4022
4023 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4024
4025 * utils.c (host_pointer_to_address, address_to_host_pointer):
4026 Change internal_error() message to indicate function responsible
4027 for the error.
4028
4029 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4030
4031 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4032 calls to local_hex_string_custom().
4033
4034 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4035
4036 * irix5-nat.c: Move IRIX shared library support from here...
4037 * solib-irix.c: ...to here. Revised substantially to work with
4038 generic solib framework.
4039
4040 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4041 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4042 * mips-irix-tdep.c: New file.
4043
4044 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4045 (mips-irix-tdep.o, solib-irix.o): New rules.
4046 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4047 solib-irix.o.
4048 * config/mips/irix6.mt (TDEPFILES): Likewise.
4049 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4050
4051 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4052
4053 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4054 disabled (via ``#if 0'') includes.
4055
4056 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4057
4058 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4059 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4060 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4061 Add support for the fpscr register.
4062 * rs6000-nat.c (regmap, fetch_inferior_registers)
4063 (store_inferior_registers, fetch_core_registers): Likewise.
4064
4065 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4066
4067 * rs6000-nat.c (language.h): Include.
4068 (special_regs): Delete this array.
4069 (regmap): New function.
4070 (fetch_register, store_register): Use regmap() to map gdb
4071 register numbers to ptrace register numbers. Also, use
4072 outputs from regmap() to make decisions regarding type of
4073 ptrace() call to make. In particular, don't compare against
4074 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4075 (fetch_inferior_registers, store_inferior_registers): Where
4076 possible, obtain register numbers from tdep struct. Don't
4077 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4078 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4079 (LAST_UISA_SP_REGNUM): Delete.
4080
4081 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4082
4083 * rs6000-nat.c (ppc-tdep.h): Include.
4084 (fetch_registers, store_register, fetch_core_registers): Don't
4085 access registers[] directly. Instead, use supply_register() or
4086 regcache_collect() as appropriate.
4087 (find_toc_address): Format hex address with local_hex_string().
4088
4089 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4090
4091 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4092 bfd/elf32-frv.c.
4093
4094 2002-07-24 Tom Tromey <tromey@redhat.com>
4095
4096 * jv-exp.y: Marked all strings with _().
4097 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4098 internal_error.
4099 (MethodInvocation, CastExpression, parse_number, yyerror,
4100 java_type_from_name, push_expression_name, yylex): Typo fixes.
4101
4102 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4103
4104 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4105 (tee_file_flush, tee_file_write, tee_file_fputs)
4106 (tee_file_isatty): New.
4107 * ui-file.h (tee_file_new): Add prototype.
4108
4109 2002-07-24 Aidan Skinner <aidan@velvet.net>
4110
4111 * ada-lang.c: Change k&r style function definitions to prototyped
4112 form.
4113 * ada-typeprint.c: Change k&r style function definitions to prototyped
4114 form.
4115 * ada-valprint.c: Change k&r style function definitions to prototyped
4116 form.
4117
4118 2002-07-24 Andrew Cagney <cagney@redhat.com>
4119
4120 * README: Remove reference to remote-bug.
4121 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4122 remote-bug.c.
4123 (m88k-nat.o): Delete rule.
4124 (m88k-tdep.o): Delete rule.
4125 (remote-bug.o): Delete rule.
4126 * MAINTAINERS: Mark as obsolete.
4127 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4128 * m88k-tdep.c: Make file obsolete.
4129 * config/m88k/m88k.mh: Ditto.
4130 * config/m88k/delta88v4.mh: Ditto.
4131 * config/m88k/delta88v4.mt: Ditto.
4132 * config/m88k/delta88.mt: Ditto.
4133 * config/m88k/delta88.mh: Ditto.
4134 * remote-bug.c: Ditto.
4135 * config/m88k/tm-delta88.h: Ditto.
4136 * config/m88k/nm-delta88v4.h: Ditto.
4137 * config/m88k/xm-delta88.h: Ditto.
4138 * config/m88k/xm-dgux.h: Ditto.
4139 * config/m88k/tm-m88k.h: Ditto.
4140 * config/m88k/nm-m88k.h: Ditto.
4141 * config/m88k/tm-delta88v4.h: Ditto.
4142 * m88k-nat.c: Ditto.
4143 * cxux-nat.c: Ditto.
4144 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4145 and m88*-*-* obsolete.
4146 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4147 m88*-*-* obsolete.
4148
4149 2002-07-24 Andrew Cagney <cagney@redhat.com>
4150
4151 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4152 constant. Same for local pointer variables.
4153 (extract_signed_integer): Ditto.
4154 * defs.h (extract_unsigned_integer): Update.
4155 (extract_signed_integer): Update.
4156
4157 2002-07-24 Andrew Cagney <cagney@redhat.com>
4158
4159 * regcache.c (regcache_raw_write): Change buf parameter to a
4160 constant void pointer.
4161 (regcache_raw_read): Change buf parameter to a void pointer.
4162 (legacy_write_register_gen): Change myaddr parameter a constant
4163 void pointer.
4164 (supply_register): Change val parameter to a const void pointer.
4165 * regcache.h (regcache_raw_write): Update declaration.
4166 (regcache_raw_read): Update declaration.
4167 (supply_register): Update declaration.
4168
4169 2002-07-24 Tom Tromey <tromey@redhat.com>
4170
4171 * defs.h (gdb_readline_wrapper): Declare.
4172 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4173 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4174 * top.c (gdb_readline_wrapper): New function.
4175 (command_line_input): Use it.
4176
4177 2002-07-24 Andrew Cagney <cagney@redhat.com>
4178
4179 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4180 regcache_read and regcache_write.
4181 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4182 * regcache.c: Update.
4183 * sh-tdep.c (sh64_push_arguments): Update comment.
4184 (sh_pseudo_register_read): Update.
4185 (sh_pseudo_register_write): Update.
4186 (sh4_register_read): Update.
4187 (sh4_register_write): Update.
4188 (sh64_pseudo_register_read): Update.
4189 (sh64_pseudo_register_write): Update.
4190 (sh64_register_read): Update.
4191 (sh64_register_write): Update.
4192 * i386-tdep.c (i386_extract_return_value): Update.
4193 (i386_extract_struct_value_address): Update.
4194 (i386_extract_return_value): Update.
4195 * blockframe.c (generic_read_register_dummy): Update.
4196 (generic_call_dummy_register_unwind): Update
4197 * infrun.c (write_inferior_status_register): Update.
4198
4199 2002-07-23 Jim Blandy <jimb@redhat.com>
4200
4201 * parser-defs.h (expression_context_pc): Make this extern.
4202 (Thanks to Michael Snyder.)
4203
4204 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4205
4206 GDB 5.2.1 released from 5.2 branch.
4207 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4208 * README: Update to mention 5.2.1.
4209
4210 2002-07-23 Mark Salter <msalter@redhat.com>
4211
4212 * remote.c (remote_read_bytes): Fix check for error.
4213
4214 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4215
4216 * aix-thread.c (language.h): Include.
4217 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4218 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4219 Print newlines at end of debug messages.
4220 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4221 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4222
4223 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4224
4225 * aix-thread.c (ppc-tdep.h): Include.
4226 (special_register_p): New function.
4227 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4228 (store_regs_user_thread): Use register number information from
4229 gdbarch_tdep struct instead of hardcoded offsets relative to
4230 FIRST_UISA_SP_REGNUM.
4231 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4232 special_register_p() instead of using FPLAST_REGNUM and
4233 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4234 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4235 will be MQ's register number.
4236
4237 2002-07-22 Michael Snyder <msnyder@redhat.com>
4238
4239 * aix-thread.c (ops): Rename to aix_thread_ops.
4240 (base_ops): Rename to base_target.
4241 (ops_attach): Rename to aix_thread_attach.
4242 (ops_detach): Rename to aix_thread_detach.
4243 (ops_resume): Rename to aix_thread_detach.
4244 (ops_wait): Rename to aix_thread_wait.
4245 (ops_kill): Rename to aix_thread_kill.
4246 (init_ops): Rename to init_aix_thread_ops.
4247 (ops_fetch_register): Rename to aix_thread_fetch_register.
4248 (ops_store_register): Rename to aix_thread_store_register.
4249 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4250 (ops_thread_alive): Rename to aix_thread_thread_alive.
4251 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4252 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4253 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4254 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4255 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4256 (store_regs_lib): Rename to store_regs_user_thread.
4257 (store_regs_kern): Rename to store_regs_kernel_thread.
4258
4259 2002-07-22 Michael Snyder <msnyder@redhat.com>
4260
4261 * aix-thread.c (ops_prepare_to_store): Eliminate.
4262 (init_ops): Don't initialize ops.prepare_to_store.
4263 (store_regs_kern): Pre-fetch register buffers from child,
4264 because some registers may not be in the cache. Copy
4265 regs from register cache only if they are cached.
4266 (store_regs_lib): Copy regs from register cache only
4267 if they are cached.
4268 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4269 fill_gprs64): Ditto.
4270
4271 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4272
4273 * aix-thread.c (gdb_assert.h): Include.
4274 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4275 register sizes (from register cache) match size of buffer holding
4276 register data.
4277 (fill_sprs32): Change parameter types to match those in the ptrace()
4278 buffer.
4279 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4280 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4281
4282 2002-07-22 Michael Snyder <msnyder@redhat.com>
4283
4284 * aix-thread.c (supply_sprs64): Cosmetic change.
4285 (supply_sprs32): Cosmetic change.
4286 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4287 (fill_sprs64): Use regcache_collect instead of read_register.
4288 (store_regs_lib): Use regcache_collect instead of
4289 read_register. Use fill_sprs32 instead of fill_sprs64,
4290 if debugging a 32-bit architecture.
4291 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4292 out of the register cache, instead of passing a pointer into
4293 the register cache directly to ptrace. Use regcache_collect
4294 insteaad of read_register.
4295 (ops_prepare_to_store): Use target_read_registers instead
4296 of read_register_bytes.
4297
4298 2002-07-20 Aidan Skinner <aidan@velvet.net>
4299
4300 * MAINTAINERS: Add self under write after approval.
4301
4302 2002-07-20 Aidan Skinner <aidan@velvet.net>
4303
4304 * ada-tasks.c: Change k&r style function definitions to prototyped
4305 form.
4306
4307 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4308
4309 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4310 * x86-64-tdep.c: Include "objfiles.h".
4311 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4312 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4313
4314 2002-07-17 Michal Ludvig <michal@suse.cz>
4315
4316 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4317 (update_context): Initialise cfa variable.
4318
4319 2002-07-17 Michael Snyder <msnyder@redhat.com>
4320
4321 * aix-thread.c: Shorten some long lines.
4322 Bring comments into line with code spec.
4323
4324 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4325
4326 * infrun.c: Re-indent using gdb_indent.sh.
4327
4328 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4329
4330 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4331 Leave the indentation temporarily untouched, to minimize the diffs.
4332
4333 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4334
4335 * stabsread.c: Make os9k sections of the code obsolete,
4336 for real this time.
4337 * stabsread.h: Make os9k sections of the code obsolete.
4338
4339 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4340
4341 * linux-low.c (regsets_store_inferior_registers): Add free()
4342 at the end of a loop to prevent memory leak.
4343 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4344 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4345 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4346 line a comment.
4347 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4348
4349 2002-07-17 Jim Blandy <jimb@redhat.com>
4350
4351 * macrocmd.c (info_macro_command): Remove newline from error
4352 message.
4353
4354 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4355
4356 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4357 (sh_gdbarch_init): Use it for sh-dsp.
4358
4359 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4360
4361 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4362 64-bit DWARF2 format.
4363
4364 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4365
4366 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4367 <sys/proc.h> when not available.
4368
4369 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4370
4371 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4372 * stabsread.c: Make os9k sections of the code obsolete.
4373 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4374 * config/i386/i386os9k.mt: Make file obsolete.
4375 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4376 (COMMON_OBS): Remove os9kread.o
4377 (SFILES): Remove os9kread.c.
4378 (os9kread.o, remote-os9k.o): Make target obsolete.
4379 * remote-os9k.c: Make file obsolete.
4380 * os9kread.c: Make file obsolete.
4381 * Makefile.in
4382
4383 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4384
4385 * NEWS: Mention that the FR30 has been made obsolete.
4386 * fr30-tdep.c: Make file obsolete.
4387 * config/fr30/tm-fr30.h: Ditto.
4388 * config/fr30/fr30.mt: Ditto.
4389 * configure.tgt: Make fr30-*-elf obsolete.
4390 * MAINTAINERS: Make fr30-elf obsolete.
4391
4392 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4393
4394 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4395 found is not inside a section.
4396
4397 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4398
4399 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4400 strerror().
4401 (pdc_realloc): Use xrealloc() instead of realloc().
4402
4403 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4404
4405 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4406 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4407 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4408 macros.
4409
4410 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4411
4412 * aix-thread.c (ptrace_check): Eliminate goto.
4413 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4414 problem.
4415
4416 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4417
4418 * aix-thread.c (gdbcmd.h): Include.
4419 (DEBUG, DBG, DBG2, dbg): Eliminate.
4420 (debug_aix_thread): New static global.
4421 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4422 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4423 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4424 invocations to DBG and DBG2 macros to test against
4425 ``debug_aix_thread'' and call fprintf_unfiltered().
4426 (_initialize_aix_thread): Add new command "set debug aix-thread".
4427
4428 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4429
4430 From Gerhard Tonn <TON@de.ibm.com>:
4431 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4432 instead of supply_register.
4433
4434 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4435
4436 * dwarf2cfi.c: Include "gdb_assert.h".
4437 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4438 non-NULL.
4439 (update_context): Do not use __func__. Add missing ``break''.
4440 (update_context): Do not use __func__.
4441
4442 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4443
4444 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4445 and its setting. Set gdbarch instruction printing functions
4446 directly. For non-rs6000 case use new function
4447 gdb_print_insn_powerpc.
4448 (gdb_print_insn_powerpc): New function.
4449
4450 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4451
4452 * NEWS: Mention that the d30v has been marked obsolete.
4453 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4454 * configure.tgt: Mark d30v-*-* as obsolete.
4455 * d30v-tdep.c: Mark file as obsolete.
4456 * config/d30v/d30v.mt: Ditto.
4457 * config/d30v/tm-d30v.h: Ditto.
4458
4459 2002-07-13 Aidan Skinner <aidan@velvet.net>
4460
4461 * ada-tasks.c (add_task_entry): replace calls to
4462 malloc() with xmalloc
4463 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4464
4465 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4466 ada_finish_decode_line_1, all_sals_for_line
4467 ada_breakpoint_rewrite): replace calls to free() with xfree()
4468
4469 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4470
4471 From Nicholas Duffek (with minor changes by Martin Hunt,
4472 Louis Hamilton, and Kevin Buettner):
4473 * aix-thread.c: New file.
4474
4475 2002-07-12 Petr Sorfa <petrs@caldera.com>
4476
4477 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4478 complaint for invalid attribute class or form.
4479 (read_func_scope): DW_AT_frame_base
4480 better handling of DW_AT_block*.
4481 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4482 better handling of DW_AT_block*.
4483 (read_common_block): DW_AT_location
4484 better handling of DW_AT_block*.
4485 (read_partial_die): DW_AT_location better handling
4486 of DW_AT_block*.
4487 (new_symbol): DW_AT_external better handling of
4488 DW_AT_block*. Proper initialization of variable
4489 "addr".
4490 (attr_form_is_block): New function that returns true
4491 if the attribute's form is of DW_FORM_block*.
4492
4493 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4494
4495 * valops.c (find_method_list): Remove comment about
4496 removed STATIC_MEMFUNCP argument.
4497 (value_find_oload_method_list): Likewise.
4498
4499 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4500
4501 From Nicholas Duffek:
4502 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4503 target_new_objfile_hook.
4504
4505 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4506
4507 From Nicholas Duffek:
4508 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4509 csect.
4510
4511 2002-07-12 Andrew Cagney <cagney@redhat.com>
4512
4513 * MAINTAINERS: Mention --enable-sim-build-warnings.
4514 (m68hc11-elf): Disable sim build warnings.
4515 (m32r-elf): Mark as broken obsolete candidate.
4516 (x86_64-linux-gnu): Mark as buildable with -Werror.
4517 (arm-elf): Change -w to ``,'' which enables warnings but not
4518 -Werror.
4519
4520 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4521
4522 * bcache.h: Update copyright.
4523 (struct bstring, struct bcache): Move definition to "bcache.c".
4524 Replaced by opaque declaration.
4525 (bcache_xfree): Replace free_bcache.
4526 (bcache_xmalloc, bcache_memory_used): Declare.
4527
4528 * bcache.c: Update copyright.
4529 (struct bstring, struct bcache): Moved to here from "bcache.h".
4530 Update comments.
4531 (bcache_xmalloc, bcache_memory_used): New functions.
4532 (bcache_xfree): Replace function free_bcache.
4533
4534 * Makefile.in (objfiles.o): Add $(bcache_h).
4535 (objfiles_h): Remove $(bcache_h).
4536 (symfile.o): Add $(bcache_h).
4537
4538 * symmisc.c: Update copyright.
4539 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4540 (print_objfile_statistics): Use bcache_memory_used.
4541
4542 * symfile.c: Include "bcache.h".
4543 (reread_symbols): Use bcache_xfree.
4544 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4545 (add_psymbol_to_list): Pass psymbol_cache by value.
4546 (add_psymbol_with_dem_name_to_list): Ditto.
4547
4548 * objfiles.h: Update copyright.
4549 (struct bcache): Declare opaque. Do not include "bcache.h".
4550 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4551 bcache'' pointers.
4552 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4553
4554 * objfiles.c: Include "bcache.h". Update copyright.
4555 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4556 macro_cache.
4557 (free_objfile): Use bcache_xfree.
4558
4559 2002-07-11 Grace Sainsbury <graces@redhat.com>
4560
4561 * monitor.c (monitor_fetch_register): Make name a constant.
4562 (monitor_store_register): Same.
4563
4564 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4565
4566 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4567 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4568 (finish_block) For non-function blocks, hash the symbol table. For
4569 function blocks, mark the symbol table as unhashed.
4570 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4571 (msymbol_hash_iw): Likewise.
4572 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4573 value.
4574 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4575 (lookup_minimal_symbol): Likewise for both.
4576 * symtab.h (struct block): Add `hashtable' flag. Comment the
4577 hashtable.
4578 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4579 (ALL_BLOCK_SYMBOLS): Update.
4580 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4581 (struct symbol): Add `hash_next' pointer.
4582 * symtab.c (lookup_block_symbol): Search using the hash table when
4583 possible.
4584 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4585 (search_symbols, find_addr_symbol): Likewise.
4586
4587 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4588 (read_dst_symtab): Likewise.
4589 * jv-lang.c (get_java_class_symtab): Likewise.
4590 * mdebugread.c: Include "gdb_assert.h".
4591 (shrink_block): Assert that the block being modified is not hashed.
4592 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4593 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4594 symbols.
4595 (dump_symtab): Recognize hashed blocks.
4596 * printcmd.c (print_frame_args): Assert that function blocks do not
4597 have hashed symbol tables.
4598 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4599 (fill_in_ada_prototype, debug_print_block): Likewise.
4600 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4601
4602 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4603
4604 * stack.c (print_frame): Use result of frame_address_in_block()
4605 instead of fi->pc when evaluating symbols.
4606 (backtrace_command_1): Ditto.
4607
4608 2002-07-11 Andrew Cagney <cagney@redhat.com>
4609
4610 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4611 Make static.
4612
4613 * arm-tdep.c (arm_register_name): Make return type constant.
4614
4615 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4616
4617 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4618 prototype.
4619 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4620 * s390-tdep.c (s390_fp_regnum): Ditto.
4621 (s390_read_fp): Ditto.
4622 (s390_pop_frame): Ditto.
4623 (_initialize_s390_tdep): Ditto.
4624 * remote.c (get_remote_state): Ditto.
4625 * procfs.c (mappingflags): Ditto.
4626 * memattr.c (_initialize_mem): Ditto.
4627 * mcore-tdep.c (mcore_pop_frame): Ditto.
4628 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4629 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4630 * language.c (set_case_str): Ditto.
4631 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4632 * frv-tdep.c (new_variant): Ditto.
4633 (frv_stopped_data_address): Ditto.
4634 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4635 (context_alloc): Ditto.
4636 (frame_state_alloc): Ditto.
4637 (unwind_tmp_obstack_init): Ditto.
4638 (unwind_tmp_obstack_free): Ditto.
4639 (cfi_read_fp): Ditto.
4640 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4641 (cris_pop_frame): Ditto.
4642 * c-lang.c (scanning_macro_expansion): Ditto.
4643 (finished_macro_expansion): Ditto.
4644 (c_preprocess_and_parse): Ditto.
4645 * gdbarch.sh: Ditto.
4646 * gdbarch.h, gdbarch.c: Regenerate.
4647 * config/mn10200/tm-mn10200.h: Adjust indentation.
4648 * target.c: Adjust indentation.
4649 * symtab.h: Adjust indentation.
4650 * stabsread.h: Adjust indentation.
4651 * remote-es.c: Adjust indentation.
4652 * os9kread.c: Adjust indentation.
4653
4654 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4655
4656 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4657 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4658
4659 2002-07-10 Grace Sainsbury <graces@redhat.com>
4660
4661 * NEWS: Mention m68k, mcore multi-arching.
4662 * MAINTAINERS: Change status of m68k, mcore to reflect
4663 multi-arching.
4664
4665 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4666
4667 * valops.c (find_overload_match): Free oload_syms.
4668
4669 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4670
4671 Define HAVE_SYS_PROC_H if sys/proc.h exists
4672 * configure.in: Add check for sys/proc.h
4673 * config.in: Regenerate.
4674 * configure: Regenerate.
4675
4676 2002-07-09 Grace Sainsbury <graces@redhat.com>
4677
4678 * config/m68k/tm-m68k.h: Remove macros wrapped in
4679 #if !GDB_MULTI_ARCH.
4680
4681 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4682
4683 * config.in, configure: Regenerate.
4684
4685 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4686
4687 * dwarf2cfi.c: Include "gcore.h".
4688 (execute_stack_op): Fix implementation of the
4689 DW_OP_deref and DW_OP_deref_size operators by letting do their
4690 lookup in the target.
4691
4692 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4693
4694 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4695 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4696 tdep->sc_sp_offset.
4697
4698 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4699
4700 Fix PR gdb/595, gdb/602
4701 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4702 Don't call value_cast, just read the vtable pointer; update comments
4703 to match.
4704
4705 2002-07-05 Grace Sainsbury <graces@redhat.com>
4706
4707 * config/mcore/tm-mcore.h: Remove file.
4708 * config/mcore/mcore.mt: Remove definition of TM_FILE
4709 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4710
4711 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4712
4713 * i386bsd-tdep.c: Include "gdb_string.h".
4714
4715 2002-07-04 Grace Sainsbury <graces@redhat.com>
4716
4717 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4718 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4719 mcore-tdep.
4720 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4721 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4722 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4723 (RETVAL_REGNUM): Move macros from tm-mcore.h
4724 (mcore_reg_struct_has_addr): New function.
4725 (mcore_gdbarch_init): Added initializations for the macros removed
4726 from tm-mcore.h.
4727
4728 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4729
4730 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4731 traditonal string branding within the ELF header.
4732
4733 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4734
4735 * symtab.c (remove_params): New function.
4736 (make_symbol_overload_list): Use it instead of cplus_demangle.
4737 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4738
4739 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4740
4741 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4742
4743 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4744 New variables.
4745 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4746 and tdep->sigtramp_end.
4747 * i386obsd-nat.c: New file.
4748 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4749
4750 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4751 Don't call get_current_frame().
4752
4753 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4754
4755 * i386-nat.c (child_post_startup_inferior): New function
4756 calling i386_cleanup_dregs if
4757 I386_USE_GENERIC_WATCHPOINTS is defined.
4758 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4759 conditional to acknowledge that i386-nat.c has its
4760 own child_post_startup_inferior function.
4761
4762 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4763
4764 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4765 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4766 instead of MAX_REGISTER_RAW_SIZE.
4767 (i386_extract_return_value, i386_extract_struct_value_address):
4768 Convert to use regcache.
4769 (i386_gdbarch_init): Set max_register_raw_size and
4770 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4771 Set extract_return_value and extract_struct_value_address instead
4772 of their deprecated variants.
4773
4774 Convert i386 target to generic dummy frames.
4775 * i386-tdep.c: Include "symfile.h".
4776 (i386_frameless_signal_p): Consider a function to be frameless if
4777 the pc points at the first instruction of the function.
4778 (i386_frame_chain): Handle (generic) call dummies.
4779 (i386_frame_saved_pc): Likewise.
4780 (i386_frame_init_saved_regs): Remove code dealing with call
4781 dummies on the stack.
4782 (i386_push_dummy_frame): Removed.
4783 (i386_call_dummy_words): Removed.
4784 (i386_fix_call_dummy): Removed.
4785 (i386_push_return_address): New function.
4786 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4787 parameter, and don't call get_current_frame.
4788 (i386_pop_frame): New function.
4789 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4790 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4791 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4792 call_dummy_length to 0, set call_dummy_words to NULL, set
4793 sizeof_call_dummy_words to 0, set fix_call_dummy to
4794 generic_fix_call_dummy, set pc_in_call_dummy to
4795 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4796 generic_push_dummy_frame, set push_return_address to
4797 i386_push_return_address and set frame_chain_valid to
4798 generic_file_frame_chain_valid.
4799
4800 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4801
4802 * gdbarch.sh (struct regcache): Add opaque declaration.
4803 (EXTRACT_RETURN_VALUE): New architecture method.
4804 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4805 * gdbarch.h, gdbarch.c: Regenerate.
4806 * arch-utils.c (legacy_extract_return_value): New function.
4807 * arch-utils.h (legacy_extract_return_value): Declare.
4808 * values.c (value_being_returned): Re-enable code handling
4809 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4810 deprecated_grub_regcache_for_registers call to block handling
4811 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4812 (EXTRACT_RETURN_VALUE): Do not define.
4813
4814 2002-07-03 Grace Sainsbury <graces@redhat.com>
4815
4816 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4817 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4818 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4819 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4820 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4821 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4822 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4823 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4824 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4825 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4826 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4827 argument so the function fits the prototype in the architecture
4828 vector.
4829 (mcore_pop_frame): Remove argument so the function fits the
4830 prototype. Use get_current_frame instead of the argument.
4831 (mcore_push_arguments): Change type of struct_return so the
4832 function can be used in the architecture vector.
4833 (mcore_store_struct_return): Add.
4834 (mcore_frame_init_saved_regs): Add.
4835 (mcore_gdbarch_init): Add function calls to replace the macros
4836 removed from tm-mcore.h
4837
4838 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4839
4840 * infcmd.c (print_return_value): Remove compatibility code calling
4841 deprecated_grub_regcache_for_registers.
4842
4843 * values.c: Include "regcache.h".
4844 (value_being_returned): Update. Use
4845 deprecated_grub_regcache_for_registers to extract the register
4846 buffer address.
4847 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4848 ``struct regcache''.
4849 * Makefile.in (values.o): Add dependency on $(regcache_h).
4850
4851 * inferior.h (run_stack_dummy): Change type of second parameter to
4852 a ``struct regcache''.
4853 * valops.c (hand_function_call): Change type of retbuf to ``struct
4854 regcache''. Allocate using regcache_xmalloc, clean using
4855 make_cleanup_regcache_xfree.
4856 * infcmd.c (run_stack_dummy): Update. Use
4857 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4858
4859 * regcache.c (do_regcache_xfree): New function.
4860 (make_cleanup_regcache_xfree): New function.
4861 * regcache.h (make_cleanup_regcache_xfree): Declare.
4862
4863 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4864
4865 * event-top.c (command_line_handler): Don't read past
4866 beginning of buffer.
4867
4868 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4869
4870 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4871 struct frame_id.
4872 (varobj_create): Store frame_id for root.
4873 (varobj_gen_name): Use xasprintf.
4874 (varobj_update): Save and restore frame using get_frame_id() and
4875 frame_find_by_id().
4876 (create_child): Use xasprintf.
4877 (new_root_variable): Initialize frame_id.
4878 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4879 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4880 to prevent memory leak.
4881
4882 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4883
4884 * valops.c (hand_function_call): Move declaration of retbuf to
4885 start of function, allocate using malloc, add a cleanup but before
4886 the inf_status cleanup, cleanup the buffer. Rename local variable
4887 old_chain to inf_status_cleanup.
4888
4889 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4890
4891 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4892
4893 * cli/cli-decode.c (cmd_func_p): New function.
4894 (cmd_func): New function.
4895
4896 * command.h: Add cmd_func() and cmd_func_p().
4897
4898 2002-07-03 Grace Sainsbury <graces@redhat.com>
4899
4900 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4901 (REGISTER_SIZE): Remove.
4902 (MAX_REGISTER_RAW_SIZE): Remove.
4903 (REGISTER_VIRTUAL_TYPE): Remove.
4904 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4905 (REGISTER_NAME): Remove.
4906 (USE_GENERIC_DUMMY_FRAMES): Remove.
4907 (CALL_DUMMY): Remove.
4908 (CALL_DUMMY_START_OFFSET): Remove.
4909 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4910 (CALL_DUMMY_LOCATION): Remove.
4911 (FIX_CALL_DUMMY): Remove.
4912 (CALL_DUMMY_ADDRESS): Remove.
4913 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4914 (SAVE_DUMMY_FRAME_TOS): Remove.
4915 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4916 (mcore_register_virtual_type): New function.
4917 (mcore_register_byte): New function.
4918 (mcore_register_size): New function.
4919 (mcore_register_name): New function.
4920 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4921 macros removed from tm-mcore.h.
4922 (mcore_dump_tdep): Add.
4923 (_initialize_mcore_tdep): Add gdbarch_register call.
4924
4925 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4926
4927 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4928 frameless_look_for_prologue, such that we actually call this
4929 function.
4930
4931 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4932
4933 * frame.h (frame_address_in_block): New function.
4934
4935 * blockframe.c (frame_address_in_block): New function extracted
4936 from get_frame_block().
4937 (get_frame_block): Use frame_address_in_block().
4938 (block_innermost_frame): Use frame_address_in_block() to match
4939 the frame pc address against the block boundaries rather than
4940 the frame pc directly. This prevents a failure when a frame pc
4941 is actually a return-address pointing immediately after the end
4942 of the given block.
4943
4944 2002-07-02 Grace Sainsbury <graces@redhat.com>
4945
4946 * MAINTAINERS: Add self under write after approval.
4947
4948 2002-07-02 Grace Sainsbury <graces@redhat.com>
4949
4950 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4951 used in architecture vector. The default is
4952 m68k_local_breakpoint_from_pc.
4953 (m68k_local_breakpoint_from_pc): Add.
4954 (enum): Add register numbers from tm-m68k.h.
4955 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4956 vector.
4957 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4958 GDB_MULTI_ARCH_PARTIAL.
4959 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4960 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4961 m68k-tdep.c.
4962 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4963 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4964 to enum in m68k-tdep.c
4965
4966 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4967
4968 * solib-osf.c (open_map): Compute the list of shared libraries
4969 loaded by the inferior, rather than the list of libraries loaded
4970 by GDB itself. Otherwise, GDB ends up reading the symbols from
4971 the wrong shared libraries...
4972
4973 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4974
4975 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4976 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4977 macros.
4978 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4979 Remove functions.
4980 (FRAMELESS_SIGNAL): Remove function.
4981 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4982 i386_linux_saved_pc_after_call): Removed.
4983 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4984 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4985 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4986
4987 * i386-tdep.c (i386_frameless_signal_p): New function.
4988 (i386_frame_chain): Deal with frameless signals.
4989 (i386_sigtramp_saved_sp): New function.
4990 (i386_frame_saved_pc): Deal with frameless signals.
4991 (i386_saved_pc_after_call): Make sure the correct value is
4992 returned just after entry into a sigtramp.
4993 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4994 i386fbsd4_sc_sp_offset): New variables.
4995 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4996 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4997 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4998 similiar to what we already did for sc_pc_offset.
4999 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5000 tdep->sc_sp_offset.
5001
5002 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5003
5004 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5005
5006 * config/i386/tm-x86-64linux.h: New.
5007 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5008 definitions.
5009 * config/i386/nm-x86-64.h: Rename to ...
5010 * config/i386/nm-x86-64linux.h: ... this one.
5011 * config/i386/x86-64linux.mh: Reflect the above change.
5012
5013 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5014
5015 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5016 with sigcontext_addr. Add sc_sp_offset.
5017 (i386bsd_sigtramp_saved_pc): Remove prototype.
5018 (i386bsd_sicontext_addr): Add prototype.
5019 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5020 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5021 (i386_svr4_sigtramp_saved_pc): Removed.
5022 (i386_svr4_sigcontext_addr): New function.
5023 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5024 Initialize tdep->sigcontext_addr instead. Initialize
5025 tdep->sc_pc_offset and tdep->sc_sp_offset.
5026 (i386_gdbarch_init): Likewise.
5027 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5028 any more.
5029 (i386bsd_sigtramp_saved_pc): Remove function.
5030 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5031 Initialize tdep->sigcontext_addr instead. Initialize
5032 tdep->sc_pc_offset.
5033 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5034 of tdep->sigtramp_saved_pc.
5035 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5036 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5037 instead.
5038
5039 * i386-tdep.c (i386_frameless_function_invocation,
5040 i386_frame_num_args, i386_frame_init_saved_regs,
5041 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5042 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5043 i386_extract_return_value, i386_store_return_value,
5044 i386_extract_struct_value_address, i386_register_virtual_type,
5045 i386_register_convertible, i386_register_convert_to_virtual,
5046 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5047 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5048 static.
5049
5050 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5051
5052 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5053
5054 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5055 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5056 this macro. Include "value.h".
5057
5058 2002-06-30 Aidan Skinner <aidan@velvet.net>
5059
5060 * ada-exp.tab.c: remove as it's a generated file
5061 * ada-lex.c: remove as it's a generated file
5062
5063 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5064
5065 * config/i386/tm-i386.h (struct frame_info, struct
5066 frame_saved_regs, struct value, struct type): Remove forward
5067 declarations.
5068
5069 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5070 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5071 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5072 (FILL_FPXREGSET): Define.
5073
5074 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5075
5076 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5077 i[3456]86-*-netbsd* case.
5078 * config/i386/tm-obsd.h: Removed.
5079 * config/i386/obsd.mt: Removed.
5080 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5081 core-aout.o.
5082 (MH_CFLAGS): Add -DYYDEBUG=0.
5083
5084 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5085 i386nbsd_sc_pc_offset on OpenBSD too.
5086
5087 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5088 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5089 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5090 define.
5091 * i386bsd-tdep.c: Include "arch-utils.h".
5092 (i386bsd_aout_in_solib_call_trampoline): New function.
5093 (i386bsd_init_abi): Set in_solib_call_trampoline to
5094 i386bsd_aout_in_solib_call_trampoline.
5095 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5096 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5097
5098 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5099
5100 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5101 (struct obstack, struct bcache): Add opaque declarations.
5102 * Makefile.in (macrotab_h): Update
5103
5104 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5105
5106 * blockframe.c (generic_find_dummy_frame): Change return type to
5107 ``struct regcache''.
5108 (struct dummy_frame): Replace field ``registers'' with regcache, a
5109 struct regcache object.
5110 (generic_find_dummy_frame): Update.
5111 (generic_push_dummy_frame): Update. Use regcache_xfree,
5112 regcache_xmalloc and regcache_cpy.
5113 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5114 regcache_xfree.
5115 (deprecated_generic_find_dummy_frame): Update.
5116 (generic_read_register_dummy): Update. Use
5117 regcache_read_as_address.
5118 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5119 (generic_get_saved_register): Update. Use regcache_read.
5120
5121 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5122
5123 * Makefile.in (objfiles_h): Add $(bcache_h).
5124 * objfiles.h: Include "bcache.h".
5125
5126 * Makefile.in (symtab_h): Remove $(bcache_h).
5127 * symtab.h: Do not include "bcache.h".
5128
5129 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5130
5131 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5132 generic_func_frame_chain_valid.
5133
5134 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5135
5136 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5137 * config/i386/tm-fbsd.h: Likewise.
5138
5139 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5140
5141 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5142 generic_unwind_get_saved_register.
5143
5144 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5145
5146 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5147 * regcache.c (supply_register): Add missing argument to
5148 register_buffer call.
5149
5150 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5151
5152 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5153 Solaris /bin/grep does not not like it. From Peter Schauer.
5154
5155 2002-06-26 Tom Tromey <tromey@redhat.com>
5156
5157 * command.h (add_setshow_cmd): Declare.
5158 (add_setshow_cmd_full): Declare.
5159 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5160 returns void. Use add_setshow_cmd_full.
5161 (add_setshow_cmd_full): New function.
5162 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5163 (add_setshow_boolean_cmd): Likewise.
5164
5165 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5166
5167 * config/vax/tm-vax.h: Protect from multiple inclusion.
5168 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5169 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5170 * config/vax/tm-vaxbsd.h: ...here. New file.
5171 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5172
5173 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5174
5175 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5176 (BELIEVE_PCC_PROMOTION): Remove.
5177 (AP_REGNUM): Move to...
5178 * config/vax/nm-vax.h: ...here.
5179 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5180 (vax_breakpoint_from_pc): New function.
5181 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5182 and gdbarch_believe_pcc_promotion.
5183
5184 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5185
5186 * Makefile.in (vax_tdep_h): Define.
5187 (vax-tdep.o): Use $(vax_tdep_h).
5188 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5189 (vax_dump_tdep): New function.
5190 (_initialize_vax_tdep): Register vax_dump_tdep.
5191 * vax-tdep.h: Include osabi.h.
5192 (struct gdbarch_tdep): New.
5193
5194 2002-06-26 Andrew Cagney <cagney@redhat.com>
5195
5196 * frame.h (deprecated_generic_find_dummy_frame): Rename
5197 generic_find_dummy_frame.
5198 * blockframe.c (generic_find_dummy_frame): Make static.
5199 (deprecated_generic_find_dummy_frame): New function.
5200 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5201 generic_find_dummy_frame with deprecated_find_dummy_frame.
5202 (sh64_nofp_frame_init_saved_regs): Ditto.
5203 (sh_fp_frame_init_saved_regs): Ditto.
5204 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5205 (s390_frame_chain): Ditto.
5206 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5207
5208 2002-06-26 Grace Sainsbury <graces@redhat.com>
5209
5210 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5211 gdbarch vector are at the top.
5212 (NUM_REGS): Remove.
5213 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5214 (FRAME_ARGS_ADDRESS): Remove.
5215 (FRAME_LOCALS_ADDRESS): Remove.
5216 (FRAME_NUM_ARGS): Remove.
5217 (FRAME_ARGS_SKIP): Remove.
5218 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5219 (m68k_gdbarch_init): Add gdbarch initializations for macros
5220 undefined in tm-m68k.h
5221
5222 2002-06-26 Grace Sainsbury <graces@redhat.com>
5223
5224 * monitor.h: Add the function regname to monitor_ops
5225 structure. This way NUM_REGS does not have to be a constant.
5226 * monitor.c (monitor_fetch_register): Added support for regname
5227 function. The function is called if the array regnames is NULL.
5228 (monitor_store_register): Same.
5229 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5230 regnames array.
5231 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5232 cpu32bug_cmds.regname to point to new function.
5233 * abug-rom.c (abug_regname): Same as above.
5234 (init_abug_cmds): Same.
5235 * dbug-rom.c (dbug_regname): Same as above.
5236 (init_dbug_cmds): Same.
5237 * remote-est.c (est_regname): Same.
5238 (init_est_cmds): Same.
5239 * rom68k-rom.c (rom68k_regname): Same.
5240 (init_rom68k_cmds): Same.
5241
5242 2002-06-25 Tom Tromey <tromey@redhat.com>
5243
5244 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5245
5246 2002-06-25 Andrew Cagney <cagney@redhat.com>
5247
5248 * infrun.c (stop_registers): Change variable's type to ``struct
5249 regcache'''.
5250 (xmalloc_inferior_status): Delete function.
5251 (free_inferior_status): Delete function.
5252 (normal_stop): Use regcache_cpy.
5253 (struct inferior_status): Change type of fields ``stop_registers''
5254 and ``registers'' to ``struct regcache''.
5255 (write_inferior_status_register): Use regcache_write.
5256 (save_inferior_status): Instead of calling
5257 xmalloc_inferior_status, allocate the inf_status buffer directly.
5258 Use regcache_dup_no_passthrough and regcache_dup to save the
5259 buffers.
5260 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5261 Replace the stop_registers regcache instead of overriding it. Use
5262 regcache_xfree. Instead of calling free_inferior_status, xfree
5263 the buffer directly.
5264 (discard_inferior_status): Use regcache_xfree. Instead of calling
5265 free_inferior_status, xfree the buffer directly.
5266 (build_infrun): Use regcache_xmalloc.
5267 (_initialize_infrun): Delete redundant call to build_infrun.
5268
5269 * Makefile.in (infcmd.o): Add $(regcache_h).
5270
5271 * infcmd.c: Include "regcache.h".
5272 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5273 obtain the address of `stop_registers' register buffer.
5274 (print_return_value): Ditto.
5275
5276 * inferior.h (struct regcache): Add opaque declaration.
5277 (stop_registers): Change variable's declared type to ``struct
5278 regcache''.
5279
5280 2002-06-24 Tom Tromey <tromey@redhat.com>
5281
5282 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5283 * target.c (initialize_targets): Fixed typo in
5284 trust-readonly-sections `show' documentation.
5285
5286 * main.c: Marked all strings with _().
5287
5288 2002-06-24 Don Howard <dhoward@redhat.com>
5289
5290 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5291 that means max CORE_ADDR+1.
5292 (lookup_mem_region): Ditto.
5293 (mem_info_command): Ditto.
5294
5295 2002-06-24 Grace Sainsbury <graces@redhat.com>
5296
5297 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5298 (REGISTER_BYTES_OK): Remove.
5299 (REGISTER_BYTES): Remove.
5300 (STORE_STRUCT_RETURN): Remove.
5301 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5302 (STORE_RETURN_VALUE): Remove.
5303 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5304 (FRAME_CHAIN): Remove.
5305 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5306 (FRAME_SAVED_PC): Remove.
5307 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5308 (m68k_store_struct_return): Add.
5309 (m68k_deprecated_extract_return_value): Add.
5310 (m68k_deprecated_extract_struct_value_address): Add.
5311 (m68k_store_return_value): Add.
5312 (m68k_frame_chain): Add.
5313 (m68k_frameless_function_invocation): Add.
5314 (m68k_frame_saved_pc): Add.
5315 (m68k_gdbarch_init): added set_gdbarch calls for new
5316 functions and deleted macros.
5317
5318 2002-06-23 Tom Tromey <tromey@redhat.com>
5319
5320 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5321 (ALLDEPFILES): Likewise.
5322 (udiheaders): Removed.
5323 (udip2soc.o): Likewise.
5324 (udi2go32.o): Likewise.
5325 (udr.o): Likewise.
5326 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5327
5328 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5329
5330 * infrun.c (_initialize_infrun): Delete unnecessary call to
5331 build_infrun.
5332
5333 * regcache.h: Update comments describing the regcache_cpy family
5334 of functions.
5335 (regcache_save, regcache_restore): Delete declaration.
5336 (regcache_save_no_passthrough): Delete declaration.
5337 (regcache_restore_no_passthrough): Delete declaration.
5338 * regcache.c (regcache_save): Delete function.
5339 (regcache_save_no_passthrough): Delete function.
5340 (regcache_restore): Delete function.
5341 (regcache_restore_no_passthrough): Delete function.
5342
5343 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5344
5345 * config/m68k/tm-m68k.h: Fix typo.
5346 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5347 (m68k_frame_init_saved_regs): Declare.
5348
5349 2002-06-21 Jim Blandy <jimb@redhat.com>
5350
5351 Remove some vestiges of Harris 88k support.
5352 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5353 register numbering quirk.
5354 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5355 odd symbols occurring in Harris 88k ELF targets.
5356
5357 2002-06-21 Tom Tromey <tromey@redhat.com>
5358
5359 * gdb_locale.h: New file.
5360 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5361 (defs_h): Added gdb_locale.h.
5362 * configure, config.in: Rebuilt.
5363 * configure.in (PACKAGE): Define.
5364 * defs.h: Include gdb_locale.h.
5365 * main.c (captured_main): Call setlocale, bindtextdomain,
5366 textdomain.
5367
5368 2002-06-21 Dave Brolley <brolley@redhat.com>
5369
5370 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5371 * config/frv/frv.mt: New file.
5372 * config/frv/tm-frv.h: New file.
5373 * configure.tgt: Support frv-*-*.
5374 * Makefile.in (frv-tdep.o): New target.
5375 * frv-tdep.c: New file.
5376 * NEWS: Mention frv.
5377
5378 2002-06-21 Dave Brolley <brolley@redhat.com>
5379
5380 * MAINTAINERS: Add self to "Write After Approval" list.
5381
5382 2002-06-21 Grace Sainsbury <graces@redhat.com>
5383
5384 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5385 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5386 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5387 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5388 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5389
5390 * m68k-tdep.c: Include arch-utils.h
5391 (m68k_register_raw_size): Add.
5392 (m68k_register_virtual_size): Add.
5393 (m68k_register_virtual_type): Add.
5394 (m68k_register_name): Add.
5395 (m68k_stack_align): Add.
5396 (m68k_register_byte): Add.
5397 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5398 tm-m68k.h.
5399
5400 2002-06-21 Grace Sainsbury <graces@redhat.com>
5401
5402 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5403 m68k_find_saved_regs.
5404 (m68k_pop_frame): Removed saved_regs structure, and replaced
5405 references to it with frame->saved_regs.
5406 (m68k_gdbarch_init): Added function calls to initialize the
5407 gdbarch structure.
5408 (m68k_fix_call_dummy): Add.
5409 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5410 (CALL_DUMMY): Remove.
5411 (CALL_DUMMY_LENGTH): Remove.
5412 (CALL_DUMMY_START_OFFSET): Remove.
5413 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5414 (FIX_CALL_DUMMY): Remove.
5415 (PUSH_DUMMY_FRAME): Remove.
5416 (POP_FRAME): Remove.
5417
5418 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5419
5420 * parse.c (parse_fprintf): New function used to avoid calls to
5421 fprintf in bison parser generated debug code.
5422 * parser-defs.h: Declaration of new parse_fprintf function.
5423 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5424 Set YYDEBUG to 1 by default.
5425 Set YYFPRINTF as parse_fprintf.
5426
5427 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5428
5429 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5430 encoding anymore.
5431 (pointer_encoding, enum ptr_encoding): New.
5432 (execute_cfa_program): Take care about pointer encoding.
5433 (dwarf2_build_frame_info): Only call parse_frame_info for
5434 .debug_frame and .eh_frame.
5435 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5436 fixed augmentation handling, added relative addressing,
5437 ignore duplicate FDEs. Added comments.
5438 * dwarf2cfi.c: Reindented.
5439
5440 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5441
5442 * event-top.c (command_handler): Don't use space_at_cmd_start
5443 unless there is sbrk() on the host. Assign time and space data
5444 to union fields of the appropriate length.
5445
5446 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5447
5448 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5449 x86_64_register_name. Return type changed to 'const char *'.
5450 (x86_64_register_name2nr): Rename to x86_64_register_number.
5451 (x86_64_gdbarch_init): Update to reflect the change.
5452 * x86-64-tdep.h: Ditto.
5453 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5454 (supply_fpregset): Ditto.
5455
5456 2002-06-19 Andrew Cagney <cagney@redhat.com>
5457
5458 * regcache.h: Update copyright.
5459 (struct regcache, struct gdbarch): Add opaque declarations.
5460 (current_regcache): Declare global variable.
5461 (regcache_read, regcache_write): Add gdbarch parameter.
5462 (regcache_save, regcache_save_no_passthrough)
5463 (regcache_restore, regcache_restore_no_passthrough)
5464 (regcache_dup, regcache_dup_no_passthrough)
5465 (regcache_cpy, regcache_cpy_no_passthrough)
5466 (deprecated_grub_regcache_for_registers)
5467 (deprecated_grub_regcache_for_register_valid)
5468 (regcache_valid_p): Add function declarations.
5469
5470 * regcache.c: Update copyright.
5471 (regcache_descr_handle): New global variable.
5472 (struct regcache_descr): Define.
5473 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5474 (regcache_descr, xfree_regcache_descr): New functions.
5475 (struct regcache): Define.
5476 (regcache_xmalloc, regcache_xfree): New functions.
5477 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5478 (regcache_dup, regcache_dup_no_passthrough): New functions.
5479 (regcache_valid_p, regcache_read_as_address): New functions.
5480 (deprecated_grub_regcache_for_registers): New function.
5481 (deprecated_grub_regcache_for_register_valid): New function.
5482 (current_regcache): New global variable.
5483 (register_buffer): Add regcache parameter. Update calls.
5484 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5485 (read_register_gen, write_register_gen): Update register_buffer
5486 call. Test for legacy_p instead of gdbarch_register_read_p or
5487 gdbarch_register_write_p.
5488 (regcache_collect): Update register_buffer call.
5489 (build_regcache): Rewrite. Use deprecated grub functions.
5490 (regcache_save, regcache_save_no_passthrough): New functions.
5491 (regcache_restore, regcache_restore_no_passthrough): New
5492 functions.
5493 (_initialize_regcache): Create the regcache_data_handle. Swap
5494 current_regcache global variable.
5495
5496 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5497 parameter to regcache_read and regcache_write calls.
5498 (sh4_register_read): Ditto.
5499 (sh64_pseudo_register_read): Ditto.
5500 (sh64_register_read): Ditto.
5501 (sh_pseudo_register_write): Ditto.
5502 (sh4_register_write): Ditto.
5503 (sh64_pseudo_register_write): Ditto.
5504 (sh64_register_write): Ditto.
5505
5506 * defs.h (XCALLOC): Define.
5507
5508 2002-06-19 Grace Sainsbury <graces@redhat.com>
5509
5510 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5511 * m68k-tdep.c (m68k_gdbarch_init): Added.
5512 (m68k_dump_tdep): Added.
5513
5514 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5515
5516 * ada-lang.c (fill_in_ada_prototype): Update comment.
5517
5518 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5519
5520 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5521 MIPS_ABI_LAST.
5522 (mips_abi_string, mips_abi_strings): New.
5523 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5524 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5525 tdep->mips_abi_string. Honor mips_abi_string. Default to
5526 O32 if no ABI is found.
5527 (mips_dump_tdep): Use mips_abi_strings.
5528 (mips_abi_update): New function.
5529 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5530 ``set mips abi'' and ``show mips abi''. Check the size of
5531 mips_abi_strings.
5532
5533 2002-06-19 Andrew Cagney <cagney@redhat.com>
5534
5535 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5536 constant.
5537
5538 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5539
5540 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5541 current frame using only the first stack size adjustment. All
5542 subsequent size adjustments are not considered to be part of
5543 the "static" part of the current frame.
5544 Compute the address of the saved registers relative to the
5545 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5546 in use in this frame.
5547
5548 2002-06-18 Don Howard <dhoward@redhat.com>
5549
5550 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5551 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5552 suggesting this solution.
5553
5554 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5555
5556 * config/romp/xm-rtbsd.h: Delete file.
5557 * config/romp/rtbsd.mh: Delete file.
5558
5559 2002-06-18 Keith Seitz <keiths@redhat.com>
5560
5561 * breakpoint.c (condition_command): Post breakpoint_modify
5562 when a condition is added to an existing breakpoint.
5563 (commands_command): Likewise for commands.
5564 (set_ignore_count): Likewise for ignore counts.
5565 If no tty, do not simply return, still need to send event
5566 notification.
5567 (ignore_command): Only print a newline if the command came
5568 from a tty.
5569 Don't call breakpoints_changed, since this is now properly
5570 handled by set_ignore_count.
5571
5572 2002-06-18 Andrew Cagney <cagney@redhat.com>
5573
5574 * MAINTAINERS: Note that cris-elf target can be compiled with
5575 -Werror.
5576 * cris-tdep.c (cris_register_name): Make return type constant.
5577 (cris_breakpoint_from_pc): Ditto.
5578
5579 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5580
5581 * frame.h (struct frame_info): Change type of context to
5582 'struct context'.
5583
5584 2002-06-17 Andrew Cagney <cagney@redhat.com>
5585
5586 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5587 pointer.
5588 * gdbarch.h, gdbarch.c: Regenerate.
5589 * config/mips/tm-mips.h (mips_register_name): Update.
5590 * i386-tdep.h (i386_register_name): Update.
5591 * mips-tdep.c (mips_register_name): Update
5592 * alpha-tdep.c (alpha_register_name): Update.
5593 * arch-utils.c (legacy_register_name): Update.
5594 * arch-utils.h (legacy_register_name): Update.
5595 * avr-tdep.c (avr_register_name): Update.
5596 * ia64-tdep.c (ia64_register_name): Update.
5597 * i386-tdep.c (i386_register_name): Update.
5598 * sparc-tdep.c (sparc32_register_name): Update.
5599 (sparc64_register_name): Update.
5600 (sparclite_register_name): Update.
5601 (sparclet_register_name): Update.
5602 * sh-tdep.c (sh_generic_register_name): Update.
5603 (sh_sh_register_name): Update.
5604 (sh_sh3_register_name): Update.
5605 (sh_sh3e_register_name): Update.
5606 (sh_sh_dsp_register_name): Update.
5607 (sh_sh3_dsp_register_name): Update.
5608 (sh_sh4_register_name): Update.
5609 (sh_sh64_register_name): Update.
5610 * s390-tdep.c (s390_register_name): Update.
5611 * rs6000-tdep.c (rs6000_register_name): Update.
5612 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5613 (ns32k_register_name_32382): Update.
5614 * d10v-tdep.c (d10v_ts2_register_name): Update.
5615 (d10v_ts3_register_name): Update.
5616 * xstormy16-tdep.c (xstormy16_register_name): Update.
5617 * vax-tdep.c (vax_register_name): Update.
5618 * v850-tdep.c (v850_register_name): Update.
5619 * m68hc11-tdep.c (m68hc11_register_name): Update.
5620 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5621 (am33_register_name): Update.
5622
5623 2002-06-17 Grace Sainsbury <graces@redhat.com>
5624
5625 * m68k-tdep.c: Reindented.
5626
5627 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5628
5629 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5630 list of predefined types.
5631
5632 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5633
5634 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5635 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5636 REGISTER_CONVERT_TO_RAW): Remove defines.
5637 (i386_register_virtual_type, i386_register_convertible,
5638 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5639 Remove prototypes.
5640 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5641 macros mentioned above.
5642
5643 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5644 (i386lynx_saved_pc_after_call): Remove prototype.
5645 * i386ly-tdep.c: Include "i386-tdep.h".
5646 (i386lynx_saved_pc_after_call): Make static. Use
5647 read_memory_nobpt instead of read_memory. Use
5648 read_memory_unsigned_integer instead of read_memory_integer.
5649 (i386lynx_init_abi): New function.
5650 (i386lynx_coff_osabi_sniffer): New function.
5651 (_initialize_i386bsd_tdep): New function.
5652
5653 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5654 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5655 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5656 (i386_fix_call_dummy): Remove prototype.
5657 * i386-tdep.c (i386_call_dummy_words): New variable.
5658 (i386_gdbarch_init): Adjust for removal of the
5659 macros mentioned above.
5660
5661 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5662
5663 * command.h (add_setshow_auto_boolean_cmd): Replace
5664 add_set_auto_boolean_cmd.
5665 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5666 add_set_auto_boolean_cmd.
5667 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5668 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5669 mask-address'' command.
5670 (show_mask_address): Add cmd parameter.
5671 * remote.c (add_packet_config_cmd): Update. Change type of
5672 set_func and show_func to cmd_sfunc_ftype.
5673 (_initialize_remote): Update `set remote Z-packet'
5674 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5675 (show_remote_protocol_e_packet_cmd): Ditto.
5676 (show_remote_protocol_E_packet_cmd): Ditto.
5677 (show_remote_protocol_P_packet_cmd): Ditto.
5678 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5679 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5680 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5681 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5682 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5683 (show_remote_protocol_Z_packet_cmd): Ditto.
5684 (show_remote_protocol_binary_download_cmd): Ditto.
5685 (show_remote_cmd): Pass NULL to all of above.
5686
5687 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5688
5689 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5690 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5691 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5692 POP_FRAME): Remove defines.
5693 (i386_push_arguments, i386_store_struct_return,
5694 i386_extract_return_value, i386_store_return_value,
5695 i386_extract_struct_value_address, i386_push_dummy_frame,
5696 i386_pop_frame): Renove prototypes.
5697 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5698 macros mentioned above.
5699
5700 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5701
5702 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5703 add_set_boolean_cmd.
5704 (add_setshow_cmd): New function.
5705 * command.h (add_setshow_boolean_cmd): Replace
5706 add_set_boolean_cmd.
5707 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5708 and ``set rdiromatzero''.
5709 * maint.c (_initialize_maint_cmds): Update commented out code.
5710 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5711 * target.c (initialize_targets): Update `set
5712 trust-readonly-sections'.
5713 * remote.c (_initialize_remote): Update `set remotebreak'.
5714
5715 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5716
5717 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5718 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5719 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5720 fit into multi-arch framework.
5721 (i386_breakpoint_from_pc): New function.
5722 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5723 above.
5724
5725 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5726 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5727 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5728 (i386_frameless_function_invocation, i386_frame_num_args,
5729 i386_frame_init_saved_regs): Remove prototypes.
5730 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5731 macros mentioned above.
5732
5733 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5734
5735 * cli/cli-decode.c (set_cmd_cfunc): Update.
5736 (set_cmd_sfunc): Update.
5737 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5738 (set_cmd_sfunc, set_cmd_cfunc): Update.
5739 * cli/cli-decode.h: Update.
5740
5741 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5742
5743 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5744 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5745
5746 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5747
5748 * defs.h (auto_boolean): Declare enum.
5749 * command.h (cmd_auto_boolean): Delete enum.
5750 * mips-tdep.c (mask_address_var): Update.
5751 (mips_mask_address_p): Update.
5752 (show_mask_address): Update.
5753 * remote.c (struct packet_config): Update.
5754 (update_packet_config): Update.
5755 (show_packet_config_cmd): Update.
5756 (packet_ok): Update.
5757 (add_packet_config_cmd): Update.
5758 (_initialize_remote):
5759 * command.h: Update.
5760 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5761 (do_setshow_command): Update.
5762 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5763 * cli/cli-decode.h: Update.
5764
5765 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5766
5767 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5768 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5769 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5770 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5771 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5772 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5773
5774 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5775 list of DJGPP COFF targets.
5776
5777 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5778 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5779 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5780 (FP0_REGNUM): Remove define.
5781 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5782 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5783 (i386_register_virtual_size): Remove protoype.
5784 * i386-tdep.c (i386_register_virtual_size): Removed.
5785 (i386_extract_return_value, i386_store_return_value): Use
5786 FP0_REGNUM instead of NUM_FREGS to determine whether the
5787 floating-point registers are available.
5788 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5789 Adjust for removal of macros mentioned above.
5790
5791 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5792
5793 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5794 comments.
5795 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5796 Remove prototypes.
5797 (supply_gregset, fill_gregset): Remove use of register keyword and
5798 remove declaration for regmap. Use I386_NUM_GREGS instead of
5799 NUM_REGS and NUM_FREGS.
5800 (FPREGSET_FSAVE_OFFSET): Remove.
5801 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5802 NUM_FREGS to determine whether the floating-point registers are
5803 available.
5804
5805 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5806 gnu_store_registers): Replace usage of NUM_GREGS with
5807 I386_NUM_GREGS.
5808
5809 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5810 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5811 usage of NUM_GREGS with I386_NUM_GREGS.
5812
5813 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5814
5815 * i386bsd-nat.c: Include "i386-tdep.h".
5816 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5817 I386_NUM_GREGS.
5818
5819 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5820 and associated comment. They no longer make any sense, since we
5821 don't use this file anymore on Linux.
5822
5823 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5824 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5825 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5826 elements in these arrays.
5827 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5828 MAX_NUM_REGS.
5829
5830 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5831
5832 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5833 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5834
5835 2002-06-14 Andrew Cagney <cagney@redhat.com>
5836
5837 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5838 EXTRACT_RETURN_VALUE.
5839 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5840 EXTRACT_STRUCT_VALUE_ADDRESS.
5841 * gdbarch.h, gdbarch.c: Regenerate.
5842
5843 * values.c (value_being_returned): Handle
5844 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5845 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5846
5847 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5848 * arm-tdep.c (arm_gdbarch_init): Update.
5849 * avr-tdep.c (avr_gdbarch_init): Update.
5850 * cris-tdep.c (cris_gdbarch_init): Update.
5851 * d10v-tdep.c (d10v_gdbarch_init): Update.
5852 * ia64-tdep.c (ia64_gdbarch_init): Update.
5853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5855 * s390-tdep.c (s390_gdbarch_init): Update.
5856 * sh-tdep.c (sh_gdbarch_init): Update.
5857 * s390-tdep.c (s390_gdbarch_init): Update.
5858 * sparc-tdep.c (sparc_gdbarch_init): Update.
5859 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5860 * v850-tdep.c (v850_gdbarch_init): Update.
5861 * vax-tdep.c (vax_gdbarch_init): Update.
5862 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5864
5865 * config/arc/tm-arc.h: Update.
5866 * config/d30v/tm-d30v.h: Update.
5867 * config/fr30/tm-fr30.h: Update.
5868 * config/h8300/tm-h8300.h: Update.
5869 * config/h8500/tm-h8500.h: Update.
5870 * config/i386/tm-i386.h: Update.
5871 * config/i386/tm-ptx.h: Update.
5872 * config/i386/tm-symmetry.h: Update.
5873 * config/i960/tm-i960.h: Update.
5874 * config/m32r/tm-m32r.h: Update.
5875 * config/m68k/tm-delta68.h: Update.
5876 * config/m68k/tm-linux.h: Update.
5877 * config/m68k/tm-m68k.h: Update.
5878 * config/m88k/tm-m88k.h: Update.
5879 * config/mcore/tm-mcore.h: Update.
5880 * config/mips/tm-mips.h: Update.
5881 * config/mn10200/tm-mn10200.h: Update.
5882 * config/pa/tm-hppa.h: Update.
5883 * config/pa/tm-hppa64.h: Update.
5884 * config/sparc/tm-sp64.h: Update.
5885 * config/sparc/tm-sparc.h: Update.
5886 * config/sparc/tm-sparclet.h: Update.
5887 * config/z8k/tm-z8k.h: Update.
5888
5889 2002-06-14 Andrew Cagney <cagney@redhat.com>
5890
5891 * Makefile.in (i386_linux_tdep_h): Define.
5892 (i386_tdep_h, i387_tdep_h): Define.
5893 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5894 $(i386_tdep_h) and $(i387_tdep_h).
5895 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5896
5897 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5898
5899 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5900 Already covered by the default.
5901
5902 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5903 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5904 (i386_gdbarch_init): Initialize long_double_format and long_double
5905 bit.
5906
5907 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5908 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5909 Move these to ...
5910 * config/i386/i386sol2.mh: ... here.
5911 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5912 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5913 (SIGCONTEXT_PC_OFFSET): Remove define.
5914 (IN_SIGTRAMP): Remove define.
5915 * i386-sol2-tdep.c: New file.
5916
5917 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5918 * config/i386/tm-i386nw.h: Removed.
5919
5920 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5921 USE_STRUCT_CONVENTION): Remove defines.
5922 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5923 (get_longjmp_target): Remove prototype.
5924 (IN_SIGTRAMP): Remove define.
5925 (i386bsd_in_sigtramp): Remove prototype.
5926 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5927 function. Update comment accordingly
5928 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5929 (FRAME_SAVED_PC): Remove define.
5930 (i386bsd_frame_saved_pc): Remove prototype.
5931 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5932 GET_LONGJMP_TARGET): Remove defines.
5933 (get_longjmp_target): Remove prototype.
5934 (IN_SIGTRAMP): Remove define.
5935 (i386bsd_in_sigtramp): Remove prototype.
5936 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5937 function. Update comment accordingly
5938 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5939 (FRAME_SAVED_PC): Remove define.
5940 (i386bsd_frame_saved_pc): Remove prototype.
5941 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5942 Remove prototype.
5943 (USE_STRUCT_CONVENTION): Remove prototype.
5944 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5945 declaration.
5946 (_initialize_i386bsd_nat): Revise logic to determine some
5947 constants at compile time when compiling a native GDB. Warn if
5948 things don't match up with what we expect.
5949 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5950 Remove variables.
5951 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5952 to use date stored in `struct gdbarch_tdep'.
5953 (i386bsd_sigcontext_offset): Remove varaible.
5954 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5955 stored in `struct gdbarch_tdep'.
5956 (i386bsd_frame_saved_pc): Make static.
5957 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5958 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5959 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5960 i386fbsd4_sc_pc_offset): New variables.
5961 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5962 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5963 functions.
5964 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5965 functions.
5966 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5967 Modify the value of i386fbsd_sigtramp_start and
5968 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5969 i386fbsd_sigtramp_end.
5970 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5971 function.
5972
5973 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5974 define to i386-linux-tdep.h.
5975 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5976 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5977 defines.
5978 (i386_linux_register_name, i386_linux_register_byte,
5979 i386_linux_register_raw_size): Remove prototypes.
5980 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5981 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5982 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5983 TARGET_WRITE_PC): Remove defines.
5984 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5985 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5986 i386_linux_write_pc): Remove prototypes.
5987 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5988 (get_longjmp_target): Remove prototype.
5989 * i386-linux-tdep.h: New file.
5990 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5991 * i386-linux-tdep.c: Include "i386-tdep.h" and
5992 "i386-linux-tdep.h".
5993 (i386_linux_register_name, i386_linux_register_byte,
5994 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5995 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5996 Make static.
5997 (i386_linux_init_abi): New function.
5998 (_initialize_i386_linux_tdep): New function.
5999
6000 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6001 (i386_saved_pc_after_call): Remove prototype.
6002 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6003 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6004 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6005 (i386_register_name, i386_stab_reg_to_regnum,
6006 i386_dwarf_reg_to_regnum): Remove prototypes.
6007 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6008 SIZEOF_SSE_REGS): Remove defines.
6009 (REGISTER_BYTES): Remove define.
6010 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6011 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6012 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6013 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6014 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6015 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6016 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6017 (get_longjmp_target): Remove prototype.
6018 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6019 (sigtramp_saved_pc): Remove define.
6020 (i386v4_sigtramp_saved_pc): Remove prototype.
6021 * config/i386/tm-go32.h (FRAME_CHAIN,
6022 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6023 (i386go32_frame_saved_pc): Remove prototype.
6024 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6025 (get_longjmp_target): Remove prototype.
6026 * i386-tdep.h: Include "osabi.h".
6027 (enum i386_abi): Removed.
6028 (enum struct_return): New enum.
6029 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6030 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6031 sc_pc_offset members.
6032 (i386_gdbarch_register_os_abi): Remove prototype.
6033 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6034 I386_SSE_NUM_REGS): New defines.
6035 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6036 I386_SSE_SIZEOF_REGS): New defines.
6037 (i386_register_name, i386_register_byte, i386_register_raw_size):
6038 New prototypes.
6039 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6040 (i386bsd_sigtramp_saved_pc): New prototype.
6041 * i386-tdep.c: Don't include "elf-bfd.h".
6042 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6043 i386_frame_chain, i386_saved_pc_after_call): Make static.
6044 (i386_frame_saved_pc): Rewrite to call architecture dependent
6045 function to deal with signal handlers. Make static.
6046 (i386go32_frame_saved_pc): Removed.
6047 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6048 Removed.
6049 (i386_get_longjmp_target): New function.
6050 (default_struct_convention, pcc_struct_convention,
6051 reg_struct_convention, valid_conventions, struct_convention): New
6052 variables.
6053 (i386_use_struct_convention): New function.
6054 (i386v4_sigtramp_saved_pc): Renamed to
6055 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6056 (i386_pc_in_sigtramp): New function.
6057 (i386_abi_names): Removed.
6058 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6059 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6060 Removed.
6061 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6062 i386_gdbarch_register_os_abi): Removed.
6063 (struct i386_abi_handler): Removed.
6064 (i386_abi_handler_list): Removed.
6065 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6066 functions.
6067 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6068 i386_nw_init_abi): New functions.
6069 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6070 Use set_gdbarch_xxx() calls instead of relying on macros for a
6071 number of calls.
6072 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6073 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6074 Register the various architecture variants defined in this file.
6075
6076 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6077
6078 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6079 (struct main_type): Remove arg_types member. Update comments for
6080 struct field.
6081 (TYPE_ARG_TYPES): Remove.
6082 (TYPE_FN_FIELD_ARGS): Update.
6083 (smash_to_method_type): Update prototype.
6084
6085 * c-typeprint.c (cp_type_print_method_args): Take method type
6086 instead of argument list. Use new argument layout. Simplify.
6087 (c_type_print_args): Use new argument layout. Simplify.
6088 (c_type_print_base): Update call to cp_type_print_method_args.
6089 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6090 argument; use die->type instead. Update call to
6091 smash_to_method_type.
6092 (read_structure_scope): Update call to dwarf2_add_member_fn.
6093 * gdbtypes.c (allocate_stub_method): Update comment.
6094 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6095 Use new argument layout.
6096 (check_stub_method): Use new argument layout. Don't count
6097 void as an argument.
6098 (print_arg_types): Update comments. Use new argument layout.
6099 (recursive_dump_type): Don't print arg_types member.
6100 * hpread.c (hpread_read_struct_type): Use new argument layout.
6101 (fixup_class_method_type): Likewise.
6102 (hpread_type_lookup): Likewise.
6103 * stabsread.c (read_type): Update calls to read_args and
6104 smash_to_method_type.
6105 (read_args): Use new argument layout. Simplify.
6106 * valops.c (typecmp): Use new argument layout. Update parameters
6107 and comments. Simplify.
6108 (hand_function_call): Use new argument layout.
6109 (search_struct_method): Update call to typecmp.
6110 (find_overload_match): Use new argument layout.
6111
6112 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6113
6114 * NEWS: Mention multithreaded debug support for gdbserver.
6115
6116 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6117
6118 * MAINTAINERS: Mention NEWS.
6119
6120 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6121
6122 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6123 (struct mips_objfile_private, compare_pdr_entries): New.
6124 (non_heuristic_proc_desc): Read the ".pdr" section if it
6125 is present.
6126
6127 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6128
6129 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6130 (arm_debug): New static variable.
6131 (_initialize_arm_tdep): Add ``set debug arm'' command.
6132
6133 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6134
6135 * Makefile.in (sim_arm_h): Define.
6136 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6137 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6138 (arm_register_sim_regno): New function, map an internal REGNUM
6139 onto a simulator register number.
6140 (arm_gdbarch_init): Set register_sim_regno.
6141
6142 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6143
6144 * MAINTAINERS: Add self.
6145
6146 2002-06-11 Jim Blandy <jimb@redhat.com>
6147
6148 * source.c (source_info): Mention whether the symtab has
6149 information about preprocessor macros.
6150
6151 Call the command `info macro', not `show macro'.
6152 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6153 Fix error message.
6154 (_initialize_macrocmd): Register `info_macro_command' in
6155 `infolist', not `showlist'.
6156
6157 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6158
6159 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6160 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6161 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6162 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6163 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6164 unconditionally.
6165 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6166 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6167 (_initialize_mips_tdep): Remove dead code.
6168 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6169 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6170 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6171 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6172 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6173 MIPS_LAST_FP_ARG_REGNUM): Remove.
6174
6175 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6176
6177 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6178 (unwind_tmp_obstack_free, parse_frame_info)
6179 (update_context, cfi_read_fp, cfi_write_fp)
6180 (cfi_frame_chain, cfi_init_extra_frame_info)
6181 (cfi_virtual_frame_pointer): Use the above function.
6182 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6183
6184 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6185
6186 * v850-tdep.c (v850_type_is_scalar): New function.
6187 (v850_use_struct_convention): Match current gcc implementation
6188 as close as possible.
6189 (v850_push_arguments): Fix stack_offset handling. Don't write
6190 struct_addr into register. This is done by v850_store_struct_return.
6191 (v850_extract_return_value): Care for structs.
6192 (v850_store_return_value): Ditto.
6193 (v850_store_struct_return): Actually write address.
6194
6195 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6196
6197 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6198 without debug information too.
6199
6200 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6201
6202 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6203 Make multi-arch pure.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * arm-tdep.c (arm_print_float_info): Update.
6206 * arch-utils.h (default_print_float_info): Update.
6207 * arch-utils.c (default_print_float_info): Update.
6208 * infcmd.c (float_info): Update call.
6209
6210 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6211
6212 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6213 the front of the initialize list.
6214
6215 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6216
6217 * infrun.c (struct inferior_status): Replace fields
6218 selected_frame_address and selected_level with field
6219 selected_frame_id.
6220 (save_inferior_status): Update. Use get_frame_id.
6221 (struct restore_selected_frame_args): Delete.
6222 (restore_selected_frame): Update. Use frame_find_by_id.
6223 (restore_inferior_status): Update.
6224
6225 * breakpoint.h (struct breakpoint): Change type of
6226 watchpoint_frame to frame_id.
6227 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6228 call to get_current_frame.
6229 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6230 get_current_frame.
6231 (watchpoint_check): Use frame_find_by_id.
6232
6233 * frame.h (record_selected_frame): Delete declaration.
6234 * stack.c (record_selected_frame): Delete function.
6235
6236 * frame.h (struct frame_id): Define.
6237 (get_frame_id): Declare.
6238 (frame_find_by_id): Declare.
6239 * frame.c (frame_find_by_id): New function.
6240 (get_frame_id): New function.
6241
6242 2002-06-10 Andrey Volkov <avolkov@transas.com>
6243
6244 * ser-e7kpc.c: Fix duplicated define and call of
6245 _initialize_ser_e7000pc
6246
6247 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6248
6249 * signals/signals.c (target_signal_from_host): Fix #ifdef
6250 SIGRTMIN case.
6251 (do_target_signal_to_host): Likewise.
6252
6253 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6254
6255 * mips-tdep.c (mips_find_abi_section): New function.
6256 (mips_gdbarch_init): Call it.
6257
6258 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6259
6260 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6261 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6262 after Andrew's 2002-06-08 gdbarch change.
6263
6264 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6265
6266 * i386-linux-nat.c (suppy_gregset): Don't supply
6267 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6268 register cache.
6269 (fill_gregset): Don't fetch it under the same circumstances.
6270
6271 2002-06-09 Andrew Cagney <cagney@redhat.com>
6272
6273 * Makefile.in (callback_h): Define.
6274 (remote_sim_h): Update path to remote-sim.h.
6275 (remote-rdp.o): Add $(callback_h).
6276 (remote-sim.o): Use $(callback_h).
6277 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6278 * remote-rdp.c: Include "gdb/callback.h".
6279
6280 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6281
6282 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6283 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6284
6285 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6286
6287 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6288 * rdi-share/serpardr.c: Ditto.
6289 * rdi-share/unixcomm.c: Ditto.
6290 * rdi-share/serdrv.c: Ditto.
6291 * rdi-share/hostchan.h: Ditto.
6292 * rdi-share/hostchan.c: Ditto.
6293 * rdi-share/host.h: Ditto.
6294 * rdi-share/devsw.c: Ditto.
6295
6296 * objfiles.h: Change type of obj_private to void pointer.
6297 * pa64solib.c: Update copyright. Don't include "assert.h", use
6298 strcmp instead of STREQ, use LONGEST, do not use PTR
6299 * somsolib.c: Ditto.
6300
6301 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6302 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6303 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6304
6305 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6306
6307 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6308 (default_get_saved_register): Delete function.
6309 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6310 generic_unwind_get_saved_register.
6311 * gdbarch.h, gdbarch.c: Re-generate.
6312
6313 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6314
6315 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6316 generic_func_frame_chain_valid.
6317 * gdbarch.h, gdbarch.c: Re-generate.
6318 * blockframe.c (generic_func_frame_chain_valid): Only check
6319 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6320 passing FP to PC_IN_CALL_DUMMY.
6321 Fix PR gdb/360.
6322
6323 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6324
6325 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6326 (register_gdbarch_data): Initialize init_p.
6327 (gdbarch_data): Initialize data pointer using the init function.
6328 (init_gdbarch_data): Delete function.
6329 (gdbarch_update_p): Update.
6330 (initialize_non_multiarch): Update.
6331 (struct gdbarch): Add field initialized_p.
6332 * gdbarch.h, gdbarch.c: Re-generate.
6333
6334 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6335
6336 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6337 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6338 better do the things actually here.
6339 * x86-64-tdep.c (x86_64_register_name2nr): New.
6340 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6341 (x86_64_gdbarch_init): Respect the above change.
6342 * x86-64-tdep.h (x86_64_register_name2nr)
6343 (x86_64_register_nr2name): Add prototypes.
6344 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6345
6346 2002-06-06 Michael Snyder <msnyder@redhat.com>
6347
6348 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6349 Delete extra braces and re-indent.
6350 (d10v_store_return_value): Char return values
6351 must be shifted over by one byte in R0.
6352 (d10v_extract_return_value): Delete extra braces, re-indent.
6353
6354 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6355
6356 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6357 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6358 (d10v_integer_to_address): Rewrite.
6359 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6360 the d10v specific functions which take care of converting to the
6361 correct space.
6362
6363 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6364
6365 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6366 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6367
6368 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6369
6370 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6371 includes.
6372 * config/tm-linux.h: Ditto.
6373 * config/alpha/tm-alphalinux.h: Ditto.
6374 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6375 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6376 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6377 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6378 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6379 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6380 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6381 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6382 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6383 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6384 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6385 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6386 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6387 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6388 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6389 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6390 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6391 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6392 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6393 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6394 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6395 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6396 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6397 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6398 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6399 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6400 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6401 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6402 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6403 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6404 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6405 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6406 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6407 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6408 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6409 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6410 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6411
6412 2002-05-04 Aidan Skinner <aidan@velvet.net>
6413
6414 * ada-exp.tab.c: New file
6415 * ada-exp.y: New file
6416 * ada-lang.c: New file
6417 * ada-lang.h: New file
6418 * ada-lex.c: New file
6419 * ada-lex.l: New file
6420 * ada-tasks.c: New file
6421 * ada-typeprint.c: New file
6422 * ada-valprint.c: New file
6423
6424 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6425
6426 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6427 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6428
6429 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6430
6431 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6432 insetead of ppc-linux-tdep.o.
6433 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6434 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6435
6436 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6437
6438 2002-05-07 Christian Groessler <chris@groessler.org>
6439 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6440 bit register contents for little endian hosts.
6441
6442 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6443
6444 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6445 any maintainer.
6446
6447 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6448
6449 * gdbarch.h: Regenerate.
6450
6451 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6452
6453 * MAINTAINERS: Add everyone to write-after-approval list.
6454
6455 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6456
6457 * stack.c (frame_info): Use frame_register_unwind instead of
6458 saved_regs. Mention when the SP is on the stack or in a register.
6459
6460 * frame.h (frame_register_unwind_ftype): Define. Document.
6461 (struct frame_info): Add field register_unwind and
6462 register_unwind_cache.
6463 (frame_register_unwind): Declare.
6464 (generic_unwind_get_saved_register): Declare.
6465
6466 * frame.c (frame_register_unwind): New function.
6467 (generic_unwind_get_saved_register): New function.
6468
6469 * blockframe.c (generic_call_dummy_register_unwind): New function.
6470 (frame_saved_regs_register_unwind): New function.
6471 (set_unwind_by_pc): New function.
6472 (create_new_frame): New function.
6473 (get_prev_frame): New function.
6474
6475 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6476
6477 * a29k-share/: Delete directory.
6478 * remote-vx29k.c: Delete file.
6479
6480 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6481
6482 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6483 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6484
6485 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6486
6487 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6488 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6489 (sparc64nbsd-nat.o)
6490 (sparcnbsd-nat.o)
6491 (sparcnbsd-tdep.o): New dependency lists.
6492 * NEWS: Note new UltraSPARC NetBSD native configuration.
6493 * configure.host (sparc64-*-netbsd*): New host.
6494 * configure.tgt (sparc-*-netbsdelf*)
6495 (sparc-*-netbsd*): Set gdb_target to nbsd.
6496 (sparc64-*-netbsd*): New target.
6497 * sparc64nbsd-nat.c: New file.
6498 * sparcnbsd-nat.c: New file.
6499 * sparcnbsd-tdep.c: New file.
6500 * sparcnbsd-tdep.h: New file.
6501 * config/sparc/nbsd.mt: New file.
6502 * config/sparc/nbsd64.mh: New file.
6503 * config/sparc/nbsd64.mt: New file.
6504 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6505 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6506 (HOST_IPC): Remove.
6507 * config/sparc/nbsdaout.mt: Remove.
6508 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6509 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6510 (HOST_IPC): Remove.
6511 * config/sparc/nbsdelf.mt: Remove.
6512 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6513 sparc-nat.c compatiblity defines.
6514 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6515 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6516 * config/sparc/tm-nbsd64.h: New file.
6517 * config/sparc/tm-nbsdaout.h: Remove.
6518 * config/sparc/xm-nbsd.h: Remove.
6519
6520 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6523 * sparc-tdep.c: Include osabi.h.
6524 (gdbarch_tdep): Add osabi member.
6525 (_initialize_sparc_tdep): Use gdbarch_register.
6526 (sparc_gdbarch_init): Use generic OS ABI framework.
6527 (sparc_dump_tdep): New function.
6528
6529 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6530
6531 * corefile.c (do_captured_read_memory_integer): Return non-zero
6532 result.
6533 (safe_read_memory_integer): Copy result of memory read when
6534 status is non-zero. Also, add comments.
6535
6536 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6537
6538 * Makefile.in (ppc_tdep_h): Define.
6539 (ppc-linux-nat.o)
6540 (ppc-linux-tdep.o)
6541 (rs6000-tdep.o): Use $(ppc_tdep_h).
6542 (ppc-sysv-tdep.o)
6543 (ppcnbsd-nat.o)
6544 (ppcnbsd-tdep.o): New dependency lists.
6545 * ppc-tdep.h: Use generic OS ABI framework.
6546 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6547 (ppc_linux_init_abi): New functions.
6548 (ppc_sysv_abi_broken_use_struct_convention)
6549 (ppc_sysv_abi_use_struct_convention)
6550 (ppc_sysv_abi_push_arguments): Move to...
6551 * ppc-sysv-tdep.c: ...here.
6552 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6553 * rs6000-tdep.c (process_note_abi_tag_sections)
6554 (get_elfosabi): Remove.
6555 (rs6000_gdbarch_init): Use generic OS ABI framework.
6556 (rs6000_dump_tdep): New function.
6557 (_initialize_rs6000_tdep): Use gdbarch_register.
6558 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6559 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6560 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6561 of ppc-linux-tdep.o.
6562 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6563 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6564 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6565 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6566 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6567 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6568
6569 2002-05-29 Jim Blandy <jimb@redhat.com>
6570
6571 * macroscope.c (default_macro_scope): Put `void' in empty argument
6572 list.
6573
6574 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6575
6576 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6577 * arch-utils.c: Include "sim-regno.h".
6578 * gdbarch.sh: Don't include "sim-regno.h".
6579 * gdbarch.h, gdbarch.c: Regenerate.
6580 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6581 here.
6582 * arch-utils.h (legacy_register_sim_regno): To here.
6583 * remote-sim.c (legacy_register_sim_regno): Move function from
6584 here.
6585 * arch-utils.c (legacy_register_sim_regno): To here.
6586
6587 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6588
6589 * sim-regno.h: New file.
6590 * Makefile.in (sim_regno_h): Define.
6591 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6592 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6593 (legacy_register_sim_regno): New function.
6594 (one2one_register_sim_regno): New function.
6595 (gdbsim_fetch_register): Rewrite.
6596 (gdbsim_store_register): Only store a register when
6597 REGISTER_SIM_REGNO is valid.
6598 * d10v-tdep.c: Include "sim-regno.h".
6599 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6600 (d10v_ts3_register_sim_regno): Ditto.
6601 * gdbarch.sh: Include "sim-regno.h".
6602 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6603 * gdbarch.h, gdbarch.c: Regenerate.
6604 * arch-utils.h (default_register_sim_regno): Delete declaration.
6605 * arch-utils.c (default_register_sim_regno): Delete function.
6606
6607 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6608
6609 * ppcnbsd-nat.c: Rewrite.
6610 * ppcnbsd-tdep.c: New file.
6611 * ppcnbsd-tdep.h: New file.
6612 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6613 solib.o, and solib-svr4.o.
6614 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6615 nbsd-tdep.o, and corelow.o.
6616
6617 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6618
6619 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6620 `tr' and `sed'. Mention that `broken' targets are not expected to
6621 build.
6622
6623 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6624
6625 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6626 Let PC point right after the prologue before looking up symbols.
6627
6628 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6629
6630 * i386-tdep.c (i386_register_virtual_type): Return
6631 builtin_type_vec128i for SSE registers.
6632
6633 * gdbtypes.h (builtin_type_vec128i): Declare.
6634
6635 * gdbtypes.c (build_builtin_type_vec128i): New function.
6636 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6637 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6638 (build_gdbtypes): Initialize new builtin vector types.
6639 (_initialize_gdbtypes): Register new vector types with gdbarch.
6640
6641 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6642
6643 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6644 since it has been multi-arch'd.
6645 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6646 Move Alpha and VAX multi-arch news entries to same section
6647 as other multi-arch news.
6648
6649 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6650
6651 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6652 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6653 static. Rename some register numbers to put them in ns32k-tdep
6654 private namespace.
6655 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6656 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6657 functions.
6658 (_initialize_ns32k_tdep): Use gdbarch_register.
6659 * ns32k-tdep.h: New file.
6660 * ns32knbsd-tdep.c: New file.
6661 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6662 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6663 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6664 REGISTER_BYTES, REGISTER_BYTE): Remove.
6665 * config/ns32k/tm-ns32k.h: New file.
6666 * config/ns32k/tm-umax.h: Remove.
6667
6668 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6669
6670 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6671 ns32k_store_struct_return, ns32k_extract_return_value,
6672 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6673 functions.
6674 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6675 ns32k_saved_pc_after_call.
6676 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6677 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6678 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6679 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6680 ns32k_extract_struct_value_address.
6681
6682 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6683
6684 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6685 ns32k_fix_call_dummy): New.
6686 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6687 ns32k_call_dummy_words.
6688 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6689 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6690 CALL_DUMMY_NARGS): Remove.
6691 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6692
6693 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6694
6695 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6696 ns32k_frame_saved_pc, ns32k_frame_args_address,
6697 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6698 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6699 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6700 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6701 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6702 (BREAKPOINT): Remove..
6703 (FRAME_CHAIN): Define as ns32k_frame_chain.
6704 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6705 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6706 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6707 (FRAME_FIND_SAVED_REGS): Remove.
6708 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6709 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6710 (POP_FRAME): Define as ns32k_pop_frame.
6711
6712 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6713
6714 * ns32k-tdep.c (ns32k_register_byte_32082,
6715 ns32k_register_byte_32382, ns32k_register_raw_size,
6716 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6717 functions.
6718 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6719 ns32k_register_byte_32382.
6720 * config/ns32k/tm-umax.h: Update copyright years.
6721 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6722 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6723 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6724 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6725 (ns32k_get_enter_addr): Fix prototype.
6726
6727 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6728
6729 * ns32k-tdep.c: Update copyright years.
6730 (ns32k_register_name_32082): New function.
6731 (ns32k_register_name_32382): Ditto.
6732 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6733 (REGISTER_NAME): Define as ns32k_register_name_32382.
6734 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6735 (REGISTER_NAME): Define as ns32k_register_name_32082.
6736
6737 2002-05-24 Jim Blandy <jimb@redhat.com>
6738
6739 * dwarf2read.c (free_line_header): Use xfree, not free.
6740
6741 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6744 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6745
6746 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6747
6748 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6749
6750 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6751
6752 From Ross Alexander at NEC Europe:
6753 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6754
6755 2002-05-23 Michael Snyder <msnyder@redhat.com>
6756
6757 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6758 for input, rather than parse_and_eval_address.
6759
6760 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6761
6762 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6763 * Makefile.in (sim_d10v_h): Update definition.
6764
6765 2002-05-24 Andrew Cagney <cagney@redhat.com>
6766
6767 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6768 change `2002-05-22 Michael Snyder' below.
6769 (d10v_push_arguments): Ditto.
6770 (d10v_extract_return_value): Ditto.
6771
6772 2002-05-23 Jim Blandy <jimb@redhat.com>
6773
6774 * macrotab.c (check_for_redefinition): Don't complain if the new
6775 definition is the same as the previous one. Take more arguments
6776 to allow the comparison.
6777 (macro_define_object, macro_define_function): Pass more arguments
6778 to check_for_redefinition.
6779
6780 2002-05-22 Michael Snyder <msnyder@redhat.com>
6781
6782 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6783 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6784 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6785 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6786 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6787 Add a temp variable to save a call (and a memory read).
6788 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6789 if possible (so that PC_IN_CALL_DUMMY will work).
6790
6791 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6792
6793 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6794
6795 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6796
6797 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6798 fde->cie_ptr.
6799 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6800 (dwarf2_build_frame_info): Add offset to fde->initial_location
6801 so that frames of shared libraries are mapped correctly.
6802 (execute_stack_op): Change type of 'result' from ULONGEST to
6803 CORE_ADDR.
6804
6805 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6806
6807 * config/alpha/tm-nbsd.h: Include solib.h.
6808
6809 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6810
6811 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6812 assumptions about the host's byte order.
6813
6814 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6815
6816 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6817 to dependency list.
6818 * alphanbsd-tdep.c: Include solib-svr4.h.
6819 * shnbsd-tdep.c: Ditto.
6820
6821 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6824 nbsd-tdep.h to dependency list.
6825 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6826 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6827 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6828 nbsdaout.mh and nbsdelf.mh consistently.
6829 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6830 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6831 nbsdaout.mt and nbsdelf.mh consistently.
6832 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6833 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6834 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6835 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6836 a.out shared library stuff from here...
6837 * config/nm-nbsdaout.h: ...to here.
6838 * config/tm-nbsd.h: Remove.
6839 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6840 * config/arm/nbsd.mh: Remove.
6841 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6842 nbsd-tdep.o.
6843 * config/arm/nbsdaout.mh: New file.
6844 * config/arm/nbsdelf.mh: New file.
6845 * config/arm/nm-nbsdaout.h: New file.
6846 * config/i386/nbsd.mh: Remove.
6847 * config/i386/nbsd.mt: Remove.
6848 * config/i386/nbsdaout.mh: New file.
6849 * config/i386/nbsdaout.mt: New file.
6850 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6851 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6852 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6853 i386_register_u_addr): Remove.
6854 * config/i386/nm-nbsdaout.h: New file.
6855 * config/i386/nm-nbsdelf.h: Remove.
6856 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6857 (USE_STRUCT_CONVENTION): Remove.
6858 * config/i386/tm-nbsdaout.h: New file.
6859 * config/i386/tm-nbsdelf.h: Remove.
6860 * config/m68k/nbsd.mh: Remove.
6861 * config/m68k/nbsd.mt: Remove.
6862 * config/m68k/nbsdaout.mh: New file.
6863 * config/m68k/nbsdaout.mt: New file.
6864 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6865 * config/m68k/nm-nbsdaout.h: New file.
6866 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6867 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6868 * config/ns32k/nbsd.mh: Remove.
6869 * config/ns32k/nbsd.mt: Remove.
6870 * config/ns32k/nbsdaout.mh: New file.
6871 * config/ns32k/nbsdaout.mt: New file.
6872 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6873 * config/ns32k/nm-nbsdaout.h: New file.
6874 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6875 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6876 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6877 (SVR4_SHARED_LIBS): Remove.
6878 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6879 * config/sparc/nbsd.mh: Remove.
6880 * config/sparc/nbsd.mt: Remove.
6881 * config/sparc/nbsdaout.mh: New file.
6882 * config/sparc/nbsdaout.mt: New file.
6883 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6884 * config/sparc/nbsdelf.mt: New file.
6885 * config/sparc/nm-nbsdaout.h: New file.
6886 * config/sparc/nm-nbsdelf.h: Remove.
6887 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6888 * config/sparc/tm-nbsdaout.h: New file.
6889
6890 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6891
6892 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6893 mipsnbsd-tdep.c
6894 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6895
6896 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6897
6898 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6899 shnbsd-nat.c.
6900 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6901
6902 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * NEWS: Note new MIPS NetBSD native configuration.
6905 * configure.host (mips*-*-netbsd*): New host.
6906 * configure.tgt (mips*-*-netbsd*): New target.
6907 * mipsnbsd-nat.c: New file.
6908 * mipsnbsd-tdep.c: New file.
6909 * mipsnbsd-tdep.h: New file.
6910 * config/mips/nbsd.mh: New file.
6911 * config/mips/nbsd.mt: New file.
6912 * config/mips/nm-nbsd.h: New file.
6913 * config/mips/tm-nbsd.h: New file.
6914
6915 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6916
6917 * Makefile.in (SFILES): Add osabi.c.
6918 (COMMON_OBS): Add osabi.o.
6919 (osabi.o): New dependency list.
6920 * osabi.c: New file.
6921 * osabi.h: New file.
6922 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6923
6924 * Makefile.in (alpha_tdep_h): Define and use instead of
6925 alpha-tdep.h.
6926 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6927 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6928 Remove.
6929 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6930 * alpha-tdep.h: Include osabi.h.
6931 (alpha_abi): Remove.
6932 (gdbarch_tdep): Use generic OS ABI framework.
6933 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6934 gdbarch_register_osabi.
6935 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6936 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6937 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6938
6939 * Makefile.in (sh_tdep_h): Add osabi.h.
6940 * sh-tdep.h (sh_osabi): Remove.
6941 (gdbarch_tdep): Use generic OS ABI framework.
6942 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6943 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6944 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6945 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6946
6947 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6948 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6949 gdbarch_register_osabi.
6950 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6951 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6952 (get_elfosabi): Rename to...
6953 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6954 ABI framework support routines.
6955 (arm_gdbarch_init): Use generic OS ABI framework.
6956 (arm_dump_tdep): Likewise.
6957 (_initialize_arm_tdep): Likewise.
6958 * arm-tdep.h: Include osabi.h.
6959 (arm_abi): Remove.
6960 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6961 osabi member.
6962 (arm_gdbarch_register_os_abi): Remove prototype.
6963 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6964 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6965
6966 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6967 * mips-tdep.c: Include osabi.h.
6968 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6969 OS ABI framework.
6970
6971 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6972
6973 * h8300-tdep.c: Fix formatting.
6974
6975 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6976
6977 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6978 printing vector registers.
6979
6980 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6981
6982 From Fernando Nasser:
6983 * remote.c (remote_async_open_1): Re-throw the exception when the
6984 connection fails.
6985 (remote_cisco_open): Ditto.
6986 (remote_open_1): Ditto.
6987
6988 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6989
6990 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6991 (remote_start_remote): Add uiout parameter. Pass through to
6992 remote_start_remote_dummy.
6993 (remote_open_1): Use catch_exception instead of catch_errors.
6994 (remote_async_open_1): Ditto.
6995 (remote_cisco_open): Ditto.
6996
6997 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6998
6999 * remote.c (remote_start_remote): Replace PTR with void pointer.
7000 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7001 static.
7002
7003 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7004
7005 * gdb_indent.sh: Allow the script to be run in the sim directory.
7006
7007 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7008
7009 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7010 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7011
7012 * corelow.c (core_open): Only call set_gdbarch_from_file if
7013 exec_bfd is NULL.
7014
7015 2002-05-17 Andrey Volkov <avolkov@transas.com>
7016
7017 * h8300-tdep.c: Add support of EXR register
7018 * config/h8300/tm-h8300.h: Ditto.
7019
7020 2002-05-17 Andrey Volkov <avolkov@transas.com>
7021
7022 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7023
7024 2002-05-17 Andrey Volkov <avolkov@transas.com>
7025
7026 * h8300-tdep.c: Change literal regnums to REGNO.
7027
7028 2002-05-17 Jim Blandy <jimb@redhat.com>
7029
7030 * NEWS: Note addition of macro support.
7031
7032 Expand preprocessor macros in C expressions.
7033 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7034 (scan_macro_expansion, scanning_macro_expansion,
7035 finished_macro_expansion): New function declarations.
7036 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7037 variable declarations.
7038 * parser-defs.h (expression_context_pc): New declaration.
7039 * parse.c (expression_context_pc): New variable.
7040 (parse_exp_1): Set expression_context_pc, as well as
7041 expression_context_block.
7042 * c-exp.y (yylex): If we're not already reading the result of a
7043 macro expansion, try to macro-expand the next token. When we're
7044 done scanning a macro expansion, switch back to the mainline text.
7045 Commas and `if's in a macro's expansion don't terminate the input.
7046 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7047 (macro_original_text, macro_expanded_text,
7048 expression_macro_lookup_func, expression_macro_lookup_baton): New
7049 variables.
7050 (scan_macro_expansion, scanning_macro_expansion,
7051 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7052 c_preprocess_and_parse): New functions.
7053 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7054 c_preprocess_and_parse, instead of c_parse.
7055 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7056 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7057
7058 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7059
7060 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7061 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7062 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7063
7064 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7065
7066 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7067
7068 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7069
7070 * Makefile.in (sh_tdep_h): Define and use.
7071 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7072 register enum): Move to...
7073 * * sh-tdep.h: ...here.
7074 * sh-tdep.c: Include sh-tdep.h.
7075 * sh3-rom.c: Likewise.
7076 * shnbsd-tdep.c: Likewise.
7077
7078 2002-05-16 Michael Snyder <msnyder@redhat.com>
7079
7080 * arm-tdep.c: Spelling fix in comment.
7081
7082 2002-05-16 Jim Blandy <jimb@redhat.com>
7083
7084 Add commands for manually expanding macros and showing their
7085 definitions.
7086 * macrocmd.c, macroscope.c, macroscope.h: New files.
7087 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7088 (macroscope_h): New variable.
7089 (HFILES_NO_SRCDIR): Add macroscope.h.
7090 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7091 (macroscope.o, macrocmd.o): New rules.
7092
7093 Teach the Dwarf 2 reader to read macro information.
7094 * dwarf2read.c: #include "macrotab.h".
7095 (dwarf_macinfo_buffer): New variable.
7096 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7097 dwarf_macinfo_size.
7098 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7099 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7100 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7101 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7102 dwarf2_macro_spaces_in_definition): New complaints.
7103 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7104 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7105 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7106 the partial symbol table.
7107 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7108 from what's recorded in the partial symbol table.
7109 (read_file_scope): If the compilation unit has a
7110 `DW_AT_macro_info' attribute, read its macro information.
7111 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7112
7113 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7114
7115 Fix PR gdb/546
7116 * ser-tcp.c: Don't include <netinet/udp.h>.
7117
7118 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7119
7120 * MAINTAINERS: Update my email address.
7121
7122 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7123
7124 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7125 include file of the same name.
7126
7127 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7128
7129 * configure.tgt: Mark v850 as multi-arched.
7130 * config/v850/tm-v850.h: Remove file.
7131 * config/v850/v850.mt: Eliminate TM_FILE.
7132
7133 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7134
7135 * v850-tdep.c: Full multi-arch.
7136 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7137 Define GDB_MULTI_ARCH to 2.
7138
7139 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7140
7141 * p-exp.y (current_type): New static variable.
7142 Carries the type of the expression at the position that is parsed.
7143 (push_current_type, pop_current_type): Two new functions. Used
7144 to store/restore current_type in expression on specific tokens.
7145 (search_field): New static variable. Set to one after parsing a point
7146 as at that point only a FIELDNAME token should be searched.
7147 (FIELDNAME): New token. After a point only a token belonging to
7148 current_type type definition is allowed.
7149 (all over token rules): reset and change current_type according
7150 to rules.
7151 (exp '[' rule): insert implicit array index field if
7152 exp is a pascal string type.
7153
7154 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7155
7156 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7157 frame info. Use frame_info's saved_regs instead of matching member
7158 in extra_frame_info throughout.
7159 (v850_frame_init_saved_regs): New function.
7160 (v850_init_extra_frame_info): Move most functionality into
7161 v850_frame_init_saved_regs().
7162 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7163 (v850_frame_find_saved_regs): Remove declaration.
7164 (FRAME_FIND_SAVED_REGS): Remove definition.
7165 (v850_frame_init_saved_regs): Add declaration.
7166 (FRAME_INIT_SAVED_REGS): Add definition.
7167
7168 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7169
7170 * v850-tdep.c: Begin multi-arch'ing v850.
7171 (v850_target_architecture_hook): Remove function.
7172 (v850_gdbarch_init): New function. Add code previously in
7173 v850_target_architecture_hook().
7174 (_initialize_v850_tdep): Don't set target_architecture_hook.
7175 Call register_gdbarch_init() instead.
7176
7177 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7178
7179 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7180 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7181 (fixup_class_method_type): Likewise.
7182
7183 2002-05-15 Jim Blandy <jimb@redhat.com>
7184
7185 Add macro structures to GDB's symbol tables. Nobody puts anything
7186 in them yet.
7187 * symtab.h (struct symtab): New member: `macro_table'.
7188 * buildsym.h (pending_macros): New global variable.
7189 * buildsym.c: #include "macrotab.h".
7190 (buildsym_init): Initialize `pending_macros'.
7191 (end_symtab): If we found macro information while reading a CU's
7192 debugging info, do build a symtab structure for it. Make the
7193 symtab point to the macro information, and clear the
7194 `pending_macros' pointer which held it while we were reading the
7195 debug info.
7196 (really_free_pendings): Free any pending macro table.
7197 * objfiles.h (struct objfile): New member: `macro_cache'.
7198 * objfiles.c (allocate_objfile): Set allocate and free functions
7199 for the macro cache's objstack.
7200 (free_objfile): Empty the macro cache's obstack.
7201 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7202 set new allocate and free functions for it.
7203 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7204 free functions for the macro cache's objstack. (Why is this
7205 function building its own objfile?)
7206 * symmisc.c (print_objfile_statistics): Print statistics on the
7207 macro bcache.
7208 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7209
7210 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7211
7212 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7213 (REGISTER_U_ADDR): Delete definition.
7214 (arm_register_u_addr): Delete declaration.
7215
7216 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7217
7218 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7219 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7220
7221 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7222
7223 * regcache.c (register_valid): Revise comments refering to "Not
7224 available" and "unavailable".
7225 * frame.c (frame_register_read): Ditto.
7226 * findvar.c (value_of_register): Ditto.
7227
7228 2002-05-15 Andrew Cagney <cagney@redhat.com>
7229
7230 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7231 (remote-sim.o): Update dependencies.
7232 (d10v-tdep.o): Specify dependencies.
7233 (sim_d10v_h): Define.
7234
7235 2002-05-14 Jim Blandy <jimb@redhat.com>
7236
7237 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7238 * macrotab.c (macro_lookup_inclusion, find_definition,
7239 new_macro_table): Same.
7240
7241 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7242 not `! strcmp ()'. This is a dubious improvement.
7243 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7244
7245 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7246 although it's not necessary, to avoid a warning.
7247
7248 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7249
7250 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7251 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7252 TYPE_INSTANCE_FLAGS.
7253 (struct main_type): New.
7254 (struct type): Move most members to struct main_type. Change
7255 cv_type and as_type to new type_chain member. Add instance_flags.
7256 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7257 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7258 (finish_cv_type): Remove prototype.
7259 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7260 Set TYPE_CHAIN.
7261 (alloc_type_instance): New function.
7262 (smash_type): New function.
7263 (make_pointer_type, make_reference_type, make_function_type)
7264 (smash_to_member_type, smash_to_method_type): Call smash_type.
7265 (make_qualified_type): New function.
7266 (make_type_with_address_space): Call make_qualified_type.
7267 (make_cv_type): Likewise.
7268 (finish_cv_type): Remove unnecessary function.
7269 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7270 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7271 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7272 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7273 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7274 * hpread.c (hpread_read_struct_type): Likewise.
7275 * stabsread.c (read_struct_type): Likewise.
7276
7277 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * configure.tgt: Add a catch all sh* target, for cases like
7280 sh[2,3,4]-elf and sh-hms.
7281
7282 2002-05-14 Keith Seitz <keiths@redhat.com>
7283
7284 * event-loop.c (create_file_handler): Don't do anything but
7285 update data when we are given a fd which we are already
7286 monitoring.
7287
7288 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7289
7290 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7291 (update_context): Use __func__ in warnings.
7292
7293 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7294
7295 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7296 and tcp_close to net_open and net_close.
7297 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7298 using UDP if requested. Don't try to disable Nagle on UDP
7299 sockets.
7300 * remote.c (remote_serial_open): New function. Warn about UDP.
7301 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7302
7303 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7304
7305 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7306
7307 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7308
7309 * configure.tgt: Remove sh-hms target.
7310 * MAINTAINERS: Don't list sh-hms as a separate target.
7311
7312 2002-05-13 Jim Blandy <jimb@redhat.com>
7313
7314 Add first preprocessor macro-expansion files.
7315 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7316 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7317 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7318 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7319 (COMMON_OBS): Add macrotab.o, macroexp.o.
7320 (macroexp.o, macrotab.o): New rules.
7321
7322 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7323
7324 * config/m88k/tm-m88k.h: Update copyright.
7325 (m88k_target_write_pc): Declare
7326 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7327 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7328 (SHIFT_INST_REGS): Update definition.
7329 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7330 using old definition of TARGET_WRITE_PC.
7331 * regcache.c (generic_target_write_pc): Delete code handling
7332 NNPC_REGNUM.
7333 * gdbarch.sh (NNPC_REGNUM): Delete.
7334 * gdbarch.h, gdbarch.c: Regenerate.
7335
7336 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7337
7338 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7339 builtin reg number.
7340
7341 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7342
7343 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7344 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7345 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7346 access macros.
7347 * c-typeprint.c (cp_type_print_method_args): Likewise.
7348 (c_type_print_args): Likewise.
7349 * d10v-tdep.c (d10v_push_arguments): Likewise.
7350 (d10v_extract_return_value): Likewise.
7351 * expprint.c (print_subexp): Likewise.
7352 * gdbtypes.c (lookup_primitive_typename): Likewise.
7353 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7354 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7355 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7356 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7357 (TYPE_VECTOR): Likewise.
7358 * hpread.c (hpread_read_struct_type)
7359 (fix_static_member_physnames, fixup_class_method_type)
7360 (hpread_type_lookup): Likewise.
7361 * mdebugread.c (parse_symbol, parse_type): Likewise.
7362 * p-lang.c (is_pascal_string_type): Likewise.
7363 * valops.c (hand_function_call): Likewise.
7364 * x86-64-tdep.c (classify_argument): Likewise.
7365
7366 * hpread.c (hpread_read_function_type)
7367 (hpread_read_doc_function_type): Call replace_type.
7368 * dstread.c (create_new_type): Delete.
7369 (decode_dst_structure, process_dst_function): Call alloc_type.
7370 Use type access macros.
7371
7372 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7373
7374 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7375 the're not supported by the current architecture.
7376 (i387_fill_fxsave): Likewise.
7377
7378 2002-05-12 Fred Fish <fnf@redhat.com>
7379
7380 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7381 sect_index_xxx members to index the first slot in section_offsets
7382 if all of the section_offsets are zero.
7383
7384 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7385
7386 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7387 checked in with last change.
7388
7389 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7390
7391 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7392 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7393 config.sub.
7394
7395 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7396
7397 * Makefile.in: Update dependencies.
7398
7399 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7400
7401 * language.c (local_hex_string_custom): Simplify. Do not depend
7402 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7403
7404 * memattr.c (mem_info_command): Replace calls to
7405 longest_local_hex_string and longest_local_hex_string_custom.
7406 * buildsym.c (make_blockvector): Ditto.
7407 * solib.c (info_sharedlibrary_command): Ditto.
7408 * tracepoint.c (tracepoints_info): Ditto.
7409 * symtab.c (print_msymbol_info): Ditto.
7410
7411 * language.c (local_hex_string): Delete.
7412 (local_hex_string_custom): Delete.
7413 (longest_local_hex_string): Rename to local_hex_string.
7414 (longest_local_hex_string_custom): Rename to
7415 local_hex_string_custom.
7416 * language.h (local_hex_string): Change parameter type to LONGEST.
7417 (local_hex_string_custom): Ditto.
7418 (longest_local_hex_string): Delete declaration.
7419 (longest_local_hex_string_custom): Ditto.
7420
7421 * solib.c: Update copyright.
7422 * memattr.c: Update copyright.
7423
7424 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7425
7426 * arch-utils.h (legacy_register_to_value): Declare.
7427 (legacy_value_to_register): Declare.
7428 (legacy_convert_register_p): Declare.
7429 * arch-utils.c (legacy_register_to_value): New function.
7430 (legacy_value_to_register): New function.
7431 (legacy_convert_register_p): New function.
7432
7433 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7434 (VALUE_TO_REGISTER): Define.
7435 (CONVERT_REGISTER_P): Define.
7436 * gdbarch.h, gdbarch.c: Regenerate.
7437
7438 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7439 VALUE_TO_REGISTER.
7440 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7441 CONVERT_REGISTER_P.
7442
7443 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7444 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7445
7446 * Makefile.in: Update dependencies for valops.c.
7447 * valops.c: Include "gdb_assert.h".
7448 (typecmp): Skip THIS parameter to methods.
7449 (find_method_list): Remove static_memfuncp argument,
7450 update callers. Check for stub methods.
7451 (find_value_oload_method_list): Don't set *static_memfuncp.
7452 (find_overload_match): Don't check for stub methods. Assert
7453 that methods are not stubbed. Handle static methods.
7454 (value_find_oload_method_list): Remove static_memfuncp argument.
7455 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7456 to the argument list for static stub methods.
7457 * value.h (value_find_oload_method_list): Update prototype.
7458
7459 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7460
7461 * arch-utils.h (generic_register_size): Declare.
7462 (generic_register_raw_size, generic_register_virtual_size): Delete
7463 declarations.
7464 * arch-utils.c (generic_register_raw_size): Delete.
7465 (generic_register_size): New function.
7466 (generic_register_virtual_size): Delete.
7467
7468 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7469 default generic_register_size.
7470 * gdbarch.h, gdbarch.c: Re-generate.
7471
7472 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7473 register_virtual_size.
7474 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7476
7477 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7478
7479 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7480 * gdbarch.h, gdbarch.c: Regenerate.
7481 * gnu-v3-abi.c: Update copyright.
7482 (vtable_address_point_offset): Update.
7483 (gnuv3_rtti_type): Update.
7484 (gnuv3_baseclass_offset): Update.
7485 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7486 (init_fetch_link_map_offsets): Update.
7487 * remote.c (get_remote_state): Update.
7488
7489 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * TODO: Remove value_headof/value_from_vtable_info comment.
7492 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7493 * values.c (value_headof, value_from_vtable_info): Delete.
7494 * value.h (value_from_vtable_info): Delete prototype.
7495
7496 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7497
7498 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7499 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7500 $(gdb_regex_h).
7501 (gdb_assert_h): Define.
7502 (gdb_wait_h): Define.
7503 (gdb_regex_h): Define.
7504
7505 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7506
7507 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7508 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7509
7510 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * nbsd-tdep.c: Fix comment.
7513
7514 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7515
7516 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7517 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7518 (nbsd-tdep.o): New dependency list.
7519 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7520 nbsd-tdep.h.
7521 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7522 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7523 * nbsd-tdep.c: New file.
7524 * nbsd-tdep.h: New file.
7525 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7526 nbsd-tdep.h.
7527 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7528 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7529 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7530 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7531
7532 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7535 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7536 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7537 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7538 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7539 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7540
7541 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7544 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7545 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7546 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7547 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7548 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7549 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7550
7551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7552
7553 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7554 fetch_elfcore_registers to...
7555 * i386nbsd-tdep.c: ...here.
7556 (i386nbsd_use_struct_convention): Rename to...
7557 (i386nbsd_aout_use_struct_convention): ...this.
7558 (i386nbsd_supply_reg): New function.
7559 (i386nbsd_fill_reg): New function.
7560 (fetch_core_registers): Use i386nbsd_supply_reg.
7561 (fetch_elfcore_registers): Likewise.
7562 (_initialize_i386nbsd_tdep): New function.
7563 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7564 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7565 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7566 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7567 (i386nbsd_aout_use_struct_convention): ...this.
7568
7569 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7572 (store_inferior_registers): Use shnbsd_fill_reg.
7573 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7574 sh_nbsd_supply_register): Collapse into...
7575 (shnbsd_supply_reg): ...this.
7576 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7577 (shnbsd_fill_reg): ...this.
7578 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7579 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7580 (fetch_core_registers): Use shnbsd_supply_reg.
7581 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7582 (sh_nbsd_core_fns): Rename to...
7583 (shnbsd_core_fns): ...this.
7584 (sh_nbsd_elfcore_fns): Rename to...
7585 (shnbsd_elfcore_fns): ...this.
7586 (sh_nbsd_init_abi): Rename to...
7587 (shnbsd_init_abi): ...this.
7588 (_initialize_sh_nbsd_tdep): Rename to...
7589 (_initialize_shnbsd_tdep): ...this.
7590 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7591 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7592 sh_nbsd_fill_register): Remove prototypes.
7593 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7594
7595 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7598 (i387-nat.o): Delete dependency list.
7599 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7600 (x86-64-linux-nat.o): Likewise.
7601 * i387-nat.c: Delete file, moving contents to...
7602 * i387-tdep.c: ...here.
7603 * i387-nat.h: Rename...
7604 * i387-tdep.h: ...to this.
7605 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7606 * i386-linux-nat.c: Likewise.
7607 * i386bsd-nat.c: Likewise.
7608 * i386gnu-nat.c: Likewise.
7609 * i386nbsd-nat.c: Likewise.
7610 * i386v4-nat.c: Likewise.
7611 * x86-64-linux-nat.c: Likewise.
7612 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7613 * config/i386/go32.mh (NATDEPFILES): Likewise.
7614 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7615 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7616 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7617 * config/i386/linux.mh (NATDEPFILES): Likewise.
7618 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7619 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7620 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7621 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7622
7623 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7624
7625 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7626 (alphanbsd-nat.o): Remove dependency list.
7627 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7628 * alphanbsd-nat.c: Delete. Contents moved to...
7629 * alphanbsd-tdep.c: ...here.
7630 (_initialize_alphanbsd_tdep): Register core functions.
7631 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7632
7633 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7634
7635 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7636 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7637 (alphanbsd-nat.o): Likewise.
7638 (alphabsd-tdep.o): New dependency list.
7639 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7640 (fill_gregset): Use alphabsd_fill_reg.
7641 (supply_fpregset): Use alphabsd_supply_fpreg.
7642 (fill_fpregset): Use alphabsd_fill_fpreg.
7643 (fetch_inferior_registers): Use struct reg and struct fpreg
7644 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7645 and alphabsd_supply_fpreg.
7646 (store_inferior_registers): Use struct reg and struct fpreg
7647 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7648 and alphabsd_fill_fpreg.
7649 * alphabsd-tdep.c: New file.
7650 * alphabsd-tdep.h: New file.
7651 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7652 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7653 alphabsd_supply_fpreg.
7654 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7655 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7656
7657 2002-05-11 Eric Christopher <echristo@redhat.com>
7658
7659 * mips-tdep.c (mips_double_register_type): Fix thinko.
7660 (mips_single_register_type): Ditto.
7661 * MAINTAINERS: Add self.
7662
7663 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7664
7665 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7666 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7667 right thing on architectures with different endianness and/or
7668 integer sizes.
7669
7670 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7671
7672 From Christian Limpach <chris@Pin.LU>
7673 * configure.in: Change sed expression which comments out
7674 NATDEPFILES to also comment out continuation lines.
7675 * configure: Regenerate.
7676
7677 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7678
7679 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7680 big patch.
7681
7682 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7683
7684 * sh-tdep.c: Include correct file.
7685
7686 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7687
7688 New support for sh64-elf (sh5) target.
7689
7690 * configure.tgt: For sh64-elf target, default to sh-elf.
7691
7692 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7693 (struct gdbarch_tdep): Add new fields for new registers and ABI
7694 info.
7695
7696 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7697 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7698 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7699 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7700 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7701 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7702 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7703 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7704 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7705 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7706 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7707 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7708 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7709 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7710 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7711 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7712 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7713 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7714 sign_extend, sh64_nofp_frame_init_saved_regs,
7715 sh64_init_extra_frame_info, sh64_get_saved_register,
7716 sh64_extract_struct_value_address, sh64_pop_frame,
7717 sh64_push_arguments, sh64_extract_return_value,
7718 sh64_store_return_value, sh64_show_media_regs,
7719 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7720 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7721 sh_sh64_register_virtual_type,
7722 sh_sh64_register_convert_to_virtual,
7723 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7724 sh64_register_read, sh64_pseudo_register_write,
7725 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7726 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7727 sh64_do_pseudo_register, sh_compact_do_registers_info,
7728 sh64_do_registers_info, sh_gdbarch_init): New functions.
7729
7730 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7731
7732 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7733
7734 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7735
7736 * linespec.c (decode_line_1): Check for a double quote after
7737 a filename correctly.
7738
7739 2002-05-10 Jim Blandy <jimb@redhat.com>
7740
7741 Properly track the size of the current objfile's .debug_line section.
7742 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7743 (DWARF_LINE_SIZE): New macro.
7744 (dwarf2_build_psymtabs_hard): Record the line section's size in
7745 the partial symbol table.
7746 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7747 symbol table.
7748
7749 2002-05-10 Petr Sorfa <petrs@caldera.com>
7750
7751 * ia64-tdep.c: Handle breakpoints on L instruction type
7752 in MLX instruction bundle by moving the breakpoint to
7753 the third slot (X instruction type) as L holds only data.
7754
7755 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7756
7757 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7758 (process_one_symbol): Complain about discarding local symbols
7759 due to a misplaced N_LBRAC entry.
7760
7761 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7762
7763 From Daniel Berlin <dan@cgsoftware.com>
7764 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7765 decrease the depth we are at, in the case of templates.
7766
7767 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7768
7769 * mips-tdep.c (mips_float_register_type): New function.
7770 (mips_double_register_type): New function.
7771 (mips_print_register): Use them.
7772 (do_fp_register_row): Likewise.
7773
7774 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7775
7776 * signals/signals.c (signals): Remove conditional compilation around
7777 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7778 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7779
7780 2002-05-09 Michael Snyder <msnyder@redhat.com>
7781
7782 * remote-rdp.c (remote_rdp_can_run): Remove.
7783
7784 2002-05-09 Tom Tromey <tromey@redhat.com>
7785
7786 * jv-valprint.c (java_val_print): Handle `char' as a special case
7787 of TYPE_CODE_INT.
7788
7789 2002-05-09 Michael Snyder <msnyder@redhat.com>
7790
7791 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7792 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7793 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7794 str r(0123),[sp,#nn].
7795 (arm_skip_prologue): Ditto. Also make disassembly
7796 order-independent by placing it in a loop.
7797
7798 2002-05-06 Michael Snyder <msnyder@redhat.com>
7799
7800 * stabsread.c (read_type): Add recognition for new attribute:
7801 "@V;" means that an array type is actually a vector.
7802 This is analogous to the vector flag that's been added to dwarf2.
7803
7804 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7805
7806 * i386-tdep.h (i386_abi): New enum.
7807 (struct gdbarch_tdep): Replace os_ident member with abi.
7808 (i386_gdbarch_register_os_abi): New prototype.
7809 * i386-tdep.c (i386_abi_names): New array.
7810 (process_note_abi_tag_sections): Removed.
7811 (process_note_sections): New function.
7812 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7813 (struct i386_abi_handler): New struct.
7814 (i386_abi_handler_list): New variable.
7815 (i386_gdbarch_register_os_abi): New function.
7816 (i386_gdbarch_init): Adapt for the changes given above.
7817
7818 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7819
7820 * gregset.h: Say "GNU/Linux".
7821
7822 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7823
7824 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7825 (build_gdbtypes): Build builtin_type_v2_float.
7826 (_initialize_gdbtypes): Register new builtin type.
7827
7828 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7829
7830 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7831 (clear_gdbarch_swap): New function.
7832 (initialize_non_multiarch): Call.
7833 (gdbarch_update_p): Before calling init(), swap out and clear the
7834 existing architecture.
7835 * gdbarch.c: Regenerate.
7836
7837 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7840 alphanbsd-tdep.c.
7841
7842 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7843
7844 * sh-nbsd-nat.c: Rename to...
7845 * shnbsd-nat.c: ...this.
7846 * sh-nbsd-tdep.c: Rename to...
7847 * shnbsd-tdep.c: ...this.
7848 * sh-nbsd-tdep.h: Rename to...
7849 * shnbsd-tdep.h: ...this.
7850 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7851 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7852
7853 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7854
7855 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7856 concatenation for command help messages.
7857
7858 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7859
7860 * NEWS: Note new sh*-*-netbsdelf* configuration.
7861 * configure.host: Set gdb_host_cpu to sh for all sh*.
7862 (sh*-*-netbsdelf*): New host.
7863 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7864 (sh*-*-netbsdelf*): New target.
7865 * sh-nbsd-nat.c: New file.
7866 * sh-nbsd-tdep.c: New file.
7867 * sh-nbsd-tdep.h: New file.
7868 * config/sh/nbsd.mh: New file.
7869 * config/sh/nbsd.mt: New file.
7870 * config/sh/nm-nbsd.h: New file.
7871 * config/sh/tm-nbsd.h: New file.
7872
7873 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7874
7875 * sh-tdep.c (sh_osabi_names): Declare.
7876 (process_note_abi_tag_sections): New function.
7877 (get_elfosabi): Ditto.
7878 (sh_gdbarch_register_os_abi): Ditto.
7879 (sh_dump_tdep): Ditto.
7880 _initialize_sh_tdep): Use gdbarch_register to register
7881 sh_gdbarch_init and sh_dump_tdep.
7882 * config/sh/tm-sh.h (sh_osabi): Declare.
7883 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7884
7885 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7886
7887 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7888 (thumb_scan_prologue): Ditto.
7889 (arm_find_callers_reg): Ditto.
7890 (arm_frame_chain): Ditto.
7891 (arm_init_extra_frame_info): Ditto.
7892 (arm_frame_saved_pc): Ditto.
7893 (arm_pop_frame): Ditto.
7894 (arm_push_return_address): New function.
7895 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7896 call_dummy_location, call_dummy_breakpoint_offset_p,
7897 call_dummy_breakpoint_offset, call_dummy_p,
7898 call_dummy_stack_adjust_p, call_dummy_words,
7899 sizeof_call_dummy_words, call_dummy_start_offset,
7900 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7901 call_dummy_address, push_return_address and push_dummy_frame for
7902 generic dummy frames.
7903
7904 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7905
7906 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7907 size computation for alloca.
7908 (sh_fp_frame_init_saved_regs): Likewise.
7909
7910 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7911
7912 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7913 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7914 * arm-tdep.c (arm_store_return_value): Use them.
7915 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7916 * remote-rdp.c (remote_rdp_fetch_register): Use
7917 ARM_MAX_REGISTER_RAW_SIZE.
7918 (remote_rdp_store_register): Likewise.
7919
7920 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7921
7922 * dwarf2cfi.c: Code cleanup, removed unused variables,
7923 added default labels to switch {} statements.
7924 * x86-64-tdep.c: Ditto.
7925 * x86-64-linux-nat.c: Ditto.
7926
7927 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7928
7929 * solib.h: Protect against multiple inclusion.
7930
7931 2002-05-06 Jim Blandy <jimb@redhat.com>
7932
7933 Add first preprocessor macro-expansion files.
7934 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7935 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7936 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7937 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7938 (COMMON_OBS): Add macrotab.o, macroexp.o.
7939 (macroexp.o, macrotab.o): New rules.
7940
7941 Separate the job of reading the line number info statement program
7942 header (...expialidocious) out into its own function.
7943 * dwarf2read.c (struct line_head, struct filenames, struct
7944 directories): Replace with...
7945 (struct line_header): New structure, containing the full
7946 contents of the statement program header, including the
7947 include directory and file name tables.
7948 (read_file_scope): If we have line number info, instead of just
7949 calling dwarf_decode_lines to do all the work, call
7950 dwarf_decode_line_header first to get a `struct line_header'
7951 containing the data in the statement program header, and then
7952 pass that to dwarf_decode_lines, which will pick up where that
7953 left off. Be sure to clean up the `struct line_header' object.
7954 (dwarf_decode_line_header, free_line_header, add_include_dir,
7955 add_file_name): New functions.
7956 (dwarf_decode_lines): Move all the code to read the statement
7957 program header into dwarf_decode_line_header. Take the line
7958 header it built as the first argument, instead of the offset to
7959 the compilation unit's line number info. Use the new `struct
7960 line_header' type instead of the old structures. No need to do
7961 cleanups here now, since we don't allocate anything.
7962 (dwarf2_statement_list_fits_in_line_number_section,
7963 dwarf2_line_header_too_long): New complaints.
7964
7965 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7966
7967 * gdbtypes.c (init_vector_type): New function.
7968 (build_builtin_type_vec128): Simplify the representation of SIMD
7969 registers.
7970 (build_gdbtypes): Initialize new builtin vector types.
7971 (_initialize_gdbtypes): Register new vector types with gdbarch.
7972 (builtin_type_v4_float, builtin_type_v4_int32,
7973 builtin_type_v8_int16, builtin_type_v16_int8,
7974 builtin_type_v2_int32, builtin_type_v4_int16,
7975 builtin_type_v8_int8): New (renamed) SIMD types.
7976
7977 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7978
7979 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7980 (i387_fill_fxsave): Likewise.
7981
7982 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7983
7984 * alpha-tdep.c (alpha_extract_return_value): Don't use
7985 non-constant array size in prototype.
7986
7987 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7988
7989 From Brian Taylor <briant at model dot com>:
7990 * ui-out.c (ui_out_field_core_addr): Use the function
7991 longest_local_hex_string_custom'to format addresses > 32 bits
7992 wide.
7993
7994 * ui-out.c (ui_out_field_core_addr): Update comment.
7995
7996 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7997
7998 * stack.c (select_and_print_frame): Make static. Delete the
7999 parameter `level'.
8000 (func_command): Update call.
8001 (select_frame_command): Delete code computing the frame level.
8002 * frame.h (select_and_print_frame): Delete declaration.
8003
8004 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8005
8006 * sparc-tdep.c (sparc_get_saved_register): Comment why
8007 get_prev_frame call is safe.
8008
8009 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8010
8011 * frame.h (select_frame): Delete level parameter.
8012 * stack.c (select_frame): Update. Use frame_relative_level to
8013 obtain the frame's level.
8014 (select_and_print_frame): Update call.
8015 (select_frame_command): Ditto.
8016 (up_silently_base): Ditto.
8017 (down_silently_base): Ditto.
8018 * ocd.c (ocd_start_remote): Ditto.
8019 * remote-rdp.c (remote_rdp_open): Ditto.
8020 * remote-mips.c (mips_initialize): Ditto.
8021 (common_open): Ditto.
8022 * remote-e7000.c (e7000_start_remote): Ditto.
8023 * m3-nat.c (select_thread): Ditto.
8024 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8025 (child_get_current_exception_event): Ditto.
8026 * varobj.c (varobj_create): Ditto.
8027 (varobj_update): Ditto.
8028 (c_value_of_root): Ditto.
8029 * tracepoint.c (finish_tfind_command): Ditto.
8030 * corelow.c (core_open): Ditto.
8031 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8032 * thread.c (info_threads_command): Ditto.
8033 (switch_to_thread): Ditto.
8034 * infrun.c (normal_stop): Ditto.
8035 (restore_selected_frame): Ditto.
8036 (restore_inferior_status): Ditto.
8037 * breakpoint.c (insert_breakpoints): Ditto.
8038 (watchpoint_check): Ditto.
8039 (bpstat_stop_status): Ditto.
8040 (do_enable_breakpoint): Ditto.
8041 * blockframe.c (flush_cached_frames): Ditto.
8042 (reinit_frame_cache): Ditto.
8043
8044 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8045
8046 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8047 maintainer.
8048
8049 2002-05-04 Jim Blandy <jimb@redhat.com>
8050
8051 * gdbtypes.c (replace_type): Doc fix.
8052
8053 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8054
8055 * valprint.c (strcat_longest): Delete commented out function.
8056 Update copyright.
8057
8058 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8059
8060 * MAINTAINERS: Mark a29k as deleted.
8061 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8062 Move new configurations to the top.
8063 * configure.tgt: Remove a29k.
8064 * config/a29k/tm-vx29k.h: Delete.
8065 * config/a29k/vx29k.mt: Delete.
8066 * config/a29k/tm-a29k.h: Delete.
8067 * config/a29k/a29k-udi.mt: Delete.
8068 * config/a29k/a29k.mt: Delete.
8069 * a29k-tdep.c: Delete.
8070 * remote-udi.c: Delete.
8071 * remote-mm.c: Delete.
8072 * remote-eb.c: Delete.
8073 * remote-adapt.c: Delete.
8074 * Makefile.in: Remove obsolete code.
8075 * config/s390/s390x.mt: Ditto.
8076 * config/s390/s390.mt: Ditto.
8077 * config/sparc/sparclynx.mh: Ditto.
8078 * config/sparc/linux.mh: Ditto.
8079 * config/pa/hppaosf.mh: Ditto.
8080 * config/pa/hppabsd.mh: Ditto.
8081 * config/ns32k/nbsd.mt: Ditto.
8082 * config/mips/vr5000.mt: Ditto.
8083 * config/m68k/sun3os4.mh: Ditto.
8084 * config/m68k/nbsd.mt: Ditto.
8085 * config/m68k/m68klynx.mh: Ditto.
8086 * config/m32r/m32r.mt: Ditto.
8087 * config/i386/x86-64linux.mt: Ditto.
8088 * config/i386/nbsdelf.mt: Ditto.
8089 * config/i386/nbsd.mt: Ditto.
8090 * config/i386/i386lynx.mh: Ditto.
8091
8092 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8093
8094 * target.c (debug_print_register): New function. Handle oversize
8095 registers.
8096 (debug_to_fetch_registers): Call.
8097 (debug_to_store_registers): Call.
8098
8099 2002-05-03 Jim Blandy <jimb@redhat.com>
8100
8101 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8102 (read_type): Doc fix.
8103 * gdbtypes.c (replace_type): Doc fix.
8104
8105 * stabsread.c (multiply_defined_struct): New complaint.
8106 (read_struct_type): If the type we were passed isn't empty, or
8107 incomplete, don't read the new struct type into it; complain,
8108 and return the original type unchanged. Take a new `type_code'
8109 argument, which is the type code for the new type.
8110 (read_type): Rather than storing the type's type code here, pass
8111 it as an argument to read_struct_type, and let that take care of
8112 storing it. That way, we don't overwrite the original type code,
8113 so read_struct_type can use it to decide whether we're overwriting
8114 something we shouldn't.
8115 (complain_about_struct_wipeout): New function.
8116
8117 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8118
8119 * gdbarch.sh: Assert that gdbarch is non-NULL.
8120 * gdbarch.c: Regenerate.
8121
8122 2002-05-03 Jason Merrill <jason@redhat.com>
8123
8124 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8125 and return NULL.
8126
8127 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8128
8129 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8130 (x86_64_dwarf2gdb_regno_map_length),
8131 (x86_64_dwarf2_reg_to_regnum): Added.
8132 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8133 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8134 (_initialize_x86_64_tdep): Synced with the change above.
8135 (x86_64_skip_prologue): Reformulated message.
8136
8137 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8138
8139 * f-exp.y: Also use new prev_lexptr variable
8140 to improve error reporting. Based on Michael Snyder
8141 2002-04-24 dated patch to c-exp.y.
8142 * jv-exp.y: Likewise.
8143 * m2-exp.y: Likewise.
8144
8145 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8146
8147 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8148 we are dealing with vectors.
8149
8150 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8151
8152 * config/m68k/tm-nbsd.h: Obvious fix,
8153 correct machine name.
8154
8155 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8156
8157 * p-typeprint.c (pascal_type_print_base): Add support
8158 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8159
8160 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8161
8162 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8163 for fondamental pascal 'char' type.
8164
8165 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8166
8167 * p-lang.h (is_pascal_string_type): Declaration changed,
8168 new sixth argument of type char ** added.
8169 * p-lang.c (is_pascal_string_type): Implementation
8170 changed. Args length_pos, length_size, string_pos, char_size
8171 can now be NULL. New argument arrayname set to the field
8172 name of the char array. Return value set to char array
8173 field index plus one.
8174 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8175 is_pascal_string_type function.
8176
8177 2002-05-02 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8180 <cagney@redhat.com> change.
8181 * gdbarch.c: Regenerate.
8182
8183 2002-05-02 Andrew Cagney <cagney@redhat.com>
8184
8185 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8186 before probing for a new one. Detect errorenous gdbarch_init
8187 functions.
8188 * gdbarch.c: Regenerate.
8189
8190 2002-05-01 Andrew Cagney <cagney@redhat.com>
8191
8192 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8193 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8194 * config/v850/tm-v850.h: Ditto. Update copyright.
8195
8196 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8197
8198 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8199 current_gdbarch.
8200
8201 2002-04-30 Michael Snyder <msnyder@redhat.com>
8202
8203 * arm-tdep.c: Whitespace clean-ups.
8204 (arm_skip_prologue): Fix thinko; two lines
8205 should have been removed as part of 4/24 change.
8206
8207 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8208
8209 * rs6000-tdep.c: Added comment describing how fpscr register
8210 numbers were chosen.
8211
8212 2002-04-30 Michael Snyder <msnyder@redhat.com>
8213
8214 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8215
8216 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8217
8218 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8219 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8220 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8221
8222 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8223
8224 From Louis Hamilton <hamilton@redhat.com>:
8225 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8226 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8227 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8228 not bfd-private xcoff data, to determine wordsize.
8229 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8230
8231 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8232
8233 GDB 5.2 released from 5.2 branch.
8234
8235 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8236
8237 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8238 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8239 (x86_64_register_info_table): Added comments with register numbers.
8240
8241 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8242
8243 * rs6000-tdep.c (rs6000_extract_return_value,
8244 rs6000_store_return_value): Handle returning vectors.
8245 (rs6000_gdbarch_init): Use
8246 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8247 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8248 New function.
8249 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8250 vectors.
8251 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8252 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8253
8254 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8255
8256 * hpread.c (hpread_psymtab_to_symtab_1,
8257 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8258 with fprintf_unfiltered (gdb_stderr,...).
8259
8260 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8261
8262 * remote-array.c (printf_monitor, write_monitor,
8263 array_insert_breakpoint, array_remove_breakpoint ):
8264 Replace fprintf (stderr,...
8265 with fprintf_unfiltered (gdb_stderr,....
8266 * remote-es.c: Likewise.
8267 * remote-os9k.c: Likewise.
8268 * remote-st.c: Likewise.
8269
8270 2002-04-28 Andreas Schwab <schwab@suse.de>
8271
8272 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8273 linux-proc.o and gcore.o.
8274
8275 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8276
8277 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8278 code without frame pointers.
8279
8280 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8281
8282 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8283 ON_STACK is needed.
8284
8285 2002-04-26 Ben Elliston <bje@redhat.com>
8286
8287 * target.c (do_xfer_memory): Correct reference to the new option
8288 "trust-readonly-sections".
8289
8290 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8291
8292 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8293 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8294 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8295 vectors.
8296 (read_array_type): Record the fact that this array type is really a
8297 vector (i.e. are passed in by value).
8298
8299 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8300
8301 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8302 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8303 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8304 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8305 * alpha-linux-tdep.c: Include frame.h.
8306 (alpha_linux_sigcontext_addr): New function.
8307 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8308 alpha_linux_sigcontext_addr.
8309 * alpha-osf1-tdep.c: Include gdbcore.h.
8310 (alpha_osf1_sigcontext_addr): New function.
8311 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8312 alpha_osf1_sigcontext_addr.
8313 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8314 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8315
8316 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8317
8318 * stack.c (selected_frame_level):
8319 (select_frame): Do not set selected_frame_level.
8320 * frame.h (selected_frame_level): Delete declaration.
8321
8322 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8323
8324 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8325 convert_from_func_ptr-addr when AIX / PowerOpen.
8326
8327 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8328
8329 * valops.c (hand_function_call): Call
8330 generic_save_call_dummy_addr.
8331 * frame.h (generic_save_call_dummy_addr): Declare.
8332 * blockframe.c (struct dummy_frame): Add fields call_lo and
8333 call_hi.
8334 (generic_find_dummy_frame): Check for PC in range call_lo to
8335 call_hi instead of entry_point_address.
8336 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8337 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8338 (generic_save_call_dummy_addr): New function.
8339
8340 2002-04-24 David S. Miller <davem@redhat.com>
8341
8342 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8343 sparc_skip_prologue.
8344 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8345 information to find prologue when possible.
8346 (sparc_prologue_frameless_p): Call examine_prologue directly.
8347 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8348 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8349 second argument.
8350 (SKIP_PROLOGUE): Likewise.
8351
8352 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8355 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8356 indicate that the condition it was testing is always true.
8357 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8358 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8359 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8360
8361 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8362
8363 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8364 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8365 tdep->jb_pc and tdep->jb_elt_size.
8366 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8367 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8368 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8369 * alpha-nat.c (get_longjmp_target): Remove.
8370 (JB_ELEMENT_SIZE): Ditto.
8371 (JB_PC): Ditto.
8372 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8373 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8374 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8375 to alpha_get_longjmp_target.
8376 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8377 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8378 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8379
8380 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8381
8382 * README: Update to GDB 5.2.
8383
8384 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8385
8386 * gdbarch.sh (LC_ALL): Set to `c'.
8387
8388 2002-04-25 Theodore A. Roth <troth@verinet.com>
8389
8390 * avr-tdep.c: Ran through gdb_indent.sh.
8391
8392 2002-04-25 Theodore A. Roth <troth@verinet.com>
8393
8394 * MAINTAINERS: Add myself as AVR maintainer.
8395 * NEWS: Note new target avr.
8396
8397 2002-04-25 Theodore A. Roth <troth@verinet.com>
8398
8399 * Makefile.in: Add support for AVR target.
8400 * configure.tgt: Add support for AVR target.
8401 * avr-tdep.c: New file
8402 * config/avr/avr.mt: New file.
8403
8404 2002-04-25 Theodore A. Roth <troth@verinet.com>
8405
8406 * MAINTAINERS: Add myself to write-after-approval.
8407
8408 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8409
8410 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8411 with fprintf_unfiltered (gdb_stderr,....
8412
8413 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8414
8415 Fix PR gdb/508.
8416 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8417
8418 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8419
8420 * p-exp.y: Also use new prev_lexptr variable
8421 to improve error reporting. Based on Michael Snyder
8422 2002-04-24 dated patch to c-exp.y.
8423
8424 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8425
8426 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8427 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8428 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8429 to 0.
8430 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8431 and struct value.
8432 (FUNCTION_START_OFFSET): Remove.
8433 (BREAKPOINT): Ditto.
8434
8435 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8436
8437 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8438 * NEWS: Ditto.
8439
8440 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8441
8442 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8443 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8444 alpha_linux_pc_in_sigtramp.
8445 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8446 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8447 alpha_osf1_pc_in_sigtramp.
8448 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8449 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8450 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8451 alphafbsd_pc_in_sigtramp.
8452 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8453 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8454 alphanbsd_pc_in_sigtramp.
8455 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8456 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8457
8458 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8459
8460 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8461
8462 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8463
8464 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8465 alphanbsd-tdep.c.
8466 (alphanbsd-nat.o): New dependency list.
8467 (alphanbsd-tdep.o): Ditto.
8468 * NEWS: Note new native NetBSD/alpha configuration.
8469 * alphanbsd-nat.c: New file.
8470 * alphanbsd-tdep.c: Ditto.
8471 * configure.host (alpha*-*-netbsd*): New host.
8472 * configure.tgt (alpha*-*-netbsd*): New target.
8473 * config/alpha/nbsd.mh: New file.
8474 * config/alpha/nbsd.mt: Ditto.
8475 * config/alpha/nm-nbsd.h: Ditto.
8476 * config/alpha/tm-nbsd.h: Ditto.
8477
8478 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8479
8480 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8481 (alpha-osf1-tdep.o): New dependency list.
8482 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8483 and skip_sigtramp_frame members.
8484 * alpha-linux-tdep.c: Include gdbcore.h.
8485 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8486 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8487 * alpha-osf1-tdep.c: New file.
8488 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8489 alpha-osf1-dep.c.
8490 (alpha_frame_past_sigtramp_frame): New function.
8491 (alpha_dynamic_sigtramp_offset): Ditto.
8492 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8493 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8494 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8495 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8496 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8497 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8498 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8499 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8500 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8501 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8502 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8503 to find_solib_trampoline_target.
8504 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8505 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8506 (SKIP_TRAMPOLINE_CODE): Remove.
8507 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8508 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8509 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8510 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8511 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8512 (PROC_SIGTRAMP_MAGIC): Ditto.
8513 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8514 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8515 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8516 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8517 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8518
8519 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8520
8521 * NEWS: Note that Alpha targets are now multi-arch.
8522
8523 2002-04-24 Michael Snyder <msnyder@redhat.com>
8524
8525 * parser-defs.h (prev_lexptr): New external variable.
8526 * parse.c (parse_exp_1): Set prev_lexptr to null before
8527 calling the language-specific parser.
8528 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8529 (yyerror): Use prev_lexptr in error reporting.
8530
8531 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8532
8533 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8534 * gregset.h: If FILL_FPXREGSET is defined, provide
8535 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8536 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8537 is defined, call fill_fpxregset.
8538
8539 2002-04-24 Roland McGrath <roland@frob.com>
8540
8541 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8542 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8543 (supply_gregset, supply_fpregset): New functions.
8544
8545 * gnu-nat.c (gnu_find_memory_regions): New function.
8546 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8547 (gnu_xfer_memory): Add a cast.
8548
8549 2002-04-24 Michael Snyder <msnyder@redhat.com>
8550
8551 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8552 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8553 of argument regs ("str r(0123), [r11, #-nn"]).
8554 (arm_skip_prologue): Better handling for frameless functions.
8555 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8556 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8557
8558 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8559
8560 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8561 NUM_PSEUDO_REGS can be used.
8562
8563 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8564
8565 * arch-utils.h: Update copyright.
8566
8567 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8568 * gdbarch.h, gdbarch.c: Re-generate.
8569
8570 * inferior.h (IN_SIGTRAMP): Delete definition.
8571 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8572 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8573
8574 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8575 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8576 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8577 (find_proc_framesize): Ditto.
8578 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8579 (alpha_init_extra_frame_info): Ditto.
8580 * infrun.c (handle_inferior_event): Ditto.
8581 (handle_inferior_event): Ditto.
8582 (check_sigtramp2): Ditto.
8583 * blockframe.c (create_new_frame): Ditto.
8584 (get_prev_frame): Ditto.
8585 * ppc-linux-tdep.c: Update comments.
8586 * i386-linux-tdep.c: Update comments.
8587 * breakpoint.c (bpstat_what): Update comment.
8588
8589 2002-04-24 David S. Miller <davem@redhat.com>
8590
8591 * i960-tdep.c (register_in_window_p): New function.
8592 (i960_find_saved_register): Use it instead of
8593 REGISTER_IN_WINDOW_P.
8594 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8595
8596 * symtab.h (find_stab_function_addr): Kill extern.
8597 * minsyms.c (find_stab_function_addr): Remove from here...
8598 * dbxread.c: ... to here, and mark it static.
8599
8600 2002-04-20 David S. Miller <davem@redhat.com>
8601
8602 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8603 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8604
8605 2002-04-21 David S. Miller <davem@redhat.com>
8606
8607 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8608 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8609 (vx_write_register): Likewise.
8610
8611 2002-04-23 J. Brobecker <brobecker@gnat.com>
8612
8613 * source.c (is_regular_file): New function.
8614 (openp): Check wether file to open is a regular file
8615 to avoid opening directories.
8616
8617 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8618
8619 * findvar.c (extract_signed_integer): Cast printf argument
8620 to suppress format warning.
8621 (extract_unsigned_integer): Likewise.
8622 * infcmd.c (registers_info): Likewise.
8623 * top.c (get_prompt_1): Likewise.
8624 * valops.c (value_assign): Likewise.
8625 * valprint.c (print_decimal): Likewise.
8626
8627 2002-04-22 H.J. Lu (hjl@gnu.org)
8628
8629 * c-exp.y (typebase): Support
8630
8631 [long|long long|short] [signed|unsigned] [int|]
8632
8633 and
8634
8635 signed [long|long long|short] int
8636
8637 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8638
8639 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8640 and vax-tdep.h.
8641 * vax-tdep.h: New file.
8642 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8643 Make several routines static.
8644 (vax_get_saved_register): New function.
8645 (vax_gdbarch_init): New function.
8646 (_initialize_vax_tdep): Register vax_gdbarch_init.
8647 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8648 Remove macros now under the control of gdbarch.
8649
8650 2002-04-22 Michael Snyder <msnyder@redhat.com>
8651
8652 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8653 Some whitespace and coding standards tweaks.
8654
8655 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8656
8657 * vax-tdep.c: Include regcache.h.
8658 (vax_call_dummy_words): New.
8659 (sizeof_vax_call_dummy_words): New.
8660 (vax_fix_call_dummy): New function.
8661 (vax_saved_pc_after_call): Ditto.
8662 * config/vax/tm-vax.h: Don't include regcache.h.
8663 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8664 (CALL_DUMMY): Remove.
8665 (CALL_DUMMY_WORDS): Define.
8666 (SIZEOF_CALL_DUMMY_WORDS): Define.
8667 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8668
8669 2002-04-18 Michael Snyder <msnyder@redhat.com>
8670
8671 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8672
8673 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8674
8675 * vax-tdep.c (vax_frame_chain): New function.
8676 (vax_push_dummy_frame): Ditto.
8677 (vax_pop_frame): Ditto.
8678 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8679 (FRAMELESS_FUNCTION_INVOCATION): Use
8680 generic_frameless_function_invocation_not.
8681 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8682 (POP_FRAME): Use vax_pop_frame.
8683
8684 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8685
8686 * vax-tdep.c (vax_store_struct_return): New function.
8687 (vax_extract_return_value): Ditto.
8688 (vax_store_return_value): Ditto.
8689 (vax_extract_struct_value_address): Ditto.
8690 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8691 vax_store_struct_return.
8692 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8693 (STORE_RETURN_VALUE): Use vax_store_return_value.
8694 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8695
8696 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8697
8698 * vax-tdep.c (vax_frame_saved_pc): New function.
8699 (vax_frame_args_address_correct): Ditto.
8700 (vax_frame_args_address): Ditto.
8701 (vax_frame_locals_address): Ditto.
8702 (vax_frame_num_args): Move code to be in proximity to
8703 other frame-related functions.
8704 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8705 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8706 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8707 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8708 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8709
8710 2002-04-22 H.J. Lu (hjl@gnu.org)
8711
8712 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8713 includedir.
8714
8715 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8716
8717 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8718 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8719 (FRAME_INIT_SAVED_REGS): New macro.
8720
8721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8724
8725 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8726
8727 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8728 where needed.
8729 (fetch_osf_core_registers): Likewise.
8730 (supply_gregset): Likewise.
8731
8732 2002-04-22 J. Brobecker <brobecker@gnat.com>
8733
8734 * symfile.h (get_section_index): Define.
8735 * symfile.c (get_section_index): New function.
8736 * mdebugread.c (SC_IS_SBSS): New macro.
8737 (SC_IS_BSS): Return true for the scBss storage class only, as
8738 the scSBss storage class refers to the .sbss section.
8739 (parse_partial_symbols): Discard the symbols which associated
8740 section does not exist.
8741 Make sure to use the .sbss section index for symbols which
8742 storage class is scBss, rather than using the .bss section index.
8743
8744 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8745
8746 * vax-tdep.c: Update copyright years.
8747 (vax_register_name): New function.
8748 (vax_register_byte): Ditto.
8749 (vax_register_raw_size): Ditto.
8750 (vax_register_virtual_size): Ditto.
8751 (vax_register_virtual_type): Ditto.
8752 * config/vax/tm-vax.h: Update copyright years.
8753 (REGISTER_NAMES): Remove.
8754 (REGISTER_NAME): Define.
8755 (REGISTER_BYTE): Use vax_register_byte.
8756 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8757 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8758 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8759
8760 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8761
8762 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8763 declaration
8764 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8765
8766 2002-04-21 David S. Miller <davem@redhat.com>
8767
8768 * arch-utils.c (generic_prologue_frameless_p): Kill
8769 SKIP_PROLOGUE_FRAMELESS_P code.
8770 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8771 references.
8772 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8773 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8774 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8775 references.
8776 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8777 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8778 (sparc_gdbarch_init): Pass it to
8779 set_gdbarch_prologue_frameless_p.
8780
8781 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8782
8783 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8784 (alphabsd-nat.o): New dependency list.
8785
8786 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8787
8788 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8789 alphafbsd-tdep.c.
8790 (alpha-linux-tdep.o): New dependency list.
8791 (alphafbsd-tdep.o): Likewise.
8792
8793 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8794
8795 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8796 to here...
8797 * alpha-tdep.c: ...from here.
8798 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8799
8800 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8801
8802 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8803 prototype from here...
8804 * alpha-tdep.h: ...to here.
8805
8806 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8807
8808 * frame.h (selected_frame_level): Document as deprecated.
8809 (frame_relative_level): Declare.
8810 * stack.c (frame_relative_level): New function.
8811 (selected_frame_level): Document as deprecated.
8812 (select_frame): Do not set the selected_frame_level.
8813
8814 * stack.c (frame_info, record_selected_frame): Update.
8815 (frame_command, current_frame_command): Update.
8816 (up_silently_base, up_command, down_silently_base): Update.
8817 (down_command): Update.
8818 * inflow.c (kill_command): Update.
8819 * tracepoint.c (finish_tfind_command): Update.
8820 * corelow.c (core_open): Update.
8821 * thread.c (info_threads_command): Update.
8822 (do_captured_thread_select): Update.
8823 * infcmd.c (finish_command): Update.
8824 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8825
8826 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8827
8828 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8829
8830 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8831
8832 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8833 type const.
8834
8835 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * alphafbsd-tdep.c: Update copyright years. Include
8838 alpha-tdep.h.
8839 (alphafbsd_use_struct_convention): Make static.
8840 (alphafbsd_init_abi): New function.
8841 (_initialize_alphafbsd_tdep): New function.
8842 * config/alpha/tm-fbsd.h: Update copyright years.
8843 (USE_STRUCT_CONVENTION): Remove.
8844
8845 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8846
8847 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8848 an Alpha ABI variant.
8849 (alpha_abi_handler_list): Declare.
8850 (alpha_gdbarch_register_os_abi): New function.
8851 (alpha_gdbarch_init): Give registered ABI variant handlers a
8852 chance to tweak the gdbarch once we have set up defaults.
8853 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8854
8855 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8856
8857 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8858 to standard_coerce_float_to_double.
8859 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8860
8861 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8862
8863 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8864 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8865 from gdbarch_tdep rather than a constant.
8866 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8867 the default text address for all Alpha Unix ABIs.
8868 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8869 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8870
8871 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8872
8873 * alpha-tdep.h: New file. Includes several Alpha target constants
8874 taken from...
8875 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8876 let gdbarch deal with.
8877 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8878 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8879 to dependency list.
8880 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8881 Alpha target register names.
8882 * alphabsd-nat.c: Likewise.
8883 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8884 Alpha target register names. Make serveral routines static.
8885 (alpha_get_saved_register): New function.
8886 (alpha_abi_names): New.
8887 (process_note_abi_tag_sections): New function.
8888 (get_elfosabi): New function.
8889 (alpha_gdbarch_init): New function.
8890 (alpha_dump_tdep): New function.
8891 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8892
8893 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8894
8895 * frame.c (find_saved_register): Delete #ifdef
8896 HAVE_REGISTER_WINDOWS code.
8897 * config/sparc/tm-sparc.h: Update comments.
8898 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8899
8900 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8901
8902 * i960-tdep.c (i960_find_saved_register): New function.
8903 (i960_get_saved_register): New function.
8904 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8905 (i960_get_saved_register): Declare.
8906 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8907
8908 2002-04-20 David S. Miller <davem@redhat.com>
8909
8910 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8911
8912 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8913
8914 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8915 instead of NUM_PSEUDO_REGS.
8916
8917 2002-04-20 David S. Miller <davem@redhat.com>
8918
8919 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8920 GDB_MULTI_ARCH_PARTIAL
8921 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8922 define, let tm-sp64.h do it.
8923
8924 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8925
8926 * frame.c (find_saved_register): Avoid a NULL pointer
8927 dereference and actually walk the frame list.
8928
8929 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8930
8931 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8932 sorted in most most-recent-used order. Document.
8933 * gdbarch.h, gdbarch.c: Regenerate.
8934
8935 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8936
8937 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8938 instead of ->prev.
8939 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8940 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8941 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8942 instead of ->prev.
8943
8944 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8945
8946 Fix PR gdb/471.
8947 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8948 (build_builtin_type_vec128): Ditto.
8949 (append_composite_type_field): Fix calculation of type length in
8950 union case.
8951
8952 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8953
8954 * config/djgpp/README: Update.
8955
8956 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8957 compiler warnings.
8958
8959 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8962 (alpha_setup_arbitrary_frame): ...to this.
8963 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8964 for alpha_setup_arbitrary_frame.
8965
8966 2002-04-18 Andrew Cagney <cagney@redhat.com>
8967
8968 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8969 * gdbarch.h, gdbarch.c: Regenerate.
8970
8971 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8972 * target.h (memory_breakpoint_from_pc): Update declaration.
8973 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8974
8975 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8976 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8977 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8978 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8979 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8980 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8981 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8982 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8983 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8984 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8985 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8986 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8987
8988 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8989 const pointer.
8990 * monitor.c (monitor_insert_breakpoint): Ditto.
8991 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8992
8993 * config/mcore/tm-mcore.h: Update copyright.
8994 * mem-break.c: Ditto.
8995 * xstormy16-tdep.c: Ditto.
8996
8997 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8998
8999 * p-exp.y: Add precedence rule for '^' token.
9000 This removes the shift/reduce conflicts.
9001 Remove the comment concerning these shift/reduce conflicts.
9002
9003 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9004
9005 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9006 (registers_powerpc_nofp): New register set for processors
9007 without floating point unit.
9008
9009 2002-04-18 David S. Miller <davem@redhat.com>
9010
9011 * MAINTAINERS: Add myself to write-after-approval.
9012
9013 2002-04-17 Michael Snyder <msnyder@redhat.com>
9014
9015 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9016
9017 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9018
9019 * rs6000-tdep.c (frame_initial_stack_address): Use
9020 frame_register_read to read the alloca_reg.
9021
9022 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9023
9024 * frame.c (find_saved_register): Find saved registers in the next
9025 not prev frame.
9026 Fix PR gdb/365.
9027
9028 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9029
9030 * gdbarch.sh (LANG): Set to ``c''.
9031
9032 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9033
9034 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9035
9036 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9037
9038 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9039 Update copyright.
9040
9041 * hpread.c (hpread_get_lntt): Add declaration.
9042 Also fix PR gdb/391.
9043
9044 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9045
9046 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9047 * aclocal.m4, configure: Re-generate.
9048 Fix PR gdb/391.
9049
9050 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9051
9052 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9053 instead of tm_print_insn.
9054
9055 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9056
9057 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9058
9059 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9060
9061 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9062 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9063 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9064
9065 2002-04-12 Don Howard <dhoward@redhat.com>
9066
9067 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9068 max_user_call_depth.
9069 (init_cmd_lists): Initialize the new value;
9070 * cli/cli-script.c (execute_user_command): Limit the call depth of
9071 user defined commands. This avoids a core-dump when user commands
9072 are infinitly recursive.
9073
9074 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9075
9076 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9077 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9078 from tdep struct instead of DEFAULT_LR_SAVE.
9079 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9080 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9081 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9082
9083 2002-04-12 Michael Snyder <msnyder@redhat.com>
9084
9085 * Remote.c: Spelling fix.
9086 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9087 If no symbol found for "sbrk", try "_sbrk".
9088 (make_output_phdrs): Use bfd_section_name.
9089 (gcore_copy_callback): Use bfd_section_name.
9090 * eval.c: Indentation fix-ups.
9091 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9092 in case it gets applied to an address that is already
9093 in the instruction space.
9094 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9095 * symfile.c: Fix indentation, long lines.
9096 * source.c: White space fix-up.
9097
9098 2002-04-12 Andrew Cagney <cagney@redhat.com>
9099
9100 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9101 * frame.c (frame_register_read): New function. Return non-zero on
9102 success.
9103 (read_relative_register_raw_bytes_for_frame): Delete.
9104 (read_relative_register_raw_bytes): Delete.
9105 * frame.h (frame_register_read): Declare.
9106 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9107 * sh-tdep.c: Ditto.
9108 * infcmd.c (do_registers_info): Ditto.
9109 * hppa-tdep.c: Ditto.
9110 * rs6000-tdep.c: Ditto.
9111 * h8500-tdep.c: Ditto.
9112 * mips-tdep.c: Ditto.
9113 * h8300-tdep.c: Ditto.
9114 * z8k-tdep.c: Ditto.
9115
9116 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9117
9118 From Jimi X <jimix@watson.ibm.com>:
9119 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9120 64-bit SysV ABI.
9121
9122 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9123
9124 From Jimi X <jimix@watson.ibm.com>:
9125 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9126 bfd info.
9127
9128 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9129
9130 From Jimi X <jimix@watson.ibm.com>:
9131 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9132 register sets for these processor variants.
9133
9134 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9135
9136 * regformats/reg-ppc.dat: Support FPSCR.
9137
9138 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9139
9140 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9141 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9142 Add fpscr as an invalid/unfetchable register.
9143 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9144 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9145 (fill_fpregset): Add support for register fpscr.
9146 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9147 (fill_gregset): Account for the fact that register ``mq'' might
9148 not exist.
9149 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9150 (registers_power): Add fpscr to register set at slot 71.
9151 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9152 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9153
9154 2002-04-11 Michael Snyder <msnyder@redhat.com>
9155
9156 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9157 * configure: Regenerate.
9158 * config.in: Regenerate.
9159 * acconfig.h: Add define for _SYSCALL32.
9160 * core-sol2.c: Remove #define _SYSCALL32.
9161 * solib-legacy.c: Remove #define _SYSCALL32.
9162
9163 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9164
9165 * stack.c (select_frame): Cleanup internal error message, do not
9166 use %p.
9167
9168 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9169
9170 * stack.c (select_frame): Check that selected_frame and the
9171 specified level are as expected.
9172 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9173 Update copyright.
9174 * frame.h (struct frame_info): Add field `level'. Update
9175 copyright.
9176 Work-in-progress PR gdb/464.
9177
9178 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9179
9180 * maint.c (maint_print_section_info): Rename print_section_info.
9181 (print_bfd_section_info, print_objfile_section_info): Update.
9182 * inferior.h (struct gdbarch): Add opaque declaration.
9183 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9184 * gdbarch.h: Regenerate.
9185
9186 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9187
9188 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9189 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9190 (kernel_u_size): Added.
9191 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9192 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9193
9194 2002-04-04 Jim Ingham <jingham@apple.com>
9195
9196 * valarith.c (find_size_for_pointer_math): New function, either returns
9197 the size for a pointer's target, returns 1 for void *, or errors for
9198 incomplete types.
9199 (value_add, value_sub): use find_size_for_pointer_math.
9200
9201 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * linux-low.c (linux_look_up_symbols): New hook.
9204 (linux_target_ops): Add linux_look_up_symbols.
9205 * remote-utils.c (decode_address): New function.
9206 (look_up_one_symbol): New function.
9207 * server.c (handle_query): Call target look_up_symbols hook.
9208 * server.h (look_up_one_symbol): Add prototype.
9209 * target.h (struct target_ops): Add look_up_symbols hook.
9210
9211 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9212
9213 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9214 override FP_REGNUM with frame->fp. Update copyright.
9215 * parse.c (num_std_regs, std_regs): Delete.
9216 (target_map_name_to_register): Do not search std_regs. Update
9217 function description.
9218 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9219 declarations. Update copyright.
9220 Fix PR gdb/251.
9221
9222 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9225 after the last symbol in a block.
9226
9227 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9228
9229 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9230 is non zero as a found symbol.
9231
9232 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9233
9234 * findvar.c: Include "builtin-regs.h".
9235 (value_of_register): Call value_of_builtin_reg when applicable.
9236 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9237 (target_map_name_to_register): Call
9238 builtin_reg_map_name_to_regnum.
9239 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9240 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9241 (builtin_regs_h): Define.
9242 (builtin-regs.o): New target.
9243 (findvar.o): Add $(builtin_regs_h).
9244 * builtin-regs.c, builtin-regs.h: New files.
9245 * std-regs.c: New file.
9246 Partial fix for PR gdb/251.
9247
9248 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9249
9250 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9251 it's no longer required.
9252
9253 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9254
9255 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9256
9257 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9258
9259 From Jimi X <jimix@watson.ibm.com>:
9260 * rs6000-tdep.c (rs6000_software_single_step): Use
9261 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9262 and size. Use target_insert_breakpoint() and
9263 target_remove_breakpoint() to insert and remove breakpoints
9264 instead of explicit memory reads and writes.
9265
9266 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9267
9268 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9269 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9270 ELF_OBJECT_FORMAT ifdef.
9271
9272 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9273
9274 From Jimi X <jimix@watson.ibm.com>:
9275 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9276
9277 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9278
9279 From Jimi X <jimix@watson.ibm.com>:
9280 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9281 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9282
9283 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9284
9285 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9286 s/asprintf/xasprintf/.
9287 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9288
9289 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9290
9291 I believe Jeff Law denies responsability for this one:
9292 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9293 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9294 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9295 Work-around for PR gdb/366.
9296
9297 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9298
9299 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9300 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9301 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9302
9303 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9304
9305 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9306 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9307 information.
9308
9309 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9310
9311 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9312 maintainer.
9313
9314 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9315
9316 * README (Reporting Bugs in GDB): Document the bug web page as the
9317 prefered way of submitting bugs.
9318 Fix PR gdb/402.
9319
9320 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9321
9322 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9323 -1. Update comment.
9324 * gdbarch.h, gdbarch.c: Re-generate.
9325
9326 2002-04-07 Andreas Schwab <schwab@suse.de>
9327
9328 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9329 buffer to regcache_collect.
9330
9331 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9332
9333 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9334 * gdbarch.c, gdbarch.h: Re-generate.
9335
9336 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9337
9338 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9339 declaration. Fix -Werror.
9340
9341 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9342
9343 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9344 * gdbarch.c: Regenerate.
9345
9346 2002-04-05 Michael Snyder <msnyder@redhat.com>
9347
9348 * breakpoint.c (clear_command): Rewrite middle section to
9349 combine two loops with identical control conditions.
9350 Add a cleanup to eliminate a memory leak.
9351 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9352
9353 2002-04-05 H.J. Lu (hjl@gnu.org)
9354
9355 * solib-svr4.c (bkpt_names): Add "__start".
9356
9357 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9358
9359 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9360 as test for 64 bit target.
9361
9362 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9363
9364 * h8500-tdep.c (h8500_write_fp): Delete function.
9365 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9366 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9367 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9369 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9370 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9371 (s390_write_fp):
9372 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9373 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9374 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9375 (d10v_write_fp): Delete function.
9376 * inferior.h (write_fp, generic_target_write_fp): Delete
9377 declarations.
9378 * regcache.c (generic_target_write_fp): Delete function.
9379 (write_fp): Delete function.
9380 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9381 * gdbarch.h, gdbarch.c: Regenerate.
9382 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9383 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9384 (sparc64_write_fp): Delete declaration.
9385 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9386 (h8500_write_fp): Delete declaration.
9387
9388 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9389
9390 * sparc-tdep.c (sparc64_write_fp): Delete.
9391 (sparc_push_dummy_frame): Replace write_fp call with code to store
9392 the FP directly.
9393 (sparc_gdbarch_init): Do not initialize write_fp.
9394
9395 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9396
9397 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9398 clause.
9399
9400 2002-03-29 Jim Blandy <jimb@redhat.com>
9401
9402 * stack.c (get_selected_block): Add new argument `addr_in_block',
9403 used to return the exact code address we used to select the block,
9404 not just the block.
9405 * blockframe.c (get_frame_block, get_current_block): Same.
9406 * frame.h (get_frame_block, get_current_block,
9407 get_selected_block): Update declarations.
9408 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9409 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9410
9411 2002-04-05 Michael Snyder <msnyder@redhat.com>
9412
9413 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9414 warning message.
9415
9416 2002-04-05 J. Brobecker <brobecker@gnat.com>
9417
9418 * utils.c (xfullpath): New function.
9419 * defs.h (xfullpath): Add declaration.
9420 * source.c (openp): Use xfullpath in place of gdb_realpath to
9421 avoid resolving the basename part of filenames when the
9422 associated file is a symbolic link. This fixes a potential
9423 inconsistency between the filenames known to GDB and the
9424 filenames it prints in the annotations.
9425 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9426 to be able to match a filename with either the real filename, or
9427 the name of any symbolic link to this file.
9428 (lookup_partial_symtab): Ditto.
9429
9430 2002-04-04 Michael Snyder <msnyder@redhat.com>
9431
9432 * breakpoint.c: Add support for hardware breakpoints in overlays.
9433 (overlay_events_enabled): New state variable.
9434 (insert_breakpoints): Use overlay_events_enabled to decide
9435 whether to attempt to set a breakpoint at the overlay load addr.
9436 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9437 (remove_breakpoint): Use overlay_events_enabled to decide
9438 whether breakpoints need to be removed from overlay load addr.
9439 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9440 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9441 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9442 disable_overlay_breakpoints): Update overlay_events_enabled.
9443
9444 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * dwarf2read.c (struct function_range): New.
9447 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9448 (check_cu_functions): New.
9449 (read_file_scope): Initialize global function lists.
9450 Call dwarf_decode_line after processing children.
9451 (read_func_scope): Add to global function list.
9452 (dwarf_decode_lines): Call check_cu_functions everywhere
9453 record_line is called. Call record_line with a linenumber
9454 of 0 to mark sequence ends.
9455
9456 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9457
9458 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9459 change sync with glibc.
9460
9461 2002-04-03 Jim Blandy <jimb@redhat.com>
9462
9463 * configure.in: Call AC_C_INLINE.
9464 * configure: Regenerated.
9465
9466 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9467
9468 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9469 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9470
9471 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9472
9473 * NEWS: Mention gcore support on FreeBSD/i386.
9474
9475 * fbsd-proc.c: New file.
9476 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9477 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9478
9479 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9480 while statement.
9481
9482 2002-03-29 Jim Blandy <jimb@redhat.com>
9483
9484 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9485 unescaped newlines in string literals, but newer ones don't. So
9486 escape them.
9487
9488 2002-03-26 Michael Snyder <msnyder@redhat.com>
9489 Andrew Cagney <cagney@redhat.com>
9490
9491 * cli/cli-dump.c: New file. Dump memory to file,
9492 restore file to memory.
9493 * cli/cli-dump.h: New file.
9494 * Makefile.in: Add rules, dependencies for cli-dump.o.
9495 * NEWS: Mention new commands.
9496
9497 2002-03-28 Michael Snyder <msnyder@redhat.com>
9498
9499 * symfile.c (symbol_file_add): Move test for null symbols to later.
9500
9501 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9502
9503 From veksler at il.ibm.com:
9504 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9505 the xstrduped original path.
9506 Fix PR gdb/417.
9507
9508 2002-03-27 Michael Snyder <msnyder@redhat.com>
9509
9510 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9511 * infcmd.c (_initialize_infcmd): Ditto.
9512 * language.c (_initialize_language): Ditto.
9513 * symfile.c (_initialize_symfile): Ditto.
9514 * top.c (_init_main): Ditto.
9515 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9516
9517 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9518
9519 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9520 vector registers handling.
9521 (skip_prologue): Handle new AltiVec instructions. Fill in new
9522 fields of frame data.
9523 (frame_get_saved_regs): Fill in information for AltiVec registers.
9524
9525 2002-03-27 Jim Blandy <jimb@redhat.com>
9526
9527 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9528 a function; leave this macro here to invoke that function.
9529 (symbol_init_mangled_name): Declaration for that function.
9530 * symtab.c (symbol_init_mangled_name): New function.
9531
9532 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9533
9534 * valarith.c: Replace strerror with safe_strerror.
9535 * tracepoint.c: Ditto.
9536 * lin-lwp.c: Ditto.
9537 * go32-nat.c: Ditto.
9538 * inflow.c: Ditto.
9539 * gnu-nat.c: Ditto.
9540
9541 2002-03-27 Andreas Schwab <schwab@suse.de>
9542
9543 * event-top.c (command_line_handler): Remove useless if.
9544
9545 2002-03-27 Andreas Jaeger <aj@suse.de>
9546
9547 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9548 comment.
9549
9550 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9551
9552 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9553 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9554 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9555 (x86_64_linux_dr_get_status, supply_gregset),
9556 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9557 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9558 (x86_64_register_info_table): Add.
9559 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9560 (x86_64_register_raw_size, x86_64_register_virtual_type),
9561 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9562 general x86_64_register_info_table.
9563 (i386_gdbarch_init): gdbarch_register_bytes is now set
9564 dynamicaly during initialization.
9565 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9566 * gdbserver/linux-x86-64-low.c: Ditto.
9567
9568 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9569
9570 * gdbserver/server.c (main): Call target_signal_to_host_p
9571 and target_signal_to_host on signals received from the remote.
9572 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9573 target_signal_from_host on signals sent to the remote.
9574 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9575 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9576
9577 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * signals/signals.c: Include "server.h" in gdbserver build.
9580 (target_signal_from_name): Don't use STREQ.
9581 (_initialize_signals): Likewise. Don't include function in
9582 gdbserver build.
9583
9584 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * signals.c: Moved to...
9587 * signals/signals.c: Here.
9588 * Makefile (signals.o): Update.
9589
9590 2002-03-26 Jeff Law (law@redhat.com)
9591
9592 * somread.c (som_symtab_read): Remove some commented out code and
9593 updated related comments. Do not set the minimal symbol table to
9594 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9595 in a dynamic executable.
9596 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9597 where we are unable to find the minimal symbol for the given
9598 PC value.
9599
9600 2002-03-25 Jeff Law (law@redhat.com)
9601
9602 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9603
9604 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9605
9606 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9607
9608 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9609
9610 * command.h: Update copyright.
9611 (struct cmd_list_element): Replace definition with opaque
9612 declaration.
9613 (enum cmd_types): Document that it will eventually be moved to
9614 cli/cli-decode.h
9615 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9616 (MALLOCED_REPLACEMENT): Delete macro.
9617 * Makefile.in (cli_decode_h): Add $(command_h).
9618 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9619 * top.c: Include "cli/cli-decode.h".
9620 * completer.c: Include "cli/cli-decode.h".
9621 * maint.c: Include "cli/cli-decode.h".
9622 * cli/cli-decode.h: Include "command.h".
9623 (enum command_class): Delete.
9624 (enum cmd_types): Comment out.
9625 (enum cmd_auto_boolean): Delete.
9626 (enum var_types): Delete.
9627
9628 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9629
9630 * cli/cli-decode.c: Include "gdb_assert.h".
9631 (add_set_or_show_cmd): New static function.
9632 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9633 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9634 all fields, such as func, from the set command.
9635
9636 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9637
9638 * MAINTAINERS (sh-elf): Change warning flag to -w.
9639
9640 2002-03-23 Andrew Cagney <cagney@redhat.com>
9641
9642 * defs.h (error): Add printf format attribute.
9643 * thread-db.c (thread_from_lwp): Fix error format string.
9644 * stack.c (parse_frame_specification): Ditto.
9645 * cli/cli-decode.c (undef_cmd_error): Ditto.
9646 * scm-lang.c (scm_lookup_name): Ditto.
9647 * tracepoint.c (trace_error): Ditto.
9648 * remote-utils.c (usage): Ditto.
9649 * remote.c (compare_sections_command): Ditto.
9650 Fix PR gdb/328.
9651
9652 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9653
9654 * gdbtypes.c (append_composite_type_field): New function.
9655 (init_composite_type): New function.
9656 * gdbtypes.h (append_composite_type_field): Declare.
9657 (init_composite_type): Ditto.
9658
9659 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9660
9661 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9662 function.
9663 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9664 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9665 structure returning convention for SYSV ABI case, but not
9666 for GNU/Linux, FreeBSD, or NetBSD.
9667
9668 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9669
9670 * symtab.h (lookup_block_symbol): Add mangled_name argument
9671 to prototype.
9672
9673 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9674 with new mangled_name argument.
9675 * linespec.c (decode_line_1): Likewise.
9676 * valops (value_of_this): Likewise.
9677 * symtab.c (lookup_transparent_type): Likewise.
9678 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9679 (lookup_symbol): If we are given a mangled name, pass it down
9680 to lookup_symbol_aux.
9681 (lookup_block_symbol): If we are given a mangled name to check
9682 against, only return symbols which match it.
9683
9684 2002-03-22 Christopher Faylor <cgf@redhat.com>
9685
9686 * win32-nat.c (child_create_inferior): Check for proper shell to use
9687 here, in case the user changes it on the fly.
9688 (_initialize_inftarg): Remove shell path considerations.
9689
9690 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9691
9692 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9693 for gdbarch_max_register_raw_size and max_register_virtual_size.
9694 Adjust copyright year.
9695
9696 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9697
9698 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9699 in a function to cover the entire beginning of the function
9700 as well if it does not already.
9701
9702 2002-03-21 Tom Rix <trix@redhat.com>
9703
9704 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9705 (rs6000_ptrace64): Renamed from ptrace64.
9706
9707 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9708
9709 * gdbserver/remote-utils.c (remote_open): Don't call
9710 getprotobyname, we're all using TCP here so just use
9711 IPPROTO_TCP.
9712 * gdbserver/gdbreplay.c (remote_open): Ditto.
9713
9714 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9715
9716 * regcache.c (_initialize_regcache): No need to call
9717 build_regcache() at this time; it gets called whenever
9718 the gdbarch changes.
9719
9720 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9721
9722 * sparc-nat.c: Include sys/param.h where possible.
9723
9724 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9725
9726 Fix PR gdb/422.
9727 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9728 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9729 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9730 complex types.
9731 * stabsread.c (rs6000_builtin_type): Likewise.
9732 (read_sun_floating_type): Likewise.
9733
9734 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9735
9736 * stabsread.c (read_member_functions): Remove skip code for duplicate
9737 constructor/destructor methods. Use standard parsing for these
9738 methods and just do not chain them to the list of methods after
9739 parsing.
9740
9741 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9742
9743 * coffread.c: Remove redundant static declarations. Replace
9744 occurrences of `PTR' with `void *'.
9745 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9746 * top.h (quit_cover): Likewise.
9747 * defs.h (catch_errors): Likewise.
9748
9749 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9750
9751 * defs.h (XMALLOC): Define.
9752 * gdb-events.sh (XMALLOC): Delete macro.
9753 * gdb-events.c, gdb-events.h: Regenerate.
9754 * gdbarch.sh (XMALLOC): Delete macro.
9755 * gdbarch.c: Regenerate.
9756 * serial.c (XMALLOC): Delete macro.
9757 * ui-file.c (XMALLOC): Ditto.
9758 * ser-unix.h (XMALLOC): Ditto.
9759 * sh-tdep.c (XMALLOC): Ditto.
9760 * ui-out.c (XMALLOC): Ditto.
9761 * utils.c (XMALLOC): Ditto.
9762 * i386-tdep.c (XMALLOC): Ditto.
9763 * gdb-events.c (XMALLOC): Ditto.
9764 * d10v-tdep.c (XMALLOC): Ditto.
9765 * cli-out.c (XMALLOC): Ditto.
9766
9767 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9768 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9769 * ui-file.c, ui-out.c: Ditto.
9770
9771 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9772
9773 * command.h (struct cmd_list_element): Add field context.
9774 (set_cmd_context, get_cmd_context): Declare.
9775 * cli/cli-decode.h: Ditto.
9776 * cli/cli-decode.c (get_cmd_context): New function.
9777 (set_cmd_context): New function.
9778 (add_cmd): Initialize context.
9779 Part of fixing PR gdb/145 and PR gdb/146.
9780
9781 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9782
9783 * cli/cli-decode.c (cmd_type): New function.
9784 * command.h (cmd_type): Declare.
9785 * infrun.c (set_schedlock_func): Call function cmd_type.
9786 * kod.c (kod_set_os): Call cmd_type.
9787 * cris-tdep.c (cris_version_update): Use function cmd_type.
9788 (cris_mode_update, cris_abi_update): Ditto.
9789
9790 * command.h: (execute_cmd_post_hook): Declare.
9791 (execute_cmd_pre_hook): Declare.
9792 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9793 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9794 functions. Execute pre/post hook while ensuring that afterwords
9795 hook_in is cleared.
9796 * top.c (execute_command): Use execute_cmd_post_hook, and
9797 execute_cmd_pre_hook to execute pre/post commands.
9798 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9799 hook_stop_stub.
9800 (hook_stop_stub): Call execute_cmd_pre_hook.
9801
9802 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9803
9804 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9805 set'' and this leads to a core dump. Move xstrdup of
9806 operating_system to after check that it is not NULL.
9807
9808 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9809
9810 * kod.c (kod_set_os): Remove unnecessary check that
9811 ``command->type'' is set_cmd.
9812
9813 * valprint.c (set_input_radix): Use input_radix.
9814 (set_output_radix): Use output_radix.
9815 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9816 isn't reverted.
9817
9818 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9819
9820 * value.h (struct value): Delete field ``substring_addr''. Change
9821 aligner fields to force_doublest_align, force_longest_align,
9822 force_core_addr_align and force_pointer_aligh.
9823
9824 * value.h (struct value): Fix typo in above change.
9825
9826 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9827
9828 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9829 to fix internal_error from ``maintenance print architecture''.
9830
9831 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9832
9833 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9834 for gcc versions after gcc-2.8.1.
9835
9836 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9837
9838 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9839 for method resolution. Restore adjustment of ``this'' pointer after
9840 calling value_struct_elt, which was accidentally removed during the
9841 HP merge.
9842
9843 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9844
9845 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9846 value_of_register.
9847 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9848 get_saved_register.
9849 * value.h (value_of_register): Update.
9850
9851 2002-03-14 Richard Henderson <rth@redhat.com>
9852
9853 * configure.in: Detect declaration for canonicalize_file_name.
9854 * utils.c (canonicalize_file_name): Declare, if needed.
9855 (gdb_realpath): Prefer realpath if available and usable.
9856 * config.in, configure: Rebuild.
9857
9858 2002-03-14 Richard Henderson <rth@redhat.com>
9859
9860 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9861 a constant array bound.
9862
9863 * MAINTAINERS: Add myself to write-after-approval.
9864
9865 2002-03-14 Michael Snyder <msnyder@redhat.com>
9866
9867 * symfile.c (syms_from_objfile): Return immediately if no syms.
9868 (symbol_file_add): Return immediately if no syms.
9869 (find_sym_fns): Return immediately if no syms.
9870
9871 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9872
9873 * gdbserver/remote-util.c (remote_open): Print remote-side's
9874 IP address when remote debugging over the network.
9875
9876 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9877
9878 * config/sparc/fbsd.mh: Fix copyright.
9879 * config/sparc/fbsd.mt: Likewise.
9880
9881 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9882
9883 * MAINTAINERS: Fix typo in name of gdb warnings option.
9884 (x86-64): Fix formating so that this can be parsed by awk.
9885
9886 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9887
9888 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9889 * defs.h: Include "gdb/signals.h".
9890 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9891
9892 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9893
9894 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9895 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9896 from x86-64-tdep.h
9897
9898 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9899 Don Howard <dhoward@redhat.com>
9900
9901 * mips-tdep.c (ST0_FR): Define.
9902 (mips2_fp_compat): New function, temporarily disabled.
9903 (mips_read_fp_register_single): New function.
9904 (mips_read_fp_register_double): New function.
9905 (mips_print_register): Use them.
9906 (do_fp_register_row): Likewise.
9907
9908 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9909
9910 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9911 approval''.
9912
9913 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9914
9915 * stabsread.c (read_member_functions): Fix is_stub test for
9916 static member functions, improve comment.
9917
9918 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9919
9920 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9921 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9922 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9923 commands that set boolean values.
9924 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9925 (arm_rdi_resume): Always initialize PC.
9926 (arm_rdi_open): Don't use rslt as a boolean.
9927 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9928 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9929 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9930 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9931
9932 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9933
9934 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9935 * configure: Rebuilt.
9936
9937 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9938
9939 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9940 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9941
9942 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9943
9944 * cli/cli-decode.c (set_cmd_completer): New function.
9945 * command.h (set_cmd_completer): Declare.
9946 * cli/cli-decode.h (set_cmd_completer): Ditto.
9947
9948 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9949 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9950 * win32-nat.c (_initialize_inftarg): Ditto.
9951 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9952 * proc-api.c (_initialize_proc_api): Ditto.
9953 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9954 * source.c (_initialize_source): Ditto.
9955 * exec.c (_initialize_exec): Ditto.
9956 * solib.c (_initialize_solib): Ditto.
9957 * top.c (init_main): Ditto.
9958 * tracepoint.c (_initialize_tracepoint): Ditto.
9959 * symfile.c (_initialize_symfile): Ditto.
9960 * printcmd.c (_initialize_printcmd): Ditto.
9961 * infcmd.c (_initialize_infcmd): Ditto.
9962 * corefile.c (_initialize_core): Ditto.
9963
9964 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9965
9966 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9967
9968 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9969
9970 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9971
9972 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9973
9974 * NEWS: Update headings, 5.2 has branched.
9975
9976 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9979 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9980 (register_addr, REGISTER_RAW_SIZE): Likewise.
9981 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9982 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9983
9984 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9985
9986 * MAINTAINERS (x86-64): Add myself.
9987 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9988 changed value_ptr -> struct value *
9989
9990 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9991
9992 * configure.host (sparc64-*-freebsd): Add.
9993 * configure.tgt: Likewise.
9994 * config/sparc/fbsd.mh: New file.
9995 * config/sparc/fbsd.mt: Likewise.
9996 * config/sparc/nm-fbsd.h: Likewise.
9997 * config/sparc/tm-fbsd.h: Likewise.
9998
9999 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10000
10001 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10002 regformats/reg-s390x.dat.
10003
10004 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10005
10006 * utils.c: Add FIXME explaining true/false problem.
10007
10008 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10009
10010 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10011
10012 2002-02-28 Michael Chastain <mec@shout.net>
10013
10014 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10015
10016 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * gdbserver/linux-s390-low.c: New file.
10019 * regformats/reg-s390.dat: New file.
10020 * regformats/reg-s390x.dat: New file.
10021 * gdbserver/configure.srv: Add S/390.
10022 * gdbserver/Makefile.in: Add S/390.
10023 * configure.tgt: Enable gdbserver for S/390.
10024
10025 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10026
10027 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10028 first line of the doc string for "info dos", except at the end of
10029 the sentence, since the short help stops at the first period.
10030
10031 2002-02-28 Jason Merrill <jason@redhat.com>
10032
10033 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10034
10035 2002-02-27 Fred Fish <fnf@redhat.com>
10036
10037 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10038 comment (dumy -> dummy).
10039
10040 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10041
10042 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10043
10044 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10045
10046 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10047
10048 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * gdbserver/acconfig.h: New file.
10051 * gdbserver/i387-fp.c: New file.
10052 * gdbserver/i387-fp.h: New file.
10053 * gdbserver/linux-x86-64.c: New file.
10054 * regformats/reg-x86-64.dat: New file.
10055 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10056 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10057 * gdbserver/configure.in: Add support for regsets.
10058 * gdbserver/config.in: Regenerate.
10059 * gdbserver/configure: Regenerate.
10060 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10061 * gdbserver/linux-low.h: New file.
10062 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10063 for regsets.
10064 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10065 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10066 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10067 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10068 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10069 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10070 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10071 "i387-fp.h". Add PTRACE_GETREGS and friends.
10072 * gdbserver/regcache.c (supply_register): New function.
10073 (supply_register_by_name): New function.
10074 (collect_register): New function.
10075 (collect_register_by_name): New function.
10076
10077 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10080 (config.status): Add configure.srv dependency.
10081 (server_h): Add config.h dependency.
10082
10083 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10084
10085 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10086 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10087 * gdbserver/configure.srv: Change i386-*-linux* to use
10088 reg-i386-linux.o.
10089
10090 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10091
10092 * x86-64-tdep.c: Re-indent. Update copyright date.
10093
10094 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10095
10096 From Michal Ludvig <mludvig@suse.cz>:
10097 * x86-64-tdep.c (value.h): Delete.
10098 (gdb_assert.h): Include.
10099 (x86_64_register_convert_to_virtual,
10100 x86_64_register_convert_to_raw ): Add check which lets only
10101 floating-point values to be converted.
10102 (value_push): Delete.
10103 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10104 (i386_gdbarch_init): Number of register_bytes fixed.
10105
10106 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10107
10108 * MAINTAINERS: Add x86-64 target.
10109
10110 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10111
10112 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10113 * osfsolib.c (solib_map_sections): Ditto.
10114 * irix5-nat.c (solib_map_sections): Ditto.
10115 * corelow.c (gdb_check_format): Ditto.
10116 * symfile.c (symfile_bfd_open): Ditto.
10117 * solib.c (solib_map_sections): Ditto.
10118 Fix PR gdb/354.
10119
10120 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10121
10122 * remote.c (_initialize_remote): By default, disable ``e'' and
10123 ``E'' step out-of-range packets.
10124
10125 2002-02-26 Andreas Schwab <schwab@suse.de>
10126
10127 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10128 m68k_linux_frame_saved_pc.
10129 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10130 in_sigtramp.
10131 (SIGCONTEXT_PC_OFFSET): Remove.
10132 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10133 m68k_linux_sigtramp_saved_pc): New functions.
10134 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10135 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10136 (UCONTEXT_PC_OFFSET): Define.
10137 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10138 non-RT and RT signal trampolines.
10139
10140 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10141
10142 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10143 (TARGET_NBPG, STACK_END_ADDR): Delete
10144 (VARIABLES_INSIDE_BLOCK): Delete.
10145
10146 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10147
10148 * utils.c (perror_with_name): Make string parameter constant.
10149 (print_sys_errmsg): Ditto.
10150 (query): Ditto.
10151 * defs.h (perror_with_name): Update.
10152 (print_sys_errmsg): Update.
10153 (query): Update.
10154
10155 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10156
10157 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10158 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10159
10160 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10161
10162 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10163 if it already matches the current architecture from the exec file.
10164 Include arch-utils.h for gdbarch_info_init prototype.
10165 * Makefile.in (rs6000-nat.o): Update dependencies.
10166
10167 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10168
10169 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10170 list of exported variables.
10171
10172 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10173
10174 * gdbserver/configure.srv: New file.
10175 * gdbserver/configure.in: Use configure.srv instead
10176 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10177 from it.
10178 * gdbserver/configure: Regenerated.
10179 * gdbserver/terminal.h: New file.
10180 * gdbserver/Makefile.in: Update for configure changes. Remove
10181 more unneeded include paths.
10182
10183 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10184
10185 From wiz at danbala:
10186 * config/sparc/tm-sp64.h: Fix grammar and typos.
10187 Fix PR gdb/287.
10188
10189 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10190
10191 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10192 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10193 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10194 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10195 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10196 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10197 * s390-tdep.c: Ditto.
10198 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10199 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10200 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10201 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10202 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10203 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10204 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10205 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10206 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10207 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10208 Fix PR gdb/378.
10209
10210 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10211
10212 * lin-thread.c: Delete file.
10213 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10214 to gdb_proc_service.h.
10215 * configure: Re-generate.
10216
10217 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10218 * serial.c (serial_open): Delete check for "ocd".
10219 Fix PR gdb/349.
10220
10221 * Makefile.in (linux-thread.o): Delete target.
10222 * linux-thread.c: Delete file.
10223
10224 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10225 renamed SH files to be consistent.
10226
10227 * symtab.c (sort_search_symbols): Use xfree.
10228
10229 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10230
10231 * arm-linux-tdep.c (arm_linux_init_abi): Register
10232 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10233 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10234 definition with undef, since we don't want the sysvr4 definition.
10235 (SKIP_TRAMPOLINE_CODE): Likewise.
10236
10237 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10238
10239 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10240
10241 * configure.in: (AC_CHECK_FUNCS) Added test for
10242 canonicalize_file_name Regenerated.
10243 * config.in, configure: Regenerated.
10244 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10245 defined use canonicalize_file_name.
10246
10247 2002-02-23 Michael Chastain <mec@shout.net>
10248
10249 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10250
10251 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10252
10253 * README: Remove references to cygnus.com.
10254 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10255 dot com'' form. Remove references to cygnus.com and sourceware.
10256
10257 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10258
10259 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10260 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10261 1003.1-2001 no longer allows "head -1".
10262 * gdb/Makefile.in (version.c): Likewise.
10263 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10264 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10265 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10266
10267 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10268
10269 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10270 * command.h (cmd_cfunc_eq): Declare.
10271 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10272
10273 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10274 ``struct cmd_list_element *''.
10275 * cli/cli-cmds.c (is_complete_command): Update. Use
10276 cmd_cfunc_eq.
10277 * top.c (execute_command): Pass the command to
10278 is_complete_command.
10279 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10280
10281 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10282
10283 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10284 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10285 architecture defines.
10286 * s390-tdep.c (s390_gdbarch_init): Likewise.
10287
10288 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10289
10290 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10291 (arm_linux_push_arguments): Likewise.
10292 (arm_linux_init_abi): Register them. Also register linux-specific
10293 call_dummy_words.
10294 (find_minsym_and_objfile): Use strcmp, not STREQ.
10295 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10296 (arm_linux_call_dummy_words): Delete declaration.
10297 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10298 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10299 declarations.
10300 (LOWEST_PC): Delete.
10301
10302 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10303
10304 * maint.c (print_section_info): Do not prepend `0x' to filepos
10305 output, it will be handled by local_hex_string_custom.
10306
10307 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10308
10309 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10310 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10311 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10312
10313 2002-02-22 Jim Blandy <jimb@redhat.com>
10314
10315 Indicate that the bcache functions don't change the strings
10316 they're passed.
10317 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10318 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10319
10320 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10321
10322 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10323
10324 2002-02-21 Christopher Faylor <cgf@redhat.com>
10325
10326 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10327 find the complete path to a loaded DLL.
10328
10329 2002-02-21 Fred Fish <fnf@redhat.com>
10330
10331 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10332 that marks the end of the range of a function, enter a line number
10333 entry that has a line number of zero and a PC offset that matches
10334 the end of the function. This starts a range of PC's for which no
10335 line number information is known.
10336 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10337 PC's for which no line number info is found (line number is zero)
10338 then we didn't find any valid line information.
10339 * symtab.h: Document use of zero line number entry.
10340
10341 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10342
10343 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10344 (have_ptrace_getvrregs): Define for run time checks.
10345 (gdb_vrregset_t): New type for Altivec register handling.
10346 (fetch_register, store_register): Fetch/store altivec register
10347 when needed.
10348 (fetch_altivec_register, store_altivec_register): New functions.
10349 (supply_vrregset, fill_vrregset): New functions.
10350 (fetch_altivec_registers, store_altivec_registers): New functions.
10351 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10352 registers as well.
10353
10354 2002-02-21 Jiri Smid <smid@suse.cz>
10355
10356 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10357
10358 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10359
10360 * Makefile.in (armnbsd-nat.o): Update dependencies.
10361 * armnbsd-nat.c (supply_gregset): New function. Common code to
10362 supply the integer register set.
10363 (supply_fparegset): New function. Similar for FPA registers.
10364 (fetch_regs, fetch_fp_regs): Use them.
10365 (fetch_core_registers): Likewise.
10366 (fetch_elfcore_registers): New function.
10367 (arm_netbsd_elfcore_fns): New core-file type specification.
10368 (_initialize_arm_netbsd_nat): Register it.
10369
10370 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10371
10372 * armnbsd-nat.c: Include gdbcore.h.
10373 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10374 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10375 'void' to declaration, to shut up ARI.
10376 (fetch_core_registers): Make static. Rewrite using supply_register.
10377 (arm_netbsd_core_fns): New core-file type specification.
10378 (_initialize_arm_netbsd_nat): New function.
10379
10380 2002-02-21 Christopher Faylor <cgf@redhat.com>
10381
10382 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10383 value.
10384
10385 2002-02-20 Christopher Faylor <cgf@redhat.com>
10386
10387 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10388 fails.
10389
10390 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10391
10392 * jv-exp.y (parse_number): Change type of implicit longs
10393 to builtin_type_uint64.
10394
10395 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10396
10397 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10398 to be an integer instead of a `union wait'.
10399
10400 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10401
10402 * mips-linux-nat.c: Call the operating system GNU/Linux.
10403 * mips-linux-tdep.c: Likewise.
10404 * mips-tdep.c: Likewise.
10405
10406 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10407
10408 Fix PR gdb/265.
10409 * jv-exp.y (parse_number): Handle 64-bit integers.
10410
10411 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10412
10413 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10414 AC_STDC_HEADERS to AC_HEADER_STDC.
10415 * gdbserver/configure: Regenerated.
10416
10417 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10418
10419 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10420 is defined.
10421 * sparc-tdep.c (get_longjmp_target): Likewise.
10422
10423 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10424
10425 * News: Add news about ARM and Multi-arch. Mention the new target
10426 arm*-*-netbsd*.
10427
10428 2002-02-19 Jim Blandy <jimb@redhat.com>
10429
10430 * stabsread.c (error_type_complaint): Improve error message.
10431
10432 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * gdbserver/README: Update documentation.
10435 * gdbserver/configure.in: Update configury to match documentation.
10436 * gdbserver/Makefile.in: Likewise.
10437 * gdbserver/configure: Regenerated.
10438 * gdbserver/aclocal.m4: New file, generated by aclocal.
10439 * gdbserver/config.in: New file, generated by autoheader.
10440
10441 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10442
10443 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10444 armnbsd-nat.c.
10445
10446 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10447
10448 * arm-tdep.h (enum arm_float_model): New enum.
10449 (struct gdbarch_tdep): Add fp_model.
10450 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10451 up floating-point conversions until we know the floating-point model
10452 in use by the inferior. Don't complain about being unable to
10453 determine the ABI of the inferior when we don't have one.
10454 (arm_extract_return_value): Support different floating-point models.
10455 (arm_store_return_value): Likewise.
10456 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10457 ARM_FLOAT_SOFT.
10458 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10459
10460 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10461
10462 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10463 of ``current_gdbarch''.
10464
10465 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10466
10467 * armnbsd-nat.c : ANSIfy all function declarations.
10468 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10469 (fetch_inferior_registers): Re-implement in terms of above.
10470 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10471 (store_inferior_registers): Re-implement in terms of above.
10472
10473 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10474
10475 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10476 kernel.
10477 * arm-linux-tdep.c: Likewise.
10478 * config/arm/tm-linux.h: Likewise.
10479
10480 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10481
10482 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10483 * config/arm/nbsd.mt (TM_FILE): Delete.
10484 * config/arm/tm-nbsd.h: Delete.
10485
10486 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10487
10488 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10489 Initialize CALL_DUMMY_LENGTH.
10490
10491 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10492
10493 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10494 function.
10495 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10496 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10497 defines one thing and that is incorrect for this port.
10498 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10499
10500 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10501
10502 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10503
10504 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10505
10506 * win32-nat.c (display_selector): New function. Displays information
10507 about the information returned by GetThreadSelectorEntry API function.
10508 (display_selectors): New function. Displays the infomation of
10509 the selector given as argument, or of CS, DS ans FS selectors
10510 if no argument is given.
10511 ( _initialize_inftarg): Add "w32" as info prefix command.
10512 Add "info w32 selector" as command calling display_selectors.
10513
10514 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10515
10516 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10517 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10518 if not defined.
10519
10520 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10521
10522 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10523
10524 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10525
10526 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10527 (arm_fix_call_dummy): Call it.
10528 (arm_call_dummy_breakpoint_offset): Delete.
10529 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10530 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10531
10532 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10533
10534 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10535 Default to func_frame_chain_valid.
10536 * gdbarch.h, gdbarch.c: Re-generate.
10537 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10538
10539 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10540
10541 * ppc-linux-nat.c: Update copyright.
10542 (fetch_register, store_register): Add tid parameter, don't compute
10543 tid here.
10544 (fetch_ppc_registers, store_ppc_registers): Add tid
10545 parameter. Pass it along to callees.
10546 (fetch_inferior_registers, store_inferior_registers): Compute tid
10547 here, and pass it to calleed functions.
10548 (fill_gregset, supply_fpregset): Clean up formatting.
10549
10550 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10551
10552 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10553 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10554
10555 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10556
10557 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10558 * gdbarch.c gdbarch.h: Regenerate.
10559 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10560 function.
10561 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10562 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10563 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10564
10565 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10566 * arm-tdep.c (arm_get_longjmp_target): New function.
10567 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10568 this to a positive value register arm_get_longjmp_target as the
10569 longjmp handler.
10570 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10571 (arm_linux_init_abi): Set up longjmp description in tdep.
10572 * armnbsd-nat.c (get_longjmp_target): Delete.
10573 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10574 description in tdep.
10575 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10576 (get_longjmp_target): Delete declaration.
10577 (GET_LONGJMP_TARGET): Delete.
10578 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10579 (GET_LONGJMP_TARGET): Delete.
10580
10581 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10582
10583 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10584 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10585 of ``current_gdbarch''.
10586
10587 2002-02-17 Tom Tromey <tromey@redhat.com>
10588
10589 * cli/cli-cmds.c (compare_strings): New function.
10590 (complete_command): Only print each unique item once.
10591 * completer.h (complete_line): Declare.
10592 * completer.c (complete_line): New function.
10593 (line_completion_function): Use it.
10594
10595 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10596
10597 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10598 * gdbarch.h, gdbarch.c: Re-generate.
10599
10600 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10603
10604 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10605
10606 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10607 * valops.c (value_arg_coerce): Don't take the address of a reference
10608 to convert an argument to a reference.
10609
10610 2002-02-15 Christopher Faylor <cgf@redhat.com>
10611
10612 * win32-nat.c (get_image_name): New function.
10613 (handle_load_dll): Use get_image_name function.
10614 (get_child_debug_event): Avoid registering debug events until possibly
10615 execed process is started.
10616 (child_create_inferior): Allow invocation via shell so that command
10617 line redirection, etc. works ok.
10618 (_initialize_inftarg): Add new command: "set shell" to control whether
10619 a shell is used to start a process.
10620
10621 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10622
10623 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10624 instead of find_register_by_number.
10625 (cannot_store_register): Likewise.
10626
10627 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10628
10629 * dwarf2read.c: Replace fprintf (stderr, ...) by
10630 fprintf_unfiltered (gdb_stderr, ...).
10631
10632 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10633
10634 * gdbserver/gdbserver.1: Document --attach.
10635
10636 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10637
10638 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10639 descriptions.
10640 * arm-tdep.c (arm_default_arm_le_breakpoint)
10641 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10642 (arm_default_thumb_be_breakpoint): New. Initialize them from
10643 traditional breakpoint defines.
10644 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10645 (arm_gdbarch_init): Initialize new breakpoint variables.
10646 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10647 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10648 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10649 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10650 code out to ...
10651 (arm_netbsd_init_abi_common): ... here; new function.
10652 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10653 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10654 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10655 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10656
10657 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10658
10659 * arm-tdep.h (enum arm_abi): New enum.
10660 (struct gdbarch_tdep): New structure.
10661 (LOWEST_PC): Provide a default.
10662 (arm_gdbarch_register_os_abi): Declare new function.
10663 * arm-tdep.c (arm_abi_names): New array.
10664 (process_note_abi_tag_sections): New function.
10665 (get_elfosabi): New function.
10666 (arm_gdbarch_register_os_abi): New function.
10667 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10668 support for that ABI has been built in, then call the appropriate
10669 configuration routine. Use gdbarch_num_regs() to get the number
10670 of registers.
10671 (arm_dump_tdep): New function.
10672 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10673 place-holder functions.
10674 (_initialize_arm_tdep): Register them.
10675 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10676
10677 * armnbsd-tdep.c: New file.
10678 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10679 * config/arm/nbsd.mt (TDEPFILES): Add it.
10680 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10681
10682 * armnbsd-nat.c: Include regcache.h.
10683 * Makefile.in (armnbsd-nat.o): Update dependency list.
10684
10685 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10686
10687 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10688
10689 * gdbserver/Makefile.in: Fix typos in target rules.
10690
10691 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10692
10693 Fix part of PR gdb/267.
10694 * linespec.c (find_methods): Handle constructors specially for now.
10695
10696 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10697
10698 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10699 handling.
10700 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10701 standard_coerce_float_to_double().
10702
10703 2002-02-14 Christopher Faylor <cgf@redhat.com>
10704
10705 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10706 GDBINIT_FILENAME.
10707
10708 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10709
10710 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10711 find_variant_by_name, because it confuses the multiarch
10712 framework. Return NULL if there isn't an architecture with the
10713 user supplied name, instead of forcing a different one without
10714 recording the change with the multiarch machinery.
10715 (find_variant_by_name): Delete.
10716
10717 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10718
10719 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10720 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10721
10722 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10723
10724 * stack.c (print_frame_info_base): When calling
10725 print_frame_info_listing_hook, set current_source_symtab.
10726
10727 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10730 and remove unused $(INCLUDE_DIR).
10731 Add regcache.c to OBS.
10732 Add generated register protocol files to clean target.
10733 Update dependencies for new objects, obsolete old target code.
10734
10735 * gdbserver/linux-low.c: Remove all platform-specific code to
10736 new files. Remove various dead code. Update to use regcache
10737 functionality.
10738 * gdbserver/remote-utils.c (fromhex): Add return statement
10739 to quiet warning.
10740 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10741 constant.
10742 (input_interrupt): Add integer parameter to match prototype
10743 of a signal handler.
10744 (outreg): Use register_data ().
10745 (prepare_resume_reply): Use gdbserver_expedite_regs.
10746 * gdbserver/server.c (main): Dynamically allocate own_buf because
10747 PBUFSIZ is no longer constant. Use registers_to_string () and
10748 registers_from_string ().
10749 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10750 for error (), fatal (), and warning (). Update definition of
10751 PBUFSIZ to use regcache functionality. Add include guard.
10752 * gdbserver/utils.c (fatal): Add missing ``const''.
10753 (warning): New function.
10754
10755 * regformats/regdat.sh: Include "regcache.h" in generated files.
10756 Provide init_registers () function.
10757 * regformats/regdef.h: Add prototype for set_register_cache ().
10758 Add include guard.
10759
10760 * gdbserver/linux-arm-low.c: New file.
10761 * gdbserver/linux-i386-low.c: New file.
10762 * gdbserver/linux-ia64-low.c: New file.
10763 * gdbserver/linux-m68k-low.c: New file.
10764 * gdbserver/linux-mips-low.c: New file.
10765 * gdbserver/linux-ppc-low.c: New file.
10766 * gdbserver/linux-sh-low.c: New file.
10767
10768 * gdbserver/regcache.c: New file.
10769 * gdbserver/regcache.h: New file.
10770
10771 * gdbserver/low-linux.c: Removed obsolete file.
10772
10773 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10774
10775 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10776 * config/i386/linux.mt: Likewise.
10777 * config/ia64/linux.mt: Likewise.
10778 * config/m68k/linux.mh: Likewise.
10779 * config/powerpc/linux.mh: Likewise.
10780 * config/mips/linux.mt: Likewise.
10781
10782 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10783
10784 * config/i386/i386lynx.mh: Mark gdbserver variables
10785 as (currently) obsolete for this target.
10786 * config/i386/nbsd.mt: Likewise.
10787 * config/i386/nbsdelf.mt: Likewise.
10788 * config/m32r/m32r.mt: Likewise.
10789 * config/m68k/m68klynx.mh: Likewise.
10790 * config/m68k/nbsd.mt: Likewise.
10791 * config/m68k/sun3os4.mh: Likewise.
10792 * config/mips/vr5000.mt: Likewise.
10793 * config/ns32k/nbsd.mt: Likewise.
10794 * config/pa/hppabsd.mh: Likewise.
10795 * config/pa/hppaosf.mh: Likewise.
10796 * config/powerpc/nbsd.mt: Likewise.
10797 * config/rs6000/rs6000lynx.mh: Likewise.
10798 * config/s390/s390.mt: Likewise.
10799 * config/s390/s390x.mt: Likewise.
10800 * config/sparc/sparclynx.mh: Likewise.
10801 * config/sparc/sun4os4.mh: Likewise.
10802 * config/i386/x86-64linux.mt: Likewise.
10803 * config/sparc/linux.mh: Likewise.
10804
10805 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * configure.tgt: Configure gdbserver only for known working
10808 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10809 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10810 SUBDIRS if it is configured. Update comment for ${nativefile}.
10811 * configure: Regenerated.
10812
10813 2002-02-13 Michael Snyder <msnyder@redhat.com>
10814
10815 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10816
10817 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10818 (default_gcore_mach): Just return 0, work around a problem in bfd.
10819 (default_gcore_target): OK to return NULL if exec_bfd is null.
10820 (make_mem_sec): Use a cast, avoid a warning.
10821
10822 * procfs.c (find_memory_regions_callback): Use a cast instead of
10823 calling host_pointer_to_address (which complains if
10824 sizeof (host pointer) != sizeof (target pointer)).
10825 (procfs_make_note_section): Avoid overflow in psargs string.
10826
10827 * procfs.c (procfs_make_note_section): Make the default
10828 implementation return an error.
10829
10830 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10831
10832 * procfs.c (procfs_make_note_section): Provide a default definition
10833 (for alpha-dec-osf4.0f). Fix typos.
10834
10835 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10836
10837 * linux-proc.c: Add include of regcache.h.
10838 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10839
10840 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10841
10842 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10843 * memattr.c (create_mem_region): Disallow useless empty region.
10844 Regions are half-open intervals, so allow [A..B) [B..C) as
10845 non-overlapping.
10846
10847 2002-02-13 Michael Chastain <mec@shout.net>
10848
10849 * defs.h: Kill CONST_PTR.
10850 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10851 * c-lang.c (c_builtin_types): Likewise.
10852 * ch-lang.c (ch_builtin_types): Likewise.
10853 * f-lang.c (f_builtin_types): Likewise.
10854 * language.c (unknown_builtin_types): Likewise.
10855 * m2-lang.c (m2_builtin_types): Likewise.
10856 * p-lang.c (pascal_builtin_types): Likewise.
10857 * scm-lang.c (c_builtin_types): Likewise.
10858
10859 2002-02-13 Keith Seitz <keiths@redhat.com>
10860
10861 * arm-tdep.h (arm_get_next_pc): Add declaration.
10862
10863 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10864
10865 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10866 with other related struct-returning functions.
10867 (arm_extract_struct_value_address): New function.
10868 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10869 initialize float_format, double_format and long_double_format as
10870 appropriate to the endianness of the target.
10871 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10872 (arm_use_struct_convention): Delete declaration.
10873 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10874
10875 2002-02-13 Keith Seitz <keiths@redhat.com>
10876
10877 * defs.h (core_addr_to_string_nz): New function.
10878
10879 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10880
10881 Apply missing bits of 2002-01-15 patch.
10882 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10883 (fill_fpregset): Use i387_fill_fsave.
10884
10885 2002-02-12 Keith Seitz <keiths@redhat.com>
10886
10887 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10888 (core_addr_to_string_nz): New function.
10889
10890 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10891
10892 * arm-linux-nat.c: Really include arm-tdep.h.
10893 * config/arm/tm-linux.h (struct type, struct value): Declare.
10894
10895 2002-02-11 Michael Snyder <msnyder@redhat.com>
10896
10897 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10898 (gcore section): Ifdef for Solaris and Unixware only.
10899 (procfs_do_thread_registers): Unixware needs one lwpstatus
10900 per thread (not one prstatus or pstatus).
10901 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10902 not over all gdb threads. For unixware, call elfcore_write_pstatus
10903 once before iterating over threads.
10904
10905 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10906
10907 * arm-tdep.h: New file.
10908 * arm-tdep.c: Include arm-tdep.h.
10909 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10910 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10911 (arm_print_float_info, arm_register_type, convert_to_extended)
10912 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10913 (arm_extract_return_value, arm_register_name): Make static.
10914 (arm_software_single_step): Similarly. Fix types in declaration.
10915 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10916 (arm_store_return_value, arm_store_struct_return): New functions.
10917 (arm_gdbarch_init): Register the above functions. Also register
10918 call_dummy_start_offset, sizeof_call_dummy_words,
10919 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10920 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10921 max_register_virtual_size, register_size. Set up
10922 prologue_cache.saved_regs here, rather than ...
10923 (_initialize_arm_tdep): ... here.
10924 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10925 declarations.
10926 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10927 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10928 (arm_print_float_info, arm_register_type, convert_to_extended)
10929 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10930 (arm_extract_return_value, arm_register_name): Delete declarations.
10931 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10932 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10933 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10934 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10935 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10936 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10937 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10938 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10939 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10940 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10941 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10942 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10943 interface.
10944 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10945 * remote-rdi.c remote-rdp.c: Likewise.
10946 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10947 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10948 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10949 definition.
10950
10951 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10952 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10953 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10954 from non-ARM_ prefixed definitions.
10955 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10956 all uses of above.
10957 * remote-rdi.c remote-rdp.c: Likewise.
10958 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10959
10960 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10961
10962 * arm-tdep.c (arm_frameless_function_invocation)
10963 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10964 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10965 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10966 (arm_pop_frame, arm_get_next_pc): Make static.
10967 (arm_gdbarch_init): Register above in gdbarch structure.
10968 (arm_read_fp): Renamed from arm_target_read_fp.
10969 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10970 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10971 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10972 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10973 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10974 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10975 (arm_pc_is_thumb_dummy): Delete declarations.
10976 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10977 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10978 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10979 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10980
10981 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10982
10983 * symtab.c (compare_search_syms): New function.
10984 (sort_search_symbols): New function.
10985 (search_symbols): Sort symbols after searching rather than
10986 before.
10987
10988 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10989
10990 * NEWS: Linux -> GNU/Linux.
10991
10992 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10993
10994 * gdbarch.sh: For for level one methods, disallow a definition
10995 when partially multi-arched. Add comments explaining rationale.
10996 * gdbarch.h: Re-generate.
10997
10998 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10999
11000 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11001 multi-arch partial.
11002
11003 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11004
11005 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11006 field. Use diff -u.
11007 * gdbarch.c: Re-generate.
11008
11009 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11010
11011 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11012 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11013 partial.
11014
11015 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11016
11017 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11018 multi-arch partial.
11019 (PUSH_ARGUMENTS): Switch to using predefault.
11020 * gdbarch.c: Regenerate.
11021
11022 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11023
11024 * valops.c (PUSH_ARGUMENTS): Delete definition.
11025 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11026 partial. Default to default_push_arguments.
11027 * gdbarch.h, gdbarch.c: Regenerate.
11028
11029 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11030
11031 * defs.h (throw_exception): Rename return_to_top_level. Update
11032 comments.
11033 * utils.c (error_stream, internal_verror, quit): Ditto.
11034 * top.c (throw_exception, catcher): Ditto.
11035 * sparclet-rom.c (sparclet_load): Ditto.
11036 * remote.c (interrupt_query, minitelnet): Ditto.
11037 * remote-sds.c (interrupt_query): Ditto.
11038 * remote-mips.c (mips_error, mips_kill): Ditto.
11039 * ocd.c (interrupt_query): Ditto.
11040 * monitor.c (monitor_interrupt_query): Ditto.
11041 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11042 * target.h: Update comment.
11043
11044 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11045
11046 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11047
11048 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11049 default_double_format.
11050 * gdbarch.h, gdbarch.c: Re-generate.
11051 * findvar.c (floatformat_unknown): Delete variable definition.
11052 * doublest.h (floatformat_unknown): Delete variable declaration.
11053
11054 2002-02-09 Jim Blandy <jimb@redhat.com>
11055
11056 * stabsread.c (read_type): Add code to parse Sun's syntax for
11057 prototyped function types.
11058
11059 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11060
11061 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11062 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11063
11064 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11065
11066 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11067 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11068 now _initialize_xcoffsolib gets called again and overrides the
11069 commands from solib.c in a native configuration.
11070
11071 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11072
11073 * doublest.c (store_typed_floating): Don't try to return a value.
11074 Fixes PR gdb/290.
11075
11076 2002-02-08 Jim Blandy <jimb@redhat.com>
11077
11078 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11079 is prototyped and has no arguments, print its argument list as
11080 `(void)'.
11081
11082 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11083
11084 * MAINTAINERS (write-after-approval): Add myself.
11085 (paper-trail): I've escaped!
11086
11087 2002-02-08 Christopher Faylor <cgf@redhat.com>
11088
11089 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11090 changes.
11091 (_initialize_check_for_gdb_ini): Ditto.
11092
11093 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11094
11095 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11096 xaprintf -> xasprintf.
11097
11098 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11099
11100 * win32-nat.c: Remove use of printf and sprintf functions.
11101
11102 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * arm-tdep.c (arm_frame_chain_valid): Make static.
11105 (arm_push_arguments): Likewise.
11106 (arm_gdbarch_init): New function.
11107 (_initialize_arm_tdep): Call it.
11108 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11109 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11110 (FRAME_CHAIN_VALID): Delete.
11111 (arm_frame_chain_valid): Delete declaration.
11112 (PUSH_ARGUMENTS): Delete.
11113 (arm_push_arguments): Delete declaration.
11114 (CALL_DUMMY_P): Delete.
11115
11116 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11117 Corinna Vinschen <vinschen@redhat.com>
11118
11119 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11120 on builtin float types.
11121
11122 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * utils.c: Include <curses.h> before "bfd.h".
11125 * tui/tui-hooks.c: Likewise.
11126 * tui/tui.c: Likewise.
11127 * tui/tuiCommand.c: Likewise.
11128 * tui/tuiData.c: Likewise.
11129 * tui/tuiDataWin.c: Likewise.
11130 * tui/tuiDisassem.c: Likewise.
11131 * tui/tuiGeneralWin.c: Likewise.
11132 * tui/tuiIO.c: Likewise.
11133 * tui/tuiLayout.c: Likewise.
11134 * tui/tuiRegs.c: Likewise.
11135 * tui/tuiSource.c: Likewise.
11136 * tui/tuiSourceWin.c: Likewise.
11137 * tui/tuiStack.c: Likewise.
11138 * tui/tuiWin.c: Likewise.
11139
11140 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11141
11142 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11143 to include space for pseudoregs as well. Update loops accordingly.
11144 (sh_fp_frame_init_saved_regs): Ditto.
11145 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11146
11147 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11148
11149 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11150 Add Richard Earnshaw to Arm maintainers.
11151
11152 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11153
11154 * defs.h (warning_begin): Delete declaration.
11155
11156 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11157 Delete macro.
11158
11159 2002-02-07 Michael Snyder <msnyder@redhat.com>
11160
11161 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11162 Logic bug, remove misplaced else.
11163
11164 2002-02-07 Klee Dienes <klee@apple.com>
11165
11166 * fork-inferior.c (fork_inferior): Add '!' to the list of
11167 characters that need to be quoted when building a string for the
11168 shell. Quote '!' specifically with a backslash, since CSH chokes
11169 when trying to evaluate "str!str".
11170
11171 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11172
11173 * rdi-share/host.h: Only provide a typedef for bool if it is not
11174 defined.
11175
11176 2002-02-04 Michael Snyder <msnyder@redhat.com>
11177
11178 * breakpoint.h (enum bptype): Add new overlay event bp type.
11179 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11180
11181 * breakpoint.c (create_internal_breakpoint): New function.
11182 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11183 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11184 (create_thread_event_breakpoint): Ditto.
11185 (create_solib_event_breakpoint): Ditto.
11186 (create_overlay_event_breakpoint): New function.
11187 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11188 (update_breakpoints_after_exec): Delete and re-initialize
11189 overlay event breakpoints after an exec. Add FIXME comment
11190 about longjmp breakpoint.
11191 (print_it_typical): Ignore overlay event breakpoints.
11192 (print_one_breakpoint): Ditto.
11193 (mention): Ditto.
11194 (bpstat_what): Do not stop for overlay event breakpoints.
11195 (delete_breakpoint): Don't delete overlay event breakpoints.
11196 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11197 (breakpoint_re_set): Re-create overlay event breakpoint.
11198
11199 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11200 (overlay_manual_command): Disable overlay breakpoints.
11201 (overlay_off_command): Disable overlay breakpoints.
11202
11203 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11204
11205 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11206 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11207 to here from config/tm-arm.h.
11208 (coff_sym_is_thumb): Make static.
11209 (arm_elf_make_msymbol_special): New function.
11210 (arm_coff_make_msymbol_special): New function.
11211 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11212 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11213 (coff_sym_is_thumb): Delete declaration.
11214 (arm_elf_make_msymbol_special): Declare.
11215 (arm_coff_make_msymbol_special): Declare.
11216 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11217 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11218
11219 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11220
11221 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11222
11223 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11224
11225 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11226 * gdbarch.c gdbarch.h: Regenerate.
11227 * arch-utils.c (default_print_float_info): New function.
11228 * arch-utils.h (default_print_float_info): Prototype it.
11229 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11230 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11231 (PRINT_FLOAT_INFO): Document it.
11232
11233 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11234 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11235 (PRINT_FLOAT_INFO): Define.
11236
11237 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11238
11239 * win32-nat.c (_initialize_check_for_gdb_ini):
11240 Add typecast to sprintf argument to suppress a warning.
11241
11242 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11243
11244 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11245 to allow easier handling of pass state.
11246 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11247 that gives exception name and address.
11248 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11249 and set last_sig value to ourstatus->value.sig. Some missing
11250 exceptions added.
11251 (child_continue): Correctly report continue_status.
11252 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11253 TARGET_SIGNAL_0 (new default value).
11254 (child_resume): consider sig argument passed to decide if
11255 the exception should be passed to debuggee or not.
11256
11257 2002-02-05 Michael Snyder <msnyder@redhat.com>
11258
11259 * regcache.c (fetch_register): Call target_fetch_register
11260 only if we don't call FETCH_PSEUDO_REGISTER.
11261 (store_register): Call target_store_register only if we
11262 don't call STORE_PSEUDO_REGISTER.
11263
11264 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11265
11266 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11267 ELF_MAKE_MSYMBOL_SPECIAL.
11268 * gdbarch.c, gdbarch.h: Regenerate.
11269 * arch-utils.c (default_make_msymbol_special): New function.
11270 * arch-utils.h (default_make_msymbol_special): Export.
11271 * elfread.c (elf_symtab_read): Compile use of
11272 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11273 multiarched.
11274 * coffread.c (coff_symtab_read): Ditto, for
11275 COFF_MAKE_MSYMBOL_SPECIAL.
11276
11277 2002-02-05 Jim Blandy <jimb@redhat.com>
11278
11279 * solib-svr4.c (svr4_truncate_ptr): New function.
11280 (svr4_relocate_section_addresses): Do the address arithmetic with
11281 the appropriate truncation for target addresses, even when
11282 CORE_ADDR is larger than a target address.
11283
11284 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11285
11286 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11287 to (int *).
11288
11289 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11292 code.
11293
11294 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11297
11298 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * gdbserver/linux-low.c: Remove unused include files.
11301
11302 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11303
11304 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11305 (read_inferior_memory): Use it.
11306 (write_inferior_memory): Likewise.
11307
11308 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11311 grubbing through sys_errlist.
11312
11313 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11314
11315 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11316
11317 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11318 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11319
11320 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11321
11322 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11323 (do_sfunc, set_cmd_sfunc): New functions.
11324
11325 * command.h (struct cmd_list_element): Add field func.
11326 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11327 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11328 * cli/cli-decode.h: Ditto.
11329
11330 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11331 (help_all, help_cmd_list): Ditto.
11332 (find_cmd, complete_on_cmdlist): Ditto.
11333 * top.c (execute_command): Ditto.
11334
11335 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11336 function.sfunc.
11337
11338 * infcmd.c (notice_args_read): Fix function signature.
11339
11340 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11341 * cli/cli-decode.c (add_set_cmd): Ditto.
11342 * utils.c (initialize_utils): Ditto.
11343 * maint.c (_initialize_maint_cmds): Ditto.
11344 * infrun.c (_initialize_infrun): Ditto.
11345 * demangle.c (_initialize_demangler): Ditto.
11346 * remote.c (add_packet_config_cmd): Ditto.
11347 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11348 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11349 * proc-api.c (_initialize_proc_api): Ditto.
11350 * kod.c (_initialize_kod): Ditto.
11351 * valprint.c (_initialize_valprint): Ditto.
11352 * top.c (init_main): Ditto.
11353 * infcmd.c (_initialize_infcmd): Ditto.
11354 * corefile.c (_initialize_core): Ditto.
11355 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11356 * arch-utils.c (initialize_current_architecture): Ditto.
11357 (_initialize_gdbarch_utils): Ditto.
11358 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11359
11360 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11361 * wince.c (_initialize_inftarg): Ditto.
11362 * symfile.c (_initialize_symfile): Ditto.
11363 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11364 * language.c (_initialize_language): Ditto.
11365 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11366
11367 2002-02-04 Michael Snyder <msnyder@redhat.com>
11368
11369 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11370
11371 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11372
11373 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11374 Add rules for building the register data files.
11375
11376 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11377
11378 * regformats/regdat.sh: Add braces to the definition of
11379 expedite_regs_${arch}.
11380
11381 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11382
11383 * regformats/regdef.h (struct reg): Add comment describing the
11384 requirements for offset and size fields.
11385
11386 2002-02-04 Andreas Schwab <schwab@suse.de>
11387
11388 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11389 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11390
11391 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11392
11393 * gdbarch.sh (copyright): Update years in generated header.
11394 (SMASH_TEXT_ADDRESS): Add rule.
11395 * gdbarch.h, gdbarch.c: Re-generate.
11396 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11397 * dbxread.c: Likewise.
11398 * dwarfread.c: Likewise.
11399 * elfread.c: Likewise.
11400 * somread.c: Likewise.
11401
11402 * arm-tdep.c (arm_smash_text_address): New function.
11403 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11404
11405 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11406
11407 Add support for hardware watchpoints on win32 native.
11408 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11409 CONTEXT_DEBUG_REGISTERS.
11410 (dr variable): New variable. Static array containing a local copy
11411 of debug registers.
11412 (debug_registers_changed): New variable. Reflects when debug registers
11413 are changed and need to be written to inferior.
11414 (debug_registers_used): New variable. Reflects when any debug register
11415 was set, used when new threads are created.
11416 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11417 i386-nat code.
11418 (thread_rec): Set dr array if id is the thread of current_event .
11419 (child_continue, child_resume): Change the debug registers for all
11420 threads if debug_registers_changed.
11421 (child_add_thread): Change the debug registers if debug_registers_used.
11422 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11423 Link nm.h to new nm-cygwin.h file.
11424 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11425 of hardware registers.
11426
11427 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11428
11429 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11430 Restore behavour broken by 2002-01-20 Andrew Cagney
11431 <ac131313@redhat.com> IEEE_FLOAT removal.
11432
11433 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11434
11435 * c-valprint.c (c_val_print): Pass a proper valaddr to
11436 cp_print_class_method.
11437 * valops.c (search_struct_method): If there is only one method
11438 and args is NULL, return that method.
11439
11440 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11441
11442 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11443 accessing tag_name directly.
11444
11445 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11446
11447 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11448 of accessing tag_name directly.
11449
11450 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11451
11452 PR gdb/280
11453 * gdbtypes.c (replace_type): New function.
11454 * gdbtypes.h (replace_type): Add prototype.
11455 * stabsread.c (read_type): Use replace_type.
11456
11457 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11458
11459 * Makefile.in (memattr.o): Add missing dependencies rule.
11460
11461 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11462
11463 * breakpoint.c (break_at_finish_command): Really export.
11464 (break_at_finish_at_depth_command): Ditto.
11465 (tbreak_at_finish_command): Ditto.
11466 * hppa-tdep.c: Include completer.h.
11467 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11468 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11469
11470 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11471
11472 * utils.c (do_write): New function.
11473 (error_stream): Rewrite combining the code from error_begin and
11474 verror.
11475 (verror): Rewrite using error_stream.
11476 (error_begin): Delete function.
11477
11478 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11479
11480 * utils.c (error_begin): Make static.
11481 * defs.h (error_begin): Delete declaration.
11482
11483 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11484 (decode_line_1): Use cplusplus_error instead of error_begin,
11485 cplusplus_hint and return_to_top_level.
11486 * coffread.c (coff_symfile_read): Use error instead of error_begin
11487 and return_to_top_level.
11488 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11489
11490 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11491
11492 * language.h (type_error, range_error): Make string parameter
11493 constant.
11494 * language.c (warning_pre_print): Delete extern declaration.
11495 * dwarfread.c (warning_pre_print): Ditto.
11496 * language.c (type_error, range_error): Rewrite to use verror and
11497 vwarning instead of warning_begin.
11498
11499 2002-02-01 Michael Snyder <msnyder@redhat.com>
11500
11501 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11502 (set_ignore_count): Move misplaced comment back where it belongs.
11503
11504 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11505
11506 * command.h (NO_FUNCTION): Delete macro.
11507 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11508 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11509 * tracepoint.c (_initialize_tracepoint): Ditto.
11510 * cli/cli-decode.c (add_set_cmd): Ditto.
11511 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11512
11513 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11516 Update ``this'' pointer when calling virtual functions.
11517
11518 2002-02-01 Michael Snyder <msnyder@redhat.com>
11519
11520 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11521 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11522
11523 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11524
11525 * regformats/reg-arm.dat: New file.
11526 * regformats/reg-i386.dat: New file.
11527 * regformats/reg-ia64.dat: New file.
11528 * regformats/reg-m68k.dat: New file.
11529 * regformats/reg-mips.dat: New file.
11530 * regformats/reg-ppc.dat: New file.
11531 * regformats/reg-sh.dat: New file.
11532 * regformats/regdef.h: New file.
11533 * regformats/regdat.sh: New file.
11534
11535 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11536
11537 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11538 (arm_frame_args_address, arm_frame_locals_address): New functions.
11539 (arm_frame_num_args): New function.
11540 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11541 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11542 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11543
11544 2002-01-31 Michael Snyder <msnyder@redhat.com>
11545
11546 * breakpoint.c (break_at_finish_command): Export.
11547 (break_at_finish_at_depth_command): Export.
11548 (tbreak_at_finish_command): Export.
11549 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11550 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11551 "txbreak" commands, which are HPPA specific.
11552
11553 * printcmd.c (disassemble_command): Remove an ancient
11554 artifact of an old merge.
11555
11556 * symfile.h (enum overlay_debugging_state):
11557 Define enum constant values for overlay mode.
11558 * symfile.c (overlay_debugging): Use enums instead of literals.
11559 (overlay_is_mapped, overlay_auto_command,
11560 overlay_manual_command): Ditto.
11561
11562 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11563 breakpoint_here_p, breakpoint_inserted_here_p,
11564 breakpoint_thread_match, bpstat_stop_status,
11565 describe_other_breakpoints, check_duplicates, clear_command):
11566 Coding standard fixes.
11567
11568 * target.c (target_xfer_memory): Add spaces, coding standard.
11569 (do_xfer_memory): Add missing line to trust-readonly
11570 code: check bfd SEC_READONLY flag for section.
11571
11572 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11573
11574 * PROBLEMS: Fix typo, 5.1->5.1.1.
11575
11576 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11579 data symbols, since we search based on textlow and texthigh.
11580 (find_pc_sect_symtab): Likewise.
11581
11582 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11583
11584 * defs.h (vwarning): Declare.
11585 * utils.c (vwarning): New function.
11586 (warning): Call vwarning.
11587 (warning_begin): Delete function.
11588
11589 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11590 the warning message.
11591 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11592 warning_begin.
11593
11594 2002-01-30 Michael Snyder <msnyder@redhat.com>
11595
11596 * NEWS: Mention "set trust-readonly-sections" command.
11597 Mention generate-core-file command.
11598
11599 2002-01-15 Michael Snyder <msnyder@redhat.com>
11600
11601 * target.c: New command, "set trust-readonly-sections on".
11602 (do_xfer_memory): Honor the suggestion to trust readonly sections
11603 by reading them from the object file instead of from the target.
11604 (initialize_targets): Register command "set trust-readonly-sections".
11605
11606 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11607
11608 * parse.c (target_map_name_to_register): Simplify, search regs and
11609 pseudo-regs using a single loop.
11610
11611 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11612
11613 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11614
11615 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11616
11617 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11618 * config/i386/i386v42mp.mh: Add i387-nat.o .
11619 * i386v4-nat.c: Include i387-nat.h.
11620 (supply_fpregset): Use i387_supply_fsave.
11621 (fill_fpregset): Use i387_fill_fsave.
11622
11623 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11624
11625 * arm-tdep.c (arm_call_dummy_words): Define.
11626 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11627 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11628 (CALL_DUMMY_WORDS): Define.
11629 (arm_call_dummy_words): Declare.
11630 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11631 (arm_linux_call_dummy_words): Declare.
11632
11633 2002-01-30 Andreas Schwab <schwab@suse.de>
11634
11635 * m68klinux-nat.c: Fix last change to use regcache_collect
11636 instead of referencing registers[] directly.
11637
11638 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11639
11640 * parse.c (target_map_name_to_register): Delete code wrapped in
11641 #ifdef REGISTER_NAME_ALIAS_HOOK.
11642
11643 2002-01-28 Michael Snyder <msnyder@redhat.com>
11644
11645 * regcache.c (legacy_read_register_gen): Need to be able to
11646 read pseudo-register as well as real register.
11647 (legacy_write_register_gen): Ditto.
11648
11649 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11650
11651 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11652 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11653 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11654 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11655 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11656 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11657 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11658 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11659 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11660 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11661 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11662 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11663 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11664 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11665 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11666 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11667 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11668 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11669 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11670 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11671
11672 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11673
11674 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11675 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11676 (initialize_current_architecture): Update target_byte_order using
11677 information from BFD.
11678 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11679 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11680
11681 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11682
11683 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11684 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11685
11686 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11687 #ifdef INVALID_FLOAT.
11688 * infcmd.c (do_registers_info): Ditto.
11689 * values.c (unpack_double): Ditto. Add comment.
11690
11691 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11692 already commented out.
11693
11694 2002-01-26 Andreas Schwab <schwab@suse.de>
11695
11696 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11697 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11698 registers and add support for PTRACE_GETREGS.
11699
11700 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11701
11702 GDB 5.1.1 released from 5.1 branch.
11703 * NEWS: Add 5.1.1 news.
11704 * README: Sync with 5.1 branch.
11705
11706 2002-01-23 Fred Fish <fnf@redhat.com>
11707
11708 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11709 stabstring on initial malloc. Reallocing will copy it for us,
11710 if necessary.
11711
11712 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11713
11714 * Makefile.in (hpread_h): Delete.
11715 (HFILES_NO_SRCDIR): Remove hpread.h.
11716 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11717 (hpread.o): Update dependencies.
11718 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11719
11720 * hp-psymtab-read.c: Remove file.
11721 * hp-symtab-read.c: Remove file.
11722 * hpread.h: Remove file.
11723
11724 * hpread.c: Merge all contents of hp-psymtab-read.c,
11725 hp-symtab-read.c and hpread.h into this file, as it was prior to
11726 January 1999.
11727
11728 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11729 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11730 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11731 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11732
11733 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11734
11735 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11736 fill_gregset): Call gdbarch_tdep() just once, assign result to
11737 variable and use that, instead of calling the function several
11738 times.
11739
11740 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11741
11742 * configure.host: Accept sparcv9 as alias for sparc64.
11743 * configure.tgt: Likewise.
11744
11745 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11746
11747 * solib-aix5.c (build_so_list_from_mapfile)
11748 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11749 arguments is not reversed.
11750 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11751 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11752
11753 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11754
11755 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11756 modified version of obsolete sh_fetch_pseudo_register.
11757 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11758 (sh4_register_read): New function.
11759 (sh_pseudo_register_write): New function. Renamed and modified
11760 version of obsolete sh_store_pseudo_register.
11761 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11762 (sh4_register_write): New function.
11763 (sh_gdbarch_init): Remove setting of gdbarch function
11764 fetch_pseudo_register and store_pseudo_register. Remove setting of
11765 register_convert_to_raw, register_convert_to_virtual,
11766 register_convertible.
11767 (sh_sh4_register_convertible): Delete. No longer needed. All is
11768 taken care by architecture specific functions
11769 register_read/register_write.
11770 (sh_sh4_register_convert_to_virtual): Make static.
11771 (sh_sh4_register_convert_to_raw): Ditto.
11772
11773 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11774
11775 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11776 (floatformat_is_nan, floatformat_mantissa): Ditto.
11777
11778 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11779 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11780 builtin_type_ieee_double_little,
11781 builtin_type_ieee_double_littlebyte_bigword,
11782 builtin_type_m68881_ext, builtin_type_i960_ext,
11783 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11784 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11785 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11786 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11787
11788 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11789
11790 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11791 parameter. Set frameless flag if it exists and depended of
11792 whether the scanned function is frameless or not.
11793 (xstormy16_skip_prologue): If function is frameless, return
11794 result of xstormy16_scan_prologue().
11795 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11796 call.
11797
11798 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11799
11800 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11801 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11802 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11803 sh_sh4_register_byte, sh_sh4_register_raw_size,
11804 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11805 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11806 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11807 sh_store_pseudo_register, sh_do_pseudo_register): Call
11808 gdbarch_tdep() just once, assign result to variable and use that,
11809 instead of calling the function several times.
11810
11811 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11812
11813 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11814 macros instead of LAST_FPU_CTRL_REGNUM.
11815 (store_register): Likewise.
11816
11817 2002-01-21 Jim Blandy <jimb@redhat.com>
11818
11819 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11820 is up-to-date before running the program, not just when a program
11821 exits.
11822
11823 2002-01-21 Fred Fish <fnf@redhat.com>
11824
11825 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11826 when we have found all instructions we are looking for.
11827
11828 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11829
11830 * arm-tdep.c (arm_register_name): New function.
11831 (arm_registers_names): Make static.
11832 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11833 (arm_register_name): Declare.
11834 (REGISTER_NAME): Use it.
11835
11836 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11837 Kevin Buettner <kevinb@redhat.com>
11838
11839 Convert arm targets to new FRAME interface.
11840 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11841 (arm_frame_find_save_regs): Delete.
11842 (arm_frame_init_saved_regs): New.
11843 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11844 Allocate extra_info as required. Convert all uses of fsr.regs
11845 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11846 to use extra_info.
11847 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11848 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11849 (check_prologue_cache, save_prologue_cache): Likewise.
11850 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11851 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11852 (FRAME_FIND_SAVED_REGS): Delete.
11853 (arm_frame_find_saved_regs): Delete prototype.
11854 (arm_frame_init_saved_regs): New prototype.
11855 (FRAME_INIT_SAVED_REGS): Define.
11856
11857 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11858
11859 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11860
11861 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11862
11863 From Jeff Law <law@redhat.com>:
11864 * infttrace.c: Include <sys/pstat.h>.
11865 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11866 exec file if the ttrace equivalent fails.
11867
11868 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11869
11870 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11871 (closeLogFile): Ditto.
11872
11873 2002-01-20 Michael Chastain <mec@shout.net>
11874
11875 * top.c (print_gdb_version): Bump copyright year to 2002.
11876
11877 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11878
11879 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11880 Zannoni and Eli Zaretskii.
11881
11882 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11883
11884 * buildsym.c: Update copyright years.
11885 * c-typeprint.c: Likewise.
11886 * dwarf2read.c: Likewise.
11887 * f-typeprint.c: Likewise.
11888 * gdbtypes.c: Likewise.
11889 * gdbtypes.h: Likewise.
11890 * hp-symtab-read.c: Likewise.
11891 * hpread.c: Likewise.
11892 * mdebugread.c: Likewise.
11893 * p-typeprint.c: Likewise.
11894
11895 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11896
11897 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11898 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11899 byte-order selectable.
11900 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11901 * arch-utils.c: Ditto.
11902 (set_endian): Ditto.
11903 (set_endian_from_file): Ditto.
11904 * gdbserver/low-sim.c (create_inferior): Ditto.
11905 * gdbarch.sh: Ditto.
11906 * gdbarch.h: Re-generate.
11907 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11908 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11909 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11910 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11911 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11912 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11913 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11914 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11915 macro definition.
11916 * config/mips/tm-wince.h: Remove #undef of macro
11917 TARGET_BYTE_ORDER_SELECTABLE.
11918 * config/sh/tm-wince.h: Ditto.
11919
11920 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11921
11922 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11923 member function fields. Add accessor macro
11924 TYPE_FN_FIELD_ARTIFICIAL.
11925 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11926 * c-typeprint.c (c_type_print_base): Skip artificial member
11927 functions.
11928
11929 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11930
11931 * f-typeprint.c: Delete unused function f_type_print_args.
11932 * p-typeprint.c: Delete unused function pascal_type_print_args.
11933
11934 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11935
11936 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11937 comment. Add ``artificial'' to ``union field_location''.
11938
11939 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11940
11941 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11942 * mdebugread.c (parse_symbol): Likewise.
11943 * stabsread.c (define_symbol): Likewise.
11944 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11945 initializing TYPE_FIELD_BITPOS to n (obsolete).
11946 (hpread_doc_function_type): Likewise.
11947 * hpread.c (hpread_function_type): Likewise.
11948
11949 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11950
11951 * configure.in (host_makefile_frag): Only require a host makefile
11952 fragment when a native build.
11953 * configure: Re-generate.
11954
11955 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11956
11957 * doublest.h (floatformat_from_type): Declare.
11958 * doublest.c (floatformat_from_type): New function.
11959 (convert_typed_floating): Use.
11960
11961 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11962 call to function floatformat_from_type.
11963
11964 * gdbarch.sh (IEEE_FLOAT): Delete.
11965 * gdbarch.h, gdbarch.c: Re-generate.
11966 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11967 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11968 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11969 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11970 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11971 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11972 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11973 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11974 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11975 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11976 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11977 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11978
11979 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11980 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11981 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11982 * sh-tdep.c (sh_gdbarch_init): Ditto.
11983 * mips-tdep.c (mips_gdbarch_init): Ditto.
11984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11985 * cris-tdep.c (cris_gdbarch_init): Ditto.
11986
11987 2002-01-20 Jiri Smid <smid@suse.cz>
11988
11989 * configure.host, configure.tgt: Support x86-64.
11990 * NEWS: Note new target x86-64.
11991
11992 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11993 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11994 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11995 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11996 x86-64-linux-nat.o): Fix dependencies.
11997
11998 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11999
12000 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12001 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12002 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12003 * config/sparc/xm-sun4os4.h: Delete file.
12004 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12005
12006 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12007
12008 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12009 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12010 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12011 * config/i386/i386lynx.mh (XM_FILE): Delete.
12012 * config/rs6000/xm-rs6000ly.h: Delete file.
12013 * config/sparc/xm-sparclynx.h: Delete file.
12014 * config/m68k/xm-m68klynx.h: Delete file.
12015 * config/i386/xm-i386lynx.h: Delete file.
12016 * config/xm-lynx.h: Delete file.
12017 * config/djgpp/fnchange.lst: Update.
12018
12019 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12020
12021 * alpha-tdep.c (alpha_register_byte): New function.
12022 (alpha_register_raw_size): Ditto.
12023 (alpha_register_virtual_size): Ditto.
12024 (alpha_skip_prologue_internal): Renamed from
12025 alpha_skip_prologue.
12026 (alpha_skip_prologue): New version that calls
12027 alpha_skip_prologue_internal.
12028 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12029 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12030 second argument from alpha_skip_prologue.
12031 (REGISTER_BYTE): Use alpha_register_byte.
12032 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12033 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12034 (FRAMELESS_FUNCTION_INVOCATION): Use
12035 generic_frameless_function_invocation_not.
12036 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12037 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12038
12039 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12040
12041 * config/mips/xm-news-mips.h: Delete file.
12042 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12043
12044 * config/m88k/xm-m88k.h: Delete file.
12045 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12046 * config/m88k/xm-delta88v4.h: Ditto.
12047 * config/m88k/xm-delta88.h: Ditto.
12048
12049 * config/alpha/xm-fbsd.h: Delete file.
12050 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12051
12052 * config/sparc/xm-sparc.h: Delete file.
12053 * Makefile.in (xm-sun4os4.h): Delete dependency.
12054 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12055 * config/sparc/xm-sun4os4.h: Ditto.
12056 * config/sparc/xm-linux.h: Ditto.
12057
12058 * config/i386/xm-windows.h: Delete file.
12059
12060 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12061
12062 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12063 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12064
12065 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12066
12067 * alpha-tdep.c (alpha_call_dummy_words): New.
12068 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12069 (CALL_DUMMY_P): Define.
12070 (CALL_DUMMY_WORDS): Define.
12071 (SIZEOF_CALL_DUMMY_WORDS): Define.
12072
12073 2002-01-19 Per Bothner <per@bothner.com>
12074
12075 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12076 isn't NULL, which can happen with some gcj-3.x-produced code.
12077
12078 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12079
12080 * alpha-tdep.c (alpha_register_virtual_type): New function.
12081 (alpha_init_frame_pc_first): Ditto.
12082 (alpha_fix_call_dummy): Ditto.
12083 (alpha_store_struct_return): Ditto.
12084 (alpha_extract_struct_value_address): Ditto.
12085 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12086 alpha_register_virtual_type.
12087 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12088 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12089 alpha_extract_struct_value_address.
12090 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12091 (INIT_FRAME_PC): Use init_frame_pc_noop.
12092 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12093
12094 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12095
12096 * i386gnu-nat.c: Include "i386-tdep.h".
12097 (fetch_fpregs): Simplify code dealing with uninitialized floating
12098 point states such that it doesn't require FP7_REGNUM.
12099
12100 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12101
12102 * alpha-tdep.c (frame_extra_info): New.
12103 (alpha_find_saved_regs): Make static. Use
12104 frame->extra_info.
12105 (alpha_frame_init_saved_regs): New function.
12106 (alpha_frame_saved_pc): Use frame->extra_info.
12107 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12108 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12109 (init_extra_frame_info): Rename to...
12110 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12111 (alpha_print_extra_frame_info): New function.
12112 (alpha_frame_locals_address): Ditto.
12113 (alpha_frame_args_address): Ditto.
12114 (alpha_pop_frame): Use frame->extra_info.
12115 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12116 alpha_frame_args_address.
12117 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12118 (alpha_find_saved_regs): Remove prototype.
12119 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12120 (EXTRA_FRAME_INFO): Remove.
12121 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12122 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12123
12124 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12125
12126 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12127 (alpha_cannot_fetch_register): Ditto.
12128 (alpha_cannot_store_register): Ditto.
12129 (alpha_register_convertible): Ditto.
12130 (alpha_use_struct_convention): Ditto.
12131 * config/alpha/tm-alpha.h: Update copyright years.
12132 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12133 (INNER_THAN): Use core_addr_lessthan.
12134 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12135 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12136 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12137 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12138 (FRAME_CHAIN): Remove unnecessary cast.
12139
12140 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12141
12142 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12143 obsolete.
12144
12145 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12146
12147 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12148 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12149 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12150 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12151 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12152 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12153 * x86-64-linux-nat.c: Ditto.
12154
12155 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12156
12157 * alpha-tdep.c (alpha_register_name): New function.
12158 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12159 (REGISTER_NAME): Define.
12160
12161 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12162
12163 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12164
12165 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12166
12167 * alpha-tdep.c: Update copyright years.
12168 (alpha_next_pc): New function.
12169 (alpha_software_single_step): Ditto.
12170 * config/alpha/tm-alpha.h: Add prototype for
12171 alpha_software_single_step.
12172
12173 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12174
12175 * alphabsd-nat.c: Update copyright years.
12176 (fill_gregset): Use regcache_collect.
12177 (fill_fpregset): Likewise.
12178 (fetch_inferior_registers): Only fetch integer registers
12179 if requested to do so.
12180 (store_inferior_registers): Only store integer registers
12181 if requested to do so.
12182
12183 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12184
12185 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12186 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12187 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12188 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12189 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12190 * config/arm/linux.mh (XDEPFILES): Delete.
12191 * config/arm/nbsd.mh (XDEPFILES): Delete.
12192 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12193 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12194 * config/i386/i386m3.mh (XDEPFILES): Delete.
12195 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12196 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12197 * config/i386/fbsd.mh (XDEPFILES): Delete.
12198 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12199 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12200 * config/i386/i386v4.mh (XDEPFILES): Delete.
12201 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12202 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12203 * config/i386/i386aix.mh (XDEPFILES): Delete.
12204 * config/i386/go32.mh (XDEPFILES): Delete.
12205 * config/i386/cygwin.mh (XDEPFILES): Delete.
12206 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12207 * config/i386/i386mach.mh (XDEPFILES): Delete.
12208 * config/i386/i386v32.mh (XDEPFILES): Delete.
12209 * config/i386/linux.mh (XDEPFILES): Delete.
12210 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12211 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12212 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12213 * config/i386/i386sco.mh (XDEPFILES): Delete.
12214 * config/i386/i386v.mh (XDEPFILES): Delete.
12215 * config/i386/nbsd.mh (XDEPFILES): Delete.
12216 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12217 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12218 * config/i386/symmetry.mh (XDEPFILES): Delete.
12219 * config/i386/obsd.mh (XDEPFILES): Delete.
12220 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12221 * config/ia64/linux.mh (XDEPFILES): Delete.
12222 * config/ia64/aix.mh (XDEPFILES): Delete.
12223 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12224 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12225 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12226 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12227 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12228 * config/m68k/linux.mh (XDEPFILES): Delete.
12229 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12230 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12231 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12232 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12233 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12234 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12235 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12236 * config/m88k/delta88.mh (XDEPFILES): Delete.
12237 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12238 * config/m88k/m88k.mh (XDEPFILES): Delete.
12239 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12240 * config/mips/linux.mh (XDEPFILES): Delete.
12241 * config/mips/irix6.mh (XDEPFILES): Delete.
12242 * config/mips/irix5.mh (XDEPFILES): Delete.
12243 * config/mips/irix4.mh (XDEPFILES): Delete.
12244 * config/mips/irix3.mh (XDEPFILES): Delete.
12245 * config/mips/decstation.mh (XDEPFILES): Delete.
12246 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12247 (NATDEPFILES): Move core-aout.o to here.
12248 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12249 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12250 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12251 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12252 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12253 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12254 * config/pa/hpux11.mh (XDEPFILES): Delete.
12255 * config/powerpc/aix.mh (XDEPFILES): Delete.
12256 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12257 * config/powerpc/linux.mh (XDEPFILES): Delete.
12258 * config/romp/rtbsd.mh: Rename XDEPFILES.
12259 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12260 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12261 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12262 * config/s390/s390.mh (XDEPFILES): Delete.
12263 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12264 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12265 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12266 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12267 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12268 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12269 * config/sparc/linux.mh (XDEPFILES): Delete.
12270 * config/vax/vaxult.mh (XDEPFILES): Delete.
12271 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12272 * Makefile.in (DEPFILES): Remove XDEPFILES.
12273
12274 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12275
12276 * utils.c (internal_verror): Fix comments, default is yes not no.
12277 Update queries to match. Default to quit and dump core.
12278
12279 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12280
12281 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12282 copyright.
12283 * defs.h, event-top.c, gdbcmd.h: Ditto.
12284 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12285 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12286 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12287 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12288 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12289 * mi/mi-main.c:Ditto.
12290
12291 * stack.c, symfile.c: Update copyright.
12292
12293 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12294
12295 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12296 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12297 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12298 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12299
12300 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12303 * gdbserver/low-lynx.c (myattach): Likewise.
12304 * gdbserver/low-nbsd.c (myattach): Likewise.
12305 * gdbserver/low-sim.c (myattach): Likewise.
12306 * gdbserver/low-sparc.c (myattach): Likewise.
12307 * gdbserver/low-sun3.c (myattach): Likewise.
12308
12309 * gdbserver/low-linux.c (myattach): New function.
12310
12311 * gdbserver/server.c (attach_inferior): New function.
12312 (main): Handle "--attach".
12313
12314 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12315
12316 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12317 maintainer.
12318
12319 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12320
12321 * c-typeprint.c (is_type_conversion_operator): Add additional
12322 check for non-conversion operators.
12323
12324 2002-01-15 Michael Snyder <msnyder@redhat.com>
12325
12326 * linux-proc.c: Add "info proc" command, a la procfs.c.
12327 (read_mapping): New function, abstract and re-use code.
12328 (linux_find_memory_regions): Use new func read_mapping.
12329 (linux_info_proc_cmd): New function, implement "info proc".
12330 (_initialize_linux_proc): Add new command "info proc".
12331
12332 2002-01-15 Michael Snyder <msnyder@redhat.com>
12333
12334 * symfile.c (generic_load): Use bfd_map_over_sections method
12335 instead of manipulating bfd structure members directly.
12336 (add_section_size_callback): New function, bfd sections callback
12337 used by generic_load.
12338 (load_sections_callback): New function, bfd sections callback
12339 used by generic_load.
12340
12341 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12342
12343 [Based on work by Jim Blandy]
12344 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12345 (builtin_type_vec128): Export.
12346 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12347 types.
12348 (builtin_type_vec128): New builtin type for 128 bit vector
12349 registers.
12350 (build_gdbtypes): Initialize builtin_type_v16qi and
12351 builtin_type_v8hi. Create the vec128 register builtin type
12352 structure.
12353 (build_builtin_type_vec128): New function.
12354 (_initialize_gdbtypes): Register builtin_type_v16qi and
12355 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12356 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12357 AltiVec register to new builtin type.
12358
12359 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12360
12361 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12362 to make_cv_type.
12363
12364 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12365
12366 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12367 CLEAN_UP_REGISTER_VALUE.
12368 * regcache.c (supply_register): Update only call.
12369
12370 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12371
12372 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12373 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12374 a29k-*-vxworks* targets as obsolete.
12375
12376 2002-01-14 Michael Snyder <msnyder@redhat.com>
12377
12378 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12379 until we can resolve portability issues.
12380 * gregset.h: Remove references to fpxregs.
12381 * gcore.c (gcore_command): Initialize note_sec to NULL.
12382
12383 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12384
12385 * signals.c (target_signal_to_name): Rewrite. Only use
12386 signals[].name when in bounds and non-NULL.
12387
12388 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12389
12390 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12391 * signals.c (target_signal_to_name): Verify that SIG is within the
12392 bounds of the signals array.
12393
12394 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12395
12396 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12397
12398 2002-01-13 Keith Seitz <keiths@redhat.com>
12399
12400 * stack.c (print_frame_info_base): Print the frame's pc
12401 only if when print_frame_info_listing_hook is not defined.
12402
12403 2002-01-13 Keith Seitz <keiths@redhat.com>
12404
12405 * varobj.c (varobj_set_value): Make sure that there were no
12406 errors evaluating the object before attempting to set its
12407 value.
12408 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12409 so this offset adjustment is no longer necessary.
12410 (create_child): Don't set the error flag if the child is
12411 a CPLUS_FAKE_CHILD.
12412 (value_of_child): If value_fetch_lazy fails, return NULL
12413 so that callers will be notified that an error occurred.
12414 (c_value_of_variable): Delay check of variable's validity
12415 until later. We actually want all structs and unions to have
12416 the value "{...}".
12417 Do not return "???" for variables which could not be evaluated.
12418 This error condition must be returned to the caller so that it
12419 can get the error condition from gdb.
12420 (cplus_name_of_child): Adjust index for vptr before figuring
12421 out the name of the child.
12422 (cplus_value_of_child): If a child's (real) parent is not valid,
12423 don't even bother trying to give a value for it. Just return
12424 an error. Change all instances in this function.
12425 (cplus_type_of_child): If our parent is one of the "fake"
12426 parents, we need to get at the type of the real parent, and
12427 derive the child's true type using this information.
12428
12429 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12430
12431 From 2002-01-09 John Marshall <johnm@falch.net>:
12432 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12433 sources.redhat.com, and tweak some related URLs which had
12434 suffered from linkrot.
12435
12436 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12437
12438 From Jeff law:
12439 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12440 structures passed in registers.
12441
12442 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12443
12444 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12445 white space which prevented compilation. Reported by DSK
12446 <dsk@student.unsw.edu.au>.
12447
12448 2002-01-11 Michael Snyder <msnyder@redhat.com>
12449
12450 * symfile.c (build_section_addr_info_from_section_tab):
12451 Use bfd access method instead of manipulating bfd directly.
12452 (syms_from_objfile): Ditto.
12453 (simple_overlay_update_1): Ditto.
12454 (simple_overlay_update): Ditto.
12455 (generic_load): Ditto.
12456 (overlay_unmapped_address): FIXME comment, bfd access methods.
12457 (sections_overlap): FIXME comment, bfd access methods.
12458 (pc_in_mapped_range): FIXME comment, bfd access methods.
12459 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12460 (section_is_mapped): FIXME comment, bfd access methods.
12461 (section_is_overlay): FIXME comment, bfd access methods.
12462
12463 * symfile.c (generic_load): Whitespace and long line cleanups.
12464 Remove duplicate variable, change several local variables to
12465 more appropriate data types.
12466 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12467
12468 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12469
12470 From Peter Schauer:
12471 * language.c (longest_local_hex_string_custom): Use phex_nz to
12472 convert NUM to a hex string.
12473
12474 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12475
12476 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12477 the function.
12478 Update Copyright year.
12479
12480 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12481
12482 * language.c (longest_raw_hex_string): Delete unused function.
12483
12484 2002-01-11 Petr Sorfa <petrs@caldera.com>
12485
12486 * MAINTAINERS (write-after-approval): Add myself.
12487 * dwarf2read.c (read_tag_string_type): Handling of
12488 DW_AT_byte_size.
12489 (read_tag_string_type): FORTRAN fix to prevent propagation of
12490 first string size.
12491 (set_cu_language): Handling of DW_LANG_Fortran95
12492
12493 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12494
12495 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12496 GETPID(inferior_ptid).
12497 (store_inferior_registers): Likewise.
12498
12499 2002-01-10 Jason Merrill <jason@redhat.com>
12500
12501 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12502 Fix DW_OP_minus.
12503
12504 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12505
12506 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12507 and bfd/elf32-sh-nbsd.c.
12508
12509 2002-01-10 Michael Snyder <msnyder@redhat.com>
12510
12511 * NEWS: Mention --pid and corefile/proc-id behavior change.
12512
12513 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12514 * gcore.c: Include cli/cli-decode.h instead of command.h.
12515
12516 * main.c (captured_main): Add new command line option "--pid".
12517 If the second command line argument (following the symbol-file)
12518 begins with a digit, try to attach to it before trying to open
12519 it as a corefile.
12520 (print_gdb_help): Document the "--pid" argument.
12521
12522 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12523
12524 * completer.c (command_completer): New function.
12525
12526 * completer.h <command_completer>: Add prototype.
12527
12528 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12529 completer for the "help" command.
12530
12531 2002-01-09 Jason Merrill <jason@redhat.com>
12532
12533 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12534
12535 2002-01-09 Michael Snyder <msnyder@redhat.com>
12536
12537 * i386-linux-nat.c (fill_fpxregset): Make global.
12538 (store_fpxregset): Ditto.
12539
12540 * gregset.h (gdb_fpxregset_t): Define.
12541 (supply_fpxregset): Prototype.
12542 (fill_fpxregset): Prototype.
12543
12544 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12545
12546 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12547
12548 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12549 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12550 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12551
12552 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12553
12554 * MAINTAINERS: Update target maintainer rules so that any
12555 Maintainer can approve a tested patch for a maintenance-only
12556 target.
12557
12558 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12559
12560 * MAINTAINERS (write-after-approval): Add myself.
12561
12562 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12563 IN_SIGTRAMP.
12564
12565 2002-01-08 Michael Snyder <msnyder@redhat.com>
12566
12567 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12568 real name of the executable, rather than the /proc name.
12569
12570 2002-01-03 Michael Snyder <msnyder@redhat.com>
12571
12572 Implement a "generate-core-file" command in gdb, save target state.
12573 * gcore.c: New file. Implement new command 'generate-core-file'.
12574 Save a corefile image of the current state of the inferior.
12575 * linux-proc.c: Add linux-specific code for saving corefiles.
12576 * target.h (struct target_ops): Add new target vectors for saving
12577 corefiles; to_find_memory_regions and to_make_corefile_notes.
12578 (target_find_memory_regions): New macro.
12579 (target_make_corefile_notes): New macro.
12580 * target.c (update_current_target): Inherit new target methods.
12581 (dummy_find_memory_regions): New place-holder method.
12582 (dummy_make_corefile_notes): New place-holder method.
12583 (init_dummy_target): Initialize new dummy target vectors.
12584 * exec.c (exec_set_find_memory_regions): New function.
12585 Allow the exec_ops vector for memory regions to be taken over.
12586 (exec_make_note_section): New function, target vector method.
12587 * defs.h (exec_set_find_memory_regions): Export prototype.
12588 * procfs.c (proc_find_memory_regions): New function, corefile method.
12589 (procfs_make_note_section): New function, corefile method.
12590 (init_procfs_ops): Set new target vector pointers.
12591 (find_memory_regions_callback): New function.
12592 (procfs_do_thread_registers): New function.
12593 (procfs_corefile_thread_callback): New function.
12594 * sol-thread.c (sol_find_memory_regions): New function.
12595 (sol_make_note_section): New function.
12596 (init_sol_thread_ops): Initialize new target vectors.
12597 * inftarg.c (inftarg_set_find_memory_regions): New function.
12598 Allow to_find_memory_regions vector to be taken over.
12599 (inftarg_set_make_corefile_notes): New function.
12600 Allow to_make_corefile_notes vector to be taken over.
12601 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12602 interface layer if not target_has_execution (may be a corefile).
12603 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12604 * config/sparc/sun4sol2.mh: Ditto.
12605 * config/alpha/alpha-linux.mh: Ditto.
12606 * config/arm/linux.mh: Ditto.
12607 * config/i386/x86-64linux.mh: Ditto.
12608 * config/ia64/linux.mh: Ditto.
12609 * config/m68k/linux.mh: Ditto.
12610 * config/mips/linux.mh: Ditto.
12611 * config/powerpc/linux.mh: Ditto.
12612 * config/sparc/linux.mh: Ditto.
12613
12614 2002-01-07 Michael Snyder <msnyder@redhat.com>
12615
12616 * arm-linux-nat.c: Remove references to regcache.c internal data
12617 (registers[] and register_valid[]).
12618
12619 2002-01-07 Michael Snyder <msnyder@redhat.com>
12620
12621 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12622 so that attaching to a pid will automatically read the process's
12623 symbol file and shlibs.
12624 * Makefile.in: Add rule for linux-proc.o.
12625 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12626 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12627 * config/arm/linux.mh: Ditto.
12628 * config/i386/linux.mh: Ditto.
12629 * config/i386/x86-64linux.mh: Ditto.
12630 * config/ia64/linux.mh: Ditto.
12631 * config/m68k/linux.mh: Ditto.
12632 * config/mips/linux.mh: Ditto.
12633 * config/powerpc/linux.mh: Ditto.
12634 * config/sparc/linux.mh: Ditto.
12635
12636 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12637
12638 * win32-nat.c: Add i386-tdep.h dependency.
12639
12640 2002-01-07 Michael Snyder <msnyder@redhat.com>
12641
12642 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12643 instead of bfd_get_arch_size. Don't bail out just because
12644 there's no exec_bfd.
12645
12646 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12647 * p-valprint.c (pascal_object_print_value): Ditto.
12648 * somread.c (som_symtab_read): Ditto.
12649 * symfile.c (simple_free_overlay_region_table): Ditto.
12650 * valops.c (value_assign): Ditto.
12651
12652 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12653 use tilde_expand and strerror for opening save-tracepoints file.
12654
12655 * thread-db.c (thread_db_new_objfile): Indendation fix.
12656
12657 * infptrace.c (GDB_MAX_ALLOCA): New define.
12658 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12659 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12660 can be overridden with whatever value is appropriate to the host).
12661 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12662 alloca to allocate potentially large buffer.
12663 * rs6000-nat.c (child_xfer_memory): Ditto.
12664 * symm-nat.c (child_xfer_memory): Ditto.
12665 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12666
12667 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12668
12669 From Nick Clifton <nickc@redhat.com>
12670 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12671
12672 2002-01-07 Michael Snyder <msnyder@redhat.com>
12673
12674 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12675 Don't use exec_bfd if it's NULL.
12676
12677 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12678
12679 * valops.c (value_arg_coerce): Fix formatting.
12680
12681 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12682
12683 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12684 * gnu-nat.c: Ditto.
12685
12686 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12687
12688 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12689 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12690 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12691 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12692 z8k-coff have not been multi-arched. Update z8k-coff build
12693 status.
12694
12695 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12696
12697 * MAINTAINERS: Mark a29k target as obsolete.
12698 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12699 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12700 comments.
12701 * NEWS: Note that a29k targets are obsolete.
12702 * a29k-tdep.c: Mark as obsolete.
12703 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12704 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12705 a29k-*-vxworks* targets as obsolete.
12706 * remote-adapt.c: Obsolete.
12707 * remote-eb.c: Obsolete.
12708 * remote-mm.c: Obsolete.
12709 * remote-udi.c: Obsolete.
12710 * config/a29k/a29k-udi.mt: Obsolete.
12711 * config/a29k/a29k.mt: Obsolete.
12712 * config/a29k/tm-a29k.h: Obsolete.
12713 * config/a29k/tm-vx29k.h: Obsolete.
12714 * config/a29k/vx29k.mt: Obsolete.
12715
12716 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12717
12718 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12719 with BFD_ENDIAN_BIG.
12720
12721 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12722
12723 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12724 * configure, config.in: Re-generate.
12725 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12726 * defs.h: Do not include <endian.h>.
12727
12728 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12729
12730 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12731 * config.in: Regenerate.
12732 * configure.in: Update copyright years.
12733 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12734 * configure: Regenerate.
12735 * i386bsd-nat.c: Update copyright years.
12736 (fill_gregset): Use regcache_collect.
12737 (fetch_inferior_registers): Only fetch integer registers
12738 if requested to do so. Add support for XMM registers
12739 using PT_GETXMMREGS.
12740 (store_inferior_registers): Only store integer registers
12741 if requested to do so. Add support for XMM registers
12742 using PT_SETXMMREGS.
12743 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12744 (store_inferior_registers): Remove.
12745 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12746 (fetch_elfcore_registers): New function.
12747 (i386nbsd_elfcore_fns): New.
12748 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12749 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12750 i386bsd-nat.o.
12751 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12752 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12753 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12754 * config/i386/tm-nbsd.h: Update copyright years.
12755 (HAVE_SSE_REGS): Define.
12756 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12757 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12758 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12759 (SIGCONTEXT_PC_OFFSET): Remove.
12760 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12761
12762 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12763
12764 * configure.tgt: Remove powerpc-*-macos* target.
12765 * config/m68k/xm-mpw.h: Delete file.
12766 * config/xm-mpw.h: Delete file.
12767 * ser-mac.c: Delete file.
12768 * mpw-make.sed: Delete file.
12769 * mpw-config.in: Delete file.
12770 * mac-xdep.c: Delete file.
12771 * mac-gdb.r: Delete file.
12772 * mac-defs.h: Delete file.
12773 * mac-nat.c: Delete file.
12774 * config/powerpc/macos.mh: Delete file.
12775 * config/powerpc/macos.mt: Delete file.
12776 * config/powerpc/nm-macos.h: Delete file.
12777 * config/powerpc/tm-macos.h: Delete file.
12778 * source.c (openp, open_source_file): Remove obsolete code.
12779 * top.c (gdb_readline): Ditto.
12780 * utils.c (query): Ditto.
12781 * event-top.c (display_gdb_prompt): Ditto.
12782 * Makefile.in (ser-mac.o): Delete obsolete target.
12783 * NEWS: Update.
12784
12785 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12786
12787 * defs.h (BIG_ENDIAN): Delete macro definition.
12788 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12789 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12790 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12791 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12792 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12793 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12794 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12795 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12796 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12797 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12798 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12799 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12800 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12801 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12802 * gdbarch.c: Re-generate.
12803
12804 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12805
12806 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12807 for core files.
12808
12809 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12810
12811 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12812
12813 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12814
12815 * value.h (value_ptr): Delete typedef.
12816
12817 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12818
12819 * i386nbsd-nat.c: Update copyright years.
12820 Include i386-tdep.h.
12821
12822 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12823
12824 * stabsread.c: Update copyright years.
12825
12826 From Debashis Mahata <debashis.mahata@wipro.com>:
12827 (read_struct_fields): Deal with Sun C compiler erroneous stab
12828 output for structs and unions.
12829 Fix PR gdb/269.
12830
12831 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12832
12833 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12834 prototype.
12835
12836 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12837
12838 * cp-abi.c: Fix whitespace.
12839 (baseclass_offset): New wrapper function.
12840 * cp-abi.h (baseclass_offset): Add prototype.
12841 (struct cp_abi_ops): Add baseclass_offset pointer.
12842
12843 * valops.c (vb_match): Move to...
12844 * gnu-v2-abi.c (vb_match): here.
12845 * valops.c (baseclass_offset): Move to...
12846 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12847
12848 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12849
12850 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12851 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12852 * hpacc-abi.c (init_hpacc_ops): Likewise.
12853
12854 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12855
12856 * valops.c (find_overload_match): Accept obj as a
12857 reference parameter. Update it before returning.
12858 * value.h (find_overload_match): Update prototype.
12859 * eval.c (evaluate_subexp_standard): Pass object to
12860 find_overload_match by reference.
12861
12862 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12863
12864 * valarith.c: Replace value_ptr with struct value pointer. Remove
12865 register attribute from value declarations.
12866 * valops.c: Ditto.
12867 * value.h: Ditto.
12868 * scm-lang.c (scm_lookup_name): Ditto.
12869
12870 2002-01-03 Michael Snyder <msnyder@redhat.com>
12871
12872 Abstract the functionality of iterating over mapped memory
12873 regions into a general purpose iterator function.
12874 * procfs.c (iterate_over_mappings): New function, general purpose
12875 iterator for memory sections.
12876 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12877 (solib_mappings_callback): New function, callback for above.
12878 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12879 (info_mappings_callback): New function, callback for above.
12880
12881 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12882
12883 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12884
12885 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12886 * i386-tdep.c: Include "elf-bfd.h".
12887 (process_note_abi_tag_sections): New function.
12888 (i386_gdbarch_init): Add code to recognize various OS/ABI
12889 combinations.
12890
12891 * maint.c (_initialize_maint_cmds): Add missing \ in
12892 string-literal.
12893
12894 For older changes see ChangeLog-2001
12895 \f
12896 Local Variables:
12897 mode: change-log
12898 left-margin: 8
12899 fill-column: 74
12900 version-control: never
12901 End: