* PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2
3 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
4
5 2002-11-07 Andrew Cagney <ac131313@redhat.com>
6
7 * regcache.c (deprecated_registers_fetched): Update.
8 * regcache.h (deprecated_registers_fetched): Rename
9 registers_fetched.
10 * remote-vxsparc.c (vx_read_register): Update.
11 * remote-vxmips.c (vx_read_register): Update.
12 * remote-vx68.c (vx_read_register): Update.
13 * irix5-nat.c (fetch_core_registers): Update.
14 * mipsm3-nat.c (fetch_inferior_registers): Update.
15 * sun3-nat.c (fetch_inferior_registers): Update.
16 * symm-nat.c (fetch_inferior_registers): Update.
17 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
18 (fetch_core_registers): Update.
19 (fetch_kcore_registers): Update.
20 * mips-nat.c (fetch_inferior_registers): Update.
21 * corelow.c (get_core_registers): Update.
22 * a68v-nat.c (fetch_inferior_registers): Update.
23
24 2002-11-06 Joel Brobecker <brobecker@gnat.com>
25
26 Put in place the framework necessary for multiarching the hppa targets.
27 * hppa-tdep.c (hppa_gdbarch_init): New function.
28 (hppa_dump_tdep): New function.
29 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
30 tdep structure dumper.
31 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
32 until the multi-arching conversion has partially been completed.
33
34 2002-11-06 Andrew Cagney <ac131313@redhat.com>
35
36 * valops.c (value_assign): Merge lval_register case into
37 lval_reg_frame_relative. Use frame_register and
38 regcache_cooked_write instead of get_saved_register and
39 write_register_bytes. After flushing the register cache, try to
40 re-select the selected frame.
41
42 2002-11-06 Andrew Cagney <ac131313@redhat.com>
43
44 * regcache.h (deprecated_register_valid): Rename register_valid.
45 * regcache.c: Update.
46 * ia64-aix-nat.c: Update.
47 * i386gnu-nat.c: Update.
48 * alpha-nat.c: Update.
49 * sparc-nat.c: Update.
50 * lynx-nat.c: Update.
51 * remote-mips.c: Update.
52
53 2002-11-06 Joel Brobecker <brobecker@gnat.com>
54
55 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
56 to end of file, to be more consistent with the pratice followed
57 by other targets.
58
59 2002-11-06 Andrew Cagney <ac131313@redhat.com>
60
61 * infcmd.c: Include "reggroups.h" and <ctype.h>.
62 (print_float_info): Print registers in float_reggroup.
63 (print_vector_info): Print registers in vector_reggroup.
64 (default_print_registers_info): When all, print registers in
65 all_reggroup. Otherwize, print registers in general_reggroup.
66 (registers_info): Rewrite. Add support for register groups.
67 Eliminate a goto.
68
69 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
70
71 * symtab.c (methods_info): Delete. It has been ifdeffed out for
72 ages.
73 (symtab_symbol_info): Remove eons old ifdeffed out code.
74 (_initialize_symtab): Remove prehistoric disabled 'info methods'
75 command.
76
77 2002-11-06 Theodore A. Roth <troth@openavr.org>
78
79 * c-exp.y: Add missing semi-colons.
80 * f-exp.y: Add missing semi-colons.
81 * m2-exp.y: Add missing semi-colons.
82 * p-exp.y: Add missing semi-colons.
83 Add empty action to start rule to avoid a type clash error when
84 building with bison >= 1.50.
85
86 2002-11-06 Jim Blandy <jimb@redhat.com>
87
88 * macrotab.h (struct macro_source_file): Doc fix.
89
90 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
91
92 * varobj.c (child_exists, cplus_number_of_children): Change
93 STREQ macro references to strcmp.
94 (cplus_name_of_child): Change code to handle the fact that
95 fields are not necessarily contiguous with regards to their
96 access control. This is a fix for PR gdb/792.
97
98 2002-11-05 Andrew Cagney <ac131313@redhat.com>
99
100 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
101 * gdbarch.h, gdbarch.c: Regnerate.
102 * frame.h (frame_register): Declare.
103 * frame.c (frame_register): New function.
104 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
105 GET_SAVED_REGISTER, otherwize call
106 generic_unwind_get_saved_register.
107 (frame_register_read): Use frame_register instead of
108 get_saved_register.
109
110 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
111
112 From Jim Ingham <jingham@apple.com>:
113 * event-top.c (gdb_disable_readline): New function.
114 (_initialize_event_loop): Move comment.
115
116 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
117
118 * event-loop.c (start_event_loop): Add comment.
119 Update copyright.
120
121 2002-11-05 Andrew Cagney <ac131313@redhat.com>
122
123 * infcmd.c (default_print_registers_info): Do not call
124 PRINT_REGISTER_HOOK.
125
126 2002-11-05 Andrew Cagney <ac131313@redhat.com>
127
128 * sparc-tdep.c (sparc_print_register_hook): Make static.
129 (sparc_print_registers_info): New function.
130 (sparc_do_registers_info): New function.
131 (sparclet_print_registers_info): New function.
132 (sparclet_do_registers_info): New function.
133 (do_sparc_print_registers_info): New function.
134 (sparc_print_registers): New static function, clone of infcmd.c's
135 default_print_registers_info.
136 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
137 (sparclet_do_registers_info): Declare.
138 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
139 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
140 Re-define.
141 (sparc_do_registers_info): Declare.
142 (PRINT_REGISTER_HOOK): Delete macro.
143 (sparc_print_register_hook): Delete declaration.
144
145 2002-11-05 David Carlton <carlton@math.stanford.edu>
146
147 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
148 functions.
149 (lookup_symbol_aux_local): New function.
150 (lookup_symbol_aux_symtabs): New function.
151 (lookup_symbol_aux_psymtabs): New function.
152
153 2002-11-05 David Carlton <carlton@math.stanford.edu>
154
155 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
156 previous values of 'objfile' and 'block'.
157
158 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
159
160 * values.c (value_change_enclosing_type): Set
161 enclosing_type field correctly also for the case where
162 more memory needs to be allocated.
163
164 2002-11-03 Mark Kettenis <kettenis@gnu.org>
165
166 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
167 of puts_filtered.
168
169 * i387-tdep.c (i387_print_float_info): Replace calls to
170 register_read and deprecated_read_register_gen with calls to
171 frame_register_read, and make the necessary adjustments to the
172 surrounding code.
173
174 2002-11-02 Andrew Cagney <ac131313@redhat.com>
175
176 * gdbarch.sh (register_reggroup_p): Allow default value.
177 * gdbarch.h, gdbarch.c: Regenerate.
178
179 2002-11-02 Andrew Cagney <ac131313@redhat.com>
180
181 * regcache.h: Add coment indicating replacements for deprecated
182 functions.
183
184 2002-11-02 Andrew Cagney <cagney@redhat.com>
185
186 * reggroups.h, reggroups.c: New files.
187 * regcache.c: Include "reggroups.h".
188 (enum regcache_dump_what): Add `regcache_dump_groups'.
189 (regcache_dump): Contract size of the "Type" column. When
190 specified, dump the register's groups.
191 (maintenance_print_register_groups): New function.
192 (_initialize_regcache): Add command `maint print register-groups'.
193 * Makefile.in (COMMON_OBS): Add reggroups.o
194 (SFILES): Add reggroups.c.
195 (reggroups_h): Define.
196 (regcache.o, gdbarch.o): Update dependencies.
197 (reggroups.o): Specify dependencies.
198 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
199 Add opaque declaration for `struct reggroup' in generated .h file.
200 Include "reggroups.h" in generated .c file.
201 gdbarch.h, gdbarch.c: Re-generate.
202
203 2002-11-02 Andrew Cagney <cagney@redhat.com>
204
205 * regcache.h (deprecated_read_register_gen): Rename
206 read_register_gen.
207 (deprecated_write_register_gen): Rename write_register_gen.
208 * i387-tdep.c: Update.
209 * x86-64-linux-nat.c: Update
210 * wince.c: Update.
211 * thread-db.c: Update.
212 * win32-nat.c: Update.
213 * mips-tdep.c: Update.
214 * d10v-tdep.c: Update.
215 * cris-tdep.c: Update.
216 * remote-sim.c: Update.
217 * remote-rdi.c: Update.
218 * remote-rdp.c: Update.
219 * frame.c: Update.
220 * target.c: Update.
221 * blockframe.c: Update.
222 * x86-64-tdep.c: Update.
223 * xstormy16-tdep.c: Update.
224 * sh-tdep.c: Update.
225 * s390-tdep.c: Update.
226 * rs6000-tdep.c: Update.
227 * sparc-tdep.c: Update.
228 * i386-tdep.c: Update.
229 * dwarf2cfi.c: Update.
230 * regcache.c: Update.
231
232 2002-11-01 Joel Brobecker <brobecker@gnat.com>
233
234 New interix-specific files:
235 * config/i386/nm-interix.h: New file.
236 * config/i386/interix.mh: New file.
237 * config/i386/interix.mt: New file.
238 * i386-interix-nat.c: New file.
239 * i386-interix-tdep.c: New file.
240
241 2002-11-01 Andrew Cagney <cagney@redhat.com>
242
243 * frame.h (deprecated_generic_get_saved_register): Rename
244 generic_get_saved_register.
245 * blockframe.c (deprecated_generic_get_saved_register): Update.
246 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
247 (xstormy16_frame_saved_register): Update.
248 * sh-tdep.c (sh_gdbarch_init): Update.
249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
250 * ia64-tdep.c (ia64_get_saved_register): Update.
251 * cris-tdep.c (cris_gdbarch_init): Update.
252 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
253 * arm-tdep.c (arm_gdbarch_init): Update.
254
255 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
256
257 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
258
259 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
260
261 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
262 trampolines in sigaction.
263
264 2002-10-31 Andrew Cagney <cagney@redhat.com>
265
266 * h8300-tdep.c: Include "gdb_assert.h".
267 (h8300_print_register): Add gdbarch, file and frame parameters.
268 Use frame_read_unsigned_register to read the register's value.
269 Use fprintf_filtered to display output.
270 (h8300_print_registers_info): Replace h8300_do_registers_info.
271 (h8300_gdbarch_init): Set print_registers_info.
272
273 2002-10-31 Andrew Cagney <cagney@redhat.com>
274
275 * frame.c (frame_read_unsigned_register): New function.
276 (frame_read_signed_register): New function.
277 * frame.h (frame_read_unsigned_register): Declare.
278 (frame_read_signed_register): Declare.
279
280 2002-10-31 Andrew Cagney <cagney@redhat.com>
281
282 * h8500-tdep.c (h8500_print_registers_info): New static function,
283 clone of infcmd.c's default_print_registers_info.
284 (h8500_do_registers_info): New funtion.
285 (h8500_print_register_hook): Rename print_register_hook, make
286 static.
287
288 * config/h8500/tm-h8500.h: Update copyright.
289 (DEPRECATED_DO_REGISTERS_INFO): Define.
290 (h8500_do_registers_info: Declare.
291 (PRINT_REGISTER_HOOK): Delete macro.
292 (print_register_hook): Delete function.
293
294 2002-10-31 Andrew Cagney <cagney@redhat.com>
295
296 * z8k-tdep.c (z8k_print_register_hook): Make static.
297 (z8k_print_registers_info): New static function, clone of
298 infcmd.c's default_print_registers_info.
299 (z8k_do_registers_info): New function. Wrap
300 z8k_print_registers_info.
301 * config/z8k/tm-z8k.h: Update copyright.
302 (PRINT_REGISTER_HOOK): Delete macro.
303 (z8k_print_register_hook): Delete declaration.
304 (DEPRECATED_DO_REGISTERS_INFO): Define.
305 (z8k_do_registers_info): Declare.
306
307 2002-10-30 Joel Brobecker <brobecker@gnat.com>
308
309 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
310 as this is already provided by value.h, and was actually causing
311 a compilation error because of a conflict in parameter type
312 declaration due to a missing const keyword.
313 (low_text_segment_addres): Fix a compilation warning.
314
315 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
316
317 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
318 registers without a name.
319 (mips_linux_cannot_store_register): Don't store registers without
320 a name.
321
322 2002-10-28 David Carlton <carlton@math.stanford.edu>
323
324 * symtab.c (find_addr_symbol): Delete. (It was already commented
325 out.)
326 * symtab.h: Delete prototype for find_addr_symbol.
327
328 2002-10-26 Andrew Cagney <cagney@redhat.com>
329
330 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
331 DO_REGISTERS_INFO.
332 gdbarch.h, gdbarch.c: Re-generate.
333 * infcmd.c (default_print_registers_info): Update reference.
334 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
335 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
336 * sh-tdep.c (sh_gdbarch_init): Ditto.
337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
339
340 2002-10-26 Mark Kettenis <kettenis@gnu.org>
341
342 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
343 cfi_init_extra_frame_info.
344 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
345 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
346
347 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
348 target where necessary. Add more comments and remove the ones
349 that don't provide any useful information.
350
351 * i386-tdep.c (i386_frame_saved_pc): Replace call to
352 deprecated_read_register_dummy with
353 frame_unwind_unsigned_register.
354
355 * i386-tdep.c (i386_extract_struct_value_address): Use
356 regcache_raw_read_unsigned instead of
357 regcache_cooked_read_unsigned since we know that the register
358 we're reading isn't a pseudo register. Rename variable 'val' into
359 the more descriptive 'addr'.
360
361 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
362 (x86_64_push_return_address): Add comment.
363 (x86_64_pop_frame): Make static.
364 (examine_argument): Clarify comment.
365 (x86_64_skip_prologue): Make prolog_expact variable static.
366
367 * dwarf2cfi.c: Fix some formatting problems.
368 (context_cpy, read_encoded_pointer): Clarify comments.
369
370 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
371 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
372 i386 target back into x86_64_gdbarch_init. Add some comments and
373 remove meaningless ones.
374
375 2002-10-25 Andrew Cagney <cagney@redhat.com>
376
377 * complaints.h (struct deprecated_complaint): Rename `struct
378 complaint'.
379 * complaints.c (complain): Update.
380 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
381 incorrect comment indicating that "symfile.h" was being included
382 for the `struct complaint' definition.
383 * remote-vx.c: Update.
384 * objc-lang.c: Update.
385 * xcoffread.c: Update.
386 * hpread.c: Update.
387 * mdebugread.c: Update.
388 * stabsread.c: Update.
389 * dwarf2read.c: Update.
390 * dwarfread.c: Update.
391 * elfread.c: Update.
392 * coffread.c: Update.
393 * stabsread.h: Update.
394 * dbxread.c: Update.
395 * buildsym.c: Update.
396 * gdbtypes.c: Update.
397 * macrotab.c: Update.
398
399 2002-10-25 Mark Kettenis <kettenis@gnu.org>
400
401 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
402 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
403 (x86_64_init_abi): ...new function.
404
405 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
406 * i386v-nat.c: Include "i386-tdep.h".
407
408 2002-10-25 Andrew Cagney <cagney@redhat.com>
409
410 * gdbtypes.c (address_space_name_to_int): Update.
411 (address_space_int_to_name): Update.
412 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
413 multi-arch predicate.
414 (address_class_name_to_type_flags): Ditto.
415 * gdbarch.h, gdbarch.c: Re-generate.
416
417 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
418
419 2002-10-24 Martin M. Hunt <hunt@redhat.com>
420
421 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
422
423 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
424
425 * symtab.h (INIT_SAL): Delete macro.
426 (init_sal): Export.
427 * symtab.c (init_sal): New function.
428
429 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
430 to init_sal function call.
431 (find_sal_from_funcs_and_line): Ditto.
432 (all_sals_for_line): Ditto.
433 * breakpoint.c (create_internal_breakpoint): Ditto.
434 (create_fork_vfork_event_catchpoint): Ditto.
435 (create_exec_event_catchpoint): Ditto.
436 (parse_breakpoint_sals): Ditto.
437 (watch_command_1): Ditto.
438 (handle_gnu_4_16_catch_command): Ditto.
439 (clear_command): Ditto.
440 * hppa-tdep.c (child_enable_exception_callback): Ditto.
441 * infcmd.c (run_stack_dummy): Ditto.
442 * infrun.c (process_event_stop_test): Ditto.
443 (check_sigtramp2): Ditto.
444 (step_over_function): Ditto.
445 * linespec.c (decode_line_2): Ditto.
446 (decode_line_1): Ditto.
447 * source.c (line_info): Ditto.
448 * symtab.c (find_pc_sect_line): Ditto.
449
450 2002-10-24 Michal Ludvig <mludvig@suse.cz>
451
452 * dwarf2cfi.c (struct context)
453 (struct context_reg): Moved to dwarf2cfi.h
454 (context_alloc, frame_state_alloc, context_cpy):
455 Made extern instead of static, removed prototypes.
456 * dwarf2cfi.h (struct context)
457 (struct context_reg): New, moved from dwarf2cfi.c
458 (context_alloc, frame_state_alloc, context_cpy):
459 New prototypes.
460 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
461 Changed from static to extern.
462 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
463 (LINUX_SIGCONTEXT_FP_OFFSET)
464 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
465 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
466 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
467 * x86-64-tdep.c (x86_64_gdbarch_init): Several
468 set_gdbarch_*() calls now use x86-64 specific functions
469 instead of DWARF2 CFI ones.
470 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
471 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
472 (x86_64_init_extra_frame_info): New prototypes.
473
474 2002-10-23 David Carlton <carlton@math.stanford.edu>
475
476 * linespec.c: #include "parser-defs.h".
477 Delete prototype for find_template_name_end.
478 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
479
480 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
481
482 * NEWS: add recent mi fixes.
483 * varobj.c (struct varobj): Add new "updated" flag.
484 (new_variable): Default "updated" flag to 0.
485 (varobj_set_value): Set "updated" flag to 1 if value
486 changes.
487 (varobj_update): Check varobj "updated" flag before
488 comparing old and refreshed values. Fix for
489 PR gdb/702.
490
491 2002-10-23 David Carlton <carlton@math.stanford.edu>
492
493 * parse.c (parse_exp_1): Use BLOCK_START.
494 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
495 SYMBOL_BLOCK_VALUE.
496 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
497
498 2002-10-23 David Carlton <carlton@math.stanford.edu>
499
500 * symtab.c: Delete cplusplus_hint.
501 Delete prototype for find_template_name_end.
502
503 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
504
505 * symtab.h: Update comment.
506
507 2002-10-23 Michael Snyder <msnyder@redhat.com>
508
509 * printcmd.c (address_info): Restore quotes in output.
510 * valops.c (value_of_local): Restore quotes in error message.
511
512 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
513
514 * symtab.c (symbol_demangled_name): New function.
515 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
516 turning most of it into a function.
517 (symbol_demangled_name): Export.
518
519 2002-10-23 Michael Snyder <msnyder@redhat.com>
520
521 * valops.c (value_of_local): Restore quotes in error message.
522
523 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
524
525 * symtab.c (symbol_init_language_specific): New function.
526 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
527 turning most of it into a function.
528 (symbol_init_language_specific): Export.
529
530 2002-10-23 David Carlton <carlton@math.stanford.edu>
531
532 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
533 (dwarf_attr_name): Ditto.
534 (dwarf_type_encoding_name): Ditto.
535 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
536 (process_die): Handle DW_TAG_namespace,
537 DW_TAG_imported_declaration, DW_TAG_imported_module.
538 (read_namespace): New function.
539
540 2002-10-22 Joel Brobecker <brobecker@gnat.com>
541
542 * configure.in: Define NEW_PROC_API on Interix too.
543 * configure: Regenerate.
544
545 2002-10-21 Joel Brobecker <brobecker@gnat.com>
546
547 * configure: Regenerate using the proper version of autoconf.
548
549 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
550
551 * findvar.c (read_var_value): Temporarily disable TLS code, until
552 complete TLS support is added.
553
554 2002-10-21 Jim Blandy <jimb@redhat.com>
555 Elena Zannoni <ezannoni@redhat.com>
556
557 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
558 for thread local storage locations.
559 (struct symbol): Add objfile field.
560 (SYMBOL_OBJFILE): Define.
561 * dwarf2read.c (is_thread_local): New static variable.
562 (new_symbol): If variable is in thread local fill in address class
563 and objfile appropriately.
564 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
565 stack operation.
566 * printcmd.c (address_info): Print the information for thread
567 local storage variable.
568 * findvar.c (read_var_value): In case of thread local variable,
569 defer to the target vector code to compute address.
570
571 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
572
573 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
574 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
575
576 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
577
578 * symtab.h (address_class): Rename
579 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
580 * hpread.c (hpread_process_one_debug_symbol): Ditto.
581 * printcmd.c (address_info): Ditto.
582 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
583
584 2002-10-20 Mark Kettenis <kettenis@gnu.org>
585
586 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
587 DBREG_DRX macro to acces debug registers.
588
589 * Makefile.in (i386obsd-tdep.o): New target.
590
591 * solib-sunos.c: Include "bcache.h" and "regcache.h".
592 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
593
594 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
595 * config/i386/obsd.mt: New file.
596 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
597 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
598 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
599 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
600 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
601 * i386obsd-tdep.c: New file.
602
603 2002-10-19 Adam Fedor <fedor@gnu.org>
604
605 * objc-exp.y (name_not_typename): Fix invalid comment.
606
607 2002-10-20 Mark Kettenis <kettenis@gnu.org>
608
609 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
610 to allocate partial syms and macro byte caches.
611
612 2002-10-18 David Carlton <carlton@math.stanford.edu>
613
614 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
615
616 2002-10-18 Adam Fedor <fedor@gnu.org>
617
618 * stabsread.c (find_name_end): New function.
619 (define_symbol): Use it.
620
621 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
622
623 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
624 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
625 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
626 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
627
628 2002-10-17 David Carlton <carlton@math.stanford.edu>
629
630 * symfile.h: Add opaque declaration for struct obstack.
631 Declare obsavestring to take a const char *.
632 * symfile.c (obsavestring): Make first argument a const char *.
633
634 2002-10-16 Adam Fedor <fedor@gnu.org>
635
636 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
637 names when matching breakpoints in current file.
638
639 2002-10-16 Kevin Buettner <kevinb@redhat.com>
640
641 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
642 (read_tag_pointer_type): Add address class support.
643 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
644 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
645 New methods.
646 * gdbarch.h, gdbarch.c: Regenerate.
647 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
648 (make_type_with_address_space, recursive_type_dump): Add address
649 class support.
650 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
651 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
652 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
653
654 2002-10-16 Klee Dienes <kdienes@apple.com>
655
656 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
657 to get the last character of a char[] buffer, not
658 name[sizeof(vptr_name)-1].
659
660 2002-10-14 Adam Fedor <fedor@gnu.org>
661
662 * symtab.h: New objc_specific struct.
663 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
664 (SYMBOL_DEMANGLED_NAME): Likewise.
665
666 2002-10-14 Adam Fedor <fedor@gnu.org>
667
668 * symfile.c (init_filename_language_table): Add ObjC file extension.
669
670 2002-10-14 Adam Fedor <fedor@gnu.org>
671
672 * utils.c (puts_filtered_tabular): New function.
673 (fprintf_symbol_filtered): Get ObjC demangled name.
674 * defs.h (puts_filtered_tabular): Declared.
675
676 2002-10-14 Kevin Buettner <kevinb@redhat.com>
677
678 * c-lang.h (c_type_print_varspec_prefix): Delete.
679 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
680 ``need_post_space'' parameter. Adjust all callers.
681
682 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
683
684 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
685 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
686 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
687 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
688
689 2002-10-13 Adam Fedor <fedor@gnu.org>
690
691 * source.c (print_source_lines): Update comments.
692
693 2002-10-13 Adam Fedor <fedor@gnu.org>
694
695 * valops.c (value_of_local): New function.
696 (value_of_this): Use it.
697 * value.h (value_of_local): Declared.
698
699 2002-10-13 Adam Fedor <fedor@gnu.org>
700
701 * parse.c: (length_of_subexp, prefixify_subexp): Handle
702 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
703
704 2002-10-12 Adam Fedor <fedor@gnu.org>
705
706 * language.c (binop_result_type): Add language_objc to case.
707 (integral_type): Likewise.
708 (character_type): Likewise.
709 (string_type): Likewise.
710 (boolean_type): Likewise.
711 (structured_type): Likewise.
712 (binop_type_check): Likewise.
713
714 2002-10-11 Adam Fedor <fedor@gnu.org>
715
716 * printcmd.c (address_info): Print 'self' for ObjC.
717
718 2002-10-11 Adam Fedor <fedor@gnu.org>
719
720 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
721 OP_SELF.
722
723 2002-10-11 Adam Fedor <fedor@gnu.org>
724
725 * language.h (CAST_IS_CONVERSION): Add language_objc.
726
727 2002-10-11 Adam Fedor <fedor@gnu.org>
728
729 * defs.h (enum language): Add language_objc.
730
731 2002-10-11 Klee Dienes <kdienes@apple.com>
732
733 * corefile.c (read_memory_typed_address): New function.
734 * gdbcore.h (read_memory_typed_address): Add prototype.
735 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
736 to read a value destined for a CORE_ADDR, not read_memory_integer.
737 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
738 (f77_get_dynamic_lowerbound): Ditto.
739
740 2002-10-11 Martin M. Hunt <hunt@redhat.com>
741
742 * utils.c (string_to_core_addr): After turning string into
743 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
744 which will do necessary sign-extension, etc.
745
746 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
747
748 * c-exp.y (THIS): Delete token and grammar rule.
749 (yylex): Don't return THIS.
750 * cp-valprint.c (vtbl_ptr_name_old): Delete.
751 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
752 * demangle.c (cplus_markers): Update comment. Put '$'
753 first. Remove CPLUS_MARKER.
754 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
755 * jv-exp.y (THIS): Delete token and grammar rule.
756 (yylex): Don't return THIS.
757 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
758 * objc-exp.y (THIS): Delete token and grammar rule.
759 (yylex): Don't return THIS.
760 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
761 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
762 (read_member_functions): Likewise for opname.
763 (read_tilde_fields): Use is_cplus_marker.
764
765 * defs.h (CPLUS_MARKER): Don't define.
766 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
767 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
768 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
769 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
770 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
771
772 * config/i386/tm-i386v4.h: Delete file.
773 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
774 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
775 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
776 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
777 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
778 * config/i386/i386sco5.mt (TM_FILE): Likewise.
779 * config/i386/i386v4.mt (TM_FILE): Likewise.
780 * config/i386/ncr3000.mt (TM_FILE): Likewise.
781
782 2002-10-10 Marko Mlinar <markom@opencores.org>
783
784 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
785 accidentially not commited 2002-10-09
786 * gdbarch.h, gdbarch.c: Re-generate.
787
788 2002-10-09 Marko Mlinar <markom@opencores.org>
789
790 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
791 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
792 * gdbarch.h, gdbarch.c: Re-generate.
793
794 2002-10-08 Petr Sorfa <petrs@caldera.com>
795
796 Revised and re-submitted by John Wolfe <jlw@caldera.com>
797
798 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
799 so we can work on more than one compilation unit at a time. This
800 helps prepare GDB to handle inter-CU die references.
801 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
802 the code to be defined before struct comp_unit_head.
803 (comp_unit_head): Added new members - offset, cu_head,
804 begin_die, next and dwarf2_abbrevs.
805 (dwarf2_abbrevs): Removed single static var; now member of
806 struct comp_unit_head.
807 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
808 members.
809 (psymtab_to_symtab_1): Changed to work with the new
810 struct comp_unit_head.
811 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
812 constructs the dwarf2_abbrevs[] inside the cu_header.
813 (dwarf2_empty_abbrev_table): Now expects a ptr to a
814 dwarf2_abbrev table to clean up.
815 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
816 handling of dwarf2_abbrevs inside the cu_header.
817 (read_partial_die): Now supports the call to the new
818 dwarf2_lookup_abbrev.
819 (read_full_die): Now supports the call to the new
820 dwarf2_lookup_abbrev.
821
822 2002-10-06 Christopher Faylor <cgf@redhat.com>
823
824 * Makefile.in (install-gdbtk): Add missing continuation backslash to
825 insure that shell variables, such as "transformed_name" are propagated
826 to later shell statements in rule.
827
828 2002-10-06 Mark Kettenis <kettenis@gnu.org>
829
830 * config/i386/nm-i386sco.h: Add protection against
831 multiple-inclusion. Include "i386/nm-i386v.h".
832 (REGISTER_U_ADDR): Remove define.
833 (i386_register_u_addr): Remove prototype.
834
835 2002-10-04 Michael Snyder <msnyder@redhat.com>
836
837 * m32r-stub.c (handle_exception): Make sure exception is "trap"
838 before treating it as a single-step event.
839
840 2002-10-03 Adam Fedor <fedor@gnu.org>
841
842 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
843 (objc_demangle): Remove assignment in if statements, Replace
844 free with xfree.
845 (add_msglist): Likewise.
846 (end_msglist): Likewise.
847 (complare_selectors): Likewise.
848 (selectors_info): Likewise.
849 (compare_classes): Likewise.
850 (classes_info): Likewise.
851 (print_object_command): Likewise.
852 (find_objc_msgcall_submethod): Replace PTR with void *.
853 * objc-lang.h: Remove check for __STDC__.
854
855 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
856
857 * ui-out.h (ui_out_field_fmt_int): New prototype.
858 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
859 of field width and alignment.
860 * stack.c (print_frame_info_base): When printing frame level, use
861 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
862 PR gdb/192
863
864 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
865
866 * MAINTAINERS: Add self to Write After Approval list.
867
868 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
869
870 * infcmd.c (interrupt_target_command_wrapper): Delete.
871 (interrupt_target_command): Make non static.
872 (nofp_registers_info): Make static.
873 * stack.c (return_command_wrapper): Delete.
874 (return_command): Make non static.
875
876 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
877
878 * event-top.c (gdb_setup_readline): New function. Code moved from
879 _initialize_event_loop().
880 (_initialize_event_loop): Call gdb_setup_readline().
881
882 2002-10-02 Andrew Cagney <ac131313@redhat.com>
883
884 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
885 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
886 * gdbarch.h, gdbarch.c: Re-generate.
887
888 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
889
890 Fix PR gdb/778
891 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
892 before recursing.
893 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
894 of fill_in_vptr_fieldno.
895
896 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
897
898 * inferior.h (registers_info, stepi_command, nexti_command,
899 continue_command, interrupt_target_command): Export from infcmd.c.
900 * frame.h (args_info, selected_frame_level_changed_hook,
901 return_command): Export from stack.c.
902 * v850ice.c (stepi_command, nexti_command, continue_command): use
903 prototypes from inferior.h.
904 * tracepoint.c (registers_info, args_info, locals_info): Use
905 prototypes from frame.h and inferior.h.
906 * Makefile.in (mi-main.o): Add dependency on frame.h.
907
908 2002-10-02 Andrew Cagney <ac131313@redhat.com>
909
910 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
911 value in register 3 adjusted by ppc_gp0_regnum.
912
913 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
914
915 2002-10-02 Marko Mlinar <markom@opencores.org>
916
917 * MAINTAINERS: Add myself to the Write After Approval list.
918
919 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
920
921 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
922 of the section for the N64 ABI, fixed.
923
924 * config/mips/tm-irix6.h: Include solib.h.
925
926 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
927
928 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
929 GNU operators.
930
931 2002-10-01 Andrew Cagney <ac131313@redhat.com>
932
933 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
934 and that "mi0" syntax has been removed.
935
936 2002-09-30 David Carlton <carlton@math.stanford.edu>
937
938 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
939 * ppc-sysv-tdep.c: #include "gdb_string.h".
940 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
941 pacify GCC.
942
943 2002-10-01 Andrew Cagney <ac131313@redhat.com>
944
945 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
946 "vrsave"'s register number.
947
948 2002-09-30 Andrew Cagney <ac131313@redhat.com>
949
950 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
951 use frame_unwind_signed_register to obtain the PC.
952 (mips_frame_chain): Handle a generic dummy frame.
953 (mips_init_extra_frame_info): When a generic dummy frame, don't
954 re-compute the frame base.
955 (mips_pop_frame): Handle generic dummy frames.
956 (mips_gdbarch_init): When generic dummy frames, set
957 use_generic_dummy_frames, push_dummy_frame to
958 generic_push_dummy_frame, pc_in_call_dummy to
959 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
960 generic_save_dummy_frame_tos.
961
962 2002-09-30 Andrew Cagney <ac131313@redhat.com>
963
964 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
965 against TOP when TOP was explictly set.
966 (generic_push_dummy_frame): Set TOP to zero.
967
968 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
969
970 * event-loop.c (start_event_loop): Rename variable 'result' to
971 'gdb_result', to avoid conflicts with upcoming intepreters changes.
972
973 2002-09-30 Keith Seitz <keiths@redhat.com>
974
975 * gdb-events.sh (selected_thread_changed): New event.
976 * gdb-events.c: Regenerated.
977 * gdb-events.h: Regenerated.
978
979 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
980
981 * MAINTAINERS: Add self to Write After Approval list.
982
983 2002-09-30 Fernando Nasser <fnasser@redhat.com>
984
985 * disasm.c: New file.
986 * disasm.h: New file.
987 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
988 (compare_lines): Ditto.
989 (dump_insns): Ditto.
990 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
991 argument.
992 (do_assembly_only): Ditto.
993 (do_disassembly): Renamed to gdb_disassembly and moved to
994 disasm.c. Sdded uiout argument.
995 * Makefile.in: Add new files. Reorder SFILES list. Update
996 dependencies. Include libgdb.a later in the insight executable.
997
998 2002-09-29 Andrew Cagney <ac131313@redhat.com>
999
1000 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1001 bfd/elf64-alpha-fbsd.c.
1002
1003 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1004
1005 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1006 i386gnu-tdep.c.
1007
1008 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1009
1010 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1011 __FUNCTION__.
1012 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1013 function name.
1014 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1015 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1016 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1017 (S_msg_sig_post_reply): Ditto.
1018
1019 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1020
1021 * sh-tdep.c (sh_use_struct_convention): Use definition according
1022 to ABI.
1023 (sh_push_arguments): Store in register with correct endianess.
1024 (sh_default_store_return_value): Ditto.
1025 (sh_gdbarch_init): Set sizeof long double to 8.
1026
1027 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1028
1029 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1030 Fix some whitespace problems.
1031
1032 2002-09-27 David Carlton <carlton@math.stanford.edu>
1033
1034 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1035 (mcore-tdep.o): Ditto.
1036 (ns32k-tdep.o): Ditto.
1037 (ns32knbsd-tdep.o): Ditto.
1038 (sh3-rom.o): Ditto.
1039 (vax-tdep.o): Ditto.
1040 * cris-tdep.c: #include "gdb_string.h"
1041 * mcore-tdep.c: Ditto.
1042 * ns32k-tdep.c: Ditto.
1043 * ns32knbsd-tdep.c: Ditto.
1044 * sh3-rom.c: Ditto.
1045 * vax-tdep.c: Ditto.
1046
1047 2002-09-27 David Carlton <carlton@math.stanford.edu>
1048
1049 * config/djgpp/fnchange.lst: Add entries for
1050 gdb/testsuite/gdb.c++/m-static files.
1051
1052 2002-09-27 Jim Wilson <wilson@redhat.com>
1053
1054 * MAINTAINERS: Add myself to the Write After Approval list.
1055
1056 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1057
1058 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1059
1060
1061 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1062
1063 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1064 frame.
1065
1066 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1067
1068 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1069 (rs6000_struct_return_address): Delete variable.
1070 (rs6000_store_struct_return): Update.
1071 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1072 deprecated_extract_struct_value_address.
1073 (rs6000_frame_align): New function.
1074 (rs6000_gdbarch_init): Set frame_align.
1075
1076 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1077
1078 From Grace Sainsbury <graces@redhat.com>:
1079 * Makefile.in (gdbtk-main.o): New target.
1080 (gdb.o): New target.
1081 (main_h): Define.
1082 (main.o): Update dependencies.
1083 (gdb$(EXEEXT)): Add gdb.o.
1084 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1085 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1086 (SUBDIR_GDBTK_CLEAN): Set.
1087 (install-gdbtk): Install the insight binary.
1088 (uninstall-gdbtk): New target.
1089 (all-gdbtk, clean-gdbtk): New rule.
1090 * top.c (use_windows): Default to zero.
1091 * main.c: Include "main.h".
1092 (main): Delete.
1093 (struct captured_main_args): Delete.
1094 (gdb_main): New function.
1095 * main.h: New file.
1096 * gdb.c: New File.
1097
1098 2002-09-25 Andrew Cagney <cagney@redhat.com>
1099
1100 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1101 (frame_map_regnum_to_name): New function.
1102 (frame_map_name_to_regnum): New function.
1103 * frame.h (frame_map_name_to_regnum): Declare.
1104 (frame_map_regnum_to_name): Declare.
1105 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1106 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1107 * parse.c: Do not include "builtin-regs.h".
1108 (target_map_name_to_register): Delete function.
1109 (write_dollar_variable): Use frame_map_name_to_regnum.
1110 * parser-defs.h (target_map_name_to_register): Delete declaration.
1111 * expprint.c: Include "frame.h".
1112 (print_subexp): Use frame_map_regnum_to_name.
1113 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1114 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1115
1116 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1117
1118 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1119 wasn't saved, and the next innermost frame is a dummy, return the
1120 dummy frame's link register.
1121
1122 2002-09-24 Jim Blandy <jimb@redhat.com>
1123
1124 Fix from Paul Breed:
1125 * main.c (captured_main): Add a `break' after the case for 'b'.
1126
1127 2002-09-24 Keith Seitz <keiths@redhat.com>
1128
1129 * varobj.c (c_type_of_child): Use get_target_type instead
1130 of TYPE_TARGET_TYPE.
1131
1132 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1133
1134 * source.c (get_current_or_default_source_symtab_and_line): Remove
1135 function.
1136 (set_default_source_symtab_and_line): New function. Attempts to
1137 determine a source file to list lines from if one is not currently
1138 defined.
1139 (get_current_source_symtab_and_line): Initialize sal.pc and
1140 sal.end fields.
1141 (set_current_source_symtab_and_line): Mark argument as const.
1142 * source.h: Update declarations and comments.
1143 * linespec.c (decode_line_1): Replace call to removed routine above.
1144 * stack.c (print_frame_info_base): Ditto.
1145 * cli/cli-cmds.c (edit_command): Ditto.
1146 (list_command): Ditto.
1147
1148 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1149
1150 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1151 sal.pc and sal.end fields.
1152 (get_current_or_default_source_symtab_and_line): Ditto.
1153 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1154 so we do not cause a new source symtab to be searched for (reverting an
1155 unintentional change from the 2002-09-20 patch).
1156 * scm-lang.c (scm_unpac): Ditto.
1157
1158 2002-09-21 Andrew Cagney <cagney@redhat.com>
1159
1160 * complaints.c (symfile_explanations): Remove new-line from
1161 ``isolated_message''.
1162 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1163 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1164
1165 2002-09-20 Nick Clifton <nickc@redhat.com>
1166
1167 * NEWS: Announce that V850EA ISA is no longer supported.
1168 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1169
1170 2002-09-20 David Carlton <carlton@math.stanford.edu>
1171
1172 * Makefile.in (c-lang.o): Correct dependencies.
1173 (utils.o): Gather dependencies.
1174 (charset.o): Move.
1175 * c-lang.c: #include "gdb_string.h"
1176
1177 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1178
1179 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1180 * cli/cli-cmds.c (list_command): New function. Implements the new
1181 cli edit command.
1182 (_init_cli_cmds): Add new command definition.
1183 * gdb.1: Document edit command.
1184 * doc/gdb.texinfo: Document edit command.
1185
1186 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1187
1188 * source.c: Make global variables current_source_symtab and
1189 current_source_line static.
1190 (list_command): Moved to cli/cli-cmds.c.
1191 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1192 (get_first_line_listed): New accessor function.
1193 (get_lines_to_list): New accessor function.
1194 (get_current_source_symtab_and_line): New function. Retrieves the
1195 position in the source code that we consider current.
1196 (get_current_or_default_source_symtab_and_line): New function.
1197 Like the above but attempts to determine a default position if one
1198 is not currently defined.
1199 (set_current_source_symtab_and_line): New function. Sets the source
1200 code position considered current and returns the previously set one.
1201 (clear_current_source_symtab_and_line): Reset stored information about
1202 a current source line.
1203 (_initialize_source): Remove registration for the "list" command and
1204 its alias.
1205 * source.h: Add declarations for the new functions above.
1206 * symtab.h: Remove declarations for the global variables mentioned
1207 above.
1208 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1209 obtain current source line.
1210 * linespec.c (decode_line_1): Ditto.
1211 * macroscope.c (default_macro_scope): Ditto.
1212 * scm-lang.c (scm_unpac): Ditto.
1213 * stack.c (print_frame_info_base): Ditto.
1214 * symfile.c (clear_symtab_users): Ditto.
1215 * symtab.c (decode_line_spec): Ditto.
1216 * cli/cli-cmds.c (list_command): Moved here from source.c.
1217 (ambiguous_line_spec): Moved here from source.c.
1218 (_init_cli_cmds): Add definition for "list" and its alias.
1219 * Makefile.in: Update dependencies.
1220
1221 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1222
1223 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1224 with what gcc thinks is correct.
1225
1226 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1227
1228 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1229 multiple register push instruction.
1230
1231 2002-09-19 Jim Blandy <jimb@redhat.com>
1232
1233 Add support for distinct host and target character sets.
1234 * charset.c, charset.h: New files.
1235 * c-exp.y: #include "charset.h".
1236 (yylex): Convert character and string literals to the target
1237 character set, before returning them as the semantic value of the
1238 token.
1239 * c-lang.c: #include "charset.h".
1240 (c_emit_char): Use charset-specific methods to recognize
1241 characters with backslash escape forms, to decide which characters
1242 to print literally and which to print using numeric escape
1243 sequences, and to convert target characters to host characters
1244 before printing.
1245 * utils.c: #include "charset.h".
1246 (no_control_char_error): New function.
1247 (parse_escape): Use charset-specific methods to recognize
1248 backslash escapes, parse `control character' notation, and convert
1249 characters from the host character set to the target character set.
1250 * configure.in: Set the default host character set.
1251 Check where to find iconv, and what its argument types might be.
1252 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1253 * Makefile.in (SFILES): List charset.c.
1254 (COMMON_OBS): List charset.o.
1255 (charset.o): New rule.
1256 (charset_h): New header dependency variable.
1257 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1258 (LIBICONV): New variable, set by configure.
1259 (CLIBS): Include $(LIBICONV) here.
1260 * aclocal.m4, config.in, configure: Regenerated.
1261
1262 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1263
1264 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1265 bison 1.35 warning.
1266
1267 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1268
1269 * gdb_mbuild.sh: New file.
1270
1271 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1272
1273 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1274
1275 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1276
1277 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1278 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1279 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1280 valops.c, value.h: Revert previous change.
1281
1282 2002-09-18 Michael Snyder <msnyder@redhat.com>
1283
1284 Preliminary support for Objective-C:
1285 * defs.h (language_objc): New enum value.
1286 (puts_filtered_tabular): Declaration only, exported from utils.c.
1287 (skip_quoted): Delete, declared in completer.h.
1288 * c-exp.y: Include completer.h.
1289 * p-exp.y: Ditto.
1290 * jv-exp.y: Ditto.
1291 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1292 New operator enum values.
1293 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1294 * language.c (binop_result_type): Handle language_objc case.
1295 (integral_type, character_type, string_type, boolean_type,
1296 structured_type, binop_type_check): Ditto.
1297 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1298 (struct objc_specific): Add to general_symbol_info.
1299 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1300 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1301 * parser-defs.h (struct objc_class_str): New struct type.
1302 (start_msglist, end_msglist, add_msglist): Declaration only,
1303 exported from objc-lang.c.
1304 * value.h (value_of_local, value_nsstring,
1305 call_function_by_hand_expecting_type): Exported from valops.c.
1306 * valops.c (find_function_addr): Export.
1307 (call_function_by_hand_expecting_type): New function.
1308 (value_of_local): New function.
1309 * symfile.c (init_filename_language_table): Add ".m" extension
1310 for Objective-C.
1311 * utils.c (puts_filtered_tabular): New function.
1312 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1313 (set/show demangle): Extend help-string to refer to ObjC.
1314 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1315 * stabsread.c (symbol_reference_defined): Objective-C symbols
1316 may contain colons: make allowances when scanning stabs strings
1317 for colons.
1318 (objc_find_colon): New function.
1319 * printcmd.c (address_info): If language == objc then print
1320 "self" instead of "this".
1321 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1322 OP_NSSTRING, and OP_SELF.
1323 (prefixify_subexp): Ditto.
1324 * source.c (print_source_lines): Mention objc in comment.
1325 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1326 method names.
1327
1328 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1329
1330 * complaints.h: Update copyright.
1331 (struct complaints): Declare.
1332 (struct complaint): Make `message' constant.
1333 (internal_complaint): Declare.
1334 (complaint): Declare.
1335 (complaint_root): Delete declaration.
1336 (symfile_complaints): Delete declaration.
1337 (struct complaints): Add opaque declaration.
1338 (clear_complaints): Add a complaints parameter.
1339 * complaints.c: Update copyright.
1340 (enum complaint_series): Define.
1341 (complaint_root): Delete.
1342 (struct complaints): Define.
1343 (complaint_sentinel, symfile_complaint_book): New variables.
1344 (symfile_explanations, symfile_complaints): New variables.
1345 New variables.
1346 (get_complaints): New function.
1347 (vcomplaint): New function.
1348 (complaint): New function.
1349 (internal_complaint): New function.
1350 (complain): Call vcomplain with symfile_complaint.
1351 (clear_complaints): Rewrite.
1352 (_initialize_complaints): Use add_setshow_command.
1353 * Makefile.in (complaints.o): Update dependencies.
1354 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1355 to call to clear_complaints.
1356 (new_symfile_objfile, reread_symbols): Ditto.
1357 (oldsyms_complaint): Delete.
1358 (empty_symtab_complaint, unknown_option_complaint): Delete.
1359 (free_named_symtabs): Use complaint instead of complain.
1360
1361 2002-09-18 Michael Snyder <msnyder@redhat.com>
1362
1363 Contributed by Apple Computer, Inc. Merged with current sources
1364 by Adam Fedor <fedor@doc.com> [cagney].
1365
1366 * objc-lang.c: First clean-up round: comments, indentation.
1367 * objc-lang.h: Ditto.
1368 * objc-lang.y: Ditto.
1369
1370 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1371
1372 * maint.c (maintenance_internal_error): Print the parameter as the
1373 error message.
1374 (maintenance_internal_warning): New function.
1375 (_initialize_maint_cmds): Add command `maint internal-warning'.
1376
1377 * defs.h (internal_warning, internal_vwarning): Declare.
1378 * utils.c (struct internal_problem): Define.
1379 (internal_vproblem): New function.
1380 (internal_warning): New function.
1381 (internal_vwarning): New function.
1382 (internal_warning_problem, internal_error_problem): New variables.
1383 (internal_verror): Just call internal_vproblem.
1384
1385 2002-09-18 Michael Snyder <msnyder@redhat.com>
1386
1387 * objc-lang.c: New file, support for Objective-C.
1388 Preliminary check-in, not yet integrated into gdb.
1389 * objc-lang.h: New file.
1390 * objc-exp.y: New file.
1391
1392 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1393
1394 * infrun.c (signal_stop_update): Convert definition to ISO C.
1395 (signal_print_update): Ditto.
1396 (signal_pass_update): Ditto.
1397 * inflow.c (terminal_save_ours): Ditto.
1398
1399 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1400 comments.
1401
1402 * config/djgpp/fnchange.lst: Handle name clashes between
1403 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1404 bfd/coff-tic80.c.
1405
1406 * i386-linux-tdep.h: Fix tipo.
1407
1408 2002-09-18 Adam Fedor <fedor@gnu.org>
1409
1410 * MAINTAINERS: Add myself to the Write After Approval list.
1411
1412 2002-09-18 Jim Blandy <jimb@redhat.com>
1413
1414 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1415 texthigh and textlow to reader-specific structs caused
1416 objfile_relocate to miss them. This is fixable, but the work that
1417 the change was supposed to prepare GDB for never got done anyway.
1418
1419 2002-09-18 David Carlton <carlton@math.stanford.edu>
1420
1421 * MAINTAINERS: Alphabetize Write After Approval list.
1422
1423 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1424
1425 Fix PR gdb/709
1426 * values.c (value_static_field): Call read_var_value.
1427
1428 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1429
1430 * valops.c (hand_function_call): Align the initial stack pointer
1431 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1432 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1433 return value.
1434 * mips-tdep.c (mips_frame_align): New function.
1435 (mips_gdbarch_init): Set frame_align.
1436 * gdbarch.sh (FRAME_ALIGN): New method.
1437 * gdbarch.h, gdbarch.c: Re-generate.
1438
1439 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1440
1441 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1442 registers.
1443
1444 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1445
1446 * NEWS: Mention that MIPS $fp behavior changed.
1447 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1448 reference to FP_REGNUM.
1449 (mipsnbsd_cannot_store_register): Ditto.
1450 * mips-linux-nat.c: Update copyright.
1451 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1452 (mips_linux_cannot_store_register): Ditto.
1453 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1454 * config/mips/tm-mips.h: Update copyright.
1455 (FP_REGNUM): Delete macro.
1456 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1457 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1458 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1459 (mips_r3041_reg_names, mips_r3051_reg_names)
1460 (mips_r3081_reg_names): Replace "fp" with "".
1461 Fix PR gdb/480.
1462
1463 2002-09-17 Theodore A. Roth <troth@verinet.com>
1464
1465 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1466 generic_read_register_dummy() (PR gdb/703).
1467 (avr_push_return_address): #if 0 out unused vars.
1468 (avr_gdbarch_init): Enable use of avr_push_return_address().
1469
1470 2002-09-17 Michael Snyder <msnyder@redhat.com>
1471
1472 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1473 RTE will take care of it.
1474
1475 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1476
1477 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1478 invalid, return SP_REGNUM.
1479
1480 2002-09-17 Michael Snyder <msnyder@redhat.com>
1481
1482 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1483 point registers without sign extension.
1484
1485 2002-09-17 Andrew Cagney <cagney@redhat.com>
1486
1487 * blockframe.c (deprecated_read_register_dummy): Rename
1488 generic_read_register_dummy.
1489 * frame.c (frame_unwind_signed_register): New function.
1490 (frame_unwind_unsigned_register): New function.
1491 * frame.h (frame_unwind_signed_register): Declare.
1492 (frame_unwind_unsigned_register): Declare.
1493 (deprecated_read_register_dummy): Rename
1494 generic_read_register_dummy.
1495
1496 * h8300-tdep.c (h8300_frame_chain): Update.
1497 (h8300_frame_saved_pc): Update.
1498 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1499 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1500 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1501 (s390_frame_chain): Update.
1502 * v850-tdep.c (v850_find_callers_reg): Update.
1503 (v850_frame_saved_pc): Update.
1504 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1505 (m32r_find_callers_reg): Update.
1506 (m32r_frame_saved_pc): Update.
1507 * sh-tdep.c (sh_find_callers_reg): Update.
1508 (sh64_get_saved_pr): Update.
1509 (sh_init_extra_frame_info): Update.
1510 (sh_init_extra_frame_info): Update.
1511 (sh64_init_extra_frame_info): Update.
1512 (sh64_init_extra_frame_info): Update.
1513 * mcore-tdep.c (mcore_find_callers_reg): Update.
1514 (mcore_frame_saved_pc): Update.
1515 (mcore_init_extra_frame_info): Update.
1516 * i386-tdep.c (i386_frame_saved_pc): Update.
1517 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1518 (ia64_init_extra_frame_info): Update.
1519 (ia64_init_extra_frame_info): Update.
1520 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1521 * cris-tdep.c (cris_init_extra_frame_info): Update.
1522 * avr-tdep.c (avr_frame_chain): Update.
1523 (avr_init_extra_frame_info): Update.
1524 (avr_frame_saved_pc): Update.
1525 * arm-tdep.c (arm_find_callers_reg): Update.
1526 (arm_init_extra_frame_info): Update.
1527 (arm_frame_saved_pc): Update.
1528
1529 2002-09-17 Tom Tromey <tromey@redhat.com>
1530
1531 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1532 is "'".
1533
1534 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1535
1536 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1537 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1538 NEXT_PROLOGUE_INSN.
1539 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1540 NEXT_PROLOGUE_INSN.
1541
1542 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1543
1544 * osfsolib.c: Remove file, replaced by solib-osf.c.
1545 * Makefile.in: Remove compilation rules for osfsolib.c.
1546
1547 2002-09-16 David Carlton <carlton@math.stanford.edu>
1548
1549 * cp-valprint.c (cp_print_class_method): Correct args to
1550 check_stub_method_group.
1551
1552 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1553
1554 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1555 `set architecture'. Unify naming convention of functions.
1556 (h8300_skip_prologue): Improve prologue analysis.
1557 (h8300_push_arguments): Rewritten to more closely match GCC's
1558 bizarre argument-passing behavior, along with the comment describing
1559 said behavior.
1560 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1561 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1562 sim, remote-e7000.c, remote-hms.c and remote.c
1563
1564 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1565
1566 * i386-tdep.c (gdb_print_insn_i386): Removed.
1567 (i386_print_insn): New function.
1568 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1569 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1570 tm_print_insn_info.
1571
1572 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1573
1574 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1575 zero.
1576
1577 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1578
1579 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1580 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1581 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1582
1583 2002-09-13 Christopher Faylor <cgf@redhat.com>
1584
1585 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1586
1587 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1588
1589 * gdbtypes.c (check_stub_method): Make static.
1590 (check_stub_method_group): New function.
1591 * gdbtypes.h: Update prototypes.
1592 * cp-support.c: New file.
1593 * cp-support.h: New file.
1594
1595 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1596 (update_method_name_from_physname): New function.
1597 (read_member_functions): Correct method names for operators
1598 and v3 constructors/destructors. Separate v2 constructors and
1599 destructors.
1600 * Makefile.in (stabsread.o): Update dependencies.
1601 (SFILES): Add cp-support.c.
1602 (COMMON_OBS): Add cp-support.o.
1603 (cp_support_h, cp-support.o): Add.
1604
1605 * cp-valprint.c (cp_print_class_method): Call
1606 check_stub_method_group instead of check_stub_method. Remove
1607 extraneous QUITs.
1608 * p-valprint.c (pascal_object_print_class_method): Likewise.
1609 * valops.c (search_struct_method): Likewise.
1610 (find_method_list, value_struct_elt_for_reference): Likewise.
1611
1612 2002-09-13 Andrew Cagney <cagney@redhat.com>
1613
1614 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1615 * gdbarch.h, gdbarch.c: Regenerate.
1616
1617 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1618
1619 * frame.c (find_saved_register): Delete function.
1620 * frame.h (find_saved_register): Delete declaration.
1621 Fix PR gdb/631.
1622
1623 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1624
1625 * mips-tdep.c (read_next_frame_reg): Re-hack using
1626 frame_register_unwind.
1627
1628 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1629
1630 * mips-tdep.c (mips_get_saved_register): Re-hack using
1631 frame_register_unwind.
1632
1633 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1634
1635 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1636 vector. Will be useful for Interix.
1637 * gdbarch.h, gdbarch.c: Regenerate.
1638
1639 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1640 name of the malloc function by NAME_OF_MALLOC.
1641
1642 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1643
1644 * value.h (find_function_in_inferior): Add const keyword to
1645 one of the parameters. Allows us to invoke this function with
1646 a const char *.
1647 * valops.c (find_function_in_inferior): Likewise.
1648
1649 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1650
1651 * exec.c (xfer_memory): Fix compilation warning with old versions
1652 of GCC.
1653 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1654
1655 2002-09-12 David Carlton <carlton@math.stanford.edu>
1656
1657 * symtab.h: Run through gdb_indent.h.
1658 Add 2002 to Copyright year list.
1659
1660 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1661
1662 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1663 mach constants.
1664 * MAINTAINERS: Add myself to write after approval list.
1665
1666 2002-09-11 J. Brobecker <brobecker@gnat.com>
1667
1668 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1669
1670 2002-09-11 J. Brobecker <brobecker@gnat.com>
1671
1672 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1673 Interix.
1674
1675 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1676
1677 * procfs.c (do_detach): Clear current signal, not just fault.
1678 Corrects problem with breakpoint trap signal leaking to detached
1679 process on Tru64.
1680
1681 2002-09-10 Michael Snyder <msnyder@redhat.com>
1682
1683 * buildsym.c (finish_block): Protect against null pointer.
1684
1685 2002-09-10 Andrew Cagney <cagney@redhat.com>
1686
1687 * infcmd.c (default_print_registers_info): Send all output to
1688 ``file'' instead of ``gdb_stdout''.
1689
1690 2002-09-10 Michael Snyder <msnyder@redhat.com>
1691
1692 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1693 LONGEST, and use signed register read (addresses are sign-
1694 extended for mips).
1695
1696 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1697
1698 * event-loop.c (gdb_do_one_event): Make public.
1699 * event-loop.h (gdb_do_one_event): Declare.
1700
1701 2002-09-10 Jeff Law <law@redhat.com>
1702
1703 * infttrace.c (child_resume): Simplify and rework to avoid
1704 TT_PROC_CONTINUE.
1705
1706 2002-09-09 Fred Fish <fnf@intrinsity.com>
1707
1708 * printcmd.c (print_scalar_formatted): "len" is the number of
1709 target bytes, NOT the number of target bits.
1710
1711 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1712
1713 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1714 * top.c (init_main): Set rl_terminal_name.
1715
1716 2002-09-08 Aidan Skinner <aidan@velvet.net>
1717
1718 * ada-lang.c (ada_array_bound, ada_type_match,
1719 _initialize_ada_language): Fix K&R definitions.
1720 * ada-tasks.c (get_current_task): Fix K&R definitions.
1721 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1722
1723 2002-09-07 Christopher Faylor <cgf@redhat.com>
1724
1725 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1726 Add XP.
1727
1728 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1729
1730 * i386-tdep.c (i386_register_virtual_type,
1731 i386_register_convertible, i386_register_convert_to_virtual,
1732 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1733 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1734 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1735 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1736 Don't set push_arguments twice.
1737
1738 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1739 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1740 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1741 sigtramp_end to NULL.
1742 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1743 defines.
1744 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1745
1746 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1747 whitespace.
1748
1749 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1750 * gdbarch.h, gdbarch.c: Re-generate.
1751 * blockframe.c (find_pc_sect_partial_function): Convert to use
1752 SIGTRAMP_START_P predicate.
1753
1754 2002-09-05 Michael Snyder <msnyder@redhat.com>
1755
1756 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1757 generic_dummy_frame method and old method. Also distinguish
1758 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1759 (arm_extract_return_value): Use new regcache method.
1760
1761 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1762 adjustment that doesn't conform to the ABI.
1763 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1764 saved regcache, not from current regcache.
1765
1766 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1767
1768 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1769 * README: Update.
1770
1771 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1772
1773 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1774 if arm_apcs_32 is false.
1775
1776 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1777
1778 GDB 5.3 branch created.
1779
1780 2002-09-03 Theodore A. Roth <troth@verinet.com>
1781
1782 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1783 generic_unwind_get_saved_register.
1784
1785 2002-09-03 David Carlton <carlton@math.stanford.edu>
1786
1787 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1788 argument (PR gdb/653). Update call to smash_to_method_type.
1789 (read_structure_scope): Update call to dwarf2_add_member_fn.
1790
1791 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1792
1793 * x86-64-linux-tdep.c: Include gdb_string.h
1794 * x86-64-linux-nat.c: Ditto.
1795
1796 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1797
1798 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1799 when YYDEBUG is set to 1.
1800 * c-exp.y: Likewise.
1801 * f-exp.y: Likewise.
1802 * jv-exp.y: Likewise.
1803 * m2-exp.y: Likewise.
1804 * p-exp.y: Likewise.
1805
1806 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1807
1808 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1809 dependency list.
1810 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1811 solib_svr4_fetch_link_map_offsets to
1812 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1813 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1814 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1815 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1816 solib-svr4.o, and solib-legacy.o.
1817 * config/i386/tm-nbsd.h: Include solib.h.
1818
1819 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1820
1821 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1822 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1823 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1824 comment noting that this needs its own target configuration.
1825 * config/i386/nbsd.mt: New file.
1826 * config/i386/nbsdaout.mt: Remove.
1827 * config/i386/nbsdelf.mt: Ditto.
1828 * config/i386/tm-nbsdaout.h: Ditto.
1829
1830 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1831
1832 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1833 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1834 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1835 tdep->sigtramp_end.
1836 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1837 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1838 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1839
1840 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1841
1842 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1843 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1844 * i386-tdep.h (i386bsd_init_abi): New prototype.
1845 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1846 function declaration.
1847 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1848 for NetBSD-a.out or NetBSD-ELF.
1849 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1850 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1851 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1852 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1853 and nbsd-tdep.h.
1854 (i386nbsd_pc_in_sigtramp): New function.
1855 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1856 i386nbsd_pc_in_sigtramp.
1857 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1858 and i386nbsdelf_init_abi OS ABI handlers.
1859 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1860 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1861
1862 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1863
1864 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1865 registers if the target really has them.
1866
1867 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1868
1869 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1870 than nbsd-tdep.h.
1871
1872 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1873
1874 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1875 list.
1876 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1877 (alphanbsd_skip_sigtramp_frame): New functions.
1878 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1879 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1880 to alphanbsd_sigcontext_addr.
1881
1882 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1883
1884 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1885 list.
1886 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1887 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1888 nbsd_pc_in_sigtramp.
1889 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1890 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1891 * nbsd-tdep.c: Include gdb_string.h.
1892 (nbsd_pc_in_sigtramp): New function.
1893 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1894 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1895 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1896 ppcnbsd_pc_in_sigtramp.
1897 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1898 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1899 shnbsd_pc_in_sigtramp.
1900 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1901 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1902 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1903
1904 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1905
1906 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1907 watchpoints to NULL.
1908 (insert_breakpoints): set val field of watchpoints if NULL.
1909
1910
1911 2002-08-29 Jim Blandy <jimb@redhat.com>
1912
1913 * symtab.c (lookup_symbol_aux): In the cases where we find a
1914 minimal symbol of an appropriate name and use its address to
1915 select a symtab to read and search, use `name' (as passed to us)
1916 as the demangled name when searching the symtab's global and
1917 static blocks, not the minsym's name.
1918
1919 2002-08-29 Keith Seitz <keiths@redhat.com>
1920
1921 * stack.c (print_frame_info_base): Always set current_source_symtab
1922 and current_source_line.
1923
1924 2002-08-29 Donn Terry <donnte@microsoft.com>
1925
1926 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1927
1928 2002-08-28 Keith Seitz <keiths@redhat.com>
1929
1930 * stack.c (select_frame): Add FIXME concerning selected-frame
1931 events.
1932 (select_frame_command): Send selected-frame-level-changed
1933 event notification, but only if the level actually changed.
1934 (up_silently_base): Add selected-frame-level-changed event
1935 notification.
1936 (down_silently_base): Likewise.
1937
1938 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1939
1940 * Makefile.in: Update dependencies for all gdb/*.c files.
1941
1942 2002-08-27 Tom Tromey <tromey@redhat.com>
1943
1944 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1945 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1946 Update dependencies.
1947 * i387-tdep.c: Include gdb_string.h.
1948 * osabi.c: Likewise.
1949 * i386-linux-nat.c: Likewise.
1950 * lin-lwp.c: Likewise.
1951 * ax-gdb.c: Likewise.
1952 * signals/signals.c: Likewise.
1953 * jv-valprint.c: Likewise.
1954 * p-lang.c: Likewise.
1955 * c-valprint.c: Likewise.
1956 * cp-abi.c: Likewise.
1957
1958 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1959
1960 * cli/cli-script.h (copy_command_lines): Export.
1961 * breakpoint.c: Include cli/cli-script.h.
1962 * Makefile.in (breakpoint.o): Update dependencies.
1963
1964 2002-08-26 Michael Snyder <msnyder@redhat.com>
1965
1966 * breakpoint.c (insert_breakpoints): Protect all references
1967 to 'process_warning'. Shorten long lines.
1968
1969 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1970
1971 * cli/cli-script.c (copy_command_lines): New function.
1972 * defs.h (copy_command_lines): Export.
1973 * testsuite/gdb.base/commands.exp: New tests for commands
1974 attached to a temporary breakpoint, and for commands that
1975 delete the breakpoint they are attached to.
1976
1977 2002-08-26 Michael Snyder <msnyder@redhat.com>
1978
1979 * breakpoint.c (bpstat_stop_status): Instead of copying the
1980 pointer to the breakpoint commands struct, make a new copy
1981 of the struct and point to that.
1982 (bpstat_clear): Free the commands struct.
1983 (bpstat_clear_actions): Free the commands struct.
1984 (bpstat_do_actions): Free the command actions. Also execute
1985 the local cleanups, instead of deleting them.
1986 (delete_breakpoint): Leave the commands field of the bpstat
1987 chain alone -- it will be freed later.
1988
1989 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1990
1991 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1992 deleted in 2002-08-20 commit. This function is still used by
1993 ppc-linux-nat.c.
1994
1995 2002-08-26 Keith Seitz <keiths@redhat.com>
1996
1997 * gdb-events.sh: Add selected-frame-level-changed event.
1998 * gdb-events.c: Regenerated.
1999 * gdb-events.h: Regenerated.
2000
2001 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2002
2003 Fix PR gdb/393:
2004 * inflow.c (terminal_save_ours): New function to save terminal
2005 settings.
2006 * inferior.h (terminal_save_ours): Declare.
2007 * target.c (debug_to_terminal_save_ours): New function.
2008 (cleanup_target): Defaults to_terminal_save_ours.
2009 (update_current_target): Inherit to_terminal_save_ours.
2010 (setup_target_debug): Set to_terminal_save_ours.
2011 * target.h (target_terminal_save_ours): New to save terminal settings.
2012 (target_ops): New member to_terminal_save_ours.
2013 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2014 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2015 * inftarg.c (init_child_ops): Likewise.
2016 * m3-nat.c (init_m3_ops): Likewise.
2017 * procfs.c (init_procfs_ops): Likewise.
2018 * wince.c (init_child_ops): Likewise.
2019 * win32-nat.c (init_child_ops): Likewise.
2020 * sol-thread.c (init_sol_thread_ops): Likewise.
2021
2022 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2023
2024 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2025 use regcache_* functions.
2026 (i386_gdbarch_init): Set store_return_value instead of
2027 deprecated_store_return_value.
2028
2029 * regcache.c (regcache_raw_write_signed,
2030 regcache_raw_write_unsigned): New functions.
2031 * regcache.h (regcache_raw_write_signed,
2032 regcache_raw_write_unsigned): New prototypes.
2033
2034 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2035
2036 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2037 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2038 source file dependencies. Cleanup corresponding generator rules.
2039
2040 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2041
2042 * regcache.h (register_offset_hack): Declare.
2043 (regcache_cooked_read_using_offset_hack): Declare.
2044 (regcache_cooked_write_using_offset_hack): Declare.
2045
2046 * regcache.c (register_offset_hack): New function.
2047 (regcache_cooked_read_using_offset_hack): New function.
2048 (regcache_cooked_write_using_offset_hack): New function.
2049 (regcache_dump): Check that the registers, according to their
2050 offset, are packed hard against each other.
2051 (cooked_xfer_using_offset_hack): New function.
2052
2053 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2054
2055 * regcache.c (struct regcache_descr): Add field register_type.
2056 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2057 in as a parameter
2058 (init_regcache_descr): Initialize register_type. Pass the descr
2059 to init_legacy_regcache_descr. Use register_type instead of
2060 REGISTER_VIRTUAL_TYPE.
2061 (register_type): New function.
2062 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2063 * regcache.h (register_type): Declare.
2064
2065 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2066
2067 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2068 instead of deprecated_store_return_value. Fix fallout from
2069 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2070
2071 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2072
2073 * regcache.c (max_register_size): New function.
2074 (init_legacy_regcache_descr): Ensure that max_register_size is
2075 large enough for REGISTER_VIRTUAL_SIZE.
2076 * regcache.h (max_register_size): Declare.
2077
2078 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2079
2080 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2081 store_return_value.
2082 (e500_extract_return_value): Change type of valbuf pointer to
2083 void.
2084
2085 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2086
2087 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2088 workaround.
2089
2090 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2091 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2092 long long) to prevent compiler warning on 64-bit systems.
2093
2094 2002-08-23 Andrew Cagney <cagney@redhat.com>
2095
2096 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2097 (DEPRECATED_STORE_RETURN_VALUE): New method.
2098 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2099 * gdbarch.h, gdbarch.c: Re-generate.
2100
2101 * values.c (set_return_value): Pass current_regcache to
2102 STORE_RETURN_VALUE.
2103 * arch-utils.h (legacy_store_return_value): Declare.
2104 * arch-utils.c (legacy_store_return_value): New function.
2105 (legacy_extract_return_value): Update parameters.
2106
2107 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2108 STORE_RETURN_VALUE.
2109 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2110 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2111 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2112 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2113 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2114 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2115 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2116 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2117 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2118 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2119
2120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2121 * i386-tdep.c (i386_extract_return_value): Update.
2122 * arch-utils.c (legacy_extract_return_value): Update.
2123 * frv-tdep.c (frv_gdbarch_init): Update.
2124 * cris-tdep.c (cris_gdbarch_init): Update.
2125 * d10v-tdep.c (d10v_gdbarch_init): Update.
2126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2127 * m68k-tdep.c (m68k_gdbarch_init): Update.
2128 * mcore-tdep.c (mcore_gdbarch_init): Update.
2129 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2130 * s390-tdep.c (s390_gdbarch_init): Update.
2131 * sparc-tdep.c (sparc_gdbarch_init): Update.
2132 * sh-tdep.c (sh_gdbarch_init): Update.
2133 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2134 * v850-tdep.c (v850_gdbarch_init): Update.
2135 * avr-tdep.c (avr_gdbarch_init): Update.
2136 * ia64-tdep.c (ia64_gdbarch_init): Update.
2137 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2138 * vax-tdep.c (vax_gdbarch_init): Update.
2139 * alpha-tdep.c (alpha_gdbarch_init): Update.
2140 * arm-tdep.c (arm_gdbarch_init): Update.
2141 * mips-tdep.c (mips_gdbarch_init): Update.
2142 * i386-tdep.c (i386_gdbarch_init): Update.
2143
2144 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2145
2146 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2147 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2148
2149 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2150
2151 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2152 problems.
2153
2154 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2155
2156 * infrun.c (handle_inferior_event): Move a comment outside of a
2157 function call, in order to avoid indent reformatting this part
2158 of the code in an unreadable way.
2159
2160 2002-08-23 Grace Sainsbury <graces@redhat.com>
2161
2162 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2163 when breakpoints fail. Move general breakpoint error messages to
2164 insert_breakpoints.
2165 * breakpoint.c (insert_breakpoints): Change warnings when
2166 breakpoints are nto inserted to specify the type. Remove call to
2167 memory_error when hardware breakpoints can't be inserted. Remove
2168 multiple calls to warning so all messages are sent to the user at
2169 once.
2170 (delete_breakpoints): Make insert error messsages more explicit.
2171
2172 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2173
2174 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2175 gdbserver/ChangeLog.
2176
2177 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2178
2179 * i386-tdep.c: Include "objfiles.h".
2180 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2181 skip_trampoline_code.
2182 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2183 (CPLUS_MARKER): Define to '.'.
2184
2185 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2186 member.
2187 (linux_corefile_thread_callback): Increase args->num_notes.
2188 (linux_make_note_section): Initialize thread_args.num_notes, and
2189 use it to determine whether notes for any threads were created.
2190
2191 2002-08-23 Donn Terry <donnte@microsoft.com>
2192
2193 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2194 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2195 and PCUNKILL.
2196 (write_with_trace): Conditionalize out the switch branch handling
2197 PCSHOLD if the corresponding macro is not defined. Likewise for
2198 PRSABORT and PRSTOP.
2199 This change will be needed by the Interix port.
2200
2201 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2202
2203 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2204 write_register wherever possible instead of manipulating the
2205 register bytes directly.
2206 Assign VALUE_CONTENTS to a variable and use that.
2207 The GPR numbers are now dependent on the architecture.
2208
2209 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2210
2211 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2212 ev_offset fields.
2213 (skip_prologue): Add support for BookE/e500 instructions.
2214 (e500_extract_return_value): New function.
2215 (frame_get_saved_regs): Add support for saving ev registers and
2216 pseudo gpr's.
2217 (e500_store_return_value): New function.
2218 (rs6000_gdbarch_init): Move up default intializations of
2219 deprecated_extract_return_value and store_return_value. Overwrite
2220 init of store_return_value with e500 specific version.
2221 Set extract_return_value for e500.
2222
2223 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2224
2225 * blockframe.c (generic_call_dummy_register_unwind): Use
2226 regcache_cooked_read to catch cases in which the variable is
2227 stored in a pseudo register.
2228
2229 2002-08-22 Andrew Cagney <cagney@redhat.com>
2230
2231 * NEWS: Mention that the i960 has been made obsolete.
2232 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2233 i960-tdep.c
2234 (remote-nrom.o): Obsolete target.
2235 (remote-nindy.o, i960-tdep.o): Ditto.
2236 * remote-nrom.c: Make file obsolete.
2237 * remote-nindy.c, remote-vx960.c: Ditto.
2238 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2239 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2240 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2241 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2242 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2243 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2244 i960-*-vxworks* obsolete.
2245 * MAINTAINERS: Note that the i960 is obsolete.
2246
2247 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2248
2249 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2250 detach to allow reinitialization.
2251
2252 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2253
2254 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2255 attempt).
2256
2257 2002-08-22 Jim Blandy <jimb@redhat.com>
2258
2259 * coffread.c (coff_symfile_read): Don't try to read the line
2260 number table from disk if the image file doesn't have a symbol
2261 table; we'll never actually look at the info anyway, and Windows
2262 ships DLL's with bogus file offsets for the line number data.
2263
2264 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2265
2266 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2267 an e500 executable.
2268
2269 2002-08-21 Michael Snyder <msnyder@redhat.com>
2270
2271 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2272 (MSYMBOL_SIZE): Replace macro with function.
2273 (DEFAULT_MIPS_TYPE): Delete unused macro.
2274 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2275 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2276
2277 2002-08-21 Jim Blandy <jimb@redhat.com>
2278
2279 * valops.c (value_cast): Simplify and correct logic for doing a
2280 static cast from a pointer to a base class to a pointer to a
2281 derived class.
2282
2283 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2284
2285 * infcmd.c (default_print_registers_info): Replace
2286 do_registers_info.
2287 (registers_info): Use gdbarch_print_registers_info instead of
2288 DO_REGISTERS_INFO.
2289 * inferior.h (default_print_registers_info): Replace
2290 do_registers_info.
2291 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2292 (DO_REGISTERS_INFO): Change to a predicate function.
2293 * gdbarch.h, gdbarch.c: Regenerate.
2294
2295 2002-08-21 Keith Seitz <keiths@redhat.com>
2296
2297 * gdb-events.sh: Add target-changed event.
2298 * gdb-events.c: Regenerated.
2299 * gdb-events.c: Regenerated.
2300 * valops.c (value_assign): Add target-changed event notification
2301 to inlval_register, lval_memory, and lval_reg_frame_relative.
2302
2303 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2304
2305 * NEWS: Add an entry regarding the improvement of the next/step
2306 operation on Alpha Tru64 multi-processor machines.
2307
2308 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2309
2310 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2311 directores.
2312 * Makefile.in: Update all _h macro definitions.
2313 * Makefile.in (install-gdbtk): Move to install section.
2314 (rdi-share/libangsd.a): Move to end of file.
2315
2316 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2317
2318 * frame.c (frame_register_unwind): When a register, set addrp to
2319 the register's byte.
2320
2321 2002-08-20 Michael Snyder <msnyder@redhat.com>
2322
2323 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2324 used locally, so move them from the target machine header to here.
2325 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2326 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2327 Make static.
2328 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2329
2330 2002-08-20 Andrew Cagney <cagney@redhat.com>
2331
2332 * NEWS: Mention that the Apollo line was made obsolete.
2333 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2334 m68*-hp-hpux* obsolete.
2335 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2336 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2337 * buildsym.c (make_blockvector): Make static.
2338 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2339 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2340 (ALLDEPFILES): Remove dstread.c.
2341 (dstread.o): Obsolete make rule.
2342 * dstread.c: Makefile obsolete.
2343 * dst.h: Ditto.
2344 * config/m68k/hp300hpux.mt: Ditto.
2345 * config/m68k/hp300hpux.mh: Ditto.
2346 * config/m68k/hp300bsd.mt: Ditto.
2347 * config/m68k/hp300bsd.mh: Ditto.
2348 * config/m68k/apollo68b.mt: Ditto.
2349 * config/m68k/apollo68v.mh: Ditto.
2350 * config/m68k/apollo68b.mh: Ditto.
2351
2352 2002-08-20 Michael Snyder <msnyder@redhat.com>
2353
2354 * mips-tdep.c (mips_in_return_stub): Make static.
2355 (mips_gdbarch_init): Set in_solib_return_trampoline.
2356 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2357
2358 2002-08-20 Michael Snyder <msnyder@redhat.com>
2359
2360 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2361 * gdbarch.c, gdbarch.h: Regenerate.
2362 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2363 Add.
2364 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2365
2366 2002-08-20 Michael Snyder <msnyder@redhat.com>
2367
2368 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2369 (mips_gdbarch_init): Set skip_trampoline_code,
2370 in_solib_call_trampoline.
2371 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2372 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2373
2374 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2375
2376 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2377
2378 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2379 vector type for ev registers.
2380 (e500_pseudo_register_read): New function.
2381 (e500_pseudo_register_write): New function.
2382 (e500_dwarf2_reg_to_regnum): New function.
2383 (PPC_UISA_NOFP_SPRS): New macro.
2384 (PPC_EV_REGS): New macro.
2385 (PPC_GPRS_PSEUDO_REGS): New macro.
2386 (registers_e500): New register set for e500.
2387 (variants): Add e500 variant.
2388 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2389 before setting architectural dependent variations. Initialize ev
2390 registers numbers. Add case for e500 architecture. Set the
2391 number of pseudo registers.
2392
2393 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2394
2395 * rs6000-tdep.c: Clean up comments.
2396
2397 2002-08-20 Andrew Cagney <cagney@redhat.com>
2398
2399 * h8300-tdep.c: Re-indent file.
2400
2401 2002-08-20 Jim Blandy <jimb@redhat.com>
2402
2403 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2404 default for this.
2405
2406 2002-08-20 Keith Seitz <keiths@redhat.com>
2407
2408 * breakpoints.c (watch_command_1): Use internal breakpoint
2409 when setting a watchpoint_scope breakpoint.
2410
2411 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2412
2413 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2414 (build_builtin_type_vec64i): Ditto.
2415 (build_builtin_type_vec128): Ditto.
2416 (build_builtin_type_vec128i): Ditto.
2417
2418 2002-08-19 Michael Snyder <msnyder@redhat.com>
2419
2420 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2421 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2422 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2423 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2424 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2425 CALL_DUMMY_ADDRESS): Delete.
2426 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2427 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2428 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2429 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2430 push_return_address.
2431 (mips_register_raw_size, mips_eabi_use_struct_convention,
2432 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2433 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2434 mips_init_extra_frame_info, mips_eabi_push_arguments,
2435 mips_n32n64_push_arguments, mips_push_return_address,
2436 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2437 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2438
2439 2002-08-19 Michael Snyder <msnyder@redhat.com>
2440
2441 * mips-tdep.c (mips_frame_num_args): New function.
2442 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2443 frame_saved_pc, frame_args_address, frame_locals_address,
2444 frame_num_args, and frame_args_skip.
2445 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2446 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2447 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2448 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2449
2450 2002-08-20 Michael Snyder <msnyder@redhat.com>
2451
2452 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2453 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2454 * mips-tdep.c (mips_store_struct_return): New function.
2455 (mips_extract_struct_value_address): New function.
2456 (mips_gdbarch_init): Set store_struct_return and
2457 extract_struct_value_address.
2458
2459 2002-08-20 David Carlton <carlton@math.stanford.edu>
2460
2461 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2462 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2463 (read_file_scope): Check that line_header is nonzero before
2464 decoding macro information.
2465
2466 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2467
2468 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2469 flag the general-purpose registers as floating-point on targets
2470 that don't support the floating-point registers.
2471
2472 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2473
2474 * rs6000-tdep.c (altivec_register_p): Delete.
2475 (rs6000_do_altivec_registers): Delete.
2476 (rs6000_altivec_registers_info): Delete.
2477 (rs6000_do_registers_info): Delete.
2478 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2479 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2480
2481 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2482
2483 * infcmd.c (do_registers_info): Print vector registers in hex
2484 format only.
2485 (print_vector_info): Check that printing registers
2486 makes sense.
2487 (print_float_info): Ditto.
2488
2489 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2490
2491 * mips-tdep.c (mips_gdbarch_init): Update.
2492 (mips_o32_extract_return_value): Rewrite.
2493 (mips_o32_store_return_value): Rewrite.
2494 (mips_o32_xfer_return_value): New function.
2495 (mips_xfer_register): Tweak debug print message. Allow for
2496 buf_offset when dumping the value transfered.
2497
2498 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2499
2500 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2501 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2502 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2503 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2504 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2505
2506 2002-08-14 Michael Snyder <msnyder@redhat.com>
2507
2508 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2509
2510 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2511
2512 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2513 register.
2514 (P): New macro to define a register as a pseudo register.
2515 (R, R4, R8, R16, FR32, R64, R0): Updated.
2516 (struct variant): Add new fields for number of pseudo registers
2517 and number of total registers.
2518 (tot_num_registers): New macro replacing....
2519 (num_registers): ...deleted macro.
2520 (num_registers): New function.
2521 (num_pseudo_registers): New function.
2522 (variants): Update all variants to intialize new fields correctly.
2523 Postpone initialization of number of pseudo regs and real regs.
2524 (init_variants): New function.
2525 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2526 registers offsets.
2527
2528 2002-08-19 David Carlton <carlton@math.stanford.edu>
2529
2530 * valops.c (search_struct_field): Change error message to treat
2531 return value of 0 from value_static_field as meaning that field is
2532 optimized out.
2533 (value_struct_elt_for_reference): Ditto.
2534 * values.c (value_static_field): Treat an unresolved location the
2535 same as a nonexistent symbol. Fix PR gdb/635.
2536 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2537 enclosed. Fix PR gdb/574.
2538 * MAINTAINERS: Add self to Write After Approval list.
2539
2540 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2541
2542 * mips-tdep.c (mips_xfer_register): New function.
2543 (mips_n32n64_extract_return_value): Rewrite.
2544 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2545 instead of deprecated_extract_return_value.
2546
2547 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2548
2549 * rs6000-tdep.c (TDEP): Delete macro.
2550 (branch_dest): Replace use of TDEP macro with its body.
2551 (rs6000_pop_frame): Ditto.
2552 (rs6000_push_arguments): Ditto.
2553 (rs6000_skip_trampoline_code): Ditto.
2554 (rs6000_frame_saved_pc): Ditto.
2555 (rs6000_frame_chain): Ditto.
2556 (rs6000_register_name): Ditto.
2557 (rs6000_register_byte): Ditto.
2558 (rs6000_register_raw_size): Ditto.
2559 (rs6000_register_virtual_type): Ditto.
2560 (rs6000_register_convertible): Ditto.
2561 (rs6000_convert_from_func_ptr_addr): Ditto.
2562
2563 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2564
2565 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2566 conditionally.
2567 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2568 MIPS_LINUX_JB_ELEMENT_SIZE.
2569 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2570 for MAX_REGISTER_RAW_SIZE arrays.
2571 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2572 MIPS_LINUX_JB_ELEMENT_SIZE.
2573
2574 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2575
2576 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2577
2578 2002-08-19 Aidan Skinner <aidan@velvet.net>
2579
2580 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2581 ada-valprint.c ada-tasks.c.
2582 (YYFILES): Add ada-exp.y.
2583 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2584 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2585 (ada-exp.tab.o): New target.
2586
2587 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2588
2589 * regcache.c (regcache_xfer_part): New function.
2590 (regcache_raw_read_part): New function.
2591 (regcache_raw_write_part): New function.
2592 (regcache_cooked_read_part): New function.
2593 (regcache_cooked_write_part): New function.
2594 * regcache.h (regcache_raw_read_part): Declare.
2595 (regcache_raw_write_part): Declare.
2596 (regcache_cooked_read_part): Declare.
2597 (regcache_cooked_write_part): Declare.
2598
2599 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2600
2601 * remote.c (remote_open_1): Add async_p.
2602 (remote_async_open_1): Delete.
2603 (open_remote_target): Delete.
2604 (remote_open, extended_remote_open): Update calls to remote_open_1.
2605 (remote_async_open, extended_remote_async_open): Call
2606 remote_open_1 instead of remote_async_open_1.
2607
2608 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2609
2610 * blockframe.c: Fix a few coding standard violations.
2611
2612 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2613
2614 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2615 here from ...
2616 * config/i386/tm-i386sco5.h: ... here. File removed.
2617 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2618
2619 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2620 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2621 (TM_FILE): Set to tm-i386.h.
2622 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2623 * config/i386/tm-i386v.h: Remove file.
2624 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2625 instead of "i386/tm-i386v.h".
2626 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2627 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2628 "i386/tm-i386v.h".
2629 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2630 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2631 "i386/tm-i386.h".
2632
2633 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2634
2635 * config/i386/nm-i386v.h: Add protection against
2636 multiple-inclusion.
2637 (i386_register_u_addr): Remove prototype.
2638 (register_u_addr): New prototype.
2639 (REGISTER_U_ADDR): Redefine accordingly.
2640 * i386v-nat.c: Improve several comments.
2641 (i386_register_u_addr): Change signature and rename to
2642 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2643 ubase variable.
2644
2645 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2646
2647 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2648 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2649 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2650 deprecated_extract_return_value.
2651 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2652 rename mips_o32o64_push_arguments.
2653 (mips_gdbarch_init): Update.
2654 (mips_extract_return_value): Delete.
2655 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2656 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2657 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2658 (mips_n32n64_extract_return_value): Clone
2659 mips_extract_return_value.
2660 (mips_store_return_value): Delete.
2661 (mips_o32_store_return_value): Clone mips_store_return_value.
2662 (mips_o64_store_return_value): Clone mips_store_return_value.
2663 (mips_eabi_store_return_value): Clone mips_store_return_value.
2664 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2665
2666 2002-08-18 Aidan Skinner <aidan@velvet.net>
2667
2668 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2669 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2670
2671 2002-08-18 Aidan Skinner <aidan@velvet.net>
2672
2673 * ada-lang.c: Run through gdb_indent.sh.
2674 * ada-lang.h: Run through gdb_indent.sh.
2675 * ada-tasks.c: Run through gdb_indent.sh.
2676 * ada-typeprint.c: Run through gdb_indent.sh.
2677 * ada-valprint.c: Run through gdb_indent.sh.
2678
2679 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2680
2681 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2682 ABI.
2683
2684 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2685
2686 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2687
2688 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2689 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2690
2691 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2692 write_register_gen instead of write_register_bytes.
2693
2694 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2695 i[3456]-*-osf1mk* configurations have been made obsolete.
2696 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2697 i[3456]86-*-osf1mk* hosts obsolete.
2698 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2699 targets obsolete.
2700 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2701 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2702 config/i386/i386m3.mt, config/i386/nm-m3.h,
2703 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2704 config/i386/i386mk.mh, config/i386/i386mk.mt,
2705 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2706 obsolete.
2707 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2708 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2709 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2710
2711 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2712
2713 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2714 (hppa_value_returned_from_stack): Declare.
2715 (hppa_extract_return_value): Declare.
2716 * config/pa/hppa.mt: New file.
2717 * configure.tgt: Recognize hppa*-*-*.
2718 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2719
2720 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2721
2722 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2723 comment.
2724
2725 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2726
2727 * top.c (gdb_rl_operate_and_get_next): Make sure
2728 operate-and-get-next functions correctly even when the history
2729 list is completely filled.
2730
2731 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2732
2733 * MAINTAINERS (Target Instruction Set Architectures): Rename
2734 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2735 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2736 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2737 already listed under Host/Native.
2738
2739 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2740 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2741 mips*-*-*.
2742
2743 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2744
2745 * config/ia64/ia64.mt: New file.
2746 * config/alpha/alpha.mt: New file.
2747 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2748 ia64-linux-gnu. Mention that ia64-elf is broken.
2749 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2750
2751 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2752
2753 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2754 generic_func_frame_valid instead of func_frame_valid.
2755
2756 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2757
2758 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2759 procfs appears to be broken when debugging on multi-processor
2760 machines. So enable software single stepping in order to avoid
2761 using the procfs interface to do next/step operations, using
2762 internal breakpoints instead.
2763
2764 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2765 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2766 make this pc address equal to the value it would have if the
2767 system stepping capability was used. Also set a new flag used
2768 to ensure that we don't readjust the PC one more time later.
2769
2770 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2771 address by DECR_PC_AFTER_BREAK when software single step is
2772 in use for this architecture, as this has already been taken
2773 care of in handle_inferior_event().
2774
2775 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2776
2777 * infrun.c (handle_inferior_event): Minor reformatting, to make
2778 a rather long condition expression easier to read.
2779
2780 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2781
2782 * Makefile.in (gdbtk.o): Move to end of file.
2783 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2784 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2785 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2786 (gdbtk-wrapper.o, gdbres.o): Ditto.
2787
2788 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2789
2790 * Makefile.in (copying.o): Separate out compile rule.
2791 (hpux-thread.o, procfs.o, signals.o): Ditto.
2792 (v850ice.o, z8k-tdep.o): Ditto.
2793 (tui-file.o): Move to TUI section.
2794 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2795 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2796
2797 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2798
2799 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2800 skip_trampoline_code, for better namespace-proofing.
2801
2802 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2803
2804 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2805
2806 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2807
2808 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2809
2810 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2811 signal, check whether we hit a breakpoint before checking for a
2812 single step breakpoint. Otherwise, GDB fails to notice that a
2813 breakpoint has been hit when stepping onto a breakpoint.
2814
2815 2002-08-16 Keith Seitz <keiths@redhat.com>
2816
2817 * gdb-events.sh (clear_gdb_event_hooks): New function.
2818 * gdb-events.c: Regenerate.
2819 * gdb-events.h: Regenerate.
2820
2821 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2822
2823 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2824 not_a_sw_breakpoint.
2825 * breakpoint.h (bpstat_stop_status): Add parameter names.
2826
2827 2002-08-16 Grace Sainsbury <graces@redhat.com>
2828
2829 * remote.c (remote_insert_hw_breakpoint)
2830 (remote_remove_hw_breakpoint): Fix calculation of length field
2831 for Z-packet.
2832
2833 2002-08-15 Michael Snyder <msnyder@redhat.com>
2834
2835 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2836 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2837 (supply_fpregset): Ditto.
2838
2839 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2840 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2841 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2842 (TARGET_READ_SP): Delete.
2843 (DO_REGISTERS_INFO): Delete.
2844 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2845 Delete.
2846 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2847 from macros to functions.
2848
2849 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2850 (mips_register_convertible, mips_register_convert_to_virtual,
2851 mips_register_convert_to_raw): Make static.
2852 (mips_read_sp): New function.
2853 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2854 (mips_do_registers_info): Make static.
2855 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2856 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2857 (mips_register_convert_from_type, mips_register_convert_to_type):
2858 New functions.
2859 (mips_gdbarch_init): Set up function_start_offset,
2860 register_virtual_size, pc_in_sigtramp.
2861
2862 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2863
2864 * infcmd.c (vector_info): New function.
2865 (_initialize_infcmd): Add command "info vector".
2866 (print_vector_info): New function.
2867
2868 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2869 * gdbarch.h, gdbarch.c: Regenerate.
2870
2871 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2872
2873 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2874 ``print_all''. Only print vector registers when ``print_all''.
2875
2876 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2877
2878 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2879 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2880
2881 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2882 Add `args' parameter.
2883 * gdbarch.h, gdbarch.c: Regenerate.
2884
2885 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2886
2887 * infcmd.c (float_info): Call print_float_info.
2888 (print_float_info): New function. By default, print the
2889 floating-point registers.
2890
2891 * arch-utils.h (default_print_float_info): Delete declaration.
2892 * arch-utils.c (default_print_float_info): Delete function.
2893
2894 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2895
2896 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2897 out define.
2898
2899 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2900 FRAME.
2901
2902 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2903 * configure.host: Make i[3456]86-*-aix host obsolete.
2904 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2905 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2906 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2907 config/i386/xm-i386aix.h: Make files obsolete.
2908 * i386aix-nat.c: Make file obsolete.
2909 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2910 (i386aix-nat.o): Make target obsolete.
2911
2912 * config/i386/nm-gnu.h: Removed.
2913 * config/i386/nm-i386gnu.h: New file.
2914 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2915 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2916 Moved here from ...
2917 * config/i386/tm-i386gnu.h: ... here. Removed.
2918 * config/i386/xm-i386gnu.h: Removed.
2919 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2920 (NAT_FILE): Set to nm-i386gnu.h.
2921 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2922 * i386-tdep.c: New file.
2923 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2924 (i386gnu-tdep.o): Specify dependencies.
2925
2926 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2927
2928 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2929 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2930 Adjust a few comments to reflect reality a bit closer.
2931 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2932 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2933 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2934 target_insert_watchpoint, target_remove_watchpoint):
2935 Move defines to ...
2936 * config/i386/nm-i386sco5.h: ... here.
2937 (kernel_u_size): Add prototype. Improve a few comments and add
2938 protection against multiple inclusion.
2939
2940 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2941 out define.
2942
2943 * uw-thread.c (SP_ARG0): Define if not already defined.
2944 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2945
2946 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2947
2948 * config/i386/tm-i386.h: Don't include "regcache.h".
2949
2950 * i387-tdep.h (i387_print_float_info): New prototype.
2951 * i387-tdep.c (print_i387_value, print_i387_ext,
2952 print_i387_status_word, print_i387_control_word): Add `struct
2953 ui_file *' argument and use it for output.
2954 (i387_print_float_info): Renamed from i387_float_info. Add
2955 `struct gdbarch *' and `struct ui_file *' arguments and use the
2956 latter for output.
2957 * i386-tdep.c: Include "i387-tdep.h".
2958 (i386_gdbarch_init): Set print_float_info.
2959 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2960 (FLOAT_INFO): Remove define.
2961
2962 2002-08-13 Michael Snyder <msnyder@redhat.com>
2963
2964 * mips-tdep.c (mips_push_arguments): Rename to
2965 mips_eabi_push_arguments, and tune for EABI.
2966 (MIPS_REGS_HAVE_HOME_P): Delete.
2967 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2968 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2969 Delete references to mips_regs_have_home_p.
2970
2971 2002-08-14 Keith Seitz <keiths@redhat.com>
2972
2973 * Makefile.in (install-gdbtk): Create insight plugin directory.
2974 Install plugins.tcl file.
2975
2976 2002-08-14 Keith Seitz <keiths@redhat.com>
2977
2978 * configure.in: Move SUBDIRS to near top of the file so that
2979 --enable options may add things to it.
2980 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2981 * configure: Regenerate.
2982
2983 2002-08-13 Michael Snyder <msnyder@redhat.com>
2984
2985 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2986 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2987 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2988
2989 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2990
2991 * vax-tdep.c (vax_get_saved_register): Delete function.
2992 (vax_gdbarch_init): Update.
2993 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2994 (ns32k_gdbarch_init): Update.
2995 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2996 (alpha_gdbarch_init): Update.
2997
2998 2002-08-13 Andrew Cagney <cagney@redhat.com>
2999
3000 * regcache.c (init_regcache_descr): Overallocate the
3001 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3002 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3003 nr_raw_registers.
3004 (set_register_cached): Add range checking assertions. Use
3005 current_regcache.
3006
3007 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3008
3009 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3010 numbers for MMX registers.
3011
3012 2002-08-13 Andrew Cagney <cagney@redhat.com>
3013
3014 * i386-tdep.c (i386_gdbarch_init): Use
3015 generic_unwind_get_saved_register.
3016
3017 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3018
3019 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3020 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3021 target vector.
3022 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3023 Delete. Add comment regarding this now-deleted target method.
3024
3025 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3026
3027 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3028 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3029 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3030 real PC and the page number (if it's within the memory bank window).
3031 (m68hc11_pseudo_register_write): Likewise when saving.
3032 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3033 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3034 (m68hc11_register_raw_size): And use 32-bit for it.
3035 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3036 16K memory bank is used by the prog; also use the virtual pc.
3037
3038 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3039
3040 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3041 (m68hc11_gdbarch_init): Install it in gdbarch.
3042 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3043 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3044 (MSYMBOL_SIZE): New for documentation.
3045 (insn_return_kind): Enum to specify how a function returns.
3046 (frame_extra_info): Cleanup and record the return mode.
3047 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3048 register in address computation.
3049 (m68hc11_get_return_insn): New to obtain the return instruction used
3050 by the function.
3051 (m68hc11_frame_init_saved_regs): Take into account the return
3052 instruction used by the function for far and interrupt functions.
3053 (m68hc11_init_extra_frame_info): Take into account page register.
3054 (m68hc11_frame_args_address): Adjust according to the return mode.
3055 (show_regs): Print page register only when it's used.
3056
3057 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3058
3059 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3060 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3061 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3062 registers.
3063 (m68hc11_register_raw_size): Likewise.
3064
3065 2002-08-13 Andrew Cagney <cagney@redhat.com>
3066
3067 * i386-tdep.c (i386_register_name): Handle mmx registers.
3068 (mmx_regnum_p): New function.
3069 (i386_mmx_names): New array.
3070 (mmx_num_regs): New variable.
3071 (i386_pseudo_register_read): New function.
3072 (i386_pseudo_register_write): New function.
3073 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3074
3075 * regcache.c (regcache_raw_read_unsigned): New function.
3076 (regcache_raw_read_signed): New function.
3077 * regcache.h (regcache_raw_read_unsigned): Declare.
3078 (regcache_raw_read_signed): Declare.
3079
3080 2002-08-13 Andrew Cagney <cagney@redhat.com>
3081
3082 * regcache.c (regcache_raw_read_as_address): Delete function.
3083 (regcache_cooked_read_signed): New function.
3084 (regcache_cooked_read_unsigned): New function.
3085 * regcache.h (regcache_cooked_read_signed): Declare.
3086 (regcache_cooked_read_unsigned): Declare.
3087 (regcache_raw_read_as_address): Delete declaration.
3088
3089 * blockframe.c (generic_read_register_dummy): Use
3090 regcache_cooked_read_unsigned.
3091 * i386-tdep.c (i386_extract_struct_value_address): Use
3092 regcache_cooked_read_unsigned.
3093
3094 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3095
3096 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3097 double sizes according to ELF ABI flags.
3098 (gdbarch_tdep): Record elf_flags.
3099
3100 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3101
3102 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3103 (m6812_prolog): They can appear in 68HC12 function prologue.
3104 (m68hc11_frame_chain): Cleanup.
3105
3106 2002-08-12 Andrew Cagney <cagney@redhat.com>
3107
3108 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3109 declarations.
3110 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3111 (i386_linux_register_raw_size): Delete function.
3112 (i386_linux_init_abi): Update.
3113 * i386-tdep.c (i386_register_raw_size): Delete function.
3114 (i386_register_byte): Delete function.
3115 (i386_gdbarch_init): Update.
3116 (i386_register_size): Delete array.
3117 (i386_register_offset): Delete array.
3118
3119 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3120 (REGISTER_RAW_SIZE): Delete macro.
3121 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3122 (REGISTER_BYTE): Delete macro.
3123
3124 2002-08-11 Aidan Skinner <aidan@velvet.net>
3125
3126 * ada-lang.c (ada_lookup_partial_symbol)
3127 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3128 prototype names so that grep ^func works properly.
3129
3130 * ada-lang.c (ada_array_element_type)
3131 (ada_lookup_partial_symbol): Fix typos in parameter list.
3132
3133 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3134 Fix prototype names so that grep ^func works properly.
3135
3136 2002-08-10 Andrew Cagney <cagney@redhat.com>
3137 Elena Zannoni <ezannoni@redhat.com>
3138 Martin M. Hunt <hunt@redhat.com>
3139
3140 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3141 (build_builtin_type_vec128i): Set the vector bit.
3142 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3143 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3144 (build_builtin_type_vec64): New function.
3145 (build_builtin_type_vec64i): New function.
3146 (build_gdbtypes): Initialize builtin_type_vec64 and
3147 builtin_type_vec64i.
3148
3149 2002-08-09 Andrew Cagney <cagney@redhat.com>
3150
3151 * regcache.c (regcache_dump): Compare the register offset
3152 with REGISTER_BYTE.
3153 * arch-utils.c (generic_register_byte): New function.
3154 * arch-utils.h (generic_register_byte): Declare.
3155 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3156 * gdbarch.h, gdbarch.c: Regenerate.
3157
3158 2002-08-09 Andrew Cagney <cagney@redhat.com>
3159
3160 * regcache.c: Include "gdbcmd.h"
3161 (_initialize_regcache): Add commands "maintenance print
3162 registers", "maintenance print raw-registers" and "maintenance
3163 print cooked-registers".
3164 (enum regcache_dump_what): Define.
3165 (dump_endian_bytes): New function.
3166 (regcache_dump): New function.
3167 (regcache_print): New function.
3168 (maintenance_print_registers): New function.
3169 (maintenance_print_raw_registers): New function.
3170 (maintenance_print_cooked_registers): New function.
3171 * Makefile.in (regcache.o): Update dependencies.
3172
3173 2002-08-09 Michael Snyder <msnyder@redhat.com>
3174
3175 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3176 (mips_push_arguments): Correct some comments. Use paddr_nz
3177 for printing addresses in debug output. Replace static
3178 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3179 (mips_n32n64_push_arguments): New function, cloned from
3180 mips_push_arguments and tuned for the n32/n64 ABI.
3181 (mips_push_register): Buffer needs dynamic allocation.
3182 (mips_print_register): Ditto.
3183 (do_gp_register_row): Ditto.
3184 (mips_store_return_value): Ditto.
3185 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3186
3187 2002-08-09 Don Howard <dhoward@redhat.com>
3188
3189 * memattr.c (mem_info_command): Print special case of upper bound
3190 as max CORE_ADDR + 1.
3191
3192 2002-08-08 Michael Snyder <msnyder@redhat.com>
3193
3194 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3195 returns structs by ref if they're too big to fit in two registers.
3196
3197 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3198
3199 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3200 saved regs value.
3201 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3202 mips_find_saved_regs().
3203 (mips_pop_frame): Likewise.
3204
3205 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3206
3207 * blockframe.c (frame_saved_regs_register_unwind): Revise
3208 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3209 frames are in use.
3210
3211 2002-08-09 Grace Sainsbury <graces@redhat.com>
3212
3213 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3214 T-packets; the 'a' is not taken as a register number.
3215 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3216 (remote_stopped_data_address): New functions; add to target
3217 vector.
3218 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3219 prototypes to match other implementations of this
3220 function. replace integer argument with pointer -- the length
3221 field in the Z-packet is the length of what is pointed to or 1 if
3222 pointer is null. Add to target vector.
3223 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3224 target vector.
3225
3226 From Mark Salter:
3227 * remote.c (remote_wait): Add support to extract optional
3228 watchpoint information from T-packet. Ignore unrecognized
3229 optional info in T-packet.
3230 (remote_async_wait): Ditto.
3231
3232 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3233
3234 * cli/cli-dump.c: Change fopen modes to use binary open modes
3235 as defined in include/fopen-bin.h throughout.
3236
3237 2002-08-08 Michael Snyder <msnyder@redhat.com>
3238
3239 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3240
3241 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3242
3243 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3244 assertion failure by returning early after a warning.
3245
3246 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3247
3248 * mips-tdep.c (mips_find_saved_regs): Make static.
3249 (mips_frame_init_saved_regs): New function.
3250 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3251 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3252 (mips_find_saved_regs): Delete declaration.
3253
3254 2002-08-08 Grace Sainsbury <graces@redhat.com>
3255
3256 * remote.c (remote_wait, remote_async_wait): Change
3257 thread_num from int to ULONGEST.
3258 (unpack_varlen_hex): Change result parameter from
3259 int * to ULONGEST *.
3260
3261 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3262
3263 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3264 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3265 powerpc*-*-*.
3266 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3267
3268 2002-08-08 Andrew Cagney <cagney@redhat.com>
3269
3270 * gcore.c (override_derive_stack_segment): Delete variable.
3271 (preempt_derive_stack_segment): Delete function.
3272 (derive_stack_segment): Delete function.
3273 (default_derive_stack_segment): Renamed to derive_stack_segment.
3274 (override_derive_heap_segment): Delete variable.
3275 (preempt_derive_heap_segment): Delete function.
3276 (derive_heap_segment): Delete function.
3277 (default_derive_heap_segment): Rename to derive_heap_segment.
3278
3279 2002-08-06 Michael Snyder <msnyder@redhat.com>
3280
3281 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3282 * mips-tdep.c (mips_EABI_use_struct_convention,
3283 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3284 New functions. (mips_use_struct_convention): Delete.
3285 (mips_gdbarch_init): set use_gdbarch_convention.
3286
3287 2002-08-06 Michael Snyder <msnyder@redhat.com>
3288
3289 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3290 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3291 mips_o32_reg_struct_has_addr): New functions.
3292 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3293
3294 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3295
3296 * regcache.c (pseudo_register): Delete function.
3297 (fetch_register): Delete function.
3298 (store_register): Delete function.
3299 (regcache_raw_read, legacy_read_register_gen): Use
3300 target_fetch_registers instead of fetch_register.
3301 (legacy_write_register_gen, regcache_raw_write): Use
3302 target_store_register instead of store_register.
3303 (write_register_bytes): Ditto.
3304
3305 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3306 (STORE_PSEUDO_REGISTER): Delete.
3307 * gdbarch.h, gdbarch.c: Regenerate.
3308
3309 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3310
3311 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3312 write dump file binary.
3313
3314 2002-08-05 Michael Snyder <msnyder@redhat.com>
3315
3316 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3317 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3318 (mips_gdbarch_init): Set N32 target to be mips64.
3319
3320 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3321
3322 * frame.c (find_saved_register): Break out of loop once saved
3323 register address is found. Don't mention sparc in loop comment
3324 anymore.
3325
3326 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3327
3328 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3329 mips_default_saved_regsize to 8.
3330
3331 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3332
3333 * gcore.c: Do not include <sys/procfs.h>.
3334 * Makefile.in (gcore.o): Update dependencies.
3335
3336 2002-08-06 Andrew Cagney <cagney@redhat.com>
3337
3338 * configure.tgt: Make arc-*-* obsolete.
3339 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3340 * MAINTAINERS: Make arc-elf obsolete.
3341 * arc-tdep.c: Make file obsolete.
3342 * config/arc/arc.mt: Ditto.
3343 * config/arc/tm-arc.h: Ditto.
3344
3345 2002-08-05 Theodore A. Roth <troth@verinet.com>
3346
3347 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3348
3349 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3350
3351 * mcore-tdep.c (mcore_gdbarch_init): Use
3352 generic_unwind_get_saved_register instead of
3353 generic_get_saved_register.
3354 * v850-tdep.c (v850_gdbarch_init): Ditto.
3355 * frv-tdep.c (frv_gdbarch_init): Ditto.
3356 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3357 * s390-tdep.c (s390_gdbarch_init): Ditto.
3358 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3359 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3360 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3361
3362 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3363
3364 * objfiles.h: Add missing #include "symfile.h"
3365
3366 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3367
3368 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3369
3370 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3371 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3372 of FIELD_BITSIZE.
3373
3374 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3375
3376 * NEWS: Cleanup and nitpick.
3377
3378 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3379
3380 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3381
3382 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3383
3384 * Makefile.in (gdbtk-bp.o): Update dependencies.
3385 (gdbtk-register.o): Ditto.
3386 (gdbtk-varobj.o): Ditto.
3387
3388 2002-08-03 Andrew Cagney <cagney@redhat.com>
3389
3390 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3391 m68hc11_fetch_pseudo_register.
3392 (m68hc11_pseudo_register_write): Replace
3393 m68hc11_store_pseudo_register.
3394 (m68hc11_gdbarch_init): Update.
3395
3396 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3397
3398 * gdbarch.sh: Include "gdb_string.h".
3399 * gdbarch.c: Regenerate.
3400
3401 * regcache.c: Include "gdb_string.h".
3402 * ax-general.c: Ditto.
3403 * varobj.c: Ditto.
3404 * std-regs.c: Ditto.
3405 * fbsd-proc.c: Ditto.
3406 * thread.c: Ditto.
3407
3408 * Makefile.in (regcache.o): Update dependencies.
3409 (thread.o, gdbarch.o): Ditto.
3410 (ax-general.o, gdbarch.o): Ditto.
3411 (varobj.o, std-regs.o): Ditto.
3412 (fbsd-proc.o): Specify dependencies.
3413
3414 2002-08-02 Andrew Cagney <cagney@redhat.com>
3415
3416 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3417 regnum.
3418 (regcache_cooked_write): Ditto.
3419
3420 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3421
3422 * regcache.c (regcache_cooked_read): New function.
3423 (regcache_cooked_write): New function.
3424 (read_register_gen): Rewrite using regcache_cooked_read.
3425 (write_register_gen): Rewrite using regcache_cooked_write.
3426
3427 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3428 Declare.
3429
3430 2002-08-02 Andrew Cagney <cagney@redhat.com>
3431
3432 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3433 Replace the architecture methods register_read and register_write.
3434 * gdbarch.h, gdbarch.c: Regenerate.
3435 * regcache.c (init_regcache_descr): Update.
3436 (read_register_gen): Update.
3437 (write_register_gen): Update.
3438 (supply_register): Update comment.
3439
3440 * sh-tdep.c (sh_gdbarch_init): Update.
3441 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3442 `regcache' and `gdbarch' parameters. Make `buffer' a void
3443 pointer. Update code.
3444 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3445 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3446 void pointer. Update code.
3447 (sh64_register_write): Delete.
3448 (sh4_register_read): Delete.
3449 (sh64_register_read): Delete.
3450 (sh4_register_write): Delete.
3451 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3452 void pointer, `to' parameter a void pointer.
3453 (sh_sh64_register_convert_to_raw): Ditto.
3454
3455 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3456
3457 * mips-tdep.c (mips_register_virtual_type): Use architecture
3458 invariant return values.
3459
3460 2002-08-01 Andrew Cagney <cagney@redhat.com>
3461
3462 * linux-proc.c: Include "gdb_string.h".
3463 * Makefile.in (linux-proc.o): Update dependency list.
3464
3465 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3466
3467 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3468 comment.
3469
3470 2002-08-01 Grace Sainsbury <graces@redhat.com>
3471
3472 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3473 to_insert_watchpoint, to_remove_watchpoint,
3474 to_stopped_by_watchpoint, to_stopped_data_address,
3475 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3476 target vecctor. Define their corresponding macros so they call
3477 them.
3478
3479 * target.c: Add default and debug versions of for
3480 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3481 to_insert_watchpoint, to_remove_watchpoint,
3482 to_stopped_by_watchpoint, to_stopped_data_address,
3483 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3484
3485 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3486
3487 * mips-tdep.c (mips_register_virtual_type): New function.
3488 (mips_gdbarch_init): Register mips_register_virtual_type()
3489 with gdbarch machinery.
3490 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3491 this file instead of tm-bigmips.h.
3492 (MIPS_REGSIZE): Delete this macro.
3493 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3494 multiarch version in mips-tdep.c will be found.
3495
3496 2002-08-01 Andrew Cagney <cagney@redhat.com>
3497
3498 * NEWS: Menion that CHILL has been made obsolete.
3499
3500 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3501 * stabsread.c (read_range_type): Ditto.
3502 * gdbtypes.h: Ditto.
3503 * language.c (binop_type_check): Ditto.
3504 (binop_result_type): Ditto.
3505 (integral_type): Ditto.
3506 (character_type): Ditto.
3507 (string_type): Ditto.
3508 (boolean_type): Ditto.
3509 (structured_type): Ditto.
3510 (lang_bool_type): Ditto.
3511 (binop_type_check): Ditto.
3512 * language.h (_LANG_chill): Ditto.
3513 * dwarfread.c (set_cu_language): Ditto.
3514 * dwarfread.c (CHILL_PRODUCER): Ditto.
3515 * dwarfread.c (handle_producer): Ditto.
3516 * expression.h (enum exp_opcode): Ditto.
3517 * eval.c: Ditto for comments.
3518 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3519 * expprint.c (print_subexp): Ditto.
3520 (print_subexp): Ditto.
3521 * valops.c (value_cast): Ditto.
3522 (search_struct_field): Ditto.
3523 * value.h (COERCE_VARYING_ARRAY): Ditto.
3524 * symfile.c (init_filename_language_table): Ditto.
3525 (add_psymbol_with_dem_name_to_list): Ditto.
3526 * valarith.c (value_binop): Ditto.
3527 (value_neg): Ditto.
3528 * valops.c (value_slice): Ditto.
3529 * symtab.h (union language_specific): Ditto.
3530 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3531 (SYMBOL_DEMANGLED_NAME): Ditto.
3532 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3533 * defs.h (enum language): Ditto.
3534 * symtab.c (got_symtab): Ditto.
3535 * utils.c (fprintf_symbol_filtered): Ditto.
3536
3537 * ch-typeprint.c: Make file obsolete.
3538 * ch-valprint.c: Make file obsolete.
3539 * ch-lang.h: Make file obsolete.
3540 * ch-exp.c: Make file obsolete.
3541 * ch-lang.c: Make file obsolete.
3542
3543 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3544 CHILL_LIB.
3545 (TARGET_FLAGS_TO_PASS): Ditto.
3546 (CHILLFLAGS): Obsolete.
3547 (CHILL): Obsolete.
3548 (CHILL_FOR_TARGET): Obsolete.
3549 (CHILL_LIB): Obsolete.
3550 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3551 ch-valprint.c.
3552 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3553 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3554 ch-lang.o.
3555 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3556 targets.
3557
3558 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3559
3560 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3561 This does not change anything at the moment, but will be helpful
3562 later when full Ada support is integrated.
3563
3564 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3565
3566 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3567 help message.
3568
3569 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3570
3571 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3572 and save it in a local variable. Use variable in later test.
3573
3574 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3575
3576 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3577 test. (Thanks to Daniel Jacobowitz.)
3578
3579 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3580
3581 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3582 (mips_abi_strings): Add "n64".
3583 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3584
3585 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3586
3587 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3588 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3589
3590 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3591
3592 * utils.c (host_pointer_to_address, address_to_host_pointer):
3593 Use gdb_assert() instead of explicit call to internal_error().
3594
3595 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3596
3597 * Makefile.in (rs6000-nat.o): Update dependencies.
3598
3599 From Nicholas Duffek:
3600 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3601 (aix-thread.o): New rule.
3602 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3603 * config/powerpc/aix432.mh: New file.
3604
3605 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3606
3607 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3608 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3609 (fetch_core_registers, ppc_linux_supply_gregset)
3610 (ppc_linux_supply_fpregset): New functions.
3611 (ppc_linux_regset_core_fns): New.
3612 (_initialize_ppc_linux_tdep): Call add_core_fns.
3613 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3614 and ppc_linux_supply_gregset.
3615 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3616 (supply_fpregset): Call ppc_linux_supply_fpregset.
3617 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3618 corelow.o.
3619 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3620
3621 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3622
3623 * symtab.c (lookup_symbol): Demangle before lowercasing.
3624
3625 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3626
3627 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3628 declaration.
3629 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3630 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3631 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3632 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3633 "gdb_string.h".
3634 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3635 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3636 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3637 (avr-tdep.o, mon960-rom.o): Ditto.
3638 (aout_stabs_gnu_h): Define.
3639 (symtab_h): Remove $(gdb_obstack_h).
3640
3641 2002-07-30 Jim Blandy <jimb@redhat.com>
3642
3643 Patch from David Carlton <carlton@math.stanford.edu>:
3644 * gdbinit.in: Move the `dir' commands that add GDB's own source
3645 directory to the search path to the end, so that the `gdb' source
3646 directory will be searched first.
3647
3648 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3649
3650 * gdb_obstack.h: New file.
3651 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3652 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3653 * objfiles.h: Include "gdb_obstack.h".
3654 * Makefile.in (gdb_obstack_h): Define.
3655 (symtab_h): Add $(gdb_obstack_h).
3656 (objfiles_h): Add $(gdb_obstack_h).
3657
3658 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3659 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3660 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3661 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3662 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3663 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3664 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3665 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3666
3667 * Makefile.in (bcache.o): Update dependencies.
3668 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3669 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3670 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3671 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3672 (stabsread.o, symfile.o, symmisc.o): Ditto.
3673 (symtab.o, typeprint.o, macroexp.o): Ditto.
3674 (macrotab.o, mdebugread.o): Ditto.
3675 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3676 (coff_ecoff_h, aout_aout64_h): Define.
3677 (aout_stabs_gnu_h, libaout_h): Define.
3678
3679 2002-07-29 Andrew Cagney <cagney@redhat.com>
3680
3681 * regcache.c (struct regcache_descr): Rename nr_registers to
3682 nr_cooked_registers. Revise comments describing the structure
3683 member fields.
3684 (init_regcache_descr): Update.
3685 (init_legacy_regcache_descr): Update.
3686 (read_register_gen, write_register_gen): When a cooked register in
3687 the raw register range, directly access the value from the raw
3688 register cache.
3689
3690 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3691
3692 * z8k-tdep.c: Do not include "obstack.h".
3693 * h8300-tdep.c, h8500-tdep.c: Ditto.
3694 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3695 * valprint.c, v850-tdep.c: Ditto.
3696 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3697 * mn10200-tdep.c: Ditto.
3698
3699 * Makefile.in (z8k-tdep.o): Update dependencies.
3700 (m68hc11-tdep.o, valprint.o): Ditto.
3701 (v850-tdep.o, d10v-tdep.o): Ditto.
3702 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3703 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3704 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3705 (sh_opc_h, gdb_sim_sh_h): Define.
3706 (elf_sh_h, elf_bfd_h): Define.
3707 (opcode_m68hc11_h): Define.
3708 (OPCODES_SRC, OPCODES_DIR): define.
3709 (OPCODES): Use $(OPCODES_DIR).
3710 (gdb_sim_d10v_h): Rename sim_d10v_h.
3711 (gdb_sim_arm_h): Rename sim_arm_h.
3712
3713 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3714
3715 * utils.c (host_pointer_to_address, address_to_host_pointer):
3716 Change internal_error() message to indicate function responsible
3717 for the error.
3718
3719 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3720
3721 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3722 calls to local_hex_string_custom().
3723
3724 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3725
3726 * irix5-nat.c: Move IRIX shared library support from here...
3727 * solib-irix.c: ...to here. Revised substantially to work with
3728 generic solib framework.
3729
3730 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3731 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3732 * mips-irix-tdep.c: New file.
3733
3734 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3735 (mips-irix-tdep.o, solib-irix.o): New rules.
3736 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3737 solib-irix.o.
3738 * config/mips/irix6.mt (TDEPFILES): Likewise.
3739 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3740
3741 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3742
3743 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3744 disabled (via ``#if 0'') includes.
3745
3746 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3747
3748 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3749 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3750 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3751 Add support for the fpscr register.
3752 * rs6000-nat.c (regmap, fetch_inferior_registers)
3753 (store_inferior_registers, fetch_core_registers): Likewise.
3754
3755 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3756
3757 * rs6000-nat.c (language.h): Include.
3758 (special_regs): Delete this array.
3759 (regmap): New function.
3760 (fetch_register, store_register): Use regmap() to map gdb
3761 register numbers to ptrace register numbers. Also, use
3762 outputs from regmap() to make decisions regarding type of
3763 ptrace() call to make. In particular, don't compare against
3764 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3765 (fetch_inferior_registers, store_inferior_registers): Where
3766 possible, obtain register numbers from tdep struct. Don't
3767 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3768 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3769 (LAST_UISA_SP_REGNUM): Delete.
3770
3771 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3772
3773 * rs6000-nat.c (ppc-tdep.h): Include.
3774 (fetch_registers, store_register, fetch_core_registers): Don't
3775 access registers[] directly. Instead, use supply_register() or
3776 regcache_collect() as appropriate.
3777 (find_toc_address): Format hex address with local_hex_string().
3778
3779 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3780
3781 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3782 bfd/elf32-frv.c.
3783
3784 2002-07-24 Tom Tromey <tromey@redhat.com>
3785
3786 * jv-exp.y: Marked all strings with _().
3787 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3788 internal_error.
3789 (MethodInvocation, CastExpression, parse_number, yyerror,
3790 java_type_from_name, push_expression_name, yylex): Typo fixes.
3791
3792 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3793
3794 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3795 (tee_file_flush, tee_file_write, tee_file_fputs)
3796 (tee_file_isatty): New.
3797 * ui-file.h (tee_file_new): Add prototype.
3798
3799 2002-07-24 Aidan Skinner <aidan@velvet.net>
3800
3801 * ada-lang.c: Change k&r style function definitions to prototyped
3802 form.
3803 * ada-typeprint.c: Change k&r style function definitions to prototyped
3804 form.
3805 * ada-valprint.c: Change k&r style function definitions to prototyped
3806 form.
3807
3808 2002-07-24 Andrew Cagney <cagney@redhat.com>
3809
3810 * README: Remove reference to remote-bug.
3811 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3812 remote-bug.c.
3813 (m88k-nat.o): Delete rule.
3814 (m88k-tdep.o): Delete rule.
3815 (remote-bug.o): Delete rule.
3816 * MAINTAINERS: Mark as obsolete.
3817 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3818 * m88k-tdep.c: Make file obsolete.
3819 * config/m88k/m88k.mh: Ditto.
3820 * config/m88k/delta88v4.mh: Ditto.
3821 * config/m88k/delta88v4.mt: Ditto.
3822 * config/m88k/delta88.mt: Ditto.
3823 * config/m88k/delta88.mh: Ditto.
3824 * remote-bug.c: Ditto.
3825 * config/m88k/tm-delta88.h: Ditto.
3826 * config/m88k/nm-delta88v4.h: Ditto.
3827 * config/m88k/xm-delta88.h: Ditto.
3828 * config/m88k/xm-dgux.h: Ditto.
3829 * config/m88k/tm-m88k.h: Ditto.
3830 * config/m88k/nm-m88k.h: Ditto.
3831 * config/m88k/tm-delta88v4.h: Ditto.
3832 * m88k-nat.c: Ditto.
3833 * cxux-nat.c: Ditto.
3834 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3835 and m88*-*-* obsolete.
3836 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3837 m88*-*-* obsolete.
3838
3839 2002-07-24 Andrew Cagney <cagney@redhat.com>
3840
3841 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3842 constant. Same for local pointer variables.
3843 (extract_signed_integer): Ditto.
3844 * defs.h (extract_unsigned_integer): Update.
3845 (extract_signed_integer): Update.
3846
3847 2002-07-24 Andrew Cagney <cagney@redhat.com>
3848
3849 * regcache.c (regcache_raw_write): Change buf parameter to a
3850 constant void pointer.
3851 (regcache_raw_read): Change buf parameter to a void pointer.
3852 (legacy_write_register_gen): Change myaddr parameter a constant
3853 void pointer.
3854 (supply_register): Change val parameter to a const void pointer.
3855 * regcache.h (regcache_raw_write): Update declaration.
3856 (regcache_raw_read): Update declaration.
3857 (supply_register): Update declaration.
3858
3859 2002-07-24 Tom Tromey <tromey@redhat.com>
3860
3861 * defs.h (gdb_readline_wrapper): Declare.
3862 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3863 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3864 * top.c (gdb_readline_wrapper): New function.
3865 (command_line_input): Use it.
3866
3867 2002-07-24 Andrew Cagney <cagney@redhat.com>
3868
3869 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3870 regcache_read and regcache_write.
3871 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3872 * regcache.c: Update.
3873 * sh-tdep.c (sh64_push_arguments): Update comment.
3874 (sh_pseudo_register_read): Update.
3875 (sh_pseudo_register_write): Update.
3876 (sh4_register_read): Update.
3877 (sh4_register_write): Update.
3878 (sh64_pseudo_register_read): Update.
3879 (sh64_pseudo_register_write): Update.
3880 (sh64_register_read): Update.
3881 (sh64_register_write): Update.
3882 * i386-tdep.c (i386_extract_return_value): Update.
3883 (i386_extract_struct_value_address): Update.
3884 (i386_extract_return_value): Update.
3885 * blockframe.c (generic_read_register_dummy): Update.
3886 (generic_call_dummy_register_unwind): Update
3887 * infrun.c (write_inferior_status_register): Update.
3888
3889 2002-07-23 Jim Blandy <jimb@redhat.com>
3890
3891 * parser-defs.h (expression_context_pc): Make this extern.
3892 (Thanks to Michael Snyder.)
3893
3894 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3895
3896 GDB 5.2.1 released from 5.2 branch.
3897 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3898 * README: Update to mention 5.2.1.
3899
3900 2002-07-23 Mark Salter <msalter@redhat.com>
3901
3902 * remote.c (remote_read_bytes): Fix check for error.
3903
3904 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3905
3906 * aix-thread.c (language.h): Include.
3907 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3908 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3909 Print newlines at end of debug messages.
3910 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3911 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3912
3913 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3914
3915 * aix-thread.c (ppc-tdep.h): Include.
3916 (special_register_p): New function.
3917 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3918 (store_regs_user_thread): Use register number information from
3919 gdbarch_tdep struct instead of hardcoded offsets relative to
3920 FIRST_UISA_SP_REGNUM.
3921 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3922 special_register_p() instead of using FPLAST_REGNUM and
3923 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3924 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3925 will be MQ's register number.
3926
3927 2002-07-22 Michael Snyder <msnyder@redhat.com>
3928
3929 * aix-thread.c (ops): Rename to aix_thread_ops.
3930 (base_ops): Rename to base_target.
3931 (ops_attach): Rename to aix_thread_attach.
3932 (ops_detach): Rename to aix_thread_detach.
3933 (ops_resume): Rename to aix_thread_detach.
3934 (ops_wait): Rename to aix_thread_wait.
3935 (ops_kill): Rename to aix_thread_kill.
3936 (init_ops): Rename to init_aix_thread_ops.
3937 (ops_fetch_register): Rename to aix_thread_fetch_register.
3938 (ops_store_register): Rename to aix_thread_store_register.
3939 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3940 (ops_thread_alive): Rename to aix_thread_thread_alive.
3941 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3942 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3943 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3944 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3945 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3946 (store_regs_lib): Rename to store_regs_user_thread.
3947 (store_regs_kern): Rename to store_regs_kernel_thread.
3948
3949 2002-07-22 Michael Snyder <msnyder@redhat.com>
3950
3951 * aix-thread.c (ops_prepare_to_store): Eliminate.
3952 (init_ops): Don't initialize ops.prepare_to_store.
3953 (store_regs_kern): Pre-fetch register buffers from child,
3954 because some registers may not be in the cache. Copy
3955 regs from register cache only if they are cached.
3956 (store_regs_lib): Copy regs from register cache only
3957 if they are cached.
3958 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3959 fill_gprs64): Ditto.
3960
3961 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3962
3963 * aix-thread.c (gdb_assert.h): Include.
3964 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3965 register sizes (from register cache) match size of buffer holding
3966 register data.
3967 (fill_sprs32): Change parameter types to match those in the ptrace()
3968 buffer.
3969 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3970 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3971
3972 2002-07-22 Michael Snyder <msnyder@redhat.com>
3973
3974 * aix-thread.c (supply_sprs64): Cosmetic change.
3975 (supply_sprs32): Cosmetic change.
3976 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3977 (fill_sprs64): Use regcache_collect instead of read_register.
3978 (store_regs_lib): Use regcache_collect instead of
3979 read_register. Use fill_sprs32 instead of fill_sprs64,
3980 if debugging a 32-bit architecture.
3981 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3982 out of the register cache, instead of passing a pointer into
3983 the register cache directly to ptrace. Use regcache_collect
3984 insteaad of read_register.
3985 (ops_prepare_to_store): Use target_read_registers instead
3986 of read_register_bytes.
3987
3988 2002-07-20 Aidan Skinner <aidan@velvet.net>
3989
3990 * MAINTAINERS: Add self under write after approval.
3991
3992 2002-07-20 Aidan Skinner <aidan@velvet.net>
3993
3994 * ada-tasks.c: Change k&r style function definitions to prototyped
3995 form.
3996
3997 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3998
3999 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4000 * x86-64-tdep.c: Include "objfiles.h".
4001 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4002 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4003
4004 2002-07-17 Michal Ludvig <michal@suse.cz>
4005
4006 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4007 (update_context): Initialise cfa variable.
4008
4009 2002-07-17 Michael Snyder <msnyder@redhat.com>
4010
4011 * aix-thread.c: Shorten some long lines.
4012 Bring comments into line with code spec.
4013
4014 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4015
4016 * infrun.c: Re-indent using gdb_indent.sh.
4017
4018 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4019
4020 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4021 Leave the indentation temporarily untouched, to minimize the diffs.
4022
4023 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4024
4025 * stabsread.c: Make os9k sections of the code obsolete,
4026 for real this time.
4027 * stabsread.h: Make os9k sections of the code obsolete.
4028
4029 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4030
4031 * linux-low.c (regsets_store_inferior_registers): Add free()
4032 at the end of a loop to prevent memory leak.
4033 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4034 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4035 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4036 line a comment.
4037 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4038
4039 2002-07-17 Jim Blandy <jimb@redhat.com>
4040
4041 * macrocmd.c (info_macro_command): Remove newline from error
4042 message.
4043
4044 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4045
4046 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4047 (sh_gdbarch_init): Use it for sh-dsp.
4048
4049 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4050
4051 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4052 64-bit DWARF2 format.
4053
4054 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4055
4056 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4057 <sys/proc.h> when not available.
4058
4059 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4060
4061 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4062 * stabsread.c: Make os9k sections of the code obsolete.
4063 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4064 * config/i386/i386os9k.mt: Make file obsolete.
4065 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4066 (COMMON_OBS): Remove os9kread.o
4067 (SFILES): Remove os9kread.c.
4068 (os9kread.o, remote-os9k.o): Make target obsolete.
4069 * remote-os9k.c: Make file obsolete.
4070 * os9kread.c: Make file obsolete.
4071 * Makefile.in
4072
4073 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4074
4075 * NEWS: Mention that the FR30 has been made obsolete.
4076 * fr30-tdep.c: Make file obsolete.
4077 * config/fr30/tm-fr30.h: Ditto.
4078 * config/fr30/fr30.mt: Ditto.
4079 * configure.tgt: Make fr30-*-elf obsolete.
4080 * MAINTAINERS: Make fr30-elf obsolete.
4081
4082 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4083
4084 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4085 found is not inside a section.
4086
4087 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4088
4089 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4090 strerror().
4091 (pdc_realloc): Use xrealloc() instead of realloc().
4092
4093 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4094
4095 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4096 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4097 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4098 macros.
4099
4100 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4101
4102 * aix-thread.c (ptrace_check): Eliminate goto.
4103 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4104 problem.
4105
4106 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4107
4108 * aix-thread.c (gdbcmd.h): Include.
4109 (DEBUG, DBG, DBG2, dbg): Eliminate.
4110 (debug_aix_thread): New static global.
4111 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4112 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4113 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4114 invocations to DBG and DBG2 macros to test against
4115 ``debug_aix_thread'' and call fprintf_unfiltered().
4116 (_initialize_aix_thread): Add new command "set debug aix-thread".
4117
4118 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4119
4120 From Gerhard Tonn <TON@de.ibm.com>:
4121 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4122 instead of supply_register.
4123
4124 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4125
4126 * dwarf2cfi.c: Include "gdb_assert.h".
4127 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4128 non-NULL.
4129 (update_context): Do not use __func__. Add missing ``break''.
4130 (update_context): Do not use __func__.
4131
4132 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4133
4134 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4135 and its setting. Set gdbarch instruction printing functions
4136 directly. For non-rs6000 case use new function
4137 gdb_print_insn_powerpc.
4138 (gdb_print_insn_powerpc): New function.
4139
4140 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4141
4142 * NEWS: Mention that the d30v has been marked obsolete.
4143 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4144 * configure.tgt: Mark d30v-*-* as obsolete.
4145 * d30v-tdep.c: Mark file as obsolete.
4146 * config/d30v/d30v.mt: Ditto.
4147 * config/d30v/tm-d30v.h: Ditto.
4148
4149 2002-07-13 Aidan Skinner <aidan@velvet.net>
4150
4151 * ada-tasks.c (add_task_entry): replace calls to
4152 malloc() with xmalloc
4153 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4154
4155 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4156 ada_finish_decode_line_1, all_sals_for_line
4157 ada_breakpoint_rewrite): replace calls to free() with xfree()
4158
4159 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4160
4161 From Nicholas Duffek (with minor changes by Martin Hunt,
4162 Louis Hamilton, and Kevin Buettner):
4163 * aix-thread.c: New file.
4164
4165 2002-07-12 Petr Sorfa <petrs@caldera.com>
4166
4167 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4168 complaint for invalid attribute class or form.
4169 (read_func_scope): DW_AT_frame_base
4170 better handling of DW_AT_block*.
4171 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4172 better handling of DW_AT_block*.
4173 (read_common_block): DW_AT_location
4174 better handling of DW_AT_block*.
4175 (read_partial_die): DW_AT_location better handling
4176 of DW_AT_block*.
4177 (new_symbol): DW_AT_external better handling of
4178 DW_AT_block*. Proper initialization of variable
4179 "addr".
4180 (attr_form_is_block): New function that returns true
4181 if the attribute's form is of DW_FORM_block*.
4182
4183 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4184
4185 * valops.c (find_method_list): Remove comment about
4186 removed STATIC_MEMFUNCP argument.
4187 (value_find_oload_method_list): Likewise.
4188
4189 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4190
4191 From Nicholas Duffek:
4192 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4193 target_new_objfile_hook.
4194
4195 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4196
4197 From Nicholas Duffek:
4198 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4199 csect.
4200
4201 2002-07-12 Andrew Cagney <cagney@redhat.com>
4202
4203 * MAINTAINERS: Mention --enable-sim-build-warnings.
4204 (m68hc11-elf): Disable sim build warnings.
4205 (m32r-elf): Mark as broken obsolete candidate.
4206 (x86_64-linux-gnu): Mark as buildable with -Werror.
4207 (arm-elf): Change -w to ``,'' which enables warnings but not
4208 -Werror.
4209
4210 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4211
4212 * bcache.h: Update copyright.
4213 (struct bstring, struct bcache): Move definition to "bcache.c".
4214 Replaced by opaque declaration.
4215 (bcache_xfree): Replace free_bcache.
4216 (bcache_xmalloc, bcache_memory_used): Declare.
4217
4218 * bcache.c: Update copyright.
4219 (struct bstring, struct bcache): Moved to here from "bcache.h".
4220 Update comments.
4221 (bcache_xmalloc, bcache_memory_used): New functions.
4222 (bcache_xfree): Replace function free_bcache.
4223
4224 * Makefile.in (objfiles.o): Add $(bcache_h).
4225 (objfiles_h): Remove $(bcache_h).
4226 (symfile.o): Add $(bcache_h).
4227
4228 * symmisc.c: Update copyright.
4229 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4230 (print_objfile_statistics): Use bcache_memory_used.
4231
4232 * symfile.c: Include "bcache.h".
4233 (reread_symbols): Use bcache_xfree.
4234 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4235 (add_psymbol_to_list): Pass psymbol_cache by value.
4236 (add_psymbol_with_dem_name_to_list): Ditto.
4237
4238 * objfiles.h: Update copyright.
4239 (struct bcache): Declare opaque. Do not include "bcache.h".
4240 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4241 bcache'' pointers.
4242 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4243
4244 * objfiles.c: Include "bcache.h". Update copyright.
4245 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4246 macro_cache.
4247 (free_objfile): Use bcache_xfree.
4248
4249 2002-07-11 Grace Sainsbury <graces@redhat.com>
4250
4251 * monitor.c (monitor_fetch_register): Make name a constant.
4252 (monitor_store_register): Same.
4253
4254 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4255
4256 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4257 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4258 (finish_block) For non-function blocks, hash the symbol table. For
4259 function blocks, mark the symbol table as unhashed.
4260 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4261 (msymbol_hash_iw): Likewise.
4262 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4263 value.
4264 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4265 (lookup_minimal_symbol): Likewise for both.
4266 * symtab.h (struct block): Add `hashtable' flag. Comment the
4267 hashtable.
4268 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4269 (ALL_BLOCK_SYMBOLS): Update.
4270 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4271 (struct symbol): Add `hash_next' pointer.
4272 * symtab.c (lookup_block_symbol): Search using the hash table when
4273 possible.
4274 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4275 (search_symbols, find_addr_symbol): Likewise.
4276
4277 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4278 (read_dst_symtab): Likewise.
4279 * jv-lang.c (get_java_class_symtab): Likewise.
4280 * mdebugread.c: Include "gdb_assert.h".
4281 (shrink_block): Assert that the block being modified is not hashed.
4282 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4283 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4284 symbols.
4285 (dump_symtab): Recognize hashed blocks.
4286 * printcmd.c (print_frame_args): Assert that function blocks do not
4287 have hashed symbol tables.
4288 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4289 (fill_in_ada_prototype, debug_print_block): Likewise.
4290 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4291
4292 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4293
4294 * stack.c (print_frame): Use result of frame_address_in_block()
4295 instead of fi->pc when evaluating symbols.
4296 (backtrace_command_1): Ditto.
4297
4298 2002-07-11 Andrew Cagney <cagney@redhat.com>
4299
4300 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4301 Make static.
4302
4303 * arm-tdep.c (arm_register_name): Make return type constant.
4304
4305 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4306
4307 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4308 prototype.
4309 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4310 * s390-tdep.c (s390_fp_regnum): Ditto.
4311 (s390_read_fp): Ditto.
4312 (s390_pop_frame): Ditto.
4313 (_initialize_s390_tdep): Ditto.
4314 * remote.c (get_remote_state): Ditto.
4315 * procfs.c (mappingflags): Ditto.
4316 * memattr.c (_initialize_mem): Ditto.
4317 * mcore-tdep.c (mcore_pop_frame): Ditto.
4318 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4319 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4320 * language.c (set_case_str): Ditto.
4321 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4322 * frv-tdep.c (new_variant): Ditto.
4323 (frv_stopped_data_address): Ditto.
4324 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4325 (context_alloc): Ditto.
4326 (frame_state_alloc): Ditto.
4327 (unwind_tmp_obstack_init): Ditto.
4328 (unwind_tmp_obstack_free): Ditto.
4329 (cfi_read_fp): Ditto.
4330 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4331 (cris_pop_frame): Ditto.
4332 * c-lang.c (scanning_macro_expansion): Ditto.
4333 (finished_macro_expansion): Ditto.
4334 (c_preprocess_and_parse): Ditto.
4335 * gdbarch.sh: Ditto.
4336 * gdbarch.h, gdbarch.c: Regenerate.
4337 * config/mn10200/tm-mn10200.h: Adjust indentation.
4338 * target.c: Adjust indentation.
4339 * symtab.h: Adjust indentation.
4340 * stabsread.h: Adjust indentation.
4341 * remote-es.c: Adjust indentation.
4342 * os9kread.c: Adjust indentation.
4343
4344 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4345
4346 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4347 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4348
4349 2002-07-10 Grace Sainsbury <graces@redhat.com>
4350
4351 * NEWS: Mention m68k, mcore multi-arching.
4352 * MAINTAINERS: Change status of m68k, mcore to reflect
4353 multi-arching.
4354
4355 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4356
4357 * valops.c (find_overload_match): Free oload_syms.
4358
4359 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4360
4361 Define HAVE_SYS_PROC_H if sys/proc.h exists
4362 * configure.in: Add check for sys/proc.h
4363 * config.in: Regenerate.
4364 * configure: Regenerate.
4365
4366 2002-07-09 Grace Sainsbury <graces@redhat.com>
4367
4368 * config/m68k/tm-m68k.h: Remove macros wrapped in
4369 #if !GDB_MULTI_ARCH.
4370
4371 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4372
4373 * config.in, configure: Regenerate.
4374
4375 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4376
4377 * dwarf2cfi.c: Include "gcore.h".
4378 (execute_stack_op): Fix implementation of the
4379 DW_OP_deref and DW_OP_deref_size operators by letting do their
4380 lookup in the target.
4381
4382 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4383
4384 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4385 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4386 tdep->sc_sp_offset.
4387
4388 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4389
4390 Fix PR gdb/595, gdb/602
4391 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4392 Don't call value_cast, just read the vtable pointer; update comments
4393 to match.
4394
4395 2002-07-05 Grace Sainsbury <graces@redhat.com>
4396
4397 * config/mcore/tm-mcore.h: Remove file.
4398 * config/mcore/mcore.mt: Remove definition of TM_FILE
4399 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4400
4401 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4402
4403 * i386bsd-tdep.c: Include "gdb_string.h".
4404
4405 2002-07-04 Grace Sainsbury <graces@redhat.com>
4406
4407 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4408 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4409 mcore-tdep.
4410 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4411 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4412 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4413 (RETVAL_REGNUM): Move macros from tm-mcore.h
4414 (mcore_reg_struct_has_addr): New function.
4415 (mcore_gdbarch_init): Added initializations for the macros removed
4416 from tm-mcore.h.
4417
4418 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4419
4420 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4421 traditonal string branding within the ELF header.
4422
4423 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4424
4425 * symtab.c (remove_params): New function.
4426 (make_symbol_overload_list): Use it instead of cplus_demangle.
4427 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4428
4429 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4430
4431 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4432
4433 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4434 New variables.
4435 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4436 and tdep->sigtramp_end.
4437 * i386obsd-nat.c: New file.
4438 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4439
4440 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4441 Don't call get_current_frame().
4442
4443 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4444
4445 * i386-nat.c (child_post_startup_inferior): New function
4446 calling i386_cleanup_dregs if
4447 I386_USE_GENERIC_WATCHPOINTS is defined.
4448 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4449 conditional to acknowledge that i386-nat.c has its
4450 own child_post_startup_inferior function.
4451
4452 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4453
4454 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4455 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4456 instead of MAX_REGISTER_RAW_SIZE.
4457 (i386_extract_return_value, i386_extract_struct_value_address):
4458 Convert to use regcache.
4459 (i386_gdbarch_init): Set max_register_raw_size and
4460 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4461 Set extract_return_value and extract_struct_value_address instead
4462 of their deprecated variants.
4463
4464 Convert i386 target to generic dummy frames.
4465 * i386-tdep.c: Include "symfile.h".
4466 (i386_frameless_signal_p): Consider a function to be frameless if
4467 the pc points at the first instruction of the function.
4468 (i386_frame_chain): Handle (generic) call dummies.
4469 (i386_frame_saved_pc): Likewise.
4470 (i386_frame_init_saved_regs): Remove code dealing with call
4471 dummies on the stack.
4472 (i386_push_dummy_frame): Removed.
4473 (i386_call_dummy_words): Removed.
4474 (i386_fix_call_dummy): Removed.
4475 (i386_push_return_address): New function.
4476 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4477 parameter, and don't call get_current_frame.
4478 (i386_pop_frame): New function.
4479 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4480 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4481 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4482 call_dummy_length to 0, set call_dummy_words to NULL, set
4483 sizeof_call_dummy_words to 0, set fix_call_dummy to
4484 generic_fix_call_dummy, set pc_in_call_dummy to
4485 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4486 generic_push_dummy_frame, set push_return_address to
4487 i386_push_return_address and set frame_chain_valid to
4488 generic_file_frame_chain_valid.
4489
4490 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4491
4492 * gdbarch.sh (struct regcache): Add opaque declaration.
4493 (EXTRACT_RETURN_VALUE): New architecture method.
4494 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4495 * gdbarch.h, gdbarch.c: Regenerate.
4496 * arch-utils.c (legacy_extract_return_value): New function.
4497 * arch-utils.h (legacy_extract_return_value): Declare.
4498 * values.c (value_being_returned): Re-enable code handling
4499 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4500 deprecated_grub_regcache_for_registers call to block handling
4501 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4502 (EXTRACT_RETURN_VALUE): Do not define.
4503
4504 2002-07-03 Grace Sainsbury <graces@redhat.com>
4505
4506 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4507 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4508 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4509 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4510 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4511 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4512 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4513 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4514 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4515 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4516 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4517 argument so the function fits the prototype in the architecture
4518 vector.
4519 (mcore_pop_frame): Remove argument so the function fits the
4520 prototype. Use get_current_frame instead of the argument.
4521 (mcore_push_arguments): Change type of struct_return so the
4522 function can be used in the architecture vector.
4523 (mcore_store_struct_return): Add.
4524 (mcore_frame_init_saved_regs): Add.
4525 (mcore_gdbarch_init): Add function calls to replace the macros
4526 removed from tm-mcore.h
4527
4528 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4529
4530 * infcmd.c (print_return_value): Remove compatibility code calling
4531 deprecated_grub_regcache_for_registers.
4532
4533 * values.c: Include "regcache.h".
4534 (value_being_returned): Update. Use
4535 deprecated_grub_regcache_for_registers to extract the register
4536 buffer address.
4537 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4538 ``struct regcache''.
4539 * Makefile.in (values.o): Add dependency on $(regcache_h).
4540
4541 * inferior.h (run_stack_dummy): Change type of second parameter to
4542 a ``struct regcache''.
4543 * valops.c (hand_function_call): Change type of retbuf to ``struct
4544 regcache''. Allocate using regcache_xmalloc, clean using
4545 make_cleanup_regcache_xfree.
4546 * infcmd.c (run_stack_dummy): Update. Use
4547 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4548
4549 * regcache.c (do_regcache_xfree): New function.
4550 (make_cleanup_regcache_xfree): New function.
4551 * regcache.h (make_cleanup_regcache_xfree): Declare.
4552
4553 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4554
4555 * event-top.c (command_line_handler): Don't read past
4556 beginning of buffer.
4557
4558 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4559
4560 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4561 struct frame_id.
4562 (varobj_create): Store frame_id for root.
4563 (varobj_gen_name): Use xasprintf.
4564 (varobj_update): Save and restore frame using get_frame_id() and
4565 frame_find_by_id().
4566 (create_child): Use xasprintf.
4567 (new_root_variable): Initialize frame_id.
4568 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4569 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4570 to prevent memory leak.
4571
4572 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4573
4574 * valops.c (hand_function_call): Move declaration of retbuf to
4575 start of function, allocate using malloc, add a cleanup but before
4576 the inf_status cleanup, cleanup the buffer. Rename local variable
4577 old_chain to inf_status_cleanup.
4578
4579 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4580
4581 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4582
4583 * cli/cli-decode.c (cmd_func_p): New function.
4584 (cmd_func): New function.
4585
4586 * command.h: Add cmd_func() and cmd_func_p().
4587
4588 2002-07-03 Grace Sainsbury <graces@redhat.com>
4589
4590 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4591 (REGISTER_SIZE): Remove.
4592 (MAX_REGISTER_RAW_SIZE): Remove.
4593 (REGISTER_VIRTUAL_TYPE): Remove.
4594 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4595 (REGISTER_NAME): Remove.
4596 (USE_GENERIC_DUMMY_FRAMES): Remove.
4597 (CALL_DUMMY): Remove.
4598 (CALL_DUMMY_START_OFFSET): Remove.
4599 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4600 (CALL_DUMMY_LOCATION): Remove.
4601 (FIX_CALL_DUMMY): Remove.
4602 (CALL_DUMMY_ADDRESS): Remove.
4603 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4604 (SAVE_DUMMY_FRAME_TOS): Remove.
4605 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4606 (mcore_register_virtual_type): New function.
4607 (mcore_register_byte): New function.
4608 (mcore_register_size): New function.
4609 (mcore_register_name): New function.
4610 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4611 macros removed from tm-mcore.h.
4612 (mcore_dump_tdep): Add.
4613 (_initialize_mcore_tdep): Add gdbarch_register call.
4614
4615 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4616
4617 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4618 frameless_look_for_prologue, such that we actually call this
4619 function.
4620
4621 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4622
4623 * frame.h (frame_address_in_block): New function.
4624
4625 * blockframe.c (frame_address_in_block): New function extracted
4626 from get_frame_block().
4627 (get_frame_block): Use frame_address_in_block().
4628 (block_innermost_frame): Use frame_address_in_block() to match
4629 the frame pc address against the block boundaries rather than
4630 the frame pc directly. This prevents a failure when a frame pc
4631 is actually a return-address pointing immediately after the end
4632 of the given block.
4633
4634 2002-07-02 Grace Sainsbury <graces@redhat.com>
4635
4636 * MAINTAINERS: Add self under write after approval.
4637
4638 2002-07-02 Grace Sainsbury <graces@redhat.com>
4639
4640 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4641 used in architecture vector. The default is
4642 m68k_local_breakpoint_from_pc.
4643 (m68k_local_breakpoint_from_pc): Add.
4644 (enum): Add register numbers from tm-m68k.h.
4645 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4646 vector.
4647 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4648 GDB_MULTI_ARCH_PARTIAL.
4649 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4650 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4651 m68k-tdep.c.
4652 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4653 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4654 to enum in m68k-tdep.c
4655
4656 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4657
4658 * solib-osf.c (open_map): Compute the list of shared libraries
4659 loaded by the inferior, rather than the list of libraries loaded
4660 by GDB itself. Otherwise, GDB ends up reading the symbols from
4661 the wrong shared libraries...
4662
4663 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4664
4665 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4666 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4667 macros.
4668 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4669 Remove functions.
4670 (FRAMELESS_SIGNAL): Remove function.
4671 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4672 i386_linux_saved_pc_after_call): Removed.
4673 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4674 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4675 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4676
4677 * i386-tdep.c (i386_frameless_signal_p): New function.
4678 (i386_frame_chain): Deal with frameless signals.
4679 (i386_sigtramp_saved_sp): New function.
4680 (i386_frame_saved_pc): Deal with frameless signals.
4681 (i386_saved_pc_after_call): Make sure the correct value is
4682 returned just after entry into a sigtramp.
4683 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4684 i386fbsd4_sc_sp_offset): New variables.
4685 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4686 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4687 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4688 similiar to what we already did for sc_pc_offset.
4689 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4690 tdep->sc_sp_offset.
4691
4692 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4693
4694 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4695
4696 * config/i386/tm-x86-64linux.h: New.
4697 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4698 definitions.
4699 * config/i386/nm-x86-64.h: Rename to ...
4700 * config/i386/nm-x86-64linux.h: ... this one.
4701 * config/i386/x86-64linux.mh: Reflect the above change.
4702
4703 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4704
4705 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4706 with sigcontext_addr. Add sc_sp_offset.
4707 (i386bsd_sigtramp_saved_pc): Remove prototype.
4708 (i386bsd_sicontext_addr): Add prototype.
4709 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4710 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4711 (i386_svr4_sigtramp_saved_pc): Removed.
4712 (i386_svr4_sigcontext_addr): New function.
4713 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4714 Initialize tdep->sigcontext_addr instead. Initialize
4715 tdep->sc_pc_offset and tdep->sc_sp_offset.
4716 (i386_gdbarch_init): Likewise.
4717 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4718 any more.
4719 (i386bsd_sigtramp_saved_pc): Remove function.
4720 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4721 Initialize tdep->sigcontext_addr instead. Initialize
4722 tdep->sc_pc_offset.
4723 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4724 of tdep->sigtramp_saved_pc.
4725 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4726 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4727 instead.
4728
4729 * i386-tdep.c (i386_frameless_function_invocation,
4730 i386_frame_num_args, i386_frame_init_saved_regs,
4731 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4732 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4733 i386_extract_return_value, i386_store_return_value,
4734 i386_extract_struct_value_address, i386_register_virtual_type,
4735 i386_register_convertible, i386_register_convert_to_virtual,
4736 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4737 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4738 static.
4739
4740 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4741
4742 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4743
4744 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4745 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4746 this macro. Include "value.h".
4747
4748 2002-06-30 Aidan Skinner <aidan@velvet.net>
4749
4750 * ada-exp.tab.c: remove as it's a generated file
4751 * ada-lex.c: remove as it's a generated file
4752
4753 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4754
4755 * config/i386/tm-i386.h (struct frame_info, struct
4756 frame_saved_regs, struct value, struct type): Remove forward
4757 declarations.
4758
4759 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4760 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4761 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4762 (FILL_FPXREGSET): Define.
4763
4764 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4765
4766 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4767 i[3456]86-*-netbsd* case.
4768 * config/i386/tm-obsd.h: Removed.
4769 * config/i386/obsd.mt: Removed.
4770 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4771 core-aout.o.
4772 (MH_CFLAGS): Add -DYYDEBUG=0.
4773
4774 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4775 i386nbsd_sc_pc_offset on OpenBSD too.
4776
4777 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4778 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4779 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4780 define.
4781 * i386bsd-tdep.c: Include "arch-utils.h".
4782 (i386bsd_aout_in_solib_call_trampoline): New function.
4783 (i386bsd_init_abi): Set in_solib_call_trampoline to
4784 i386bsd_aout_in_solib_call_trampoline.
4785 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4786 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4787
4788 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4789
4790 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4791 (struct obstack, struct bcache): Add opaque declarations.
4792 * Makefile.in (macrotab_h): Update
4793
4794 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4795
4796 * blockframe.c (generic_find_dummy_frame): Change return type to
4797 ``struct regcache''.
4798 (struct dummy_frame): Replace field ``registers'' with regcache, a
4799 struct regcache object.
4800 (generic_find_dummy_frame): Update.
4801 (generic_push_dummy_frame): Update. Use regcache_xfree,
4802 regcache_xmalloc and regcache_cpy.
4803 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4804 regcache_xfree.
4805 (deprecated_generic_find_dummy_frame): Update.
4806 (generic_read_register_dummy): Update. Use
4807 regcache_read_as_address.
4808 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4809 (generic_get_saved_register): Update. Use regcache_read.
4810
4811 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4812
4813 * Makefile.in (objfiles_h): Add $(bcache_h).
4814 * objfiles.h: Include "bcache.h".
4815
4816 * Makefile.in (symtab_h): Remove $(bcache_h).
4817 * symtab.h: Do not include "bcache.h".
4818
4819 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4820
4821 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4822 generic_func_frame_chain_valid.
4823
4824 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4825
4826 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4827 * config/i386/tm-fbsd.h: Likewise.
4828
4829 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4830
4831 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4832 generic_unwind_get_saved_register.
4833
4834 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4835
4836 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4837 * regcache.c (supply_register): Add missing argument to
4838 register_buffer call.
4839
4840 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4841
4842 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4843 Solaris /bin/grep does not not like it. From Peter Schauer.
4844
4845 2002-06-26 Tom Tromey <tromey@redhat.com>
4846
4847 * command.h (add_setshow_cmd): Declare.
4848 (add_setshow_cmd_full): Declare.
4849 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4850 returns void. Use add_setshow_cmd_full.
4851 (add_setshow_cmd_full): New function.
4852 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4853 (add_setshow_boolean_cmd): Likewise.
4854
4855 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4856
4857 * config/vax/tm-vax.h: Protect from multiple inclusion.
4858 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4859 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4860 * config/vax/tm-vaxbsd.h: ...here. New file.
4861 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4862
4863 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4864
4865 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4866 (BELIEVE_PCC_PROMOTION): Remove.
4867 (AP_REGNUM): Move to...
4868 * config/vax/nm-vax.h: ...here.
4869 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4870 (vax_breakpoint_from_pc): New function.
4871 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4872 and gdbarch_believe_pcc_promotion.
4873
4874 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4875
4876 * Makefile.in (vax_tdep_h): Define.
4877 (vax-tdep.o): Use $(vax_tdep_h).
4878 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4879 (vax_dump_tdep): New function.
4880 (_initialize_vax_tdep): Register vax_dump_tdep.
4881 * vax-tdep.h: Include osabi.h.
4882 (struct gdbarch_tdep): New.
4883
4884 2002-06-26 Andrew Cagney <cagney@redhat.com>
4885
4886 * frame.h (deprecated_generic_find_dummy_frame): Rename
4887 generic_find_dummy_frame.
4888 * blockframe.c (generic_find_dummy_frame): Make static.
4889 (deprecated_generic_find_dummy_frame): New function.
4890 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4891 generic_find_dummy_frame with deprecated_find_dummy_frame.
4892 (sh64_nofp_frame_init_saved_regs): Ditto.
4893 (sh_fp_frame_init_saved_regs): Ditto.
4894 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4895 (s390_frame_chain): Ditto.
4896 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4897
4898 2002-06-26 Grace Sainsbury <graces@redhat.com>
4899
4900 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4901 gdbarch vector are at the top.
4902 (NUM_REGS): Remove.
4903 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4904 (FRAME_ARGS_ADDRESS): Remove.
4905 (FRAME_LOCALS_ADDRESS): Remove.
4906 (FRAME_NUM_ARGS): Remove.
4907 (FRAME_ARGS_SKIP): Remove.
4908 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4909 (m68k_gdbarch_init): Add gdbarch initializations for macros
4910 undefined in tm-m68k.h
4911
4912 2002-06-26 Grace Sainsbury <graces@redhat.com>
4913
4914 * monitor.h: Add the function regname to monitor_ops
4915 structure. This way NUM_REGS does not have to be a constant.
4916 * monitor.c (monitor_fetch_register): Added support for regname
4917 function. The function is called if the array regnames is NULL.
4918 (monitor_store_register): Same.
4919 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4920 regnames array.
4921 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4922 cpu32bug_cmds.regname to point to new function.
4923 * abug-rom.c (abug_regname): Same as above.
4924 (init_abug_cmds): Same.
4925 * dbug-rom.c (dbug_regname): Same as above.
4926 (init_dbug_cmds): Same.
4927 * remote-est.c (est_regname): Same.
4928 (init_est_cmds): Same.
4929 * rom68k-rom.c (rom68k_regname): Same.
4930 (init_rom68k_cmds): Same.
4931
4932 2002-06-25 Tom Tromey <tromey@redhat.com>
4933
4934 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4935
4936 2002-06-25 Andrew Cagney <cagney@redhat.com>
4937
4938 * infrun.c (stop_registers): Change variable's type to ``struct
4939 regcache'''.
4940 (xmalloc_inferior_status): Delete function.
4941 (free_inferior_status): Delete function.
4942 (normal_stop): Use regcache_cpy.
4943 (struct inferior_status): Change type of fields ``stop_registers''
4944 and ``registers'' to ``struct regcache''.
4945 (write_inferior_status_register): Use regcache_write.
4946 (save_inferior_status): Instead of calling
4947 xmalloc_inferior_status, allocate the inf_status buffer directly.
4948 Use regcache_dup_no_passthrough and regcache_dup to save the
4949 buffers.
4950 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4951 Replace the stop_registers regcache instead of overriding it. Use
4952 regcache_xfree. Instead of calling free_inferior_status, xfree
4953 the buffer directly.
4954 (discard_inferior_status): Use regcache_xfree. Instead of calling
4955 free_inferior_status, xfree the buffer directly.
4956 (build_infrun): Use regcache_xmalloc.
4957 (_initialize_infrun): Delete redundant call to build_infrun.
4958
4959 * Makefile.in (infcmd.o): Add $(regcache_h).
4960
4961 * infcmd.c: Include "regcache.h".
4962 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4963 obtain the address of `stop_registers' register buffer.
4964 (print_return_value): Ditto.
4965
4966 * inferior.h (struct regcache): Add opaque declaration.
4967 (stop_registers): Change variable's declared type to ``struct
4968 regcache''.
4969
4970 2002-06-24 Tom Tromey <tromey@redhat.com>
4971
4972 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4973 * target.c (initialize_targets): Fixed typo in
4974 trust-readonly-sections `show' documentation.
4975
4976 * main.c: Marked all strings with _().
4977
4978 2002-06-24 Don Howard <dhoward@redhat.com>
4979
4980 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4981 that means max CORE_ADDR+1.
4982 (lookup_mem_region): Ditto.
4983 (mem_info_command): Ditto.
4984
4985 2002-06-24 Grace Sainsbury <graces@redhat.com>
4986
4987 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4988 (REGISTER_BYTES_OK): Remove.
4989 (REGISTER_BYTES): Remove.
4990 (STORE_STRUCT_RETURN): Remove.
4991 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4992 (STORE_RETURN_VALUE): Remove.
4993 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4994 (FRAME_CHAIN): Remove.
4995 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4996 (FRAME_SAVED_PC): Remove.
4997 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4998 (m68k_store_struct_return): Add.
4999 (m68k_deprecated_extract_return_value): Add.
5000 (m68k_deprecated_extract_struct_value_address): Add.
5001 (m68k_store_return_value): Add.
5002 (m68k_frame_chain): Add.
5003 (m68k_frameless_function_invocation): Add.
5004 (m68k_frame_saved_pc): Add.
5005 (m68k_gdbarch_init): added set_gdbarch calls for new
5006 functions and deleted macros.
5007
5008 2002-06-23 Tom Tromey <tromey@redhat.com>
5009
5010 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5011 (ALLDEPFILES): Likewise.
5012 (udiheaders): Removed.
5013 (udip2soc.o): Likewise.
5014 (udi2go32.o): Likewise.
5015 (udr.o): Likewise.
5016 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5017
5018 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5019
5020 * infrun.c (_initialize_infrun): Delete unnecessary call to
5021 build_infrun.
5022
5023 * regcache.h: Update comments describing the regcache_cpy family
5024 of functions.
5025 (regcache_save, regcache_restore): Delete declaration.
5026 (regcache_save_no_passthrough): Delete declaration.
5027 (regcache_restore_no_passthrough): Delete declaration.
5028 * regcache.c (regcache_save): Delete function.
5029 (regcache_save_no_passthrough): Delete function.
5030 (regcache_restore): Delete function.
5031 (regcache_restore_no_passthrough): Delete function.
5032
5033 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5034
5035 * config/m68k/tm-m68k.h: Fix typo.
5036 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5037 (m68k_frame_init_saved_regs): Declare.
5038
5039 2002-06-21 Jim Blandy <jimb@redhat.com>
5040
5041 Remove some vestiges of Harris 88k support.
5042 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5043 register numbering quirk.
5044 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5045 odd symbols occurring in Harris 88k ELF targets.
5046
5047 2002-06-21 Tom Tromey <tromey@redhat.com>
5048
5049 * gdb_locale.h: New file.
5050 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5051 (defs_h): Added gdb_locale.h.
5052 * configure, config.in: Rebuilt.
5053 * configure.in (PACKAGE): Define.
5054 * defs.h: Include gdb_locale.h.
5055 * main.c (captured_main): Call setlocale, bindtextdomain,
5056 textdomain.
5057
5058 2002-06-21 Dave Brolley <brolley@redhat.com>
5059
5060 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5061 * config/frv/frv.mt: New file.
5062 * config/frv/tm-frv.h: New file.
5063 * configure.tgt: Support frv-*-*.
5064 * Makefile.in (frv-tdep.o): New target.
5065 * frv-tdep.c: New file.
5066 * NEWS: Mention frv.
5067
5068 2002-06-21 Dave Brolley <brolley@redhat.com>
5069
5070 * MAINTAINERS: Add self to "Write After Approval" list.
5071
5072 2002-06-21 Grace Sainsbury <graces@redhat.com>
5073
5074 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5075 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5076 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5077 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5078 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5079
5080 * m68k-tdep.c: Include arch-utils.h
5081 (m68k_register_raw_size): Add.
5082 (m68k_register_virtual_size): Add.
5083 (m68k_register_virtual_type): Add.
5084 (m68k_register_name): Add.
5085 (m68k_stack_align): Add.
5086 (m68k_register_byte): Add.
5087 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5088 tm-m68k.h.
5089
5090 2002-06-21 Grace Sainsbury <graces@redhat.com>
5091
5092 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5093 m68k_find_saved_regs.
5094 (m68k_pop_frame): Removed saved_regs structure, and replaced
5095 references to it with frame->saved_regs.
5096 (m68k_gdbarch_init): Added function calls to initialize the
5097 gdbarch structure.
5098 (m68k_fix_call_dummy): Add.
5099 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5100 (CALL_DUMMY): Remove.
5101 (CALL_DUMMY_LENGTH): Remove.
5102 (CALL_DUMMY_START_OFFSET): Remove.
5103 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5104 (FIX_CALL_DUMMY): Remove.
5105 (PUSH_DUMMY_FRAME): Remove.
5106 (POP_FRAME): Remove.
5107
5108 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5109
5110 * parse.c (parse_fprintf): New function used to avoid calls to
5111 fprintf in bison parser generated debug code.
5112 * parser-defs.h: Declaration of new parse_fprintf function.
5113 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5114 Set YYDEBUG to 1 by default.
5115 Set YYFPRINTF as parse_fprintf.
5116
5117 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5118
5119 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5120 encoding anymore.
5121 (pointer_encoding, enum ptr_encoding): New.
5122 (execute_cfa_program): Take care about pointer encoding.
5123 (dwarf2_build_frame_info): Only call parse_frame_info for
5124 .debug_frame and .eh_frame.
5125 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5126 fixed augmentation handling, added relative addressing,
5127 ignore duplicate FDEs. Added comments.
5128 * dwarf2cfi.c: Reindented.
5129
5130 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5131
5132 * event-top.c (command_handler): Don't use space_at_cmd_start
5133 unless there is sbrk() on the host. Assign time and space data
5134 to union fields of the appropriate length.
5135
5136 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5137
5138 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5139 x86_64_register_name. Return type changed to 'const char *'.
5140 (x86_64_register_name2nr): Rename to x86_64_register_number.
5141 (x86_64_gdbarch_init): Update to reflect the change.
5142 * x86-64-tdep.h: Ditto.
5143 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5144 (supply_fpregset): Ditto.
5145
5146 2002-06-19 Andrew Cagney <cagney@redhat.com>
5147
5148 * regcache.h: Update copyright.
5149 (struct regcache, struct gdbarch): Add opaque declarations.
5150 (current_regcache): Declare global variable.
5151 (regcache_read, regcache_write): Add gdbarch parameter.
5152 (regcache_save, regcache_save_no_passthrough)
5153 (regcache_restore, regcache_restore_no_passthrough)
5154 (regcache_dup, regcache_dup_no_passthrough)
5155 (regcache_cpy, regcache_cpy_no_passthrough)
5156 (deprecated_grub_regcache_for_registers)
5157 (deprecated_grub_regcache_for_register_valid)
5158 (regcache_valid_p): Add function declarations.
5159
5160 * regcache.c: Update copyright.
5161 (regcache_descr_handle): New global variable.
5162 (struct regcache_descr): Define.
5163 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5164 (regcache_descr, xfree_regcache_descr): New functions.
5165 (struct regcache): Define.
5166 (regcache_xmalloc, regcache_xfree): New functions.
5167 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5168 (regcache_dup, regcache_dup_no_passthrough): New functions.
5169 (regcache_valid_p, regcache_read_as_address): New functions.
5170 (deprecated_grub_regcache_for_registers): New function.
5171 (deprecated_grub_regcache_for_register_valid): New function.
5172 (current_regcache): New global variable.
5173 (register_buffer): Add regcache parameter. Update calls.
5174 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5175 (read_register_gen, write_register_gen): Update register_buffer
5176 call. Test for legacy_p instead of gdbarch_register_read_p or
5177 gdbarch_register_write_p.
5178 (regcache_collect): Update register_buffer call.
5179 (build_regcache): Rewrite. Use deprecated grub functions.
5180 (regcache_save, regcache_save_no_passthrough): New functions.
5181 (regcache_restore, regcache_restore_no_passthrough): New
5182 functions.
5183 (_initialize_regcache): Create the regcache_data_handle. Swap
5184 current_regcache global variable.
5185
5186 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5187 parameter to regcache_read and regcache_write calls.
5188 (sh4_register_read): Ditto.
5189 (sh64_pseudo_register_read): Ditto.
5190 (sh64_register_read): Ditto.
5191 (sh_pseudo_register_write): Ditto.
5192 (sh4_register_write): Ditto.
5193 (sh64_pseudo_register_write): Ditto.
5194 (sh64_register_write): Ditto.
5195
5196 * defs.h (XCALLOC): Define.
5197
5198 2002-06-19 Grace Sainsbury <graces@redhat.com>
5199
5200 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5201 * m68k-tdep.c (m68k_gdbarch_init): Added.
5202 (m68k_dump_tdep): Added.
5203
5204 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5205
5206 * ada-lang.c (fill_in_ada_prototype): Update comment.
5207
5208 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5211 MIPS_ABI_LAST.
5212 (mips_abi_string, mips_abi_strings): New.
5213 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5214 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5215 tdep->mips_abi_string. Honor mips_abi_string. Default to
5216 O32 if no ABI is found.
5217 (mips_dump_tdep): Use mips_abi_strings.
5218 (mips_abi_update): New function.
5219 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5220 ``set mips abi'' and ``show mips abi''. Check the size of
5221 mips_abi_strings.
5222
5223 2002-06-19 Andrew Cagney <cagney@redhat.com>
5224
5225 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5226 constant.
5227
5228 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5229
5230 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5231 current frame using only the first stack size adjustment. All
5232 subsequent size adjustments are not considered to be part of
5233 the "static" part of the current frame.
5234 Compute the address of the saved registers relative to the
5235 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5236 in use in this frame.
5237
5238 2002-06-18 Don Howard <dhoward@redhat.com>
5239
5240 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5241 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5242 suggesting this solution.
5243
5244 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5245
5246 * config/romp/xm-rtbsd.h: Delete file.
5247 * config/romp/rtbsd.mh: Delete file.
5248
5249 2002-06-18 Keith Seitz <keiths@redhat.com>
5250
5251 * breakpoint.c (condition_command): Post breakpoint_modify
5252 when a condition is added to an existing breakpoint.
5253 (commands_command): Likewise for commands.
5254 (set_ignore_count): Likewise for ignore counts.
5255 If no tty, do not simply return, still need to send event
5256 notification.
5257 (ignore_command): Only print a newline if the command came
5258 from a tty.
5259 Don't call breakpoints_changed, since this is now properly
5260 handled by set_ignore_count.
5261
5262 2002-06-18 Andrew Cagney <cagney@redhat.com>
5263
5264 * MAINTAINERS: Note that cris-elf target can be compiled with
5265 -Werror.
5266 * cris-tdep.c (cris_register_name): Make return type constant.
5267 (cris_breakpoint_from_pc): Ditto.
5268
5269 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5270
5271 * frame.h (struct frame_info): Change type of context to
5272 'struct context'.
5273
5274 2002-06-17 Andrew Cagney <cagney@redhat.com>
5275
5276 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5277 pointer.
5278 * gdbarch.h, gdbarch.c: Regenerate.
5279 * config/mips/tm-mips.h (mips_register_name): Update.
5280 * i386-tdep.h (i386_register_name): Update.
5281 * mips-tdep.c (mips_register_name): Update
5282 * alpha-tdep.c (alpha_register_name): Update.
5283 * arch-utils.c (legacy_register_name): Update.
5284 * arch-utils.h (legacy_register_name): Update.
5285 * avr-tdep.c (avr_register_name): Update.
5286 * ia64-tdep.c (ia64_register_name): Update.
5287 * i386-tdep.c (i386_register_name): Update.
5288 * sparc-tdep.c (sparc32_register_name): Update.
5289 (sparc64_register_name): Update.
5290 (sparclite_register_name): Update.
5291 (sparclet_register_name): Update.
5292 * sh-tdep.c (sh_generic_register_name): Update.
5293 (sh_sh_register_name): Update.
5294 (sh_sh3_register_name): Update.
5295 (sh_sh3e_register_name): Update.
5296 (sh_sh_dsp_register_name): Update.
5297 (sh_sh3_dsp_register_name): Update.
5298 (sh_sh4_register_name): Update.
5299 (sh_sh64_register_name): Update.
5300 * s390-tdep.c (s390_register_name): Update.
5301 * rs6000-tdep.c (rs6000_register_name): Update.
5302 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5303 (ns32k_register_name_32382): Update.
5304 * d10v-tdep.c (d10v_ts2_register_name): Update.
5305 (d10v_ts3_register_name): Update.
5306 * xstormy16-tdep.c (xstormy16_register_name): Update.
5307 * vax-tdep.c (vax_register_name): Update.
5308 * v850-tdep.c (v850_register_name): Update.
5309 * m68hc11-tdep.c (m68hc11_register_name): Update.
5310 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5311 (am33_register_name): Update.
5312
5313 2002-06-17 Grace Sainsbury <graces@redhat.com>
5314
5315 * m68k-tdep.c: Reindented.
5316
5317 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5318
5319 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5320 list of predefined types.
5321
5322 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5323
5324 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5325 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5326 REGISTER_CONVERT_TO_RAW): Remove defines.
5327 (i386_register_virtual_type, i386_register_convertible,
5328 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5329 Remove prototypes.
5330 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5331 macros mentioned above.
5332
5333 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5334 (i386lynx_saved_pc_after_call): Remove prototype.
5335 * i386ly-tdep.c: Include "i386-tdep.h".
5336 (i386lynx_saved_pc_after_call): Make static. Use
5337 read_memory_nobpt instead of read_memory. Use
5338 read_memory_unsigned_integer instead of read_memory_integer.
5339 (i386lynx_init_abi): New function.
5340 (i386lynx_coff_osabi_sniffer): New function.
5341 (_initialize_i386bsd_tdep): New function.
5342
5343 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5344 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5345 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5346 (i386_fix_call_dummy): Remove prototype.
5347 * i386-tdep.c (i386_call_dummy_words): New variable.
5348 (i386_gdbarch_init): Adjust for removal of the
5349 macros mentioned above.
5350
5351 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5352
5353 * command.h (add_setshow_auto_boolean_cmd): Replace
5354 add_set_auto_boolean_cmd.
5355 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5356 add_set_auto_boolean_cmd.
5357 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5358 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5359 mask-address'' command.
5360 (show_mask_address): Add cmd parameter.
5361 * remote.c (add_packet_config_cmd): Update. Change type of
5362 set_func and show_func to cmd_sfunc_ftype.
5363 (_initialize_remote): Update `set remote Z-packet'
5364 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5365 (show_remote_protocol_e_packet_cmd): Ditto.
5366 (show_remote_protocol_E_packet_cmd): Ditto.
5367 (show_remote_protocol_P_packet_cmd): Ditto.
5368 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5369 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5370 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5371 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5372 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5373 (show_remote_protocol_Z_packet_cmd): Ditto.
5374 (show_remote_protocol_binary_download_cmd): Ditto.
5375 (show_remote_cmd): Pass NULL to all of above.
5376
5377 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5378
5379 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5380 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5381 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5382 POP_FRAME): Remove defines.
5383 (i386_push_arguments, i386_store_struct_return,
5384 i386_extract_return_value, i386_store_return_value,
5385 i386_extract_struct_value_address, i386_push_dummy_frame,
5386 i386_pop_frame): Renove prototypes.
5387 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5388 macros mentioned above.
5389
5390 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5391
5392 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5393 add_set_boolean_cmd.
5394 (add_setshow_cmd): New function.
5395 * command.h (add_setshow_boolean_cmd): Replace
5396 add_set_boolean_cmd.
5397 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5398 and ``set rdiromatzero''.
5399 * maint.c (_initialize_maint_cmds): Update commented out code.
5400 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5401 * target.c (initialize_targets): Update `set
5402 trust-readonly-sections'.
5403 * remote.c (_initialize_remote): Update `set remotebreak'.
5404
5405 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5406
5407 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5408 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5409 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5410 fit into multi-arch framework.
5411 (i386_breakpoint_from_pc): New function.
5412 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5413 above.
5414
5415 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5416 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5417 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5418 (i386_frameless_function_invocation, i386_frame_num_args,
5419 i386_frame_init_saved_regs): Remove prototypes.
5420 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5421 macros mentioned above.
5422
5423 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5424
5425 * cli/cli-decode.c (set_cmd_cfunc): Update.
5426 (set_cmd_sfunc): Update.
5427 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5428 (set_cmd_sfunc, set_cmd_cfunc): Update.
5429 * cli/cli-decode.h: Update.
5430
5431 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5432
5433 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5434 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5435
5436 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5437
5438 * defs.h (auto_boolean): Declare enum.
5439 * command.h (cmd_auto_boolean): Delete enum.
5440 * mips-tdep.c (mask_address_var): Update.
5441 (mips_mask_address_p): Update.
5442 (show_mask_address): Update.
5443 * remote.c (struct packet_config): Update.
5444 (update_packet_config): Update.
5445 (show_packet_config_cmd): Update.
5446 (packet_ok): Update.
5447 (add_packet_config_cmd): Update.
5448 (_initialize_remote):
5449 * command.h: Update.
5450 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5451 (do_setshow_command): Update.
5452 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5453 * cli/cli-decode.h: Update.
5454
5455 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5456
5457 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5458 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5459 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5460 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5461 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5462 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5463
5464 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5465 list of DJGPP COFF targets.
5466
5467 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5468 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5469 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5470 (FP0_REGNUM): Remove define.
5471 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5472 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5473 (i386_register_virtual_size): Remove protoype.
5474 * i386-tdep.c (i386_register_virtual_size): Removed.
5475 (i386_extract_return_value, i386_store_return_value): Use
5476 FP0_REGNUM instead of NUM_FREGS to determine whether the
5477 floating-point registers are available.
5478 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5479 Adjust for removal of macros mentioned above.
5480
5481 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5482
5483 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5484 comments.
5485 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5486 Remove prototypes.
5487 (supply_gregset, fill_gregset): Remove use of register keyword and
5488 remove declaration for regmap. Use I386_NUM_GREGS instead of
5489 NUM_REGS and NUM_FREGS.
5490 (FPREGSET_FSAVE_OFFSET): Remove.
5491 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5492 NUM_FREGS to determine whether the floating-point registers are
5493 available.
5494
5495 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5496 gnu_store_registers): Replace usage of NUM_GREGS with
5497 I386_NUM_GREGS.
5498
5499 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5500 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5501 usage of NUM_GREGS with I386_NUM_GREGS.
5502
5503 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5504
5505 * i386bsd-nat.c: Include "i386-tdep.h".
5506 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5507 I386_NUM_GREGS.
5508
5509 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5510 and associated comment. They no longer make any sense, since we
5511 don't use this file anymore on Linux.
5512
5513 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5514 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5515 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5516 elements in these arrays.
5517 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5518 MAX_NUM_REGS.
5519
5520 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5521
5522 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5523 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5524
5525 2002-06-14 Andrew Cagney <cagney@redhat.com>
5526
5527 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5528 EXTRACT_RETURN_VALUE.
5529 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5530 EXTRACT_STRUCT_VALUE_ADDRESS.
5531 * gdbarch.h, gdbarch.c: Regenerate.
5532
5533 * values.c (value_being_returned): Handle
5534 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5535 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5536
5537 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5538 * arm-tdep.c (arm_gdbarch_init): Update.
5539 * avr-tdep.c (avr_gdbarch_init): Update.
5540 * cris-tdep.c (cris_gdbarch_init): Update.
5541 * d10v-tdep.c (d10v_gdbarch_init): Update.
5542 * ia64-tdep.c (ia64_gdbarch_init): Update.
5543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5544 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5545 * s390-tdep.c (s390_gdbarch_init): Update.
5546 * sh-tdep.c (sh_gdbarch_init): Update.
5547 * s390-tdep.c (s390_gdbarch_init): Update.
5548 * sparc-tdep.c (sparc_gdbarch_init): Update.
5549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5550 * v850-tdep.c (v850_gdbarch_init): Update.
5551 * vax-tdep.c (vax_gdbarch_init): Update.
5552 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5554
5555 * config/arc/tm-arc.h: Update.
5556 * config/d30v/tm-d30v.h: Update.
5557 * config/fr30/tm-fr30.h: Update.
5558 * config/h8300/tm-h8300.h: Update.
5559 * config/h8500/tm-h8500.h: Update.
5560 * config/i386/tm-i386.h: Update.
5561 * config/i386/tm-ptx.h: Update.
5562 * config/i386/tm-symmetry.h: Update.
5563 * config/i960/tm-i960.h: Update.
5564 * config/m32r/tm-m32r.h: Update.
5565 * config/m68k/tm-delta68.h: Update.
5566 * config/m68k/tm-linux.h: Update.
5567 * config/m68k/tm-m68k.h: Update.
5568 * config/m88k/tm-m88k.h: Update.
5569 * config/mcore/tm-mcore.h: Update.
5570 * config/mips/tm-mips.h: Update.
5571 * config/mn10200/tm-mn10200.h: Update.
5572 * config/pa/tm-hppa.h: Update.
5573 * config/pa/tm-hppa64.h: Update.
5574 * config/sparc/tm-sp64.h: Update.
5575 * config/sparc/tm-sparc.h: Update.
5576 * config/sparc/tm-sparclet.h: Update.
5577 * config/z8k/tm-z8k.h: Update.
5578
5579 2002-06-14 Andrew Cagney <cagney@redhat.com>
5580
5581 * Makefile.in (i386_linux_tdep_h): Define.
5582 (i386_tdep_h, i387_tdep_h): Define.
5583 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5584 $(i386_tdep_h) and $(i387_tdep_h).
5585 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5586
5587 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5588
5589 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5590 Already covered by the default.
5591
5592 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5593 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5594 (i386_gdbarch_init): Initialize long_double_format and long_double
5595 bit.
5596
5597 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5598 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5599 Move these to ...
5600 * config/i386/i386sol2.mh: ... here.
5601 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5602 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5603 (SIGCONTEXT_PC_OFFSET): Remove define.
5604 (IN_SIGTRAMP): Remove define.
5605 * i386-sol2-tdep.c: New file.
5606
5607 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5608 * config/i386/tm-i386nw.h: Removed.
5609
5610 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5611 USE_STRUCT_CONVENTION): Remove defines.
5612 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5613 (get_longjmp_target): Remove prototype.
5614 (IN_SIGTRAMP): Remove define.
5615 (i386bsd_in_sigtramp): Remove prototype.
5616 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5617 function. Update comment accordingly
5618 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5619 (FRAME_SAVED_PC): Remove define.
5620 (i386bsd_frame_saved_pc): Remove prototype.
5621 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5622 GET_LONGJMP_TARGET): Remove defines.
5623 (get_longjmp_target): Remove prototype.
5624 (IN_SIGTRAMP): Remove define.
5625 (i386bsd_in_sigtramp): Remove prototype.
5626 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5627 function. Update comment accordingly
5628 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5629 (FRAME_SAVED_PC): Remove define.
5630 (i386bsd_frame_saved_pc): Remove prototype.
5631 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5632 Remove prototype.
5633 (USE_STRUCT_CONVENTION): Remove prototype.
5634 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5635 declaration.
5636 (_initialize_i386bsd_nat): Revise logic to determine some
5637 constants at compile time when compiling a native GDB. Warn if
5638 things don't match up with what we expect.
5639 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5640 Remove variables.
5641 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5642 to use date stored in `struct gdbarch_tdep'.
5643 (i386bsd_sigcontext_offset): Remove varaible.
5644 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5645 stored in `struct gdbarch_tdep'.
5646 (i386bsd_frame_saved_pc): Make static.
5647 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5648 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5649 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5650 i386fbsd4_sc_pc_offset): New variables.
5651 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5652 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5653 functions.
5654 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5655 functions.
5656 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5657 Modify the value of i386fbsd_sigtramp_start and
5658 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5659 i386fbsd_sigtramp_end.
5660 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5661 function.
5662
5663 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5664 define to i386-linux-tdep.h.
5665 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5666 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5667 defines.
5668 (i386_linux_register_name, i386_linux_register_byte,
5669 i386_linux_register_raw_size): Remove prototypes.
5670 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5671 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5672 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5673 TARGET_WRITE_PC): Remove defines.
5674 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5675 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5676 i386_linux_write_pc): Remove prototypes.
5677 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5678 (get_longjmp_target): Remove prototype.
5679 * i386-linux-tdep.h: New file.
5680 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5681 * i386-linux-tdep.c: Include "i386-tdep.h" and
5682 "i386-linux-tdep.h".
5683 (i386_linux_register_name, i386_linux_register_byte,
5684 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5685 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5686 Make static.
5687 (i386_linux_init_abi): New function.
5688 (_initialize_i386_linux_tdep): New function.
5689
5690 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5691 (i386_saved_pc_after_call): Remove prototype.
5692 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5693 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5694 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5695 (i386_register_name, i386_stab_reg_to_regnum,
5696 i386_dwarf_reg_to_regnum): Remove prototypes.
5697 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5698 SIZEOF_SSE_REGS): Remove defines.
5699 (REGISTER_BYTES): Remove define.
5700 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5701 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5702 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5703 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5704 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5705 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5706 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5707 (get_longjmp_target): Remove prototype.
5708 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5709 (sigtramp_saved_pc): Remove define.
5710 (i386v4_sigtramp_saved_pc): Remove prototype.
5711 * config/i386/tm-go32.h (FRAME_CHAIN,
5712 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5713 (i386go32_frame_saved_pc): Remove prototype.
5714 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5715 (get_longjmp_target): Remove prototype.
5716 * i386-tdep.h: Include "osabi.h".
5717 (enum i386_abi): Removed.
5718 (enum struct_return): New enum.
5719 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5720 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5721 sc_pc_offset members.
5722 (i386_gdbarch_register_os_abi): Remove prototype.
5723 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5724 I386_SSE_NUM_REGS): New defines.
5725 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5726 I386_SSE_SIZEOF_REGS): New defines.
5727 (i386_register_name, i386_register_byte, i386_register_raw_size):
5728 New prototypes.
5729 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5730 (i386bsd_sigtramp_saved_pc): New prototype.
5731 * i386-tdep.c: Don't include "elf-bfd.h".
5732 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5733 i386_frame_chain, i386_saved_pc_after_call): Make static.
5734 (i386_frame_saved_pc): Rewrite to call architecture dependent
5735 function to deal with signal handlers. Make static.
5736 (i386go32_frame_saved_pc): Removed.
5737 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5738 Removed.
5739 (i386_get_longjmp_target): New function.
5740 (default_struct_convention, pcc_struct_convention,
5741 reg_struct_convention, valid_conventions, struct_convention): New
5742 variables.
5743 (i386_use_struct_convention): New function.
5744 (i386v4_sigtramp_saved_pc): Renamed to
5745 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5746 (i386_pc_in_sigtramp): New function.
5747 (i386_abi_names): Removed.
5748 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5749 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5750 Removed.
5751 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5752 i386_gdbarch_register_os_abi): Removed.
5753 (struct i386_abi_handler): Removed.
5754 (i386_abi_handler_list): Removed.
5755 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5756 functions.
5757 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5758 i386_nw_init_abi): New functions.
5759 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5760 Use set_gdbarch_xxx() calls instead of relying on macros for a
5761 number of calls.
5762 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5763 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5764 Register the various architecture variants defined in this file.
5765
5766 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5767
5768 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5769 (struct main_type): Remove arg_types member. Update comments for
5770 struct field.
5771 (TYPE_ARG_TYPES): Remove.
5772 (TYPE_FN_FIELD_ARGS): Update.
5773 (smash_to_method_type): Update prototype.
5774
5775 * c-typeprint.c (cp_type_print_method_args): Take method type
5776 instead of argument list. Use new argument layout. Simplify.
5777 (c_type_print_args): Use new argument layout. Simplify.
5778 (c_type_print_base): Update call to cp_type_print_method_args.
5779 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5780 argument; use die->type instead. Update call to
5781 smash_to_method_type.
5782 (read_structure_scope): Update call to dwarf2_add_member_fn.
5783 * gdbtypes.c (allocate_stub_method): Update comment.
5784 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5785 Use new argument layout.
5786 (check_stub_method): Use new argument layout. Don't count
5787 void as an argument.
5788 (print_arg_types): Update comments. Use new argument layout.
5789 (recursive_dump_type): Don't print arg_types member.
5790 * hpread.c (hpread_read_struct_type): Use new argument layout.
5791 (fixup_class_method_type): Likewise.
5792 (hpread_type_lookup): Likewise.
5793 * stabsread.c (read_type): Update calls to read_args and
5794 smash_to_method_type.
5795 (read_args): Use new argument layout. Simplify.
5796 * valops.c (typecmp): Use new argument layout. Update parameters
5797 and comments. Simplify.
5798 (hand_function_call): Use new argument layout.
5799 (search_struct_method): Update call to typecmp.
5800 (find_overload_match): Use new argument layout.
5801
5802 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5803
5804 * NEWS: Mention multithreaded debug support for gdbserver.
5805
5806 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5807
5808 * MAINTAINERS: Mention NEWS.
5809
5810 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5811
5812 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5813 (struct mips_objfile_private, compare_pdr_entries): New.
5814 (non_heuristic_proc_desc): Read the ".pdr" section if it
5815 is present.
5816
5817 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5818
5819 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5820 (arm_debug): New static variable.
5821 (_initialize_arm_tdep): Add ``set debug arm'' command.
5822
5823 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5824
5825 * Makefile.in (sim_arm_h): Define.
5826 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5827 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5828 (arm_register_sim_regno): New function, map an internal REGNUM
5829 onto a simulator register number.
5830 (arm_gdbarch_init): Set register_sim_regno.
5831
5832 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5833
5834 * MAINTAINERS: Add self.
5835
5836 2002-06-11 Jim Blandy <jimb@redhat.com>
5837
5838 * source.c (source_info): Mention whether the symtab has
5839 information about preprocessor macros.
5840
5841 Call the command `info macro', not `show macro'.
5842 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5843 Fix error message.
5844 (_initialize_macrocmd): Register `info_macro_command' in
5845 `infolist', not `showlist'.
5846
5847 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5848
5849 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5850 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5851 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5852 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5853 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5854 unconditionally.
5855 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5856 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5857 (_initialize_mips_tdep): Remove dead code.
5858 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5859 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5860 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5861 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5862 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5863 MIPS_LAST_FP_ARG_REGNUM): Remove.
5864
5865 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5866
5867 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5868 (unwind_tmp_obstack_free, parse_frame_info)
5869 (update_context, cfi_read_fp, cfi_write_fp)
5870 (cfi_frame_chain, cfi_init_extra_frame_info)
5871 (cfi_virtual_frame_pointer): Use the above function.
5872 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5873
5874 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5875
5876 * v850-tdep.c (v850_type_is_scalar): New function.
5877 (v850_use_struct_convention): Match current gcc implementation
5878 as close as possible.
5879 (v850_push_arguments): Fix stack_offset handling. Don't write
5880 struct_addr into register. This is done by v850_store_struct_return.
5881 (v850_extract_return_value): Care for structs.
5882 (v850_store_return_value): Ditto.
5883 (v850_store_struct_return): Actually write address.
5884
5885 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5886
5887 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5888 without debug information too.
5889
5890 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5891
5892 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5893 Make multi-arch pure.
5894 * gdbarch.h, gdbarch.c: Re-generate.
5895 * arm-tdep.c (arm_print_float_info): Update.
5896 * arch-utils.h (default_print_float_info): Update.
5897 * arch-utils.c (default_print_float_info): Update.
5898 * infcmd.c (float_info): Update call.
5899
5900 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5901
5902 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5903 the front of the initialize list.
5904
5905 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5906
5907 * infrun.c (struct inferior_status): Replace fields
5908 selected_frame_address and selected_level with field
5909 selected_frame_id.
5910 (save_inferior_status): Update. Use get_frame_id.
5911 (struct restore_selected_frame_args): Delete.
5912 (restore_selected_frame): Update. Use frame_find_by_id.
5913 (restore_inferior_status): Update.
5914
5915 * breakpoint.h (struct breakpoint): Change type of
5916 watchpoint_frame to frame_id.
5917 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5918 call to get_current_frame.
5919 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5920 get_current_frame.
5921 (watchpoint_check): Use frame_find_by_id.
5922
5923 * frame.h (record_selected_frame): Delete declaration.
5924 * stack.c (record_selected_frame): Delete function.
5925
5926 * frame.h (struct frame_id): Define.
5927 (get_frame_id): Declare.
5928 (frame_find_by_id): Declare.
5929 * frame.c (frame_find_by_id): New function.
5930 (get_frame_id): New function.
5931
5932 2002-06-10 Andrey Volkov <avolkov@transas.com>
5933
5934 * ser-e7kpc.c: Fix duplicated define and call of
5935 _initialize_ser_e7000pc
5936
5937 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5938
5939 * signals/signals.c (target_signal_from_host): Fix #ifdef
5940 SIGRTMIN case.
5941 (do_target_signal_to_host): Likewise.
5942
5943 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5944
5945 * mips-tdep.c (mips_find_abi_section): New function.
5946 (mips_gdbarch_init): Call it.
5947
5948 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5949
5950 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5951 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5952 after Andrew's 2002-06-08 gdbarch change.
5953
5954 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5955
5956 * i386-linux-nat.c (suppy_gregset): Don't supply
5957 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5958 register cache.
5959 (fill_gregset): Don't fetch it under the same circumstances.
5960
5961 2002-06-09 Andrew Cagney <cagney@redhat.com>
5962
5963 * Makefile.in (callback_h): Define.
5964 (remote_sim_h): Update path to remote-sim.h.
5965 (remote-rdp.o): Add $(callback_h).
5966 (remote-sim.o): Use $(callback_h).
5967 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5968 * remote-rdp.c: Include "gdb/callback.h".
5969
5970 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5971
5972 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5973 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5974
5975 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5976
5977 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5978 * rdi-share/serpardr.c: Ditto.
5979 * rdi-share/unixcomm.c: Ditto.
5980 * rdi-share/serdrv.c: Ditto.
5981 * rdi-share/hostchan.h: Ditto.
5982 * rdi-share/hostchan.c: Ditto.
5983 * rdi-share/host.h: Ditto.
5984 * rdi-share/devsw.c: Ditto.
5985
5986 * objfiles.h: Change type of obj_private to void pointer.
5987 * pa64solib.c: Update copyright. Don't include "assert.h", use
5988 strcmp instead of STREQ, use LONGEST, do not use PTR
5989 * somsolib.c: Ditto.
5990
5991 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5992 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5993 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5994
5995 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5996
5997 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5998 (default_get_saved_register): Delete function.
5999 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6000 generic_unwind_get_saved_register.
6001 * gdbarch.h, gdbarch.c: Re-generate.
6002
6003 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6004
6005 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6006 generic_func_frame_chain_valid.
6007 * gdbarch.h, gdbarch.c: Re-generate.
6008 * blockframe.c (generic_func_frame_chain_valid): Only check
6009 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6010 passing FP to PC_IN_CALL_DUMMY.
6011 Fix PR gdb/360.
6012
6013 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6014
6015 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6016 (register_gdbarch_data): Initialize init_p.
6017 (gdbarch_data): Initialize data pointer using the init function.
6018 (init_gdbarch_data): Delete function.
6019 (gdbarch_update_p): Update.
6020 (initialize_non_multiarch): Update.
6021 (struct gdbarch): Add field initialized_p.
6022 * gdbarch.h, gdbarch.c: Re-generate.
6023
6024 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6025
6026 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6027 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6028 better do the things actually here.
6029 * x86-64-tdep.c (x86_64_register_name2nr): New.
6030 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6031 (x86_64_gdbarch_init): Respect the above change.
6032 * x86-64-tdep.h (x86_64_register_name2nr)
6033 (x86_64_register_nr2name): Add prototypes.
6034 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6035
6036 2002-06-06 Michael Snyder <msnyder@redhat.com>
6037
6038 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6039 Delete extra braces and re-indent.
6040 (d10v_store_return_value): Char return values
6041 must be shifted over by one byte in R0.
6042 (d10v_extract_return_value): Delete extra braces, re-indent.
6043
6044 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6045
6046 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6047 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6048 (d10v_integer_to_address): Rewrite.
6049 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6050 the d10v specific functions which take care of converting to the
6051 correct space.
6052
6053 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6054
6055 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6056 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6057
6058 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6059
6060 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6061 includes.
6062 * config/tm-linux.h: Ditto.
6063 * config/alpha/tm-alphalinux.h: Ditto.
6064 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6065 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6066 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6067 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6068 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6069 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6070 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6071 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6072 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6073 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6074 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6075 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6076 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6077 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6078 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6079 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6080 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6081 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6082 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6083 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6084 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6085 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6086 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6087 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6088 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6089 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6090 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6091 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6092 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6093 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6094 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6095 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6096 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6097 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6098 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6099 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6100 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6101
6102 2002-05-04 Aidan Skinner <aidan@velvet.net>
6103
6104 * ada-exp.tab.c: New file
6105 * ada-exp.y: New file
6106 * ada-lang.c: New file
6107 * ada-lang.h: New file
6108 * ada-lex.c: New file
6109 * ada-lex.l: New file
6110 * ada-tasks.c: New file
6111 * ada-typeprint.c: New file
6112 * ada-valprint.c: New file
6113
6114 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6115
6116 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6117 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6118
6119 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6120
6121 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6122 insetead of ppc-linux-tdep.o.
6123 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6124 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6125
6126 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6127
6128 2002-05-07 Christian Groessler <chris@groessler.org>
6129 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6130 bit register contents for little endian hosts.
6131
6132 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6133
6134 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6135 any maintainer.
6136
6137 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6138
6139 * gdbarch.h: Regenerate.
6140
6141 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6142
6143 * MAINTAINERS: Add everyone to write-after-approval list.
6144
6145 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6146
6147 * stack.c (frame_info): Use frame_register_unwind instead of
6148 saved_regs. Mention when the SP is on the stack or in a register.
6149
6150 * frame.h (frame_register_unwind_ftype): Define. Document.
6151 (struct frame_info): Add field register_unwind and
6152 register_unwind_cache.
6153 (frame_register_unwind): Declare.
6154 (generic_unwind_get_saved_register): Declare.
6155
6156 * frame.c (frame_register_unwind): New function.
6157 (generic_unwind_get_saved_register): New function.
6158
6159 * blockframe.c (generic_call_dummy_register_unwind): New function.
6160 (frame_saved_regs_register_unwind): New function.
6161 (set_unwind_by_pc): New function.
6162 (create_new_frame): New function.
6163 (get_prev_frame): New function.
6164
6165 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6166
6167 * a29k-share/: Delete directory.
6168 * remote-vx29k.c: Delete file.
6169
6170 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6171
6172 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6173 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6174
6175 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6178 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6179 (sparc64nbsd-nat.o)
6180 (sparcnbsd-nat.o)
6181 (sparcnbsd-tdep.o): New dependency lists.
6182 * NEWS: Note new UltraSPARC NetBSD native configuration.
6183 * configure.host (sparc64-*-netbsd*): New host.
6184 * configure.tgt (sparc-*-netbsdelf*)
6185 (sparc-*-netbsd*): Set gdb_target to nbsd.
6186 (sparc64-*-netbsd*): New target.
6187 * sparc64nbsd-nat.c: New file.
6188 * sparcnbsd-nat.c: New file.
6189 * sparcnbsd-tdep.c: New file.
6190 * sparcnbsd-tdep.h: New file.
6191 * config/sparc/nbsd.mt: New file.
6192 * config/sparc/nbsd64.mh: New file.
6193 * config/sparc/nbsd64.mt: New file.
6194 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6195 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6196 (HOST_IPC): Remove.
6197 * config/sparc/nbsdaout.mt: Remove.
6198 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6199 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6200 (HOST_IPC): Remove.
6201 * config/sparc/nbsdelf.mt: Remove.
6202 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6203 sparc-nat.c compatiblity defines.
6204 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6205 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6206 * config/sparc/tm-nbsd64.h: New file.
6207 * config/sparc/tm-nbsdaout.h: Remove.
6208 * config/sparc/xm-nbsd.h: Remove.
6209
6210 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6213 * sparc-tdep.c: Include osabi.h.
6214 (gdbarch_tdep): Add osabi member.
6215 (_initialize_sparc_tdep): Use gdbarch_register.
6216 (sparc_gdbarch_init): Use generic OS ABI framework.
6217 (sparc_dump_tdep): New function.
6218
6219 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6220
6221 * corefile.c (do_captured_read_memory_integer): Return non-zero
6222 result.
6223 (safe_read_memory_integer): Copy result of memory read when
6224 status is non-zero. Also, add comments.
6225
6226 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * Makefile.in (ppc_tdep_h): Define.
6229 (ppc-linux-nat.o)
6230 (ppc-linux-tdep.o)
6231 (rs6000-tdep.o): Use $(ppc_tdep_h).
6232 (ppc-sysv-tdep.o)
6233 (ppcnbsd-nat.o)
6234 (ppcnbsd-tdep.o): New dependency lists.
6235 * ppc-tdep.h: Use generic OS ABI framework.
6236 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6237 (ppc_linux_init_abi): New functions.
6238 (ppc_sysv_abi_broken_use_struct_convention)
6239 (ppc_sysv_abi_use_struct_convention)
6240 (ppc_sysv_abi_push_arguments): Move to...
6241 * ppc-sysv-tdep.c: ...here.
6242 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6243 * rs6000-tdep.c (process_note_abi_tag_sections)
6244 (get_elfosabi): Remove.
6245 (rs6000_gdbarch_init): Use generic OS ABI framework.
6246 (rs6000_dump_tdep): New function.
6247 (_initialize_rs6000_tdep): Use gdbarch_register.
6248 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6249 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6250 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6251 of ppc-linux-tdep.o.
6252 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6253 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6254 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6255 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6256 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6257 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6258
6259 2002-05-29 Jim Blandy <jimb@redhat.com>
6260
6261 * macroscope.c (default_macro_scope): Put `void' in empty argument
6262 list.
6263
6264 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6265
6266 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6267 * arch-utils.c: Include "sim-regno.h".
6268 * gdbarch.sh: Don't include "sim-regno.h".
6269 * gdbarch.h, gdbarch.c: Regenerate.
6270 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6271 here.
6272 * arch-utils.h (legacy_register_sim_regno): To here.
6273 * remote-sim.c (legacy_register_sim_regno): Move function from
6274 here.
6275 * arch-utils.c (legacy_register_sim_regno): To here.
6276
6277 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6278
6279 * sim-regno.h: New file.
6280 * Makefile.in (sim_regno_h): Define.
6281 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6282 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6283 (legacy_register_sim_regno): New function.
6284 (one2one_register_sim_regno): New function.
6285 (gdbsim_fetch_register): Rewrite.
6286 (gdbsim_store_register): Only store a register when
6287 REGISTER_SIM_REGNO is valid.
6288 * d10v-tdep.c: Include "sim-regno.h".
6289 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6290 (d10v_ts3_register_sim_regno): Ditto.
6291 * gdbarch.sh: Include "sim-regno.h".
6292 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6293 * gdbarch.h, gdbarch.c: Regenerate.
6294 * arch-utils.h (default_register_sim_regno): Delete declaration.
6295 * arch-utils.c (default_register_sim_regno): Delete function.
6296
6297 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6298
6299 * ppcnbsd-nat.c: Rewrite.
6300 * ppcnbsd-tdep.c: New file.
6301 * ppcnbsd-tdep.h: New file.
6302 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6303 solib.o, and solib-svr4.o.
6304 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6305 nbsd-tdep.o, and corelow.o.
6306
6307 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6308
6309 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6310 `tr' and `sed'. Mention that `broken' targets are not expected to
6311 build.
6312
6313 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6314
6315 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6316 Let PC point right after the prologue before looking up symbols.
6317
6318 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6319
6320 * i386-tdep.c (i386_register_virtual_type): Return
6321 builtin_type_vec128i for SSE registers.
6322
6323 * gdbtypes.h (builtin_type_vec128i): Declare.
6324
6325 * gdbtypes.c (build_builtin_type_vec128i): New function.
6326 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6327 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6328 (build_gdbtypes): Initialize new builtin vector types.
6329 (_initialize_gdbtypes): Register new vector types with gdbarch.
6330
6331 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6332
6333 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6334 since it has been multi-arch'd.
6335 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6336 Move Alpha and VAX multi-arch news entries to same section
6337 as other multi-arch news.
6338
6339 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6340
6341 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6342 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6343 static. Rename some register numbers to put them in ns32k-tdep
6344 private namespace.
6345 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6346 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6347 functions.
6348 (_initialize_ns32k_tdep): Use gdbarch_register.
6349 * ns32k-tdep.h: New file.
6350 * ns32knbsd-tdep.c: New file.
6351 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6352 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6353 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6354 REGISTER_BYTES, REGISTER_BYTE): Remove.
6355 * config/ns32k/tm-ns32k.h: New file.
6356 * config/ns32k/tm-umax.h: Remove.
6357
6358 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6359
6360 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6361 ns32k_store_struct_return, ns32k_extract_return_value,
6362 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6363 functions.
6364 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6365 ns32k_saved_pc_after_call.
6366 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6367 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6368 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6369 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6370 ns32k_extract_struct_value_address.
6371
6372 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6373
6374 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6375 ns32k_fix_call_dummy): New.
6376 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6377 ns32k_call_dummy_words.
6378 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6379 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6380 CALL_DUMMY_NARGS): Remove.
6381 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6382
6383 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6384
6385 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6386 ns32k_frame_saved_pc, ns32k_frame_args_address,
6387 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6388 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6389 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6390 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6391 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6392 (BREAKPOINT): Remove..
6393 (FRAME_CHAIN): Define as ns32k_frame_chain.
6394 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6395 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6396 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6397 (FRAME_FIND_SAVED_REGS): Remove.
6398 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6399 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6400 (POP_FRAME): Define as ns32k_pop_frame.
6401
6402 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6403
6404 * ns32k-tdep.c (ns32k_register_byte_32082,
6405 ns32k_register_byte_32382, ns32k_register_raw_size,
6406 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6407 functions.
6408 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6409 ns32k_register_byte_32382.
6410 * config/ns32k/tm-umax.h: Update copyright years.
6411 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6412 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6413 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6414 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6415 (ns32k_get_enter_addr): Fix prototype.
6416
6417 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6418
6419 * ns32k-tdep.c: Update copyright years.
6420 (ns32k_register_name_32082): New function.
6421 (ns32k_register_name_32382): Ditto.
6422 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6423 (REGISTER_NAME): Define as ns32k_register_name_32382.
6424 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6425 (REGISTER_NAME): Define as ns32k_register_name_32082.
6426
6427 2002-05-24 Jim Blandy <jimb@redhat.com>
6428
6429 * dwarf2read.c (free_line_header): Use xfree, not free.
6430
6431 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6432
6433 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6434 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6435
6436 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6437
6438 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6439
6440 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6441
6442 From Ross Alexander at NEC Europe:
6443 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6444
6445 2002-05-23 Michael Snyder <msnyder@redhat.com>
6446
6447 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6448 for input, rather than parse_and_eval_address.
6449
6450 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6451
6452 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6453 * Makefile.in (sim_d10v_h): Update definition.
6454
6455 2002-05-24 Andrew Cagney <cagney@redhat.com>
6456
6457 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6458 change `2002-05-22 Michael Snyder' below.
6459 (d10v_push_arguments): Ditto.
6460 (d10v_extract_return_value): Ditto.
6461
6462 2002-05-23 Jim Blandy <jimb@redhat.com>
6463
6464 * macrotab.c (check_for_redefinition): Don't complain if the new
6465 definition is the same as the previous one. Take more arguments
6466 to allow the comparison.
6467 (macro_define_object, macro_define_function): Pass more arguments
6468 to check_for_redefinition.
6469
6470 2002-05-22 Michael Snyder <msnyder@redhat.com>
6471
6472 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6473 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6474 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6475 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6476 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6477 Add a temp variable to save a call (and a memory read).
6478 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6479 if possible (so that PC_IN_CALL_DUMMY will work).
6480
6481 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6482
6483 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6484
6485 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6486
6487 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6488 fde->cie_ptr.
6489 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6490 (dwarf2_build_frame_info): Add offset to fde->initial_location
6491 so that frames of shared libraries are mapped correctly.
6492 (execute_stack_op): Change type of 'result' from ULONGEST to
6493 CORE_ADDR.
6494
6495 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6496
6497 * config/alpha/tm-nbsd.h: Include solib.h.
6498
6499 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6500
6501 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6502 assumptions about the host's byte order.
6503
6504 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6505
6506 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6507 to dependency list.
6508 * alphanbsd-tdep.c: Include solib-svr4.h.
6509 * shnbsd-tdep.c: Ditto.
6510
6511 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6512
6513 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6514 nbsd-tdep.h to dependency list.
6515 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6516 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6517 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6518 nbsdaout.mh and nbsdelf.mh consistently.
6519 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6520 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6521 nbsdaout.mt and nbsdelf.mh consistently.
6522 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6523 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6524 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6525 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6526 a.out shared library stuff from here...
6527 * config/nm-nbsdaout.h: ...to here.
6528 * config/tm-nbsd.h: Remove.
6529 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6530 * config/arm/nbsd.mh: Remove.
6531 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6532 nbsd-tdep.o.
6533 * config/arm/nbsdaout.mh: New file.
6534 * config/arm/nbsdelf.mh: New file.
6535 * config/arm/nm-nbsdaout.h: New file.
6536 * config/i386/nbsd.mh: Remove.
6537 * config/i386/nbsd.mt: Remove.
6538 * config/i386/nbsdaout.mh: New file.
6539 * config/i386/nbsdaout.mt: New file.
6540 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6541 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6542 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6543 i386_register_u_addr): Remove.
6544 * config/i386/nm-nbsdaout.h: New file.
6545 * config/i386/nm-nbsdelf.h: Remove.
6546 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6547 (USE_STRUCT_CONVENTION): Remove.
6548 * config/i386/tm-nbsdaout.h: New file.
6549 * config/i386/tm-nbsdelf.h: Remove.
6550 * config/m68k/nbsd.mh: Remove.
6551 * config/m68k/nbsd.mt: Remove.
6552 * config/m68k/nbsdaout.mh: New file.
6553 * config/m68k/nbsdaout.mt: New file.
6554 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6555 * config/m68k/nm-nbsdaout.h: New file.
6556 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6557 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6558 * config/ns32k/nbsd.mh: Remove.
6559 * config/ns32k/nbsd.mt: Remove.
6560 * config/ns32k/nbsdaout.mh: New file.
6561 * config/ns32k/nbsdaout.mt: New file.
6562 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6563 * config/ns32k/nm-nbsdaout.h: New file.
6564 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6565 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6566 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6567 (SVR4_SHARED_LIBS): Remove.
6568 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6569 * config/sparc/nbsd.mh: Remove.
6570 * config/sparc/nbsd.mt: Remove.
6571 * config/sparc/nbsdaout.mh: New file.
6572 * config/sparc/nbsdaout.mt: New file.
6573 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6574 * config/sparc/nbsdelf.mt: New file.
6575 * config/sparc/nm-nbsdaout.h: New file.
6576 * config/sparc/nm-nbsdelf.h: Remove.
6577 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6578 * config/sparc/tm-nbsdaout.h: New file.
6579
6580 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6581
6582 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6583 mipsnbsd-tdep.c
6584 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6585
6586 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6589 shnbsd-nat.c.
6590 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6591
6592 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6593
6594 * NEWS: Note new MIPS NetBSD native configuration.
6595 * configure.host (mips*-*-netbsd*): New host.
6596 * configure.tgt (mips*-*-netbsd*): New target.
6597 * mipsnbsd-nat.c: New file.
6598 * mipsnbsd-tdep.c: New file.
6599 * mipsnbsd-tdep.h: New file.
6600 * config/mips/nbsd.mh: New file.
6601 * config/mips/nbsd.mt: New file.
6602 * config/mips/nm-nbsd.h: New file.
6603 * config/mips/tm-nbsd.h: New file.
6604
6605 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6606
6607 * Makefile.in (SFILES): Add osabi.c.
6608 (COMMON_OBS): Add osabi.o.
6609 (osabi.o): New dependency list.
6610 * osabi.c: New file.
6611 * osabi.h: New file.
6612 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6613
6614 * Makefile.in (alpha_tdep_h): Define and use instead of
6615 alpha-tdep.h.
6616 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6617 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6618 Remove.
6619 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6620 * alpha-tdep.h: Include osabi.h.
6621 (alpha_abi): Remove.
6622 (gdbarch_tdep): Use generic OS ABI framework.
6623 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6624 gdbarch_register_osabi.
6625 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6626 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6627 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6628
6629 * Makefile.in (sh_tdep_h): Add osabi.h.
6630 * sh-tdep.h (sh_osabi): Remove.
6631 (gdbarch_tdep): Use generic OS ABI framework.
6632 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6633 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6634 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6635 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6636
6637 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6638 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6639 gdbarch_register_osabi.
6640 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6641 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6642 (get_elfosabi): Rename to...
6643 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6644 ABI framework support routines.
6645 (arm_gdbarch_init): Use generic OS ABI framework.
6646 (arm_dump_tdep): Likewise.
6647 (_initialize_arm_tdep): Likewise.
6648 * arm-tdep.h: Include osabi.h.
6649 (arm_abi): Remove.
6650 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6651 osabi member.
6652 (arm_gdbarch_register_os_abi): Remove prototype.
6653 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6654 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6655
6656 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6657 * mips-tdep.c: Include osabi.h.
6658 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6659 OS ABI framework.
6660
6661 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6662
6663 * h8300-tdep.c: Fix formatting.
6664
6665 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6666
6667 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6668 printing vector registers.
6669
6670 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6671
6672 From Fernando Nasser:
6673 * remote.c (remote_async_open_1): Re-throw the exception when the
6674 connection fails.
6675 (remote_cisco_open): Ditto.
6676 (remote_open_1): Ditto.
6677
6678 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6679
6680 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6681 (remote_start_remote): Add uiout parameter. Pass through to
6682 remote_start_remote_dummy.
6683 (remote_open_1): Use catch_exception instead of catch_errors.
6684 (remote_async_open_1): Ditto.
6685 (remote_cisco_open): Ditto.
6686
6687 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6688
6689 * remote.c (remote_start_remote): Replace PTR with void pointer.
6690 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6691 static.
6692
6693 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6694
6695 * gdb_indent.sh: Allow the script to be run in the sim directory.
6696
6697 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6698
6699 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6700 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6701
6702 * corelow.c (core_open): Only call set_gdbarch_from_file if
6703 exec_bfd is NULL.
6704
6705 2002-05-17 Andrey Volkov <avolkov@transas.com>
6706
6707 * h8300-tdep.c: Add support of EXR register
6708 * config/h8300/tm-h8300.h: Ditto.
6709
6710 2002-05-17 Andrey Volkov <avolkov@transas.com>
6711
6712 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6713
6714 2002-05-17 Andrey Volkov <avolkov@transas.com>
6715
6716 * h8300-tdep.c: Change literal regnums to REGNO.
6717
6718 2002-05-17 Jim Blandy <jimb@redhat.com>
6719
6720 * NEWS: Note addition of macro support.
6721
6722 Expand preprocessor macros in C expressions.
6723 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6724 (scan_macro_expansion, scanning_macro_expansion,
6725 finished_macro_expansion): New function declarations.
6726 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6727 variable declarations.
6728 * parser-defs.h (expression_context_pc): New declaration.
6729 * parse.c (expression_context_pc): New variable.
6730 (parse_exp_1): Set expression_context_pc, as well as
6731 expression_context_block.
6732 * c-exp.y (yylex): If we're not already reading the result of a
6733 macro expansion, try to macro-expand the next token. When we're
6734 done scanning a macro expansion, switch back to the mainline text.
6735 Commas and `if's in a macro's expansion don't terminate the input.
6736 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6737 (macro_original_text, macro_expanded_text,
6738 expression_macro_lookup_func, expression_macro_lookup_baton): New
6739 variables.
6740 (scan_macro_expansion, scanning_macro_expansion,
6741 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6742 c_preprocess_and_parse): New functions.
6743 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6744 c_preprocess_and_parse, instead of c_parse.
6745 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6746 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6747
6748 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6749
6750 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6751 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6752 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6753
6754 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6755
6756 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6757
6758 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6759
6760 * Makefile.in (sh_tdep_h): Define and use.
6761 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6762 register enum): Move to...
6763 * * sh-tdep.h: ...here.
6764 * sh-tdep.c: Include sh-tdep.h.
6765 * sh3-rom.c: Likewise.
6766 * shnbsd-tdep.c: Likewise.
6767
6768 2002-05-16 Michael Snyder <msnyder@redhat.com>
6769
6770 * arm-tdep.c: Spelling fix in comment.
6771
6772 2002-05-16 Jim Blandy <jimb@redhat.com>
6773
6774 Add commands for manually expanding macros and showing their
6775 definitions.
6776 * macrocmd.c, macroscope.c, macroscope.h: New files.
6777 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6778 (macroscope_h): New variable.
6779 (HFILES_NO_SRCDIR): Add macroscope.h.
6780 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6781 (macroscope.o, macrocmd.o): New rules.
6782
6783 Teach the Dwarf 2 reader to read macro information.
6784 * dwarf2read.c: #include "macrotab.h".
6785 (dwarf_macinfo_buffer): New variable.
6786 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6787 dwarf_macinfo_size.
6788 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6789 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6790 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6791 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6792 dwarf2_macro_spaces_in_definition): New complaints.
6793 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6794 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6795 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6796 the partial symbol table.
6797 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6798 from what's recorded in the partial symbol table.
6799 (read_file_scope): If the compilation unit has a
6800 `DW_AT_macro_info' attribute, read its macro information.
6801 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6802
6803 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6804
6805 Fix PR gdb/546
6806 * ser-tcp.c: Don't include <netinet/udp.h>.
6807
6808 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6809
6810 * MAINTAINERS: Update my email address.
6811
6812 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6813
6814 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6815 include file of the same name.
6816
6817 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6818
6819 * configure.tgt: Mark v850 as multi-arched.
6820 * config/v850/tm-v850.h: Remove file.
6821 * config/v850/v850.mt: Eliminate TM_FILE.
6822
6823 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6824
6825 * v850-tdep.c: Full multi-arch.
6826 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6827 Define GDB_MULTI_ARCH to 2.
6828
6829 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6830
6831 * p-exp.y (current_type): New static variable.
6832 Carries the type of the expression at the position that is parsed.
6833 (push_current_type, pop_current_type): Two new functions. Used
6834 to store/restore current_type in expression on specific tokens.
6835 (search_field): New static variable. Set to one after parsing a point
6836 as at that point only a FIELDNAME token should be searched.
6837 (FIELDNAME): New token. After a point only a token belonging to
6838 current_type type definition is allowed.
6839 (all over token rules): reset and change current_type according
6840 to rules.
6841 (exp '[' rule): insert implicit array index field if
6842 exp is a pascal string type.
6843
6844 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6845
6846 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6847 frame info. Use frame_info's saved_regs instead of matching member
6848 in extra_frame_info throughout.
6849 (v850_frame_init_saved_regs): New function.
6850 (v850_init_extra_frame_info): Move most functionality into
6851 v850_frame_init_saved_regs().
6852 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6853 (v850_frame_find_saved_regs): Remove declaration.
6854 (FRAME_FIND_SAVED_REGS): Remove definition.
6855 (v850_frame_init_saved_regs): Add declaration.
6856 (FRAME_INIT_SAVED_REGS): Add definition.
6857
6858 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6859
6860 * v850-tdep.c: Begin multi-arch'ing v850.
6861 (v850_target_architecture_hook): Remove function.
6862 (v850_gdbarch_init): New function. Add code previously in
6863 v850_target_architecture_hook().
6864 (_initialize_v850_tdep): Don't set target_architecture_hook.
6865 Call register_gdbarch_init() instead.
6866
6867 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6868
6869 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6870 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6871 (fixup_class_method_type): Likewise.
6872
6873 2002-05-15 Jim Blandy <jimb@redhat.com>
6874
6875 Add macro structures to GDB's symbol tables. Nobody puts anything
6876 in them yet.
6877 * symtab.h (struct symtab): New member: `macro_table'.
6878 * buildsym.h (pending_macros): New global variable.
6879 * buildsym.c: #include "macrotab.h".
6880 (buildsym_init): Initialize `pending_macros'.
6881 (end_symtab): If we found macro information while reading a CU's
6882 debugging info, do build a symtab structure for it. Make the
6883 symtab point to the macro information, and clear the
6884 `pending_macros' pointer which held it while we were reading the
6885 debug info.
6886 (really_free_pendings): Free any pending macro table.
6887 * objfiles.h (struct objfile): New member: `macro_cache'.
6888 * objfiles.c (allocate_objfile): Set allocate and free functions
6889 for the macro cache's objstack.
6890 (free_objfile): Empty the macro cache's obstack.
6891 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6892 set new allocate and free functions for it.
6893 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6894 free functions for the macro cache's objstack. (Why is this
6895 function building its own objfile?)
6896 * symmisc.c (print_objfile_statistics): Print statistics on the
6897 macro bcache.
6898 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6899
6900 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6901
6902 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6903 (REGISTER_U_ADDR): Delete definition.
6904 (arm_register_u_addr): Delete declaration.
6905
6906 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6907
6908 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6909 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6910
6911 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6912
6913 * regcache.c (register_valid): Revise comments refering to "Not
6914 available" and "unavailable".
6915 * frame.c (frame_register_read): Ditto.
6916 * findvar.c (value_of_register): Ditto.
6917
6918 2002-05-15 Andrew Cagney <cagney@redhat.com>
6919
6920 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6921 (remote-sim.o): Update dependencies.
6922 (d10v-tdep.o): Specify dependencies.
6923 (sim_d10v_h): Define.
6924
6925 2002-05-14 Jim Blandy <jimb@redhat.com>
6926
6927 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6928 * macrotab.c (macro_lookup_inclusion, find_definition,
6929 new_macro_table): Same.
6930
6931 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6932 not `! strcmp ()'. This is a dubious improvement.
6933 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6934
6935 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6936 although it's not necessary, to avoid a warning.
6937
6938 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6939
6940 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6941 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6942 TYPE_INSTANCE_FLAGS.
6943 (struct main_type): New.
6944 (struct type): Move most members to struct main_type. Change
6945 cv_type and as_type to new type_chain member. Add instance_flags.
6946 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6947 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6948 (finish_cv_type): Remove prototype.
6949 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6950 Set TYPE_CHAIN.
6951 (alloc_type_instance): New function.
6952 (smash_type): New function.
6953 (make_pointer_type, make_reference_type, make_function_type)
6954 (smash_to_member_type, smash_to_method_type): Call smash_type.
6955 (make_qualified_type): New function.
6956 (make_type_with_address_space): Call make_qualified_type.
6957 (make_cv_type): Likewise.
6958 (finish_cv_type): Remove unnecessary function.
6959 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6960 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6961 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6962 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6963 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6964 * hpread.c (hpread_read_struct_type): Likewise.
6965 * stabsread.c (read_struct_type): Likewise.
6966
6967 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6968
6969 * configure.tgt: Add a catch all sh* target, for cases like
6970 sh[2,3,4]-elf and sh-hms.
6971
6972 2002-05-14 Keith Seitz <keiths@redhat.com>
6973
6974 * event-loop.c (create_file_handler): Don't do anything but
6975 update data when we are given a fd which we are already
6976 monitoring.
6977
6978 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6979
6980 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6981 (update_context): Use __func__ in warnings.
6982
6983 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6986 and tcp_close to net_open and net_close.
6987 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6988 using UDP if requested. Don't try to disable Nagle on UDP
6989 sockets.
6990 * remote.c (remote_serial_open): New function. Warn about UDP.
6991 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6992
6993 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6994
6995 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6996
6997 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6998
6999 * configure.tgt: Remove sh-hms target.
7000 * MAINTAINERS: Don't list sh-hms as a separate target.
7001
7002 2002-05-13 Jim Blandy <jimb@redhat.com>
7003
7004 Add first preprocessor macro-expansion files.
7005 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7006 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7007 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7008 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7009 (COMMON_OBS): Add macrotab.o, macroexp.o.
7010 (macroexp.o, macrotab.o): New rules.
7011
7012 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7013
7014 * config/m88k/tm-m88k.h: Update copyright.
7015 (m88k_target_write_pc): Declare
7016 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7017 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7018 (SHIFT_INST_REGS): Update definition.
7019 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7020 using old definition of TARGET_WRITE_PC.
7021 * regcache.c (generic_target_write_pc): Delete code handling
7022 NNPC_REGNUM.
7023 * gdbarch.sh (NNPC_REGNUM): Delete.
7024 * gdbarch.h, gdbarch.c: Regenerate.
7025
7026 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7027
7028 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7029 builtin reg number.
7030
7031 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7032
7033 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7034 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7035 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7036 access macros.
7037 * c-typeprint.c (cp_type_print_method_args): Likewise.
7038 (c_type_print_args): Likewise.
7039 * d10v-tdep.c (d10v_push_arguments): Likewise.
7040 (d10v_extract_return_value): Likewise.
7041 * expprint.c (print_subexp): Likewise.
7042 * gdbtypes.c (lookup_primitive_typename): Likewise.
7043 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7044 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7045 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7046 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7047 (TYPE_VECTOR): Likewise.
7048 * hpread.c (hpread_read_struct_type)
7049 (fix_static_member_physnames, fixup_class_method_type)
7050 (hpread_type_lookup): Likewise.
7051 * mdebugread.c (parse_symbol, parse_type): Likewise.
7052 * p-lang.c (is_pascal_string_type): Likewise.
7053 * valops.c (hand_function_call): Likewise.
7054 * x86-64-tdep.c (classify_argument): Likewise.
7055
7056 * hpread.c (hpread_read_function_type)
7057 (hpread_read_doc_function_type): Call replace_type.
7058 * dstread.c (create_new_type): Delete.
7059 (decode_dst_structure, process_dst_function): Call alloc_type.
7060 Use type access macros.
7061
7062 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7063
7064 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7065 the're not supported by the current architecture.
7066 (i387_fill_fxsave): Likewise.
7067
7068 2002-05-12 Fred Fish <fnf@redhat.com>
7069
7070 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7071 sect_index_xxx members to index the first slot in section_offsets
7072 if all of the section_offsets are zero.
7073
7074 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7075
7076 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7077 checked in with last change.
7078
7079 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7080
7081 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7082 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7083 config.sub.
7084
7085 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7086
7087 * Makefile.in: Update dependencies.
7088
7089 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7090
7091 * language.c (local_hex_string_custom): Simplify. Do not depend
7092 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7093
7094 * memattr.c (mem_info_command): Replace calls to
7095 longest_local_hex_string and longest_local_hex_string_custom.
7096 * buildsym.c (make_blockvector): Ditto.
7097 * solib.c (info_sharedlibrary_command): Ditto.
7098 * tracepoint.c (tracepoints_info): Ditto.
7099 * symtab.c (print_msymbol_info): Ditto.
7100
7101 * language.c (local_hex_string): Delete.
7102 (local_hex_string_custom): Delete.
7103 (longest_local_hex_string): Rename to local_hex_string.
7104 (longest_local_hex_string_custom): Rename to
7105 local_hex_string_custom.
7106 * language.h (local_hex_string): Change parameter type to LONGEST.
7107 (local_hex_string_custom): Ditto.
7108 (longest_local_hex_string): Delete declaration.
7109 (longest_local_hex_string_custom): Ditto.
7110
7111 * solib.c: Update copyright.
7112 * memattr.c: Update copyright.
7113
7114 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7115
7116 * arch-utils.h (legacy_register_to_value): Declare.
7117 (legacy_value_to_register): Declare.
7118 (legacy_convert_register_p): Declare.
7119 * arch-utils.c (legacy_register_to_value): New function.
7120 (legacy_value_to_register): New function.
7121 (legacy_convert_register_p): New function.
7122
7123 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7124 (VALUE_TO_REGISTER): Define.
7125 (CONVERT_REGISTER_P): Define.
7126 * gdbarch.h, gdbarch.c: Regenerate.
7127
7128 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7129 VALUE_TO_REGISTER.
7130 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7131 CONVERT_REGISTER_P.
7132
7133 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7134 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7135
7136 * Makefile.in: Update dependencies for valops.c.
7137 * valops.c: Include "gdb_assert.h".
7138 (typecmp): Skip THIS parameter to methods.
7139 (find_method_list): Remove static_memfuncp argument,
7140 update callers. Check for stub methods.
7141 (find_value_oload_method_list): Don't set *static_memfuncp.
7142 (find_overload_match): Don't check for stub methods. Assert
7143 that methods are not stubbed. Handle static methods.
7144 (value_find_oload_method_list): Remove static_memfuncp argument.
7145 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7146 to the argument list for static stub methods.
7147 * value.h (value_find_oload_method_list): Update prototype.
7148
7149 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7150
7151 * arch-utils.h (generic_register_size): Declare.
7152 (generic_register_raw_size, generic_register_virtual_size): Delete
7153 declarations.
7154 * arch-utils.c (generic_register_raw_size): Delete.
7155 (generic_register_size): New function.
7156 (generic_register_virtual_size): Delete.
7157
7158 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7159 default generic_register_size.
7160 * gdbarch.h, gdbarch.c: Re-generate.
7161
7162 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7163 register_virtual_size.
7164 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7165 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7166
7167 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7168
7169 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7170 * gdbarch.h, gdbarch.c: Regenerate.
7171 * gnu-v3-abi.c: Update copyright.
7172 (vtable_address_point_offset): Update.
7173 (gnuv3_rtti_type): Update.
7174 (gnuv3_baseclass_offset): Update.
7175 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7176 (init_fetch_link_map_offsets): Update.
7177 * remote.c (get_remote_state): Update.
7178
7179 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7180
7181 * TODO: Remove value_headof/value_from_vtable_info comment.
7182 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7183 * values.c (value_headof, value_from_vtable_info): Delete.
7184 * value.h (value_from_vtable_info): Delete prototype.
7185
7186 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7187
7188 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7189 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7190 $(gdb_regex_h).
7191 (gdb_assert_h): Define.
7192 (gdb_wait_h): Define.
7193 (gdb_regex_h): Define.
7194
7195 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7196
7197 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7198 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7199
7200 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7201
7202 * nbsd-tdep.c: Fix comment.
7203
7204 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7205
7206 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7207 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7208 (nbsd-tdep.o): New dependency list.
7209 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7210 nbsd-tdep.h.
7211 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7212 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7213 * nbsd-tdep.c: New file.
7214 * nbsd-tdep.h: New file.
7215 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7216 nbsd-tdep.h.
7217 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7218 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7219 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7220 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7221
7222 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7223
7224 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7225 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7226 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7227 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7228 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7229 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7230
7231 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7232
7233 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7234 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7235 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7236 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7237 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7238 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7239 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7240
7241 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7242
7243 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7244 fetch_elfcore_registers to...
7245 * i386nbsd-tdep.c: ...here.
7246 (i386nbsd_use_struct_convention): Rename to...
7247 (i386nbsd_aout_use_struct_convention): ...this.
7248 (i386nbsd_supply_reg): New function.
7249 (i386nbsd_fill_reg): New function.
7250 (fetch_core_registers): Use i386nbsd_supply_reg.
7251 (fetch_elfcore_registers): Likewise.
7252 (_initialize_i386nbsd_tdep): New function.
7253 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7254 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7255 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7256 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7257 (i386nbsd_aout_use_struct_convention): ...this.
7258
7259 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7260
7261 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7262 (store_inferior_registers): Use shnbsd_fill_reg.
7263 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7264 sh_nbsd_supply_register): Collapse into...
7265 (shnbsd_supply_reg): ...this.
7266 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7267 (shnbsd_fill_reg): ...this.
7268 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7269 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7270 (fetch_core_registers): Use shnbsd_supply_reg.
7271 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7272 (sh_nbsd_core_fns): Rename to...
7273 (shnbsd_core_fns): ...this.
7274 (sh_nbsd_elfcore_fns): Rename to...
7275 (shnbsd_elfcore_fns): ...this.
7276 (sh_nbsd_init_abi): Rename to...
7277 (shnbsd_init_abi): ...this.
7278 (_initialize_sh_nbsd_tdep): Rename to...
7279 (_initialize_shnbsd_tdep): ...this.
7280 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7281 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7282 sh_nbsd_fill_register): Remove prototypes.
7283 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7284
7285 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7286
7287 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7288 (i387-nat.o): Delete dependency list.
7289 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7290 (x86-64-linux-nat.o): Likewise.
7291 * i387-nat.c: Delete file, moving contents to...
7292 * i387-tdep.c: ...here.
7293 * i387-nat.h: Rename...
7294 * i387-tdep.h: ...to this.
7295 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7296 * i386-linux-nat.c: Likewise.
7297 * i386bsd-nat.c: Likewise.
7298 * i386gnu-nat.c: Likewise.
7299 * i386nbsd-nat.c: Likewise.
7300 * i386v4-nat.c: Likewise.
7301 * x86-64-linux-nat.c: Likewise.
7302 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7303 * config/i386/go32.mh (NATDEPFILES): Likewise.
7304 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7305 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7306 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7307 * config/i386/linux.mh (NATDEPFILES): Likewise.
7308 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7309 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7310 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7311 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7312
7313 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7314
7315 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7316 (alphanbsd-nat.o): Remove dependency list.
7317 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7318 * alphanbsd-nat.c: Delete. Contents moved to...
7319 * alphanbsd-tdep.c: ...here.
7320 (_initialize_alphanbsd_tdep): Register core functions.
7321 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7322
7323 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7326 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7327 (alphanbsd-nat.o): Likewise.
7328 (alphabsd-tdep.o): New dependency list.
7329 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7330 (fill_gregset): Use alphabsd_fill_reg.
7331 (supply_fpregset): Use alphabsd_supply_fpreg.
7332 (fill_fpregset): Use alphabsd_fill_fpreg.
7333 (fetch_inferior_registers): Use struct reg and struct fpreg
7334 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7335 and alphabsd_supply_fpreg.
7336 (store_inferior_registers): Use struct reg and struct fpreg
7337 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7338 and alphabsd_fill_fpreg.
7339 * alphabsd-tdep.c: New file.
7340 * alphabsd-tdep.h: New file.
7341 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7342 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7343 alphabsd_supply_fpreg.
7344 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7345 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7346
7347 2002-05-11 Eric Christopher <echristo@redhat.com>
7348
7349 * mips-tdep.c (mips_double_register_type): Fix thinko.
7350 (mips_single_register_type): Ditto.
7351 * MAINTAINERS: Add self.
7352
7353 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7354
7355 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7356 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7357 right thing on architectures with different endianness and/or
7358 integer sizes.
7359
7360 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7361
7362 From Christian Limpach <chris@Pin.LU>
7363 * configure.in: Change sed expression which comments out
7364 NATDEPFILES to also comment out continuation lines.
7365 * configure: Regenerate.
7366
7367 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7368
7369 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7370 big patch.
7371
7372 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7373
7374 * sh-tdep.c: Include correct file.
7375
7376 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7377
7378 New support for sh64-elf (sh5) target.
7379
7380 * configure.tgt: For sh64-elf target, default to sh-elf.
7381
7382 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7383 (struct gdbarch_tdep): Add new fields for new registers and ABI
7384 info.
7385
7386 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7387 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7388 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7389 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7390 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7391 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7392 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7393 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7394 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7395 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7396 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7397 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7398 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7399 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7400 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7401 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7402 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7403 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7404 sign_extend, sh64_nofp_frame_init_saved_regs,
7405 sh64_init_extra_frame_info, sh64_get_saved_register,
7406 sh64_extract_struct_value_address, sh64_pop_frame,
7407 sh64_push_arguments, sh64_extract_return_value,
7408 sh64_store_return_value, sh64_show_media_regs,
7409 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7410 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7411 sh_sh64_register_virtual_type,
7412 sh_sh64_register_convert_to_virtual,
7413 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7414 sh64_register_read, sh64_pseudo_register_write,
7415 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7416 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7417 sh64_do_pseudo_register, sh_compact_do_registers_info,
7418 sh64_do_registers_info, sh_gdbarch_init): New functions.
7419
7420 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7421
7422 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7423
7424 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7425
7426 * linespec.c (decode_line_1): Check for a double quote after
7427 a filename correctly.
7428
7429 2002-05-10 Jim Blandy <jimb@redhat.com>
7430
7431 Properly track the size of the current objfile's .debug_line section.
7432 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7433 (DWARF_LINE_SIZE): New macro.
7434 (dwarf2_build_psymtabs_hard): Record the line section's size in
7435 the partial symbol table.
7436 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7437 symbol table.
7438
7439 2002-05-10 Petr Sorfa <petrs@caldera.com>
7440
7441 * ia64-tdep.c: Handle breakpoints on L instruction type
7442 in MLX instruction bundle by moving the breakpoint to
7443 the third slot (X instruction type) as L holds only data.
7444
7445 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7446
7447 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7448 (process_one_symbol): Complain about discarding local symbols
7449 due to a misplaced N_LBRAC entry.
7450
7451 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7452
7453 From Daniel Berlin <dan@cgsoftware.com>
7454 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7455 decrease the depth we are at, in the case of templates.
7456
7457 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7458
7459 * mips-tdep.c (mips_float_register_type): New function.
7460 (mips_double_register_type): New function.
7461 (mips_print_register): Use them.
7462 (do_fp_register_row): Likewise.
7463
7464 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7465
7466 * signals/signals.c (signals): Remove conditional compilation around
7467 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7468 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7469
7470 2002-05-09 Michael Snyder <msnyder@redhat.com>
7471
7472 * remote-rdp.c (remote_rdp_can_run): Remove.
7473
7474 2002-05-09 Tom Tromey <tromey@redhat.com>
7475
7476 * jv-valprint.c (java_val_print): Handle `char' as a special case
7477 of TYPE_CODE_INT.
7478
7479 2002-05-09 Michael Snyder <msnyder@redhat.com>
7480
7481 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7482 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7483 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7484 str r(0123),[sp,#nn].
7485 (arm_skip_prologue): Ditto. Also make disassembly
7486 order-independent by placing it in a loop.
7487
7488 2002-05-06 Michael Snyder <msnyder@redhat.com>
7489
7490 * stabsread.c (read_type): Add recognition for new attribute:
7491 "@V;" means that an array type is actually a vector.
7492 This is analogous to the vector flag that's been added to dwarf2.
7493
7494 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7495
7496 * i386-tdep.h (i386_abi): New enum.
7497 (struct gdbarch_tdep): Replace os_ident member with abi.
7498 (i386_gdbarch_register_os_abi): New prototype.
7499 * i386-tdep.c (i386_abi_names): New array.
7500 (process_note_abi_tag_sections): Removed.
7501 (process_note_sections): New function.
7502 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7503 (struct i386_abi_handler): New struct.
7504 (i386_abi_handler_list): New variable.
7505 (i386_gdbarch_register_os_abi): New function.
7506 (i386_gdbarch_init): Adapt for the changes given above.
7507
7508 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7509
7510 * gregset.h: Say "GNU/Linux".
7511
7512 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7513
7514 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7515 (build_gdbtypes): Build builtin_type_v2_float.
7516 (_initialize_gdbtypes): Register new builtin type.
7517
7518 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7519
7520 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7521 (clear_gdbarch_swap): New function.
7522 (initialize_non_multiarch): Call.
7523 (gdbarch_update_p): Before calling init(), swap out and clear the
7524 existing architecture.
7525 * gdbarch.c: Regenerate.
7526
7527 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7528
7529 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7530 alphanbsd-tdep.c.
7531
7532 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * sh-nbsd-nat.c: Rename to...
7535 * shnbsd-nat.c: ...this.
7536 * sh-nbsd-tdep.c: Rename to...
7537 * shnbsd-tdep.c: ...this.
7538 * sh-nbsd-tdep.h: Rename to...
7539 * shnbsd-tdep.h: ...this.
7540 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7541 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7542
7543 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7544
7545 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7546 concatenation for command help messages.
7547
7548 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * NEWS: Note new sh*-*-netbsdelf* configuration.
7551 * configure.host: Set gdb_host_cpu to sh for all sh*.
7552 (sh*-*-netbsdelf*): New host.
7553 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7554 (sh*-*-netbsdelf*): New target.
7555 * sh-nbsd-nat.c: New file.
7556 * sh-nbsd-tdep.c: New file.
7557 * sh-nbsd-tdep.h: New file.
7558 * config/sh/nbsd.mh: New file.
7559 * config/sh/nbsd.mt: New file.
7560 * config/sh/nm-nbsd.h: New file.
7561 * config/sh/tm-nbsd.h: New file.
7562
7563 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7564
7565 * sh-tdep.c (sh_osabi_names): Declare.
7566 (process_note_abi_tag_sections): New function.
7567 (get_elfosabi): Ditto.
7568 (sh_gdbarch_register_os_abi): Ditto.
7569 (sh_dump_tdep): Ditto.
7570 _initialize_sh_tdep): Use gdbarch_register to register
7571 sh_gdbarch_init and sh_dump_tdep.
7572 * config/sh/tm-sh.h (sh_osabi): Declare.
7573 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7574
7575 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7576
7577 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7578 (thumb_scan_prologue): Ditto.
7579 (arm_find_callers_reg): Ditto.
7580 (arm_frame_chain): Ditto.
7581 (arm_init_extra_frame_info): Ditto.
7582 (arm_frame_saved_pc): Ditto.
7583 (arm_pop_frame): Ditto.
7584 (arm_push_return_address): New function.
7585 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7586 call_dummy_location, call_dummy_breakpoint_offset_p,
7587 call_dummy_breakpoint_offset, call_dummy_p,
7588 call_dummy_stack_adjust_p, call_dummy_words,
7589 sizeof_call_dummy_words, call_dummy_start_offset,
7590 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7591 call_dummy_address, push_return_address and push_dummy_frame for
7592 generic dummy frames.
7593
7594 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7597 size computation for alloca.
7598 (sh_fp_frame_init_saved_regs): Likewise.
7599
7600 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7601
7602 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7603 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7604 * arm-tdep.c (arm_store_return_value): Use them.
7605 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7606 * remote-rdp.c (remote_rdp_fetch_register): Use
7607 ARM_MAX_REGISTER_RAW_SIZE.
7608 (remote_rdp_store_register): Likewise.
7609
7610 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7611
7612 * dwarf2cfi.c: Code cleanup, removed unused variables,
7613 added default labels to switch {} statements.
7614 * x86-64-tdep.c: Ditto.
7615 * x86-64-linux-nat.c: Ditto.
7616
7617 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7618
7619 * solib.h: Protect against multiple inclusion.
7620
7621 2002-05-06 Jim Blandy <jimb@redhat.com>
7622
7623 Add first preprocessor macro-expansion files.
7624 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7625 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7626 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7627 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7628 (COMMON_OBS): Add macrotab.o, macroexp.o.
7629 (macroexp.o, macrotab.o): New rules.
7630
7631 Separate the job of reading the line number info statement program
7632 header (...expialidocious) out into its own function.
7633 * dwarf2read.c (struct line_head, struct filenames, struct
7634 directories): Replace with...
7635 (struct line_header): New structure, containing the full
7636 contents of the statement program header, including the
7637 include directory and file name tables.
7638 (read_file_scope): If we have line number info, instead of just
7639 calling dwarf_decode_lines to do all the work, call
7640 dwarf_decode_line_header first to get a `struct line_header'
7641 containing the data in the statement program header, and then
7642 pass that to dwarf_decode_lines, which will pick up where that
7643 left off. Be sure to clean up the `struct line_header' object.
7644 (dwarf_decode_line_header, free_line_header, add_include_dir,
7645 add_file_name): New functions.
7646 (dwarf_decode_lines): Move all the code to read the statement
7647 program header into dwarf_decode_line_header. Take the line
7648 header it built as the first argument, instead of the offset to
7649 the compilation unit's line number info. Use the new `struct
7650 line_header' type instead of the old structures. No need to do
7651 cleanups here now, since we don't allocate anything.
7652 (dwarf2_statement_list_fits_in_line_number_section,
7653 dwarf2_line_header_too_long): New complaints.
7654
7655 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7656
7657 * gdbtypes.c (init_vector_type): New function.
7658 (build_builtin_type_vec128): Simplify the representation of SIMD
7659 registers.
7660 (build_gdbtypes): Initialize new builtin vector types.
7661 (_initialize_gdbtypes): Register new vector types with gdbarch.
7662 (builtin_type_v4_float, builtin_type_v4_int32,
7663 builtin_type_v8_int16, builtin_type_v16_int8,
7664 builtin_type_v2_int32, builtin_type_v4_int16,
7665 builtin_type_v8_int8): New (renamed) SIMD types.
7666
7667 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7668
7669 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7670 (i387_fill_fxsave): Likewise.
7671
7672 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7673
7674 * alpha-tdep.c (alpha_extract_return_value): Don't use
7675 non-constant array size in prototype.
7676
7677 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7678
7679 From Brian Taylor <briant at model dot com>:
7680 * ui-out.c (ui_out_field_core_addr): Use the function
7681 longest_local_hex_string_custom'to format addresses > 32 bits
7682 wide.
7683
7684 * ui-out.c (ui_out_field_core_addr): Update comment.
7685
7686 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7687
7688 * stack.c (select_and_print_frame): Make static. Delete the
7689 parameter `level'.
7690 (func_command): Update call.
7691 (select_frame_command): Delete code computing the frame level.
7692 * frame.h (select_and_print_frame): Delete declaration.
7693
7694 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7695
7696 * sparc-tdep.c (sparc_get_saved_register): Comment why
7697 get_prev_frame call is safe.
7698
7699 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7700
7701 * frame.h (select_frame): Delete level parameter.
7702 * stack.c (select_frame): Update. Use frame_relative_level to
7703 obtain the frame's level.
7704 (select_and_print_frame): Update call.
7705 (select_frame_command): Ditto.
7706 (up_silently_base): Ditto.
7707 (down_silently_base): Ditto.
7708 * ocd.c (ocd_start_remote): Ditto.
7709 * remote-rdp.c (remote_rdp_open): Ditto.
7710 * remote-mips.c (mips_initialize): Ditto.
7711 (common_open): Ditto.
7712 * remote-e7000.c (e7000_start_remote): Ditto.
7713 * m3-nat.c (select_thread): Ditto.
7714 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7715 (child_get_current_exception_event): Ditto.
7716 * varobj.c (varobj_create): Ditto.
7717 (varobj_update): Ditto.
7718 (c_value_of_root): Ditto.
7719 * tracepoint.c (finish_tfind_command): Ditto.
7720 * corelow.c (core_open): Ditto.
7721 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7722 * thread.c (info_threads_command): Ditto.
7723 (switch_to_thread): Ditto.
7724 * infrun.c (normal_stop): Ditto.
7725 (restore_selected_frame): Ditto.
7726 (restore_inferior_status): Ditto.
7727 * breakpoint.c (insert_breakpoints): Ditto.
7728 (watchpoint_check): Ditto.
7729 (bpstat_stop_status): Ditto.
7730 (do_enable_breakpoint): Ditto.
7731 * blockframe.c (flush_cached_frames): Ditto.
7732 (reinit_frame_cache): Ditto.
7733
7734 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7735
7736 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7737 maintainer.
7738
7739 2002-05-04 Jim Blandy <jimb@redhat.com>
7740
7741 * gdbtypes.c (replace_type): Doc fix.
7742
7743 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7744
7745 * valprint.c (strcat_longest): Delete commented out function.
7746 Update copyright.
7747
7748 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7749
7750 * MAINTAINERS: Mark a29k as deleted.
7751 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7752 Move new configurations to the top.
7753 * configure.tgt: Remove a29k.
7754 * config/a29k/tm-vx29k.h: Delete.
7755 * config/a29k/vx29k.mt: Delete.
7756 * config/a29k/tm-a29k.h: Delete.
7757 * config/a29k/a29k-udi.mt: Delete.
7758 * config/a29k/a29k.mt: Delete.
7759 * a29k-tdep.c: Delete.
7760 * remote-udi.c: Delete.
7761 * remote-mm.c: Delete.
7762 * remote-eb.c: Delete.
7763 * remote-adapt.c: Delete.
7764 * Makefile.in: Remove obsolete code.
7765 * config/s390/s390x.mt: Ditto.
7766 * config/s390/s390.mt: Ditto.
7767 * config/sparc/sparclynx.mh: Ditto.
7768 * config/sparc/linux.mh: Ditto.
7769 * config/pa/hppaosf.mh: Ditto.
7770 * config/pa/hppabsd.mh: Ditto.
7771 * config/ns32k/nbsd.mt: Ditto.
7772 * config/mips/vr5000.mt: Ditto.
7773 * config/m68k/sun3os4.mh: Ditto.
7774 * config/m68k/nbsd.mt: Ditto.
7775 * config/m68k/m68klynx.mh: Ditto.
7776 * config/m32r/m32r.mt: Ditto.
7777 * config/i386/x86-64linux.mt: Ditto.
7778 * config/i386/nbsdelf.mt: Ditto.
7779 * config/i386/nbsd.mt: Ditto.
7780 * config/i386/i386lynx.mh: Ditto.
7781
7782 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7783
7784 * target.c (debug_print_register): New function. Handle oversize
7785 registers.
7786 (debug_to_fetch_registers): Call.
7787 (debug_to_store_registers): Call.
7788
7789 2002-05-03 Jim Blandy <jimb@redhat.com>
7790
7791 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7792 (read_type): Doc fix.
7793 * gdbtypes.c (replace_type): Doc fix.
7794
7795 * stabsread.c (multiply_defined_struct): New complaint.
7796 (read_struct_type): If the type we were passed isn't empty, or
7797 incomplete, don't read the new struct type into it; complain,
7798 and return the original type unchanged. Take a new `type_code'
7799 argument, which is the type code for the new type.
7800 (read_type): Rather than storing the type's type code here, pass
7801 it as an argument to read_struct_type, and let that take care of
7802 storing it. That way, we don't overwrite the original type code,
7803 so read_struct_type can use it to decide whether we're overwriting
7804 something we shouldn't.
7805 (complain_about_struct_wipeout): New function.
7806
7807 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7808
7809 * gdbarch.sh: Assert that gdbarch is non-NULL.
7810 * gdbarch.c: Regenerate.
7811
7812 2002-05-03 Jason Merrill <jason@redhat.com>
7813
7814 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7815 and return NULL.
7816
7817 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7818
7819 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7820 (x86_64_dwarf2gdb_regno_map_length),
7821 (x86_64_dwarf2_reg_to_regnum): Added.
7822 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7823 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7824 (_initialize_x86_64_tdep): Synced with the change above.
7825 (x86_64_skip_prologue): Reformulated message.
7826
7827 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7828
7829 * f-exp.y: Also use new prev_lexptr variable
7830 to improve error reporting. Based on Michael Snyder
7831 2002-04-24 dated patch to c-exp.y.
7832 * jv-exp.y: Likewise.
7833 * m2-exp.y: Likewise.
7834
7835 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7836
7837 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7838 we are dealing with vectors.
7839
7840 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7841
7842 * config/m68k/tm-nbsd.h: Obvious fix,
7843 correct machine name.
7844
7845 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7846
7847 * p-typeprint.c (pascal_type_print_base): Add support
7848 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7849
7850 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7851
7852 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7853 for fondamental pascal 'char' type.
7854
7855 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7856
7857 * p-lang.h (is_pascal_string_type): Declaration changed,
7858 new sixth argument of type char ** added.
7859 * p-lang.c (is_pascal_string_type): Implementation
7860 changed. Args length_pos, length_size, string_pos, char_size
7861 can now be NULL. New argument arrayname set to the field
7862 name of the char array. Return value set to char array
7863 field index plus one.
7864 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7865 is_pascal_string_type function.
7866
7867 2002-05-02 Andrew Cagney <cagney@redhat.com>
7868
7869 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7870 <cagney@redhat.com> change.
7871 * gdbarch.c: Regenerate.
7872
7873 2002-05-02 Andrew Cagney <cagney@redhat.com>
7874
7875 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7876 before probing for a new one. Detect errorenous gdbarch_init
7877 functions.
7878 * gdbarch.c: Regenerate.
7879
7880 2002-05-01 Andrew Cagney <cagney@redhat.com>
7881
7882 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7883 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7884 * config/v850/tm-v850.h: Ditto. Update copyright.
7885
7886 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7887
7888 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7889 current_gdbarch.
7890
7891 2002-04-30 Michael Snyder <msnyder@redhat.com>
7892
7893 * arm-tdep.c: Whitespace clean-ups.
7894 (arm_skip_prologue): Fix thinko; two lines
7895 should have been removed as part of 4/24 change.
7896
7897 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7898
7899 * rs6000-tdep.c: Added comment describing how fpscr register
7900 numbers were chosen.
7901
7902 2002-04-30 Michael Snyder <msnyder@redhat.com>
7903
7904 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7905
7906 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7907
7908 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7909 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7910 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7911
7912 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7913
7914 From Louis Hamilton <hamilton@redhat.com>:
7915 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7916 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7917 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7918 not bfd-private xcoff data, to determine wordsize.
7919 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7920
7921 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7922
7923 GDB 5.2 released from 5.2 branch.
7924
7925 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7926
7927 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7928 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7929 (x86_64_register_info_table): Added comments with register numbers.
7930
7931 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7932
7933 * rs6000-tdep.c (rs6000_extract_return_value,
7934 rs6000_store_return_value): Handle returning vectors.
7935 (rs6000_gdbarch_init): Use
7936 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7937 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7938 New function.
7939 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7940 vectors.
7941 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7942 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7943
7944 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7945
7946 * hpread.c (hpread_psymtab_to_symtab_1,
7947 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7948 with fprintf_unfiltered (gdb_stderr,...).
7949
7950 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7951
7952 * remote-array.c (printf_monitor, write_monitor,
7953 array_insert_breakpoint, array_remove_breakpoint ):
7954 Replace fprintf (stderr,...
7955 with fprintf_unfiltered (gdb_stderr,....
7956 * remote-es.c: Likewise.
7957 * remote-os9k.c: Likewise.
7958 * remote-st.c: Likewise.
7959
7960 2002-04-28 Andreas Schwab <schwab@suse.de>
7961
7962 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7963 linux-proc.o and gcore.o.
7964
7965 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7966
7967 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7968 code without frame pointers.
7969
7970 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7971
7972 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7973 ON_STACK is needed.
7974
7975 2002-04-26 Ben Elliston <bje@redhat.com>
7976
7977 * target.c (do_xfer_memory): Correct reference to the new option
7978 "trust-readonly-sections".
7979
7980 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7981
7982 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7983 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7984 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7985 vectors.
7986 (read_array_type): Record the fact that this array type is really a
7987 vector (i.e. are passed in by value).
7988
7989 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7990
7991 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7992 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7993 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7994 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7995 * alpha-linux-tdep.c: Include frame.h.
7996 (alpha_linux_sigcontext_addr): New function.
7997 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7998 alpha_linux_sigcontext_addr.
7999 * alpha-osf1-tdep.c: Include gdbcore.h.
8000 (alpha_osf1_sigcontext_addr): New function.
8001 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8002 alpha_osf1_sigcontext_addr.
8003 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8004 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8005
8006 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8007
8008 * stack.c (selected_frame_level):
8009 (select_frame): Do not set selected_frame_level.
8010 * frame.h (selected_frame_level): Delete declaration.
8011
8012 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8013
8014 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8015 convert_from_func_ptr-addr when AIX / PowerOpen.
8016
8017 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8018
8019 * valops.c (hand_function_call): Call
8020 generic_save_call_dummy_addr.
8021 * frame.h (generic_save_call_dummy_addr): Declare.
8022 * blockframe.c (struct dummy_frame): Add fields call_lo and
8023 call_hi.
8024 (generic_find_dummy_frame): Check for PC in range call_lo to
8025 call_hi instead of entry_point_address.
8026 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8027 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8028 (generic_save_call_dummy_addr): New function.
8029
8030 2002-04-24 David S. Miller <davem@redhat.com>
8031
8032 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8033 sparc_skip_prologue.
8034 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8035 information to find prologue when possible.
8036 (sparc_prologue_frameless_p): Call examine_prologue directly.
8037 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8038 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8039 second argument.
8040 (SKIP_PROLOGUE): Likewise.
8041
8042 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8043
8044 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8045 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8046 indicate that the condition it was testing is always true.
8047 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8048 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8049 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8050
8051 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8052
8053 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8054 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8055 tdep->jb_pc and tdep->jb_elt_size.
8056 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8057 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8058 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8059 * alpha-nat.c (get_longjmp_target): Remove.
8060 (JB_ELEMENT_SIZE): Ditto.
8061 (JB_PC): Ditto.
8062 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8063 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8064 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8065 to alpha_get_longjmp_target.
8066 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8067 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8068 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8069
8070 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8071
8072 * README: Update to GDB 5.2.
8073
8074 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8075
8076 * gdbarch.sh (LC_ALL): Set to `c'.
8077
8078 2002-04-25 Theodore A. Roth <troth@verinet.com>
8079
8080 * avr-tdep.c: Ran through gdb_indent.sh.
8081
8082 2002-04-25 Theodore A. Roth <troth@verinet.com>
8083
8084 * MAINTAINERS: Add myself as AVR maintainer.
8085 * NEWS: Note new target avr.
8086
8087 2002-04-25 Theodore A. Roth <troth@verinet.com>
8088
8089 * Makefile.in: Add support for AVR target.
8090 * configure.tgt: Add support for AVR target.
8091 * avr-tdep.c: New file
8092 * config/avr/avr.mt: New file.
8093
8094 2002-04-25 Theodore A. Roth <troth@verinet.com>
8095
8096 * MAINTAINERS: Add myself to write-after-approval.
8097
8098 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8099
8100 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8101 with fprintf_unfiltered (gdb_stderr,....
8102
8103 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8104
8105 Fix PR gdb/508.
8106 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8107
8108 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8109
8110 * p-exp.y: Also use new prev_lexptr variable
8111 to improve error reporting. Based on Michael Snyder
8112 2002-04-24 dated patch to c-exp.y.
8113
8114 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8115
8116 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8117 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8118 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8119 to 0.
8120 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8121 and struct value.
8122 (FUNCTION_START_OFFSET): Remove.
8123 (BREAKPOINT): Ditto.
8124
8125 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8126
8127 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8128 * NEWS: Ditto.
8129
8130 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8131
8132 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8133 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8134 alpha_linux_pc_in_sigtramp.
8135 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8136 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8137 alpha_osf1_pc_in_sigtramp.
8138 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8139 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8140 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8141 alphafbsd_pc_in_sigtramp.
8142 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8143 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8144 alphanbsd_pc_in_sigtramp.
8145 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8146 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8147
8148 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8151
8152 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8155 alphanbsd-tdep.c.
8156 (alphanbsd-nat.o): New dependency list.
8157 (alphanbsd-tdep.o): Ditto.
8158 * NEWS: Note new native NetBSD/alpha configuration.
8159 * alphanbsd-nat.c: New file.
8160 * alphanbsd-tdep.c: Ditto.
8161 * configure.host (alpha*-*-netbsd*): New host.
8162 * configure.tgt (alpha*-*-netbsd*): New target.
8163 * config/alpha/nbsd.mh: New file.
8164 * config/alpha/nbsd.mt: Ditto.
8165 * config/alpha/nm-nbsd.h: Ditto.
8166 * config/alpha/tm-nbsd.h: Ditto.
8167
8168 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8169
8170 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8171 (alpha-osf1-tdep.o): New dependency list.
8172 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8173 and skip_sigtramp_frame members.
8174 * alpha-linux-tdep.c: Include gdbcore.h.
8175 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8176 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8177 * alpha-osf1-tdep.c: New file.
8178 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8179 alpha-osf1-dep.c.
8180 (alpha_frame_past_sigtramp_frame): New function.
8181 (alpha_dynamic_sigtramp_offset): Ditto.
8182 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8183 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8184 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8185 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8186 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8187 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8188 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8189 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8190 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8191 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8192 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8193 to find_solib_trampoline_target.
8194 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8195 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8196 (SKIP_TRAMPOLINE_CODE): Remove.
8197 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8198 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8199 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8200 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8201 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8202 (PROC_SIGTRAMP_MAGIC): Ditto.
8203 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8204 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8205 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8206 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8207 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8208
8209 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8210
8211 * NEWS: Note that Alpha targets are now multi-arch.
8212
8213 2002-04-24 Michael Snyder <msnyder@redhat.com>
8214
8215 * parser-defs.h (prev_lexptr): New external variable.
8216 * parse.c (parse_exp_1): Set prev_lexptr to null before
8217 calling the language-specific parser.
8218 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8219 (yyerror): Use prev_lexptr in error reporting.
8220
8221 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8222
8223 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8224 * gregset.h: If FILL_FPXREGSET is defined, provide
8225 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8226 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8227 is defined, call fill_fpxregset.
8228
8229 2002-04-24 Roland McGrath <roland@frob.com>
8230
8231 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8232 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8233 (supply_gregset, supply_fpregset): New functions.
8234
8235 * gnu-nat.c (gnu_find_memory_regions): New function.
8236 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8237 (gnu_xfer_memory): Add a cast.
8238
8239 2002-04-24 Michael Snyder <msnyder@redhat.com>
8240
8241 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8242 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8243 of argument regs ("str r(0123), [r11, #-nn"]).
8244 (arm_skip_prologue): Better handling for frameless functions.
8245 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8246 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8247
8248 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8249
8250 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8251 NUM_PSEUDO_REGS can be used.
8252
8253 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8254
8255 * arch-utils.h: Update copyright.
8256
8257 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8258 * gdbarch.h, gdbarch.c: Re-generate.
8259
8260 * inferior.h (IN_SIGTRAMP): Delete definition.
8261 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8262 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8263
8264 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8265 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8266 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8267 (find_proc_framesize): Ditto.
8268 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8269 (alpha_init_extra_frame_info): Ditto.
8270 * infrun.c (handle_inferior_event): Ditto.
8271 (handle_inferior_event): Ditto.
8272 (check_sigtramp2): Ditto.
8273 * blockframe.c (create_new_frame): Ditto.
8274 (get_prev_frame): Ditto.
8275 * ppc-linux-tdep.c: Update comments.
8276 * i386-linux-tdep.c: Update comments.
8277 * breakpoint.c (bpstat_what): Update comment.
8278
8279 2002-04-24 David S. Miller <davem@redhat.com>
8280
8281 * i960-tdep.c (register_in_window_p): New function.
8282 (i960_find_saved_register): Use it instead of
8283 REGISTER_IN_WINDOW_P.
8284 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8285
8286 * symtab.h (find_stab_function_addr): Kill extern.
8287 * minsyms.c (find_stab_function_addr): Remove from here...
8288 * dbxread.c: ... to here, and mark it static.
8289
8290 2002-04-20 David S. Miller <davem@redhat.com>
8291
8292 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8293 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8294
8295 2002-04-21 David S. Miller <davem@redhat.com>
8296
8297 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8298 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8299 (vx_write_register): Likewise.
8300
8301 2002-04-23 J. Brobecker <brobecker@gnat.com>
8302
8303 * source.c (is_regular_file): New function.
8304 (openp): Check wether file to open is a regular file
8305 to avoid opening directories.
8306
8307 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8308
8309 * findvar.c (extract_signed_integer): Cast printf argument
8310 to suppress format warning.
8311 (extract_unsigned_integer): Likewise.
8312 * infcmd.c (registers_info): Likewise.
8313 * top.c (get_prompt_1): Likewise.
8314 * valops.c (value_assign): Likewise.
8315 * valprint.c (print_decimal): Likewise.
8316
8317 2002-04-22 H.J. Lu (hjl@gnu.org)
8318
8319 * c-exp.y (typebase): Support
8320
8321 [long|long long|short] [signed|unsigned] [int|]
8322
8323 and
8324
8325 signed [long|long long|short] int
8326
8327 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8328
8329 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8330 and vax-tdep.h.
8331 * vax-tdep.h: New file.
8332 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8333 Make several routines static.
8334 (vax_get_saved_register): New function.
8335 (vax_gdbarch_init): New function.
8336 (_initialize_vax_tdep): Register vax_gdbarch_init.
8337 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8338 Remove macros now under the control of gdbarch.
8339
8340 2002-04-22 Michael Snyder <msnyder@redhat.com>
8341
8342 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8343 Some whitespace and coding standards tweaks.
8344
8345 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8346
8347 * vax-tdep.c: Include regcache.h.
8348 (vax_call_dummy_words): New.
8349 (sizeof_vax_call_dummy_words): New.
8350 (vax_fix_call_dummy): New function.
8351 (vax_saved_pc_after_call): Ditto.
8352 * config/vax/tm-vax.h: Don't include regcache.h.
8353 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8354 (CALL_DUMMY): Remove.
8355 (CALL_DUMMY_WORDS): Define.
8356 (SIZEOF_CALL_DUMMY_WORDS): Define.
8357 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8358
8359 2002-04-18 Michael Snyder <msnyder@redhat.com>
8360
8361 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8362
8363 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8364
8365 * vax-tdep.c (vax_frame_chain): New function.
8366 (vax_push_dummy_frame): Ditto.
8367 (vax_pop_frame): Ditto.
8368 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8369 (FRAMELESS_FUNCTION_INVOCATION): Use
8370 generic_frameless_function_invocation_not.
8371 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8372 (POP_FRAME): Use vax_pop_frame.
8373
8374 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8375
8376 * vax-tdep.c (vax_store_struct_return): New function.
8377 (vax_extract_return_value): Ditto.
8378 (vax_store_return_value): Ditto.
8379 (vax_extract_struct_value_address): Ditto.
8380 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8381 vax_store_struct_return.
8382 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8383 (STORE_RETURN_VALUE): Use vax_store_return_value.
8384 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8385
8386 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8387
8388 * vax-tdep.c (vax_frame_saved_pc): New function.
8389 (vax_frame_args_address_correct): Ditto.
8390 (vax_frame_args_address): Ditto.
8391 (vax_frame_locals_address): Ditto.
8392 (vax_frame_num_args): Move code to be in proximity to
8393 other frame-related functions.
8394 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8395 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8396 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8397 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8398 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8399
8400 2002-04-22 H.J. Lu (hjl@gnu.org)
8401
8402 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8403 includedir.
8404
8405 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8406
8407 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8408 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8409 (FRAME_INIT_SAVED_REGS): New macro.
8410
8411 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8412
8413 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8414
8415 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8416
8417 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8418 where needed.
8419 (fetch_osf_core_registers): Likewise.
8420 (supply_gregset): Likewise.
8421
8422 2002-04-22 J. Brobecker <brobecker@gnat.com>
8423
8424 * symfile.h (get_section_index): Define.
8425 * symfile.c (get_section_index): New function.
8426 * mdebugread.c (SC_IS_SBSS): New macro.
8427 (SC_IS_BSS): Return true for the scBss storage class only, as
8428 the scSBss storage class refers to the .sbss section.
8429 (parse_partial_symbols): Discard the symbols which associated
8430 section does not exist.
8431 Make sure to use the .sbss section index for symbols which
8432 storage class is scBss, rather than using the .bss section index.
8433
8434 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8435
8436 * vax-tdep.c: Update copyright years.
8437 (vax_register_name): New function.
8438 (vax_register_byte): Ditto.
8439 (vax_register_raw_size): Ditto.
8440 (vax_register_virtual_size): Ditto.
8441 (vax_register_virtual_type): Ditto.
8442 * config/vax/tm-vax.h: Update copyright years.
8443 (REGISTER_NAMES): Remove.
8444 (REGISTER_NAME): Define.
8445 (REGISTER_BYTE): Use vax_register_byte.
8446 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8447 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8448 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8449
8450 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8451
8452 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8453 declaration
8454 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8455
8456 2002-04-21 David S. Miller <davem@redhat.com>
8457
8458 * arch-utils.c (generic_prologue_frameless_p): Kill
8459 SKIP_PROLOGUE_FRAMELESS_P code.
8460 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8461 references.
8462 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8463 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8464 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8465 references.
8466 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8467 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8468 (sparc_gdbarch_init): Pass it to
8469 set_gdbarch_prologue_frameless_p.
8470
8471 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8474 (alphabsd-nat.o): New dependency list.
8475
8476 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8477
8478 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8479 alphafbsd-tdep.c.
8480 (alpha-linux-tdep.o): New dependency list.
8481 (alphafbsd-tdep.o): Likewise.
8482
8483 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8484
8485 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8486 to here...
8487 * alpha-tdep.c: ...from here.
8488 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8489
8490 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8491
8492 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8493 prototype from here...
8494 * alpha-tdep.h: ...to here.
8495
8496 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8497
8498 * frame.h (selected_frame_level): Document as deprecated.
8499 (frame_relative_level): Declare.
8500 * stack.c (frame_relative_level): New function.
8501 (selected_frame_level): Document as deprecated.
8502 (select_frame): Do not set the selected_frame_level.
8503
8504 * stack.c (frame_info, record_selected_frame): Update.
8505 (frame_command, current_frame_command): Update.
8506 (up_silently_base, up_command, down_silently_base): Update.
8507 (down_command): Update.
8508 * inflow.c (kill_command): Update.
8509 * tracepoint.c (finish_tfind_command): Update.
8510 * corelow.c (core_open): Update.
8511 * thread.c (info_threads_command): Update.
8512 (do_captured_thread_select): Update.
8513 * infcmd.c (finish_command): Update.
8514 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8515
8516 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8519
8520 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8521
8522 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8523 type const.
8524
8525 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8526
8527 * alphafbsd-tdep.c: Update copyright years. Include
8528 alpha-tdep.h.
8529 (alphafbsd_use_struct_convention): Make static.
8530 (alphafbsd_init_abi): New function.
8531 (_initialize_alphafbsd_tdep): New function.
8532 * config/alpha/tm-fbsd.h: Update copyright years.
8533 (USE_STRUCT_CONVENTION): Remove.
8534
8535 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8536
8537 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8538 an Alpha ABI variant.
8539 (alpha_abi_handler_list): Declare.
8540 (alpha_gdbarch_register_os_abi): New function.
8541 (alpha_gdbarch_init): Give registered ABI variant handlers a
8542 chance to tweak the gdbarch once we have set up defaults.
8543 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8544
8545 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8546
8547 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8548 to standard_coerce_float_to_double.
8549 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8550
8551 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8552
8553 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8554 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8555 from gdbarch_tdep rather than a constant.
8556 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8557 the default text address for all Alpha Unix ABIs.
8558 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8559 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8560
8561 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8562
8563 * alpha-tdep.h: New file. Includes several Alpha target constants
8564 taken from...
8565 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8566 let gdbarch deal with.
8567 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8568 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8569 to dependency list.
8570 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8571 Alpha target register names.
8572 * alphabsd-nat.c: Likewise.
8573 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8574 Alpha target register names. Make serveral routines static.
8575 (alpha_get_saved_register): New function.
8576 (alpha_abi_names): New.
8577 (process_note_abi_tag_sections): New function.
8578 (get_elfosabi): New function.
8579 (alpha_gdbarch_init): New function.
8580 (alpha_dump_tdep): New function.
8581 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8582
8583 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8584
8585 * frame.c (find_saved_register): Delete #ifdef
8586 HAVE_REGISTER_WINDOWS code.
8587 * config/sparc/tm-sparc.h: Update comments.
8588 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8589
8590 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8591
8592 * i960-tdep.c (i960_find_saved_register): New function.
8593 (i960_get_saved_register): New function.
8594 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8595 (i960_get_saved_register): Declare.
8596 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8597
8598 2002-04-20 David S. Miller <davem@redhat.com>
8599
8600 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8601
8602 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8603
8604 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8605 instead of NUM_PSEUDO_REGS.
8606
8607 2002-04-20 David S. Miller <davem@redhat.com>
8608
8609 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8610 GDB_MULTI_ARCH_PARTIAL
8611 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8612 define, let tm-sp64.h do it.
8613
8614 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8615
8616 * frame.c (find_saved_register): Avoid a NULL pointer
8617 dereference and actually walk the frame list.
8618
8619 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8620
8621 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8622 sorted in most most-recent-used order. Document.
8623 * gdbarch.h, gdbarch.c: Regenerate.
8624
8625 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8626
8627 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8628 instead of ->prev.
8629 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8630 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8631 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8632 instead of ->prev.
8633
8634 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8635
8636 Fix PR gdb/471.
8637 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8638 (build_builtin_type_vec128): Ditto.
8639 (append_composite_type_field): Fix calculation of type length in
8640 union case.
8641
8642 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8643
8644 * config/djgpp/README: Update.
8645
8646 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8647 compiler warnings.
8648
8649 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8650
8651 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8652 (alpha_setup_arbitrary_frame): ...to this.
8653 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8654 for alpha_setup_arbitrary_frame.
8655
8656 2002-04-18 Andrew Cagney <cagney@redhat.com>
8657
8658 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8659 * gdbarch.h, gdbarch.c: Regenerate.
8660
8661 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8662 * target.h (memory_breakpoint_from_pc): Update declaration.
8663 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8664
8665 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8666 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8667 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8668 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8669 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8670 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8671 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8672 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8673 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8674 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8675 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8676 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8677
8678 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8679 const pointer.
8680 * monitor.c (monitor_insert_breakpoint): Ditto.
8681 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8682
8683 * config/mcore/tm-mcore.h: Update copyright.
8684 * mem-break.c: Ditto.
8685 * xstormy16-tdep.c: Ditto.
8686
8687 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8688
8689 * p-exp.y: Add precedence rule for '^' token.
8690 This removes the shift/reduce conflicts.
8691 Remove the comment concerning these shift/reduce conflicts.
8692
8693 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8694
8695 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8696 (registers_powerpc_nofp): New register set for processors
8697 without floating point unit.
8698
8699 2002-04-18 David S. Miller <davem@redhat.com>
8700
8701 * MAINTAINERS: Add myself to write-after-approval.
8702
8703 2002-04-17 Michael Snyder <msnyder@redhat.com>
8704
8705 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8706
8707 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8708
8709 * rs6000-tdep.c (frame_initial_stack_address): Use
8710 frame_register_read to read the alloca_reg.
8711
8712 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8713
8714 * frame.c (find_saved_register): Find saved registers in the next
8715 not prev frame.
8716 Fix PR gdb/365.
8717
8718 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8719
8720 * gdbarch.sh (LANG): Set to ``c''.
8721
8722 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8723
8724 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8725
8726 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8727
8728 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8729 Update copyright.
8730
8731 * hpread.c (hpread_get_lntt): Add declaration.
8732 Also fix PR gdb/391.
8733
8734 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8735
8736 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8737 * aclocal.m4, configure: Re-generate.
8738 Fix PR gdb/391.
8739
8740 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8741
8742 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8743 instead of tm_print_insn.
8744
8745 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8746
8747 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8748
8749 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8750
8751 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8752 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8753 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8754
8755 2002-04-12 Don Howard <dhoward@redhat.com>
8756
8757 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8758 max_user_call_depth.
8759 (init_cmd_lists): Initialize the new value;
8760 * cli/cli-script.c (execute_user_command): Limit the call depth of
8761 user defined commands. This avoids a core-dump when user commands
8762 are infinitly recursive.
8763
8764 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8765
8766 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8767 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8768 from tdep struct instead of DEFAULT_LR_SAVE.
8769 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8770 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8771 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8772
8773 2002-04-12 Michael Snyder <msnyder@redhat.com>
8774
8775 * Remote.c: Spelling fix.
8776 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8777 If no symbol found for "sbrk", try "_sbrk".
8778 (make_output_phdrs): Use bfd_section_name.
8779 (gcore_copy_callback): Use bfd_section_name.
8780 * eval.c: Indentation fix-ups.
8781 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8782 in case it gets applied to an address that is already
8783 in the instruction space.
8784 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8785 * symfile.c: Fix indentation, long lines.
8786 * source.c: White space fix-up.
8787
8788 2002-04-12 Andrew Cagney <cagney@redhat.com>
8789
8790 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8791 * frame.c (frame_register_read): New function. Return non-zero on
8792 success.
8793 (read_relative_register_raw_bytes_for_frame): Delete.
8794 (read_relative_register_raw_bytes): Delete.
8795 * frame.h (frame_register_read): Declare.
8796 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8797 * sh-tdep.c: Ditto.
8798 * infcmd.c (do_registers_info): Ditto.
8799 * hppa-tdep.c: Ditto.
8800 * rs6000-tdep.c: Ditto.
8801 * h8500-tdep.c: Ditto.
8802 * mips-tdep.c: Ditto.
8803 * h8300-tdep.c: Ditto.
8804 * z8k-tdep.c: Ditto.
8805
8806 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8807
8808 From Jimi X <jimix@watson.ibm.com>:
8809 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8810 64-bit SysV ABI.
8811
8812 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8813
8814 From Jimi X <jimix@watson.ibm.com>:
8815 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8816 bfd info.
8817
8818 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8819
8820 From Jimi X <jimix@watson.ibm.com>:
8821 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8822 register sets for these processor variants.
8823
8824 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8825
8826 * regformats/reg-ppc.dat: Support FPSCR.
8827
8828 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8829
8830 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8831 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8832 Add fpscr as an invalid/unfetchable register.
8833 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8834 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8835 (fill_fpregset): Add support for register fpscr.
8836 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8837 (fill_gregset): Account for the fact that register ``mq'' might
8838 not exist.
8839 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8840 (registers_power): Add fpscr to register set at slot 71.
8841 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8842 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8843
8844 2002-04-11 Michael Snyder <msnyder@redhat.com>
8845
8846 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8847 * configure: Regenerate.
8848 * config.in: Regenerate.
8849 * acconfig.h: Add define for _SYSCALL32.
8850 * core-sol2.c: Remove #define _SYSCALL32.
8851 * solib-legacy.c: Remove #define _SYSCALL32.
8852
8853 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8854
8855 * stack.c (select_frame): Cleanup internal error message, do not
8856 use %p.
8857
8858 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8859
8860 * stack.c (select_frame): Check that selected_frame and the
8861 specified level are as expected.
8862 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8863 Update copyright.
8864 * frame.h (struct frame_info): Add field `level'. Update
8865 copyright.
8866 Work-in-progress PR gdb/464.
8867
8868 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8869
8870 * maint.c (maint_print_section_info): Rename print_section_info.
8871 (print_bfd_section_info, print_objfile_section_info): Update.
8872 * inferior.h (struct gdbarch): Add opaque declaration.
8873 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8874 * gdbarch.h: Regenerate.
8875
8876 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8877
8878 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8879 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8880 (kernel_u_size): Added.
8881 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8882 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8883
8884 2002-04-04 Jim Ingham <jingham@apple.com>
8885
8886 * valarith.c (find_size_for_pointer_math): New function, either returns
8887 the size for a pointer's target, returns 1 for void *, or errors for
8888 incomplete types.
8889 (value_add, value_sub): use find_size_for_pointer_math.
8890
8891 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8892
8893 * linux-low.c (linux_look_up_symbols): New hook.
8894 (linux_target_ops): Add linux_look_up_symbols.
8895 * remote-utils.c (decode_address): New function.
8896 (look_up_one_symbol): New function.
8897 * server.c (handle_query): Call target look_up_symbols hook.
8898 * server.h (look_up_one_symbol): Add prototype.
8899 * target.h (struct target_ops): Add look_up_symbols hook.
8900
8901 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8902
8903 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8904 override FP_REGNUM with frame->fp. Update copyright.
8905 * parse.c (num_std_regs, std_regs): Delete.
8906 (target_map_name_to_register): Do not search std_regs. Update
8907 function description.
8908 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8909 declarations. Update copyright.
8910 Fix PR gdb/251.
8911
8912 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8913
8914 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8915 after the last symbol in a block.
8916
8917 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8918
8919 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8920 is non zero as a found symbol.
8921
8922 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8923
8924 * findvar.c: Include "builtin-regs.h".
8925 (value_of_register): Call value_of_builtin_reg when applicable.
8926 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8927 (target_map_name_to_register): Call
8928 builtin_reg_map_name_to_regnum.
8929 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8930 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8931 (builtin_regs_h): Define.
8932 (builtin-regs.o): New target.
8933 (findvar.o): Add $(builtin_regs_h).
8934 * builtin-regs.c, builtin-regs.h: New files.
8935 * std-regs.c: New file.
8936 Partial fix for PR gdb/251.
8937
8938 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8939
8940 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8941 it's no longer required.
8942
8943 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8944
8945 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8946
8947 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8948
8949 From Jimi X <jimix@watson.ibm.com>:
8950 * rs6000-tdep.c (rs6000_software_single_step): Use
8951 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8952 and size. Use target_insert_breakpoint() and
8953 target_remove_breakpoint() to insert and remove breakpoints
8954 instead of explicit memory reads and writes.
8955
8956 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8957
8958 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8959 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8960 ELF_OBJECT_FORMAT ifdef.
8961
8962 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8963
8964 From Jimi X <jimix@watson.ibm.com>:
8965 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8966
8967 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8968
8969 From Jimi X <jimix@watson.ibm.com>:
8970 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8971 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8972
8973 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8974
8975 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8976 s/asprintf/xasprintf/.
8977 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8978
8979 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8980
8981 I believe Jeff Law denies responsability for this one:
8982 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8983 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8984 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8985 Work-around for PR gdb/366.
8986
8987 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8988
8989 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8990 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8991 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8992
8993 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8994
8995 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8996 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8997 information.
8998
8999 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9000
9001 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9002 maintainer.
9003
9004 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9005
9006 * README (Reporting Bugs in GDB): Document the bug web page as the
9007 prefered way of submitting bugs.
9008 Fix PR gdb/402.
9009
9010 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9011
9012 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9013 -1. Update comment.
9014 * gdbarch.h, gdbarch.c: Re-generate.
9015
9016 2002-04-07 Andreas Schwab <schwab@suse.de>
9017
9018 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9019 buffer to regcache_collect.
9020
9021 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9022
9023 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9024 * gdbarch.c, gdbarch.h: Re-generate.
9025
9026 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9027
9028 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9029 declaration. Fix -Werror.
9030
9031 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9032
9033 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9034 * gdbarch.c: Regenerate.
9035
9036 2002-04-05 Michael Snyder <msnyder@redhat.com>
9037
9038 * breakpoint.c (clear_command): Rewrite middle section to
9039 combine two loops with identical control conditions.
9040 Add a cleanup to eliminate a memory leak.
9041 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9042
9043 2002-04-05 H.J. Lu (hjl@gnu.org)
9044
9045 * solib-svr4.c (bkpt_names): Add "__start".
9046
9047 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9048
9049 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9050 as test for 64 bit target.
9051
9052 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9053
9054 * h8500-tdep.c (h8500_write_fp): Delete function.
9055 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9056 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9057 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9059 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9060 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9061 (s390_write_fp):
9062 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9063 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9064 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9065 (d10v_write_fp): Delete function.
9066 * inferior.h (write_fp, generic_target_write_fp): Delete
9067 declarations.
9068 * regcache.c (generic_target_write_fp): Delete function.
9069 (write_fp): Delete function.
9070 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9071 * gdbarch.h, gdbarch.c: Regenerate.
9072 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9073 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9074 (sparc64_write_fp): Delete declaration.
9075 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9076 (h8500_write_fp): Delete declaration.
9077
9078 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9079
9080 * sparc-tdep.c (sparc64_write_fp): Delete.
9081 (sparc_push_dummy_frame): Replace write_fp call with code to store
9082 the FP directly.
9083 (sparc_gdbarch_init): Do not initialize write_fp.
9084
9085 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9086
9087 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9088 clause.
9089
9090 2002-03-29 Jim Blandy <jimb@redhat.com>
9091
9092 * stack.c (get_selected_block): Add new argument `addr_in_block',
9093 used to return the exact code address we used to select the block,
9094 not just the block.
9095 * blockframe.c (get_frame_block, get_current_block): Same.
9096 * frame.h (get_frame_block, get_current_block,
9097 get_selected_block): Update declarations.
9098 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9099 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9100
9101 2002-04-05 Michael Snyder <msnyder@redhat.com>
9102
9103 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9104 warning message.
9105
9106 2002-04-05 J. Brobecker <brobecker@gnat.com>
9107
9108 * utils.c (xfullpath): New function.
9109 * defs.h (xfullpath): Add declaration.
9110 * source.c (openp): Use xfullpath in place of gdb_realpath to
9111 avoid resolving the basename part of filenames when the
9112 associated file is a symbolic link. This fixes a potential
9113 inconsistency between the filenames known to GDB and the
9114 filenames it prints in the annotations.
9115 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9116 to be able to match a filename with either the real filename, or
9117 the name of any symbolic link to this file.
9118 (lookup_partial_symtab): Ditto.
9119
9120 2002-04-04 Michael Snyder <msnyder@redhat.com>
9121
9122 * breakpoint.c: Add support for hardware breakpoints in overlays.
9123 (overlay_events_enabled): New state variable.
9124 (insert_breakpoints): Use overlay_events_enabled to decide
9125 whether to attempt to set a breakpoint at the overlay load addr.
9126 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9127 (remove_breakpoint): Use overlay_events_enabled to decide
9128 whether breakpoints need to be removed from overlay load addr.
9129 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9130 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9131 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9132 disable_overlay_breakpoints): Update overlay_events_enabled.
9133
9134 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9135
9136 * dwarf2read.c (struct function_range): New.
9137 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9138 (check_cu_functions): New.
9139 (read_file_scope): Initialize global function lists.
9140 Call dwarf_decode_line after processing children.
9141 (read_func_scope): Add to global function list.
9142 (dwarf_decode_lines): Call check_cu_functions everywhere
9143 record_line is called. Call record_line with a linenumber
9144 of 0 to mark sequence ends.
9145
9146 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9147
9148 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9149 change sync with glibc.
9150
9151 2002-04-03 Jim Blandy <jimb@redhat.com>
9152
9153 * configure.in: Call AC_C_INLINE.
9154 * configure: Regenerated.
9155
9156 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9157
9158 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9159 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9160
9161 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9162
9163 * NEWS: Mention gcore support on FreeBSD/i386.
9164
9165 * fbsd-proc.c: New file.
9166 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9167 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9168
9169 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9170 while statement.
9171
9172 2002-03-29 Jim Blandy <jimb@redhat.com>
9173
9174 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9175 unescaped newlines in string literals, but newer ones don't. So
9176 escape them.
9177
9178 2002-03-26 Michael Snyder <msnyder@redhat.com>
9179 Andrew Cagney <cagney@redhat.com>
9180
9181 * cli/cli-dump.c: New file. Dump memory to file,
9182 restore file to memory.
9183 * cli/cli-dump.h: New file.
9184 * Makefile.in: Add rules, dependencies for cli-dump.o.
9185 * NEWS: Mention new commands.
9186
9187 2002-03-28 Michael Snyder <msnyder@redhat.com>
9188
9189 * symfile.c (symbol_file_add): Move test for null symbols to later.
9190
9191 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9192
9193 From veksler at il.ibm.com:
9194 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9195 the xstrduped original path.
9196 Fix PR gdb/417.
9197
9198 2002-03-27 Michael Snyder <msnyder@redhat.com>
9199
9200 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9201 * infcmd.c (_initialize_infcmd): Ditto.
9202 * language.c (_initialize_language): Ditto.
9203 * symfile.c (_initialize_symfile): Ditto.
9204 * top.c (_init_main): Ditto.
9205 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9206
9207 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9208
9209 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9210 vector registers handling.
9211 (skip_prologue): Handle new AltiVec instructions. Fill in new
9212 fields of frame data.
9213 (frame_get_saved_regs): Fill in information for AltiVec registers.
9214
9215 2002-03-27 Jim Blandy <jimb@redhat.com>
9216
9217 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9218 a function; leave this macro here to invoke that function.
9219 (symbol_init_mangled_name): Declaration for that function.
9220 * symtab.c (symbol_init_mangled_name): New function.
9221
9222 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9223
9224 * valarith.c: Replace strerror with safe_strerror.
9225 * tracepoint.c: Ditto.
9226 * lin-lwp.c: Ditto.
9227 * go32-nat.c: Ditto.
9228 * inflow.c: Ditto.
9229 * gnu-nat.c: Ditto.
9230
9231 2002-03-27 Andreas Schwab <schwab@suse.de>
9232
9233 * event-top.c (command_line_handler): Remove useless if.
9234
9235 2002-03-27 Andreas Jaeger <aj@suse.de>
9236
9237 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9238 comment.
9239
9240 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9241
9242 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9243 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9244 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9245 (x86_64_linux_dr_get_status, supply_gregset),
9246 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9247 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9248 (x86_64_register_info_table): Add.
9249 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9250 (x86_64_register_raw_size, x86_64_register_virtual_type),
9251 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9252 general x86_64_register_info_table.
9253 (i386_gdbarch_init): gdbarch_register_bytes is now set
9254 dynamicaly during initialization.
9255 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9256 * gdbserver/linux-x86-64-low.c: Ditto.
9257
9258 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9259
9260 * gdbserver/server.c (main): Call target_signal_to_host_p
9261 and target_signal_to_host on signals received from the remote.
9262 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9263 target_signal_from_host on signals sent to the remote.
9264 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9265 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9266
9267 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * signals/signals.c: Include "server.h" in gdbserver build.
9270 (target_signal_from_name): Don't use STREQ.
9271 (_initialize_signals): Likewise. Don't include function in
9272 gdbserver build.
9273
9274 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9275
9276 * signals.c: Moved to...
9277 * signals/signals.c: Here.
9278 * Makefile (signals.o): Update.
9279
9280 2002-03-26 Jeff Law (law@redhat.com)
9281
9282 * somread.c (som_symtab_read): Remove some commented out code and
9283 updated related comments. Do not set the minimal symbol table to
9284 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9285 in a dynamic executable.
9286 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9287 where we are unable to find the minimal symbol for the given
9288 PC value.
9289
9290 2002-03-25 Jeff Law (law@redhat.com)
9291
9292 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9293
9294 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9295
9296 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9297
9298 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9299
9300 * command.h: Update copyright.
9301 (struct cmd_list_element): Replace definition with opaque
9302 declaration.
9303 (enum cmd_types): Document that it will eventually be moved to
9304 cli/cli-decode.h
9305 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9306 (MALLOCED_REPLACEMENT): Delete macro.
9307 * Makefile.in (cli_decode_h): Add $(command_h).
9308 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9309 * top.c: Include "cli/cli-decode.h".
9310 * completer.c: Include "cli/cli-decode.h".
9311 * maint.c: Include "cli/cli-decode.h".
9312 * cli/cli-decode.h: Include "command.h".
9313 (enum command_class): Delete.
9314 (enum cmd_types): Comment out.
9315 (enum cmd_auto_boolean): Delete.
9316 (enum var_types): Delete.
9317
9318 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9319
9320 * cli/cli-decode.c: Include "gdb_assert.h".
9321 (add_set_or_show_cmd): New static function.
9322 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9323 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9324 all fields, such as func, from the set command.
9325
9326 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9327
9328 * MAINTAINERS (sh-elf): Change warning flag to -w.
9329
9330 2002-03-23 Andrew Cagney <cagney@redhat.com>
9331
9332 * defs.h (error): Add printf format attribute.
9333 * thread-db.c (thread_from_lwp): Fix error format string.
9334 * stack.c (parse_frame_specification): Ditto.
9335 * cli/cli-decode.c (undef_cmd_error): Ditto.
9336 * scm-lang.c (scm_lookup_name): Ditto.
9337 * tracepoint.c (trace_error): Ditto.
9338 * remote-utils.c (usage): Ditto.
9339 * remote.c (compare_sections_command): Ditto.
9340 Fix PR gdb/328.
9341
9342 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9343
9344 * gdbtypes.c (append_composite_type_field): New function.
9345 (init_composite_type): New function.
9346 * gdbtypes.h (append_composite_type_field): Declare.
9347 (init_composite_type): Ditto.
9348
9349 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9350
9351 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9352 function.
9353 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9354 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9355 structure returning convention for SYSV ABI case, but not
9356 for GNU/Linux, FreeBSD, or NetBSD.
9357
9358 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * symtab.h (lookup_block_symbol): Add mangled_name argument
9361 to prototype.
9362
9363 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9364 with new mangled_name argument.
9365 * linespec.c (decode_line_1): Likewise.
9366 * valops (value_of_this): Likewise.
9367 * symtab.c (lookup_transparent_type): Likewise.
9368 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9369 (lookup_symbol): If we are given a mangled name, pass it down
9370 to lookup_symbol_aux.
9371 (lookup_block_symbol): If we are given a mangled name to check
9372 against, only return symbols which match it.
9373
9374 2002-03-22 Christopher Faylor <cgf@redhat.com>
9375
9376 * win32-nat.c (child_create_inferior): Check for proper shell to use
9377 here, in case the user changes it on the fly.
9378 (_initialize_inftarg): Remove shell path considerations.
9379
9380 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9381
9382 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9383 for gdbarch_max_register_raw_size and max_register_virtual_size.
9384 Adjust copyright year.
9385
9386 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9387
9388 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9389 in a function to cover the entire beginning of the function
9390 as well if it does not already.
9391
9392 2002-03-21 Tom Rix <trix@redhat.com>
9393
9394 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9395 (rs6000_ptrace64): Renamed from ptrace64.
9396
9397 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9398
9399 * gdbserver/remote-utils.c (remote_open): Don't call
9400 getprotobyname, we're all using TCP here so just use
9401 IPPROTO_TCP.
9402 * gdbserver/gdbreplay.c (remote_open): Ditto.
9403
9404 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9405
9406 * regcache.c (_initialize_regcache): No need to call
9407 build_regcache() at this time; it gets called whenever
9408 the gdbarch changes.
9409
9410 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9411
9412 * sparc-nat.c: Include sys/param.h where possible.
9413
9414 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9415
9416 Fix PR gdb/422.
9417 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9418 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9419 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9420 complex types.
9421 * stabsread.c (rs6000_builtin_type): Likewise.
9422 (read_sun_floating_type): Likewise.
9423
9424 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9425
9426 * stabsread.c (read_member_functions): Remove skip code for duplicate
9427 constructor/destructor methods. Use standard parsing for these
9428 methods and just do not chain them to the list of methods after
9429 parsing.
9430
9431 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9432
9433 * coffread.c: Remove redundant static declarations. Replace
9434 occurrences of `PTR' with `void *'.
9435 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9436 * top.h (quit_cover): Likewise.
9437 * defs.h (catch_errors): Likewise.
9438
9439 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9440
9441 * defs.h (XMALLOC): Define.
9442 * gdb-events.sh (XMALLOC): Delete macro.
9443 * gdb-events.c, gdb-events.h: Regenerate.
9444 * gdbarch.sh (XMALLOC): Delete macro.
9445 * gdbarch.c: Regenerate.
9446 * serial.c (XMALLOC): Delete macro.
9447 * ui-file.c (XMALLOC): Ditto.
9448 * ser-unix.h (XMALLOC): Ditto.
9449 * sh-tdep.c (XMALLOC): Ditto.
9450 * ui-out.c (XMALLOC): Ditto.
9451 * utils.c (XMALLOC): Ditto.
9452 * i386-tdep.c (XMALLOC): Ditto.
9453 * gdb-events.c (XMALLOC): Ditto.
9454 * d10v-tdep.c (XMALLOC): Ditto.
9455 * cli-out.c (XMALLOC): Ditto.
9456
9457 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9458 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9459 * ui-file.c, ui-out.c: Ditto.
9460
9461 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9462
9463 * command.h (struct cmd_list_element): Add field context.
9464 (set_cmd_context, get_cmd_context): Declare.
9465 * cli/cli-decode.h: Ditto.
9466 * cli/cli-decode.c (get_cmd_context): New function.
9467 (set_cmd_context): New function.
9468 (add_cmd): Initialize context.
9469 Part of fixing PR gdb/145 and PR gdb/146.
9470
9471 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9472
9473 * cli/cli-decode.c (cmd_type): New function.
9474 * command.h (cmd_type): Declare.
9475 * infrun.c (set_schedlock_func): Call function cmd_type.
9476 * kod.c (kod_set_os): Call cmd_type.
9477 * cris-tdep.c (cris_version_update): Use function cmd_type.
9478 (cris_mode_update, cris_abi_update): Ditto.
9479
9480 * command.h: (execute_cmd_post_hook): Declare.
9481 (execute_cmd_pre_hook): Declare.
9482 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9483 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9484 functions. Execute pre/post hook while ensuring that afterwords
9485 hook_in is cleared.
9486 * top.c (execute_command): Use execute_cmd_post_hook, and
9487 execute_cmd_pre_hook to execute pre/post commands.
9488 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9489 hook_stop_stub.
9490 (hook_stop_stub): Call execute_cmd_pre_hook.
9491
9492 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9493
9494 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9495 set'' and this leads to a core dump. Move xstrdup of
9496 operating_system to after check that it is not NULL.
9497
9498 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9499
9500 * kod.c (kod_set_os): Remove unnecessary check that
9501 ``command->type'' is set_cmd.
9502
9503 * valprint.c (set_input_radix): Use input_radix.
9504 (set_output_radix): Use output_radix.
9505 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9506 isn't reverted.
9507
9508 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9509
9510 * value.h (struct value): Delete field ``substring_addr''. Change
9511 aligner fields to force_doublest_align, force_longest_align,
9512 force_core_addr_align and force_pointer_aligh.
9513
9514 * value.h (struct value): Fix typo in above change.
9515
9516 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9517
9518 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9519 to fix internal_error from ``maintenance print architecture''.
9520
9521 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9522
9523 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9524 for gcc versions after gcc-2.8.1.
9525
9526 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9527
9528 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9529 for method resolution. Restore adjustment of ``this'' pointer after
9530 calling value_struct_elt, which was accidentally removed during the
9531 HP merge.
9532
9533 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9534
9535 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9536 value_of_register.
9537 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9538 get_saved_register.
9539 * value.h (value_of_register): Update.
9540
9541 2002-03-14 Richard Henderson <rth@redhat.com>
9542
9543 * configure.in: Detect declaration for canonicalize_file_name.
9544 * utils.c (canonicalize_file_name): Declare, if needed.
9545 (gdb_realpath): Prefer realpath if available and usable.
9546 * config.in, configure: Rebuild.
9547
9548 2002-03-14 Richard Henderson <rth@redhat.com>
9549
9550 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9551 a constant array bound.
9552
9553 * MAINTAINERS: Add myself to write-after-approval.
9554
9555 2002-03-14 Michael Snyder <msnyder@redhat.com>
9556
9557 * symfile.c (syms_from_objfile): Return immediately if no syms.
9558 (symbol_file_add): Return immediately if no syms.
9559 (find_sym_fns): Return immediately if no syms.
9560
9561 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9562
9563 * gdbserver/remote-util.c (remote_open): Print remote-side's
9564 IP address when remote debugging over the network.
9565
9566 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9567
9568 * config/sparc/fbsd.mh: Fix copyright.
9569 * config/sparc/fbsd.mt: Likewise.
9570
9571 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9572
9573 * MAINTAINERS: Fix typo in name of gdb warnings option.
9574 (x86-64): Fix formating so that this can be parsed by awk.
9575
9576 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9577
9578 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9579 * defs.h: Include "gdb/signals.h".
9580 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9581
9582 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9583
9584 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9585 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9586 from x86-64-tdep.h
9587
9588 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9589 Don Howard <dhoward@redhat.com>
9590
9591 * mips-tdep.c (ST0_FR): Define.
9592 (mips2_fp_compat): New function, temporarily disabled.
9593 (mips_read_fp_register_single): New function.
9594 (mips_read_fp_register_double): New function.
9595 (mips_print_register): Use them.
9596 (do_fp_register_row): Likewise.
9597
9598 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9599
9600 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9601 approval''.
9602
9603 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9604
9605 * stabsread.c (read_member_functions): Fix is_stub test for
9606 static member functions, improve comment.
9607
9608 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9609
9610 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9611 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9612 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9613 commands that set boolean values.
9614 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9615 (arm_rdi_resume): Always initialize PC.
9616 (arm_rdi_open): Don't use rslt as a boolean.
9617 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9618 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9619 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9620 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9621
9622 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9623
9624 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9625 * configure: Rebuilt.
9626
9627 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9628
9629 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9630 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9631
9632 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9633
9634 * cli/cli-decode.c (set_cmd_completer): New function.
9635 * command.h (set_cmd_completer): Declare.
9636 * cli/cli-decode.h (set_cmd_completer): Ditto.
9637
9638 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9639 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9640 * win32-nat.c (_initialize_inftarg): Ditto.
9641 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9642 * proc-api.c (_initialize_proc_api): Ditto.
9643 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9644 * source.c (_initialize_source): Ditto.
9645 * exec.c (_initialize_exec): Ditto.
9646 * solib.c (_initialize_solib): Ditto.
9647 * top.c (init_main): Ditto.
9648 * tracepoint.c (_initialize_tracepoint): Ditto.
9649 * symfile.c (_initialize_symfile): Ditto.
9650 * printcmd.c (_initialize_printcmd): Ditto.
9651 * infcmd.c (_initialize_infcmd): Ditto.
9652 * corefile.c (_initialize_core): Ditto.
9653
9654 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9655
9656 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9657
9658 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9659
9660 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9661
9662 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9663
9664 * NEWS: Update headings, 5.2 has branched.
9665
9666 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9669 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9670 (register_addr, REGISTER_RAW_SIZE): Likewise.
9671 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9672 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9673
9674 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9675
9676 * MAINTAINERS (x86-64): Add myself.
9677 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9678 changed value_ptr -> struct value *
9679
9680 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9681
9682 * configure.host (sparc64-*-freebsd): Add.
9683 * configure.tgt: Likewise.
9684 * config/sparc/fbsd.mh: New file.
9685 * config/sparc/fbsd.mt: Likewise.
9686 * config/sparc/nm-fbsd.h: Likewise.
9687 * config/sparc/tm-fbsd.h: Likewise.
9688
9689 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9692 regformats/reg-s390x.dat.
9693
9694 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9695
9696 * utils.c: Add FIXME explaining true/false problem.
9697
9698 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9699
9700 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9701
9702 2002-02-28 Michael Chastain <mec@shout.net>
9703
9704 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9705
9706 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * gdbserver/linux-s390-low.c: New file.
9709 * regformats/reg-s390.dat: New file.
9710 * regformats/reg-s390x.dat: New file.
9711 * gdbserver/configure.srv: Add S/390.
9712 * gdbserver/Makefile.in: Add S/390.
9713 * configure.tgt: Enable gdbserver for S/390.
9714
9715 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9716
9717 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9718 first line of the doc string for "info dos", except at the end of
9719 the sentence, since the short help stops at the first period.
9720
9721 2002-02-28 Jason Merrill <jason@redhat.com>
9722
9723 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9724
9725 2002-02-27 Fred Fish <fnf@redhat.com>
9726
9727 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9728 comment (dumy -> dummy).
9729
9730 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9731
9732 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9733
9734 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9735
9736 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9737
9738 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * gdbserver/acconfig.h: New file.
9741 * gdbserver/i387-fp.c: New file.
9742 * gdbserver/i387-fp.h: New file.
9743 * gdbserver/linux-x86-64.c: New file.
9744 * regformats/reg-x86-64.dat: New file.
9745 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9746 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9747 * gdbserver/configure.in: Add support for regsets.
9748 * gdbserver/config.in: Regenerate.
9749 * gdbserver/configure: Regenerate.
9750 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9751 * gdbserver/linux-low.h: New file.
9752 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9753 for regsets.
9754 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9755 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9756 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9757 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9758 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9759 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9760 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9761 "i387-fp.h". Add PTRACE_GETREGS and friends.
9762 * gdbserver/regcache.c (supply_register): New function.
9763 (supply_register_by_name): New function.
9764 (collect_register): New function.
9765 (collect_register_by_name): New function.
9766
9767 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9768
9769 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9770 (config.status): Add configure.srv dependency.
9771 (server_h): Add config.h dependency.
9772
9773 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9776 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9777 * gdbserver/configure.srv: Change i386-*-linux* to use
9778 reg-i386-linux.o.
9779
9780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9781
9782 * x86-64-tdep.c: Re-indent. Update copyright date.
9783
9784 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9785
9786 From Michal Ludvig <mludvig@suse.cz>:
9787 * x86-64-tdep.c (value.h): Delete.
9788 (gdb_assert.h): Include.
9789 (x86_64_register_convert_to_virtual,
9790 x86_64_register_convert_to_raw ): Add check which lets only
9791 floating-point values to be converted.
9792 (value_push): Delete.
9793 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9794 (i386_gdbarch_init): Number of register_bytes fixed.
9795
9796 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9797
9798 * MAINTAINERS: Add x86-64 target.
9799
9800 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9801
9802 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9803 * osfsolib.c (solib_map_sections): Ditto.
9804 * irix5-nat.c (solib_map_sections): Ditto.
9805 * corelow.c (gdb_check_format): Ditto.
9806 * symfile.c (symfile_bfd_open): Ditto.
9807 * solib.c (solib_map_sections): Ditto.
9808 Fix PR gdb/354.
9809
9810 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9811
9812 * remote.c (_initialize_remote): By default, disable ``e'' and
9813 ``E'' step out-of-range packets.
9814
9815 2002-02-26 Andreas Schwab <schwab@suse.de>
9816
9817 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9818 m68k_linux_frame_saved_pc.
9819 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9820 in_sigtramp.
9821 (SIGCONTEXT_PC_OFFSET): Remove.
9822 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9823 m68k_linux_sigtramp_saved_pc): New functions.
9824 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9825 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9826 (UCONTEXT_PC_OFFSET): Define.
9827 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9828 non-RT and RT signal trampolines.
9829
9830 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9831
9832 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9833 (TARGET_NBPG, STACK_END_ADDR): Delete
9834 (VARIABLES_INSIDE_BLOCK): Delete.
9835
9836 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9837
9838 * utils.c (perror_with_name): Make string parameter constant.
9839 (print_sys_errmsg): Ditto.
9840 (query): Ditto.
9841 * defs.h (perror_with_name): Update.
9842 (print_sys_errmsg): Update.
9843 (query): Update.
9844
9845 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9846
9847 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9848 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9849
9850 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9851
9852 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9853 if it already matches the current architecture from the exec file.
9854 Include arch-utils.h for gdbarch_info_init prototype.
9855 * Makefile.in (rs6000-nat.o): Update dependencies.
9856
9857 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9858
9859 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9860 list of exported variables.
9861
9862 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9863
9864 * gdbserver/configure.srv: New file.
9865 * gdbserver/configure.in: Use configure.srv instead
9866 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9867 from it.
9868 * gdbserver/configure: Regenerated.
9869 * gdbserver/terminal.h: New file.
9870 * gdbserver/Makefile.in: Update for configure changes. Remove
9871 more unneeded include paths.
9872
9873 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9874
9875 From wiz at danbala:
9876 * config/sparc/tm-sp64.h: Fix grammar and typos.
9877 Fix PR gdb/287.
9878
9879 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9880
9881 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9882 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9883 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9884 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9885 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9886 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9887 * s390-tdep.c: Ditto.
9888 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9889 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9890 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9891 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9892 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9893 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9894 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9895 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9896 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9897 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9898 Fix PR gdb/378.
9899
9900 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9901
9902 * lin-thread.c: Delete file.
9903 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9904 to gdb_proc_service.h.
9905 * configure: Re-generate.
9906
9907 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9908 * serial.c (serial_open): Delete check for "ocd".
9909 Fix PR gdb/349.
9910
9911 * Makefile.in (linux-thread.o): Delete target.
9912 * linux-thread.c: Delete file.
9913
9914 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9915 renamed SH files to be consistent.
9916
9917 * symtab.c (sort_search_symbols): Use xfree.
9918
9919 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9920
9921 * arm-linux-tdep.c (arm_linux_init_abi): Register
9922 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9923 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9924 definition with undef, since we don't want the sysvr4 definition.
9925 (SKIP_TRAMPOLINE_CODE): Likewise.
9926
9927 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9928
9929 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9930
9931 * configure.in: (AC_CHECK_FUNCS) Added test for
9932 canonicalize_file_name Regenerated.
9933 * config.in, configure: Regenerated.
9934 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9935 defined use canonicalize_file_name.
9936
9937 2002-02-23 Michael Chastain <mec@shout.net>
9938
9939 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9940
9941 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9942
9943 * README: Remove references to cygnus.com.
9944 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9945 dot com'' form. Remove references to cygnus.com and sourceware.
9946
9947 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9948
9949 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9950 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9951 1003.1-2001 no longer allows "head -1".
9952 * gdb/Makefile.in (version.c): Likewise.
9953 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9954 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9955 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9956
9957 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9958
9959 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9960 * command.h (cmd_cfunc_eq): Declare.
9961 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9962
9963 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9964 ``struct cmd_list_element *''.
9965 * cli/cli-cmds.c (is_complete_command): Update. Use
9966 cmd_cfunc_eq.
9967 * top.c (execute_command): Pass the command to
9968 is_complete_command.
9969 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9970
9971 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9972
9973 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9974 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9975 architecture defines.
9976 * s390-tdep.c (s390_gdbarch_init): Likewise.
9977
9978 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9981 (arm_linux_push_arguments): Likewise.
9982 (arm_linux_init_abi): Register them. Also register linux-specific
9983 call_dummy_words.
9984 (find_minsym_and_objfile): Use strcmp, not STREQ.
9985 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9986 (arm_linux_call_dummy_words): Delete declaration.
9987 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9988 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9989 declarations.
9990 (LOWEST_PC): Delete.
9991
9992 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9993
9994 * maint.c (print_section_info): Do not prepend `0x' to filepos
9995 output, it will be handled by local_hex_string_custom.
9996
9997 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9998
9999 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10000 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10001 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10002
10003 2002-02-22 Jim Blandy <jimb@redhat.com>
10004
10005 Indicate that the bcache functions don't change the strings
10006 they're passed.
10007 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10008 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10009
10010 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10011
10012 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10013
10014 2002-02-21 Christopher Faylor <cgf@redhat.com>
10015
10016 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10017 find the complete path to a loaded DLL.
10018
10019 2002-02-21 Fred Fish <fnf@redhat.com>
10020
10021 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10022 that marks the end of the range of a function, enter a line number
10023 entry that has a line number of zero and a PC offset that matches
10024 the end of the function. This starts a range of PC's for which no
10025 line number information is known.
10026 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10027 PC's for which no line number info is found (line number is zero)
10028 then we didn't find any valid line information.
10029 * symtab.h: Document use of zero line number entry.
10030
10031 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10032
10033 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10034 (have_ptrace_getvrregs): Define for run time checks.
10035 (gdb_vrregset_t): New type for Altivec register handling.
10036 (fetch_register, store_register): Fetch/store altivec register
10037 when needed.
10038 (fetch_altivec_register, store_altivec_register): New functions.
10039 (supply_vrregset, fill_vrregset): New functions.
10040 (fetch_altivec_registers, store_altivec_registers): New functions.
10041 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10042 registers as well.
10043
10044 2002-02-21 Jiri Smid <smid@suse.cz>
10045
10046 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10047
10048 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10049
10050 * Makefile.in (armnbsd-nat.o): Update dependencies.
10051 * armnbsd-nat.c (supply_gregset): New function. Common code to
10052 supply the integer register set.
10053 (supply_fparegset): New function. Similar for FPA registers.
10054 (fetch_regs, fetch_fp_regs): Use them.
10055 (fetch_core_registers): Likewise.
10056 (fetch_elfcore_registers): New function.
10057 (arm_netbsd_elfcore_fns): New core-file type specification.
10058 (_initialize_arm_netbsd_nat): Register it.
10059
10060 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10061
10062 * armnbsd-nat.c: Include gdbcore.h.
10063 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10064 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10065 'void' to declaration, to shut up ARI.
10066 (fetch_core_registers): Make static. Rewrite using supply_register.
10067 (arm_netbsd_core_fns): New core-file type specification.
10068 (_initialize_arm_netbsd_nat): New function.
10069
10070 2002-02-21 Christopher Faylor <cgf@redhat.com>
10071
10072 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10073 value.
10074
10075 2002-02-20 Christopher Faylor <cgf@redhat.com>
10076
10077 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10078 fails.
10079
10080 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * jv-exp.y (parse_number): Change type of implicit longs
10083 to builtin_type_uint64.
10084
10085 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10086
10087 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10088 to be an integer instead of a `union wait'.
10089
10090 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * mips-linux-nat.c: Call the operating system GNU/Linux.
10093 * mips-linux-tdep.c: Likewise.
10094 * mips-tdep.c: Likewise.
10095
10096 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10097
10098 Fix PR gdb/265.
10099 * jv-exp.y (parse_number): Handle 64-bit integers.
10100
10101 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10104 AC_STDC_HEADERS to AC_HEADER_STDC.
10105 * gdbserver/configure: Regenerated.
10106
10107 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10108
10109 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10110 is defined.
10111 * sparc-tdep.c (get_longjmp_target): Likewise.
10112
10113 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10114
10115 * News: Add news about ARM and Multi-arch. Mention the new target
10116 arm*-*-netbsd*.
10117
10118 2002-02-19 Jim Blandy <jimb@redhat.com>
10119
10120 * stabsread.c (error_type_complaint): Improve error message.
10121
10122 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10123
10124 * gdbserver/README: Update documentation.
10125 * gdbserver/configure.in: Update configury to match documentation.
10126 * gdbserver/Makefile.in: Likewise.
10127 * gdbserver/configure: Regenerated.
10128 * gdbserver/aclocal.m4: New file, generated by aclocal.
10129 * gdbserver/config.in: New file, generated by autoheader.
10130
10131 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10132
10133 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10134 armnbsd-nat.c.
10135
10136 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10137
10138 * arm-tdep.h (enum arm_float_model): New enum.
10139 (struct gdbarch_tdep): Add fp_model.
10140 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10141 up floating-point conversions until we know the floating-point model
10142 in use by the inferior. Don't complain about being unable to
10143 determine the ABI of the inferior when we don't have one.
10144 (arm_extract_return_value): Support different floating-point models.
10145 (arm_store_return_value): Likewise.
10146 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10147 ARM_FLOAT_SOFT.
10148 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10149
10150 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10151
10152 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10153 of ``current_gdbarch''.
10154
10155 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * armnbsd-nat.c : ANSIfy all function declarations.
10158 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10159 (fetch_inferior_registers): Re-implement in terms of above.
10160 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10161 (store_inferior_registers): Re-implement in terms of above.
10162
10163 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10164
10165 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10166 kernel.
10167 * arm-linux-tdep.c: Likewise.
10168 * config/arm/tm-linux.h: Likewise.
10169
10170 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10171
10172 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10173 * config/arm/nbsd.mt (TM_FILE): Delete.
10174 * config/arm/tm-nbsd.h: Delete.
10175
10176 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10177
10178 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10179 Initialize CALL_DUMMY_LENGTH.
10180
10181 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10182
10183 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10184 function.
10185 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10186 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10187 defines one thing and that is incorrect for this port.
10188 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10189
10190 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10191
10192 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10193
10194 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10195
10196 * win32-nat.c (display_selector): New function. Displays information
10197 about the information returned by GetThreadSelectorEntry API function.
10198 (display_selectors): New function. Displays the infomation of
10199 the selector given as argument, or of CS, DS ans FS selectors
10200 if no argument is given.
10201 ( _initialize_inftarg): Add "w32" as info prefix command.
10202 Add "info w32 selector" as command calling display_selectors.
10203
10204 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10205
10206 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10207 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10208 if not defined.
10209
10210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10211
10212 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10213
10214 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10215
10216 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10217 (arm_fix_call_dummy): Call it.
10218 (arm_call_dummy_breakpoint_offset): Delete.
10219 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10220 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10221
10222 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10223
10224 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10225 Default to func_frame_chain_valid.
10226 * gdbarch.h, gdbarch.c: Re-generate.
10227 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10228
10229 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10230
10231 * ppc-linux-nat.c: Update copyright.
10232 (fetch_register, store_register): Add tid parameter, don't compute
10233 tid here.
10234 (fetch_ppc_registers, store_ppc_registers): Add tid
10235 parameter. Pass it along to callees.
10236 (fetch_inferior_registers, store_inferior_registers): Compute tid
10237 here, and pass it to calleed functions.
10238 (fill_gregset, supply_fpregset): Clean up formatting.
10239
10240 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10241
10242 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10243 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10244
10245 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10246
10247 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10248 * gdbarch.c gdbarch.h: Regenerate.
10249 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10250 function.
10251 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10252 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10253 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10254
10255 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10256 * arm-tdep.c (arm_get_longjmp_target): New function.
10257 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10258 this to a positive value register arm_get_longjmp_target as the
10259 longjmp handler.
10260 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10261 (arm_linux_init_abi): Set up longjmp description in tdep.
10262 * armnbsd-nat.c (get_longjmp_target): Delete.
10263 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10264 description in tdep.
10265 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10266 (get_longjmp_target): Delete declaration.
10267 (GET_LONGJMP_TARGET): Delete.
10268 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10269 (GET_LONGJMP_TARGET): Delete.
10270
10271 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10272
10273 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10274 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10275 of ``current_gdbarch''.
10276
10277 2002-02-17 Tom Tromey <tromey@redhat.com>
10278
10279 * cli/cli-cmds.c (compare_strings): New function.
10280 (complete_command): Only print each unique item once.
10281 * completer.h (complete_line): Declare.
10282 * completer.c (complete_line): New function.
10283 (line_completion_function): Use it.
10284
10285 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10286
10287 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10288 * gdbarch.h, gdbarch.c: Re-generate.
10289
10290 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10293
10294 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10295
10296 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10297 * valops.c (value_arg_coerce): Don't take the address of a reference
10298 to convert an argument to a reference.
10299
10300 2002-02-15 Christopher Faylor <cgf@redhat.com>
10301
10302 * win32-nat.c (get_image_name): New function.
10303 (handle_load_dll): Use get_image_name function.
10304 (get_child_debug_event): Avoid registering debug events until possibly
10305 execed process is started.
10306 (child_create_inferior): Allow invocation via shell so that command
10307 line redirection, etc. works ok.
10308 (_initialize_inftarg): Add new command: "set shell" to control whether
10309 a shell is used to start a process.
10310
10311 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10312
10313 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10314 instead of find_register_by_number.
10315 (cannot_store_register): Likewise.
10316
10317 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10318
10319 * dwarf2read.c: Replace fprintf (stderr, ...) by
10320 fprintf_unfiltered (gdb_stderr, ...).
10321
10322 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10323
10324 * gdbserver/gdbserver.1: Document --attach.
10325
10326 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10327
10328 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10329 descriptions.
10330 * arm-tdep.c (arm_default_arm_le_breakpoint)
10331 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10332 (arm_default_thumb_be_breakpoint): New. Initialize them from
10333 traditional breakpoint defines.
10334 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10335 (arm_gdbarch_init): Initialize new breakpoint variables.
10336 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10337 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10338 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10339 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10340 code out to ...
10341 (arm_netbsd_init_abi_common): ... here; new function.
10342 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10343 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10344 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10345 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10346
10347 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10348
10349 * arm-tdep.h (enum arm_abi): New enum.
10350 (struct gdbarch_tdep): New structure.
10351 (LOWEST_PC): Provide a default.
10352 (arm_gdbarch_register_os_abi): Declare new function.
10353 * arm-tdep.c (arm_abi_names): New array.
10354 (process_note_abi_tag_sections): New function.
10355 (get_elfosabi): New function.
10356 (arm_gdbarch_register_os_abi): New function.
10357 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10358 support for that ABI has been built in, then call the appropriate
10359 configuration routine. Use gdbarch_num_regs() to get the number
10360 of registers.
10361 (arm_dump_tdep): New function.
10362 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10363 place-holder functions.
10364 (_initialize_arm_tdep): Register them.
10365 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10366
10367 * armnbsd-tdep.c: New file.
10368 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10369 * config/arm/nbsd.mt (TDEPFILES): Add it.
10370 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10371
10372 * armnbsd-nat.c: Include regcache.h.
10373 * Makefile.in (armnbsd-nat.o): Update dependency list.
10374
10375 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10376
10377 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10378
10379 * gdbserver/Makefile.in: Fix typos in target rules.
10380
10381 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10382
10383 Fix part of PR gdb/267.
10384 * linespec.c (find_methods): Handle constructors specially for now.
10385
10386 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10387
10388 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10389 handling.
10390 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10391 standard_coerce_float_to_double().
10392
10393 2002-02-14 Christopher Faylor <cgf@redhat.com>
10394
10395 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10396 GDBINIT_FILENAME.
10397
10398 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10399
10400 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10401 find_variant_by_name, because it confuses the multiarch
10402 framework. Return NULL if there isn't an architecture with the
10403 user supplied name, instead of forcing a different one without
10404 recording the change with the multiarch machinery.
10405 (find_variant_by_name): Delete.
10406
10407 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10408
10409 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10410 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10411
10412 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10413
10414 * stack.c (print_frame_info_base): When calling
10415 print_frame_info_listing_hook, set current_source_symtab.
10416
10417 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10418
10419 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10420 and remove unused $(INCLUDE_DIR).
10421 Add regcache.c to OBS.
10422 Add generated register protocol files to clean target.
10423 Update dependencies for new objects, obsolete old target code.
10424
10425 * gdbserver/linux-low.c: Remove all platform-specific code to
10426 new files. Remove various dead code. Update to use regcache
10427 functionality.
10428 * gdbserver/remote-utils.c (fromhex): Add return statement
10429 to quiet warning.
10430 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10431 constant.
10432 (input_interrupt): Add integer parameter to match prototype
10433 of a signal handler.
10434 (outreg): Use register_data ().
10435 (prepare_resume_reply): Use gdbserver_expedite_regs.
10436 * gdbserver/server.c (main): Dynamically allocate own_buf because
10437 PBUFSIZ is no longer constant. Use registers_to_string () and
10438 registers_from_string ().
10439 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10440 for error (), fatal (), and warning (). Update definition of
10441 PBUFSIZ to use regcache functionality. Add include guard.
10442 * gdbserver/utils.c (fatal): Add missing ``const''.
10443 (warning): New function.
10444
10445 * regformats/regdat.sh: Include "regcache.h" in generated files.
10446 Provide init_registers () function.
10447 * regformats/regdef.h: Add prototype for set_register_cache ().
10448 Add include guard.
10449
10450 * gdbserver/linux-arm-low.c: New file.
10451 * gdbserver/linux-i386-low.c: New file.
10452 * gdbserver/linux-ia64-low.c: New file.
10453 * gdbserver/linux-m68k-low.c: New file.
10454 * gdbserver/linux-mips-low.c: New file.
10455 * gdbserver/linux-ppc-low.c: New file.
10456 * gdbserver/linux-sh-low.c: New file.
10457
10458 * gdbserver/regcache.c: New file.
10459 * gdbserver/regcache.h: New file.
10460
10461 * gdbserver/low-linux.c: Removed obsolete file.
10462
10463 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10466 * config/i386/linux.mt: Likewise.
10467 * config/ia64/linux.mt: Likewise.
10468 * config/m68k/linux.mh: Likewise.
10469 * config/powerpc/linux.mh: Likewise.
10470 * config/mips/linux.mt: Likewise.
10471
10472 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10473
10474 * config/i386/i386lynx.mh: Mark gdbserver variables
10475 as (currently) obsolete for this target.
10476 * config/i386/nbsd.mt: Likewise.
10477 * config/i386/nbsdelf.mt: Likewise.
10478 * config/m32r/m32r.mt: Likewise.
10479 * config/m68k/m68klynx.mh: Likewise.
10480 * config/m68k/nbsd.mt: Likewise.
10481 * config/m68k/sun3os4.mh: Likewise.
10482 * config/mips/vr5000.mt: Likewise.
10483 * config/ns32k/nbsd.mt: Likewise.
10484 * config/pa/hppabsd.mh: Likewise.
10485 * config/pa/hppaosf.mh: Likewise.
10486 * config/powerpc/nbsd.mt: Likewise.
10487 * config/rs6000/rs6000lynx.mh: Likewise.
10488 * config/s390/s390.mt: Likewise.
10489 * config/s390/s390x.mt: Likewise.
10490 * config/sparc/sparclynx.mh: Likewise.
10491 * config/sparc/sun4os4.mh: Likewise.
10492 * config/i386/x86-64linux.mt: Likewise.
10493 * config/sparc/linux.mh: Likewise.
10494
10495 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * configure.tgt: Configure gdbserver only for known working
10498 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10499 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10500 SUBDIRS if it is configured. Update comment for ${nativefile}.
10501 * configure: Regenerated.
10502
10503 2002-02-13 Michael Snyder <msnyder@redhat.com>
10504
10505 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10506
10507 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10508 (default_gcore_mach): Just return 0, work around a problem in bfd.
10509 (default_gcore_target): OK to return NULL if exec_bfd is null.
10510 (make_mem_sec): Use a cast, avoid a warning.
10511
10512 * procfs.c (find_memory_regions_callback): Use a cast instead of
10513 calling host_pointer_to_address (which complains if
10514 sizeof (host pointer) != sizeof (target pointer)).
10515 (procfs_make_note_section): Avoid overflow in psargs string.
10516
10517 * procfs.c (procfs_make_note_section): Make the default
10518 implementation return an error.
10519
10520 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10521
10522 * procfs.c (procfs_make_note_section): Provide a default definition
10523 (for alpha-dec-osf4.0f). Fix typos.
10524
10525 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10526
10527 * linux-proc.c: Add include of regcache.h.
10528 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10529
10530 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10531
10532 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10533 * memattr.c (create_mem_region): Disallow useless empty region.
10534 Regions are half-open intervals, so allow [A..B) [B..C) as
10535 non-overlapping.
10536
10537 2002-02-13 Michael Chastain <mec@shout.net>
10538
10539 * defs.h: Kill CONST_PTR.
10540 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10541 * c-lang.c (c_builtin_types): Likewise.
10542 * ch-lang.c (ch_builtin_types): Likewise.
10543 * f-lang.c (f_builtin_types): Likewise.
10544 * language.c (unknown_builtin_types): Likewise.
10545 * m2-lang.c (m2_builtin_types): Likewise.
10546 * p-lang.c (pascal_builtin_types): Likewise.
10547 * scm-lang.c (c_builtin_types): Likewise.
10548
10549 2002-02-13 Keith Seitz <keiths@redhat.com>
10550
10551 * arm-tdep.h (arm_get_next_pc): Add declaration.
10552
10553 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10554
10555 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10556 with other related struct-returning functions.
10557 (arm_extract_struct_value_address): New function.
10558 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10559 initialize float_format, double_format and long_double_format as
10560 appropriate to the endianness of the target.
10561 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10562 (arm_use_struct_convention): Delete declaration.
10563 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10564
10565 2002-02-13 Keith Seitz <keiths@redhat.com>
10566
10567 * defs.h (core_addr_to_string_nz): New function.
10568
10569 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10570
10571 Apply missing bits of 2002-01-15 patch.
10572 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10573 (fill_fpregset): Use i387_fill_fsave.
10574
10575 2002-02-12 Keith Seitz <keiths@redhat.com>
10576
10577 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10578 (core_addr_to_string_nz): New function.
10579
10580 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10581
10582 * arm-linux-nat.c: Really include arm-tdep.h.
10583 * config/arm/tm-linux.h (struct type, struct value): Declare.
10584
10585 2002-02-11 Michael Snyder <msnyder@redhat.com>
10586
10587 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10588 (gcore section): Ifdef for Solaris and Unixware only.
10589 (procfs_do_thread_registers): Unixware needs one lwpstatus
10590 per thread (not one prstatus or pstatus).
10591 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10592 not over all gdb threads. For unixware, call elfcore_write_pstatus
10593 once before iterating over threads.
10594
10595 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10596
10597 * arm-tdep.h: New file.
10598 * arm-tdep.c: Include arm-tdep.h.
10599 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10600 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10601 (arm_print_float_info, arm_register_type, convert_to_extended)
10602 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10603 (arm_extract_return_value, arm_register_name): Make static.
10604 (arm_software_single_step): Similarly. Fix types in declaration.
10605 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10606 (arm_store_return_value, arm_store_struct_return): New functions.
10607 (arm_gdbarch_init): Register the above functions. Also register
10608 call_dummy_start_offset, sizeof_call_dummy_words,
10609 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10610 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10611 max_register_virtual_size, register_size. Set up
10612 prologue_cache.saved_regs here, rather than ...
10613 (_initialize_arm_tdep): ... here.
10614 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10615 declarations.
10616 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10617 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10618 (arm_print_float_info, arm_register_type, convert_to_extended)
10619 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10620 (arm_extract_return_value, arm_register_name): Delete declarations.
10621 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10622 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10623 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10624 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10625 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10626 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10627 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10628 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10629 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10630 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10631 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10632 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10633 interface.
10634 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10635 * remote-rdi.c remote-rdp.c: Likewise.
10636 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10637 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10638 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10639 definition.
10640
10641 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10642 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10643 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10644 from non-ARM_ prefixed definitions.
10645 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10646 all uses of above.
10647 * remote-rdi.c remote-rdp.c: Likewise.
10648 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10649
10650 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10651
10652 * arm-tdep.c (arm_frameless_function_invocation)
10653 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10654 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10655 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10656 (arm_pop_frame, arm_get_next_pc): Make static.
10657 (arm_gdbarch_init): Register above in gdbarch structure.
10658 (arm_read_fp): Renamed from arm_target_read_fp.
10659 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10660 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10661 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10662 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10663 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10664 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10665 (arm_pc_is_thumb_dummy): Delete declarations.
10666 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10667 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10668 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10669 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10670
10671 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * symtab.c (compare_search_syms): New function.
10674 (sort_search_symbols): New function.
10675 (search_symbols): Sort symbols after searching rather than
10676 before.
10677
10678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10679
10680 * NEWS: Linux -> GNU/Linux.
10681
10682 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10683
10684 * gdbarch.sh: For for level one methods, disallow a definition
10685 when partially multi-arched. Add comments explaining rationale.
10686 * gdbarch.h: Re-generate.
10687
10688 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10689
10690 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10691 multi-arch partial.
10692
10693 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10694
10695 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10696 field. Use diff -u.
10697 * gdbarch.c: Re-generate.
10698
10699 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10700
10701 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10702 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10703 partial.
10704
10705 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10706
10707 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10708 multi-arch partial.
10709 (PUSH_ARGUMENTS): Switch to using predefault.
10710 * gdbarch.c: Regenerate.
10711
10712 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10713
10714 * valops.c (PUSH_ARGUMENTS): Delete definition.
10715 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10716 partial. Default to default_push_arguments.
10717 * gdbarch.h, gdbarch.c: Regenerate.
10718
10719 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10720
10721 * defs.h (throw_exception): Rename return_to_top_level. Update
10722 comments.
10723 * utils.c (error_stream, internal_verror, quit): Ditto.
10724 * top.c (throw_exception, catcher): Ditto.
10725 * sparclet-rom.c (sparclet_load): Ditto.
10726 * remote.c (interrupt_query, minitelnet): Ditto.
10727 * remote-sds.c (interrupt_query): Ditto.
10728 * remote-mips.c (mips_error, mips_kill): Ditto.
10729 * ocd.c (interrupt_query): Ditto.
10730 * monitor.c (monitor_interrupt_query): Ditto.
10731 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10732 * target.h: Update comment.
10733
10734 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10735
10736 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10737
10738 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10739 default_double_format.
10740 * gdbarch.h, gdbarch.c: Re-generate.
10741 * findvar.c (floatformat_unknown): Delete variable definition.
10742 * doublest.h (floatformat_unknown): Delete variable declaration.
10743
10744 2002-02-09 Jim Blandy <jimb@redhat.com>
10745
10746 * stabsread.c (read_type): Add code to parse Sun's syntax for
10747 prototyped function types.
10748
10749 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10750
10751 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10752 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10753
10754 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10755
10756 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10757 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10758 now _initialize_xcoffsolib gets called again and overrides the
10759 commands from solib.c in a native configuration.
10760
10761 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10762
10763 * doublest.c (store_typed_floating): Don't try to return a value.
10764 Fixes PR gdb/290.
10765
10766 2002-02-08 Jim Blandy <jimb@redhat.com>
10767
10768 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10769 is prototyped and has no arguments, print its argument list as
10770 `(void)'.
10771
10772 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10773
10774 * MAINTAINERS (write-after-approval): Add myself.
10775 (paper-trail): I've escaped!
10776
10777 2002-02-08 Christopher Faylor <cgf@redhat.com>
10778
10779 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10780 changes.
10781 (_initialize_check_for_gdb_ini): Ditto.
10782
10783 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10784
10785 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10786 xaprintf -> xasprintf.
10787
10788 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10789
10790 * win32-nat.c: Remove use of printf and sprintf functions.
10791
10792 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10793
10794 * arm-tdep.c (arm_frame_chain_valid): Make static.
10795 (arm_push_arguments): Likewise.
10796 (arm_gdbarch_init): New function.
10797 (_initialize_arm_tdep): Call it.
10798 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10799 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10800 (FRAME_CHAIN_VALID): Delete.
10801 (arm_frame_chain_valid): Delete declaration.
10802 (PUSH_ARGUMENTS): Delete.
10803 (arm_push_arguments): Delete declaration.
10804 (CALL_DUMMY_P): Delete.
10805
10806 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10807 Corinna Vinschen <vinschen@redhat.com>
10808
10809 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10810 on builtin float types.
10811
10812 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10813
10814 * utils.c: Include <curses.h> before "bfd.h".
10815 * tui/tui-hooks.c: Likewise.
10816 * tui/tui.c: Likewise.
10817 * tui/tuiCommand.c: Likewise.
10818 * tui/tuiData.c: Likewise.
10819 * tui/tuiDataWin.c: Likewise.
10820 * tui/tuiDisassem.c: Likewise.
10821 * tui/tuiGeneralWin.c: Likewise.
10822 * tui/tuiIO.c: Likewise.
10823 * tui/tuiLayout.c: Likewise.
10824 * tui/tuiRegs.c: Likewise.
10825 * tui/tuiSource.c: Likewise.
10826 * tui/tuiSourceWin.c: Likewise.
10827 * tui/tuiStack.c: Likewise.
10828 * tui/tuiWin.c: Likewise.
10829
10830 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10831
10832 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10833 to include space for pseudoregs as well. Update loops accordingly.
10834 (sh_fp_frame_init_saved_regs): Ditto.
10835 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10836
10837 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10838
10839 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10840 Add Richard Earnshaw to Arm maintainers.
10841
10842 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10843
10844 * defs.h (warning_begin): Delete declaration.
10845
10846 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10847 Delete macro.
10848
10849 2002-02-07 Michael Snyder <msnyder@redhat.com>
10850
10851 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10852 Logic bug, remove misplaced else.
10853
10854 2002-02-07 Klee Dienes <klee@apple.com>
10855
10856 * fork-inferior.c (fork_inferior): Add '!' to the list of
10857 characters that need to be quoted when building a string for the
10858 shell. Quote '!' specifically with a backslash, since CSH chokes
10859 when trying to evaluate "str!str".
10860
10861 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10862
10863 * rdi-share/host.h: Only provide a typedef for bool if it is not
10864 defined.
10865
10866 2002-02-04 Michael Snyder <msnyder@redhat.com>
10867
10868 * breakpoint.h (enum bptype): Add new overlay event bp type.
10869 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10870
10871 * breakpoint.c (create_internal_breakpoint): New function.
10872 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10873 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10874 (create_thread_event_breakpoint): Ditto.
10875 (create_solib_event_breakpoint): Ditto.
10876 (create_overlay_event_breakpoint): New function.
10877 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10878 (update_breakpoints_after_exec): Delete and re-initialize
10879 overlay event breakpoints after an exec. Add FIXME comment
10880 about longjmp breakpoint.
10881 (print_it_typical): Ignore overlay event breakpoints.
10882 (print_one_breakpoint): Ditto.
10883 (mention): Ditto.
10884 (bpstat_what): Do not stop for overlay event breakpoints.
10885 (delete_breakpoint): Don't delete overlay event breakpoints.
10886 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10887 (breakpoint_re_set): Re-create overlay event breakpoint.
10888
10889 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10890 (overlay_manual_command): Disable overlay breakpoints.
10891 (overlay_off_command): Disable overlay breakpoints.
10892
10893 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10894
10895 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10896 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10897 to here from config/tm-arm.h.
10898 (coff_sym_is_thumb): Make static.
10899 (arm_elf_make_msymbol_special): New function.
10900 (arm_coff_make_msymbol_special): New function.
10901 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10902 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10903 (coff_sym_is_thumb): Delete declaration.
10904 (arm_elf_make_msymbol_special): Declare.
10905 (arm_coff_make_msymbol_special): Declare.
10906 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10907 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10908
10909 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10910
10911 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10912
10913 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10914
10915 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10916 * gdbarch.c gdbarch.h: Regenerate.
10917 * arch-utils.c (default_print_float_info): New function.
10918 * arch-utils.h (default_print_float_info): Prototype it.
10919 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10920 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10921 (PRINT_FLOAT_INFO): Document it.
10922
10923 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10924 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10925 (PRINT_FLOAT_INFO): Define.
10926
10927 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10928
10929 * win32-nat.c (_initialize_check_for_gdb_ini):
10930 Add typecast to sprintf argument to suppress a warning.
10931
10932 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10933
10934 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10935 to allow easier handling of pass state.
10936 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10937 that gives exception name and address.
10938 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10939 and set last_sig value to ourstatus->value.sig. Some missing
10940 exceptions added.
10941 (child_continue): Correctly report continue_status.
10942 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10943 TARGET_SIGNAL_0 (new default value).
10944 (child_resume): consider sig argument passed to decide if
10945 the exception should be passed to debuggee or not.
10946
10947 2002-02-05 Michael Snyder <msnyder@redhat.com>
10948
10949 * regcache.c (fetch_register): Call target_fetch_register
10950 only if we don't call FETCH_PSEUDO_REGISTER.
10951 (store_register): Call target_store_register only if we
10952 don't call STORE_PSEUDO_REGISTER.
10953
10954 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10955
10956 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10957 ELF_MAKE_MSYMBOL_SPECIAL.
10958 * gdbarch.c, gdbarch.h: Regenerate.
10959 * arch-utils.c (default_make_msymbol_special): New function.
10960 * arch-utils.h (default_make_msymbol_special): Export.
10961 * elfread.c (elf_symtab_read): Compile use of
10962 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10963 multiarched.
10964 * coffread.c (coff_symtab_read): Ditto, for
10965 COFF_MAKE_MSYMBOL_SPECIAL.
10966
10967 2002-02-05 Jim Blandy <jimb@redhat.com>
10968
10969 * solib-svr4.c (svr4_truncate_ptr): New function.
10970 (svr4_relocate_section_addresses): Do the address arithmetic with
10971 the appropriate truncation for target addresses, even when
10972 CORE_ADDR is larger than a target address.
10973
10974 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10975
10976 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10977 to (int *).
10978
10979 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10980
10981 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10982 code.
10983
10984 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10985
10986 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10987
10988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10989
10990 * gdbserver/linux-low.c: Remove unused include files.
10991
10992 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10993
10994 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10995 (read_inferior_memory): Use it.
10996 (write_inferior_memory): Likewise.
10997
10998 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10999
11000 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11001 grubbing through sys_errlist.
11002
11003 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11004
11005 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11006
11007 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11008 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11009
11010 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11011
11012 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11013 (do_sfunc, set_cmd_sfunc): New functions.
11014
11015 * command.h (struct cmd_list_element): Add field func.
11016 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11017 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11018 * cli/cli-decode.h: Ditto.
11019
11020 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11021 (help_all, help_cmd_list): Ditto.
11022 (find_cmd, complete_on_cmdlist): Ditto.
11023 * top.c (execute_command): Ditto.
11024
11025 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11026 function.sfunc.
11027
11028 * infcmd.c (notice_args_read): Fix function signature.
11029
11030 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11031 * cli/cli-decode.c (add_set_cmd): Ditto.
11032 * utils.c (initialize_utils): Ditto.
11033 * maint.c (_initialize_maint_cmds): Ditto.
11034 * infrun.c (_initialize_infrun): Ditto.
11035 * demangle.c (_initialize_demangler): Ditto.
11036 * remote.c (add_packet_config_cmd): Ditto.
11037 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11038 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11039 * proc-api.c (_initialize_proc_api): Ditto.
11040 * kod.c (_initialize_kod): Ditto.
11041 * valprint.c (_initialize_valprint): Ditto.
11042 * top.c (init_main): Ditto.
11043 * infcmd.c (_initialize_infcmd): Ditto.
11044 * corefile.c (_initialize_core): Ditto.
11045 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11046 * arch-utils.c (initialize_current_architecture): Ditto.
11047 (_initialize_gdbarch_utils): Ditto.
11048 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11049
11050 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11051 * wince.c (_initialize_inftarg): Ditto.
11052 * symfile.c (_initialize_symfile): Ditto.
11053 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11054 * language.c (_initialize_language): Ditto.
11055 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11056
11057 2002-02-04 Michael Snyder <msnyder@redhat.com>
11058
11059 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11060
11061 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11062
11063 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11064 Add rules for building the register data files.
11065
11066 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11067
11068 * regformats/regdat.sh: Add braces to the definition of
11069 expedite_regs_${arch}.
11070
11071 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * regformats/regdef.h (struct reg): Add comment describing the
11074 requirements for offset and size fields.
11075
11076 2002-02-04 Andreas Schwab <schwab@suse.de>
11077
11078 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11079 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11080
11081 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11082
11083 * gdbarch.sh (copyright): Update years in generated header.
11084 (SMASH_TEXT_ADDRESS): Add rule.
11085 * gdbarch.h, gdbarch.c: Re-generate.
11086 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11087 * dbxread.c: Likewise.
11088 * dwarfread.c: Likewise.
11089 * elfread.c: Likewise.
11090 * somread.c: Likewise.
11091
11092 * arm-tdep.c (arm_smash_text_address): New function.
11093 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11094
11095 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11096
11097 Add support for hardware watchpoints on win32 native.
11098 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11099 CONTEXT_DEBUG_REGISTERS.
11100 (dr variable): New variable. Static array containing a local copy
11101 of debug registers.
11102 (debug_registers_changed): New variable. Reflects when debug registers
11103 are changed and need to be written to inferior.
11104 (debug_registers_used): New variable. Reflects when any debug register
11105 was set, used when new threads are created.
11106 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11107 i386-nat code.
11108 (thread_rec): Set dr array if id is the thread of current_event .
11109 (child_continue, child_resume): Change the debug registers for all
11110 threads if debug_registers_changed.
11111 (child_add_thread): Change the debug registers if debug_registers_used.
11112 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11113 Link nm.h to new nm-cygwin.h file.
11114 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11115 of hardware registers.
11116
11117 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11118
11119 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11120 Restore behavour broken by 2002-01-20 Andrew Cagney
11121 <ac131313@redhat.com> IEEE_FLOAT removal.
11122
11123 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11124
11125 * c-valprint.c (c_val_print): Pass a proper valaddr to
11126 cp_print_class_method.
11127 * valops.c (search_struct_method): If there is only one method
11128 and args is NULL, return that method.
11129
11130 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11133 accessing tag_name directly.
11134
11135 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11136
11137 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11138 of accessing tag_name directly.
11139
11140 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11141
11142 PR gdb/280
11143 * gdbtypes.c (replace_type): New function.
11144 * gdbtypes.h (replace_type): Add prototype.
11145 * stabsread.c (read_type): Use replace_type.
11146
11147 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11148
11149 * Makefile.in (memattr.o): Add missing dependencies rule.
11150
11151 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11152
11153 * breakpoint.c (break_at_finish_command): Really export.
11154 (break_at_finish_at_depth_command): Ditto.
11155 (tbreak_at_finish_command): Ditto.
11156 * hppa-tdep.c: Include completer.h.
11157 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11158 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11159
11160 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11161
11162 * utils.c (do_write): New function.
11163 (error_stream): Rewrite combining the code from error_begin and
11164 verror.
11165 (verror): Rewrite using error_stream.
11166 (error_begin): Delete function.
11167
11168 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11169
11170 * utils.c (error_begin): Make static.
11171 * defs.h (error_begin): Delete declaration.
11172
11173 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11174 (decode_line_1): Use cplusplus_error instead of error_begin,
11175 cplusplus_hint and return_to_top_level.
11176 * coffread.c (coff_symfile_read): Use error instead of error_begin
11177 and return_to_top_level.
11178 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11179
11180 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11181
11182 * language.h (type_error, range_error): Make string parameter
11183 constant.
11184 * language.c (warning_pre_print): Delete extern declaration.
11185 * dwarfread.c (warning_pre_print): Ditto.
11186 * language.c (type_error, range_error): Rewrite to use verror and
11187 vwarning instead of warning_begin.
11188
11189 2002-02-01 Michael Snyder <msnyder@redhat.com>
11190
11191 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11192 (set_ignore_count): Move misplaced comment back where it belongs.
11193
11194 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11195
11196 * command.h (NO_FUNCTION): Delete macro.
11197 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11198 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11199 * tracepoint.c (_initialize_tracepoint): Ditto.
11200 * cli/cli-decode.c (add_set_cmd): Ditto.
11201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11202
11203 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11204
11205 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11206 Update ``this'' pointer when calling virtual functions.
11207
11208 2002-02-01 Michael Snyder <msnyder@redhat.com>
11209
11210 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11211 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11212
11213 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * regformats/reg-arm.dat: New file.
11216 * regformats/reg-i386.dat: New file.
11217 * regformats/reg-ia64.dat: New file.
11218 * regformats/reg-m68k.dat: New file.
11219 * regformats/reg-mips.dat: New file.
11220 * regformats/reg-ppc.dat: New file.
11221 * regformats/reg-sh.dat: New file.
11222 * regformats/regdef.h: New file.
11223 * regformats/regdat.sh: New file.
11224
11225 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11226
11227 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11228 (arm_frame_args_address, arm_frame_locals_address): New functions.
11229 (arm_frame_num_args): New function.
11230 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11231 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11232 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11233
11234 2002-01-31 Michael Snyder <msnyder@redhat.com>
11235
11236 * breakpoint.c (break_at_finish_command): Export.
11237 (break_at_finish_at_depth_command): Export.
11238 (tbreak_at_finish_command): Export.
11239 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11240 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11241 "txbreak" commands, which are HPPA specific.
11242
11243 * printcmd.c (disassemble_command): Remove an ancient
11244 artifact of an old merge.
11245
11246 * symfile.h (enum overlay_debugging_state):
11247 Define enum constant values for overlay mode.
11248 * symfile.c (overlay_debugging): Use enums instead of literals.
11249 (overlay_is_mapped, overlay_auto_command,
11250 overlay_manual_command): Ditto.
11251
11252 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11253 breakpoint_here_p, breakpoint_inserted_here_p,
11254 breakpoint_thread_match, bpstat_stop_status,
11255 describe_other_breakpoints, check_duplicates, clear_command):
11256 Coding standard fixes.
11257
11258 * target.c (target_xfer_memory): Add spaces, coding standard.
11259 (do_xfer_memory): Add missing line to trust-readonly
11260 code: check bfd SEC_READONLY flag for section.
11261
11262 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11263
11264 * PROBLEMS: Fix typo, 5.1->5.1.1.
11265
11266 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11267
11268 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11269 data symbols, since we search based on textlow and texthigh.
11270 (find_pc_sect_symtab): Likewise.
11271
11272 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11273
11274 * defs.h (vwarning): Declare.
11275 * utils.c (vwarning): New function.
11276 (warning): Call vwarning.
11277 (warning_begin): Delete function.
11278
11279 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11280 the warning message.
11281 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11282 warning_begin.
11283
11284 2002-01-30 Michael Snyder <msnyder@redhat.com>
11285
11286 * NEWS: Mention "set trust-readonly-sections" command.
11287 Mention generate-core-file command.
11288
11289 2002-01-15 Michael Snyder <msnyder@redhat.com>
11290
11291 * target.c: New command, "set trust-readonly-sections on".
11292 (do_xfer_memory): Honor the suggestion to trust readonly sections
11293 by reading them from the object file instead of from the target.
11294 (initialize_targets): Register command "set trust-readonly-sections".
11295
11296 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11297
11298 * parse.c (target_map_name_to_register): Simplify, search regs and
11299 pseudo-regs using a single loop.
11300
11301 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11302
11303 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11304
11305 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11306
11307 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11308 * config/i386/i386v42mp.mh: Add i387-nat.o .
11309 * i386v4-nat.c: Include i387-nat.h.
11310 (supply_fpregset): Use i387_supply_fsave.
11311 (fill_fpregset): Use i387_fill_fsave.
11312
11313 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11314
11315 * arm-tdep.c (arm_call_dummy_words): Define.
11316 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11317 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11318 (CALL_DUMMY_WORDS): Define.
11319 (arm_call_dummy_words): Declare.
11320 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11321 (arm_linux_call_dummy_words): Declare.
11322
11323 2002-01-30 Andreas Schwab <schwab@suse.de>
11324
11325 * m68klinux-nat.c: Fix last change to use regcache_collect
11326 instead of referencing registers[] directly.
11327
11328 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11329
11330 * parse.c (target_map_name_to_register): Delete code wrapped in
11331 #ifdef REGISTER_NAME_ALIAS_HOOK.
11332
11333 2002-01-28 Michael Snyder <msnyder@redhat.com>
11334
11335 * regcache.c (legacy_read_register_gen): Need to be able to
11336 read pseudo-register as well as real register.
11337 (legacy_write_register_gen): Ditto.
11338
11339 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11340
11341 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11342 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11343 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11344 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11345 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11346 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11347 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11348 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11349 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11350 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11351 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11352 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11353 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11354 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11355 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11356 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11357 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11358 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11359 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11360 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11361
11362 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11363
11364 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11365 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11366 (initialize_current_architecture): Update target_byte_order using
11367 information from BFD.
11368 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11369 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11370
11371 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11372
11373 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11374 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11375
11376 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11377 #ifdef INVALID_FLOAT.
11378 * infcmd.c (do_registers_info): Ditto.
11379 * values.c (unpack_double): Ditto. Add comment.
11380
11381 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11382 already commented out.
11383
11384 2002-01-26 Andreas Schwab <schwab@suse.de>
11385
11386 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11387 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11388 registers and add support for PTRACE_GETREGS.
11389
11390 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11391
11392 GDB 5.1.1 released from 5.1 branch.
11393 * NEWS: Add 5.1.1 news.
11394 * README: Sync with 5.1 branch.
11395
11396 2002-01-23 Fred Fish <fnf@redhat.com>
11397
11398 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11399 stabstring on initial malloc. Reallocing will copy it for us,
11400 if necessary.
11401
11402 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11403
11404 * Makefile.in (hpread_h): Delete.
11405 (HFILES_NO_SRCDIR): Remove hpread.h.
11406 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11407 (hpread.o): Update dependencies.
11408 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11409
11410 * hp-psymtab-read.c: Remove file.
11411 * hp-symtab-read.c: Remove file.
11412 * hpread.h: Remove file.
11413
11414 * hpread.c: Merge all contents of hp-psymtab-read.c,
11415 hp-symtab-read.c and hpread.h into this file, as it was prior to
11416 January 1999.
11417
11418 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11419 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11420 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11421 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11422
11423 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11424
11425 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11426 fill_gregset): Call gdbarch_tdep() just once, assign result to
11427 variable and use that, instead of calling the function several
11428 times.
11429
11430 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11431
11432 * configure.host: Accept sparcv9 as alias for sparc64.
11433 * configure.tgt: Likewise.
11434
11435 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11436
11437 * solib-aix5.c (build_so_list_from_mapfile)
11438 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11439 arguments is not reversed.
11440 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11441 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11442
11443 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11444
11445 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11446 modified version of obsolete sh_fetch_pseudo_register.
11447 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11448 (sh4_register_read): New function.
11449 (sh_pseudo_register_write): New function. Renamed and modified
11450 version of obsolete sh_store_pseudo_register.
11451 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11452 (sh4_register_write): New function.
11453 (sh_gdbarch_init): Remove setting of gdbarch function
11454 fetch_pseudo_register and store_pseudo_register. Remove setting of
11455 register_convert_to_raw, register_convert_to_virtual,
11456 register_convertible.
11457 (sh_sh4_register_convertible): Delete. No longer needed. All is
11458 taken care by architecture specific functions
11459 register_read/register_write.
11460 (sh_sh4_register_convert_to_virtual): Make static.
11461 (sh_sh4_register_convert_to_raw): Ditto.
11462
11463 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11464
11465 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11466 (floatformat_is_nan, floatformat_mantissa): Ditto.
11467
11468 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11469 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11470 builtin_type_ieee_double_little,
11471 builtin_type_ieee_double_littlebyte_bigword,
11472 builtin_type_m68881_ext, builtin_type_i960_ext,
11473 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11474 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11475 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11476 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11477
11478 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11479
11480 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11481 parameter. Set frameless flag if it exists and depended of
11482 whether the scanned function is frameless or not.
11483 (xstormy16_skip_prologue): If function is frameless, return
11484 result of xstormy16_scan_prologue().
11485 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11486 call.
11487
11488 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11489
11490 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11491 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11492 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11493 sh_sh4_register_byte, sh_sh4_register_raw_size,
11494 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11495 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11496 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11497 sh_store_pseudo_register, sh_do_pseudo_register): Call
11498 gdbarch_tdep() just once, assign result to variable and use that,
11499 instead of calling the function several times.
11500
11501 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11502
11503 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11504 macros instead of LAST_FPU_CTRL_REGNUM.
11505 (store_register): Likewise.
11506
11507 2002-01-21 Jim Blandy <jimb@redhat.com>
11508
11509 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11510 is up-to-date before running the program, not just when a program
11511 exits.
11512
11513 2002-01-21 Fred Fish <fnf@redhat.com>
11514
11515 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11516 when we have found all instructions we are looking for.
11517
11518 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11519
11520 * arm-tdep.c (arm_register_name): New function.
11521 (arm_registers_names): Make static.
11522 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11523 (arm_register_name): Declare.
11524 (REGISTER_NAME): Use it.
11525
11526 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11527 Kevin Buettner <kevinb@redhat.com>
11528
11529 Convert arm targets to new FRAME interface.
11530 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11531 (arm_frame_find_save_regs): Delete.
11532 (arm_frame_init_saved_regs): New.
11533 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11534 Allocate extra_info as required. Convert all uses of fsr.regs
11535 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11536 to use extra_info.
11537 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11538 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11539 (check_prologue_cache, save_prologue_cache): Likewise.
11540 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11541 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11542 (FRAME_FIND_SAVED_REGS): Delete.
11543 (arm_frame_find_saved_regs): Delete prototype.
11544 (arm_frame_init_saved_regs): New prototype.
11545 (FRAME_INIT_SAVED_REGS): Define.
11546
11547 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11548
11549 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11550
11551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11552
11553 From Jeff Law <law@redhat.com>:
11554 * infttrace.c: Include <sys/pstat.h>.
11555 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11556 exec file if the ttrace equivalent fails.
11557
11558 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11559
11560 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11561 (closeLogFile): Ditto.
11562
11563 2002-01-20 Michael Chastain <mec@shout.net>
11564
11565 * top.c (print_gdb_version): Bump copyright year to 2002.
11566
11567 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11568
11569 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11570 Zannoni and Eli Zaretskii.
11571
11572 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11573
11574 * buildsym.c: Update copyright years.
11575 * c-typeprint.c: Likewise.
11576 * dwarf2read.c: Likewise.
11577 * f-typeprint.c: Likewise.
11578 * gdbtypes.c: Likewise.
11579 * gdbtypes.h: Likewise.
11580 * hp-symtab-read.c: Likewise.
11581 * hpread.c: Likewise.
11582 * mdebugread.c: Likewise.
11583 * p-typeprint.c: Likewise.
11584
11585 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11586
11587 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11588 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11589 byte-order selectable.
11590 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11591 * arch-utils.c: Ditto.
11592 (set_endian): Ditto.
11593 (set_endian_from_file): Ditto.
11594 * gdbserver/low-sim.c (create_inferior): Ditto.
11595 * gdbarch.sh: Ditto.
11596 * gdbarch.h: Re-generate.
11597 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11598 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11599 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11600 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11601 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11602 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11603 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11604 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11605 macro definition.
11606 * config/mips/tm-wince.h: Remove #undef of macro
11607 TARGET_BYTE_ORDER_SELECTABLE.
11608 * config/sh/tm-wince.h: Ditto.
11609
11610 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11611
11612 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11613 member function fields. Add accessor macro
11614 TYPE_FN_FIELD_ARTIFICIAL.
11615 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11616 * c-typeprint.c (c_type_print_base): Skip artificial member
11617 functions.
11618
11619 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11620
11621 * f-typeprint.c: Delete unused function f_type_print_args.
11622 * p-typeprint.c: Delete unused function pascal_type_print_args.
11623
11624 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11625
11626 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11627 comment. Add ``artificial'' to ``union field_location''.
11628
11629 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11630
11631 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11632 * mdebugread.c (parse_symbol): Likewise.
11633 * stabsread.c (define_symbol): Likewise.
11634 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11635 initializing TYPE_FIELD_BITPOS to n (obsolete).
11636 (hpread_doc_function_type): Likewise.
11637 * hpread.c (hpread_function_type): Likewise.
11638
11639 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11640
11641 * configure.in (host_makefile_frag): Only require a host makefile
11642 fragment when a native build.
11643 * configure: Re-generate.
11644
11645 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11646
11647 * doublest.h (floatformat_from_type): Declare.
11648 * doublest.c (floatformat_from_type): New function.
11649 (convert_typed_floating): Use.
11650
11651 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11652 call to function floatformat_from_type.
11653
11654 * gdbarch.sh (IEEE_FLOAT): Delete.
11655 * gdbarch.h, gdbarch.c: Re-generate.
11656 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11657 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11658 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11659 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11660 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11661 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11662 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11663 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11664 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11665 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11666 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11667 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11668
11669 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11670 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11672 * sh-tdep.c (sh_gdbarch_init): Ditto.
11673 * mips-tdep.c (mips_gdbarch_init): Ditto.
11674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11675 * cris-tdep.c (cris_gdbarch_init): Ditto.
11676
11677 2002-01-20 Jiri Smid <smid@suse.cz>
11678
11679 * configure.host, configure.tgt: Support x86-64.
11680 * NEWS: Note new target x86-64.
11681
11682 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11683 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11684 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11685 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11686 x86-64-linux-nat.o): Fix dependencies.
11687
11688 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11689
11690 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11691 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11692 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11693 * config/sparc/xm-sun4os4.h: Delete file.
11694 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11695
11696 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11697
11698 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11699 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11700 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11701 * config/i386/i386lynx.mh (XM_FILE): Delete.
11702 * config/rs6000/xm-rs6000ly.h: Delete file.
11703 * config/sparc/xm-sparclynx.h: Delete file.
11704 * config/m68k/xm-m68klynx.h: Delete file.
11705 * config/i386/xm-i386lynx.h: Delete file.
11706 * config/xm-lynx.h: Delete file.
11707 * config/djgpp/fnchange.lst: Update.
11708
11709 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11710
11711 * alpha-tdep.c (alpha_register_byte): New function.
11712 (alpha_register_raw_size): Ditto.
11713 (alpha_register_virtual_size): Ditto.
11714 (alpha_skip_prologue_internal): Renamed from
11715 alpha_skip_prologue.
11716 (alpha_skip_prologue): New version that calls
11717 alpha_skip_prologue_internal.
11718 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11719 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11720 second argument from alpha_skip_prologue.
11721 (REGISTER_BYTE): Use alpha_register_byte.
11722 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11723 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11724 (FRAMELESS_FUNCTION_INVOCATION): Use
11725 generic_frameless_function_invocation_not.
11726 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11727 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11728
11729 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11730
11731 * config/mips/xm-news-mips.h: Delete file.
11732 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11733
11734 * config/m88k/xm-m88k.h: Delete file.
11735 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11736 * config/m88k/xm-delta88v4.h: Ditto.
11737 * config/m88k/xm-delta88.h: Ditto.
11738
11739 * config/alpha/xm-fbsd.h: Delete file.
11740 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11741
11742 * config/sparc/xm-sparc.h: Delete file.
11743 * Makefile.in (xm-sun4os4.h): Delete dependency.
11744 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11745 * config/sparc/xm-sun4os4.h: Ditto.
11746 * config/sparc/xm-linux.h: Ditto.
11747
11748 * config/i386/xm-windows.h: Delete file.
11749
11750 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11751
11752 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11753 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11754
11755 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11756
11757 * alpha-tdep.c (alpha_call_dummy_words): New.
11758 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11759 (CALL_DUMMY_P): Define.
11760 (CALL_DUMMY_WORDS): Define.
11761 (SIZEOF_CALL_DUMMY_WORDS): Define.
11762
11763 2002-01-19 Per Bothner <per@bothner.com>
11764
11765 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11766 isn't NULL, which can happen with some gcj-3.x-produced code.
11767
11768 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11769
11770 * alpha-tdep.c (alpha_register_virtual_type): New function.
11771 (alpha_init_frame_pc_first): Ditto.
11772 (alpha_fix_call_dummy): Ditto.
11773 (alpha_store_struct_return): Ditto.
11774 (alpha_extract_struct_value_address): Ditto.
11775 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11776 alpha_register_virtual_type.
11777 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11778 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11779 alpha_extract_struct_value_address.
11780 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11781 (INIT_FRAME_PC): Use init_frame_pc_noop.
11782 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11783
11784 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11785
11786 * i386gnu-nat.c: Include "i386-tdep.h".
11787 (fetch_fpregs): Simplify code dealing with uninitialized floating
11788 point states such that it doesn't require FP7_REGNUM.
11789
11790 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11791
11792 * alpha-tdep.c (frame_extra_info): New.
11793 (alpha_find_saved_regs): Make static. Use
11794 frame->extra_info.
11795 (alpha_frame_init_saved_regs): New function.
11796 (alpha_frame_saved_pc): Use frame->extra_info.
11797 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11798 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11799 (init_extra_frame_info): Rename to...
11800 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11801 (alpha_print_extra_frame_info): New function.
11802 (alpha_frame_locals_address): Ditto.
11803 (alpha_frame_args_address): Ditto.
11804 (alpha_pop_frame): Use frame->extra_info.
11805 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11806 alpha_frame_args_address.
11807 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11808 (alpha_find_saved_regs): Remove prototype.
11809 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11810 (EXTRA_FRAME_INFO): Remove.
11811 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11812 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11813
11814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11815
11816 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11817 (alpha_cannot_fetch_register): Ditto.
11818 (alpha_cannot_store_register): Ditto.
11819 (alpha_register_convertible): Ditto.
11820 (alpha_use_struct_convention): Ditto.
11821 * config/alpha/tm-alpha.h: Update copyright years.
11822 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11823 (INNER_THAN): Use core_addr_lessthan.
11824 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11825 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11826 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11827 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11828 (FRAME_CHAIN): Remove unnecessary cast.
11829
11830 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11831
11832 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11833 obsolete.
11834
11835 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11836
11837 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11838 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11839 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11840 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11841 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11842 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11843 * x86-64-linux-nat.c: Ditto.
11844
11845 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11846
11847 * alpha-tdep.c (alpha_register_name): New function.
11848 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11849 (REGISTER_NAME): Define.
11850
11851 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11852
11853 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11854
11855 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11856
11857 * alpha-tdep.c: Update copyright years.
11858 (alpha_next_pc): New function.
11859 (alpha_software_single_step): Ditto.
11860 * config/alpha/tm-alpha.h: Add prototype for
11861 alpha_software_single_step.
11862
11863 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11864
11865 * alphabsd-nat.c: Update copyright years.
11866 (fill_gregset): Use regcache_collect.
11867 (fill_fpregset): Likewise.
11868 (fetch_inferior_registers): Only fetch integer registers
11869 if requested to do so.
11870 (store_inferior_registers): Only store integer registers
11871 if requested to do so.
11872
11873 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11874
11875 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11876 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11877 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11878 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11879 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11880 * config/arm/linux.mh (XDEPFILES): Delete.
11881 * config/arm/nbsd.mh (XDEPFILES): Delete.
11882 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11883 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11884 * config/i386/i386m3.mh (XDEPFILES): Delete.
11885 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11886 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11887 * config/i386/fbsd.mh (XDEPFILES): Delete.
11888 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11889 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11890 * config/i386/i386v4.mh (XDEPFILES): Delete.
11891 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11892 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11893 * config/i386/i386aix.mh (XDEPFILES): Delete.
11894 * config/i386/go32.mh (XDEPFILES): Delete.
11895 * config/i386/cygwin.mh (XDEPFILES): Delete.
11896 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11897 * config/i386/i386mach.mh (XDEPFILES): Delete.
11898 * config/i386/i386v32.mh (XDEPFILES): Delete.
11899 * config/i386/linux.mh (XDEPFILES): Delete.
11900 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11901 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11902 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11903 * config/i386/i386sco.mh (XDEPFILES): Delete.
11904 * config/i386/i386v.mh (XDEPFILES): Delete.
11905 * config/i386/nbsd.mh (XDEPFILES): Delete.
11906 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11907 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11908 * config/i386/symmetry.mh (XDEPFILES): Delete.
11909 * config/i386/obsd.mh (XDEPFILES): Delete.
11910 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11911 * config/ia64/linux.mh (XDEPFILES): Delete.
11912 * config/ia64/aix.mh (XDEPFILES): Delete.
11913 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11914 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11915 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11916 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11917 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11918 * config/m68k/linux.mh (XDEPFILES): Delete.
11919 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11920 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11921 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11922 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11923 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11924 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11925 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11926 * config/m88k/delta88.mh (XDEPFILES): Delete.
11927 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11928 * config/m88k/m88k.mh (XDEPFILES): Delete.
11929 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11930 * config/mips/linux.mh (XDEPFILES): Delete.
11931 * config/mips/irix6.mh (XDEPFILES): Delete.
11932 * config/mips/irix5.mh (XDEPFILES): Delete.
11933 * config/mips/irix4.mh (XDEPFILES): Delete.
11934 * config/mips/irix3.mh (XDEPFILES): Delete.
11935 * config/mips/decstation.mh (XDEPFILES): Delete.
11936 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11937 (NATDEPFILES): Move core-aout.o to here.
11938 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11939 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11940 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11941 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11942 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11943 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11944 * config/pa/hpux11.mh (XDEPFILES): Delete.
11945 * config/powerpc/aix.mh (XDEPFILES): Delete.
11946 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11947 * config/powerpc/linux.mh (XDEPFILES): Delete.
11948 * config/romp/rtbsd.mh: Rename XDEPFILES.
11949 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11950 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11951 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11952 * config/s390/s390.mh (XDEPFILES): Delete.
11953 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11954 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11955 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11956 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11957 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11958 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11959 * config/sparc/linux.mh (XDEPFILES): Delete.
11960 * config/vax/vaxult.mh (XDEPFILES): Delete.
11961 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11962 * Makefile.in (DEPFILES): Remove XDEPFILES.
11963
11964 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11965
11966 * utils.c (internal_verror): Fix comments, default is yes not no.
11967 Update queries to match. Default to quit and dump core.
11968
11969 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11970
11971 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11972 copyright.
11973 * defs.h, event-top.c, gdbcmd.h: Ditto.
11974 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11975 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11976 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11977 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11978 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11979 * mi/mi-main.c:Ditto.
11980
11981 * stack.c, symfile.c: Update copyright.
11982
11983 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11986 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11987 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11988 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11989
11990 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11991
11992 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11993 * gdbserver/low-lynx.c (myattach): Likewise.
11994 * gdbserver/low-nbsd.c (myattach): Likewise.
11995 * gdbserver/low-sim.c (myattach): Likewise.
11996 * gdbserver/low-sparc.c (myattach): Likewise.
11997 * gdbserver/low-sun3.c (myattach): Likewise.
11998
11999 * gdbserver/low-linux.c (myattach): New function.
12000
12001 * gdbserver/server.c (attach_inferior): New function.
12002 (main): Handle "--attach".
12003
12004 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12005
12006 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12007 maintainer.
12008
12009 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12010
12011 * c-typeprint.c (is_type_conversion_operator): Add additional
12012 check for non-conversion operators.
12013
12014 2002-01-15 Michael Snyder <msnyder@redhat.com>
12015
12016 * linux-proc.c: Add "info proc" command, a la procfs.c.
12017 (read_mapping): New function, abstract and re-use code.
12018 (linux_find_memory_regions): Use new func read_mapping.
12019 (linux_info_proc_cmd): New function, implement "info proc".
12020 (_initialize_linux_proc): Add new command "info proc".
12021
12022 2002-01-15 Michael Snyder <msnyder@redhat.com>
12023
12024 * symfile.c (generic_load): Use bfd_map_over_sections method
12025 instead of manipulating bfd structure members directly.
12026 (add_section_size_callback): New function, bfd sections callback
12027 used by generic_load.
12028 (load_sections_callback): New function, bfd sections callback
12029 used by generic_load.
12030
12031 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12032
12033 [Based on work by Jim Blandy]
12034 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12035 (builtin_type_vec128): Export.
12036 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12037 types.
12038 (builtin_type_vec128): New builtin type for 128 bit vector
12039 registers.
12040 (build_gdbtypes): Initialize builtin_type_v16qi and
12041 builtin_type_v8hi. Create the vec128 register builtin type
12042 structure.
12043 (build_builtin_type_vec128): New function.
12044 (_initialize_gdbtypes): Register builtin_type_v16qi and
12045 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12046 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12047 AltiVec register to new builtin type.
12048
12049 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12050
12051 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12052 to make_cv_type.
12053
12054 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12055
12056 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12057 CLEAN_UP_REGISTER_VALUE.
12058 * regcache.c (supply_register): Update only call.
12059
12060 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12061
12062 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12063 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12064 a29k-*-vxworks* targets as obsolete.
12065
12066 2002-01-14 Michael Snyder <msnyder@redhat.com>
12067
12068 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12069 until we can resolve portability issues.
12070 * gregset.h: Remove references to fpxregs.
12071 * gcore.c (gcore_command): Initialize note_sec to NULL.
12072
12073 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12074
12075 * signals.c (target_signal_to_name): Rewrite. Only use
12076 signals[].name when in bounds and non-NULL.
12077
12078 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12079
12080 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12081 * signals.c (target_signal_to_name): Verify that SIG is within the
12082 bounds of the signals array.
12083
12084 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12085
12086 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12087
12088 2002-01-13 Keith Seitz <keiths@redhat.com>
12089
12090 * stack.c (print_frame_info_base): Print the frame's pc
12091 only if when print_frame_info_listing_hook is not defined.
12092
12093 2002-01-13 Keith Seitz <keiths@redhat.com>
12094
12095 * varobj.c (varobj_set_value): Make sure that there were no
12096 errors evaluating the object before attempting to set its
12097 value.
12098 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12099 so this offset adjustment is no longer necessary.
12100 (create_child): Don't set the error flag if the child is
12101 a CPLUS_FAKE_CHILD.
12102 (value_of_child): If value_fetch_lazy fails, return NULL
12103 so that callers will be notified that an error occurred.
12104 (c_value_of_variable): Delay check of variable's validity
12105 until later. We actually want all structs and unions to have
12106 the value "{...}".
12107 Do not return "???" for variables which could not be evaluated.
12108 This error condition must be returned to the caller so that it
12109 can get the error condition from gdb.
12110 (cplus_name_of_child): Adjust index for vptr before figuring
12111 out the name of the child.
12112 (cplus_value_of_child): If a child's (real) parent is not valid,
12113 don't even bother trying to give a value for it. Just return
12114 an error. Change all instances in this function.
12115 (cplus_type_of_child): If our parent is one of the "fake"
12116 parents, we need to get at the type of the real parent, and
12117 derive the child's true type using this information.
12118
12119 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12120
12121 From 2002-01-09 John Marshall <johnm@falch.net>:
12122 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12123 sources.redhat.com, and tweak some related URLs which had
12124 suffered from linkrot.
12125
12126 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12127
12128 From Jeff law:
12129 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12130 structures passed in registers.
12131
12132 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12133
12134 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12135 white space which prevented compilation. Reported by DSK
12136 <dsk@student.unsw.edu.au>.
12137
12138 2002-01-11 Michael Snyder <msnyder@redhat.com>
12139
12140 * symfile.c (build_section_addr_info_from_section_tab):
12141 Use bfd access method instead of manipulating bfd directly.
12142 (syms_from_objfile): Ditto.
12143 (simple_overlay_update_1): Ditto.
12144 (simple_overlay_update): Ditto.
12145 (generic_load): Ditto.
12146 (overlay_unmapped_address): FIXME comment, bfd access methods.
12147 (sections_overlap): FIXME comment, bfd access methods.
12148 (pc_in_mapped_range): FIXME comment, bfd access methods.
12149 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12150 (section_is_mapped): FIXME comment, bfd access methods.
12151 (section_is_overlay): FIXME comment, bfd access methods.
12152
12153 * symfile.c (generic_load): Whitespace and long line cleanups.
12154 Remove duplicate variable, change several local variables to
12155 more appropriate data types.
12156 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12157
12158 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12159
12160 From Peter Schauer:
12161 * language.c (longest_local_hex_string_custom): Use phex_nz to
12162 convert NUM to a hex string.
12163
12164 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12165
12166 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12167 the function.
12168 Update Copyright year.
12169
12170 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12171
12172 * language.c (longest_raw_hex_string): Delete unused function.
12173
12174 2002-01-11 Petr Sorfa <petrs@caldera.com>
12175
12176 * MAINTAINERS (write-after-approval): Add myself.
12177 * dwarf2read.c (read_tag_string_type): Handling of
12178 DW_AT_byte_size.
12179 (read_tag_string_type): FORTRAN fix to prevent propagation of
12180 first string size.
12181 (set_cu_language): Handling of DW_LANG_Fortran95
12182
12183 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12184
12185 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12186 GETPID(inferior_ptid).
12187 (store_inferior_registers): Likewise.
12188
12189 2002-01-10 Jason Merrill <jason@redhat.com>
12190
12191 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12192 Fix DW_OP_minus.
12193
12194 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12195
12196 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12197 and bfd/elf32-sh-nbsd.c.
12198
12199 2002-01-10 Michael Snyder <msnyder@redhat.com>
12200
12201 * NEWS: Mention --pid and corefile/proc-id behavior change.
12202
12203 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12204 * gcore.c: Include cli/cli-decode.h instead of command.h.
12205
12206 * main.c (captured_main): Add new command line option "--pid".
12207 If the second command line argument (following the symbol-file)
12208 begins with a digit, try to attach to it before trying to open
12209 it as a corefile.
12210 (print_gdb_help): Document the "--pid" argument.
12211
12212 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12213
12214 * completer.c (command_completer): New function.
12215
12216 * completer.h <command_completer>: Add prototype.
12217
12218 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12219 completer for the "help" command.
12220
12221 2002-01-09 Jason Merrill <jason@redhat.com>
12222
12223 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12224
12225 2002-01-09 Michael Snyder <msnyder@redhat.com>
12226
12227 * i386-linux-nat.c (fill_fpxregset): Make global.
12228 (store_fpxregset): Ditto.
12229
12230 * gregset.h (gdb_fpxregset_t): Define.
12231 (supply_fpxregset): Prototype.
12232 (fill_fpxregset): Prototype.
12233
12234 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12235
12236 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12237
12238 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12239 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12240 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12241
12242 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12243
12244 * MAINTAINERS: Update target maintainer rules so that any
12245 Maintainer can approve a tested patch for a maintenance-only
12246 target.
12247
12248 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12249
12250 * MAINTAINERS (write-after-approval): Add myself.
12251
12252 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12253 IN_SIGTRAMP.
12254
12255 2002-01-08 Michael Snyder <msnyder@redhat.com>
12256
12257 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12258 real name of the executable, rather than the /proc name.
12259
12260 2002-01-03 Michael Snyder <msnyder@redhat.com>
12261
12262 Implement a "generate-core-file" command in gdb, save target state.
12263 * gcore.c: New file. Implement new command 'generate-core-file'.
12264 Save a corefile image of the current state of the inferior.
12265 * linux-proc.c: Add linux-specific code for saving corefiles.
12266 * target.h (struct target_ops): Add new target vectors for saving
12267 corefiles; to_find_memory_regions and to_make_corefile_notes.
12268 (target_find_memory_regions): New macro.
12269 (target_make_corefile_notes): New macro.
12270 * target.c (update_current_target): Inherit new target methods.
12271 (dummy_find_memory_regions): New place-holder method.
12272 (dummy_make_corefile_notes): New place-holder method.
12273 (init_dummy_target): Initialize new dummy target vectors.
12274 * exec.c (exec_set_find_memory_regions): New function.
12275 Allow the exec_ops vector for memory regions to be taken over.
12276 (exec_make_note_section): New function, target vector method.
12277 * defs.h (exec_set_find_memory_regions): Export prototype.
12278 * procfs.c (proc_find_memory_regions): New function, corefile method.
12279 (procfs_make_note_section): New function, corefile method.
12280 (init_procfs_ops): Set new target vector pointers.
12281 (find_memory_regions_callback): New function.
12282 (procfs_do_thread_registers): New function.
12283 (procfs_corefile_thread_callback): New function.
12284 * sol-thread.c (sol_find_memory_regions): New function.
12285 (sol_make_note_section): New function.
12286 (init_sol_thread_ops): Initialize new target vectors.
12287 * inftarg.c (inftarg_set_find_memory_regions): New function.
12288 Allow to_find_memory_regions vector to be taken over.
12289 (inftarg_set_make_corefile_notes): New function.
12290 Allow to_make_corefile_notes vector to be taken over.
12291 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12292 interface layer if not target_has_execution (may be a corefile).
12293 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12294 * config/sparc/sun4sol2.mh: Ditto.
12295 * config/alpha/alpha-linux.mh: Ditto.
12296 * config/arm/linux.mh: Ditto.
12297 * config/i386/x86-64linux.mh: Ditto.
12298 * config/ia64/linux.mh: Ditto.
12299 * config/m68k/linux.mh: Ditto.
12300 * config/mips/linux.mh: Ditto.
12301 * config/powerpc/linux.mh: Ditto.
12302 * config/sparc/linux.mh: Ditto.
12303
12304 2002-01-07 Michael Snyder <msnyder@redhat.com>
12305
12306 * arm-linux-nat.c: Remove references to regcache.c internal data
12307 (registers[] and register_valid[]).
12308
12309 2002-01-07 Michael Snyder <msnyder@redhat.com>
12310
12311 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12312 so that attaching to a pid will automatically read the process's
12313 symbol file and shlibs.
12314 * Makefile.in: Add rule for linux-proc.o.
12315 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12316 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12317 * config/arm/linux.mh: Ditto.
12318 * config/i386/linux.mh: Ditto.
12319 * config/i386/x86-64linux.mh: Ditto.
12320 * config/ia64/linux.mh: Ditto.
12321 * config/m68k/linux.mh: Ditto.
12322 * config/mips/linux.mh: Ditto.
12323 * config/powerpc/linux.mh: Ditto.
12324 * config/sparc/linux.mh: Ditto.
12325
12326 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12327
12328 * win32-nat.c: Add i386-tdep.h dependency.
12329
12330 2002-01-07 Michael Snyder <msnyder@redhat.com>
12331
12332 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12333 instead of bfd_get_arch_size. Don't bail out just because
12334 there's no exec_bfd.
12335
12336 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12337 * p-valprint.c (pascal_object_print_value): Ditto.
12338 * somread.c (som_symtab_read): Ditto.
12339 * symfile.c (simple_free_overlay_region_table): Ditto.
12340 * valops.c (value_assign): Ditto.
12341
12342 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12343 use tilde_expand and strerror for opening save-tracepoints file.
12344
12345 * thread-db.c (thread_db_new_objfile): Indendation fix.
12346
12347 * infptrace.c (GDB_MAX_ALLOCA): New define.
12348 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12349 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12350 can be overridden with whatever value is appropriate to the host).
12351 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12352 alloca to allocate potentially large buffer.
12353 * rs6000-nat.c (child_xfer_memory): Ditto.
12354 * symm-nat.c (child_xfer_memory): Ditto.
12355 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12356
12357 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12358
12359 From Nick Clifton <nickc@redhat.com>
12360 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12361
12362 2002-01-07 Michael Snyder <msnyder@redhat.com>
12363
12364 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12365 Don't use exec_bfd if it's NULL.
12366
12367 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12368
12369 * valops.c (value_arg_coerce): Fix formatting.
12370
12371 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12372
12373 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12374 * gnu-nat.c: Ditto.
12375
12376 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12377
12378 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12379 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12380 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12381 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12382 z8k-coff have not been multi-arched. Update z8k-coff build
12383 status.
12384
12385 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12386
12387 * MAINTAINERS: Mark a29k target as obsolete.
12388 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12389 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12390 comments.
12391 * NEWS: Note that a29k targets are obsolete.
12392 * a29k-tdep.c: Mark as obsolete.
12393 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12394 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12395 a29k-*-vxworks* targets as obsolete.
12396 * remote-adapt.c: Obsolete.
12397 * remote-eb.c: Obsolete.
12398 * remote-mm.c: Obsolete.
12399 * remote-udi.c: Obsolete.
12400 * config/a29k/a29k-udi.mt: Obsolete.
12401 * config/a29k/a29k.mt: Obsolete.
12402 * config/a29k/tm-a29k.h: Obsolete.
12403 * config/a29k/tm-vx29k.h: Obsolete.
12404 * config/a29k/vx29k.mt: Obsolete.
12405
12406 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12407
12408 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12409 with BFD_ENDIAN_BIG.
12410
12411 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12412
12413 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12414 * configure, config.in: Re-generate.
12415 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12416 * defs.h: Do not include <endian.h>.
12417
12418 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12419
12420 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12421 * config.in: Regenerate.
12422 * configure.in: Update copyright years.
12423 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12424 * configure: Regenerate.
12425 * i386bsd-nat.c: Update copyright years.
12426 (fill_gregset): Use regcache_collect.
12427 (fetch_inferior_registers): Only fetch integer registers
12428 if requested to do so. Add support for XMM registers
12429 using PT_GETXMMREGS.
12430 (store_inferior_registers): Only store integer registers
12431 if requested to do so. Add support for XMM registers
12432 using PT_SETXMMREGS.
12433 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12434 (store_inferior_registers): Remove.
12435 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12436 (fetch_elfcore_registers): New function.
12437 (i386nbsd_elfcore_fns): New.
12438 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12439 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12440 i386bsd-nat.o.
12441 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12442 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12443 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12444 * config/i386/tm-nbsd.h: Update copyright years.
12445 (HAVE_SSE_REGS): Define.
12446 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12447 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12448 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12449 (SIGCONTEXT_PC_OFFSET): Remove.
12450 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12451
12452 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12453
12454 * configure.tgt: Remove powerpc-*-macos* target.
12455 * config/m68k/xm-mpw.h: Delete file.
12456 * config/xm-mpw.h: Delete file.
12457 * ser-mac.c: Delete file.
12458 * mpw-make.sed: Delete file.
12459 * mpw-config.in: Delete file.
12460 * mac-xdep.c: Delete file.
12461 * mac-gdb.r: Delete file.
12462 * mac-defs.h: Delete file.
12463 * mac-nat.c: Delete file.
12464 * config/powerpc/macos.mh: Delete file.
12465 * config/powerpc/macos.mt: Delete file.
12466 * config/powerpc/nm-macos.h: Delete file.
12467 * config/powerpc/tm-macos.h: Delete file.
12468 * source.c (openp, open_source_file): Remove obsolete code.
12469 * top.c (gdb_readline): Ditto.
12470 * utils.c (query): Ditto.
12471 * event-top.c (display_gdb_prompt): Ditto.
12472 * Makefile.in (ser-mac.o): Delete obsolete target.
12473 * NEWS: Update.
12474
12475 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12476
12477 * defs.h (BIG_ENDIAN): Delete macro definition.
12478 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12479 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12480 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12481 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12482 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12483 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12484 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12485 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12486 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12487 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12488 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12489 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12490 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12491 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12492 * gdbarch.c: Re-generate.
12493
12494 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12495
12496 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12497 for core files.
12498
12499 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12500
12501 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12502
12503 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12504
12505 * value.h (value_ptr): Delete typedef.
12506
12507 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12508
12509 * i386nbsd-nat.c: Update copyright years.
12510 Include i386-tdep.h.
12511
12512 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12513
12514 * stabsread.c: Update copyright years.
12515
12516 From Debashis Mahata <debashis.mahata@wipro.com>:
12517 (read_struct_fields): Deal with Sun C compiler erroneous stab
12518 output for structs and unions.
12519 Fix PR gdb/269.
12520
12521 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12522
12523 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12524 prototype.
12525
12526 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * cp-abi.c: Fix whitespace.
12529 (baseclass_offset): New wrapper function.
12530 * cp-abi.h (baseclass_offset): Add prototype.
12531 (struct cp_abi_ops): Add baseclass_offset pointer.
12532
12533 * valops.c (vb_match): Move to...
12534 * gnu-v2-abi.c (vb_match): here.
12535 * valops.c (baseclass_offset): Move to...
12536 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12537
12538 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12539
12540 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12541 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12542 * hpacc-abi.c (init_hpacc_ops): Likewise.
12543
12544 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12545
12546 * valops.c (find_overload_match): Accept obj as a
12547 reference parameter. Update it before returning.
12548 * value.h (find_overload_match): Update prototype.
12549 * eval.c (evaluate_subexp_standard): Pass object to
12550 find_overload_match by reference.
12551
12552 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12553
12554 * valarith.c: Replace value_ptr with struct value pointer. Remove
12555 register attribute from value declarations.
12556 * valops.c: Ditto.
12557 * value.h: Ditto.
12558 * scm-lang.c (scm_lookup_name): Ditto.
12559
12560 2002-01-03 Michael Snyder <msnyder@redhat.com>
12561
12562 Abstract the functionality of iterating over mapped memory
12563 regions into a general purpose iterator function.
12564 * procfs.c (iterate_over_mappings): New function, general purpose
12565 iterator for memory sections.
12566 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12567 (solib_mappings_callback): New function, callback for above.
12568 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12569 (info_mappings_callback): New function, callback for above.
12570
12571 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12572
12573 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12574
12575 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12576 * i386-tdep.c: Include "elf-bfd.h".
12577 (process_note_abi_tag_sections): New function.
12578 (i386_gdbarch_init): Add code to recognize various OS/ABI
12579 combinations.
12580
12581 * maint.c (_initialize_maint_cmds): Add missing \ in
12582 string-literal.
12583
12584 For older changes see ChangeLog-2001
12585 \f
12586 Local Variables:
12587 mode: change-log
12588 left-margin: 8
12589 fill-column: 74
12590 version-control: never
12591 End: