Disable sym_vec too.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2
3 * regcache.h (regcache_cooked_read_using_offset_hack)
4 (regcache_cooked_write_using_offset_hack): Delete declarations.
5 (register_changed): Delete declaration.
6 * regcache.c (regcache_cooked_read_using_offset_hack)
7 (regcache_cooked_write_using_offset_hack): Delete functions.
8 (cooked_xfer_using_offset_hack): Delete function.
9 (register_changed): Delete function.
10
11 2002-11-07 Jim Blandy <jimb@redhat.com>
12
13 * macroscope.c: #include "complaints.h".
14 (sal_macro_scope): Cope with filenames that appear in the symtabs,
15 but not in the macro table.
16 * Makefile.in (macroscope.o): Record dependency.
17
18 2002-11-07 Joel Brobecker <brobecker@gnat.com>
19
20 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
21
22 2002-11-07 Andrew Cagney <ac131313@redhat.com>
23
24 * regcache.c (deprecated_registers_fetched): Update.
25 * regcache.h (deprecated_registers_fetched): Rename
26 registers_fetched.
27 * remote-vxsparc.c (vx_read_register): Update.
28 * remote-vxmips.c (vx_read_register): Update.
29 * remote-vx68.c (vx_read_register): Update.
30 * irix5-nat.c (fetch_core_registers): Update.
31 * mipsm3-nat.c (fetch_inferior_registers): Update.
32 * sun3-nat.c (fetch_inferior_registers): Update.
33 * symm-nat.c (fetch_inferior_registers): Update.
34 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
35 (fetch_core_registers): Update.
36 (fetch_kcore_registers): Update.
37 * mips-nat.c (fetch_inferior_registers): Update.
38 * corelow.c (get_core_registers): Update.
39 * a68v-nat.c (fetch_inferior_registers): Update.
40
41 2002-11-06 Joel Brobecker <brobecker@gnat.com>
42
43 Put in place the framework necessary for multiarching the hppa targets.
44 * hppa-tdep.c (hppa_gdbarch_init): New function.
45 (hppa_dump_tdep): New function.
46 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
47 tdep structure dumper.
48 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
49 until the multi-arching conversion has partially been completed.
50
51 2002-11-06 Andrew Cagney <ac131313@redhat.com>
52
53 * valops.c (value_assign): Merge lval_register case into
54 lval_reg_frame_relative. Use frame_register and
55 regcache_cooked_write instead of get_saved_register and
56 write_register_bytes. After flushing the register cache, try to
57 re-select the selected frame.
58
59 2002-11-06 Andrew Cagney <ac131313@redhat.com>
60
61 * regcache.h (deprecated_register_valid): Rename register_valid.
62 * regcache.c: Update.
63 * ia64-aix-nat.c: Update.
64 * i386gnu-nat.c: Update.
65 * alpha-nat.c: Update.
66 * sparc-nat.c: Update.
67 * lynx-nat.c: Update.
68 * remote-mips.c: Update.
69
70 2002-11-06 Joel Brobecker <brobecker@gnat.com>
71
72 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
73 to end of file, to be more consistent with the pratice followed
74 by other targets.
75
76 2002-11-06 Andrew Cagney <ac131313@redhat.com>
77
78 * infcmd.c: Include "reggroups.h" and <ctype.h>.
79 (print_float_info): Print registers in float_reggroup.
80 (print_vector_info): Print registers in vector_reggroup.
81 (default_print_registers_info): When all, print registers in
82 all_reggroup. Otherwize, print registers in general_reggroup.
83 (registers_info): Rewrite. Add support for register groups.
84 Eliminate a goto.
85
86 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
87
88 * symtab.c (methods_info): Delete. It has been ifdeffed out for
89 ages.
90 (symtab_symbol_info): Remove eons old ifdeffed out code.
91 (_initialize_symtab): Remove prehistoric disabled 'info methods'
92 command.
93
94 2002-11-06 Theodore A. Roth <troth@openavr.org>
95
96 * c-exp.y: Add missing semi-colons.
97 * f-exp.y: Add missing semi-colons.
98 * m2-exp.y: Add missing semi-colons.
99 * p-exp.y: Add missing semi-colons.
100 Add empty action to start rule to avoid a type clash error when
101 building with bison >= 1.50.
102
103 2002-11-06 Jim Blandy <jimb@redhat.com>
104
105 * macrotab.h (struct macro_source_file): Doc fix.
106
107 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
108
109 * varobj.c (child_exists, cplus_number_of_children): Change
110 STREQ macro references to strcmp.
111 (cplus_name_of_child): Change code to handle the fact that
112 fields are not necessarily contiguous with regards to their
113 access control. This is a fix for PR gdb/792.
114
115 2002-11-05 Andrew Cagney <ac131313@redhat.com>
116
117 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
118 * gdbarch.h, gdbarch.c: Regnerate.
119 * frame.h (frame_register): Declare.
120 * frame.c (frame_register): New function.
121 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
122 GET_SAVED_REGISTER, otherwize call
123 generic_unwind_get_saved_register.
124 (frame_register_read): Use frame_register instead of
125 get_saved_register.
126
127 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
128
129 From Jim Ingham <jingham@apple.com>:
130 * event-top.c (gdb_disable_readline): New function.
131 (_initialize_event_loop): Move comment.
132
133 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
134
135 * event-loop.c (start_event_loop): Add comment.
136 Update copyright.
137
138 2002-11-05 Andrew Cagney <ac131313@redhat.com>
139
140 * infcmd.c (default_print_registers_info): Do not call
141 PRINT_REGISTER_HOOK.
142
143 2002-11-05 Andrew Cagney <ac131313@redhat.com>
144
145 * sparc-tdep.c (sparc_print_register_hook): Make static.
146 (sparc_print_registers_info): New function.
147 (sparc_do_registers_info): New function.
148 (sparclet_print_registers_info): New function.
149 (sparclet_do_registers_info): New function.
150 (do_sparc_print_registers_info): New function.
151 (sparc_print_registers): New static function, clone of infcmd.c's
152 default_print_registers_info.
153 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
154 (sparclet_do_registers_info): Declare.
155 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
156 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
157 Re-define.
158 (sparc_do_registers_info): Declare.
159 (PRINT_REGISTER_HOOK): Delete macro.
160 (sparc_print_register_hook): Delete declaration.
161
162 2002-11-05 David Carlton <carlton@math.stanford.edu>
163
164 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
165 functions.
166 (lookup_symbol_aux_local): New function.
167 (lookup_symbol_aux_symtabs): New function.
168 (lookup_symbol_aux_psymtabs): New function.
169
170 2002-11-05 David Carlton <carlton@math.stanford.edu>
171
172 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
173 previous values of 'objfile' and 'block'.
174
175 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
176
177 * values.c (value_change_enclosing_type): Set
178 enclosing_type field correctly also for the case where
179 more memory needs to be allocated.
180
181 2002-11-03 Mark Kettenis <kettenis@gnu.org>
182
183 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
184 of puts_filtered.
185
186 * i387-tdep.c (i387_print_float_info): Replace calls to
187 register_read and deprecated_read_register_gen with calls to
188 frame_register_read, and make the necessary adjustments to the
189 surrounding code.
190
191 2002-11-02 Andrew Cagney <ac131313@redhat.com>
192
193 * gdbarch.sh (register_reggroup_p): Allow default value.
194 * gdbarch.h, gdbarch.c: Regenerate.
195
196 2002-11-02 Andrew Cagney <ac131313@redhat.com>
197
198 * regcache.h: Add coment indicating replacements for deprecated
199 functions.
200
201 2002-11-02 Andrew Cagney <cagney@redhat.com>
202
203 * reggroups.h, reggroups.c: New files.
204 * regcache.c: Include "reggroups.h".
205 (enum regcache_dump_what): Add `regcache_dump_groups'.
206 (regcache_dump): Contract size of the "Type" column. When
207 specified, dump the register's groups.
208 (maintenance_print_register_groups): New function.
209 (_initialize_regcache): Add command `maint print register-groups'.
210 * Makefile.in (COMMON_OBS): Add reggroups.o
211 (SFILES): Add reggroups.c.
212 (reggroups_h): Define.
213 (regcache.o, gdbarch.o): Update dependencies.
214 (reggroups.o): Specify dependencies.
215 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
216 Add opaque declaration for `struct reggroup' in generated .h file.
217 Include "reggroups.h" in generated .c file.
218 gdbarch.h, gdbarch.c: Re-generate.
219
220 2002-11-02 Andrew Cagney <cagney@redhat.com>
221
222 * regcache.h (deprecated_read_register_gen): Rename
223 read_register_gen.
224 (deprecated_write_register_gen): Rename write_register_gen.
225 * i387-tdep.c: Update.
226 * x86-64-linux-nat.c: Update
227 * wince.c: Update.
228 * thread-db.c: Update.
229 * win32-nat.c: Update.
230 * mips-tdep.c: Update.
231 * d10v-tdep.c: Update.
232 * cris-tdep.c: Update.
233 * remote-sim.c: Update.
234 * remote-rdi.c: Update.
235 * remote-rdp.c: Update.
236 * frame.c: Update.
237 * target.c: Update.
238 * blockframe.c: Update.
239 * x86-64-tdep.c: Update.
240 * xstormy16-tdep.c: Update.
241 * sh-tdep.c: Update.
242 * s390-tdep.c: Update.
243 * rs6000-tdep.c: Update.
244 * sparc-tdep.c: Update.
245 * i386-tdep.c: Update.
246 * dwarf2cfi.c: Update.
247 * regcache.c: Update.
248
249 2002-11-01 Joel Brobecker <brobecker@gnat.com>
250
251 New interix-specific files:
252 * config/i386/nm-interix.h: New file.
253 * config/i386/interix.mh: New file.
254 * config/i386/interix.mt: New file.
255 * i386-interix-nat.c: New file.
256 * i386-interix-tdep.c: New file.
257
258 2002-11-01 Andrew Cagney <cagney@redhat.com>
259
260 * frame.h (deprecated_generic_get_saved_register): Rename
261 generic_get_saved_register.
262 * blockframe.c (deprecated_generic_get_saved_register): Update.
263 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
264 (xstormy16_frame_saved_register): Update.
265 * sh-tdep.c (sh_gdbarch_init): Update.
266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
267 * ia64-tdep.c (ia64_get_saved_register): Update.
268 * cris-tdep.c (cris_gdbarch_init): Update.
269 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
270 * arm-tdep.c (arm_gdbarch_init): Update.
271
272 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
273
274 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
275
276 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
277
278 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
279 trampolines in sigaction.
280
281 2002-10-31 Andrew Cagney <cagney@redhat.com>
282
283 * h8300-tdep.c: Include "gdb_assert.h".
284 (h8300_print_register): Add gdbarch, file and frame parameters.
285 Use frame_read_unsigned_register to read the register's value.
286 Use fprintf_filtered to display output.
287 (h8300_print_registers_info): Replace h8300_do_registers_info.
288 (h8300_gdbarch_init): Set print_registers_info.
289
290 2002-10-31 Andrew Cagney <cagney@redhat.com>
291
292 * frame.c (frame_read_unsigned_register): New function.
293 (frame_read_signed_register): New function.
294 * frame.h (frame_read_unsigned_register): Declare.
295 (frame_read_signed_register): Declare.
296
297 2002-10-31 Andrew Cagney <cagney@redhat.com>
298
299 * h8500-tdep.c (h8500_print_registers_info): New static function,
300 clone of infcmd.c's default_print_registers_info.
301 (h8500_do_registers_info): New funtion.
302 (h8500_print_register_hook): Rename print_register_hook, make
303 static.
304
305 * config/h8500/tm-h8500.h: Update copyright.
306 (DEPRECATED_DO_REGISTERS_INFO): Define.
307 (h8500_do_registers_info: Declare.
308 (PRINT_REGISTER_HOOK): Delete macro.
309 (print_register_hook): Delete function.
310
311 2002-10-31 Andrew Cagney <cagney@redhat.com>
312
313 * z8k-tdep.c (z8k_print_register_hook): Make static.
314 (z8k_print_registers_info): New static function, clone of
315 infcmd.c's default_print_registers_info.
316 (z8k_do_registers_info): New function. Wrap
317 z8k_print_registers_info.
318 * config/z8k/tm-z8k.h: Update copyright.
319 (PRINT_REGISTER_HOOK): Delete macro.
320 (z8k_print_register_hook): Delete declaration.
321 (DEPRECATED_DO_REGISTERS_INFO): Define.
322 (z8k_do_registers_info): Declare.
323
324 2002-10-30 Joel Brobecker <brobecker@gnat.com>
325
326 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
327 as this is already provided by value.h, and was actually causing
328 a compilation error because of a conflict in parameter type
329 declaration due to a missing const keyword.
330 (low_text_segment_addres): Fix a compilation warning.
331
332 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
333
334 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
335 registers without a name.
336 (mips_linux_cannot_store_register): Don't store registers without
337 a name.
338
339 2002-10-28 David Carlton <carlton@math.stanford.edu>
340
341 * symtab.c (find_addr_symbol): Delete. (It was already commented
342 out.)
343 * symtab.h: Delete prototype for find_addr_symbol.
344
345 2002-10-26 Andrew Cagney <cagney@redhat.com>
346
347 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
348 DO_REGISTERS_INFO.
349 gdbarch.h, gdbarch.c: Re-generate.
350 * infcmd.c (default_print_registers_info): Update reference.
351 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
352 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
353 * sh-tdep.c (sh_gdbarch_init): Ditto.
354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
355 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
356
357 2002-10-26 Mark Kettenis <kettenis@gnu.org>
358
359 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
360 cfi_init_extra_frame_info.
361 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
362 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
363
364 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
365 target where necessary. Add more comments and remove the ones
366 that don't provide any useful information.
367
368 * i386-tdep.c (i386_frame_saved_pc): Replace call to
369 deprecated_read_register_dummy with
370 frame_unwind_unsigned_register.
371
372 * i386-tdep.c (i386_extract_struct_value_address): Use
373 regcache_raw_read_unsigned instead of
374 regcache_cooked_read_unsigned since we know that the register
375 we're reading isn't a pseudo register. Rename variable 'val' into
376 the more descriptive 'addr'.
377
378 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
379 (x86_64_push_return_address): Add comment.
380 (x86_64_pop_frame): Make static.
381 (examine_argument): Clarify comment.
382 (x86_64_skip_prologue): Make prolog_expact variable static.
383
384 * dwarf2cfi.c: Fix some formatting problems.
385 (context_cpy, read_encoded_pointer): Clarify comments.
386
387 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
388 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
389 i386 target back into x86_64_gdbarch_init. Add some comments and
390 remove meaningless ones.
391
392 2002-10-25 Andrew Cagney <cagney@redhat.com>
393
394 * complaints.h (struct deprecated_complaint): Rename `struct
395 complaint'.
396 * complaints.c (complain): Update.
397 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
398 incorrect comment indicating that "symfile.h" was being included
399 for the `struct complaint' definition.
400 * remote-vx.c: Update.
401 * objc-lang.c: Update.
402 * xcoffread.c: Update.
403 * hpread.c: Update.
404 * mdebugread.c: Update.
405 * stabsread.c: Update.
406 * dwarf2read.c: Update.
407 * dwarfread.c: Update.
408 * elfread.c: Update.
409 * coffread.c: Update.
410 * stabsread.h: Update.
411 * dbxread.c: Update.
412 * buildsym.c: Update.
413 * gdbtypes.c: Update.
414 * macrotab.c: Update.
415
416 2002-10-25 Mark Kettenis <kettenis@gnu.org>
417
418 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
419 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
420 (x86_64_init_abi): ...new function.
421
422 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
423 * i386v-nat.c: Include "i386-tdep.h".
424
425 2002-10-25 Andrew Cagney <cagney@redhat.com>
426
427 * gdbtypes.c (address_space_name_to_int): Update.
428 (address_space_int_to_name): Update.
429 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
430 multi-arch predicate.
431 (address_class_name_to_type_flags): Ditto.
432 * gdbarch.h, gdbarch.c: Re-generate.
433
434 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
435
436 2002-10-24 Martin M. Hunt <hunt@redhat.com>
437
438 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
439
440 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
441
442 * symtab.h (INIT_SAL): Delete macro.
443 (init_sal): Export.
444 * symtab.c (init_sal): New function.
445
446 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
447 to init_sal function call.
448 (find_sal_from_funcs_and_line): Ditto.
449 (all_sals_for_line): Ditto.
450 * breakpoint.c (create_internal_breakpoint): Ditto.
451 (create_fork_vfork_event_catchpoint): Ditto.
452 (create_exec_event_catchpoint): Ditto.
453 (parse_breakpoint_sals): Ditto.
454 (watch_command_1): Ditto.
455 (handle_gnu_4_16_catch_command): Ditto.
456 (clear_command): Ditto.
457 * hppa-tdep.c (child_enable_exception_callback): Ditto.
458 * infcmd.c (run_stack_dummy): Ditto.
459 * infrun.c (process_event_stop_test): Ditto.
460 (check_sigtramp2): Ditto.
461 (step_over_function): Ditto.
462 * linespec.c (decode_line_2): Ditto.
463 (decode_line_1): Ditto.
464 * source.c (line_info): Ditto.
465 * symtab.c (find_pc_sect_line): Ditto.
466
467 2002-10-24 Michal Ludvig <mludvig@suse.cz>
468
469 * dwarf2cfi.c (struct context)
470 (struct context_reg): Moved to dwarf2cfi.h
471 (context_alloc, frame_state_alloc, context_cpy):
472 Made extern instead of static, removed prototypes.
473 * dwarf2cfi.h (struct context)
474 (struct context_reg): New, moved from dwarf2cfi.c
475 (context_alloc, frame_state_alloc, context_cpy):
476 New prototypes.
477 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
478 Changed from static to extern.
479 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
480 (LINUX_SIGCONTEXT_FP_OFFSET)
481 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
482 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
483 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
484 * x86-64-tdep.c (x86_64_gdbarch_init): Several
485 set_gdbarch_*() calls now use x86-64 specific functions
486 instead of DWARF2 CFI ones.
487 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
488 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
489 (x86_64_init_extra_frame_info): New prototypes.
490
491 2002-10-23 David Carlton <carlton@math.stanford.edu>
492
493 * linespec.c: #include "parser-defs.h".
494 Delete prototype for find_template_name_end.
495 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
496
497 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
498
499 * NEWS: add recent mi fixes.
500 * varobj.c (struct varobj): Add new "updated" flag.
501 (new_variable): Default "updated" flag to 0.
502 (varobj_set_value): Set "updated" flag to 1 if value
503 changes.
504 (varobj_update): Check varobj "updated" flag before
505 comparing old and refreshed values. Fix for
506 PR gdb/702.
507
508 2002-10-23 David Carlton <carlton@math.stanford.edu>
509
510 * parse.c (parse_exp_1): Use BLOCK_START.
511 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
512 SYMBOL_BLOCK_VALUE.
513 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
514
515 2002-10-23 David Carlton <carlton@math.stanford.edu>
516
517 * symtab.c: Delete cplusplus_hint.
518 Delete prototype for find_template_name_end.
519
520 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
521
522 * symtab.h: Update comment.
523
524 2002-10-23 Michael Snyder <msnyder@redhat.com>
525
526 * printcmd.c (address_info): Restore quotes in output.
527 * valops.c (value_of_local): Restore quotes in error message.
528
529 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
530
531 * symtab.c (symbol_demangled_name): New function.
532 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
533 turning most of it into a function.
534 (symbol_demangled_name): Export.
535
536 2002-10-23 Michael Snyder <msnyder@redhat.com>
537
538 * valops.c (value_of_local): Restore quotes in error message.
539
540 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
541
542 * symtab.c (symbol_init_language_specific): New function.
543 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
544 turning most of it into a function.
545 (symbol_init_language_specific): Export.
546
547 2002-10-23 David Carlton <carlton@math.stanford.edu>
548
549 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
550 (dwarf_attr_name): Ditto.
551 (dwarf_type_encoding_name): Ditto.
552 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
553 (process_die): Handle DW_TAG_namespace,
554 DW_TAG_imported_declaration, DW_TAG_imported_module.
555 (read_namespace): New function.
556
557 2002-10-22 Joel Brobecker <brobecker@gnat.com>
558
559 * configure.in: Define NEW_PROC_API on Interix too.
560 * configure: Regenerate.
561
562 2002-10-21 Joel Brobecker <brobecker@gnat.com>
563
564 * configure: Regenerate using the proper version of autoconf.
565
566 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
567
568 * findvar.c (read_var_value): Temporarily disable TLS code, until
569 complete TLS support is added.
570
571 2002-10-21 Jim Blandy <jimb@redhat.com>
572 Elena Zannoni <ezannoni@redhat.com>
573
574 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
575 for thread local storage locations.
576 (struct symbol): Add objfile field.
577 (SYMBOL_OBJFILE): Define.
578 * dwarf2read.c (is_thread_local): New static variable.
579 (new_symbol): If variable is in thread local fill in address class
580 and objfile appropriately.
581 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
582 stack operation.
583 * printcmd.c (address_info): Print the information for thread
584 local storage variable.
585 * findvar.c (read_var_value): In case of thread local variable,
586 defer to the target vector code to compute address.
587
588 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
589
590 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
591 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
592
593 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
594
595 * symtab.h (address_class): Rename
596 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
597 * hpread.c (hpread_process_one_debug_symbol): Ditto.
598 * printcmd.c (address_info): Ditto.
599 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
600
601 2002-10-20 Mark Kettenis <kettenis@gnu.org>
602
603 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
604 DBREG_DRX macro to acces debug registers.
605
606 * Makefile.in (i386obsd-tdep.o): New target.
607
608 * solib-sunos.c: Include "bcache.h" and "regcache.h".
609 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
610
611 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
612 * config/i386/obsd.mt: New file.
613 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
614 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
615 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
616 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
617 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
618 * i386obsd-tdep.c: New file.
619
620 2002-10-19 Adam Fedor <fedor@gnu.org>
621
622 * objc-exp.y (name_not_typename): Fix invalid comment.
623
624 2002-10-20 Mark Kettenis <kettenis@gnu.org>
625
626 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
627 to allocate partial syms and macro byte caches.
628
629 2002-10-18 David Carlton <carlton@math.stanford.edu>
630
631 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
632
633 2002-10-18 Adam Fedor <fedor@gnu.org>
634
635 * stabsread.c (find_name_end): New function.
636 (define_symbol): Use it.
637
638 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
639
640 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
641 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
642 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
643 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
644
645 2002-10-17 David Carlton <carlton@math.stanford.edu>
646
647 * symfile.h: Add opaque declaration for struct obstack.
648 Declare obsavestring to take a const char *.
649 * symfile.c (obsavestring): Make first argument a const char *.
650
651 2002-10-16 Adam Fedor <fedor@gnu.org>
652
653 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
654 names when matching breakpoints in current file.
655
656 2002-10-16 Kevin Buettner <kevinb@redhat.com>
657
658 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
659 (read_tag_pointer_type): Add address class support.
660 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
661 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
662 New methods.
663 * gdbarch.h, gdbarch.c: Regenerate.
664 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
665 (make_type_with_address_space, recursive_type_dump): Add address
666 class support.
667 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
668 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
669 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
670
671 2002-10-16 Klee Dienes <kdienes@apple.com>
672
673 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
674 to get the last character of a char[] buffer, not
675 name[sizeof(vptr_name)-1].
676
677 2002-10-14 Adam Fedor <fedor@gnu.org>
678
679 * symtab.h: New objc_specific struct.
680 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
681 (SYMBOL_DEMANGLED_NAME): Likewise.
682
683 2002-10-14 Adam Fedor <fedor@gnu.org>
684
685 * symfile.c (init_filename_language_table): Add ObjC file extension.
686
687 2002-10-14 Adam Fedor <fedor@gnu.org>
688
689 * utils.c (puts_filtered_tabular): New function.
690 (fprintf_symbol_filtered): Get ObjC demangled name.
691 * defs.h (puts_filtered_tabular): Declared.
692
693 2002-10-14 Kevin Buettner <kevinb@redhat.com>
694
695 * c-lang.h (c_type_print_varspec_prefix): Delete.
696 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
697 ``need_post_space'' parameter. Adjust all callers.
698
699 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
700
701 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
702 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
703 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
704 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
705
706 2002-10-13 Adam Fedor <fedor@gnu.org>
707
708 * source.c (print_source_lines): Update comments.
709
710 2002-10-13 Adam Fedor <fedor@gnu.org>
711
712 * valops.c (value_of_local): New function.
713 (value_of_this): Use it.
714 * value.h (value_of_local): Declared.
715
716 2002-10-13 Adam Fedor <fedor@gnu.org>
717
718 * parse.c: (length_of_subexp, prefixify_subexp): Handle
719 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
720
721 2002-10-12 Adam Fedor <fedor@gnu.org>
722
723 * language.c (binop_result_type): Add language_objc to case.
724 (integral_type): Likewise.
725 (character_type): Likewise.
726 (string_type): Likewise.
727 (boolean_type): Likewise.
728 (structured_type): Likewise.
729 (binop_type_check): Likewise.
730
731 2002-10-11 Adam Fedor <fedor@gnu.org>
732
733 * printcmd.c (address_info): Print 'self' for ObjC.
734
735 2002-10-11 Adam Fedor <fedor@gnu.org>
736
737 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
738 OP_SELF.
739
740 2002-10-11 Adam Fedor <fedor@gnu.org>
741
742 * language.h (CAST_IS_CONVERSION): Add language_objc.
743
744 2002-10-11 Adam Fedor <fedor@gnu.org>
745
746 * defs.h (enum language): Add language_objc.
747
748 2002-10-11 Klee Dienes <kdienes@apple.com>
749
750 * corefile.c (read_memory_typed_address): New function.
751 * gdbcore.h (read_memory_typed_address): Add prototype.
752 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
753 to read a value destined for a CORE_ADDR, not read_memory_integer.
754 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
755 (f77_get_dynamic_lowerbound): Ditto.
756
757 2002-10-11 Martin M. Hunt <hunt@redhat.com>
758
759 * utils.c (string_to_core_addr): After turning string into
760 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
761 which will do necessary sign-extension, etc.
762
763 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
764
765 * c-exp.y (THIS): Delete token and grammar rule.
766 (yylex): Don't return THIS.
767 * cp-valprint.c (vtbl_ptr_name_old): Delete.
768 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
769 * demangle.c (cplus_markers): Update comment. Put '$'
770 first. Remove CPLUS_MARKER.
771 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
772 * jv-exp.y (THIS): Delete token and grammar rule.
773 (yylex): Don't return THIS.
774 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
775 * objc-exp.y (THIS): Delete token and grammar rule.
776 (yylex): Don't return THIS.
777 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
778 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
779 (read_member_functions): Likewise for opname.
780 (read_tilde_fields): Use is_cplus_marker.
781
782 * defs.h (CPLUS_MARKER): Don't define.
783 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
784 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
785 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
786 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
787 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
788
789 * config/i386/tm-i386v4.h: Delete file.
790 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
791 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
792 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
793 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
794 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
795 * config/i386/i386sco5.mt (TM_FILE): Likewise.
796 * config/i386/i386v4.mt (TM_FILE): Likewise.
797 * config/i386/ncr3000.mt (TM_FILE): Likewise.
798
799 2002-10-10 Marko Mlinar <markom@opencores.org>
800
801 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
802 accidentially not commited 2002-10-09
803 * gdbarch.h, gdbarch.c: Re-generate.
804
805 2002-10-09 Marko Mlinar <markom@opencores.org>
806
807 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
808 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
809 * gdbarch.h, gdbarch.c: Re-generate.
810
811 2002-10-08 Petr Sorfa <petrs@caldera.com>
812
813 Revised and re-submitted by John Wolfe <jlw@caldera.com>
814
815 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
816 so we can work on more than one compilation unit at a time. This
817 helps prepare GDB to handle inter-CU die references.
818 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
819 the code to be defined before struct comp_unit_head.
820 (comp_unit_head): Added new members - offset, cu_head,
821 begin_die, next and dwarf2_abbrevs.
822 (dwarf2_abbrevs): Removed single static var; now member of
823 struct comp_unit_head.
824 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
825 members.
826 (psymtab_to_symtab_1): Changed to work with the new
827 struct comp_unit_head.
828 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
829 constructs the dwarf2_abbrevs[] inside the cu_header.
830 (dwarf2_empty_abbrev_table): Now expects a ptr to a
831 dwarf2_abbrev table to clean up.
832 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
833 handling of dwarf2_abbrevs inside the cu_header.
834 (read_partial_die): Now supports the call to the new
835 dwarf2_lookup_abbrev.
836 (read_full_die): Now supports the call to the new
837 dwarf2_lookup_abbrev.
838
839 2002-10-06 Christopher Faylor <cgf@redhat.com>
840
841 * Makefile.in (install-gdbtk): Add missing continuation backslash to
842 insure that shell variables, such as "transformed_name" are propagated
843 to later shell statements in rule.
844
845 2002-10-06 Mark Kettenis <kettenis@gnu.org>
846
847 * config/i386/nm-i386sco.h: Add protection against
848 multiple-inclusion. Include "i386/nm-i386v.h".
849 (REGISTER_U_ADDR): Remove define.
850 (i386_register_u_addr): Remove prototype.
851
852 2002-10-04 Michael Snyder <msnyder@redhat.com>
853
854 * m32r-stub.c (handle_exception): Make sure exception is "trap"
855 before treating it as a single-step event.
856
857 2002-10-03 Adam Fedor <fedor@gnu.org>
858
859 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
860 (objc_demangle): Remove assignment in if statements, Replace
861 free with xfree.
862 (add_msglist): Likewise.
863 (end_msglist): Likewise.
864 (complare_selectors): Likewise.
865 (selectors_info): Likewise.
866 (compare_classes): Likewise.
867 (classes_info): Likewise.
868 (print_object_command): Likewise.
869 (find_objc_msgcall_submethod): Replace PTR with void *.
870 * objc-lang.h: Remove check for __STDC__.
871
872 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
873
874 * ui-out.h (ui_out_field_fmt_int): New prototype.
875 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
876 of field width and alignment.
877 * stack.c (print_frame_info_base): When printing frame level, use
878 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
879 PR gdb/192
880
881 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
882
883 * MAINTAINERS: Add self to Write After Approval list.
884
885 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
886
887 * infcmd.c (interrupt_target_command_wrapper): Delete.
888 (interrupt_target_command): Make non static.
889 (nofp_registers_info): Make static.
890 * stack.c (return_command_wrapper): Delete.
891 (return_command): Make non static.
892
893 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
894
895 * event-top.c (gdb_setup_readline): New function. Code moved from
896 _initialize_event_loop().
897 (_initialize_event_loop): Call gdb_setup_readline().
898
899 2002-10-02 Andrew Cagney <ac131313@redhat.com>
900
901 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
902 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
903 * gdbarch.h, gdbarch.c: Re-generate.
904
905 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
906
907 Fix PR gdb/778
908 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
909 before recursing.
910 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
911 of fill_in_vptr_fieldno.
912
913 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
914
915 * inferior.h (registers_info, stepi_command, nexti_command,
916 continue_command, interrupt_target_command): Export from infcmd.c.
917 * frame.h (args_info, selected_frame_level_changed_hook,
918 return_command): Export from stack.c.
919 * v850ice.c (stepi_command, nexti_command, continue_command): use
920 prototypes from inferior.h.
921 * tracepoint.c (registers_info, args_info, locals_info): Use
922 prototypes from frame.h and inferior.h.
923 * Makefile.in (mi-main.o): Add dependency on frame.h.
924
925 2002-10-02 Andrew Cagney <ac131313@redhat.com>
926
927 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
928 value in register 3 adjusted by ppc_gp0_regnum.
929
930 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
931
932 2002-10-02 Marko Mlinar <markom@opencores.org>
933
934 * MAINTAINERS: Add myself to the Write After Approval list.
935
936 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
937
938 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
939 of the section for the N64 ABI, fixed.
940
941 * config/mips/tm-irix6.h: Include solib.h.
942
943 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
944
945 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
946 GNU operators.
947
948 2002-10-01 Andrew Cagney <ac131313@redhat.com>
949
950 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
951 and that "mi0" syntax has been removed.
952
953 2002-09-30 David Carlton <carlton@math.stanford.edu>
954
955 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
956 * ppc-sysv-tdep.c: #include "gdb_string.h".
957 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
958 pacify GCC.
959
960 2002-10-01 Andrew Cagney <ac131313@redhat.com>
961
962 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
963 "vrsave"'s register number.
964
965 2002-09-30 Andrew Cagney <ac131313@redhat.com>
966
967 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
968 use frame_unwind_signed_register to obtain the PC.
969 (mips_frame_chain): Handle a generic dummy frame.
970 (mips_init_extra_frame_info): When a generic dummy frame, don't
971 re-compute the frame base.
972 (mips_pop_frame): Handle generic dummy frames.
973 (mips_gdbarch_init): When generic dummy frames, set
974 use_generic_dummy_frames, push_dummy_frame to
975 generic_push_dummy_frame, pc_in_call_dummy to
976 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
977 generic_save_dummy_frame_tos.
978
979 2002-09-30 Andrew Cagney <ac131313@redhat.com>
980
981 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
982 against TOP when TOP was explictly set.
983 (generic_push_dummy_frame): Set TOP to zero.
984
985 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
986
987 * event-loop.c (start_event_loop): Rename variable 'result' to
988 'gdb_result', to avoid conflicts with upcoming intepreters changes.
989
990 2002-09-30 Keith Seitz <keiths@redhat.com>
991
992 * gdb-events.sh (selected_thread_changed): New event.
993 * gdb-events.c: Regenerated.
994 * gdb-events.h: Regenerated.
995
996 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
997
998 * MAINTAINERS: Add self to Write After Approval list.
999
1000 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1001
1002 * disasm.c: New file.
1003 * disasm.h: New file.
1004 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1005 (compare_lines): Ditto.
1006 (dump_insns): Ditto.
1007 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1008 argument.
1009 (do_assembly_only): Ditto.
1010 (do_disassembly): Renamed to gdb_disassembly and moved to
1011 disasm.c. Sdded uiout argument.
1012 * Makefile.in: Add new files. Reorder SFILES list. Update
1013 dependencies. Include libgdb.a later in the insight executable.
1014
1015 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1016
1017 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1018 bfd/elf64-alpha-fbsd.c.
1019
1020 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1021
1022 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1023 i386gnu-tdep.c.
1024
1025 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1026
1027 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1028 __FUNCTION__.
1029 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1030 function name.
1031 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1032 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1033 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1034 (S_msg_sig_post_reply): Ditto.
1035
1036 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1037
1038 * sh-tdep.c (sh_use_struct_convention): Use definition according
1039 to ABI.
1040 (sh_push_arguments): Store in register with correct endianess.
1041 (sh_default_store_return_value): Ditto.
1042 (sh_gdbarch_init): Set sizeof long double to 8.
1043
1044 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1045
1046 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1047 Fix some whitespace problems.
1048
1049 2002-09-27 David Carlton <carlton@math.stanford.edu>
1050
1051 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1052 (mcore-tdep.o): Ditto.
1053 (ns32k-tdep.o): Ditto.
1054 (ns32knbsd-tdep.o): Ditto.
1055 (sh3-rom.o): Ditto.
1056 (vax-tdep.o): Ditto.
1057 * cris-tdep.c: #include "gdb_string.h"
1058 * mcore-tdep.c: Ditto.
1059 * ns32k-tdep.c: Ditto.
1060 * ns32knbsd-tdep.c: Ditto.
1061 * sh3-rom.c: Ditto.
1062 * vax-tdep.c: Ditto.
1063
1064 2002-09-27 David Carlton <carlton@math.stanford.edu>
1065
1066 * config/djgpp/fnchange.lst: Add entries for
1067 gdb/testsuite/gdb.c++/m-static files.
1068
1069 2002-09-27 Jim Wilson <wilson@redhat.com>
1070
1071 * MAINTAINERS: Add myself to the Write After Approval list.
1072
1073 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1074
1075 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1076
1077
1078 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1079
1080 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1081 frame.
1082
1083 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1084
1085 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1086 (rs6000_struct_return_address): Delete variable.
1087 (rs6000_store_struct_return): Update.
1088 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1089 deprecated_extract_struct_value_address.
1090 (rs6000_frame_align): New function.
1091 (rs6000_gdbarch_init): Set frame_align.
1092
1093 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1094
1095 From Grace Sainsbury <graces@redhat.com>:
1096 * Makefile.in (gdbtk-main.o): New target.
1097 (gdb.o): New target.
1098 (main_h): Define.
1099 (main.o): Update dependencies.
1100 (gdb$(EXEEXT)): Add gdb.o.
1101 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1102 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1103 (SUBDIR_GDBTK_CLEAN): Set.
1104 (install-gdbtk): Install the insight binary.
1105 (uninstall-gdbtk): New target.
1106 (all-gdbtk, clean-gdbtk): New rule.
1107 * top.c (use_windows): Default to zero.
1108 * main.c: Include "main.h".
1109 (main): Delete.
1110 (struct captured_main_args): Delete.
1111 (gdb_main): New function.
1112 * main.h: New file.
1113 * gdb.c: New File.
1114
1115 2002-09-25 Andrew Cagney <cagney@redhat.com>
1116
1117 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1118 (frame_map_regnum_to_name): New function.
1119 (frame_map_name_to_regnum): New function.
1120 * frame.h (frame_map_name_to_regnum): Declare.
1121 (frame_map_regnum_to_name): Declare.
1122 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1123 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1124 * parse.c: Do not include "builtin-regs.h".
1125 (target_map_name_to_register): Delete function.
1126 (write_dollar_variable): Use frame_map_name_to_regnum.
1127 * parser-defs.h (target_map_name_to_register): Delete declaration.
1128 * expprint.c: Include "frame.h".
1129 (print_subexp): Use frame_map_regnum_to_name.
1130 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1131 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1132
1133 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1134
1135 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1136 wasn't saved, and the next innermost frame is a dummy, return the
1137 dummy frame's link register.
1138
1139 2002-09-24 Jim Blandy <jimb@redhat.com>
1140
1141 Fix from Paul Breed:
1142 * main.c (captured_main): Add a `break' after the case for 'b'.
1143
1144 2002-09-24 Keith Seitz <keiths@redhat.com>
1145
1146 * varobj.c (c_type_of_child): Use get_target_type instead
1147 of TYPE_TARGET_TYPE.
1148
1149 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1150
1151 * source.c (get_current_or_default_source_symtab_and_line): Remove
1152 function.
1153 (set_default_source_symtab_and_line): New function. Attempts to
1154 determine a source file to list lines from if one is not currently
1155 defined.
1156 (get_current_source_symtab_and_line): Initialize sal.pc and
1157 sal.end fields.
1158 (set_current_source_symtab_and_line): Mark argument as const.
1159 * source.h: Update declarations and comments.
1160 * linespec.c (decode_line_1): Replace call to removed routine above.
1161 * stack.c (print_frame_info_base): Ditto.
1162 * cli/cli-cmds.c (edit_command): Ditto.
1163 (list_command): Ditto.
1164
1165 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1166
1167 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1168 sal.pc and sal.end fields.
1169 (get_current_or_default_source_symtab_and_line): Ditto.
1170 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1171 so we do not cause a new source symtab to be searched for (reverting an
1172 unintentional change from the 2002-09-20 patch).
1173 * scm-lang.c (scm_unpac): Ditto.
1174
1175 2002-09-21 Andrew Cagney <cagney@redhat.com>
1176
1177 * complaints.c (symfile_explanations): Remove new-line from
1178 ``isolated_message''.
1179 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1180 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1181
1182 2002-09-20 Nick Clifton <nickc@redhat.com>
1183
1184 * NEWS: Announce that V850EA ISA is no longer supported.
1185 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1186
1187 2002-09-20 David Carlton <carlton@math.stanford.edu>
1188
1189 * Makefile.in (c-lang.o): Correct dependencies.
1190 (utils.o): Gather dependencies.
1191 (charset.o): Move.
1192 * c-lang.c: #include "gdb_string.h"
1193
1194 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1195
1196 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1197 * cli/cli-cmds.c (list_command): New function. Implements the new
1198 cli edit command.
1199 (_init_cli_cmds): Add new command definition.
1200 * gdb.1: Document edit command.
1201 * doc/gdb.texinfo: Document edit command.
1202
1203 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1204
1205 * source.c: Make global variables current_source_symtab and
1206 current_source_line static.
1207 (list_command): Moved to cli/cli-cmds.c.
1208 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1209 (get_first_line_listed): New accessor function.
1210 (get_lines_to_list): New accessor function.
1211 (get_current_source_symtab_and_line): New function. Retrieves the
1212 position in the source code that we consider current.
1213 (get_current_or_default_source_symtab_and_line): New function.
1214 Like the above but attempts to determine a default position if one
1215 is not currently defined.
1216 (set_current_source_symtab_and_line): New function. Sets the source
1217 code position considered current and returns the previously set one.
1218 (clear_current_source_symtab_and_line): Reset stored information about
1219 a current source line.
1220 (_initialize_source): Remove registration for the "list" command and
1221 its alias.
1222 * source.h: Add declarations for the new functions above.
1223 * symtab.h: Remove declarations for the global variables mentioned
1224 above.
1225 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1226 obtain current source line.
1227 * linespec.c (decode_line_1): Ditto.
1228 * macroscope.c (default_macro_scope): Ditto.
1229 * scm-lang.c (scm_unpac): Ditto.
1230 * stack.c (print_frame_info_base): Ditto.
1231 * symfile.c (clear_symtab_users): Ditto.
1232 * symtab.c (decode_line_spec): Ditto.
1233 * cli/cli-cmds.c (list_command): Moved here from source.c.
1234 (ambiguous_line_spec): Moved here from source.c.
1235 (_init_cli_cmds): Add definition for "list" and its alias.
1236 * Makefile.in: Update dependencies.
1237
1238 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1239
1240 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1241 with what gcc thinks is correct.
1242
1243 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1244
1245 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1246 multiple register push instruction.
1247
1248 2002-09-19 Jim Blandy <jimb@redhat.com>
1249
1250 Add support for distinct host and target character sets.
1251 * charset.c, charset.h: New files.
1252 * c-exp.y: #include "charset.h".
1253 (yylex): Convert character and string literals to the target
1254 character set, before returning them as the semantic value of the
1255 token.
1256 * c-lang.c: #include "charset.h".
1257 (c_emit_char): Use charset-specific methods to recognize
1258 characters with backslash escape forms, to decide which characters
1259 to print literally and which to print using numeric escape
1260 sequences, and to convert target characters to host characters
1261 before printing.
1262 * utils.c: #include "charset.h".
1263 (no_control_char_error): New function.
1264 (parse_escape): Use charset-specific methods to recognize
1265 backslash escapes, parse `control character' notation, and convert
1266 characters from the host character set to the target character set.
1267 * configure.in: Set the default host character set.
1268 Check where to find iconv, and what its argument types might be.
1269 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1270 * Makefile.in (SFILES): List charset.c.
1271 (COMMON_OBS): List charset.o.
1272 (charset.o): New rule.
1273 (charset_h): New header dependency variable.
1274 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1275 (LIBICONV): New variable, set by configure.
1276 (CLIBS): Include $(LIBICONV) here.
1277 * aclocal.m4, config.in, configure: Regenerated.
1278
1279 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1280
1281 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1282 bison 1.35 warning.
1283
1284 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1285
1286 * gdb_mbuild.sh: New file.
1287
1288 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1289
1290 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1291
1292 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1293
1294 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1295 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1296 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1297 valops.c, value.h: Revert previous change.
1298
1299 2002-09-18 Michael Snyder <msnyder@redhat.com>
1300
1301 Preliminary support for Objective-C:
1302 * defs.h (language_objc): New enum value.
1303 (puts_filtered_tabular): Declaration only, exported from utils.c.
1304 (skip_quoted): Delete, declared in completer.h.
1305 * c-exp.y: Include completer.h.
1306 * p-exp.y: Ditto.
1307 * jv-exp.y: Ditto.
1308 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1309 New operator enum values.
1310 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1311 * language.c (binop_result_type): Handle language_objc case.
1312 (integral_type, character_type, string_type, boolean_type,
1313 structured_type, binop_type_check): Ditto.
1314 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1315 (struct objc_specific): Add to general_symbol_info.
1316 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1317 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1318 * parser-defs.h (struct objc_class_str): New struct type.
1319 (start_msglist, end_msglist, add_msglist): Declaration only,
1320 exported from objc-lang.c.
1321 * value.h (value_of_local, value_nsstring,
1322 call_function_by_hand_expecting_type): Exported from valops.c.
1323 * valops.c (find_function_addr): Export.
1324 (call_function_by_hand_expecting_type): New function.
1325 (value_of_local): New function.
1326 * symfile.c (init_filename_language_table): Add ".m" extension
1327 for Objective-C.
1328 * utils.c (puts_filtered_tabular): New function.
1329 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1330 (set/show demangle): Extend help-string to refer to ObjC.
1331 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1332 * stabsread.c (symbol_reference_defined): Objective-C symbols
1333 may contain colons: make allowances when scanning stabs strings
1334 for colons.
1335 (objc_find_colon): New function.
1336 * printcmd.c (address_info): If language == objc then print
1337 "self" instead of "this".
1338 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1339 OP_NSSTRING, and OP_SELF.
1340 (prefixify_subexp): Ditto.
1341 * source.c (print_source_lines): Mention objc in comment.
1342 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1343 method names.
1344
1345 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1346
1347 * complaints.h: Update copyright.
1348 (struct complaints): Declare.
1349 (struct complaint): Make `message' constant.
1350 (internal_complaint): Declare.
1351 (complaint): Declare.
1352 (complaint_root): Delete declaration.
1353 (symfile_complaints): Delete declaration.
1354 (struct complaints): Add opaque declaration.
1355 (clear_complaints): Add a complaints parameter.
1356 * complaints.c: Update copyright.
1357 (enum complaint_series): Define.
1358 (complaint_root): Delete.
1359 (struct complaints): Define.
1360 (complaint_sentinel, symfile_complaint_book): New variables.
1361 (symfile_explanations, symfile_complaints): New variables.
1362 New variables.
1363 (get_complaints): New function.
1364 (vcomplaint): New function.
1365 (complaint): New function.
1366 (internal_complaint): New function.
1367 (complain): Call vcomplain with symfile_complaint.
1368 (clear_complaints): Rewrite.
1369 (_initialize_complaints): Use add_setshow_command.
1370 * Makefile.in (complaints.o): Update dependencies.
1371 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1372 to call to clear_complaints.
1373 (new_symfile_objfile, reread_symbols): Ditto.
1374 (oldsyms_complaint): Delete.
1375 (empty_symtab_complaint, unknown_option_complaint): Delete.
1376 (free_named_symtabs): Use complaint instead of complain.
1377
1378 2002-09-18 Michael Snyder <msnyder@redhat.com>
1379
1380 Contributed by Apple Computer, Inc. Merged with current sources
1381 by Adam Fedor <fedor@doc.com> [cagney].
1382
1383 * objc-lang.c: First clean-up round: comments, indentation.
1384 * objc-lang.h: Ditto.
1385 * objc-lang.y: Ditto.
1386
1387 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1388
1389 * maint.c (maintenance_internal_error): Print the parameter as the
1390 error message.
1391 (maintenance_internal_warning): New function.
1392 (_initialize_maint_cmds): Add command `maint internal-warning'.
1393
1394 * defs.h (internal_warning, internal_vwarning): Declare.
1395 * utils.c (struct internal_problem): Define.
1396 (internal_vproblem): New function.
1397 (internal_warning): New function.
1398 (internal_vwarning): New function.
1399 (internal_warning_problem, internal_error_problem): New variables.
1400 (internal_verror): Just call internal_vproblem.
1401
1402 2002-09-18 Michael Snyder <msnyder@redhat.com>
1403
1404 * objc-lang.c: New file, support for Objective-C.
1405 Preliminary check-in, not yet integrated into gdb.
1406 * objc-lang.h: New file.
1407 * objc-exp.y: New file.
1408
1409 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1410
1411 * infrun.c (signal_stop_update): Convert definition to ISO C.
1412 (signal_print_update): Ditto.
1413 (signal_pass_update): Ditto.
1414 * inflow.c (terminal_save_ours): Ditto.
1415
1416 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1417 comments.
1418
1419 * config/djgpp/fnchange.lst: Handle name clashes between
1420 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1421 bfd/coff-tic80.c.
1422
1423 * i386-linux-tdep.h: Fix tipo.
1424
1425 2002-09-18 Adam Fedor <fedor@gnu.org>
1426
1427 * MAINTAINERS: Add myself to the Write After Approval list.
1428
1429 2002-09-18 Jim Blandy <jimb@redhat.com>
1430
1431 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1432 texthigh and textlow to reader-specific structs caused
1433 objfile_relocate to miss them. This is fixable, but the work that
1434 the change was supposed to prepare GDB for never got done anyway.
1435
1436 2002-09-18 David Carlton <carlton@math.stanford.edu>
1437
1438 * MAINTAINERS: Alphabetize Write After Approval list.
1439
1440 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1441
1442 Fix PR gdb/709
1443 * values.c (value_static_field): Call read_var_value.
1444
1445 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1446
1447 * valops.c (hand_function_call): Align the initial stack pointer
1448 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1449 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1450 return value.
1451 * mips-tdep.c (mips_frame_align): New function.
1452 (mips_gdbarch_init): Set frame_align.
1453 * gdbarch.sh (FRAME_ALIGN): New method.
1454 * gdbarch.h, gdbarch.c: Re-generate.
1455
1456 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1457
1458 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1459 registers.
1460
1461 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1462
1463 * NEWS: Mention that MIPS $fp behavior changed.
1464 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1465 reference to FP_REGNUM.
1466 (mipsnbsd_cannot_store_register): Ditto.
1467 * mips-linux-nat.c: Update copyright.
1468 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1469 (mips_linux_cannot_store_register): Ditto.
1470 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1471 * config/mips/tm-mips.h: Update copyright.
1472 (FP_REGNUM): Delete macro.
1473 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1474 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1475 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1476 (mips_r3041_reg_names, mips_r3051_reg_names)
1477 (mips_r3081_reg_names): Replace "fp" with "".
1478 Fix PR gdb/480.
1479
1480 2002-09-17 Theodore A. Roth <troth@verinet.com>
1481
1482 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1483 generic_read_register_dummy() (PR gdb/703).
1484 (avr_push_return_address): #if 0 out unused vars.
1485 (avr_gdbarch_init): Enable use of avr_push_return_address().
1486
1487 2002-09-17 Michael Snyder <msnyder@redhat.com>
1488
1489 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1490 RTE will take care of it.
1491
1492 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1493
1494 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1495 invalid, return SP_REGNUM.
1496
1497 2002-09-17 Michael Snyder <msnyder@redhat.com>
1498
1499 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1500 point registers without sign extension.
1501
1502 2002-09-17 Andrew Cagney <cagney@redhat.com>
1503
1504 * blockframe.c (deprecated_read_register_dummy): Rename
1505 generic_read_register_dummy.
1506 * frame.c (frame_unwind_signed_register): New function.
1507 (frame_unwind_unsigned_register): New function.
1508 * frame.h (frame_unwind_signed_register): Declare.
1509 (frame_unwind_unsigned_register): Declare.
1510 (deprecated_read_register_dummy): Rename
1511 generic_read_register_dummy.
1512
1513 * h8300-tdep.c (h8300_frame_chain): Update.
1514 (h8300_frame_saved_pc): Update.
1515 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1516 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1517 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1518 (s390_frame_chain): Update.
1519 * v850-tdep.c (v850_find_callers_reg): Update.
1520 (v850_frame_saved_pc): Update.
1521 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1522 (m32r_find_callers_reg): Update.
1523 (m32r_frame_saved_pc): Update.
1524 * sh-tdep.c (sh_find_callers_reg): Update.
1525 (sh64_get_saved_pr): Update.
1526 (sh_init_extra_frame_info): Update.
1527 (sh_init_extra_frame_info): Update.
1528 (sh64_init_extra_frame_info): Update.
1529 (sh64_init_extra_frame_info): Update.
1530 * mcore-tdep.c (mcore_find_callers_reg): Update.
1531 (mcore_frame_saved_pc): Update.
1532 (mcore_init_extra_frame_info): Update.
1533 * i386-tdep.c (i386_frame_saved_pc): Update.
1534 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1535 (ia64_init_extra_frame_info): Update.
1536 (ia64_init_extra_frame_info): Update.
1537 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1538 * cris-tdep.c (cris_init_extra_frame_info): Update.
1539 * avr-tdep.c (avr_frame_chain): Update.
1540 (avr_init_extra_frame_info): Update.
1541 (avr_frame_saved_pc): Update.
1542 * arm-tdep.c (arm_find_callers_reg): Update.
1543 (arm_init_extra_frame_info): Update.
1544 (arm_frame_saved_pc): Update.
1545
1546 2002-09-17 Tom Tromey <tromey@redhat.com>
1547
1548 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1549 is "'".
1550
1551 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1552
1553 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1554 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1555 NEXT_PROLOGUE_INSN.
1556 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1557 NEXT_PROLOGUE_INSN.
1558
1559 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1560
1561 * osfsolib.c: Remove file, replaced by solib-osf.c.
1562 * Makefile.in: Remove compilation rules for osfsolib.c.
1563
1564 2002-09-16 David Carlton <carlton@math.stanford.edu>
1565
1566 * cp-valprint.c (cp_print_class_method): Correct args to
1567 check_stub_method_group.
1568
1569 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1570
1571 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1572 `set architecture'. Unify naming convention of functions.
1573 (h8300_skip_prologue): Improve prologue analysis.
1574 (h8300_push_arguments): Rewritten to more closely match GCC's
1575 bizarre argument-passing behavior, along with the comment describing
1576 said behavior.
1577 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1578 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1579 sim, remote-e7000.c, remote-hms.c and remote.c
1580
1581 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1582
1583 * i386-tdep.c (gdb_print_insn_i386): Removed.
1584 (i386_print_insn): New function.
1585 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1586 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1587 tm_print_insn_info.
1588
1589 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1590
1591 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1592 zero.
1593
1594 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1595
1596 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1597 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1598 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1599
1600 2002-09-13 Christopher Faylor <cgf@redhat.com>
1601
1602 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1603
1604 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1605
1606 * gdbtypes.c (check_stub_method): Make static.
1607 (check_stub_method_group): New function.
1608 * gdbtypes.h: Update prototypes.
1609 * cp-support.c: New file.
1610 * cp-support.h: New file.
1611
1612 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1613 (update_method_name_from_physname): New function.
1614 (read_member_functions): Correct method names for operators
1615 and v3 constructors/destructors. Separate v2 constructors and
1616 destructors.
1617 * Makefile.in (stabsread.o): Update dependencies.
1618 (SFILES): Add cp-support.c.
1619 (COMMON_OBS): Add cp-support.o.
1620 (cp_support_h, cp-support.o): Add.
1621
1622 * cp-valprint.c (cp_print_class_method): Call
1623 check_stub_method_group instead of check_stub_method. Remove
1624 extraneous QUITs.
1625 * p-valprint.c (pascal_object_print_class_method): Likewise.
1626 * valops.c (search_struct_method): Likewise.
1627 (find_method_list, value_struct_elt_for_reference): Likewise.
1628
1629 2002-09-13 Andrew Cagney <cagney@redhat.com>
1630
1631 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1632 * gdbarch.h, gdbarch.c: Regenerate.
1633
1634 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1635
1636 * frame.c (find_saved_register): Delete function.
1637 * frame.h (find_saved_register): Delete declaration.
1638 Fix PR gdb/631.
1639
1640 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1641
1642 * mips-tdep.c (read_next_frame_reg): Re-hack using
1643 frame_register_unwind.
1644
1645 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1646
1647 * mips-tdep.c (mips_get_saved_register): Re-hack using
1648 frame_register_unwind.
1649
1650 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1651
1652 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1653 vector. Will be useful for Interix.
1654 * gdbarch.h, gdbarch.c: Regenerate.
1655
1656 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1657 name of the malloc function by NAME_OF_MALLOC.
1658
1659 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1660
1661 * value.h (find_function_in_inferior): Add const keyword to
1662 one of the parameters. Allows us to invoke this function with
1663 a const char *.
1664 * valops.c (find_function_in_inferior): Likewise.
1665
1666 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1667
1668 * exec.c (xfer_memory): Fix compilation warning with old versions
1669 of GCC.
1670 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1671
1672 2002-09-12 David Carlton <carlton@math.stanford.edu>
1673
1674 * symtab.h: Run through gdb_indent.h.
1675 Add 2002 to Copyright year list.
1676
1677 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1678
1679 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1680 mach constants.
1681 * MAINTAINERS: Add myself to write after approval list.
1682
1683 2002-09-11 J. Brobecker <brobecker@gnat.com>
1684
1685 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1686
1687 2002-09-11 J. Brobecker <brobecker@gnat.com>
1688
1689 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1690 Interix.
1691
1692 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1693
1694 * procfs.c (do_detach): Clear current signal, not just fault.
1695 Corrects problem with breakpoint trap signal leaking to detached
1696 process on Tru64.
1697
1698 2002-09-10 Michael Snyder <msnyder@redhat.com>
1699
1700 * buildsym.c (finish_block): Protect against null pointer.
1701
1702 2002-09-10 Andrew Cagney <cagney@redhat.com>
1703
1704 * infcmd.c (default_print_registers_info): Send all output to
1705 ``file'' instead of ``gdb_stdout''.
1706
1707 2002-09-10 Michael Snyder <msnyder@redhat.com>
1708
1709 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1710 LONGEST, and use signed register read (addresses are sign-
1711 extended for mips).
1712
1713 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1714
1715 * event-loop.c (gdb_do_one_event): Make public.
1716 * event-loop.h (gdb_do_one_event): Declare.
1717
1718 2002-09-10 Jeff Law <law@redhat.com>
1719
1720 * infttrace.c (child_resume): Simplify and rework to avoid
1721 TT_PROC_CONTINUE.
1722
1723 2002-09-09 Fred Fish <fnf@intrinsity.com>
1724
1725 * printcmd.c (print_scalar_formatted): "len" is the number of
1726 target bytes, NOT the number of target bits.
1727
1728 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1729
1730 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1731 * top.c (init_main): Set rl_terminal_name.
1732
1733 2002-09-08 Aidan Skinner <aidan@velvet.net>
1734
1735 * ada-lang.c (ada_array_bound, ada_type_match,
1736 _initialize_ada_language): Fix K&R definitions.
1737 * ada-tasks.c (get_current_task): Fix K&R definitions.
1738 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1739
1740 2002-09-07 Christopher Faylor <cgf@redhat.com>
1741
1742 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1743 Add XP.
1744
1745 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1746
1747 * i386-tdep.c (i386_register_virtual_type,
1748 i386_register_convertible, i386_register_convert_to_virtual,
1749 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1750 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1751 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1752 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1753 Don't set push_arguments twice.
1754
1755 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1756 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1757 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1758 sigtramp_end to NULL.
1759 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1760 defines.
1761 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1762
1763 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1764 whitespace.
1765
1766 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1767 * gdbarch.h, gdbarch.c: Re-generate.
1768 * blockframe.c (find_pc_sect_partial_function): Convert to use
1769 SIGTRAMP_START_P predicate.
1770
1771 2002-09-05 Michael Snyder <msnyder@redhat.com>
1772
1773 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1774 generic_dummy_frame method and old method. Also distinguish
1775 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1776 (arm_extract_return_value): Use new regcache method.
1777
1778 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1779 adjustment that doesn't conform to the ABI.
1780 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1781 saved regcache, not from current regcache.
1782
1783 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1784
1785 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1786 * README: Update.
1787
1788 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1789
1790 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1791 if arm_apcs_32 is false.
1792
1793 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1794
1795 GDB 5.3 branch created.
1796
1797 2002-09-03 Theodore A. Roth <troth@verinet.com>
1798
1799 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1800 generic_unwind_get_saved_register.
1801
1802 2002-09-03 David Carlton <carlton@math.stanford.edu>
1803
1804 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1805 argument (PR gdb/653). Update call to smash_to_method_type.
1806 (read_structure_scope): Update call to dwarf2_add_member_fn.
1807
1808 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1809
1810 * x86-64-linux-tdep.c: Include gdb_string.h
1811 * x86-64-linux-nat.c: Ditto.
1812
1813 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1814
1815 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1816 when YYDEBUG is set to 1.
1817 * c-exp.y: Likewise.
1818 * f-exp.y: Likewise.
1819 * jv-exp.y: Likewise.
1820 * m2-exp.y: Likewise.
1821 * p-exp.y: Likewise.
1822
1823 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1824
1825 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1826 dependency list.
1827 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1828 solib_svr4_fetch_link_map_offsets to
1829 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1830 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1831 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1832 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1833 solib-svr4.o, and solib-legacy.o.
1834 * config/i386/tm-nbsd.h: Include solib.h.
1835
1836 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1837
1838 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1839 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1840 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1841 comment noting that this needs its own target configuration.
1842 * config/i386/nbsd.mt: New file.
1843 * config/i386/nbsdaout.mt: Remove.
1844 * config/i386/nbsdelf.mt: Ditto.
1845 * config/i386/tm-nbsdaout.h: Ditto.
1846
1847 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1848
1849 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1850 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1851 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1852 tdep->sigtramp_end.
1853 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1854 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1855 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1856
1857 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1858
1859 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1860 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1861 * i386-tdep.h (i386bsd_init_abi): New prototype.
1862 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1863 function declaration.
1864 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1865 for NetBSD-a.out or NetBSD-ELF.
1866 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1867 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1868 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1869 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1870 and nbsd-tdep.h.
1871 (i386nbsd_pc_in_sigtramp): New function.
1872 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1873 i386nbsd_pc_in_sigtramp.
1874 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1875 and i386nbsdelf_init_abi OS ABI handlers.
1876 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1877 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1878
1879 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1880
1881 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1882 registers if the target really has them.
1883
1884 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1885
1886 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1887 than nbsd-tdep.h.
1888
1889 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1890
1891 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1892 list.
1893 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1894 (alphanbsd_skip_sigtramp_frame): New functions.
1895 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1896 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1897 to alphanbsd_sigcontext_addr.
1898
1899 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1900
1901 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1902 list.
1903 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1904 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1905 nbsd_pc_in_sigtramp.
1906 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1907 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1908 * nbsd-tdep.c: Include gdb_string.h.
1909 (nbsd_pc_in_sigtramp): New function.
1910 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1911 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1912 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1913 ppcnbsd_pc_in_sigtramp.
1914 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1915 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1916 shnbsd_pc_in_sigtramp.
1917 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1918 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1919 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1920
1921 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1922
1923 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1924 watchpoints to NULL.
1925 (insert_breakpoints): set val field of watchpoints if NULL.
1926
1927
1928 2002-08-29 Jim Blandy <jimb@redhat.com>
1929
1930 * symtab.c (lookup_symbol_aux): In the cases where we find a
1931 minimal symbol of an appropriate name and use its address to
1932 select a symtab to read and search, use `name' (as passed to us)
1933 as the demangled name when searching the symtab's global and
1934 static blocks, not the minsym's name.
1935
1936 2002-08-29 Keith Seitz <keiths@redhat.com>
1937
1938 * stack.c (print_frame_info_base): Always set current_source_symtab
1939 and current_source_line.
1940
1941 2002-08-29 Donn Terry <donnte@microsoft.com>
1942
1943 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1944
1945 2002-08-28 Keith Seitz <keiths@redhat.com>
1946
1947 * stack.c (select_frame): Add FIXME concerning selected-frame
1948 events.
1949 (select_frame_command): Send selected-frame-level-changed
1950 event notification, but only if the level actually changed.
1951 (up_silently_base): Add selected-frame-level-changed event
1952 notification.
1953 (down_silently_base): Likewise.
1954
1955 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1956
1957 * Makefile.in: Update dependencies for all gdb/*.c files.
1958
1959 2002-08-27 Tom Tromey <tromey@redhat.com>
1960
1961 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1962 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1963 Update dependencies.
1964 * i387-tdep.c: Include gdb_string.h.
1965 * osabi.c: Likewise.
1966 * i386-linux-nat.c: Likewise.
1967 * lin-lwp.c: Likewise.
1968 * ax-gdb.c: Likewise.
1969 * signals/signals.c: Likewise.
1970 * jv-valprint.c: Likewise.
1971 * p-lang.c: Likewise.
1972 * c-valprint.c: Likewise.
1973 * cp-abi.c: Likewise.
1974
1975 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1976
1977 * cli/cli-script.h (copy_command_lines): Export.
1978 * breakpoint.c: Include cli/cli-script.h.
1979 * Makefile.in (breakpoint.o): Update dependencies.
1980
1981 2002-08-26 Michael Snyder <msnyder@redhat.com>
1982
1983 * breakpoint.c (insert_breakpoints): Protect all references
1984 to 'process_warning'. Shorten long lines.
1985
1986 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1987
1988 * cli/cli-script.c (copy_command_lines): New function.
1989 * defs.h (copy_command_lines): Export.
1990 * testsuite/gdb.base/commands.exp: New tests for commands
1991 attached to a temporary breakpoint, and for commands that
1992 delete the breakpoint they are attached to.
1993
1994 2002-08-26 Michael Snyder <msnyder@redhat.com>
1995
1996 * breakpoint.c (bpstat_stop_status): Instead of copying the
1997 pointer to the breakpoint commands struct, make a new copy
1998 of the struct and point to that.
1999 (bpstat_clear): Free the commands struct.
2000 (bpstat_clear_actions): Free the commands struct.
2001 (bpstat_do_actions): Free the command actions. Also execute
2002 the local cleanups, instead of deleting them.
2003 (delete_breakpoint): Leave the commands field of the bpstat
2004 chain alone -- it will be freed later.
2005
2006 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2007
2008 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2009 deleted in 2002-08-20 commit. This function is still used by
2010 ppc-linux-nat.c.
2011
2012 2002-08-26 Keith Seitz <keiths@redhat.com>
2013
2014 * gdb-events.sh: Add selected-frame-level-changed event.
2015 * gdb-events.c: Regenerated.
2016 * gdb-events.h: Regenerated.
2017
2018 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2019
2020 Fix PR gdb/393:
2021 * inflow.c (terminal_save_ours): New function to save terminal
2022 settings.
2023 * inferior.h (terminal_save_ours): Declare.
2024 * target.c (debug_to_terminal_save_ours): New function.
2025 (cleanup_target): Defaults to_terminal_save_ours.
2026 (update_current_target): Inherit to_terminal_save_ours.
2027 (setup_target_debug): Set to_terminal_save_ours.
2028 * target.h (target_terminal_save_ours): New to save terminal settings.
2029 (target_ops): New member to_terminal_save_ours.
2030 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2031 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2032 * inftarg.c (init_child_ops): Likewise.
2033 * m3-nat.c (init_m3_ops): Likewise.
2034 * procfs.c (init_procfs_ops): Likewise.
2035 * wince.c (init_child_ops): Likewise.
2036 * win32-nat.c (init_child_ops): Likewise.
2037 * sol-thread.c (init_sol_thread_ops): Likewise.
2038
2039 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2040
2041 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2042 use regcache_* functions.
2043 (i386_gdbarch_init): Set store_return_value instead of
2044 deprecated_store_return_value.
2045
2046 * regcache.c (regcache_raw_write_signed,
2047 regcache_raw_write_unsigned): New functions.
2048 * regcache.h (regcache_raw_write_signed,
2049 regcache_raw_write_unsigned): New prototypes.
2050
2051 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2052
2053 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2054 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2055 source file dependencies. Cleanup corresponding generator rules.
2056
2057 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2058
2059 * regcache.h (register_offset_hack): Declare.
2060 (regcache_cooked_read_using_offset_hack): Declare.
2061 (regcache_cooked_write_using_offset_hack): Declare.
2062
2063 * regcache.c (register_offset_hack): New function.
2064 (regcache_cooked_read_using_offset_hack): New function.
2065 (regcache_cooked_write_using_offset_hack): New function.
2066 (regcache_dump): Check that the registers, according to their
2067 offset, are packed hard against each other.
2068 (cooked_xfer_using_offset_hack): New function.
2069
2070 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2071
2072 * regcache.c (struct regcache_descr): Add field register_type.
2073 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2074 in as a parameter
2075 (init_regcache_descr): Initialize register_type. Pass the descr
2076 to init_legacy_regcache_descr. Use register_type instead of
2077 REGISTER_VIRTUAL_TYPE.
2078 (register_type): New function.
2079 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2080 * regcache.h (register_type): Declare.
2081
2082 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2083
2084 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2085 instead of deprecated_store_return_value. Fix fallout from
2086 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2087
2088 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2089
2090 * regcache.c (max_register_size): New function.
2091 (init_legacy_regcache_descr): Ensure that max_register_size is
2092 large enough for REGISTER_VIRTUAL_SIZE.
2093 * regcache.h (max_register_size): Declare.
2094
2095 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2096
2097 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2098 store_return_value.
2099 (e500_extract_return_value): Change type of valbuf pointer to
2100 void.
2101
2102 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2103
2104 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2105 workaround.
2106
2107 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2108 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2109 long long) to prevent compiler warning on 64-bit systems.
2110
2111 2002-08-23 Andrew Cagney <cagney@redhat.com>
2112
2113 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2114 (DEPRECATED_STORE_RETURN_VALUE): New method.
2115 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2116 * gdbarch.h, gdbarch.c: Re-generate.
2117
2118 * values.c (set_return_value): Pass current_regcache to
2119 STORE_RETURN_VALUE.
2120 * arch-utils.h (legacy_store_return_value): Declare.
2121 * arch-utils.c (legacy_store_return_value): New function.
2122 (legacy_extract_return_value): Update parameters.
2123
2124 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2125 STORE_RETURN_VALUE.
2126 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2127 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2128 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2129 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2130 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2131 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2132 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2133 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2134 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2135 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2136
2137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2138 * i386-tdep.c (i386_extract_return_value): Update.
2139 * arch-utils.c (legacy_extract_return_value): Update.
2140 * frv-tdep.c (frv_gdbarch_init): Update.
2141 * cris-tdep.c (cris_gdbarch_init): Update.
2142 * d10v-tdep.c (d10v_gdbarch_init): Update.
2143 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2144 * m68k-tdep.c (m68k_gdbarch_init): Update.
2145 * mcore-tdep.c (mcore_gdbarch_init): Update.
2146 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2147 * s390-tdep.c (s390_gdbarch_init): Update.
2148 * sparc-tdep.c (sparc_gdbarch_init): Update.
2149 * sh-tdep.c (sh_gdbarch_init): Update.
2150 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2151 * v850-tdep.c (v850_gdbarch_init): Update.
2152 * avr-tdep.c (avr_gdbarch_init): Update.
2153 * ia64-tdep.c (ia64_gdbarch_init): Update.
2154 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2155 * vax-tdep.c (vax_gdbarch_init): Update.
2156 * alpha-tdep.c (alpha_gdbarch_init): Update.
2157 * arm-tdep.c (arm_gdbarch_init): Update.
2158 * mips-tdep.c (mips_gdbarch_init): Update.
2159 * i386-tdep.c (i386_gdbarch_init): Update.
2160
2161 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2162
2163 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2164 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2165
2166 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2167
2168 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2169 problems.
2170
2171 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2172
2173 * infrun.c (handle_inferior_event): Move a comment outside of a
2174 function call, in order to avoid indent reformatting this part
2175 of the code in an unreadable way.
2176
2177 2002-08-23 Grace Sainsbury <graces@redhat.com>
2178
2179 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2180 when breakpoints fail. Move general breakpoint error messages to
2181 insert_breakpoints.
2182 * breakpoint.c (insert_breakpoints): Change warnings when
2183 breakpoints are nto inserted to specify the type. Remove call to
2184 memory_error when hardware breakpoints can't be inserted. Remove
2185 multiple calls to warning so all messages are sent to the user at
2186 once.
2187 (delete_breakpoints): Make insert error messsages more explicit.
2188
2189 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2190
2191 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2192 gdbserver/ChangeLog.
2193
2194 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2195
2196 * i386-tdep.c: Include "objfiles.h".
2197 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2198 skip_trampoline_code.
2199 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2200 (CPLUS_MARKER): Define to '.'.
2201
2202 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2203 member.
2204 (linux_corefile_thread_callback): Increase args->num_notes.
2205 (linux_make_note_section): Initialize thread_args.num_notes, and
2206 use it to determine whether notes for any threads were created.
2207
2208 2002-08-23 Donn Terry <donnte@microsoft.com>
2209
2210 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2211 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2212 and PCUNKILL.
2213 (write_with_trace): Conditionalize out the switch branch handling
2214 PCSHOLD if the corresponding macro is not defined. Likewise for
2215 PRSABORT and PRSTOP.
2216 This change will be needed by the Interix port.
2217
2218 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2219
2220 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2221 write_register wherever possible instead of manipulating the
2222 register bytes directly.
2223 Assign VALUE_CONTENTS to a variable and use that.
2224 The GPR numbers are now dependent on the architecture.
2225
2226 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2227
2228 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2229 ev_offset fields.
2230 (skip_prologue): Add support for BookE/e500 instructions.
2231 (e500_extract_return_value): New function.
2232 (frame_get_saved_regs): Add support for saving ev registers and
2233 pseudo gpr's.
2234 (e500_store_return_value): New function.
2235 (rs6000_gdbarch_init): Move up default intializations of
2236 deprecated_extract_return_value and store_return_value. Overwrite
2237 init of store_return_value with e500 specific version.
2238 Set extract_return_value for e500.
2239
2240 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2241
2242 * blockframe.c (generic_call_dummy_register_unwind): Use
2243 regcache_cooked_read to catch cases in which the variable is
2244 stored in a pseudo register.
2245
2246 2002-08-22 Andrew Cagney <cagney@redhat.com>
2247
2248 * NEWS: Mention that the i960 has been made obsolete.
2249 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2250 i960-tdep.c
2251 (remote-nrom.o): Obsolete target.
2252 (remote-nindy.o, i960-tdep.o): Ditto.
2253 * remote-nrom.c: Make file obsolete.
2254 * remote-nindy.c, remote-vx960.c: Ditto.
2255 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2256 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2257 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2258 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2259 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2260 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2261 i960-*-vxworks* obsolete.
2262 * MAINTAINERS: Note that the i960 is obsolete.
2263
2264 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2265
2266 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2267 detach to allow reinitialization.
2268
2269 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2270
2271 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2272 attempt).
2273
2274 2002-08-22 Jim Blandy <jimb@redhat.com>
2275
2276 * coffread.c (coff_symfile_read): Don't try to read the line
2277 number table from disk if the image file doesn't have a symbol
2278 table; we'll never actually look at the info anyway, and Windows
2279 ships DLL's with bogus file offsets for the line number data.
2280
2281 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2282
2283 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2284 an e500 executable.
2285
2286 2002-08-21 Michael Snyder <msnyder@redhat.com>
2287
2288 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2289 (MSYMBOL_SIZE): Replace macro with function.
2290 (DEFAULT_MIPS_TYPE): Delete unused macro.
2291 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2292 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2293
2294 2002-08-21 Jim Blandy <jimb@redhat.com>
2295
2296 * valops.c (value_cast): Simplify and correct logic for doing a
2297 static cast from a pointer to a base class to a pointer to a
2298 derived class.
2299
2300 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2301
2302 * infcmd.c (default_print_registers_info): Replace
2303 do_registers_info.
2304 (registers_info): Use gdbarch_print_registers_info instead of
2305 DO_REGISTERS_INFO.
2306 * inferior.h (default_print_registers_info): Replace
2307 do_registers_info.
2308 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2309 (DO_REGISTERS_INFO): Change to a predicate function.
2310 * gdbarch.h, gdbarch.c: Regenerate.
2311
2312 2002-08-21 Keith Seitz <keiths@redhat.com>
2313
2314 * gdb-events.sh: Add target-changed event.
2315 * gdb-events.c: Regenerated.
2316 * gdb-events.c: Regenerated.
2317 * valops.c (value_assign): Add target-changed event notification
2318 to inlval_register, lval_memory, and lval_reg_frame_relative.
2319
2320 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2321
2322 * NEWS: Add an entry regarding the improvement of the next/step
2323 operation on Alpha Tru64 multi-processor machines.
2324
2325 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2326
2327 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2328 directores.
2329 * Makefile.in: Update all _h macro definitions.
2330 * Makefile.in (install-gdbtk): Move to install section.
2331 (rdi-share/libangsd.a): Move to end of file.
2332
2333 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2334
2335 * frame.c (frame_register_unwind): When a register, set addrp to
2336 the register's byte.
2337
2338 2002-08-20 Michael Snyder <msnyder@redhat.com>
2339
2340 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2341 used locally, so move them from the target machine header to here.
2342 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2343 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2344 Make static.
2345 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2346
2347 2002-08-20 Andrew Cagney <cagney@redhat.com>
2348
2349 * NEWS: Mention that the Apollo line was made obsolete.
2350 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2351 m68*-hp-hpux* obsolete.
2352 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2353 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2354 * buildsym.c (make_blockvector): Make static.
2355 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2356 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2357 (ALLDEPFILES): Remove dstread.c.
2358 (dstread.o): Obsolete make rule.
2359 * dstread.c: Makefile obsolete.
2360 * dst.h: Ditto.
2361 * config/m68k/hp300hpux.mt: Ditto.
2362 * config/m68k/hp300hpux.mh: Ditto.
2363 * config/m68k/hp300bsd.mt: Ditto.
2364 * config/m68k/hp300bsd.mh: Ditto.
2365 * config/m68k/apollo68b.mt: Ditto.
2366 * config/m68k/apollo68v.mh: Ditto.
2367 * config/m68k/apollo68b.mh: Ditto.
2368
2369 2002-08-20 Michael Snyder <msnyder@redhat.com>
2370
2371 * mips-tdep.c (mips_in_return_stub): Make static.
2372 (mips_gdbarch_init): Set in_solib_return_trampoline.
2373 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2374
2375 2002-08-20 Michael Snyder <msnyder@redhat.com>
2376
2377 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2378 * gdbarch.c, gdbarch.h: Regenerate.
2379 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2380 Add.
2381 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2382
2383 2002-08-20 Michael Snyder <msnyder@redhat.com>
2384
2385 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2386 (mips_gdbarch_init): Set skip_trampoline_code,
2387 in_solib_call_trampoline.
2388 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2389 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2390
2391 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2392
2393 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2394
2395 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2396 vector type for ev registers.
2397 (e500_pseudo_register_read): New function.
2398 (e500_pseudo_register_write): New function.
2399 (e500_dwarf2_reg_to_regnum): New function.
2400 (PPC_UISA_NOFP_SPRS): New macro.
2401 (PPC_EV_REGS): New macro.
2402 (PPC_GPRS_PSEUDO_REGS): New macro.
2403 (registers_e500): New register set for e500.
2404 (variants): Add e500 variant.
2405 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2406 before setting architectural dependent variations. Initialize ev
2407 registers numbers. Add case for e500 architecture. Set the
2408 number of pseudo registers.
2409
2410 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2411
2412 * rs6000-tdep.c: Clean up comments.
2413
2414 2002-08-20 Andrew Cagney <cagney@redhat.com>
2415
2416 * h8300-tdep.c: Re-indent file.
2417
2418 2002-08-20 Jim Blandy <jimb@redhat.com>
2419
2420 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2421 default for this.
2422
2423 2002-08-20 Keith Seitz <keiths@redhat.com>
2424
2425 * breakpoints.c (watch_command_1): Use internal breakpoint
2426 when setting a watchpoint_scope breakpoint.
2427
2428 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2429
2430 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2431 (build_builtin_type_vec64i): Ditto.
2432 (build_builtin_type_vec128): Ditto.
2433 (build_builtin_type_vec128i): Ditto.
2434
2435 2002-08-19 Michael Snyder <msnyder@redhat.com>
2436
2437 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2438 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2439 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2440 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2441 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2442 CALL_DUMMY_ADDRESS): Delete.
2443 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2444 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2445 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2446 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2447 push_return_address.
2448 (mips_register_raw_size, mips_eabi_use_struct_convention,
2449 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2450 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2451 mips_init_extra_frame_info, mips_eabi_push_arguments,
2452 mips_n32n64_push_arguments, mips_push_return_address,
2453 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2454 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2455
2456 2002-08-19 Michael Snyder <msnyder@redhat.com>
2457
2458 * mips-tdep.c (mips_frame_num_args): New function.
2459 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2460 frame_saved_pc, frame_args_address, frame_locals_address,
2461 frame_num_args, and frame_args_skip.
2462 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2463 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2464 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2465 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2466
2467 2002-08-20 Michael Snyder <msnyder@redhat.com>
2468
2469 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2470 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2471 * mips-tdep.c (mips_store_struct_return): New function.
2472 (mips_extract_struct_value_address): New function.
2473 (mips_gdbarch_init): Set store_struct_return and
2474 extract_struct_value_address.
2475
2476 2002-08-20 David Carlton <carlton@math.stanford.edu>
2477
2478 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2479 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2480 (read_file_scope): Check that line_header is nonzero before
2481 decoding macro information.
2482
2483 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2484
2485 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2486 flag the general-purpose registers as floating-point on targets
2487 that don't support the floating-point registers.
2488
2489 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2490
2491 * rs6000-tdep.c (altivec_register_p): Delete.
2492 (rs6000_do_altivec_registers): Delete.
2493 (rs6000_altivec_registers_info): Delete.
2494 (rs6000_do_registers_info): Delete.
2495 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2496 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2497
2498 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2499
2500 * infcmd.c (do_registers_info): Print vector registers in hex
2501 format only.
2502 (print_vector_info): Check that printing registers
2503 makes sense.
2504 (print_float_info): Ditto.
2505
2506 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2507
2508 * mips-tdep.c (mips_gdbarch_init): Update.
2509 (mips_o32_extract_return_value): Rewrite.
2510 (mips_o32_store_return_value): Rewrite.
2511 (mips_o32_xfer_return_value): New function.
2512 (mips_xfer_register): Tweak debug print message. Allow for
2513 buf_offset when dumping the value transfered.
2514
2515 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2516
2517 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2518 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2519 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2520 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2521 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2522
2523 2002-08-14 Michael Snyder <msnyder@redhat.com>
2524
2525 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2526
2527 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2528
2529 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2530 register.
2531 (P): New macro to define a register as a pseudo register.
2532 (R, R4, R8, R16, FR32, R64, R0): Updated.
2533 (struct variant): Add new fields for number of pseudo registers
2534 and number of total registers.
2535 (tot_num_registers): New macro replacing....
2536 (num_registers): ...deleted macro.
2537 (num_registers): New function.
2538 (num_pseudo_registers): New function.
2539 (variants): Update all variants to intialize new fields correctly.
2540 Postpone initialization of number of pseudo regs and real regs.
2541 (init_variants): New function.
2542 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2543 registers offsets.
2544
2545 2002-08-19 David Carlton <carlton@math.stanford.edu>
2546
2547 * valops.c (search_struct_field): Change error message to treat
2548 return value of 0 from value_static_field as meaning that field is
2549 optimized out.
2550 (value_struct_elt_for_reference): Ditto.
2551 * values.c (value_static_field): Treat an unresolved location the
2552 same as a nonexistent symbol. Fix PR gdb/635.
2553 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2554 enclosed. Fix PR gdb/574.
2555 * MAINTAINERS: Add self to Write After Approval list.
2556
2557 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2558
2559 * mips-tdep.c (mips_xfer_register): New function.
2560 (mips_n32n64_extract_return_value): Rewrite.
2561 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2562 instead of deprecated_extract_return_value.
2563
2564 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2565
2566 * rs6000-tdep.c (TDEP): Delete macro.
2567 (branch_dest): Replace use of TDEP macro with its body.
2568 (rs6000_pop_frame): Ditto.
2569 (rs6000_push_arguments): Ditto.
2570 (rs6000_skip_trampoline_code): Ditto.
2571 (rs6000_frame_saved_pc): Ditto.
2572 (rs6000_frame_chain): Ditto.
2573 (rs6000_register_name): Ditto.
2574 (rs6000_register_byte): Ditto.
2575 (rs6000_register_raw_size): Ditto.
2576 (rs6000_register_virtual_type): Ditto.
2577 (rs6000_register_convertible): Ditto.
2578 (rs6000_convert_from_func_ptr_addr): Ditto.
2579
2580 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2581
2582 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2583 conditionally.
2584 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2585 MIPS_LINUX_JB_ELEMENT_SIZE.
2586 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2587 for MAX_REGISTER_RAW_SIZE arrays.
2588 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2589 MIPS_LINUX_JB_ELEMENT_SIZE.
2590
2591 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2592
2593 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2594
2595 2002-08-19 Aidan Skinner <aidan@velvet.net>
2596
2597 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2598 ada-valprint.c ada-tasks.c.
2599 (YYFILES): Add ada-exp.y.
2600 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2601 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2602 (ada-exp.tab.o): New target.
2603
2604 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2605
2606 * regcache.c (regcache_xfer_part): New function.
2607 (regcache_raw_read_part): New function.
2608 (regcache_raw_write_part): New function.
2609 (regcache_cooked_read_part): New function.
2610 (regcache_cooked_write_part): New function.
2611 * regcache.h (regcache_raw_read_part): Declare.
2612 (regcache_raw_write_part): Declare.
2613 (regcache_cooked_read_part): Declare.
2614 (regcache_cooked_write_part): Declare.
2615
2616 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2617
2618 * remote.c (remote_open_1): Add async_p.
2619 (remote_async_open_1): Delete.
2620 (open_remote_target): Delete.
2621 (remote_open, extended_remote_open): Update calls to remote_open_1.
2622 (remote_async_open, extended_remote_async_open): Call
2623 remote_open_1 instead of remote_async_open_1.
2624
2625 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2626
2627 * blockframe.c: Fix a few coding standard violations.
2628
2629 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2630
2631 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2632 here from ...
2633 * config/i386/tm-i386sco5.h: ... here. File removed.
2634 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2635
2636 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2637 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2638 (TM_FILE): Set to tm-i386.h.
2639 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2640 * config/i386/tm-i386v.h: Remove file.
2641 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2642 instead of "i386/tm-i386v.h".
2643 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2644 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2645 "i386/tm-i386v.h".
2646 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2647 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2648 "i386/tm-i386.h".
2649
2650 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2651
2652 * config/i386/nm-i386v.h: Add protection against
2653 multiple-inclusion.
2654 (i386_register_u_addr): Remove prototype.
2655 (register_u_addr): New prototype.
2656 (REGISTER_U_ADDR): Redefine accordingly.
2657 * i386v-nat.c: Improve several comments.
2658 (i386_register_u_addr): Change signature and rename to
2659 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2660 ubase variable.
2661
2662 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2663
2664 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2665 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2666 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2667 deprecated_extract_return_value.
2668 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2669 rename mips_o32o64_push_arguments.
2670 (mips_gdbarch_init): Update.
2671 (mips_extract_return_value): Delete.
2672 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2673 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2674 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2675 (mips_n32n64_extract_return_value): Clone
2676 mips_extract_return_value.
2677 (mips_store_return_value): Delete.
2678 (mips_o32_store_return_value): Clone mips_store_return_value.
2679 (mips_o64_store_return_value): Clone mips_store_return_value.
2680 (mips_eabi_store_return_value): Clone mips_store_return_value.
2681 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2682
2683 2002-08-18 Aidan Skinner <aidan@velvet.net>
2684
2685 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2686 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2687
2688 2002-08-18 Aidan Skinner <aidan@velvet.net>
2689
2690 * ada-lang.c: Run through gdb_indent.sh.
2691 * ada-lang.h: Run through gdb_indent.sh.
2692 * ada-tasks.c: Run through gdb_indent.sh.
2693 * ada-typeprint.c: Run through gdb_indent.sh.
2694 * ada-valprint.c: Run through gdb_indent.sh.
2695
2696 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2697
2698 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2699 ABI.
2700
2701 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2702
2703 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2704
2705 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2706 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2707
2708 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2709 write_register_gen instead of write_register_bytes.
2710
2711 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2712 i[3456]-*-osf1mk* configurations have been made obsolete.
2713 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2714 i[3456]86-*-osf1mk* hosts obsolete.
2715 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2716 targets obsolete.
2717 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2718 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2719 config/i386/i386m3.mt, config/i386/nm-m3.h,
2720 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2721 config/i386/i386mk.mh, config/i386/i386mk.mt,
2722 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2723 obsolete.
2724 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2725 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2726 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2727
2728 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2729
2730 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2731 (hppa_value_returned_from_stack): Declare.
2732 (hppa_extract_return_value): Declare.
2733 * config/pa/hppa.mt: New file.
2734 * configure.tgt: Recognize hppa*-*-*.
2735 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2736
2737 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2738
2739 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2740 comment.
2741
2742 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2743
2744 * top.c (gdb_rl_operate_and_get_next): Make sure
2745 operate-and-get-next functions correctly even when the history
2746 list is completely filled.
2747
2748 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2749
2750 * MAINTAINERS (Target Instruction Set Architectures): Rename
2751 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2752 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2753 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2754 already listed under Host/Native.
2755
2756 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2757 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2758 mips*-*-*.
2759
2760 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2761
2762 * config/ia64/ia64.mt: New file.
2763 * config/alpha/alpha.mt: New file.
2764 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2765 ia64-linux-gnu. Mention that ia64-elf is broken.
2766 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2767
2768 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2769
2770 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2771 generic_func_frame_valid instead of func_frame_valid.
2772
2773 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2774
2775 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2776 procfs appears to be broken when debugging on multi-processor
2777 machines. So enable software single stepping in order to avoid
2778 using the procfs interface to do next/step operations, using
2779 internal breakpoints instead.
2780
2781 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2782 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2783 make this pc address equal to the value it would have if the
2784 system stepping capability was used. Also set a new flag used
2785 to ensure that we don't readjust the PC one more time later.
2786
2787 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2788 address by DECR_PC_AFTER_BREAK when software single step is
2789 in use for this architecture, as this has already been taken
2790 care of in handle_inferior_event().
2791
2792 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2793
2794 * infrun.c (handle_inferior_event): Minor reformatting, to make
2795 a rather long condition expression easier to read.
2796
2797 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2798
2799 * Makefile.in (gdbtk.o): Move to end of file.
2800 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2801 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2802 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2803 (gdbtk-wrapper.o, gdbres.o): Ditto.
2804
2805 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2806
2807 * Makefile.in (copying.o): Separate out compile rule.
2808 (hpux-thread.o, procfs.o, signals.o): Ditto.
2809 (v850ice.o, z8k-tdep.o): Ditto.
2810 (tui-file.o): Move to TUI section.
2811 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2812 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2813
2814 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2815
2816 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2817 skip_trampoline_code, for better namespace-proofing.
2818
2819 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2820
2821 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2822
2823 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2824
2825 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2826
2827 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2828 signal, check whether we hit a breakpoint before checking for a
2829 single step breakpoint. Otherwise, GDB fails to notice that a
2830 breakpoint has been hit when stepping onto a breakpoint.
2831
2832 2002-08-16 Keith Seitz <keiths@redhat.com>
2833
2834 * gdb-events.sh (clear_gdb_event_hooks): New function.
2835 * gdb-events.c: Regenerate.
2836 * gdb-events.h: Regenerate.
2837
2838 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2839
2840 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2841 not_a_sw_breakpoint.
2842 * breakpoint.h (bpstat_stop_status): Add parameter names.
2843
2844 2002-08-16 Grace Sainsbury <graces@redhat.com>
2845
2846 * remote.c (remote_insert_hw_breakpoint)
2847 (remote_remove_hw_breakpoint): Fix calculation of length field
2848 for Z-packet.
2849
2850 2002-08-15 Michael Snyder <msnyder@redhat.com>
2851
2852 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2853 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2854 (supply_fpregset): Ditto.
2855
2856 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2857 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2858 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2859 (TARGET_READ_SP): Delete.
2860 (DO_REGISTERS_INFO): Delete.
2861 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2862 Delete.
2863 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2864 from macros to functions.
2865
2866 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2867 (mips_register_convertible, mips_register_convert_to_virtual,
2868 mips_register_convert_to_raw): Make static.
2869 (mips_read_sp): New function.
2870 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2871 (mips_do_registers_info): Make static.
2872 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2873 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2874 (mips_register_convert_from_type, mips_register_convert_to_type):
2875 New functions.
2876 (mips_gdbarch_init): Set up function_start_offset,
2877 register_virtual_size, pc_in_sigtramp.
2878
2879 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2880
2881 * infcmd.c (vector_info): New function.
2882 (_initialize_infcmd): Add command "info vector".
2883 (print_vector_info): New function.
2884
2885 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2886 * gdbarch.h, gdbarch.c: Regenerate.
2887
2888 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2889
2890 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2891 ``print_all''. Only print vector registers when ``print_all''.
2892
2893 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2894
2895 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2896 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2897
2898 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2899 Add `args' parameter.
2900 * gdbarch.h, gdbarch.c: Regenerate.
2901
2902 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2903
2904 * infcmd.c (float_info): Call print_float_info.
2905 (print_float_info): New function. By default, print the
2906 floating-point registers.
2907
2908 * arch-utils.h (default_print_float_info): Delete declaration.
2909 * arch-utils.c (default_print_float_info): Delete function.
2910
2911 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2912
2913 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2914 out define.
2915
2916 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2917 FRAME.
2918
2919 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2920 * configure.host: Make i[3456]86-*-aix host obsolete.
2921 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2922 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2923 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2924 config/i386/xm-i386aix.h: Make files obsolete.
2925 * i386aix-nat.c: Make file obsolete.
2926 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2927 (i386aix-nat.o): Make target obsolete.
2928
2929 * config/i386/nm-gnu.h: Removed.
2930 * config/i386/nm-i386gnu.h: New file.
2931 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2932 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2933 Moved here from ...
2934 * config/i386/tm-i386gnu.h: ... here. Removed.
2935 * config/i386/xm-i386gnu.h: Removed.
2936 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2937 (NAT_FILE): Set to nm-i386gnu.h.
2938 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2939 * i386-tdep.c: New file.
2940 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2941 (i386gnu-tdep.o): Specify dependencies.
2942
2943 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2944
2945 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2946 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2947 Adjust a few comments to reflect reality a bit closer.
2948 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2949 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2950 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2951 target_insert_watchpoint, target_remove_watchpoint):
2952 Move defines to ...
2953 * config/i386/nm-i386sco5.h: ... here.
2954 (kernel_u_size): Add prototype. Improve a few comments and add
2955 protection against multiple inclusion.
2956
2957 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2958 out define.
2959
2960 * uw-thread.c (SP_ARG0): Define if not already defined.
2961 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2962
2963 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2964
2965 * config/i386/tm-i386.h: Don't include "regcache.h".
2966
2967 * i387-tdep.h (i387_print_float_info): New prototype.
2968 * i387-tdep.c (print_i387_value, print_i387_ext,
2969 print_i387_status_word, print_i387_control_word): Add `struct
2970 ui_file *' argument and use it for output.
2971 (i387_print_float_info): Renamed from i387_float_info. Add
2972 `struct gdbarch *' and `struct ui_file *' arguments and use the
2973 latter for output.
2974 * i386-tdep.c: Include "i387-tdep.h".
2975 (i386_gdbarch_init): Set print_float_info.
2976 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2977 (FLOAT_INFO): Remove define.
2978
2979 2002-08-13 Michael Snyder <msnyder@redhat.com>
2980
2981 * mips-tdep.c (mips_push_arguments): Rename to
2982 mips_eabi_push_arguments, and tune for EABI.
2983 (MIPS_REGS_HAVE_HOME_P): Delete.
2984 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2985 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2986 Delete references to mips_regs_have_home_p.
2987
2988 2002-08-14 Keith Seitz <keiths@redhat.com>
2989
2990 * Makefile.in (install-gdbtk): Create insight plugin directory.
2991 Install plugins.tcl file.
2992
2993 2002-08-14 Keith Seitz <keiths@redhat.com>
2994
2995 * configure.in: Move SUBDIRS to near top of the file so that
2996 --enable options may add things to it.
2997 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2998 * configure: Regenerate.
2999
3000 2002-08-13 Michael Snyder <msnyder@redhat.com>
3001
3002 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3003 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3004 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3005
3006 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3007
3008 * vax-tdep.c (vax_get_saved_register): Delete function.
3009 (vax_gdbarch_init): Update.
3010 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3011 (ns32k_gdbarch_init): Update.
3012 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3013 (alpha_gdbarch_init): Update.
3014
3015 2002-08-13 Andrew Cagney <cagney@redhat.com>
3016
3017 * regcache.c (init_regcache_descr): Overallocate the
3018 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3019 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3020 nr_raw_registers.
3021 (set_register_cached): Add range checking assertions. Use
3022 current_regcache.
3023
3024 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3025
3026 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3027 numbers for MMX registers.
3028
3029 2002-08-13 Andrew Cagney <cagney@redhat.com>
3030
3031 * i386-tdep.c (i386_gdbarch_init): Use
3032 generic_unwind_get_saved_register.
3033
3034 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3035
3036 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3037 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3038 target vector.
3039 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3040 Delete. Add comment regarding this now-deleted target method.
3041
3042 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3043
3044 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3045 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3046 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3047 real PC and the page number (if it's within the memory bank window).
3048 (m68hc11_pseudo_register_write): Likewise when saving.
3049 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3050 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3051 (m68hc11_register_raw_size): And use 32-bit for it.
3052 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3053 16K memory bank is used by the prog; also use the virtual pc.
3054
3055 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3056
3057 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3058 (m68hc11_gdbarch_init): Install it in gdbarch.
3059 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3060 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3061 (MSYMBOL_SIZE): New for documentation.
3062 (insn_return_kind): Enum to specify how a function returns.
3063 (frame_extra_info): Cleanup and record the return mode.
3064 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3065 register in address computation.
3066 (m68hc11_get_return_insn): New to obtain the return instruction used
3067 by the function.
3068 (m68hc11_frame_init_saved_regs): Take into account the return
3069 instruction used by the function for far and interrupt functions.
3070 (m68hc11_init_extra_frame_info): Take into account page register.
3071 (m68hc11_frame_args_address): Adjust according to the return mode.
3072 (show_regs): Print page register only when it's used.
3073
3074 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3075
3076 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3077 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3078 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3079 registers.
3080 (m68hc11_register_raw_size): Likewise.
3081
3082 2002-08-13 Andrew Cagney <cagney@redhat.com>
3083
3084 * i386-tdep.c (i386_register_name): Handle mmx registers.
3085 (mmx_regnum_p): New function.
3086 (i386_mmx_names): New array.
3087 (mmx_num_regs): New variable.
3088 (i386_pseudo_register_read): New function.
3089 (i386_pseudo_register_write): New function.
3090 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3091
3092 * regcache.c (regcache_raw_read_unsigned): New function.
3093 (regcache_raw_read_signed): New function.
3094 * regcache.h (regcache_raw_read_unsigned): Declare.
3095 (regcache_raw_read_signed): Declare.
3096
3097 2002-08-13 Andrew Cagney <cagney@redhat.com>
3098
3099 * regcache.c (regcache_raw_read_as_address): Delete function.
3100 (regcache_cooked_read_signed): New function.
3101 (regcache_cooked_read_unsigned): New function.
3102 * regcache.h (regcache_cooked_read_signed): Declare.
3103 (regcache_cooked_read_unsigned): Declare.
3104 (regcache_raw_read_as_address): Delete declaration.
3105
3106 * blockframe.c (generic_read_register_dummy): Use
3107 regcache_cooked_read_unsigned.
3108 * i386-tdep.c (i386_extract_struct_value_address): Use
3109 regcache_cooked_read_unsigned.
3110
3111 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3112
3113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3114 double sizes according to ELF ABI flags.
3115 (gdbarch_tdep): Record elf_flags.
3116
3117 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3118
3119 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3120 (m6812_prolog): They can appear in 68HC12 function prologue.
3121 (m68hc11_frame_chain): Cleanup.
3122
3123 2002-08-12 Andrew Cagney <cagney@redhat.com>
3124
3125 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3126 declarations.
3127 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3128 (i386_linux_register_raw_size): Delete function.
3129 (i386_linux_init_abi): Update.
3130 * i386-tdep.c (i386_register_raw_size): Delete function.
3131 (i386_register_byte): Delete function.
3132 (i386_gdbarch_init): Update.
3133 (i386_register_size): Delete array.
3134 (i386_register_offset): Delete array.
3135
3136 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3137 (REGISTER_RAW_SIZE): Delete macro.
3138 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3139 (REGISTER_BYTE): Delete macro.
3140
3141 2002-08-11 Aidan Skinner <aidan@velvet.net>
3142
3143 * ada-lang.c (ada_lookup_partial_symbol)
3144 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3145 prototype names so that grep ^func works properly.
3146
3147 * ada-lang.c (ada_array_element_type)
3148 (ada_lookup_partial_symbol): Fix typos in parameter list.
3149
3150 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3151 Fix prototype names so that grep ^func works properly.
3152
3153 2002-08-10 Andrew Cagney <cagney@redhat.com>
3154 Elena Zannoni <ezannoni@redhat.com>
3155 Martin M. Hunt <hunt@redhat.com>
3156
3157 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3158 (build_builtin_type_vec128i): Set the vector bit.
3159 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3160 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3161 (build_builtin_type_vec64): New function.
3162 (build_builtin_type_vec64i): New function.
3163 (build_gdbtypes): Initialize builtin_type_vec64 and
3164 builtin_type_vec64i.
3165
3166 2002-08-09 Andrew Cagney <cagney@redhat.com>
3167
3168 * regcache.c (regcache_dump): Compare the register offset
3169 with REGISTER_BYTE.
3170 * arch-utils.c (generic_register_byte): New function.
3171 * arch-utils.h (generic_register_byte): Declare.
3172 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3173 * gdbarch.h, gdbarch.c: Regenerate.
3174
3175 2002-08-09 Andrew Cagney <cagney@redhat.com>
3176
3177 * regcache.c: Include "gdbcmd.h"
3178 (_initialize_regcache): Add commands "maintenance print
3179 registers", "maintenance print raw-registers" and "maintenance
3180 print cooked-registers".
3181 (enum regcache_dump_what): Define.
3182 (dump_endian_bytes): New function.
3183 (regcache_dump): New function.
3184 (regcache_print): New function.
3185 (maintenance_print_registers): New function.
3186 (maintenance_print_raw_registers): New function.
3187 (maintenance_print_cooked_registers): New function.
3188 * Makefile.in (regcache.o): Update dependencies.
3189
3190 2002-08-09 Michael Snyder <msnyder@redhat.com>
3191
3192 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3193 (mips_push_arguments): Correct some comments. Use paddr_nz
3194 for printing addresses in debug output. Replace static
3195 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3196 (mips_n32n64_push_arguments): New function, cloned from
3197 mips_push_arguments and tuned for the n32/n64 ABI.
3198 (mips_push_register): Buffer needs dynamic allocation.
3199 (mips_print_register): Ditto.
3200 (do_gp_register_row): Ditto.
3201 (mips_store_return_value): Ditto.
3202 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3203
3204 2002-08-09 Don Howard <dhoward@redhat.com>
3205
3206 * memattr.c (mem_info_command): Print special case of upper bound
3207 as max CORE_ADDR + 1.
3208
3209 2002-08-08 Michael Snyder <msnyder@redhat.com>
3210
3211 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3212 returns structs by ref if they're too big to fit in two registers.
3213
3214 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3215
3216 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3217 saved regs value.
3218 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3219 mips_find_saved_regs().
3220 (mips_pop_frame): Likewise.
3221
3222 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3223
3224 * blockframe.c (frame_saved_regs_register_unwind): Revise
3225 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3226 frames are in use.
3227
3228 2002-08-09 Grace Sainsbury <graces@redhat.com>
3229
3230 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3231 T-packets; the 'a' is not taken as a register number.
3232 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3233 (remote_stopped_data_address): New functions; add to target
3234 vector.
3235 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3236 prototypes to match other implementations of this
3237 function. replace integer argument with pointer -- the length
3238 field in the Z-packet is the length of what is pointed to or 1 if
3239 pointer is null. Add to target vector.
3240 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3241 target vector.
3242
3243 From Mark Salter:
3244 * remote.c (remote_wait): Add support to extract optional
3245 watchpoint information from T-packet. Ignore unrecognized
3246 optional info in T-packet.
3247 (remote_async_wait): Ditto.
3248
3249 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3250
3251 * cli/cli-dump.c: Change fopen modes to use binary open modes
3252 as defined in include/fopen-bin.h throughout.
3253
3254 2002-08-08 Michael Snyder <msnyder@redhat.com>
3255
3256 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3257
3258 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3259
3260 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3261 assertion failure by returning early after a warning.
3262
3263 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3264
3265 * mips-tdep.c (mips_find_saved_regs): Make static.
3266 (mips_frame_init_saved_regs): New function.
3267 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3268 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3269 (mips_find_saved_regs): Delete declaration.
3270
3271 2002-08-08 Grace Sainsbury <graces@redhat.com>
3272
3273 * remote.c (remote_wait, remote_async_wait): Change
3274 thread_num from int to ULONGEST.
3275 (unpack_varlen_hex): Change result parameter from
3276 int * to ULONGEST *.
3277
3278 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3279
3280 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3281 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3282 powerpc*-*-*.
3283 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3284
3285 2002-08-08 Andrew Cagney <cagney@redhat.com>
3286
3287 * gcore.c (override_derive_stack_segment): Delete variable.
3288 (preempt_derive_stack_segment): Delete function.
3289 (derive_stack_segment): Delete function.
3290 (default_derive_stack_segment): Renamed to derive_stack_segment.
3291 (override_derive_heap_segment): Delete variable.
3292 (preempt_derive_heap_segment): Delete function.
3293 (derive_heap_segment): Delete function.
3294 (default_derive_heap_segment): Rename to derive_heap_segment.
3295
3296 2002-08-06 Michael Snyder <msnyder@redhat.com>
3297
3298 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3299 * mips-tdep.c (mips_EABI_use_struct_convention,
3300 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3301 New functions. (mips_use_struct_convention): Delete.
3302 (mips_gdbarch_init): set use_gdbarch_convention.
3303
3304 2002-08-06 Michael Snyder <msnyder@redhat.com>
3305
3306 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3307 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3308 mips_o32_reg_struct_has_addr): New functions.
3309 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3310
3311 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3312
3313 * regcache.c (pseudo_register): Delete function.
3314 (fetch_register): Delete function.
3315 (store_register): Delete function.
3316 (regcache_raw_read, legacy_read_register_gen): Use
3317 target_fetch_registers instead of fetch_register.
3318 (legacy_write_register_gen, regcache_raw_write): Use
3319 target_store_register instead of store_register.
3320 (write_register_bytes): Ditto.
3321
3322 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3323 (STORE_PSEUDO_REGISTER): Delete.
3324 * gdbarch.h, gdbarch.c: Regenerate.
3325
3326 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3327
3328 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3329 write dump file binary.
3330
3331 2002-08-05 Michael Snyder <msnyder@redhat.com>
3332
3333 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3334 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3335 (mips_gdbarch_init): Set N32 target to be mips64.
3336
3337 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3338
3339 * frame.c (find_saved_register): Break out of loop once saved
3340 register address is found. Don't mention sparc in loop comment
3341 anymore.
3342
3343 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3344
3345 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3346 mips_default_saved_regsize to 8.
3347
3348 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3349
3350 * gcore.c: Do not include <sys/procfs.h>.
3351 * Makefile.in (gcore.o): Update dependencies.
3352
3353 2002-08-06 Andrew Cagney <cagney@redhat.com>
3354
3355 * configure.tgt: Make arc-*-* obsolete.
3356 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3357 * MAINTAINERS: Make arc-elf obsolete.
3358 * arc-tdep.c: Make file obsolete.
3359 * config/arc/arc.mt: Ditto.
3360 * config/arc/tm-arc.h: Ditto.
3361
3362 2002-08-05 Theodore A. Roth <troth@verinet.com>
3363
3364 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3365
3366 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3367
3368 * mcore-tdep.c (mcore_gdbarch_init): Use
3369 generic_unwind_get_saved_register instead of
3370 generic_get_saved_register.
3371 * v850-tdep.c (v850_gdbarch_init): Ditto.
3372 * frv-tdep.c (frv_gdbarch_init): Ditto.
3373 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3374 * s390-tdep.c (s390_gdbarch_init): Ditto.
3375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3376 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3377 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3378
3379 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3380
3381 * objfiles.h: Add missing #include "symfile.h"
3382
3383 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3384
3385 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3386
3387 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3388 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3389 of FIELD_BITSIZE.
3390
3391 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3392
3393 * NEWS: Cleanup and nitpick.
3394
3395 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3396
3397 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3398
3399 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3400
3401 * Makefile.in (gdbtk-bp.o): Update dependencies.
3402 (gdbtk-register.o): Ditto.
3403 (gdbtk-varobj.o): Ditto.
3404
3405 2002-08-03 Andrew Cagney <cagney@redhat.com>
3406
3407 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3408 m68hc11_fetch_pseudo_register.
3409 (m68hc11_pseudo_register_write): Replace
3410 m68hc11_store_pseudo_register.
3411 (m68hc11_gdbarch_init): Update.
3412
3413 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3414
3415 * gdbarch.sh: Include "gdb_string.h".
3416 * gdbarch.c: Regenerate.
3417
3418 * regcache.c: Include "gdb_string.h".
3419 * ax-general.c: Ditto.
3420 * varobj.c: Ditto.
3421 * std-regs.c: Ditto.
3422 * fbsd-proc.c: Ditto.
3423 * thread.c: Ditto.
3424
3425 * Makefile.in (regcache.o): Update dependencies.
3426 (thread.o, gdbarch.o): Ditto.
3427 (ax-general.o, gdbarch.o): Ditto.
3428 (varobj.o, std-regs.o): Ditto.
3429 (fbsd-proc.o): Specify dependencies.
3430
3431 2002-08-02 Andrew Cagney <cagney@redhat.com>
3432
3433 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3434 regnum.
3435 (regcache_cooked_write): Ditto.
3436
3437 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3438
3439 * regcache.c (regcache_cooked_read): New function.
3440 (regcache_cooked_write): New function.
3441 (read_register_gen): Rewrite using regcache_cooked_read.
3442 (write_register_gen): Rewrite using regcache_cooked_write.
3443
3444 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3445 Declare.
3446
3447 2002-08-02 Andrew Cagney <cagney@redhat.com>
3448
3449 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3450 Replace the architecture methods register_read and register_write.
3451 * gdbarch.h, gdbarch.c: Regenerate.
3452 * regcache.c (init_regcache_descr): Update.
3453 (read_register_gen): Update.
3454 (write_register_gen): Update.
3455 (supply_register): Update comment.
3456
3457 * sh-tdep.c (sh_gdbarch_init): Update.
3458 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3459 `regcache' and `gdbarch' parameters. Make `buffer' a void
3460 pointer. Update code.
3461 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3462 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3463 void pointer. Update code.
3464 (sh64_register_write): Delete.
3465 (sh4_register_read): Delete.
3466 (sh64_register_read): Delete.
3467 (sh4_register_write): Delete.
3468 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3469 void pointer, `to' parameter a void pointer.
3470 (sh_sh64_register_convert_to_raw): Ditto.
3471
3472 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3473
3474 * mips-tdep.c (mips_register_virtual_type): Use architecture
3475 invariant return values.
3476
3477 2002-08-01 Andrew Cagney <cagney@redhat.com>
3478
3479 * linux-proc.c: Include "gdb_string.h".
3480 * Makefile.in (linux-proc.o): Update dependency list.
3481
3482 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3483
3484 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3485 comment.
3486
3487 2002-08-01 Grace Sainsbury <graces@redhat.com>
3488
3489 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3490 to_insert_watchpoint, to_remove_watchpoint,
3491 to_stopped_by_watchpoint, to_stopped_data_address,
3492 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3493 target vecctor. Define their corresponding macros so they call
3494 them.
3495
3496 * target.c: Add default and debug versions of for
3497 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3498 to_insert_watchpoint, to_remove_watchpoint,
3499 to_stopped_by_watchpoint, to_stopped_data_address,
3500 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3501
3502 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3503
3504 * mips-tdep.c (mips_register_virtual_type): New function.
3505 (mips_gdbarch_init): Register mips_register_virtual_type()
3506 with gdbarch machinery.
3507 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3508 this file instead of tm-bigmips.h.
3509 (MIPS_REGSIZE): Delete this macro.
3510 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3511 multiarch version in mips-tdep.c will be found.
3512
3513 2002-08-01 Andrew Cagney <cagney@redhat.com>
3514
3515 * NEWS: Menion that CHILL has been made obsolete.
3516
3517 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3518 * stabsread.c (read_range_type): Ditto.
3519 * gdbtypes.h: Ditto.
3520 * language.c (binop_type_check): Ditto.
3521 (binop_result_type): Ditto.
3522 (integral_type): Ditto.
3523 (character_type): Ditto.
3524 (string_type): Ditto.
3525 (boolean_type): Ditto.
3526 (structured_type): Ditto.
3527 (lang_bool_type): Ditto.
3528 (binop_type_check): Ditto.
3529 * language.h (_LANG_chill): Ditto.
3530 * dwarfread.c (set_cu_language): Ditto.
3531 * dwarfread.c (CHILL_PRODUCER): Ditto.
3532 * dwarfread.c (handle_producer): Ditto.
3533 * expression.h (enum exp_opcode): Ditto.
3534 * eval.c: Ditto for comments.
3535 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3536 * expprint.c (print_subexp): Ditto.
3537 (print_subexp): Ditto.
3538 * valops.c (value_cast): Ditto.
3539 (search_struct_field): Ditto.
3540 * value.h (COERCE_VARYING_ARRAY): Ditto.
3541 * symfile.c (init_filename_language_table): Ditto.
3542 (add_psymbol_with_dem_name_to_list): Ditto.
3543 * valarith.c (value_binop): Ditto.
3544 (value_neg): Ditto.
3545 * valops.c (value_slice): Ditto.
3546 * symtab.h (union language_specific): Ditto.
3547 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3548 (SYMBOL_DEMANGLED_NAME): Ditto.
3549 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3550 * defs.h (enum language): Ditto.
3551 * symtab.c (got_symtab): Ditto.
3552 * utils.c (fprintf_symbol_filtered): Ditto.
3553
3554 * ch-typeprint.c: Make file obsolete.
3555 * ch-valprint.c: Make file obsolete.
3556 * ch-lang.h: Make file obsolete.
3557 * ch-exp.c: Make file obsolete.
3558 * ch-lang.c: Make file obsolete.
3559
3560 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3561 CHILL_LIB.
3562 (TARGET_FLAGS_TO_PASS): Ditto.
3563 (CHILLFLAGS): Obsolete.
3564 (CHILL): Obsolete.
3565 (CHILL_FOR_TARGET): Obsolete.
3566 (CHILL_LIB): Obsolete.
3567 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3568 ch-valprint.c.
3569 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3570 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3571 ch-lang.o.
3572 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3573 targets.
3574
3575 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3576
3577 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3578 This does not change anything at the moment, but will be helpful
3579 later when full Ada support is integrated.
3580
3581 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3582
3583 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3584 help message.
3585
3586 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3587
3588 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3589 and save it in a local variable. Use variable in later test.
3590
3591 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3592
3593 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3594 test. (Thanks to Daniel Jacobowitz.)
3595
3596 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3597
3598 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3599 (mips_abi_strings): Add "n64".
3600 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3601
3602 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3603
3604 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3605 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3606
3607 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3608
3609 * utils.c (host_pointer_to_address, address_to_host_pointer):
3610 Use gdb_assert() instead of explicit call to internal_error().
3611
3612 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3613
3614 * Makefile.in (rs6000-nat.o): Update dependencies.
3615
3616 From Nicholas Duffek:
3617 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3618 (aix-thread.o): New rule.
3619 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3620 * config/powerpc/aix432.mh: New file.
3621
3622 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3623
3624 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3625 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3626 (fetch_core_registers, ppc_linux_supply_gregset)
3627 (ppc_linux_supply_fpregset): New functions.
3628 (ppc_linux_regset_core_fns): New.
3629 (_initialize_ppc_linux_tdep): Call add_core_fns.
3630 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3631 and ppc_linux_supply_gregset.
3632 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3633 (supply_fpregset): Call ppc_linux_supply_fpregset.
3634 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3635 corelow.o.
3636 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3637
3638 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3639
3640 * symtab.c (lookup_symbol): Demangle before lowercasing.
3641
3642 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3643
3644 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3645 declaration.
3646 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3647 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3648 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3649 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3650 "gdb_string.h".
3651 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3652 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3653 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3654 (avr-tdep.o, mon960-rom.o): Ditto.
3655 (aout_stabs_gnu_h): Define.
3656 (symtab_h): Remove $(gdb_obstack_h).
3657
3658 2002-07-30 Jim Blandy <jimb@redhat.com>
3659
3660 Patch from David Carlton <carlton@math.stanford.edu>:
3661 * gdbinit.in: Move the `dir' commands that add GDB's own source
3662 directory to the search path to the end, so that the `gdb' source
3663 directory will be searched first.
3664
3665 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3666
3667 * gdb_obstack.h: New file.
3668 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3669 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3670 * objfiles.h: Include "gdb_obstack.h".
3671 * Makefile.in (gdb_obstack_h): Define.
3672 (symtab_h): Add $(gdb_obstack_h).
3673 (objfiles_h): Add $(gdb_obstack_h).
3674
3675 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3676 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3677 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3678 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3679 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3680 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3681 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3682 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3683
3684 * Makefile.in (bcache.o): Update dependencies.
3685 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3686 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3687 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3688 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3689 (stabsread.o, symfile.o, symmisc.o): Ditto.
3690 (symtab.o, typeprint.o, macroexp.o): Ditto.
3691 (macrotab.o, mdebugread.o): Ditto.
3692 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3693 (coff_ecoff_h, aout_aout64_h): Define.
3694 (aout_stabs_gnu_h, libaout_h): Define.
3695
3696 2002-07-29 Andrew Cagney <cagney@redhat.com>
3697
3698 * regcache.c (struct regcache_descr): Rename nr_registers to
3699 nr_cooked_registers. Revise comments describing the structure
3700 member fields.
3701 (init_regcache_descr): Update.
3702 (init_legacy_regcache_descr): Update.
3703 (read_register_gen, write_register_gen): When a cooked register in
3704 the raw register range, directly access the value from the raw
3705 register cache.
3706
3707 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3708
3709 * z8k-tdep.c: Do not include "obstack.h".
3710 * h8300-tdep.c, h8500-tdep.c: Ditto.
3711 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3712 * valprint.c, v850-tdep.c: Ditto.
3713 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3714 * mn10200-tdep.c: Ditto.
3715
3716 * Makefile.in (z8k-tdep.o): Update dependencies.
3717 (m68hc11-tdep.o, valprint.o): Ditto.
3718 (v850-tdep.o, d10v-tdep.o): Ditto.
3719 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3720 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3721 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3722 (sh_opc_h, gdb_sim_sh_h): Define.
3723 (elf_sh_h, elf_bfd_h): Define.
3724 (opcode_m68hc11_h): Define.
3725 (OPCODES_SRC, OPCODES_DIR): define.
3726 (OPCODES): Use $(OPCODES_DIR).
3727 (gdb_sim_d10v_h): Rename sim_d10v_h.
3728 (gdb_sim_arm_h): Rename sim_arm_h.
3729
3730 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3731
3732 * utils.c (host_pointer_to_address, address_to_host_pointer):
3733 Change internal_error() message to indicate function responsible
3734 for the error.
3735
3736 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3737
3738 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3739 calls to local_hex_string_custom().
3740
3741 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3742
3743 * irix5-nat.c: Move IRIX shared library support from here...
3744 * solib-irix.c: ...to here. Revised substantially to work with
3745 generic solib framework.
3746
3747 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3748 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3749 * mips-irix-tdep.c: New file.
3750
3751 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3752 (mips-irix-tdep.o, solib-irix.o): New rules.
3753 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3754 solib-irix.o.
3755 * config/mips/irix6.mt (TDEPFILES): Likewise.
3756 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3757
3758 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3759
3760 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3761 disabled (via ``#if 0'') includes.
3762
3763 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3764
3765 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3766 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3767 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3768 Add support for the fpscr register.
3769 * rs6000-nat.c (regmap, fetch_inferior_registers)
3770 (store_inferior_registers, fetch_core_registers): Likewise.
3771
3772 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3773
3774 * rs6000-nat.c (language.h): Include.
3775 (special_regs): Delete this array.
3776 (regmap): New function.
3777 (fetch_register, store_register): Use regmap() to map gdb
3778 register numbers to ptrace register numbers. Also, use
3779 outputs from regmap() to make decisions regarding type of
3780 ptrace() call to make. In particular, don't compare against
3781 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3782 (fetch_inferior_registers, store_inferior_registers): Where
3783 possible, obtain register numbers from tdep struct. Don't
3784 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3785 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3786 (LAST_UISA_SP_REGNUM): Delete.
3787
3788 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3789
3790 * rs6000-nat.c (ppc-tdep.h): Include.
3791 (fetch_registers, store_register, fetch_core_registers): Don't
3792 access registers[] directly. Instead, use supply_register() or
3793 regcache_collect() as appropriate.
3794 (find_toc_address): Format hex address with local_hex_string().
3795
3796 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3797
3798 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3799 bfd/elf32-frv.c.
3800
3801 2002-07-24 Tom Tromey <tromey@redhat.com>
3802
3803 * jv-exp.y: Marked all strings with _().
3804 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3805 internal_error.
3806 (MethodInvocation, CastExpression, parse_number, yyerror,
3807 java_type_from_name, push_expression_name, yylex): Typo fixes.
3808
3809 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3810
3811 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3812 (tee_file_flush, tee_file_write, tee_file_fputs)
3813 (tee_file_isatty): New.
3814 * ui-file.h (tee_file_new): Add prototype.
3815
3816 2002-07-24 Aidan Skinner <aidan@velvet.net>
3817
3818 * ada-lang.c: Change k&r style function definitions to prototyped
3819 form.
3820 * ada-typeprint.c: Change k&r style function definitions to prototyped
3821 form.
3822 * ada-valprint.c: Change k&r style function definitions to prototyped
3823 form.
3824
3825 2002-07-24 Andrew Cagney <cagney@redhat.com>
3826
3827 * README: Remove reference to remote-bug.
3828 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3829 remote-bug.c.
3830 (m88k-nat.o): Delete rule.
3831 (m88k-tdep.o): Delete rule.
3832 (remote-bug.o): Delete rule.
3833 * MAINTAINERS: Mark as obsolete.
3834 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3835 * m88k-tdep.c: Make file obsolete.
3836 * config/m88k/m88k.mh: Ditto.
3837 * config/m88k/delta88v4.mh: Ditto.
3838 * config/m88k/delta88v4.mt: Ditto.
3839 * config/m88k/delta88.mt: Ditto.
3840 * config/m88k/delta88.mh: Ditto.
3841 * remote-bug.c: Ditto.
3842 * config/m88k/tm-delta88.h: Ditto.
3843 * config/m88k/nm-delta88v4.h: Ditto.
3844 * config/m88k/xm-delta88.h: Ditto.
3845 * config/m88k/xm-dgux.h: Ditto.
3846 * config/m88k/tm-m88k.h: Ditto.
3847 * config/m88k/nm-m88k.h: Ditto.
3848 * config/m88k/tm-delta88v4.h: Ditto.
3849 * m88k-nat.c: Ditto.
3850 * cxux-nat.c: Ditto.
3851 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3852 and m88*-*-* obsolete.
3853 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3854 m88*-*-* obsolete.
3855
3856 2002-07-24 Andrew Cagney <cagney@redhat.com>
3857
3858 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3859 constant. Same for local pointer variables.
3860 (extract_signed_integer): Ditto.
3861 * defs.h (extract_unsigned_integer): Update.
3862 (extract_signed_integer): Update.
3863
3864 2002-07-24 Andrew Cagney <cagney@redhat.com>
3865
3866 * regcache.c (regcache_raw_write): Change buf parameter to a
3867 constant void pointer.
3868 (regcache_raw_read): Change buf parameter to a void pointer.
3869 (legacy_write_register_gen): Change myaddr parameter a constant
3870 void pointer.
3871 (supply_register): Change val parameter to a const void pointer.
3872 * regcache.h (regcache_raw_write): Update declaration.
3873 (regcache_raw_read): Update declaration.
3874 (supply_register): Update declaration.
3875
3876 2002-07-24 Tom Tromey <tromey@redhat.com>
3877
3878 * defs.h (gdb_readline_wrapper): Declare.
3879 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3880 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3881 * top.c (gdb_readline_wrapper): New function.
3882 (command_line_input): Use it.
3883
3884 2002-07-24 Andrew Cagney <cagney@redhat.com>
3885
3886 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3887 regcache_read and regcache_write.
3888 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3889 * regcache.c: Update.
3890 * sh-tdep.c (sh64_push_arguments): Update comment.
3891 (sh_pseudo_register_read): Update.
3892 (sh_pseudo_register_write): Update.
3893 (sh4_register_read): Update.
3894 (sh4_register_write): Update.
3895 (sh64_pseudo_register_read): Update.
3896 (sh64_pseudo_register_write): Update.
3897 (sh64_register_read): Update.
3898 (sh64_register_write): Update.
3899 * i386-tdep.c (i386_extract_return_value): Update.
3900 (i386_extract_struct_value_address): Update.
3901 (i386_extract_return_value): Update.
3902 * blockframe.c (generic_read_register_dummy): Update.
3903 (generic_call_dummy_register_unwind): Update
3904 * infrun.c (write_inferior_status_register): Update.
3905
3906 2002-07-23 Jim Blandy <jimb@redhat.com>
3907
3908 * parser-defs.h (expression_context_pc): Make this extern.
3909 (Thanks to Michael Snyder.)
3910
3911 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3912
3913 GDB 5.2.1 released from 5.2 branch.
3914 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3915 * README: Update to mention 5.2.1.
3916
3917 2002-07-23 Mark Salter <msalter@redhat.com>
3918
3919 * remote.c (remote_read_bytes): Fix check for error.
3920
3921 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3922
3923 * aix-thread.c (language.h): Include.
3924 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3925 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3926 Print newlines at end of debug messages.
3927 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3928 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3929
3930 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3931
3932 * aix-thread.c (ppc-tdep.h): Include.
3933 (special_register_p): New function.
3934 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3935 (store_regs_user_thread): Use register number information from
3936 gdbarch_tdep struct instead of hardcoded offsets relative to
3937 FIRST_UISA_SP_REGNUM.
3938 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3939 special_register_p() instead of using FPLAST_REGNUM and
3940 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3941 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3942 will be MQ's register number.
3943
3944 2002-07-22 Michael Snyder <msnyder@redhat.com>
3945
3946 * aix-thread.c (ops): Rename to aix_thread_ops.
3947 (base_ops): Rename to base_target.
3948 (ops_attach): Rename to aix_thread_attach.
3949 (ops_detach): Rename to aix_thread_detach.
3950 (ops_resume): Rename to aix_thread_detach.
3951 (ops_wait): Rename to aix_thread_wait.
3952 (ops_kill): Rename to aix_thread_kill.
3953 (init_ops): Rename to init_aix_thread_ops.
3954 (ops_fetch_register): Rename to aix_thread_fetch_register.
3955 (ops_store_register): Rename to aix_thread_store_register.
3956 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3957 (ops_thread_alive): Rename to aix_thread_thread_alive.
3958 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3959 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3960 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3961 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3962 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3963 (store_regs_lib): Rename to store_regs_user_thread.
3964 (store_regs_kern): Rename to store_regs_kernel_thread.
3965
3966 2002-07-22 Michael Snyder <msnyder@redhat.com>
3967
3968 * aix-thread.c (ops_prepare_to_store): Eliminate.
3969 (init_ops): Don't initialize ops.prepare_to_store.
3970 (store_regs_kern): Pre-fetch register buffers from child,
3971 because some registers may not be in the cache. Copy
3972 regs from register cache only if they are cached.
3973 (store_regs_lib): Copy regs from register cache only
3974 if they are cached.
3975 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3976 fill_gprs64): Ditto.
3977
3978 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3979
3980 * aix-thread.c (gdb_assert.h): Include.
3981 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3982 register sizes (from register cache) match size of buffer holding
3983 register data.
3984 (fill_sprs32): Change parameter types to match those in the ptrace()
3985 buffer.
3986 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3987 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3988
3989 2002-07-22 Michael Snyder <msnyder@redhat.com>
3990
3991 * aix-thread.c (supply_sprs64): Cosmetic change.
3992 (supply_sprs32): Cosmetic change.
3993 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3994 (fill_sprs64): Use regcache_collect instead of read_register.
3995 (store_regs_lib): Use regcache_collect instead of
3996 read_register. Use fill_sprs32 instead of fill_sprs64,
3997 if debugging a 32-bit architecture.
3998 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3999 out of the register cache, instead of passing a pointer into
4000 the register cache directly to ptrace. Use regcache_collect
4001 insteaad of read_register.
4002 (ops_prepare_to_store): Use target_read_registers instead
4003 of read_register_bytes.
4004
4005 2002-07-20 Aidan Skinner <aidan@velvet.net>
4006
4007 * MAINTAINERS: Add self under write after approval.
4008
4009 2002-07-20 Aidan Skinner <aidan@velvet.net>
4010
4011 * ada-tasks.c: Change k&r style function definitions to prototyped
4012 form.
4013
4014 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4015
4016 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4017 * x86-64-tdep.c: Include "objfiles.h".
4018 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4019 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4020
4021 2002-07-17 Michal Ludvig <michal@suse.cz>
4022
4023 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4024 (update_context): Initialise cfa variable.
4025
4026 2002-07-17 Michael Snyder <msnyder@redhat.com>
4027
4028 * aix-thread.c: Shorten some long lines.
4029 Bring comments into line with code spec.
4030
4031 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4032
4033 * infrun.c: Re-indent using gdb_indent.sh.
4034
4035 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4036
4037 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4038 Leave the indentation temporarily untouched, to minimize the diffs.
4039
4040 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4041
4042 * stabsread.c: Make os9k sections of the code obsolete,
4043 for real this time.
4044 * stabsread.h: Make os9k sections of the code obsolete.
4045
4046 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4047
4048 * linux-low.c (regsets_store_inferior_registers): Add free()
4049 at the end of a loop to prevent memory leak.
4050 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4051 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4052 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4053 line a comment.
4054 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4055
4056 2002-07-17 Jim Blandy <jimb@redhat.com>
4057
4058 * macrocmd.c (info_macro_command): Remove newline from error
4059 message.
4060
4061 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4062
4063 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4064 (sh_gdbarch_init): Use it for sh-dsp.
4065
4066 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4067
4068 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4069 64-bit DWARF2 format.
4070
4071 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4072
4073 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4074 <sys/proc.h> when not available.
4075
4076 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4077
4078 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4079 * stabsread.c: Make os9k sections of the code obsolete.
4080 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4081 * config/i386/i386os9k.mt: Make file obsolete.
4082 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4083 (COMMON_OBS): Remove os9kread.o
4084 (SFILES): Remove os9kread.c.
4085 (os9kread.o, remote-os9k.o): Make target obsolete.
4086 * remote-os9k.c: Make file obsolete.
4087 * os9kread.c: Make file obsolete.
4088 * Makefile.in
4089
4090 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4091
4092 * NEWS: Mention that the FR30 has been made obsolete.
4093 * fr30-tdep.c: Make file obsolete.
4094 * config/fr30/tm-fr30.h: Ditto.
4095 * config/fr30/fr30.mt: Ditto.
4096 * configure.tgt: Make fr30-*-elf obsolete.
4097 * MAINTAINERS: Make fr30-elf obsolete.
4098
4099 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4100
4101 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4102 found is not inside a section.
4103
4104 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4105
4106 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4107 strerror().
4108 (pdc_realloc): Use xrealloc() instead of realloc().
4109
4110 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4111
4112 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4113 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4114 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4115 macros.
4116
4117 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4118
4119 * aix-thread.c (ptrace_check): Eliminate goto.
4120 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4121 problem.
4122
4123 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4124
4125 * aix-thread.c (gdbcmd.h): Include.
4126 (DEBUG, DBG, DBG2, dbg): Eliminate.
4127 (debug_aix_thread): New static global.
4128 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4129 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4130 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4131 invocations to DBG and DBG2 macros to test against
4132 ``debug_aix_thread'' and call fprintf_unfiltered().
4133 (_initialize_aix_thread): Add new command "set debug aix-thread".
4134
4135 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4136
4137 From Gerhard Tonn <TON@de.ibm.com>:
4138 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4139 instead of supply_register.
4140
4141 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4142
4143 * dwarf2cfi.c: Include "gdb_assert.h".
4144 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4145 non-NULL.
4146 (update_context): Do not use __func__. Add missing ``break''.
4147 (update_context): Do not use __func__.
4148
4149 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4150
4151 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4152 and its setting. Set gdbarch instruction printing functions
4153 directly. For non-rs6000 case use new function
4154 gdb_print_insn_powerpc.
4155 (gdb_print_insn_powerpc): New function.
4156
4157 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4158
4159 * NEWS: Mention that the d30v has been marked obsolete.
4160 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4161 * configure.tgt: Mark d30v-*-* as obsolete.
4162 * d30v-tdep.c: Mark file as obsolete.
4163 * config/d30v/d30v.mt: Ditto.
4164 * config/d30v/tm-d30v.h: Ditto.
4165
4166 2002-07-13 Aidan Skinner <aidan@velvet.net>
4167
4168 * ada-tasks.c (add_task_entry): replace calls to
4169 malloc() with xmalloc
4170 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4171
4172 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4173 ada_finish_decode_line_1, all_sals_for_line
4174 ada_breakpoint_rewrite): replace calls to free() with xfree()
4175
4176 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4177
4178 From Nicholas Duffek (with minor changes by Martin Hunt,
4179 Louis Hamilton, and Kevin Buettner):
4180 * aix-thread.c: New file.
4181
4182 2002-07-12 Petr Sorfa <petrs@caldera.com>
4183
4184 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4185 complaint for invalid attribute class or form.
4186 (read_func_scope): DW_AT_frame_base
4187 better handling of DW_AT_block*.
4188 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4189 better handling of DW_AT_block*.
4190 (read_common_block): DW_AT_location
4191 better handling of DW_AT_block*.
4192 (read_partial_die): DW_AT_location better handling
4193 of DW_AT_block*.
4194 (new_symbol): DW_AT_external better handling of
4195 DW_AT_block*. Proper initialization of variable
4196 "addr".
4197 (attr_form_is_block): New function that returns true
4198 if the attribute's form is of DW_FORM_block*.
4199
4200 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4201
4202 * valops.c (find_method_list): Remove comment about
4203 removed STATIC_MEMFUNCP argument.
4204 (value_find_oload_method_list): Likewise.
4205
4206 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4207
4208 From Nicholas Duffek:
4209 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4210 target_new_objfile_hook.
4211
4212 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4213
4214 From Nicholas Duffek:
4215 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4216 csect.
4217
4218 2002-07-12 Andrew Cagney <cagney@redhat.com>
4219
4220 * MAINTAINERS: Mention --enable-sim-build-warnings.
4221 (m68hc11-elf): Disable sim build warnings.
4222 (m32r-elf): Mark as broken obsolete candidate.
4223 (x86_64-linux-gnu): Mark as buildable with -Werror.
4224 (arm-elf): Change -w to ``,'' which enables warnings but not
4225 -Werror.
4226
4227 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4228
4229 * bcache.h: Update copyright.
4230 (struct bstring, struct bcache): Move definition to "bcache.c".
4231 Replaced by opaque declaration.
4232 (bcache_xfree): Replace free_bcache.
4233 (bcache_xmalloc, bcache_memory_used): Declare.
4234
4235 * bcache.c: Update copyright.
4236 (struct bstring, struct bcache): Moved to here from "bcache.h".
4237 Update comments.
4238 (bcache_xmalloc, bcache_memory_used): New functions.
4239 (bcache_xfree): Replace function free_bcache.
4240
4241 * Makefile.in (objfiles.o): Add $(bcache_h).
4242 (objfiles_h): Remove $(bcache_h).
4243 (symfile.o): Add $(bcache_h).
4244
4245 * symmisc.c: Update copyright.
4246 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4247 (print_objfile_statistics): Use bcache_memory_used.
4248
4249 * symfile.c: Include "bcache.h".
4250 (reread_symbols): Use bcache_xfree.
4251 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4252 (add_psymbol_to_list): Pass psymbol_cache by value.
4253 (add_psymbol_with_dem_name_to_list): Ditto.
4254
4255 * objfiles.h: Update copyright.
4256 (struct bcache): Declare opaque. Do not include "bcache.h".
4257 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4258 bcache'' pointers.
4259 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4260
4261 * objfiles.c: Include "bcache.h". Update copyright.
4262 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4263 macro_cache.
4264 (free_objfile): Use bcache_xfree.
4265
4266 2002-07-11 Grace Sainsbury <graces@redhat.com>
4267
4268 * monitor.c (monitor_fetch_register): Make name a constant.
4269 (monitor_store_register): Same.
4270
4271 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4272
4273 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4274 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4275 (finish_block) For non-function blocks, hash the symbol table. For
4276 function blocks, mark the symbol table as unhashed.
4277 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4278 (msymbol_hash_iw): Likewise.
4279 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4280 value.
4281 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4282 (lookup_minimal_symbol): Likewise for both.
4283 * symtab.h (struct block): Add `hashtable' flag. Comment the
4284 hashtable.
4285 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4286 (ALL_BLOCK_SYMBOLS): Update.
4287 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4288 (struct symbol): Add `hash_next' pointer.
4289 * symtab.c (lookup_block_symbol): Search using the hash table when
4290 possible.
4291 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4292 (search_symbols, find_addr_symbol): Likewise.
4293
4294 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4295 (read_dst_symtab): Likewise.
4296 * jv-lang.c (get_java_class_symtab): Likewise.
4297 * mdebugread.c: Include "gdb_assert.h".
4298 (shrink_block): Assert that the block being modified is not hashed.
4299 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4300 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4301 symbols.
4302 (dump_symtab): Recognize hashed blocks.
4303 * printcmd.c (print_frame_args): Assert that function blocks do not
4304 have hashed symbol tables.
4305 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4306 (fill_in_ada_prototype, debug_print_block): Likewise.
4307 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4308
4309 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4310
4311 * stack.c (print_frame): Use result of frame_address_in_block()
4312 instead of fi->pc when evaluating symbols.
4313 (backtrace_command_1): Ditto.
4314
4315 2002-07-11 Andrew Cagney <cagney@redhat.com>
4316
4317 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4318 Make static.
4319
4320 * arm-tdep.c (arm_register_name): Make return type constant.
4321
4322 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4323
4324 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4325 prototype.
4326 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4327 * s390-tdep.c (s390_fp_regnum): Ditto.
4328 (s390_read_fp): Ditto.
4329 (s390_pop_frame): Ditto.
4330 (_initialize_s390_tdep): Ditto.
4331 * remote.c (get_remote_state): Ditto.
4332 * procfs.c (mappingflags): Ditto.
4333 * memattr.c (_initialize_mem): Ditto.
4334 * mcore-tdep.c (mcore_pop_frame): Ditto.
4335 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4336 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4337 * language.c (set_case_str): Ditto.
4338 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4339 * frv-tdep.c (new_variant): Ditto.
4340 (frv_stopped_data_address): Ditto.
4341 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4342 (context_alloc): Ditto.
4343 (frame_state_alloc): Ditto.
4344 (unwind_tmp_obstack_init): Ditto.
4345 (unwind_tmp_obstack_free): Ditto.
4346 (cfi_read_fp): Ditto.
4347 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4348 (cris_pop_frame): Ditto.
4349 * c-lang.c (scanning_macro_expansion): Ditto.
4350 (finished_macro_expansion): Ditto.
4351 (c_preprocess_and_parse): Ditto.
4352 * gdbarch.sh: Ditto.
4353 * gdbarch.h, gdbarch.c: Regenerate.
4354 * config/mn10200/tm-mn10200.h: Adjust indentation.
4355 * target.c: Adjust indentation.
4356 * symtab.h: Adjust indentation.
4357 * stabsread.h: Adjust indentation.
4358 * remote-es.c: Adjust indentation.
4359 * os9kread.c: Adjust indentation.
4360
4361 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4362
4363 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4364 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4365
4366 2002-07-10 Grace Sainsbury <graces@redhat.com>
4367
4368 * NEWS: Mention m68k, mcore multi-arching.
4369 * MAINTAINERS: Change status of m68k, mcore to reflect
4370 multi-arching.
4371
4372 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4373
4374 * valops.c (find_overload_match): Free oload_syms.
4375
4376 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4377
4378 Define HAVE_SYS_PROC_H if sys/proc.h exists
4379 * configure.in: Add check for sys/proc.h
4380 * config.in: Regenerate.
4381 * configure: Regenerate.
4382
4383 2002-07-09 Grace Sainsbury <graces@redhat.com>
4384
4385 * config/m68k/tm-m68k.h: Remove macros wrapped in
4386 #if !GDB_MULTI_ARCH.
4387
4388 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4389
4390 * config.in, configure: Regenerate.
4391
4392 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4393
4394 * dwarf2cfi.c: Include "gcore.h".
4395 (execute_stack_op): Fix implementation of the
4396 DW_OP_deref and DW_OP_deref_size operators by letting do their
4397 lookup in the target.
4398
4399 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4400
4401 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4402 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4403 tdep->sc_sp_offset.
4404
4405 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4406
4407 Fix PR gdb/595, gdb/602
4408 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4409 Don't call value_cast, just read the vtable pointer; update comments
4410 to match.
4411
4412 2002-07-05 Grace Sainsbury <graces@redhat.com>
4413
4414 * config/mcore/tm-mcore.h: Remove file.
4415 * config/mcore/mcore.mt: Remove definition of TM_FILE
4416 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4417
4418 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4419
4420 * i386bsd-tdep.c: Include "gdb_string.h".
4421
4422 2002-07-04 Grace Sainsbury <graces@redhat.com>
4423
4424 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4425 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4426 mcore-tdep.
4427 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4428 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4429 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4430 (RETVAL_REGNUM): Move macros from tm-mcore.h
4431 (mcore_reg_struct_has_addr): New function.
4432 (mcore_gdbarch_init): Added initializations for the macros removed
4433 from tm-mcore.h.
4434
4435 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4436
4437 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4438 traditonal string branding within the ELF header.
4439
4440 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4441
4442 * symtab.c (remove_params): New function.
4443 (make_symbol_overload_list): Use it instead of cplus_demangle.
4444 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4445
4446 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4447
4448 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4449
4450 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4451 New variables.
4452 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4453 and tdep->sigtramp_end.
4454 * i386obsd-nat.c: New file.
4455 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4456
4457 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4458 Don't call get_current_frame().
4459
4460 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4461
4462 * i386-nat.c (child_post_startup_inferior): New function
4463 calling i386_cleanup_dregs if
4464 I386_USE_GENERIC_WATCHPOINTS is defined.
4465 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4466 conditional to acknowledge that i386-nat.c has its
4467 own child_post_startup_inferior function.
4468
4469 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4470
4471 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4472 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4473 instead of MAX_REGISTER_RAW_SIZE.
4474 (i386_extract_return_value, i386_extract_struct_value_address):
4475 Convert to use regcache.
4476 (i386_gdbarch_init): Set max_register_raw_size and
4477 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4478 Set extract_return_value and extract_struct_value_address instead
4479 of their deprecated variants.
4480
4481 Convert i386 target to generic dummy frames.
4482 * i386-tdep.c: Include "symfile.h".
4483 (i386_frameless_signal_p): Consider a function to be frameless if
4484 the pc points at the first instruction of the function.
4485 (i386_frame_chain): Handle (generic) call dummies.
4486 (i386_frame_saved_pc): Likewise.
4487 (i386_frame_init_saved_regs): Remove code dealing with call
4488 dummies on the stack.
4489 (i386_push_dummy_frame): Removed.
4490 (i386_call_dummy_words): Removed.
4491 (i386_fix_call_dummy): Removed.
4492 (i386_push_return_address): New function.
4493 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4494 parameter, and don't call get_current_frame.
4495 (i386_pop_frame): New function.
4496 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4497 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4498 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4499 call_dummy_length to 0, set call_dummy_words to NULL, set
4500 sizeof_call_dummy_words to 0, set fix_call_dummy to
4501 generic_fix_call_dummy, set pc_in_call_dummy to
4502 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4503 generic_push_dummy_frame, set push_return_address to
4504 i386_push_return_address and set frame_chain_valid to
4505 generic_file_frame_chain_valid.
4506
4507 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4508
4509 * gdbarch.sh (struct regcache): Add opaque declaration.
4510 (EXTRACT_RETURN_VALUE): New architecture method.
4511 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4512 * gdbarch.h, gdbarch.c: Regenerate.
4513 * arch-utils.c (legacy_extract_return_value): New function.
4514 * arch-utils.h (legacy_extract_return_value): Declare.
4515 * values.c (value_being_returned): Re-enable code handling
4516 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4517 deprecated_grub_regcache_for_registers call to block handling
4518 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4519 (EXTRACT_RETURN_VALUE): Do not define.
4520
4521 2002-07-03 Grace Sainsbury <graces@redhat.com>
4522
4523 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4524 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4525 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4526 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4527 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4528 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4529 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4530 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4531 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4532 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4533 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4534 argument so the function fits the prototype in the architecture
4535 vector.
4536 (mcore_pop_frame): Remove argument so the function fits the
4537 prototype. Use get_current_frame instead of the argument.
4538 (mcore_push_arguments): Change type of struct_return so the
4539 function can be used in the architecture vector.
4540 (mcore_store_struct_return): Add.
4541 (mcore_frame_init_saved_regs): Add.
4542 (mcore_gdbarch_init): Add function calls to replace the macros
4543 removed from tm-mcore.h
4544
4545 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4546
4547 * infcmd.c (print_return_value): Remove compatibility code calling
4548 deprecated_grub_regcache_for_registers.
4549
4550 * values.c: Include "regcache.h".
4551 (value_being_returned): Update. Use
4552 deprecated_grub_regcache_for_registers to extract the register
4553 buffer address.
4554 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4555 ``struct regcache''.
4556 * Makefile.in (values.o): Add dependency on $(regcache_h).
4557
4558 * inferior.h (run_stack_dummy): Change type of second parameter to
4559 a ``struct regcache''.
4560 * valops.c (hand_function_call): Change type of retbuf to ``struct
4561 regcache''. Allocate using regcache_xmalloc, clean using
4562 make_cleanup_regcache_xfree.
4563 * infcmd.c (run_stack_dummy): Update. Use
4564 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4565
4566 * regcache.c (do_regcache_xfree): New function.
4567 (make_cleanup_regcache_xfree): New function.
4568 * regcache.h (make_cleanup_regcache_xfree): Declare.
4569
4570 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4571
4572 * event-top.c (command_line_handler): Don't read past
4573 beginning of buffer.
4574
4575 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4576
4577 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4578 struct frame_id.
4579 (varobj_create): Store frame_id for root.
4580 (varobj_gen_name): Use xasprintf.
4581 (varobj_update): Save and restore frame using get_frame_id() and
4582 frame_find_by_id().
4583 (create_child): Use xasprintf.
4584 (new_root_variable): Initialize frame_id.
4585 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4586 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4587 to prevent memory leak.
4588
4589 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4590
4591 * valops.c (hand_function_call): Move declaration of retbuf to
4592 start of function, allocate using malloc, add a cleanup but before
4593 the inf_status cleanup, cleanup the buffer. Rename local variable
4594 old_chain to inf_status_cleanup.
4595
4596 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4597
4598 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4599
4600 * cli/cli-decode.c (cmd_func_p): New function.
4601 (cmd_func): New function.
4602
4603 * command.h: Add cmd_func() and cmd_func_p().
4604
4605 2002-07-03 Grace Sainsbury <graces@redhat.com>
4606
4607 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4608 (REGISTER_SIZE): Remove.
4609 (MAX_REGISTER_RAW_SIZE): Remove.
4610 (REGISTER_VIRTUAL_TYPE): Remove.
4611 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4612 (REGISTER_NAME): Remove.
4613 (USE_GENERIC_DUMMY_FRAMES): Remove.
4614 (CALL_DUMMY): Remove.
4615 (CALL_DUMMY_START_OFFSET): Remove.
4616 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4617 (CALL_DUMMY_LOCATION): Remove.
4618 (FIX_CALL_DUMMY): Remove.
4619 (CALL_DUMMY_ADDRESS): Remove.
4620 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4621 (SAVE_DUMMY_FRAME_TOS): Remove.
4622 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4623 (mcore_register_virtual_type): New function.
4624 (mcore_register_byte): New function.
4625 (mcore_register_size): New function.
4626 (mcore_register_name): New function.
4627 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4628 macros removed from tm-mcore.h.
4629 (mcore_dump_tdep): Add.
4630 (_initialize_mcore_tdep): Add gdbarch_register call.
4631
4632 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4633
4634 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4635 frameless_look_for_prologue, such that we actually call this
4636 function.
4637
4638 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4639
4640 * frame.h (frame_address_in_block): New function.
4641
4642 * blockframe.c (frame_address_in_block): New function extracted
4643 from get_frame_block().
4644 (get_frame_block): Use frame_address_in_block().
4645 (block_innermost_frame): Use frame_address_in_block() to match
4646 the frame pc address against the block boundaries rather than
4647 the frame pc directly. This prevents a failure when a frame pc
4648 is actually a return-address pointing immediately after the end
4649 of the given block.
4650
4651 2002-07-02 Grace Sainsbury <graces@redhat.com>
4652
4653 * MAINTAINERS: Add self under write after approval.
4654
4655 2002-07-02 Grace Sainsbury <graces@redhat.com>
4656
4657 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4658 used in architecture vector. The default is
4659 m68k_local_breakpoint_from_pc.
4660 (m68k_local_breakpoint_from_pc): Add.
4661 (enum): Add register numbers from tm-m68k.h.
4662 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4663 vector.
4664 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4665 GDB_MULTI_ARCH_PARTIAL.
4666 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4667 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4668 m68k-tdep.c.
4669 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4670 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4671 to enum in m68k-tdep.c
4672
4673 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4674
4675 * solib-osf.c (open_map): Compute the list of shared libraries
4676 loaded by the inferior, rather than the list of libraries loaded
4677 by GDB itself. Otherwise, GDB ends up reading the symbols from
4678 the wrong shared libraries...
4679
4680 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4681
4682 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4683 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4684 macros.
4685 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4686 Remove functions.
4687 (FRAMELESS_SIGNAL): Remove function.
4688 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4689 i386_linux_saved_pc_after_call): Removed.
4690 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4691 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4692 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4693
4694 * i386-tdep.c (i386_frameless_signal_p): New function.
4695 (i386_frame_chain): Deal with frameless signals.
4696 (i386_sigtramp_saved_sp): New function.
4697 (i386_frame_saved_pc): Deal with frameless signals.
4698 (i386_saved_pc_after_call): Make sure the correct value is
4699 returned just after entry into a sigtramp.
4700 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4701 i386fbsd4_sc_sp_offset): New variables.
4702 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4703 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4704 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4705 similiar to what we already did for sc_pc_offset.
4706 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4707 tdep->sc_sp_offset.
4708
4709 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4710
4711 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4712
4713 * config/i386/tm-x86-64linux.h: New.
4714 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4715 definitions.
4716 * config/i386/nm-x86-64.h: Rename to ...
4717 * config/i386/nm-x86-64linux.h: ... this one.
4718 * config/i386/x86-64linux.mh: Reflect the above change.
4719
4720 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4721
4722 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4723 with sigcontext_addr. Add sc_sp_offset.
4724 (i386bsd_sigtramp_saved_pc): Remove prototype.
4725 (i386bsd_sicontext_addr): Add prototype.
4726 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4727 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4728 (i386_svr4_sigtramp_saved_pc): Removed.
4729 (i386_svr4_sigcontext_addr): New function.
4730 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4731 Initialize tdep->sigcontext_addr instead. Initialize
4732 tdep->sc_pc_offset and tdep->sc_sp_offset.
4733 (i386_gdbarch_init): Likewise.
4734 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4735 any more.
4736 (i386bsd_sigtramp_saved_pc): Remove function.
4737 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4738 Initialize tdep->sigcontext_addr instead. Initialize
4739 tdep->sc_pc_offset.
4740 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4741 of tdep->sigtramp_saved_pc.
4742 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4743 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4744 instead.
4745
4746 * i386-tdep.c (i386_frameless_function_invocation,
4747 i386_frame_num_args, i386_frame_init_saved_regs,
4748 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4749 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4750 i386_extract_return_value, i386_store_return_value,
4751 i386_extract_struct_value_address, i386_register_virtual_type,
4752 i386_register_convertible, i386_register_convert_to_virtual,
4753 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4754 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4755 static.
4756
4757 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4758
4759 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4760
4761 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4762 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4763 this macro. Include "value.h".
4764
4765 2002-06-30 Aidan Skinner <aidan@velvet.net>
4766
4767 * ada-exp.tab.c: remove as it's a generated file
4768 * ada-lex.c: remove as it's a generated file
4769
4770 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4771
4772 * config/i386/tm-i386.h (struct frame_info, struct
4773 frame_saved_regs, struct value, struct type): Remove forward
4774 declarations.
4775
4776 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4777 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4778 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4779 (FILL_FPXREGSET): Define.
4780
4781 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4782
4783 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4784 i[3456]86-*-netbsd* case.
4785 * config/i386/tm-obsd.h: Removed.
4786 * config/i386/obsd.mt: Removed.
4787 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4788 core-aout.o.
4789 (MH_CFLAGS): Add -DYYDEBUG=0.
4790
4791 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4792 i386nbsd_sc_pc_offset on OpenBSD too.
4793
4794 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4795 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4796 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4797 define.
4798 * i386bsd-tdep.c: Include "arch-utils.h".
4799 (i386bsd_aout_in_solib_call_trampoline): New function.
4800 (i386bsd_init_abi): Set in_solib_call_trampoline to
4801 i386bsd_aout_in_solib_call_trampoline.
4802 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4803 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4804
4805 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4806
4807 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4808 (struct obstack, struct bcache): Add opaque declarations.
4809 * Makefile.in (macrotab_h): Update
4810
4811 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4812
4813 * blockframe.c (generic_find_dummy_frame): Change return type to
4814 ``struct regcache''.
4815 (struct dummy_frame): Replace field ``registers'' with regcache, a
4816 struct regcache object.
4817 (generic_find_dummy_frame): Update.
4818 (generic_push_dummy_frame): Update. Use regcache_xfree,
4819 regcache_xmalloc and regcache_cpy.
4820 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4821 regcache_xfree.
4822 (deprecated_generic_find_dummy_frame): Update.
4823 (generic_read_register_dummy): Update. Use
4824 regcache_read_as_address.
4825 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4826 (generic_get_saved_register): Update. Use regcache_read.
4827
4828 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4829
4830 * Makefile.in (objfiles_h): Add $(bcache_h).
4831 * objfiles.h: Include "bcache.h".
4832
4833 * Makefile.in (symtab_h): Remove $(bcache_h).
4834 * symtab.h: Do not include "bcache.h".
4835
4836 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4837
4838 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4839 generic_func_frame_chain_valid.
4840
4841 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4842
4843 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4844 * config/i386/tm-fbsd.h: Likewise.
4845
4846 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4847
4848 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4849 generic_unwind_get_saved_register.
4850
4851 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4852
4853 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4854 * regcache.c (supply_register): Add missing argument to
4855 register_buffer call.
4856
4857 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4858
4859 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4860 Solaris /bin/grep does not not like it. From Peter Schauer.
4861
4862 2002-06-26 Tom Tromey <tromey@redhat.com>
4863
4864 * command.h (add_setshow_cmd): Declare.
4865 (add_setshow_cmd_full): Declare.
4866 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4867 returns void. Use add_setshow_cmd_full.
4868 (add_setshow_cmd_full): New function.
4869 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4870 (add_setshow_boolean_cmd): Likewise.
4871
4872 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4873
4874 * config/vax/tm-vax.h: Protect from multiple inclusion.
4875 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4876 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4877 * config/vax/tm-vaxbsd.h: ...here. New file.
4878 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4879
4880 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4881
4882 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4883 (BELIEVE_PCC_PROMOTION): Remove.
4884 (AP_REGNUM): Move to...
4885 * config/vax/nm-vax.h: ...here.
4886 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4887 (vax_breakpoint_from_pc): New function.
4888 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4889 and gdbarch_believe_pcc_promotion.
4890
4891 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4892
4893 * Makefile.in (vax_tdep_h): Define.
4894 (vax-tdep.o): Use $(vax_tdep_h).
4895 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4896 (vax_dump_tdep): New function.
4897 (_initialize_vax_tdep): Register vax_dump_tdep.
4898 * vax-tdep.h: Include osabi.h.
4899 (struct gdbarch_tdep): New.
4900
4901 2002-06-26 Andrew Cagney <cagney@redhat.com>
4902
4903 * frame.h (deprecated_generic_find_dummy_frame): Rename
4904 generic_find_dummy_frame.
4905 * blockframe.c (generic_find_dummy_frame): Make static.
4906 (deprecated_generic_find_dummy_frame): New function.
4907 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4908 generic_find_dummy_frame with deprecated_find_dummy_frame.
4909 (sh64_nofp_frame_init_saved_regs): Ditto.
4910 (sh_fp_frame_init_saved_regs): Ditto.
4911 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4912 (s390_frame_chain): Ditto.
4913 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4914
4915 2002-06-26 Grace Sainsbury <graces@redhat.com>
4916
4917 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4918 gdbarch vector are at the top.
4919 (NUM_REGS): Remove.
4920 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4921 (FRAME_ARGS_ADDRESS): Remove.
4922 (FRAME_LOCALS_ADDRESS): Remove.
4923 (FRAME_NUM_ARGS): Remove.
4924 (FRAME_ARGS_SKIP): Remove.
4925 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4926 (m68k_gdbarch_init): Add gdbarch initializations for macros
4927 undefined in tm-m68k.h
4928
4929 2002-06-26 Grace Sainsbury <graces@redhat.com>
4930
4931 * monitor.h: Add the function regname to monitor_ops
4932 structure. This way NUM_REGS does not have to be a constant.
4933 * monitor.c (monitor_fetch_register): Added support for regname
4934 function. The function is called if the array regnames is NULL.
4935 (monitor_store_register): Same.
4936 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4937 regnames array.
4938 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4939 cpu32bug_cmds.regname to point to new function.
4940 * abug-rom.c (abug_regname): Same as above.
4941 (init_abug_cmds): Same.
4942 * dbug-rom.c (dbug_regname): Same as above.
4943 (init_dbug_cmds): Same.
4944 * remote-est.c (est_regname): Same.
4945 (init_est_cmds): Same.
4946 * rom68k-rom.c (rom68k_regname): Same.
4947 (init_rom68k_cmds): Same.
4948
4949 2002-06-25 Tom Tromey <tromey@redhat.com>
4950
4951 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4952
4953 2002-06-25 Andrew Cagney <cagney@redhat.com>
4954
4955 * infrun.c (stop_registers): Change variable's type to ``struct
4956 regcache'''.
4957 (xmalloc_inferior_status): Delete function.
4958 (free_inferior_status): Delete function.
4959 (normal_stop): Use regcache_cpy.
4960 (struct inferior_status): Change type of fields ``stop_registers''
4961 and ``registers'' to ``struct regcache''.
4962 (write_inferior_status_register): Use regcache_write.
4963 (save_inferior_status): Instead of calling
4964 xmalloc_inferior_status, allocate the inf_status buffer directly.
4965 Use regcache_dup_no_passthrough and regcache_dup to save the
4966 buffers.
4967 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4968 Replace the stop_registers regcache instead of overriding it. Use
4969 regcache_xfree. Instead of calling free_inferior_status, xfree
4970 the buffer directly.
4971 (discard_inferior_status): Use regcache_xfree. Instead of calling
4972 free_inferior_status, xfree the buffer directly.
4973 (build_infrun): Use regcache_xmalloc.
4974 (_initialize_infrun): Delete redundant call to build_infrun.
4975
4976 * Makefile.in (infcmd.o): Add $(regcache_h).
4977
4978 * infcmd.c: Include "regcache.h".
4979 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4980 obtain the address of `stop_registers' register buffer.
4981 (print_return_value): Ditto.
4982
4983 * inferior.h (struct regcache): Add opaque declaration.
4984 (stop_registers): Change variable's declared type to ``struct
4985 regcache''.
4986
4987 2002-06-24 Tom Tromey <tromey@redhat.com>
4988
4989 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4990 * target.c (initialize_targets): Fixed typo in
4991 trust-readonly-sections `show' documentation.
4992
4993 * main.c: Marked all strings with _().
4994
4995 2002-06-24 Don Howard <dhoward@redhat.com>
4996
4997 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4998 that means max CORE_ADDR+1.
4999 (lookup_mem_region): Ditto.
5000 (mem_info_command): Ditto.
5001
5002 2002-06-24 Grace Sainsbury <graces@redhat.com>
5003
5004 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5005 (REGISTER_BYTES_OK): Remove.
5006 (REGISTER_BYTES): Remove.
5007 (STORE_STRUCT_RETURN): Remove.
5008 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5009 (STORE_RETURN_VALUE): Remove.
5010 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5011 (FRAME_CHAIN): Remove.
5012 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5013 (FRAME_SAVED_PC): Remove.
5014 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5015 (m68k_store_struct_return): Add.
5016 (m68k_deprecated_extract_return_value): Add.
5017 (m68k_deprecated_extract_struct_value_address): Add.
5018 (m68k_store_return_value): Add.
5019 (m68k_frame_chain): Add.
5020 (m68k_frameless_function_invocation): Add.
5021 (m68k_frame_saved_pc): Add.
5022 (m68k_gdbarch_init): added set_gdbarch calls for new
5023 functions and deleted macros.
5024
5025 2002-06-23 Tom Tromey <tromey@redhat.com>
5026
5027 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5028 (ALLDEPFILES): Likewise.
5029 (udiheaders): Removed.
5030 (udip2soc.o): Likewise.
5031 (udi2go32.o): Likewise.
5032 (udr.o): Likewise.
5033 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5034
5035 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5036
5037 * infrun.c (_initialize_infrun): Delete unnecessary call to
5038 build_infrun.
5039
5040 * regcache.h: Update comments describing the regcache_cpy family
5041 of functions.
5042 (regcache_save, regcache_restore): Delete declaration.
5043 (regcache_save_no_passthrough): Delete declaration.
5044 (regcache_restore_no_passthrough): Delete declaration.
5045 * regcache.c (regcache_save): Delete function.
5046 (regcache_save_no_passthrough): Delete function.
5047 (regcache_restore): Delete function.
5048 (regcache_restore_no_passthrough): Delete function.
5049
5050 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5051
5052 * config/m68k/tm-m68k.h: Fix typo.
5053 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5054 (m68k_frame_init_saved_regs): Declare.
5055
5056 2002-06-21 Jim Blandy <jimb@redhat.com>
5057
5058 Remove some vestiges of Harris 88k support.
5059 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5060 register numbering quirk.
5061 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5062 odd symbols occurring in Harris 88k ELF targets.
5063
5064 2002-06-21 Tom Tromey <tromey@redhat.com>
5065
5066 * gdb_locale.h: New file.
5067 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5068 (defs_h): Added gdb_locale.h.
5069 * configure, config.in: Rebuilt.
5070 * configure.in (PACKAGE): Define.
5071 * defs.h: Include gdb_locale.h.
5072 * main.c (captured_main): Call setlocale, bindtextdomain,
5073 textdomain.
5074
5075 2002-06-21 Dave Brolley <brolley@redhat.com>
5076
5077 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5078 * config/frv/frv.mt: New file.
5079 * config/frv/tm-frv.h: New file.
5080 * configure.tgt: Support frv-*-*.
5081 * Makefile.in (frv-tdep.o): New target.
5082 * frv-tdep.c: New file.
5083 * NEWS: Mention frv.
5084
5085 2002-06-21 Dave Brolley <brolley@redhat.com>
5086
5087 * MAINTAINERS: Add self to "Write After Approval" list.
5088
5089 2002-06-21 Grace Sainsbury <graces@redhat.com>
5090
5091 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5092 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5093 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5094 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5095 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5096
5097 * m68k-tdep.c: Include arch-utils.h
5098 (m68k_register_raw_size): Add.
5099 (m68k_register_virtual_size): Add.
5100 (m68k_register_virtual_type): Add.
5101 (m68k_register_name): Add.
5102 (m68k_stack_align): Add.
5103 (m68k_register_byte): Add.
5104 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5105 tm-m68k.h.
5106
5107 2002-06-21 Grace Sainsbury <graces@redhat.com>
5108
5109 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5110 m68k_find_saved_regs.
5111 (m68k_pop_frame): Removed saved_regs structure, and replaced
5112 references to it with frame->saved_regs.
5113 (m68k_gdbarch_init): Added function calls to initialize the
5114 gdbarch structure.
5115 (m68k_fix_call_dummy): Add.
5116 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5117 (CALL_DUMMY): Remove.
5118 (CALL_DUMMY_LENGTH): Remove.
5119 (CALL_DUMMY_START_OFFSET): Remove.
5120 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5121 (FIX_CALL_DUMMY): Remove.
5122 (PUSH_DUMMY_FRAME): Remove.
5123 (POP_FRAME): Remove.
5124
5125 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5126
5127 * parse.c (parse_fprintf): New function used to avoid calls to
5128 fprintf in bison parser generated debug code.
5129 * parser-defs.h: Declaration of new parse_fprintf function.
5130 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5131 Set YYDEBUG to 1 by default.
5132 Set YYFPRINTF as parse_fprintf.
5133
5134 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5135
5136 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5137 encoding anymore.
5138 (pointer_encoding, enum ptr_encoding): New.
5139 (execute_cfa_program): Take care about pointer encoding.
5140 (dwarf2_build_frame_info): Only call parse_frame_info for
5141 .debug_frame and .eh_frame.
5142 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5143 fixed augmentation handling, added relative addressing,
5144 ignore duplicate FDEs. Added comments.
5145 * dwarf2cfi.c: Reindented.
5146
5147 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5148
5149 * event-top.c (command_handler): Don't use space_at_cmd_start
5150 unless there is sbrk() on the host. Assign time and space data
5151 to union fields of the appropriate length.
5152
5153 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5154
5155 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5156 x86_64_register_name. Return type changed to 'const char *'.
5157 (x86_64_register_name2nr): Rename to x86_64_register_number.
5158 (x86_64_gdbarch_init): Update to reflect the change.
5159 * x86-64-tdep.h: Ditto.
5160 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5161 (supply_fpregset): Ditto.
5162
5163 2002-06-19 Andrew Cagney <cagney@redhat.com>
5164
5165 * regcache.h: Update copyright.
5166 (struct regcache, struct gdbarch): Add opaque declarations.
5167 (current_regcache): Declare global variable.
5168 (regcache_read, regcache_write): Add gdbarch parameter.
5169 (regcache_save, regcache_save_no_passthrough)
5170 (regcache_restore, regcache_restore_no_passthrough)
5171 (regcache_dup, regcache_dup_no_passthrough)
5172 (regcache_cpy, regcache_cpy_no_passthrough)
5173 (deprecated_grub_regcache_for_registers)
5174 (deprecated_grub_regcache_for_register_valid)
5175 (regcache_valid_p): Add function declarations.
5176
5177 * regcache.c: Update copyright.
5178 (regcache_descr_handle): New global variable.
5179 (struct regcache_descr): Define.
5180 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5181 (regcache_descr, xfree_regcache_descr): New functions.
5182 (struct regcache): Define.
5183 (regcache_xmalloc, regcache_xfree): New functions.
5184 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5185 (regcache_dup, regcache_dup_no_passthrough): New functions.
5186 (regcache_valid_p, regcache_read_as_address): New functions.
5187 (deprecated_grub_regcache_for_registers): New function.
5188 (deprecated_grub_regcache_for_register_valid): New function.
5189 (current_regcache): New global variable.
5190 (register_buffer): Add regcache parameter. Update calls.
5191 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5192 (read_register_gen, write_register_gen): Update register_buffer
5193 call. Test for legacy_p instead of gdbarch_register_read_p or
5194 gdbarch_register_write_p.
5195 (regcache_collect): Update register_buffer call.
5196 (build_regcache): Rewrite. Use deprecated grub functions.
5197 (regcache_save, regcache_save_no_passthrough): New functions.
5198 (regcache_restore, regcache_restore_no_passthrough): New
5199 functions.
5200 (_initialize_regcache): Create the regcache_data_handle. Swap
5201 current_regcache global variable.
5202
5203 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5204 parameter to regcache_read and regcache_write calls.
5205 (sh4_register_read): Ditto.
5206 (sh64_pseudo_register_read): Ditto.
5207 (sh64_register_read): Ditto.
5208 (sh_pseudo_register_write): Ditto.
5209 (sh4_register_write): Ditto.
5210 (sh64_pseudo_register_write): Ditto.
5211 (sh64_register_write): Ditto.
5212
5213 * defs.h (XCALLOC): Define.
5214
5215 2002-06-19 Grace Sainsbury <graces@redhat.com>
5216
5217 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5218 * m68k-tdep.c (m68k_gdbarch_init): Added.
5219 (m68k_dump_tdep): Added.
5220
5221 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5222
5223 * ada-lang.c (fill_in_ada_prototype): Update comment.
5224
5225 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5226
5227 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5228 MIPS_ABI_LAST.
5229 (mips_abi_string, mips_abi_strings): New.
5230 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5231 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5232 tdep->mips_abi_string. Honor mips_abi_string. Default to
5233 O32 if no ABI is found.
5234 (mips_dump_tdep): Use mips_abi_strings.
5235 (mips_abi_update): New function.
5236 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5237 ``set mips abi'' and ``show mips abi''. Check the size of
5238 mips_abi_strings.
5239
5240 2002-06-19 Andrew Cagney <cagney@redhat.com>
5241
5242 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5243 constant.
5244
5245 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5246
5247 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5248 current frame using only the first stack size adjustment. All
5249 subsequent size adjustments are not considered to be part of
5250 the "static" part of the current frame.
5251 Compute the address of the saved registers relative to the
5252 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5253 in use in this frame.
5254
5255 2002-06-18 Don Howard <dhoward@redhat.com>
5256
5257 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5258 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5259 suggesting this solution.
5260
5261 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5262
5263 * config/romp/xm-rtbsd.h: Delete file.
5264 * config/romp/rtbsd.mh: Delete file.
5265
5266 2002-06-18 Keith Seitz <keiths@redhat.com>
5267
5268 * breakpoint.c (condition_command): Post breakpoint_modify
5269 when a condition is added to an existing breakpoint.
5270 (commands_command): Likewise for commands.
5271 (set_ignore_count): Likewise for ignore counts.
5272 If no tty, do not simply return, still need to send event
5273 notification.
5274 (ignore_command): Only print a newline if the command came
5275 from a tty.
5276 Don't call breakpoints_changed, since this is now properly
5277 handled by set_ignore_count.
5278
5279 2002-06-18 Andrew Cagney <cagney@redhat.com>
5280
5281 * MAINTAINERS: Note that cris-elf target can be compiled with
5282 -Werror.
5283 * cris-tdep.c (cris_register_name): Make return type constant.
5284 (cris_breakpoint_from_pc): Ditto.
5285
5286 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5287
5288 * frame.h (struct frame_info): Change type of context to
5289 'struct context'.
5290
5291 2002-06-17 Andrew Cagney <cagney@redhat.com>
5292
5293 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5294 pointer.
5295 * gdbarch.h, gdbarch.c: Regenerate.
5296 * config/mips/tm-mips.h (mips_register_name): Update.
5297 * i386-tdep.h (i386_register_name): Update.
5298 * mips-tdep.c (mips_register_name): Update
5299 * alpha-tdep.c (alpha_register_name): Update.
5300 * arch-utils.c (legacy_register_name): Update.
5301 * arch-utils.h (legacy_register_name): Update.
5302 * avr-tdep.c (avr_register_name): Update.
5303 * ia64-tdep.c (ia64_register_name): Update.
5304 * i386-tdep.c (i386_register_name): Update.
5305 * sparc-tdep.c (sparc32_register_name): Update.
5306 (sparc64_register_name): Update.
5307 (sparclite_register_name): Update.
5308 (sparclet_register_name): Update.
5309 * sh-tdep.c (sh_generic_register_name): Update.
5310 (sh_sh_register_name): Update.
5311 (sh_sh3_register_name): Update.
5312 (sh_sh3e_register_name): Update.
5313 (sh_sh_dsp_register_name): Update.
5314 (sh_sh3_dsp_register_name): Update.
5315 (sh_sh4_register_name): Update.
5316 (sh_sh64_register_name): Update.
5317 * s390-tdep.c (s390_register_name): Update.
5318 * rs6000-tdep.c (rs6000_register_name): Update.
5319 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5320 (ns32k_register_name_32382): Update.
5321 * d10v-tdep.c (d10v_ts2_register_name): Update.
5322 (d10v_ts3_register_name): Update.
5323 * xstormy16-tdep.c (xstormy16_register_name): Update.
5324 * vax-tdep.c (vax_register_name): Update.
5325 * v850-tdep.c (v850_register_name): Update.
5326 * m68hc11-tdep.c (m68hc11_register_name): Update.
5327 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5328 (am33_register_name): Update.
5329
5330 2002-06-17 Grace Sainsbury <graces@redhat.com>
5331
5332 * m68k-tdep.c: Reindented.
5333
5334 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5335
5336 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5337 list of predefined types.
5338
5339 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5340
5341 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5342 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5343 REGISTER_CONVERT_TO_RAW): Remove defines.
5344 (i386_register_virtual_type, i386_register_convertible,
5345 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5346 Remove prototypes.
5347 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5348 macros mentioned above.
5349
5350 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5351 (i386lynx_saved_pc_after_call): Remove prototype.
5352 * i386ly-tdep.c: Include "i386-tdep.h".
5353 (i386lynx_saved_pc_after_call): Make static. Use
5354 read_memory_nobpt instead of read_memory. Use
5355 read_memory_unsigned_integer instead of read_memory_integer.
5356 (i386lynx_init_abi): New function.
5357 (i386lynx_coff_osabi_sniffer): New function.
5358 (_initialize_i386bsd_tdep): New function.
5359
5360 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5361 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5362 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5363 (i386_fix_call_dummy): Remove prototype.
5364 * i386-tdep.c (i386_call_dummy_words): New variable.
5365 (i386_gdbarch_init): Adjust for removal of the
5366 macros mentioned above.
5367
5368 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5369
5370 * command.h (add_setshow_auto_boolean_cmd): Replace
5371 add_set_auto_boolean_cmd.
5372 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5373 add_set_auto_boolean_cmd.
5374 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5375 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5376 mask-address'' command.
5377 (show_mask_address): Add cmd parameter.
5378 * remote.c (add_packet_config_cmd): Update. Change type of
5379 set_func and show_func to cmd_sfunc_ftype.
5380 (_initialize_remote): Update `set remote Z-packet'
5381 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5382 (show_remote_protocol_e_packet_cmd): Ditto.
5383 (show_remote_protocol_E_packet_cmd): Ditto.
5384 (show_remote_protocol_P_packet_cmd): Ditto.
5385 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5386 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5387 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5388 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5389 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5390 (show_remote_protocol_Z_packet_cmd): Ditto.
5391 (show_remote_protocol_binary_download_cmd): Ditto.
5392 (show_remote_cmd): Pass NULL to all of above.
5393
5394 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5395
5396 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5397 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5398 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5399 POP_FRAME): Remove defines.
5400 (i386_push_arguments, i386_store_struct_return,
5401 i386_extract_return_value, i386_store_return_value,
5402 i386_extract_struct_value_address, i386_push_dummy_frame,
5403 i386_pop_frame): Renove prototypes.
5404 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5405 macros mentioned above.
5406
5407 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5408
5409 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5410 add_set_boolean_cmd.
5411 (add_setshow_cmd): New function.
5412 * command.h (add_setshow_boolean_cmd): Replace
5413 add_set_boolean_cmd.
5414 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5415 and ``set rdiromatzero''.
5416 * maint.c (_initialize_maint_cmds): Update commented out code.
5417 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5418 * target.c (initialize_targets): Update `set
5419 trust-readonly-sections'.
5420 * remote.c (_initialize_remote): Update `set remotebreak'.
5421
5422 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5423
5424 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5425 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5426 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5427 fit into multi-arch framework.
5428 (i386_breakpoint_from_pc): New function.
5429 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5430 above.
5431
5432 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5433 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5434 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5435 (i386_frameless_function_invocation, i386_frame_num_args,
5436 i386_frame_init_saved_regs): Remove prototypes.
5437 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5438 macros mentioned above.
5439
5440 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5441
5442 * cli/cli-decode.c (set_cmd_cfunc): Update.
5443 (set_cmd_sfunc): Update.
5444 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5445 (set_cmd_sfunc, set_cmd_cfunc): Update.
5446 * cli/cli-decode.h: Update.
5447
5448 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5449
5450 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5451 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5452
5453 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5454
5455 * defs.h (auto_boolean): Declare enum.
5456 * command.h (cmd_auto_boolean): Delete enum.
5457 * mips-tdep.c (mask_address_var): Update.
5458 (mips_mask_address_p): Update.
5459 (show_mask_address): Update.
5460 * remote.c (struct packet_config): Update.
5461 (update_packet_config): Update.
5462 (show_packet_config_cmd): Update.
5463 (packet_ok): Update.
5464 (add_packet_config_cmd): Update.
5465 (_initialize_remote):
5466 * command.h: Update.
5467 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5468 (do_setshow_command): Update.
5469 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5470 * cli/cli-decode.h: Update.
5471
5472 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5473
5474 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5475 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5476 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5477 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5478 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5479 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5480
5481 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5482 list of DJGPP COFF targets.
5483
5484 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5485 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5486 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5487 (FP0_REGNUM): Remove define.
5488 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5489 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5490 (i386_register_virtual_size): Remove protoype.
5491 * i386-tdep.c (i386_register_virtual_size): Removed.
5492 (i386_extract_return_value, i386_store_return_value): Use
5493 FP0_REGNUM instead of NUM_FREGS to determine whether the
5494 floating-point registers are available.
5495 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5496 Adjust for removal of macros mentioned above.
5497
5498 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5499
5500 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5501 comments.
5502 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5503 Remove prototypes.
5504 (supply_gregset, fill_gregset): Remove use of register keyword and
5505 remove declaration for regmap. Use I386_NUM_GREGS instead of
5506 NUM_REGS and NUM_FREGS.
5507 (FPREGSET_FSAVE_OFFSET): Remove.
5508 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5509 NUM_FREGS to determine whether the floating-point registers are
5510 available.
5511
5512 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5513 gnu_store_registers): Replace usage of NUM_GREGS with
5514 I386_NUM_GREGS.
5515
5516 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5517 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5518 usage of NUM_GREGS with I386_NUM_GREGS.
5519
5520 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5521
5522 * i386bsd-nat.c: Include "i386-tdep.h".
5523 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5524 I386_NUM_GREGS.
5525
5526 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5527 and associated comment. They no longer make any sense, since we
5528 don't use this file anymore on Linux.
5529
5530 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5531 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5532 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5533 elements in these arrays.
5534 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5535 MAX_NUM_REGS.
5536
5537 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5538
5539 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5540 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5541
5542 2002-06-14 Andrew Cagney <cagney@redhat.com>
5543
5544 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5545 EXTRACT_RETURN_VALUE.
5546 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5547 EXTRACT_STRUCT_VALUE_ADDRESS.
5548 * gdbarch.h, gdbarch.c: Regenerate.
5549
5550 * values.c (value_being_returned): Handle
5551 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5552 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5553
5554 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5555 * arm-tdep.c (arm_gdbarch_init): Update.
5556 * avr-tdep.c (avr_gdbarch_init): Update.
5557 * cris-tdep.c (cris_gdbarch_init): Update.
5558 * d10v-tdep.c (d10v_gdbarch_init): Update.
5559 * ia64-tdep.c (ia64_gdbarch_init): Update.
5560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5562 * s390-tdep.c (s390_gdbarch_init): Update.
5563 * sh-tdep.c (sh_gdbarch_init): Update.
5564 * s390-tdep.c (s390_gdbarch_init): Update.
5565 * sparc-tdep.c (sparc_gdbarch_init): Update.
5566 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5567 * v850-tdep.c (v850_gdbarch_init): Update.
5568 * vax-tdep.c (vax_gdbarch_init): Update.
5569 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5571
5572 * config/arc/tm-arc.h: Update.
5573 * config/d30v/tm-d30v.h: Update.
5574 * config/fr30/tm-fr30.h: Update.
5575 * config/h8300/tm-h8300.h: Update.
5576 * config/h8500/tm-h8500.h: Update.
5577 * config/i386/tm-i386.h: Update.
5578 * config/i386/tm-ptx.h: Update.
5579 * config/i386/tm-symmetry.h: Update.
5580 * config/i960/tm-i960.h: Update.
5581 * config/m32r/tm-m32r.h: Update.
5582 * config/m68k/tm-delta68.h: Update.
5583 * config/m68k/tm-linux.h: Update.
5584 * config/m68k/tm-m68k.h: Update.
5585 * config/m88k/tm-m88k.h: Update.
5586 * config/mcore/tm-mcore.h: Update.
5587 * config/mips/tm-mips.h: Update.
5588 * config/mn10200/tm-mn10200.h: Update.
5589 * config/pa/tm-hppa.h: Update.
5590 * config/pa/tm-hppa64.h: Update.
5591 * config/sparc/tm-sp64.h: Update.
5592 * config/sparc/tm-sparc.h: Update.
5593 * config/sparc/tm-sparclet.h: Update.
5594 * config/z8k/tm-z8k.h: Update.
5595
5596 2002-06-14 Andrew Cagney <cagney@redhat.com>
5597
5598 * Makefile.in (i386_linux_tdep_h): Define.
5599 (i386_tdep_h, i387_tdep_h): Define.
5600 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5601 $(i386_tdep_h) and $(i387_tdep_h).
5602 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5603
5604 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5605
5606 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5607 Already covered by the default.
5608
5609 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5610 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5611 (i386_gdbarch_init): Initialize long_double_format and long_double
5612 bit.
5613
5614 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5615 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5616 Move these to ...
5617 * config/i386/i386sol2.mh: ... here.
5618 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5619 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5620 (SIGCONTEXT_PC_OFFSET): Remove define.
5621 (IN_SIGTRAMP): Remove define.
5622 * i386-sol2-tdep.c: New file.
5623
5624 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5625 * config/i386/tm-i386nw.h: Removed.
5626
5627 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5628 USE_STRUCT_CONVENTION): Remove defines.
5629 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5630 (get_longjmp_target): Remove prototype.
5631 (IN_SIGTRAMP): Remove define.
5632 (i386bsd_in_sigtramp): Remove prototype.
5633 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5634 function. Update comment accordingly
5635 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5636 (FRAME_SAVED_PC): Remove define.
5637 (i386bsd_frame_saved_pc): Remove prototype.
5638 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5639 GET_LONGJMP_TARGET): Remove defines.
5640 (get_longjmp_target): Remove prototype.
5641 (IN_SIGTRAMP): Remove define.
5642 (i386bsd_in_sigtramp): Remove prototype.
5643 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5644 function. Update comment accordingly
5645 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5646 (FRAME_SAVED_PC): Remove define.
5647 (i386bsd_frame_saved_pc): Remove prototype.
5648 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5649 Remove prototype.
5650 (USE_STRUCT_CONVENTION): Remove prototype.
5651 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5652 declaration.
5653 (_initialize_i386bsd_nat): Revise logic to determine some
5654 constants at compile time when compiling a native GDB. Warn if
5655 things don't match up with what we expect.
5656 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5657 Remove variables.
5658 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5659 to use date stored in `struct gdbarch_tdep'.
5660 (i386bsd_sigcontext_offset): Remove varaible.
5661 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5662 stored in `struct gdbarch_tdep'.
5663 (i386bsd_frame_saved_pc): Make static.
5664 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5665 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5666 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5667 i386fbsd4_sc_pc_offset): New variables.
5668 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5669 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5670 functions.
5671 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5672 functions.
5673 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5674 Modify the value of i386fbsd_sigtramp_start and
5675 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5676 i386fbsd_sigtramp_end.
5677 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5678 function.
5679
5680 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5681 define to i386-linux-tdep.h.
5682 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5683 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5684 defines.
5685 (i386_linux_register_name, i386_linux_register_byte,
5686 i386_linux_register_raw_size): Remove prototypes.
5687 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5688 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5689 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5690 TARGET_WRITE_PC): Remove defines.
5691 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5692 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5693 i386_linux_write_pc): Remove prototypes.
5694 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5695 (get_longjmp_target): Remove prototype.
5696 * i386-linux-tdep.h: New file.
5697 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5698 * i386-linux-tdep.c: Include "i386-tdep.h" and
5699 "i386-linux-tdep.h".
5700 (i386_linux_register_name, i386_linux_register_byte,
5701 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5702 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5703 Make static.
5704 (i386_linux_init_abi): New function.
5705 (_initialize_i386_linux_tdep): New function.
5706
5707 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5708 (i386_saved_pc_after_call): Remove prototype.
5709 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5710 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5711 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5712 (i386_register_name, i386_stab_reg_to_regnum,
5713 i386_dwarf_reg_to_regnum): Remove prototypes.
5714 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5715 SIZEOF_SSE_REGS): Remove defines.
5716 (REGISTER_BYTES): Remove define.
5717 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5718 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5719 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5720 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5721 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5722 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5723 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5724 (get_longjmp_target): Remove prototype.
5725 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5726 (sigtramp_saved_pc): Remove define.
5727 (i386v4_sigtramp_saved_pc): Remove prototype.
5728 * config/i386/tm-go32.h (FRAME_CHAIN,
5729 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5730 (i386go32_frame_saved_pc): Remove prototype.
5731 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5732 (get_longjmp_target): Remove prototype.
5733 * i386-tdep.h: Include "osabi.h".
5734 (enum i386_abi): Removed.
5735 (enum struct_return): New enum.
5736 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5737 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5738 sc_pc_offset members.
5739 (i386_gdbarch_register_os_abi): Remove prototype.
5740 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5741 I386_SSE_NUM_REGS): New defines.
5742 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5743 I386_SSE_SIZEOF_REGS): New defines.
5744 (i386_register_name, i386_register_byte, i386_register_raw_size):
5745 New prototypes.
5746 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5747 (i386bsd_sigtramp_saved_pc): New prototype.
5748 * i386-tdep.c: Don't include "elf-bfd.h".
5749 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5750 i386_frame_chain, i386_saved_pc_after_call): Make static.
5751 (i386_frame_saved_pc): Rewrite to call architecture dependent
5752 function to deal with signal handlers. Make static.
5753 (i386go32_frame_saved_pc): Removed.
5754 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5755 Removed.
5756 (i386_get_longjmp_target): New function.
5757 (default_struct_convention, pcc_struct_convention,
5758 reg_struct_convention, valid_conventions, struct_convention): New
5759 variables.
5760 (i386_use_struct_convention): New function.
5761 (i386v4_sigtramp_saved_pc): Renamed to
5762 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5763 (i386_pc_in_sigtramp): New function.
5764 (i386_abi_names): Removed.
5765 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5766 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5767 Removed.
5768 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5769 i386_gdbarch_register_os_abi): Removed.
5770 (struct i386_abi_handler): Removed.
5771 (i386_abi_handler_list): Removed.
5772 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5773 functions.
5774 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5775 i386_nw_init_abi): New functions.
5776 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5777 Use set_gdbarch_xxx() calls instead of relying on macros for a
5778 number of calls.
5779 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5780 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5781 Register the various architecture variants defined in this file.
5782
5783 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5784
5785 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5786 (struct main_type): Remove arg_types member. Update comments for
5787 struct field.
5788 (TYPE_ARG_TYPES): Remove.
5789 (TYPE_FN_FIELD_ARGS): Update.
5790 (smash_to_method_type): Update prototype.
5791
5792 * c-typeprint.c (cp_type_print_method_args): Take method type
5793 instead of argument list. Use new argument layout. Simplify.
5794 (c_type_print_args): Use new argument layout. Simplify.
5795 (c_type_print_base): Update call to cp_type_print_method_args.
5796 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5797 argument; use die->type instead. Update call to
5798 smash_to_method_type.
5799 (read_structure_scope): Update call to dwarf2_add_member_fn.
5800 * gdbtypes.c (allocate_stub_method): Update comment.
5801 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5802 Use new argument layout.
5803 (check_stub_method): Use new argument layout. Don't count
5804 void as an argument.
5805 (print_arg_types): Update comments. Use new argument layout.
5806 (recursive_dump_type): Don't print arg_types member.
5807 * hpread.c (hpread_read_struct_type): Use new argument layout.
5808 (fixup_class_method_type): Likewise.
5809 (hpread_type_lookup): Likewise.
5810 * stabsread.c (read_type): Update calls to read_args and
5811 smash_to_method_type.
5812 (read_args): Use new argument layout. Simplify.
5813 * valops.c (typecmp): Use new argument layout. Update parameters
5814 and comments. Simplify.
5815 (hand_function_call): Use new argument layout.
5816 (search_struct_method): Update call to typecmp.
5817 (find_overload_match): Use new argument layout.
5818
5819 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5820
5821 * NEWS: Mention multithreaded debug support for gdbserver.
5822
5823 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5824
5825 * MAINTAINERS: Mention NEWS.
5826
5827 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5828
5829 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5830 (struct mips_objfile_private, compare_pdr_entries): New.
5831 (non_heuristic_proc_desc): Read the ".pdr" section if it
5832 is present.
5833
5834 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5835
5836 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5837 (arm_debug): New static variable.
5838 (_initialize_arm_tdep): Add ``set debug arm'' command.
5839
5840 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5841
5842 * Makefile.in (sim_arm_h): Define.
5843 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5844 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5845 (arm_register_sim_regno): New function, map an internal REGNUM
5846 onto a simulator register number.
5847 (arm_gdbarch_init): Set register_sim_regno.
5848
5849 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5850
5851 * MAINTAINERS: Add self.
5852
5853 2002-06-11 Jim Blandy <jimb@redhat.com>
5854
5855 * source.c (source_info): Mention whether the symtab has
5856 information about preprocessor macros.
5857
5858 Call the command `info macro', not `show macro'.
5859 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5860 Fix error message.
5861 (_initialize_macrocmd): Register `info_macro_command' in
5862 `infolist', not `showlist'.
5863
5864 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5865
5866 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5867 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5868 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5869 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5870 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5871 unconditionally.
5872 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5873 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5874 (_initialize_mips_tdep): Remove dead code.
5875 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5876 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5877 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5878 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5879 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5880 MIPS_LAST_FP_ARG_REGNUM): Remove.
5881
5882 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5883
5884 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5885 (unwind_tmp_obstack_free, parse_frame_info)
5886 (update_context, cfi_read_fp, cfi_write_fp)
5887 (cfi_frame_chain, cfi_init_extra_frame_info)
5888 (cfi_virtual_frame_pointer): Use the above function.
5889 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5890
5891 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5892
5893 * v850-tdep.c (v850_type_is_scalar): New function.
5894 (v850_use_struct_convention): Match current gcc implementation
5895 as close as possible.
5896 (v850_push_arguments): Fix stack_offset handling. Don't write
5897 struct_addr into register. This is done by v850_store_struct_return.
5898 (v850_extract_return_value): Care for structs.
5899 (v850_store_return_value): Ditto.
5900 (v850_store_struct_return): Actually write address.
5901
5902 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5903
5904 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5905 without debug information too.
5906
5907 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5908
5909 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5910 Make multi-arch pure.
5911 * gdbarch.h, gdbarch.c: Re-generate.
5912 * arm-tdep.c (arm_print_float_info): Update.
5913 * arch-utils.h (default_print_float_info): Update.
5914 * arch-utils.c (default_print_float_info): Update.
5915 * infcmd.c (float_info): Update call.
5916
5917 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5918
5919 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5920 the front of the initialize list.
5921
5922 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5923
5924 * infrun.c (struct inferior_status): Replace fields
5925 selected_frame_address and selected_level with field
5926 selected_frame_id.
5927 (save_inferior_status): Update. Use get_frame_id.
5928 (struct restore_selected_frame_args): Delete.
5929 (restore_selected_frame): Update. Use frame_find_by_id.
5930 (restore_inferior_status): Update.
5931
5932 * breakpoint.h (struct breakpoint): Change type of
5933 watchpoint_frame to frame_id.
5934 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5935 call to get_current_frame.
5936 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5937 get_current_frame.
5938 (watchpoint_check): Use frame_find_by_id.
5939
5940 * frame.h (record_selected_frame): Delete declaration.
5941 * stack.c (record_selected_frame): Delete function.
5942
5943 * frame.h (struct frame_id): Define.
5944 (get_frame_id): Declare.
5945 (frame_find_by_id): Declare.
5946 * frame.c (frame_find_by_id): New function.
5947 (get_frame_id): New function.
5948
5949 2002-06-10 Andrey Volkov <avolkov@transas.com>
5950
5951 * ser-e7kpc.c: Fix duplicated define and call of
5952 _initialize_ser_e7000pc
5953
5954 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5955
5956 * signals/signals.c (target_signal_from_host): Fix #ifdef
5957 SIGRTMIN case.
5958 (do_target_signal_to_host): Likewise.
5959
5960 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5961
5962 * mips-tdep.c (mips_find_abi_section): New function.
5963 (mips_gdbarch_init): Call it.
5964
5965 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5966
5967 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5968 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5969 after Andrew's 2002-06-08 gdbarch change.
5970
5971 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5972
5973 * i386-linux-nat.c (suppy_gregset): Don't supply
5974 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5975 register cache.
5976 (fill_gregset): Don't fetch it under the same circumstances.
5977
5978 2002-06-09 Andrew Cagney <cagney@redhat.com>
5979
5980 * Makefile.in (callback_h): Define.
5981 (remote_sim_h): Update path to remote-sim.h.
5982 (remote-rdp.o): Add $(callback_h).
5983 (remote-sim.o): Use $(callback_h).
5984 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5985 * remote-rdp.c: Include "gdb/callback.h".
5986
5987 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5988
5989 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5990 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5991
5992 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5993
5994 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5995 * rdi-share/serpardr.c: Ditto.
5996 * rdi-share/unixcomm.c: Ditto.
5997 * rdi-share/serdrv.c: Ditto.
5998 * rdi-share/hostchan.h: Ditto.
5999 * rdi-share/hostchan.c: Ditto.
6000 * rdi-share/host.h: Ditto.
6001 * rdi-share/devsw.c: Ditto.
6002
6003 * objfiles.h: Change type of obj_private to void pointer.
6004 * pa64solib.c: Update copyright. Don't include "assert.h", use
6005 strcmp instead of STREQ, use LONGEST, do not use PTR
6006 * somsolib.c: Ditto.
6007
6008 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6009 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6010 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6011
6012 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6013
6014 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6015 (default_get_saved_register): Delete function.
6016 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6017 generic_unwind_get_saved_register.
6018 * gdbarch.h, gdbarch.c: Re-generate.
6019
6020 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6021
6022 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6023 generic_func_frame_chain_valid.
6024 * gdbarch.h, gdbarch.c: Re-generate.
6025 * blockframe.c (generic_func_frame_chain_valid): Only check
6026 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6027 passing FP to PC_IN_CALL_DUMMY.
6028 Fix PR gdb/360.
6029
6030 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6031
6032 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6033 (register_gdbarch_data): Initialize init_p.
6034 (gdbarch_data): Initialize data pointer using the init function.
6035 (init_gdbarch_data): Delete function.
6036 (gdbarch_update_p): Update.
6037 (initialize_non_multiarch): Update.
6038 (struct gdbarch): Add field initialized_p.
6039 * gdbarch.h, gdbarch.c: Re-generate.
6040
6041 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6042
6043 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6044 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6045 better do the things actually here.
6046 * x86-64-tdep.c (x86_64_register_name2nr): New.
6047 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6048 (x86_64_gdbarch_init): Respect the above change.
6049 * x86-64-tdep.h (x86_64_register_name2nr)
6050 (x86_64_register_nr2name): Add prototypes.
6051 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6052
6053 2002-06-06 Michael Snyder <msnyder@redhat.com>
6054
6055 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6056 Delete extra braces and re-indent.
6057 (d10v_store_return_value): Char return values
6058 must be shifted over by one byte in R0.
6059 (d10v_extract_return_value): Delete extra braces, re-indent.
6060
6061 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6062
6063 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6064 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6065 (d10v_integer_to_address): Rewrite.
6066 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6067 the d10v specific functions which take care of converting to the
6068 correct space.
6069
6070 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6071
6072 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6073 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6074
6075 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6076
6077 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6078 includes.
6079 * config/tm-linux.h: Ditto.
6080 * config/alpha/tm-alphalinux.h: Ditto.
6081 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6082 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6083 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6084 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6085 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6086 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6087 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6088 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6089 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6090 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6091 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6092 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6093 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6094 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6095 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6096 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6097 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6098 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6099 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6100 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6101 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6102 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6103 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6104 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6105 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6106 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6107 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6108 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6109 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6110 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6111 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6112 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6113 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6114 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6115 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6116 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6117 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6118
6119 2002-05-04 Aidan Skinner <aidan@velvet.net>
6120
6121 * ada-exp.tab.c: New file
6122 * ada-exp.y: New file
6123 * ada-lang.c: New file
6124 * ada-lang.h: New file
6125 * ada-lex.c: New file
6126 * ada-lex.l: New file
6127 * ada-tasks.c: New file
6128 * ada-typeprint.c: New file
6129 * ada-valprint.c: New file
6130
6131 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6132
6133 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6134 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6135
6136 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6137
6138 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6139 insetead of ppc-linux-tdep.o.
6140 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6141 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6142
6143 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6144
6145 2002-05-07 Christian Groessler <chris@groessler.org>
6146 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6147 bit register contents for little endian hosts.
6148
6149 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6150
6151 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6152 any maintainer.
6153
6154 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6155
6156 * gdbarch.h: Regenerate.
6157
6158 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6159
6160 * MAINTAINERS: Add everyone to write-after-approval list.
6161
6162 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6163
6164 * stack.c (frame_info): Use frame_register_unwind instead of
6165 saved_regs. Mention when the SP is on the stack or in a register.
6166
6167 * frame.h (frame_register_unwind_ftype): Define. Document.
6168 (struct frame_info): Add field register_unwind and
6169 register_unwind_cache.
6170 (frame_register_unwind): Declare.
6171 (generic_unwind_get_saved_register): Declare.
6172
6173 * frame.c (frame_register_unwind): New function.
6174 (generic_unwind_get_saved_register): New function.
6175
6176 * blockframe.c (generic_call_dummy_register_unwind): New function.
6177 (frame_saved_regs_register_unwind): New function.
6178 (set_unwind_by_pc): New function.
6179 (create_new_frame): New function.
6180 (get_prev_frame): New function.
6181
6182 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6183
6184 * a29k-share/: Delete directory.
6185 * remote-vx29k.c: Delete file.
6186
6187 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6188
6189 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6190 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6191
6192 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6193
6194 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6195 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6196 (sparc64nbsd-nat.o)
6197 (sparcnbsd-nat.o)
6198 (sparcnbsd-tdep.o): New dependency lists.
6199 * NEWS: Note new UltraSPARC NetBSD native configuration.
6200 * configure.host (sparc64-*-netbsd*): New host.
6201 * configure.tgt (sparc-*-netbsdelf*)
6202 (sparc-*-netbsd*): Set gdb_target to nbsd.
6203 (sparc64-*-netbsd*): New target.
6204 * sparc64nbsd-nat.c: New file.
6205 * sparcnbsd-nat.c: New file.
6206 * sparcnbsd-tdep.c: New file.
6207 * sparcnbsd-tdep.h: New file.
6208 * config/sparc/nbsd.mt: New file.
6209 * config/sparc/nbsd64.mh: New file.
6210 * config/sparc/nbsd64.mt: New file.
6211 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6212 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6213 (HOST_IPC): Remove.
6214 * config/sparc/nbsdaout.mt: Remove.
6215 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6216 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6217 (HOST_IPC): Remove.
6218 * config/sparc/nbsdelf.mt: Remove.
6219 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6220 sparc-nat.c compatiblity defines.
6221 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6222 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6223 * config/sparc/tm-nbsd64.h: New file.
6224 * config/sparc/tm-nbsdaout.h: Remove.
6225 * config/sparc/xm-nbsd.h: Remove.
6226
6227 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6228
6229 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6230 * sparc-tdep.c: Include osabi.h.
6231 (gdbarch_tdep): Add osabi member.
6232 (_initialize_sparc_tdep): Use gdbarch_register.
6233 (sparc_gdbarch_init): Use generic OS ABI framework.
6234 (sparc_dump_tdep): New function.
6235
6236 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6237
6238 * corefile.c (do_captured_read_memory_integer): Return non-zero
6239 result.
6240 (safe_read_memory_integer): Copy result of memory read when
6241 status is non-zero. Also, add comments.
6242
6243 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6244
6245 * Makefile.in (ppc_tdep_h): Define.
6246 (ppc-linux-nat.o)
6247 (ppc-linux-tdep.o)
6248 (rs6000-tdep.o): Use $(ppc_tdep_h).
6249 (ppc-sysv-tdep.o)
6250 (ppcnbsd-nat.o)
6251 (ppcnbsd-tdep.o): New dependency lists.
6252 * ppc-tdep.h: Use generic OS ABI framework.
6253 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6254 (ppc_linux_init_abi): New functions.
6255 (ppc_sysv_abi_broken_use_struct_convention)
6256 (ppc_sysv_abi_use_struct_convention)
6257 (ppc_sysv_abi_push_arguments): Move to...
6258 * ppc-sysv-tdep.c: ...here.
6259 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6260 * rs6000-tdep.c (process_note_abi_tag_sections)
6261 (get_elfosabi): Remove.
6262 (rs6000_gdbarch_init): Use generic OS ABI framework.
6263 (rs6000_dump_tdep): New function.
6264 (_initialize_rs6000_tdep): Use gdbarch_register.
6265 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6266 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6267 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6268 of ppc-linux-tdep.o.
6269 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6270 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6271 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6272 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6273 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6274 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6275
6276 2002-05-29 Jim Blandy <jimb@redhat.com>
6277
6278 * macroscope.c (default_macro_scope): Put `void' in empty argument
6279 list.
6280
6281 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6282
6283 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6284 * arch-utils.c: Include "sim-regno.h".
6285 * gdbarch.sh: Don't include "sim-regno.h".
6286 * gdbarch.h, gdbarch.c: Regenerate.
6287 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6288 here.
6289 * arch-utils.h (legacy_register_sim_regno): To here.
6290 * remote-sim.c (legacy_register_sim_regno): Move function from
6291 here.
6292 * arch-utils.c (legacy_register_sim_regno): To here.
6293
6294 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6295
6296 * sim-regno.h: New file.
6297 * Makefile.in (sim_regno_h): Define.
6298 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6299 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6300 (legacy_register_sim_regno): New function.
6301 (one2one_register_sim_regno): New function.
6302 (gdbsim_fetch_register): Rewrite.
6303 (gdbsim_store_register): Only store a register when
6304 REGISTER_SIM_REGNO is valid.
6305 * d10v-tdep.c: Include "sim-regno.h".
6306 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6307 (d10v_ts3_register_sim_regno): Ditto.
6308 * gdbarch.sh: Include "sim-regno.h".
6309 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6310 * gdbarch.h, gdbarch.c: Regenerate.
6311 * arch-utils.h (default_register_sim_regno): Delete declaration.
6312 * arch-utils.c (default_register_sim_regno): Delete function.
6313
6314 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * ppcnbsd-nat.c: Rewrite.
6317 * ppcnbsd-tdep.c: New file.
6318 * ppcnbsd-tdep.h: New file.
6319 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6320 solib.o, and solib-svr4.o.
6321 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6322 nbsd-tdep.o, and corelow.o.
6323
6324 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6325
6326 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6327 `tr' and `sed'. Mention that `broken' targets are not expected to
6328 build.
6329
6330 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6331
6332 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6333 Let PC point right after the prologue before looking up symbols.
6334
6335 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6336
6337 * i386-tdep.c (i386_register_virtual_type): Return
6338 builtin_type_vec128i for SSE registers.
6339
6340 * gdbtypes.h (builtin_type_vec128i): Declare.
6341
6342 * gdbtypes.c (build_builtin_type_vec128i): New function.
6343 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6344 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6345 (build_gdbtypes): Initialize new builtin vector types.
6346 (_initialize_gdbtypes): Register new vector types with gdbarch.
6347
6348 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6349
6350 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6351 since it has been multi-arch'd.
6352 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6353 Move Alpha and VAX multi-arch news entries to same section
6354 as other multi-arch news.
6355
6356 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6357
6358 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6359 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6360 static. Rename some register numbers to put them in ns32k-tdep
6361 private namespace.
6362 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6363 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6364 functions.
6365 (_initialize_ns32k_tdep): Use gdbarch_register.
6366 * ns32k-tdep.h: New file.
6367 * ns32knbsd-tdep.c: New file.
6368 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6369 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6370 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6371 REGISTER_BYTES, REGISTER_BYTE): Remove.
6372 * config/ns32k/tm-ns32k.h: New file.
6373 * config/ns32k/tm-umax.h: Remove.
6374
6375 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6376
6377 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6378 ns32k_store_struct_return, ns32k_extract_return_value,
6379 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6380 functions.
6381 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6382 ns32k_saved_pc_after_call.
6383 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6384 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6385 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6386 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6387 ns32k_extract_struct_value_address.
6388
6389 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6390
6391 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6392 ns32k_fix_call_dummy): New.
6393 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6394 ns32k_call_dummy_words.
6395 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6396 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6397 CALL_DUMMY_NARGS): Remove.
6398 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6399
6400 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6401
6402 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6403 ns32k_frame_saved_pc, ns32k_frame_args_address,
6404 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6405 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6406 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6407 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6408 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6409 (BREAKPOINT): Remove..
6410 (FRAME_CHAIN): Define as ns32k_frame_chain.
6411 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6412 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6413 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6414 (FRAME_FIND_SAVED_REGS): Remove.
6415 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6416 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6417 (POP_FRAME): Define as ns32k_pop_frame.
6418
6419 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6420
6421 * ns32k-tdep.c (ns32k_register_byte_32082,
6422 ns32k_register_byte_32382, ns32k_register_raw_size,
6423 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6424 functions.
6425 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6426 ns32k_register_byte_32382.
6427 * config/ns32k/tm-umax.h: Update copyright years.
6428 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6429 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6430 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6431 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6432 (ns32k_get_enter_addr): Fix prototype.
6433
6434 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6435
6436 * ns32k-tdep.c: Update copyright years.
6437 (ns32k_register_name_32082): New function.
6438 (ns32k_register_name_32382): Ditto.
6439 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6440 (REGISTER_NAME): Define as ns32k_register_name_32382.
6441 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6442 (REGISTER_NAME): Define as ns32k_register_name_32082.
6443
6444 2002-05-24 Jim Blandy <jimb@redhat.com>
6445
6446 * dwarf2read.c (free_line_header): Use xfree, not free.
6447
6448 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6451 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6452
6453 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6454
6455 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6456
6457 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6458
6459 From Ross Alexander at NEC Europe:
6460 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6461
6462 2002-05-23 Michael Snyder <msnyder@redhat.com>
6463
6464 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6465 for input, rather than parse_and_eval_address.
6466
6467 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6468
6469 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6470 * Makefile.in (sim_d10v_h): Update definition.
6471
6472 2002-05-24 Andrew Cagney <cagney@redhat.com>
6473
6474 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6475 change `2002-05-22 Michael Snyder' below.
6476 (d10v_push_arguments): Ditto.
6477 (d10v_extract_return_value): Ditto.
6478
6479 2002-05-23 Jim Blandy <jimb@redhat.com>
6480
6481 * macrotab.c (check_for_redefinition): Don't complain if the new
6482 definition is the same as the previous one. Take more arguments
6483 to allow the comparison.
6484 (macro_define_object, macro_define_function): Pass more arguments
6485 to check_for_redefinition.
6486
6487 2002-05-22 Michael Snyder <msnyder@redhat.com>
6488
6489 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6490 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6491 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6492 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6493 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6494 Add a temp variable to save a call (and a memory read).
6495 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6496 if possible (so that PC_IN_CALL_DUMMY will work).
6497
6498 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6499
6500 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6501
6502 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6503
6504 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6505 fde->cie_ptr.
6506 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6507 (dwarf2_build_frame_info): Add offset to fde->initial_location
6508 so that frames of shared libraries are mapped correctly.
6509 (execute_stack_op): Change type of 'result' from ULONGEST to
6510 CORE_ADDR.
6511
6512 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6513
6514 * config/alpha/tm-nbsd.h: Include solib.h.
6515
6516 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6517
6518 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6519 assumptions about the host's byte order.
6520
6521 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6522
6523 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6524 to dependency list.
6525 * alphanbsd-tdep.c: Include solib-svr4.h.
6526 * shnbsd-tdep.c: Ditto.
6527
6528 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6529
6530 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6531 nbsd-tdep.h to dependency list.
6532 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6533 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6534 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6535 nbsdaout.mh and nbsdelf.mh consistently.
6536 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6537 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6538 nbsdaout.mt and nbsdelf.mh consistently.
6539 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6540 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6541 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6542 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6543 a.out shared library stuff from here...
6544 * config/nm-nbsdaout.h: ...to here.
6545 * config/tm-nbsd.h: Remove.
6546 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6547 * config/arm/nbsd.mh: Remove.
6548 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6549 nbsd-tdep.o.
6550 * config/arm/nbsdaout.mh: New file.
6551 * config/arm/nbsdelf.mh: New file.
6552 * config/arm/nm-nbsdaout.h: New file.
6553 * config/i386/nbsd.mh: Remove.
6554 * config/i386/nbsd.mt: Remove.
6555 * config/i386/nbsdaout.mh: New file.
6556 * config/i386/nbsdaout.mt: New file.
6557 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6558 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6559 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6560 i386_register_u_addr): Remove.
6561 * config/i386/nm-nbsdaout.h: New file.
6562 * config/i386/nm-nbsdelf.h: Remove.
6563 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6564 (USE_STRUCT_CONVENTION): Remove.
6565 * config/i386/tm-nbsdaout.h: New file.
6566 * config/i386/tm-nbsdelf.h: Remove.
6567 * config/m68k/nbsd.mh: Remove.
6568 * config/m68k/nbsd.mt: Remove.
6569 * config/m68k/nbsdaout.mh: New file.
6570 * config/m68k/nbsdaout.mt: New file.
6571 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6572 * config/m68k/nm-nbsdaout.h: New file.
6573 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6574 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6575 * config/ns32k/nbsd.mh: Remove.
6576 * config/ns32k/nbsd.mt: Remove.
6577 * config/ns32k/nbsdaout.mh: New file.
6578 * config/ns32k/nbsdaout.mt: New file.
6579 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6580 * config/ns32k/nm-nbsdaout.h: New file.
6581 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6582 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6583 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6584 (SVR4_SHARED_LIBS): Remove.
6585 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6586 * config/sparc/nbsd.mh: Remove.
6587 * config/sparc/nbsd.mt: Remove.
6588 * config/sparc/nbsdaout.mh: New file.
6589 * config/sparc/nbsdaout.mt: New file.
6590 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6591 * config/sparc/nbsdelf.mt: New file.
6592 * config/sparc/nm-nbsdaout.h: New file.
6593 * config/sparc/nm-nbsdelf.h: Remove.
6594 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6595 * config/sparc/tm-nbsdaout.h: New file.
6596
6597 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6598
6599 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6600 mipsnbsd-tdep.c
6601 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6602
6603 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6604
6605 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6606 shnbsd-nat.c.
6607 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6608
6609 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6610
6611 * NEWS: Note new MIPS NetBSD native configuration.
6612 * configure.host (mips*-*-netbsd*): New host.
6613 * configure.tgt (mips*-*-netbsd*): New target.
6614 * mipsnbsd-nat.c: New file.
6615 * mipsnbsd-tdep.c: New file.
6616 * mipsnbsd-tdep.h: New file.
6617 * config/mips/nbsd.mh: New file.
6618 * config/mips/nbsd.mt: New file.
6619 * config/mips/nm-nbsd.h: New file.
6620 * config/mips/tm-nbsd.h: New file.
6621
6622 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6623
6624 * Makefile.in (SFILES): Add osabi.c.
6625 (COMMON_OBS): Add osabi.o.
6626 (osabi.o): New dependency list.
6627 * osabi.c: New file.
6628 * osabi.h: New file.
6629 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6630
6631 * Makefile.in (alpha_tdep_h): Define and use instead of
6632 alpha-tdep.h.
6633 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6634 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6635 Remove.
6636 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6637 * alpha-tdep.h: Include osabi.h.
6638 (alpha_abi): Remove.
6639 (gdbarch_tdep): Use generic OS ABI framework.
6640 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6641 gdbarch_register_osabi.
6642 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6643 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6644 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6645
6646 * Makefile.in (sh_tdep_h): Add osabi.h.
6647 * sh-tdep.h (sh_osabi): Remove.
6648 (gdbarch_tdep): Use generic OS ABI framework.
6649 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6650 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6651 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6652 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6653
6654 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6655 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6656 gdbarch_register_osabi.
6657 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6658 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6659 (get_elfosabi): Rename to...
6660 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6661 ABI framework support routines.
6662 (arm_gdbarch_init): Use generic OS ABI framework.
6663 (arm_dump_tdep): Likewise.
6664 (_initialize_arm_tdep): Likewise.
6665 * arm-tdep.h: Include osabi.h.
6666 (arm_abi): Remove.
6667 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6668 osabi member.
6669 (arm_gdbarch_register_os_abi): Remove prototype.
6670 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6671 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6672
6673 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6674 * mips-tdep.c: Include osabi.h.
6675 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6676 OS ABI framework.
6677
6678 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6679
6680 * h8300-tdep.c: Fix formatting.
6681
6682 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6683
6684 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6685 printing vector registers.
6686
6687 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6688
6689 From Fernando Nasser:
6690 * remote.c (remote_async_open_1): Re-throw the exception when the
6691 connection fails.
6692 (remote_cisco_open): Ditto.
6693 (remote_open_1): Ditto.
6694
6695 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6696
6697 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6698 (remote_start_remote): Add uiout parameter. Pass through to
6699 remote_start_remote_dummy.
6700 (remote_open_1): Use catch_exception instead of catch_errors.
6701 (remote_async_open_1): Ditto.
6702 (remote_cisco_open): Ditto.
6703
6704 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6705
6706 * remote.c (remote_start_remote): Replace PTR with void pointer.
6707 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6708 static.
6709
6710 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6711
6712 * gdb_indent.sh: Allow the script to be run in the sim directory.
6713
6714 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6715
6716 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6717 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6718
6719 * corelow.c (core_open): Only call set_gdbarch_from_file if
6720 exec_bfd is NULL.
6721
6722 2002-05-17 Andrey Volkov <avolkov@transas.com>
6723
6724 * h8300-tdep.c: Add support of EXR register
6725 * config/h8300/tm-h8300.h: Ditto.
6726
6727 2002-05-17 Andrey Volkov <avolkov@transas.com>
6728
6729 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6730
6731 2002-05-17 Andrey Volkov <avolkov@transas.com>
6732
6733 * h8300-tdep.c: Change literal regnums to REGNO.
6734
6735 2002-05-17 Jim Blandy <jimb@redhat.com>
6736
6737 * NEWS: Note addition of macro support.
6738
6739 Expand preprocessor macros in C expressions.
6740 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6741 (scan_macro_expansion, scanning_macro_expansion,
6742 finished_macro_expansion): New function declarations.
6743 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6744 variable declarations.
6745 * parser-defs.h (expression_context_pc): New declaration.
6746 * parse.c (expression_context_pc): New variable.
6747 (parse_exp_1): Set expression_context_pc, as well as
6748 expression_context_block.
6749 * c-exp.y (yylex): If we're not already reading the result of a
6750 macro expansion, try to macro-expand the next token. When we're
6751 done scanning a macro expansion, switch back to the mainline text.
6752 Commas and `if's in a macro's expansion don't terminate the input.
6753 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6754 (macro_original_text, macro_expanded_text,
6755 expression_macro_lookup_func, expression_macro_lookup_baton): New
6756 variables.
6757 (scan_macro_expansion, scanning_macro_expansion,
6758 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6759 c_preprocess_and_parse): New functions.
6760 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6761 c_preprocess_and_parse, instead of c_parse.
6762 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6763 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6764
6765 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6766
6767 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6768 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6769 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6770
6771 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6772
6773 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6774
6775 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6776
6777 * Makefile.in (sh_tdep_h): Define and use.
6778 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6779 register enum): Move to...
6780 * * sh-tdep.h: ...here.
6781 * sh-tdep.c: Include sh-tdep.h.
6782 * sh3-rom.c: Likewise.
6783 * shnbsd-tdep.c: Likewise.
6784
6785 2002-05-16 Michael Snyder <msnyder@redhat.com>
6786
6787 * arm-tdep.c: Spelling fix in comment.
6788
6789 2002-05-16 Jim Blandy <jimb@redhat.com>
6790
6791 Add commands for manually expanding macros and showing their
6792 definitions.
6793 * macrocmd.c, macroscope.c, macroscope.h: New files.
6794 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6795 (macroscope_h): New variable.
6796 (HFILES_NO_SRCDIR): Add macroscope.h.
6797 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6798 (macroscope.o, macrocmd.o): New rules.
6799
6800 Teach the Dwarf 2 reader to read macro information.
6801 * dwarf2read.c: #include "macrotab.h".
6802 (dwarf_macinfo_buffer): New variable.
6803 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6804 dwarf_macinfo_size.
6805 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6806 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6807 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6808 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6809 dwarf2_macro_spaces_in_definition): New complaints.
6810 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6811 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6812 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6813 the partial symbol table.
6814 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6815 from what's recorded in the partial symbol table.
6816 (read_file_scope): If the compilation unit has a
6817 `DW_AT_macro_info' attribute, read its macro information.
6818 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6819
6820 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6821
6822 Fix PR gdb/546
6823 * ser-tcp.c: Don't include <netinet/udp.h>.
6824
6825 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6826
6827 * MAINTAINERS: Update my email address.
6828
6829 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6830
6831 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6832 include file of the same name.
6833
6834 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6835
6836 * configure.tgt: Mark v850 as multi-arched.
6837 * config/v850/tm-v850.h: Remove file.
6838 * config/v850/v850.mt: Eliminate TM_FILE.
6839
6840 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6841
6842 * v850-tdep.c: Full multi-arch.
6843 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6844 Define GDB_MULTI_ARCH to 2.
6845
6846 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6847
6848 * p-exp.y (current_type): New static variable.
6849 Carries the type of the expression at the position that is parsed.
6850 (push_current_type, pop_current_type): Two new functions. Used
6851 to store/restore current_type in expression on specific tokens.
6852 (search_field): New static variable. Set to one after parsing a point
6853 as at that point only a FIELDNAME token should be searched.
6854 (FIELDNAME): New token. After a point only a token belonging to
6855 current_type type definition is allowed.
6856 (all over token rules): reset and change current_type according
6857 to rules.
6858 (exp '[' rule): insert implicit array index field if
6859 exp is a pascal string type.
6860
6861 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6862
6863 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6864 frame info. Use frame_info's saved_regs instead of matching member
6865 in extra_frame_info throughout.
6866 (v850_frame_init_saved_regs): New function.
6867 (v850_init_extra_frame_info): Move most functionality into
6868 v850_frame_init_saved_regs().
6869 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6870 (v850_frame_find_saved_regs): Remove declaration.
6871 (FRAME_FIND_SAVED_REGS): Remove definition.
6872 (v850_frame_init_saved_regs): Add declaration.
6873 (FRAME_INIT_SAVED_REGS): Add definition.
6874
6875 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6876
6877 * v850-tdep.c: Begin multi-arch'ing v850.
6878 (v850_target_architecture_hook): Remove function.
6879 (v850_gdbarch_init): New function. Add code previously in
6880 v850_target_architecture_hook().
6881 (_initialize_v850_tdep): Don't set target_architecture_hook.
6882 Call register_gdbarch_init() instead.
6883
6884 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6885
6886 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6887 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6888 (fixup_class_method_type): Likewise.
6889
6890 2002-05-15 Jim Blandy <jimb@redhat.com>
6891
6892 Add macro structures to GDB's symbol tables. Nobody puts anything
6893 in them yet.
6894 * symtab.h (struct symtab): New member: `macro_table'.
6895 * buildsym.h (pending_macros): New global variable.
6896 * buildsym.c: #include "macrotab.h".
6897 (buildsym_init): Initialize `pending_macros'.
6898 (end_symtab): If we found macro information while reading a CU's
6899 debugging info, do build a symtab structure for it. Make the
6900 symtab point to the macro information, and clear the
6901 `pending_macros' pointer which held it while we were reading the
6902 debug info.
6903 (really_free_pendings): Free any pending macro table.
6904 * objfiles.h (struct objfile): New member: `macro_cache'.
6905 * objfiles.c (allocate_objfile): Set allocate and free functions
6906 for the macro cache's objstack.
6907 (free_objfile): Empty the macro cache's obstack.
6908 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6909 set new allocate and free functions for it.
6910 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6911 free functions for the macro cache's objstack. (Why is this
6912 function building its own objfile?)
6913 * symmisc.c (print_objfile_statistics): Print statistics on the
6914 macro bcache.
6915 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6916
6917 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6918
6919 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6920 (REGISTER_U_ADDR): Delete definition.
6921 (arm_register_u_addr): Delete declaration.
6922
6923 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6924
6925 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6926 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6927
6928 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6929
6930 * regcache.c (register_valid): Revise comments refering to "Not
6931 available" and "unavailable".
6932 * frame.c (frame_register_read): Ditto.
6933 * findvar.c (value_of_register): Ditto.
6934
6935 2002-05-15 Andrew Cagney <cagney@redhat.com>
6936
6937 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6938 (remote-sim.o): Update dependencies.
6939 (d10v-tdep.o): Specify dependencies.
6940 (sim_d10v_h): Define.
6941
6942 2002-05-14 Jim Blandy <jimb@redhat.com>
6943
6944 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6945 * macrotab.c (macro_lookup_inclusion, find_definition,
6946 new_macro_table): Same.
6947
6948 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6949 not `! strcmp ()'. This is a dubious improvement.
6950 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6951
6952 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6953 although it's not necessary, to avoid a warning.
6954
6955 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6958 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6959 TYPE_INSTANCE_FLAGS.
6960 (struct main_type): New.
6961 (struct type): Move most members to struct main_type. Change
6962 cv_type and as_type to new type_chain member. Add instance_flags.
6963 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6964 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6965 (finish_cv_type): Remove prototype.
6966 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6967 Set TYPE_CHAIN.
6968 (alloc_type_instance): New function.
6969 (smash_type): New function.
6970 (make_pointer_type, make_reference_type, make_function_type)
6971 (smash_to_member_type, smash_to_method_type): Call smash_type.
6972 (make_qualified_type): New function.
6973 (make_type_with_address_space): Call make_qualified_type.
6974 (make_cv_type): Likewise.
6975 (finish_cv_type): Remove unnecessary function.
6976 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6977 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6978 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6979 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6980 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6981 * hpread.c (hpread_read_struct_type): Likewise.
6982 * stabsread.c (read_struct_type): Likewise.
6983
6984 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6985
6986 * configure.tgt: Add a catch all sh* target, for cases like
6987 sh[2,3,4]-elf and sh-hms.
6988
6989 2002-05-14 Keith Seitz <keiths@redhat.com>
6990
6991 * event-loop.c (create_file_handler): Don't do anything but
6992 update data when we are given a fd which we are already
6993 monitoring.
6994
6995 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6996
6997 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6998 (update_context): Use __func__ in warnings.
6999
7000 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7001
7002 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7003 and tcp_close to net_open and net_close.
7004 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7005 using UDP if requested. Don't try to disable Nagle on UDP
7006 sockets.
7007 * remote.c (remote_serial_open): New function. Warn about UDP.
7008 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7009
7010 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7011
7012 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7013
7014 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7015
7016 * configure.tgt: Remove sh-hms target.
7017 * MAINTAINERS: Don't list sh-hms as a separate target.
7018
7019 2002-05-13 Jim Blandy <jimb@redhat.com>
7020
7021 Add first preprocessor macro-expansion files.
7022 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7023 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7024 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7025 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7026 (COMMON_OBS): Add macrotab.o, macroexp.o.
7027 (macroexp.o, macrotab.o): New rules.
7028
7029 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7030
7031 * config/m88k/tm-m88k.h: Update copyright.
7032 (m88k_target_write_pc): Declare
7033 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7034 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7035 (SHIFT_INST_REGS): Update definition.
7036 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7037 using old definition of TARGET_WRITE_PC.
7038 * regcache.c (generic_target_write_pc): Delete code handling
7039 NNPC_REGNUM.
7040 * gdbarch.sh (NNPC_REGNUM): Delete.
7041 * gdbarch.h, gdbarch.c: Regenerate.
7042
7043 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7044
7045 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7046 builtin reg number.
7047
7048 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7049
7050 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7051 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7052 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7053 access macros.
7054 * c-typeprint.c (cp_type_print_method_args): Likewise.
7055 (c_type_print_args): Likewise.
7056 * d10v-tdep.c (d10v_push_arguments): Likewise.
7057 (d10v_extract_return_value): Likewise.
7058 * expprint.c (print_subexp): Likewise.
7059 * gdbtypes.c (lookup_primitive_typename): Likewise.
7060 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7061 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7062 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7063 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7064 (TYPE_VECTOR): Likewise.
7065 * hpread.c (hpread_read_struct_type)
7066 (fix_static_member_physnames, fixup_class_method_type)
7067 (hpread_type_lookup): Likewise.
7068 * mdebugread.c (parse_symbol, parse_type): Likewise.
7069 * p-lang.c (is_pascal_string_type): Likewise.
7070 * valops.c (hand_function_call): Likewise.
7071 * x86-64-tdep.c (classify_argument): Likewise.
7072
7073 * hpread.c (hpread_read_function_type)
7074 (hpread_read_doc_function_type): Call replace_type.
7075 * dstread.c (create_new_type): Delete.
7076 (decode_dst_structure, process_dst_function): Call alloc_type.
7077 Use type access macros.
7078
7079 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7080
7081 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7082 the're not supported by the current architecture.
7083 (i387_fill_fxsave): Likewise.
7084
7085 2002-05-12 Fred Fish <fnf@redhat.com>
7086
7087 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7088 sect_index_xxx members to index the first slot in section_offsets
7089 if all of the section_offsets are zero.
7090
7091 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7092
7093 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7094 checked in with last change.
7095
7096 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7097
7098 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7099 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7100 config.sub.
7101
7102 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7103
7104 * Makefile.in: Update dependencies.
7105
7106 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7107
7108 * language.c (local_hex_string_custom): Simplify. Do not depend
7109 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7110
7111 * memattr.c (mem_info_command): Replace calls to
7112 longest_local_hex_string and longest_local_hex_string_custom.
7113 * buildsym.c (make_blockvector): Ditto.
7114 * solib.c (info_sharedlibrary_command): Ditto.
7115 * tracepoint.c (tracepoints_info): Ditto.
7116 * symtab.c (print_msymbol_info): Ditto.
7117
7118 * language.c (local_hex_string): Delete.
7119 (local_hex_string_custom): Delete.
7120 (longest_local_hex_string): Rename to local_hex_string.
7121 (longest_local_hex_string_custom): Rename to
7122 local_hex_string_custom.
7123 * language.h (local_hex_string): Change parameter type to LONGEST.
7124 (local_hex_string_custom): Ditto.
7125 (longest_local_hex_string): Delete declaration.
7126 (longest_local_hex_string_custom): Ditto.
7127
7128 * solib.c: Update copyright.
7129 * memattr.c: Update copyright.
7130
7131 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7132
7133 * arch-utils.h (legacy_register_to_value): Declare.
7134 (legacy_value_to_register): Declare.
7135 (legacy_convert_register_p): Declare.
7136 * arch-utils.c (legacy_register_to_value): New function.
7137 (legacy_value_to_register): New function.
7138 (legacy_convert_register_p): New function.
7139
7140 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7141 (VALUE_TO_REGISTER): Define.
7142 (CONVERT_REGISTER_P): Define.
7143 * gdbarch.h, gdbarch.c: Regenerate.
7144
7145 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7146 VALUE_TO_REGISTER.
7147 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7148 CONVERT_REGISTER_P.
7149
7150 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7151 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7152
7153 * Makefile.in: Update dependencies for valops.c.
7154 * valops.c: Include "gdb_assert.h".
7155 (typecmp): Skip THIS parameter to methods.
7156 (find_method_list): Remove static_memfuncp argument,
7157 update callers. Check for stub methods.
7158 (find_value_oload_method_list): Don't set *static_memfuncp.
7159 (find_overload_match): Don't check for stub methods. Assert
7160 that methods are not stubbed. Handle static methods.
7161 (value_find_oload_method_list): Remove static_memfuncp argument.
7162 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7163 to the argument list for static stub methods.
7164 * value.h (value_find_oload_method_list): Update prototype.
7165
7166 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7167
7168 * arch-utils.h (generic_register_size): Declare.
7169 (generic_register_raw_size, generic_register_virtual_size): Delete
7170 declarations.
7171 * arch-utils.c (generic_register_raw_size): Delete.
7172 (generic_register_size): New function.
7173 (generic_register_virtual_size): Delete.
7174
7175 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7176 default generic_register_size.
7177 * gdbarch.h, gdbarch.c: Re-generate.
7178
7179 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7180 register_virtual_size.
7181 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7182 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7183
7184 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7185
7186 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7187 * gdbarch.h, gdbarch.c: Regenerate.
7188 * gnu-v3-abi.c: Update copyright.
7189 (vtable_address_point_offset): Update.
7190 (gnuv3_rtti_type): Update.
7191 (gnuv3_baseclass_offset): Update.
7192 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7193 (init_fetch_link_map_offsets): Update.
7194 * remote.c (get_remote_state): Update.
7195
7196 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7197
7198 * TODO: Remove value_headof/value_from_vtable_info comment.
7199 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7200 * values.c (value_headof, value_from_vtable_info): Delete.
7201 * value.h (value_from_vtable_info): Delete prototype.
7202
7203 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7204
7205 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7206 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7207 $(gdb_regex_h).
7208 (gdb_assert_h): Define.
7209 (gdb_wait_h): Define.
7210 (gdb_regex_h): Define.
7211
7212 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7213
7214 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7215 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7216
7217 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7218
7219 * nbsd-tdep.c: Fix comment.
7220
7221 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7224 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7225 (nbsd-tdep.o): New dependency list.
7226 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7227 nbsd-tdep.h.
7228 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7229 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7230 * nbsd-tdep.c: New file.
7231 * nbsd-tdep.h: New file.
7232 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7233 nbsd-tdep.h.
7234 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7235 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7236 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7237 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7238
7239 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7240
7241 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7242 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7243 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7244 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7245 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7246 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7247
7248 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7249
7250 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7251 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7252 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7253 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7254 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7255 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7256 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7257
7258 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7259
7260 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7261 fetch_elfcore_registers to...
7262 * i386nbsd-tdep.c: ...here.
7263 (i386nbsd_use_struct_convention): Rename to...
7264 (i386nbsd_aout_use_struct_convention): ...this.
7265 (i386nbsd_supply_reg): New function.
7266 (i386nbsd_fill_reg): New function.
7267 (fetch_core_registers): Use i386nbsd_supply_reg.
7268 (fetch_elfcore_registers): Likewise.
7269 (_initialize_i386nbsd_tdep): New function.
7270 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7271 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7272 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7273 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7274 (i386nbsd_aout_use_struct_convention): ...this.
7275
7276 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7279 (store_inferior_registers): Use shnbsd_fill_reg.
7280 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7281 sh_nbsd_supply_register): Collapse into...
7282 (shnbsd_supply_reg): ...this.
7283 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7284 (shnbsd_fill_reg): ...this.
7285 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7286 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7287 (fetch_core_registers): Use shnbsd_supply_reg.
7288 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7289 (sh_nbsd_core_fns): Rename to...
7290 (shnbsd_core_fns): ...this.
7291 (sh_nbsd_elfcore_fns): Rename to...
7292 (shnbsd_elfcore_fns): ...this.
7293 (sh_nbsd_init_abi): Rename to...
7294 (shnbsd_init_abi): ...this.
7295 (_initialize_sh_nbsd_tdep): Rename to...
7296 (_initialize_shnbsd_tdep): ...this.
7297 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7298 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7299 sh_nbsd_fill_register): Remove prototypes.
7300 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7301
7302 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7303
7304 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7305 (i387-nat.o): Delete dependency list.
7306 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7307 (x86-64-linux-nat.o): Likewise.
7308 * i387-nat.c: Delete file, moving contents to...
7309 * i387-tdep.c: ...here.
7310 * i387-nat.h: Rename...
7311 * i387-tdep.h: ...to this.
7312 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7313 * i386-linux-nat.c: Likewise.
7314 * i386bsd-nat.c: Likewise.
7315 * i386gnu-nat.c: Likewise.
7316 * i386nbsd-nat.c: Likewise.
7317 * i386v4-nat.c: Likewise.
7318 * x86-64-linux-nat.c: Likewise.
7319 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7320 * config/i386/go32.mh (NATDEPFILES): Likewise.
7321 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7322 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7323 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7324 * config/i386/linux.mh (NATDEPFILES): Likewise.
7325 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7326 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7327 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7328 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7329
7330 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7331
7332 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7333 (alphanbsd-nat.o): Remove dependency list.
7334 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7335 * alphanbsd-nat.c: Delete. Contents moved to...
7336 * alphanbsd-tdep.c: ...here.
7337 (_initialize_alphanbsd_tdep): Register core functions.
7338 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7339
7340 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7341
7342 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7343 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7344 (alphanbsd-nat.o): Likewise.
7345 (alphabsd-tdep.o): New dependency list.
7346 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7347 (fill_gregset): Use alphabsd_fill_reg.
7348 (supply_fpregset): Use alphabsd_supply_fpreg.
7349 (fill_fpregset): Use alphabsd_fill_fpreg.
7350 (fetch_inferior_registers): Use struct reg and struct fpreg
7351 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7352 and alphabsd_supply_fpreg.
7353 (store_inferior_registers): Use struct reg and struct fpreg
7354 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7355 and alphabsd_fill_fpreg.
7356 * alphabsd-tdep.c: New file.
7357 * alphabsd-tdep.h: New file.
7358 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7359 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7360 alphabsd_supply_fpreg.
7361 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7362 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7363
7364 2002-05-11 Eric Christopher <echristo@redhat.com>
7365
7366 * mips-tdep.c (mips_double_register_type): Fix thinko.
7367 (mips_single_register_type): Ditto.
7368 * MAINTAINERS: Add self.
7369
7370 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7371
7372 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7373 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7374 right thing on architectures with different endianness and/or
7375 integer sizes.
7376
7377 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7378
7379 From Christian Limpach <chris@Pin.LU>
7380 * configure.in: Change sed expression which comments out
7381 NATDEPFILES to also comment out continuation lines.
7382 * configure: Regenerate.
7383
7384 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7385
7386 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7387 big patch.
7388
7389 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7390
7391 * sh-tdep.c: Include correct file.
7392
7393 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7394
7395 New support for sh64-elf (sh5) target.
7396
7397 * configure.tgt: For sh64-elf target, default to sh-elf.
7398
7399 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7400 (struct gdbarch_tdep): Add new fields for new registers and ABI
7401 info.
7402
7403 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7404 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7405 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7406 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7407 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7408 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7409 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7410 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7411 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7412 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7413 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7414 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7415 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7416 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7417 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7418 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7419 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7420 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7421 sign_extend, sh64_nofp_frame_init_saved_regs,
7422 sh64_init_extra_frame_info, sh64_get_saved_register,
7423 sh64_extract_struct_value_address, sh64_pop_frame,
7424 sh64_push_arguments, sh64_extract_return_value,
7425 sh64_store_return_value, sh64_show_media_regs,
7426 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7427 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7428 sh_sh64_register_virtual_type,
7429 sh_sh64_register_convert_to_virtual,
7430 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7431 sh64_register_read, sh64_pseudo_register_write,
7432 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7433 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7434 sh64_do_pseudo_register, sh_compact_do_registers_info,
7435 sh64_do_registers_info, sh_gdbarch_init): New functions.
7436
7437 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7438
7439 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7440
7441 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7442
7443 * linespec.c (decode_line_1): Check for a double quote after
7444 a filename correctly.
7445
7446 2002-05-10 Jim Blandy <jimb@redhat.com>
7447
7448 Properly track the size of the current objfile's .debug_line section.
7449 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7450 (DWARF_LINE_SIZE): New macro.
7451 (dwarf2_build_psymtabs_hard): Record the line section's size in
7452 the partial symbol table.
7453 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7454 symbol table.
7455
7456 2002-05-10 Petr Sorfa <petrs@caldera.com>
7457
7458 * ia64-tdep.c: Handle breakpoints on L instruction type
7459 in MLX instruction bundle by moving the breakpoint to
7460 the third slot (X instruction type) as L holds only data.
7461
7462 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7463
7464 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7465 (process_one_symbol): Complain about discarding local symbols
7466 due to a misplaced N_LBRAC entry.
7467
7468 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7469
7470 From Daniel Berlin <dan@cgsoftware.com>
7471 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7472 decrease the depth we are at, in the case of templates.
7473
7474 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7475
7476 * mips-tdep.c (mips_float_register_type): New function.
7477 (mips_double_register_type): New function.
7478 (mips_print_register): Use them.
7479 (do_fp_register_row): Likewise.
7480
7481 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7482
7483 * signals/signals.c (signals): Remove conditional compilation around
7484 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7485 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7486
7487 2002-05-09 Michael Snyder <msnyder@redhat.com>
7488
7489 * remote-rdp.c (remote_rdp_can_run): Remove.
7490
7491 2002-05-09 Tom Tromey <tromey@redhat.com>
7492
7493 * jv-valprint.c (java_val_print): Handle `char' as a special case
7494 of TYPE_CODE_INT.
7495
7496 2002-05-09 Michael Snyder <msnyder@redhat.com>
7497
7498 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7499 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7500 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7501 str r(0123),[sp,#nn].
7502 (arm_skip_prologue): Ditto. Also make disassembly
7503 order-independent by placing it in a loop.
7504
7505 2002-05-06 Michael Snyder <msnyder@redhat.com>
7506
7507 * stabsread.c (read_type): Add recognition for new attribute:
7508 "@V;" means that an array type is actually a vector.
7509 This is analogous to the vector flag that's been added to dwarf2.
7510
7511 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7512
7513 * i386-tdep.h (i386_abi): New enum.
7514 (struct gdbarch_tdep): Replace os_ident member with abi.
7515 (i386_gdbarch_register_os_abi): New prototype.
7516 * i386-tdep.c (i386_abi_names): New array.
7517 (process_note_abi_tag_sections): Removed.
7518 (process_note_sections): New function.
7519 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7520 (struct i386_abi_handler): New struct.
7521 (i386_abi_handler_list): New variable.
7522 (i386_gdbarch_register_os_abi): New function.
7523 (i386_gdbarch_init): Adapt for the changes given above.
7524
7525 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7526
7527 * gregset.h: Say "GNU/Linux".
7528
7529 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7530
7531 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7532 (build_gdbtypes): Build builtin_type_v2_float.
7533 (_initialize_gdbtypes): Register new builtin type.
7534
7535 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7536
7537 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7538 (clear_gdbarch_swap): New function.
7539 (initialize_non_multiarch): Call.
7540 (gdbarch_update_p): Before calling init(), swap out and clear the
7541 existing architecture.
7542 * gdbarch.c: Regenerate.
7543
7544 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7545
7546 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7547 alphanbsd-tdep.c.
7548
7549 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7550
7551 * sh-nbsd-nat.c: Rename to...
7552 * shnbsd-nat.c: ...this.
7553 * sh-nbsd-tdep.c: Rename to...
7554 * shnbsd-tdep.c: ...this.
7555 * sh-nbsd-tdep.h: Rename to...
7556 * shnbsd-tdep.h: ...this.
7557 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7558 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7559
7560 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7561
7562 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7563 concatenation for command help messages.
7564
7565 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * NEWS: Note new sh*-*-netbsdelf* configuration.
7568 * configure.host: Set gdb_host_cpu to sh for all sh*.
7569 (sh*-*-netbsdelf*): New host.
7570 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7571 (sh*-*-netbsdelf*): New target.
7572 * sh-nbsd-nat.c: New file.
7573 * sh-nbsd-tdep.c: New file.
7574 * sh-nbsd-tdep.h: New file.
7575 * config/sh/nbsd.mh: New file.
7576 * config/sh/nbsd.mt: New file.
7577 * config/sh/nm-nbsd.h: New file.
7578 * config/sh/tm-nbsd.h: New file.
7579
7580 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7581
7582 * sh-tdep.c (sh_osabi_names): Declare.
7583 (process_note_abi_tag_sections): New function.
7584 (get_elfosabi): Ditto.
7585 (sh_gdbarch_register_os_abi): Ditto.
7586 (sh_dump_tdep): Ditto.
7587 _initialize_sh_tdep): Use gdbarch_register to register
7588 sh_gdbarch_init and sh_dump_tdep.
7589 * config/sh/tm-sh.h (sh_osabi): Declare.
7590 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7591
7592 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7593
7594 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7595 (thumb_scan_prologue): Ditto.
7596 (arm_find_callers_reg): Ditto.
7597 (arm_frame_chain): Ditto.
7598 (arm_init_extra_frame_info): Ditto.
7599 (arm_frame_saved_pc): Ditto.
7600 (arm_pop_frame): Ditto.
7601 (arm_push_return_address): New function.
7602 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7603 call_dummy_location, call_dummy_breakpoint_offset_p,
7604 call_dummy_breakpoint_offset, call_dummy_p,
7605 call_dummy_stack_adjust_p, call_dummy_words,
7606 sizeof_call_dummy_words, call_dummy_start_offset,
7607 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7608 call_dummy_address, push_return_address and push_dummy_frame for
7609 generic dummy frames.
7610
7611 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7612
7613 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7614 size computation for alloca.
7615 (sh_fp_frame_init_saved_regs): Likewise.
7616
7617 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7618
7619 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7620 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7621 * arm-tdep.c (arm_store_return_value): Use them.
7622 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7623 * remote-rdp.c (remote_rdp_fetch_register): Use
7624 ARM_MAX_REGISTER_RAW_SIZE.
7625 (remote_rdp_store_register): Likewise.
7626
7627 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7628
7629 * dwarf2cfi.c: Code cleanup, removed unused variables,
7630 added default labels to switch {} statements.
7631 * x86-64-tdep.c: Ditto.
7632 * x86-64-linux-nat.c: Ditto.
7633
7634 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7635
7636 * solib.h: Protect against multiple inclusion.
7637
7638 2002-05-06 Jim Blandy <jimb@redhat.com>
7639
7640 Add first preprocessor macro-expansion files.
7641 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7642 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7643 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7644 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7645 (COMMON_OBS): Add macrotab.o, macroexp.o.
7646 (macroexp.o, macrotab.o): New rules.
7647
7648 Separate the job of reading the line number info statement program
7649 header (...expialidocious) out into its own function.
7650 * dwarf2read.c (struct line_head, struct filenames, struct
7651 directories): Replace with...
7652 (struct line_header): New structure, containing the full
7653 contents of the statement program header, including the
7654 include directory and file name tables.
7655 (read_file_scope): If we have line number info, instead of just
7656 calling dwarf_decode_lines to do all the work, call
7657 dwarf_decode_line_header first to get a `struct line_header'
7658 containing the data in the statement program header, and then
7659 pass that to dwarf_decode_lines, which will pick up where that
7660 left off. Be sure to clean up the `struct line_header' object.
7661 (dwarf_decode_line_header, free_line_header, add_include_dir,
7662 add_file_name): New functions.
7663 (dwarf_decode_lines): Move all the code to read the statement
7664 program header into dwarf_decode_line_header. Take the line
7665 header it built as the first argument, instead of the offset to
7666 the compilation unit's line number info. Use the new `struct
7667 line_header' type instead of the old structures. No need to do
7668 cleanups here now, since we don't allocate anything.
7669 (dwarf2_statement_list_fits_in_line_number_section,
7670 dwarf2_line_header_too_long): New complaints.
7671
7672 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7673
7674 * gdbtypes.c (init_vector_type): New function.
7675 (build_builtin_type_vec128): Simplify the representation of SIMD
7676 registers.
7677 (build_gdbtypes): Initialize new builtin vector types.
7678 (_initialize_gdbtypes): Register new vector types with gdbarch.
7679 (builtin_type_v4_float, builtin_type_v4_int32,
7680 builtin_type_v8_int16, builtin_type_v16_int8,
7681 builtin_type_v2_int32, builtin_type_v4_int16,
7682 builtin_type_v8_int8): New (renamed) SIMD types.
7683
7684 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7685
7686 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7687 (i387_fill_fxsave): Likewise.
7688
7689 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7690
7691 * alpha-tdep.c (alpha_extract_return_value): Don't use
7692 non-constant array size in prototype.
7693
7694 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7695
7696 From Brian Taylor <briant at model dot com>:
7697 * ui-out.c (ui_out_field_core_addr): Use the function
7698 longest_local_hex_string_custom'to format addresses > 32 bits
7699 wide.
7700
7701 * ui-out.c (ui_out_field_core_addr): Update comment.
7702
7703 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7704
7705 * stack.c (select_and_print_frame): Make static. Delete the
7706 parameter `level'.
7707 (func_command): Update call.
7708 (select_frame_command): Delete code computing the frame level.
7709 * frame.h (select_and_print_frame): Delete declaration.
7710
7711 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7712
7713 * sparc-tdep.c (sparc_get_saved_register): Comment why
7714 get_prev_frame call is safe.
7715
7716 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7717
7718 * frame.h (select_frame): Delete level parameter.
7719 * stack.c (select_frame): Update. Use frame_relative_level to
7720 obtain the frame's level.
7721 (select_and_print_frame): Update call.
7722 (select_frame_command): Ditto.
7723 (up_silently_base): Ditto.
7724 (down_silently_base): Ditto.
7725 * ocd.c (ocd_start_remote): Ditto.
7726 * remote-rdp.c (remote_rdp_open): Ditto.
7727 * remote-mips.c (mips_initialize): Ditto.
7728 (common_open): Ditto.
7729 * remote-e7000.c (e7000_start_remote): Ditto.
7730 * m3-nat.c (select_thread): Ditto.
7731 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7732 (child_get_current_exception_event): Ditto.
7733 * varobj.c (varobj_create): Ditto.
7734 (varobj_update): Ditto.
7735 (c_value_of_root): Ditto.
7736 * tracepoint.c (finish_tfind_command): Ditto.
7737 * corelow.c (core_open): Ditto.
7738 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7739 * thread.c (info_threads_command): Ditto.
7740 (switch_to_thread): Ditto.
7741 * infrun.c (normal_stop): Ditto.
7742 (restore_selected_frame): Ditto.
7743 (restore_inferior_status): Ditto.
7744 * breakpoint.c (insert_breakpoints): Ditto.
7745 (watchpoint_check): Ditto.
7746 (bpstat_stop_status): Ditto.
7747 (do_enable_breakpoint): Ditto.
7748 * blockframe.c (flush_cached_frames): Ditto.
7749 (reinit_frame_cache): Ditto.
7750
7751 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7752
7753 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7754 maintainer.
7755
7756 2002-05-04 Jim Blandy <jimb@redhat.com>
7757
7758 * gdbtypes.c (replace_type): Doc fix.
7759
7760 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7761
7762 * valprint.c (strcat_longest): Delete commented out function.
7763 Update copyright.
7764
7765 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7766
7767 * MAINTAINERS: Mark a29k as deleted.
7768 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7769 Move new configurations to the top.
7770 * configure.tgt: Remove a29k.
7771 * config/a29k/tm-vx29k.h: Delete.
7772 * config/a29k/vx29k.mt: Delete.
7773 * config/a29k/tm-a29k.h: Delete.
7774 * config/a29k/a29k-udi.mt: Delete.
7775 * config/a29k/a29k.mt: Delete.
7776 * a29k-tdep.c: Delete.
7777 * remote-udi.c: Delete.
7778 * remote-mm.c: Delete.
7779 * remote-eb.c: Delete.
7780 * remote-adapt.c: Delete.
7781 * Makefile.in: Remove obsolete code.
7782 * config/s390/s390x.mt: Ditto.
7783 * config/s390/s390.mt: Ditto.
7784 * config/sparc/sparclynx.mh: Ditto.
7785 * config/sparc/linux.mh: Ditto.
7786 * config/pa/hppaosf.mh: Ditto.
7787 * config/pa/hppabsd.mh: Ditto.
7788 * config/ns32k/nbsd.mt: Ditto.
7789 * config/mips/vr5000.mt: Ditto.
7790 * config/m68k/sun3os4.mh: Ditto.
7791 * config/m68k/nbsd.mt: Ditto.
7792 * config/m68k/m68klynx.mh: Ditto.
7793 * config/m32r/m32r.mt: Ditto.
7794 * config/i386/x86-64linux.mt: Ditto.
7795 * config/i386/nbsdelf.mt: Ditto.
7796 * config/i386/nbsd.mt: Ditto.
7797 * config/i386/i386lynx.mh: Ditto.
7798
7799 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7800
7801 * target.c (debug_print_register): New function. Handle oversize
7802 registers.
7803 (debug_to_fetch_registers): Call.
7804 (debug_to_store_registers): Call.
7805
7806 2002-05-03 Jim Blandy <jimb@redhat.com>
7807
7808 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7809 (read_type): Doc fix.
7810 * gdbtypes.c (replace_type): Doc fix.
7811
7812 * stabsread.c (multiply_defined_struct): New complaint.
7813 (read_struct_type): If the type we were passed isn't empty, or
7814 incomplete, don't read the new struct type into it; complain,
7815 and return the original type unchanged. Take a new `type_code'
7816 argument, which is the type code for the new type.
7817 (read_type): Rather than storing the type's type code here, pass
7818 it as an argument to read_struct_type, and let that take care of
7819 storing it. That way, we don't overwrite the original type code,
7820 so read_struct_type can use it to decide whether we're overwriting
7821 something we shouldn't.
7822 (complain_about_struct_wipeout): New function.
7823
7824 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7825
7826 * gdbarch.sh: Assert that gdbarch is non-NULL.
7827 * gdbarch.c: Regenerate.
7828
7829 2002-05-03 Jason Merrill <jason@redhat.com>
7830
7831 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7832 and return NULL.
7833
7834 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7835
7836 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7837 (x86_64_dwarf2gdb_regno_map_length),
7838 (x86_64_dwarf2_reg_to_regnum): Added.
7839 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7840 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7841 (_initialize_x86_64_tdep): Synced with the change above.
7842 (x86_64_skip_prologue): Reformulated message.
7843
7844 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7845
7846 * f-exp.y: Also use new prev_lexptr variable
7847 to improve error reporting. Based on Michael Snyder
7848 2002-04-24 dated patch to c-exp.y.
7849 * jv-exp.y: Likewise.
7850 * m2-exp.y: Likewise.
7851
7852 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7853
7854 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7855 we are dealing with vectors.
7856
7857 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7858
7859 * config/m68k/tm-nbsd.h: Obvious fix,
7860 correct machine name.
7861
7862 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7863
7864 * p-typeprint.c (pascal_type_print_base): Add support
7865 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7866
7867 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7868
7869 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7870 for fondamental pascal 'char' type.
7871
7872 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7873
7874 * p-lang.h (is_pascal_string_type): Declaration changed,
7875 new sixth argument of type char ** added.
7876 * p-lang.c (is_pascal_string_type): Implementation
7877 changed. Args length_pos, length_size, string_pos, char_size
7878 can now be NULL. New argument arrayname set to the field
7879 name of the char array. Return value set to char array
7880 field index plus one.
7881 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7882 is_pascal_string_type function.
7883
7884 2002-05-02 Andrew Cagney <cagney@redhat.com>
7885
7886 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7887 <cagney@redhat.com> change.
7888 * gdbarch.c: Regenerate.
7889
7890 2002-05-02 Andrew Cagney <cagney@redhat.com>
7891
7892 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7893 before probing for a new one. Detect errorenous gdbarch_init
7894 functions.
7895 * gdbarch.c: Regenerate.
7896
7897 2002-05-01 Andrew Cagney <cagney@redhat.com>
7898
7899 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7900 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7901 * config/v850/tm-v850.h: Ditto. Update copyright.
7902
7903 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7904
7905 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7906 current_gdbarch.
7907
7908 2002-04-30 Michael Snyder <msnyder@redhat.com>
7909
7910 * arm-tdep.c: Whitespace clean-ups.
7911 (arm_skip_prologue): Fix thinko; two lines
7912 should have been removed as part of 4/24 change.
7913
7914 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7915
7916 * rs6000-tdep.c: Added comment describing how fpscr register
7917 numbers were chosen.
7918
7919 2002-04-30 Michael Snyder <msnyder@redhat.com>
7920
7921 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7922
7923 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7924
7925 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7926 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7927 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7928
7929 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7930
7931 From Louis Hamilton <hamilton@redhat.com>:
7932 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7933 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7935 not bfd-private xcoff data, to determine wordsize.
7936 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7937
7938 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7939
7940 GDB 5.2 released from 5.2 branch.
7941
7942 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7943
7944 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7945 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7946 (x86_64_register_info_table): Added comments with register numbers.
7947
7948 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7949
7950 * rs6000-tdep.c (rs6000_extract_return_value,
7951 rs6000_store_return_value): Handle returning vectors.
7952 (rs6000_gdbarch_init): Use
7953 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7954 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7955 New function.
7956 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7957 vectors.
7958 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7959 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7960
7961 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7962
7963 * hpread.c (hpread_psymtab_to_symtab_1,
7964 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7965 with fprintf_unfiltered (gdb_stderr,...).
7966
7967 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7968
7969 * remote-array.c (printf_monitor, write_monitor,
7970 array_insert_breakpoint, array_remove_breakpoint ):
7971 Replace fprintf (stderr,...
7972 with fprintf_unfiltered (gdb_stderr,....
7973 * remote-es.c: Likewise.
7974 * remote-os9k.c: Likewise.
7975 * remote-st.c: Likewise.
7976
7977 2002-04-28 Andreas Schwab <schwab@suse.de>
7978
7979 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7980 linux-proc.o and gcore.o.
7981
7982 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7983
7984 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7985 code without frame pointers.
7986
7987 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7988
7989 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7990 ON_STACK is needed.
7991
7992 2002-04-26 Ben Elliston <bje@redhat.com>
7993
7994 * target.c (do_xfer_memory): Correct reference to the new option
7995 "trust-readonly-sections".
7996
7997 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7998
7999 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8000 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8001 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8002 vectors.
8003 (read_array_type): Record the fact that this array type is really a
8004 vector (i.e. are passed in by value).
8005
8006 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8009 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8010 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8011 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8012 * alpha-linux-tdep.c: Include frame.h.
8013 (alpha_linux_sigcontext_addr): New function.
8014 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8015 alpha_linux_sigcontext_addr.
8016 * alpha-osf1-tdep.c: Include gdbcore.h.
8017 (alpha_osf1_sigcontext_addr): New function.
8018 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8019 alpha_osf1_sigcontext_addr.
8020 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8021 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8022
8023 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8024
8025 * stack.c (selected_frame_level):
8026 (select_frame): Do not set selected_frame_level.
8027 * frame.h (selected_frame_level): Delete declaration.
8028
8029 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8030
8031 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8032 convert_from_func_ptr-addr when AIX / PowerOpen.
8033
8034 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8035
8036 * valops.c (hand_function_call): Call
8037 generic_save_call_dummy_addr.
8038 * frame.h (generic_save_call_dummy_addr): Declare.
8039 * blockframe.c (struct dummy_frame): Add fields call_lo and
8040 call_hi.
8041 (generic_find_dummy_frame): Check for PC in range call_lo to
8042 call_hi instead of entry_point_address.
8043 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8044 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8045 (generic_save_call_dummy_addr): New function.
8046
8047 2002-04-24 David S. Miller <davem@redhat.com>
8048
8049 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8050 sparc_skip_prologue.
8051 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8052 information to find prologue when possible.
8053 (sparc_prologue_frameless_p): Call examine_prologue directly.
8054 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8055 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8056 second argument.
8057 (SKIP_PROLOGUE): Likewise.
8058
8059 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8060
8061 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8062 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8063 indicate that the condition it was testing is always true.
8064 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8065 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8066 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8067
8068 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8069
8070 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8071 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8072 tdep->jb_pc and tdep->jb_elt_size.
8073 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8074 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8075 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8076 * alpha-nat.c (get_longjmp_target): Remove.
8077 (JB_ELEMENT_SIZE): Ditto.
8078 (JB_PC): Ditto.
8079 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8080 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8081 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8082 to alpha_get_longjmp_target.
8083 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8084 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8085 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8086
8087 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8088
8089 * README: Update to GDB 5.2.
8090
8091 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8092
8093 * gdbarch.sh (LC_ALL): Set to `c'.
8094
8095 2002-04-25 Theodore A. Roth <troth@verinet.com>
8096
8097 * avr-tdep.c: Ran through gdb_indent.sh.
8098
8099 2002-04-25 Theodore A. Roth <troth@verinet.com>
8100
8101 * MAINTAINERS: Add myself as AVR maintainer.
8102 * NEWS: Note new target avr.
8103
8104 2002-04-25 Theodore A. Roth <troth@verinet.com>
8105
8106 * Makefile.in: Add support for AVR target.
8107 * configure.tgt: Add support for AVR target.
8108 * avr-tdep.c: New file
8109 * config/avr/avr.mt: New file.
8110
8111 2002-04-25 Theodore A. Roth <troth@verinet.com>
8112
8113 * MAINTAINERS: Add myself to write-after-approval.
8114
8115 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8116
8117 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8118 with fprintf_unfiltered (gdb_stderr,....
8119
8120 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8121
8122 Fix PR gdb/508.
8123 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8124
8125 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8126
8127 * p-exp.y: Also use new prev_lexptr variable
8128 to improve error reporting. Based on Michael Snyder
8129 2002-04-24 dated patch to c-exp.y.
8130
8131 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8132
8133 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8134 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8135 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8136 to 0.
8137 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8138 and struct value.
8139 (FUNCTION_START_OFFSET): Remove.
8140 (BREAKPOINT): Ditto.
8141
8142 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8143
8144 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8145 * NEWS: Ditto.
8146
8147 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8148
8149 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8150 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8151 alpha_linux_pc_in_sigtramp.
8152 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8153 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8154 alpha_osf1_pc_in_sigtramp.
8155 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8156 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8157 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8158 alphafbsd_pc_in_sigtramp.
8159 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8160 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8161 alphanbsd_pc_in_sigtramp.
8162 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8163 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8164
8165 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8166
8167 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8168
8169 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8170
8171 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8172 alphanbsd-tdep.c.
8173 (alphanbsd-nat.o): New dependency list.
8174 (alphanbsd-tdep.o): Ditto.
8175 * NEWS: Note new native NetBSD/alpha configuration.
8176 * alphanbsd-nat.c: New file.
8177 * alphanbsd-tdep.c: Ditto.
8178 * configure.host (alpha*-*-netbsd*): New host.
8179 * configure.tgt (alpha*-*-netbsd*): New target.
8180 * config/alpha/nbsd.mh: New file.
8181 * config/alpha/nbsd.mt: Ditto.
8182 * config/alpha/nm-nbsd.h: Ditto.
8183 * config/alpha/tm-nbsd.h: Ditto.
8184
8185 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8186
8187 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8188 (alpha-osf1-tdep.o): New dependency list.
8189 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8190 and skip_sigtramp_frame members.
8191 * alpha-linux-tdep.c: Include gdbcore.h.
8192 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8193 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8194 * alpha-osf1-tdep.c: New file.
8195 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8196 alpha-osf1-dep.c.
8197 (alpha_frame_past_sigtramp_frame): New function.
8198 (alpha_dynamic_sigtramp_offset): Ditto.
8199 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8200 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8201 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8202 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8203 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8204 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8205 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8206 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8207 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8208 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8209 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8210 to find_solib_trampoline_target.
8211 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8212 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8213 (SKIP_TRAMPOLINE_CODE): Remove.
8214 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8215 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8216 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8217 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8218 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8219 (PROC_SIGTRAMP_MAGIC): Ditto.
8220 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8221 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8222 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8223 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8224 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8225
8226 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8227
8228 * NEWS: Note that Alpha targets are now multi-arch.
8229
8230 2002-04-24 Michael Snyder <msnyder@redhat.com>
8231
8232 * parser-defs.h (prev_lexptr): New external variable.
8233 * parse.c (parse_exp_1): Set prev_lexptr to null before
8234 calling the language-specific parser.
8235 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8236 (yyerror): Use prev_lexptr in error reporting.
8237
8238 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8239
8240 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8241 * gregset.h: If FILL_FPXREGSET is defined, provide
8242 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8243 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8244 is defined, call fill_fpxregset.
8245
8246 2002-04-24 Roland McGrath <roland@frob.com>
8247
8248 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8249 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8250 (supply_gregset, supply_fpregset): New functions.
8251
8252 * gnu-nat.c (gnu_find_memory_regions): New function.
8253 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8254 (gnu_xfer_memory): Add a cast.
8255
8256 2002-04-24 Michael Snyder <msnyder@redhat.com>
8257
8258 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8259 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8260 of argument regs ("str r(0123), [r11, #-nn"]).
8261 (arm_skip_prologue): Better handling for frameless functions.
8262 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8263 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8264
8265 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8266
8267 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8268 NUM_PSEUDO_REGS can be used.
8269
8270 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8271
8272 * arch-utils.h: Update copyright.
8273
8274 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8275 * gdbarch.h, gdbarch.c: Re-generate.
8276
8277 * inferior.h (IN_SIGTRAMP): Delete definition.
8278 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8279 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8280
8281 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8282 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8283 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8284 (find_proc_framesize): Ditto.
8285 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8286 (alpha_init_extra_frame_info): Ditto.
8287 * infrun.c (handle_inferior_event): Ditto.
8288 (handle_inferior_event): Ditto.
8289 (check_sigtramp2): Ditto.
8290 * blockframe.c (create_new_frame): Ditto.
8291 (get_prev_frame): Ditto.
8292 * ppc-linux-tdep.c: Update comments.
8293 * i386-linux-tdep.c: Update comments.
8294 * breakpoint.c (bpstat_what): Update comment.
8295
8296 2002-04-24 David S. Miller <davem@redhat.com>
8297
8298 * i960-tdep.c (register_in_window_p): New function.
8299 (i960_find_saved_register): Use it instead of
8300 REGISTER_IN_WINDOW_P.
8301 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8302
8303 * symtab.h (find_stab_function_addr): Kill extern.
8304 * minsyms.c (find_stab_function_addr): Remove from here...
8305 * dbxread.c: ... to here, and mark it static.
8306
8307 2002-04-20 David S. Miller <davem@redhat.com>
8308
8309 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8310 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8311
8312 2002-04-21 David S. Miller <davem@redhat.com>
8313
8314 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8315 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8316 (vx_write_register): Likewise.
8317
8318 2002-04-23 J. Brobecker <brobecker@gnat.com>
8319
8320 * source.c (is_regular_file): New function.
8321 (openp): Check wether file to open is a regular file
8322 to avoid opening directories.
8323
8324 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8325
8326 * findvar.c (extract_signed_integer): Cast printf argument
8327 to suppress format warning.
8328 (extract_unsigned_integer): Likewise.
8329 * infcmd.c (registers_info): Likewise.
8330 * top.c (get_prompt_1): Likewise.
8331 * valops.c (value_assign): Likewise.
8332 * valprint.c (print_decimal): Likewise.
8333
8334 2002-04-22 H.J. Lu (hjl@gnu.org)
8335
8336 * c-exp.y (typebase): Support
8337
8338 [long|long long|short] [signed|unsigned] [int|]
8339
8340 and
8341
8342 signed [long|long long|short] int
8343
8344 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8347 and vax-tdep.h.
8348 * vax-tdep.h: New file.
8349 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8350 Make several routines static.
8351 (vax_get_saved_register): New function.
8352 (vax_gdbarch_init): New function.
8353 (_initialize_vax_tdep): Register vax_gdbarch_init.
8354 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8355 Remove macros now under the control of gdbarch.
8356
8357 2002-04-22 Michael Snyder <msnyder@redhat.com>
8358
8359 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8360 Some whitespace and coding standards tweaks.
8361
8362 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8363
8364 * vax-tdep.c: Include regcache.h.
8365 (vax_call_dummy_words): New.
8366 (sizeof_vax_call_dummy_words): New.
8367 (vax_fix_call_dummy): New function.
8368 (vax_saved_pc_after_call): Ditto.
8369 * config/vax/tm-vax.h: Don't include regcache.h.
8370 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8371 (CALL_DUMMY): Remove.
8372 (CALL_DUMMY_WORDS): Define.
8373 (SIZEOF_CALL_DUMMY_WORDS): Define.
8374 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8375
8376 2002-04-18 Michael Snyder <msnyder@redhat.com>
8377
8378 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8379
8380 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8381
8382 * vax-tdep.c (vax_frame_chain): New function.
8383 (vax_push_dummy_frame): Ditto.
8384 (vax_pop_frame): Ditto.
8385 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8386 (FRAMELESS_FUNCTION_INVOCATION): Use
8387 generic_frameless_function_invocation_not.
8388 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8389 (POP_FRAME): Use vax_pop_frame.
8390
8391 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8392
8393 * vax-tdep.c (vax_store_struct_return): New function.
8394 (vax_extract_return_value): Ditto.
8395 (vax_store_return_value): Ditto.
8396 (vax_extract_struct_value_address): Ditto.
8397 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8398 vax_store_struct_return.
8399 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8400 (STORE_RETURN_VALUE): Use vax_store_return_value.
8401 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8402
8403 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8404
8405 * vax-tdep.c (vax_frame_saved_pc): New function.
8406 (vax_frame_args_address_correct): Ditto.
8407 (vax_frame_args_address): Ditto.
8408 (vax_frame_locals_address): Ditto.
8409 (vax_frame_num_args): Move code to be in proximity to
8410 other frame-related functions.
8411 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8412 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8413 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8414 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8415 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8416
8417 2002-04-22 H.J. Lu (hjl@gnu.org)
8418
8419 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8420 includedir.
8421
8422 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8423
8424 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8425 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8426 (FRAME_INIT_SAVED_REGS): New macro.
8427
8428 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8429
8430 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8431
8432 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8433
8434 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8435 where needed.
8436 (fetch_osf_core_registers): Likewise.
8437 (supply_gregset): Likewise.
8438
8439 2002-04-22 J. Brobecker <brobecker@gnat.com>
8440
8441 * symfile.h (get_section_index): Define.
8442 * symfile.c (get_section_index): New function.
8443 * mdebugread.c (SC_IS_SBSS): New macro.
8444 (SC_IS_BSS): Return true for the scBss storage class only, as
8445 the scSBss storage class refers to the .sbss section.
8446 (parse_partial_symbols): Discard the symbols which associated
8447 section does not exist.
8448 Make sure to use the .sbss section index for symbols which
8449 storage class is scBss, rather than using the .bss section index.
8450
8451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8452
8453 * vax-tdep.c: Update copyright years.
8454 (vax_register_name): New function.
8455 (vax_register_byte): Ditto.
8456 (vax_register_raw_size): Ditto.
8457 (vax_register_virtual_size): Ditto.
8458 (vax_register_virtual_type): Ditto.
8459 * config/vax/tm-vax.h: Update copyright years.
8460 (REGISTER_NAMES): Remove.
8461 (REGISTER_NAME): Define.
8462 (REGISTER_BYTE): Use vax_register_byte.
8463 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8464 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8465 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8466
8467 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8468
8469 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8470 declaration
8471 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8472
8473 2002-04-21 David S. Miller <davem@redhat.com>
8474
8475 * arch-utils.c (generic_prologue_frameless_p): Kill
8476 SKIP_PROLOGUE_FRAMELESS_P code.
8477 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8478 references.
8479 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8480 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8481 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8482 references.
8483 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8484 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8485 (sparc_gdbarch_init): Pass it to
8486 set_gdbarch_prologue_frameless_p.
8487
8488 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8489
8490 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8491 (alphabsd-nat.o): New dependency list.
8492
8493 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8494
8495 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8496 alphafbsd-tdep.c.
8497 (alpha-linux-tdep.o): New dependency list.
8498 (alphafbsd-tdep.o): Likewise.
8499
8500 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8501
8502 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8503 to here...
8504 * alpha-tdep.c: ...from here.
8505 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8506
8507 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8508
8509 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8510 prototype from here...
8511 * alpha-tdep.h: ...to here.
8512
8513 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8514
8515 * frame.h (selected_frame_level): Document as deprecated.
8516 (frame_relative_level): Declare.
8517 * stack.c (frame_relative_level): New function.
8518 (selected_frame_level): Document as deprecated.
8519 (select_frame): Do not set the selected_frame_level.
8520
8521 * stack.c (frame_info, record_selected_frame): Update.
8522 (frame_command, current_frame_command): Update.
8523 (up_silently_base, up_command, down_silently_base): Update.
8524 (down_command): Update.
8525 * inflow.c (kill_command): Update.
8526 * tracepoint.c (finish_tfind_command): Update.
8527 * corelow.c (core_open): Update.
8528 * thread.c (info_threads_command): Update.
8529 (do_captured_thread_select): Update.
8530 * infcmd.c (finish_command): Update.
8531 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8532
8533 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8534
8535 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8536
8537 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8538
8539 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8540 type const.
8541
8542 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8543
8544 * alphafbsd-tdep.c: Update copyright years. Include
8545 alpha-tdep.h.
8546 (alphafbsd_use_struct_convention): Make static.
8547 (alphafbsd_init_abi): New function.
8548 (_initialize_alphafbsd_tdep): New function.
8549 * config/alpha/tm-fbsd.h: Update copyright years.
8550 (USE_STRUCT_CONVENTION): Remove.
8551
8552 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8553
8554 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8555 an Alpha ABI variant.
8556 (alpha_abi_handler_list): Declare.
8557 (alpha_gdbarch_register_os_abi): New function.
8558 (alpha_gdbarch_init): Give registered ABI variant handlers a
8559 chance to tweak the gdbarch once we have set up defaults.
8560 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8561
8562 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8565 to standard_coerce_float_to_double.
8566 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8567
8568 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8569
8570 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8571 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8572 from gdbarch_tdep rather than a constant.
8573 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8574 the default text address for all Alpha Unix ABIs.
8575 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8576 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8577
8578 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8579
8580 * alpha-tdep.h: New file. Includes several Alpha target constants
8581 taken from...
8582 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8583 let gdbarch deal with.
8584 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8585 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8586 to dependency list.
8587 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8588 Alpha target register names.
8589 * alphabsd-nat.c: Likewise.
8590 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8591 Alpha target register names. Make serveral routines static.
8592 (alpha_get_saved_register): New function.
8593 (alpha_abi_names): New.
8594 (process_note_abi_tag_sections): New function.
8595 (get_elfosabi): New function.
8596 (alpha_gdbarch_init): New function.
8597 (alpha_dump_tdep): New function.
8598 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8599
8600 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8601
8602 * frame.c (find_saved_register): Delete #ifdef
8603 HAVE_REGISTER_WINDOWS code.
8604 * config/sparc/tm-sparc.h: Update comments.
8605 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8606
8607 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8608
8609 * i960-tdep.c (i960_find_saved_register): New function.
8610 (i960_get_saved_register): New function.
8611 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8612 (i960_get_saved_register): Declare.
8613 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8614
8615 2002-04-20 David S. Miller <davem@redhat.com>
8616
8617 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8618
8619 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8620
8621 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8622 instead of NUM_PSEUDO_REGS.
8623
8624 2002-04-20 David S. Miller <davem@redhat.com>
8625
8626 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8627 GDB_MULTI_ARCH_PARTIAL
8628 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8629 define, let tm-sp64.h do it.
8630
8631 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8632
8633 * frame.c (find_saved_register): Avoid a NULL pointer
8634 dereference and actually walk the frame list.
8635
8636 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8637
8638 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8639 sorted in most most-recent-used order. Document.
8640 * gdbarch.h, gdbarch.c: Regenerate.
8641
8642 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8643
8644 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8645 instead of ->prev.
8646 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8647 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8648 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8649 instead of ->prev.
8650
8651 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8652
8653 Fix PR gdb/471.
8654 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8655 (build_builtin_type_vec128): Ditto.
8656 (append_composite_type_field): Fix calculation of type length in
8657 union case.
8658
8659 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8660
8661 * config/djgpp/README: Update.
8662
8663 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8664 compiler warnings.
8665
8666 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8667
8668 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8669 (alpha_setup_arbitrary_frame): ...to this.
8670 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8671 for alpha_setup_arbitrary_frame.
8672
8673 2002-04-18 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8676 * gdbarch.h, gdbarch.c: Regenerate.
8677
8678 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8679 * target.h (memory_breakpoint_from_pc): Update declaration.
8680 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8681
8682 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8683 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8684 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8685 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8686 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8687 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8688 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8689 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8690 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8691 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8692 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8693 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8694
8695 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8696 const pointer.
8697 * monitor.c (monitor_insert_breakpoint): Ditto.
8698 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8699
8700 * config/mcore/tm-mcore.h: Update copyright.
8701 * mem-break.c: Ditto.
8702 * xstormy16-tdep.c: Ditto.
8703
8704 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8705
8706 * p-exp.y: Add precedence rule for '^' token.
8707 This removes the shift/reduce conflicts.
8708 Remove the comment concerning these shift/reduce conflicts.
8709
8710 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8711
8712 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8713 (registers_powerpc_nofp): New register set for processors
8714 without floating point unit.
8715
8716 2002-04-18 David S. Miller <davem@redhat.com>
8717
8718 * MAINTAINERS: Add myself to write-after-approval.
8719
8720 2002-04-17 Michael Snyder <msnyder@redhat.com>
8721
8722 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8723
8724 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8725
8726 * rs6000-tdep.c (frame_initial_stack_address): Use
8727 frame_register_read to read the alloca_reg.
8728
8729 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8730
8731 * frame.c (find_saved_register): Find saved registers in the next
8732 not prev frame.
8733 Fix PR gdb/365.
8734
8735 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8736
8737 * gdbarch.sh (LANG): Set to ``c''.
8738
8739 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8740
8741 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8742
8743 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8744
8745 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8746 Update copyright.
8747
8748 * hpread.c (hpread_get_lntt): Add declaration.
8749 Also fix PR gdb/391.
8750
8751 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8752
8753 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8754 * aclocal.m4, configure: Re-generate.
8755 Fix PR gdb/391.
8756
8757 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8758
8759 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8760 instead of tm_print_insn.
8761
8762 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8763
8764 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8765
8766 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8767
8768 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8769 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8770 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8771
8772 2002-04-12 Don Howard <dhoward@redhat.com>
8773
8774 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8775 max_user_call_depth.
8776 (init_cmd_lists): Initialize the new value;
8777 * cli/cli-script.c (execute_user_command): Limit the call depth of
8778 user defined commands. This avoids a core-dump when user commands
8779 are infinitly recursive.
8780
8781 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8782
8783 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8784 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8785 from tdep struct instead of DEFAULT_LR_SAVE.
8786 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8787 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8788 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8789
8790 2002-04-12 Michael Snyder <msnyder@redhat.com>
8791
8792 * Remote.c: Spelling fix.
8793 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8794 If no symbol found for "sbrk", try "_sbrk".
8795 (make_output_phdrs): Use bfd_section_name.
8796 (gcore_copy_callback): Use bfd_section_name.
8797 * eval.c: Indentation fix-ups.
8798 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8799 in case it gets applied to an address that is already
8800 in the instruction space.
8801 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8802 * symfile.c: Fix indentation, long lines.
8803 * source.c: White space fix-up.
8804
8805 2002-04-12 Andrew Cagney <cagney@redhat.com>
8806
8807 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8808 * frame.c (frame_register_read): New function. Return non-zero on
8809 success.
8810 (read_relative_register_raw_bytes_for_frame): Delete.
8811 (read_relative_register_raw_bytes): Delete.
8812 * frame.h (frame_register_read): Declare.
8813 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8814 * sh-tdep.c: Ditto.
8815 * infcmd.c (do_registers_info): Ditto.
8816 * hppa-tdep.c: Ditto.
8817 * rs6000-tdep.c: Ditto.
8818 * h8500-tdep.c: Ditto.
8819 * mips-tdep.c: Ditto.
8820 * h8300-tdep.c: Ditto.
8821 * z8k-tdep.c: Ditto.
8822
8823 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8824
8825 From Jimi X <jimix@watson.ibm.com>:
8826 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8827 64-bit SysV ABI.
8828
8829 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8830
8831 From Jimi X <jimix@watson.ibm.com>:
8832 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8833 bfd info.
8834
8835 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8836
8837 From Jimi X <jimix@watson.ibm.com>:
8838 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8839 register sets for these processor variants.
8840
8841 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8842
8843 * regformats/reg-ppc.dat: Support FPSCR.
8844
8845 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8846
8847 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8848 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8849 Add fpscr as an invalid/unfetchable register.
8850 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8851 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8852 (fill_fpregset): Add support for register fpscr.
8853 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8854 (fill_gregset): Account for the fact that register ``mq'' might
8855 not exist.
8856 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8857 (registers_power): Add fpscr to register set at slot 71.
8858 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8859 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8860
8861 2002-04-11 Michael Snyder <msnyder@redhat.com>
8862
8863 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8864 * configure: Regenerate.
8865 * config.in: Regenerate.
8866 * acconfig.h: Add define for _SYSCALL32.
8867 * core-sol2.c: Remove #define _SYSCALL32.
8868 * solib-legacy.c: Remove #define _SYSCALL32.
8869
8870 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8871
8872 * stack.c (select_frame): Cleanup internal error message, do not
8873 use %p.
8874
8875 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8876
8877 * stack.c (select_frame): Check that selected_frame and the
8878 specified level are as expected.
8879 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8880 Update copyright.
8881 * frame.h (struct frame_info): Add field `level'. Update
8882 copyright.
8883 Work-in-progress PR gdb/464.
8884
8885 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8886
8887 * maint.c (maint_print_section_info): Rename print_section_info.
8888 (print_bfd_section_info, print_objfile_section_info): Update.
8889 * inferior.h (struct gdbarch): Add opaque declaration.
8890 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8891 * gdbarch.h: Regenerate.
8892
8893 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8894
8895 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8896 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8897 (kernel_u_size): Added.
8898 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8899 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8900
8901 2002-04-04 Jim Ingham <jingham@apple.com>
8902
8903 * valarith.c (find_size_for_pointer_math): New function, either returns
8904 the size for a pointer's target, returns 1 for void *, or errors for
8905 incomplete types.
8906 (value_add, value_sub): use find_size_for_pointer_math.
8907
8908 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8909
8910 * linux-low.c (linux_look_up_symbols): New hook.
8911 (linux_target_ops): Add linux_look_up_symbols.
8912 * remote-utils.c (decode_address): New function.
8913 (look_up_one_symbol): New function.
8914 * server.c (handle_query): Call target look_up_symbols hook.
8915 * server.h (look_up_one_symbol): Add prototype.
8916 * target.h (struct target_ops): Add look_up_symbols hook.
8917
8918 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8919
8920 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8921 override FP_REGNUM with frame->fp. Update copyright.
8922 * parse.c (num_std_regs, std_regs): Delete.
8923 (target_map_name_to_register): Do not search std_regs. Update
8924 function description.
8925 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8926 declarations. Update copyright.
8927 Fix PR gdb/251.
8928
8929 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8930
8931 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8932 after the last symbol in a block.
8933
8934 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8935
8936 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8937 is non zero as a found symbol.
8938
8939 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8940
8941 * findvar.c: Include "builtin-regs.h".
8942 (value_of_register): Call value_of_builtin_reg when applicable.
8943 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8944 (target_map_name_to_register): Call
8945 builtin_reg_map_name_to_regnum.
8946 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8947 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8948 (builtin_regs_h): Define.
8949 (builtin-regs.o): New target.
8950 (findvar.o): Add $(builtin_regs_h).
8951 * builtin-regs.c, builtin-regs.h: New files.
8952 * std-regs.c: New file.
8953 Partial fix for PR gdb/251.
8954
8955 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8956
8957 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8958 it's no longer required.
8959
8960 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8961
8962 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8963
8964 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8965
8966 From Jimi X <jimix@watson.ibm.com>:
8967 * rs6000-tdep.c (rs6000_software_single_step): Use
8968 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8969 and size. Use target_insert_breakpoint() and
8970 target_remove_breakpoint() to insert and remove breakpoints
8971 instead of explicit memory reads and writes.
8972
8973 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8974
8975 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8976 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8977 ELF_OBJECT_FORMAT ifdef.
8978
8979 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8980
8981 From Jimi X <jimix@watson.ibm.com>:
8982 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8983
8984 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8985
8986 From Jimi X <jimix@watson.ibm.com>:
8987 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8988 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8989
8990 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8991
8992 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8993 s/asprintf/xasprintf/.
8994 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8995
8996 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8997
8998 I believe Jeff Law denies responsability for this one:
8999 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9000 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9001 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9002 Work-around for PR gdb/366.
9003
9004 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9005
9006 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9007 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9008 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9009
9010 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9011
9012 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9013 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9014 information.
9015
9016 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9017
9018 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9019 maintainer.
9020
9021 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9022
9023 * README (Reporting Bugs in GDB): Document the bug web page as the
9024 prefered way of submitting bugs.
9025 Fix PR gdb/402.
9026
9027 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9028
9029 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9030 -1. Update comment.
9031 * gdbarch.h, gdbarch.c: Re-generate.
9032
9033 2002-04-07 Andreas Schwab <schwab@suse.de>
9034
9035 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9036 buffer to regcache_collect.
9037
9038 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9039
9040 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9041 * gdbarch.c, gdbarch.h: Re-generate.
9042
9043 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9044
9045 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9046 declaration. Fix -Werror.
9047
9048 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9049
9050 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9051 * gdbarch.c: Regenerate.
9052
9053 2002-04-05 Michael Snyder <msnyder@redhat.com>
9054
9055 * breakpoint.c (clear_command): Rewrite middle section to
9056 combine two loops with identical control conditions.
9057 Add a cleanup to eliminate a memory leak.
9058 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9059
9060 2002-04-05 H.J. Lu (hjl@gnu.org)
9061
9062 * solib-svr4.c (bkpt_names): Add "__start".
9063
9064 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9065
9066 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9067 as test for 64 bit target.
9068
9069 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9070
9071 * h8500-tdep.c (h8500_write_fp): Delete function.
9072 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9073 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9074 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9076 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9077 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9078 (s390_write_fp):
9079 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9080 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9081 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9082 (d10v_write_fp): Delete function.
9083 * inferior.h (write_fp, generic_target_write_fp): Delete
9084 declarations.
9085 * regcache.c (generic_target_write_fp): Delete function.
9086 (write_fp): Delete function.
9087 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9088 * gdbarch.h, gdbarch.c: Regenerate.
9089 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9090 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9091 (sparc64_write_fp): Delete declaration.
9092 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9093 (h8500_write_fp): Delete declaration.
9094
9095 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9096
9097 * sparc-tdep.c (sparc64_write_fp): Delete.
9098 (sparc_push_dummy_frame): Replace write_fp call with code to store
9099 the FP directly.
9100 (sparc_gdbarch_init): Do not initialize write_fp.
9101
9102 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9103
9104 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9105 clause.
9106
9107 2002-03-29 Jim Blandy <jimb@redhat.com>
9108
9109 * stack.c (get_selected_block): Add new argument `addr_in_block',
9110 used to return the exact code address we used to select the block,
9111 not just the block.
9112 * blockframe.c (get_frame_block, get_current_block): Same.
9113 * frame.h (get_frame_block, get_current_block,
9114 get_selected_block): Update declarations.
9115 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9116 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9117
9118 2002-04-05 Michael Snyder <msnyder@redhat.com>
9119
9120 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9121 warning message.
9122
9123 2002-04-05 J. Brobecker <brobecker@gnat.com>
9124
9125 * utils.c (xfullpath): New function.
9126 * defs.h (xfullpath): Add declaration.
9127 * source.c (openp): Use xfullpath in place of gdb_realpath to
9128 avoid resolving the basename part of filenames when the
9129 associated file is a symbolic link. This fixes a potential
9130 inconsistency between the filenames known to GDB and the
9131 filenames it prints in the annotations.
9132 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9133 to be able to match a filename with either the real filename, or
9134 the name of any symbolic link to this file.
9135 (lookup_partial_symtab): Ditto.
9136
9137 2002-04-04 Michael Snyder <msnyder@redhat.com>
9138
9139 * breakpoint.c: Add support for hardware breakpoints in overlays.
9140 (overlay_events_enabled): New state variable.
9141 (insert_breakpoints): Use overlay_events_enabled to decide
9142 whether to attempt to set a breakpoint at the overlay load addr.
9143 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9144 (remove_breakpoint): Use overlay_events_enabled to decide
9145 whether breakpoints need to be removed from overlay load addr.
9146 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9147 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9148 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9149 disable_overlay_breakpoints): Update overlay_events_enabled.
9150
9151 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * dwarf2read.c (struct function_range): New.
9154 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9155 (check_cu_functions): New.
9156 (read_file_scope): Initialize global function lists.
9157 Call dwarf_decode_line after processing children.
9158 (read_func_scope): Add to global function list.
9159 (dwarf_decode_lines): Call check_cu_functions everywhere
9160 record_line is called. Call record_line with a linenumber
9161 of 0 to mark sequence ends.
9162
9163 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9164
9165 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9166 change sync with glibc.
9167
9168 2002-04-03 Jim Blandy <jimb@redhat.com>
9169
9170 * configure.in: Call AC_C_INLINE.
9171 * configure: Regenerated.
9172
9173 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9174
9175 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9176 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9177
9178 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9179
9180 * NEWS: Mention gcore support on FreeBSD/i386.
9181
9182 * fbsd-proc.c: New file.
9183 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9184 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9185
9186 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9187 while statement.
9188
9189 2002-03-29 Jim Blandy <jimb@redhat.com>
9190
9191 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9192 unescaped newlines in string literals, but newer ones don't. So
9193 escape them.
9194
9195 2002-03-26 Michael Snyder <msnyder@redhat.com>
9196 Andrew Cagney <cagney@redhat.com>
9197
9198 * cli/cli-dump.c: New file. Dump memory to file,
9199 restore file to memory.
9200 * cli/cli-dump.h: New file.
9201 * Makefile.in: Add rules, dependencies for cli-dump.o.
9202 * NEWS: Mention new commands.
9203
9204 2002-03-28 Michael Snyder <msnyder@redhat.com>
9205
9206 * symfile.c (symbol_file_add): Move test for null symbols to later.
9207
9208 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9209
9210 From veksler at il.ibm.com:
9211 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9212 the xstrduped original path.
9213 Fix PR gdb/417.
9214
9215 2002-03-27 Michael Snyder <msnyder@redhat.com>
9216
9217 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9218 * infcmd.c (_initialize_infcmd): Ditto.
9219 * language.c (_initialize_language): Ditto.
9220 * symfile.c (_initialize_symfile): Ditto.
9221 * top.c (_init_main): Ditto.
9222 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9223
9224 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9225
9226 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9227 vector registers handling.
9228 (skip_prologue): Handle new AltiVec instructions. Fill in new
9229 fields of frame data.
9230 (frame_get_saved_regs): Fill in information for AltiVec registers.
9231
9232 2002-03-27 Jim Blandy <jimb@redhat.com>
9233
9234 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9235 a function; leave this macro here to invoke that function.
9236 (symbol_init_mangled_name): Declaration for that function.
9237 * symtab.c (symbol_init_mangled_name): New function.
9238
9239 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9240
9241 * valarith.c: Replace strerror with safe_strerror.
9242 * tracepoint.c: Ditto.
9243 * lin-lwp.c: Ditto.
9244 * go32-nat.c: Ditto.
9245 * inflow.c: Ditto.
9246 * gnu-nat.c: Ditto.
9247
9248 2002-03-27 Andreas Schwab <schwab@suse.de>
9249
9250 * event-top.c (command_line_handler): Remove useless if.
9251
9252 2002-03-27 Andreas Jaeger <aj@suse.de>
9253
9254 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9255 comment.
9256
9257 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9258
9259 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9260 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9261 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9262 (x86_64_linux_dr_get_status, supply_gregset),
9263 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9264 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9265 (x86_64_register_info_table): Add.
9266 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9267 (x86_64_register_raw_size, x86_64_register_virtual_type),
9268 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9269 general x86_64_register_info_table.
9270 (i386_gdbarch_init): gdbarch_register_bytes is now set
9271 dynamicaly during initialization.
9272 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9273 * gdbserver/linux-x86-64-low.c: Ditto.
9274
9275 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9276
9277 * gdbserver/server.c (main): Call target_signal_to_host_p
9278 and target_signal_to_host on signals received from the remote.
9279 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9280 target_signal_from_host on signals sent to the remote.
9281 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9282 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9283
9284 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9285
9286 * signals/signals.c: Include "server.h" in gdbserver build.
9287 (target_signal_from_name): Don't use STREQ.
9288 (_initialize_signals): Likewise. Don't include function in
9289 gdbserver build.
9290
9291 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * signals.c: Moved to...
9294 * signals/signals.c: Here.
9295 * Makefile (signals.o): Update.
9296
9297 2002-03-26 Jeff Law (law@redhat.com)
9298
9299 * somread.c (som_symtab_read): Remove some commented out code and
9300 updated related comments. Do not set the minimal symbol table to
9301 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9302 in a dynamic executable.
9303 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9304 where we are unable to find the minimal symbol for the given
9305 PC value.
9306
9307 2002-03-25 Jeff Law (law@redhat.com)
9308
9309 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9310
9311 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9312
9313 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9314
9315 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9316
9317 * command.h: Update copyright.
9318 (struct cmd_list_element): Replace definition with opaque
9319 declaration.
9320 (enum cmd_types): Document that it will eventually be moved to
9321 cli/cli-decode.h
9322 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9323 (MALLOCED_REPLACEMENT): Delete macro.
9324 * Makefile.in (cli_decode_h): Add $(command_h).
9325 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9326 * top.c: Include "cli/cli-decode.h".
9327 * completer.c: Include "cli/cli-decode.h".
9328 * maint.c: Include "cli/cli-decode.h".
9329 * cli/cli-decode.h: Include "command.h".
9330 (enum command_class): Delete.
9331 (enum cmd_types): Comment out.
9332 (enum cmd_auto_boolean): Delete.
9333 (enum var_types): Delete.
9334
9335 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9336
9337 * cli/cli-decode.c: Include "gdb_assert.h".
9338 (add_set_or_show_cmd): New static function.
9339 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9340 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9341 all fields, such as func, from the set command.
9342
9343 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9344
9345 * MAINTAINERS (sh-elf): Change warning flag to -w.
9346
9347 2002-03-23 Andrew Cagney <cagney@redhat.com>
9348
9349 * defs.h (error): Add printf format attribute.
9350 * thread-db.c (thread_from_lwp): Fix error format string.
9351 * stack.c (parse_frame_specification): Ditto.
9352 * cli/cli-decode.c (undef_cmd_error): Ditto.
9353 * scm-lang.c (scm_lookup_name): Ditto.
9354 * tracepoint.c (trace_error): Ditto.
9355 * remote-utils.c (usage): Ditto.
9356 * remote.c (compare_sections_command): Ditto.
9357 Fix PR gdb/328.
9358
9359 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9360
9361 * gdbtypes.c (append_composite_type_field): New function.
9362 (init_composite_type): New function.
9363 * gdbtypes.h (append_composite_type_field): Declare.
9364 (init_composite_type): Ditto.
9365
9366 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9367
9368 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9369 function.
9370 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9371 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9372 structure returning convention for SYSV ABI case, but not
9373 for GNU/Linux, FreeBSD, or NetBSD.
9374
9375 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9376
9377 * symtab.h (lookup_block_symbol): Add mangled_name argument
9378 to prototype.
9379
9380 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9381 with new mangled_name argument.
9382 * linespec.c (decode_line_1): Likewise.
9383 * valops (value_of_this): Likewise.
9384 * symtab.c (lookup_transparent_type): Likewise.
9385 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9386 (lookup_symbol): If we are given a mangled name, pass it down
9387 to lookup_symbol_aux.
9388 (lookup_block_symbol): If we are given a mangled name to check
9389 against, only return symbols which match it.
9390
9391 2002-03-22 Christopher Faylor <cgf@redhat.com>
9392
9393 * win32-nat.c (child_create_inferior): Check for proper shell to use
9394 here, in case the user changes it on the fly.
9395 (_initialize_inftarg): Remove shell path considerations.
9396
9397 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9398
9399 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9400 for gdbarch_max_register_raw_size and max_register_virtual_size.
9401 Adjust copyright year.
9402
9403 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9406 in a function to cover the entire beginning of the function
9407 as well if it does not already.
9408
9409 2002-03-21 Tom Rix <trix@redhat.com>
9410
9411 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9412 (rs6000_ptrace64): Renamed from ptrace64.
9413
9414 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9415
9416 * gdbserver/remote-utils.c (remote_open): Don't call
9417 getprotobyname, we're all using TCP here so just use
9418 IPPROTO_TCP.
9419 * gdbserver/gdbreplay.c (remote_open): Ditto.
9420
9421 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9422
9423 * regcache.c (_initialize_regcache): No need to call
9424 build_regcache() at this time; it gets called whenever
9425 the gdbarch changes.
9426
9427 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9428
9429 * sparc-nat.c: Include sys/param.h where possible.
9430
9431 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9432
9433 Fix PR gdb/422.
9434 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9435 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9436 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9437 complex types.
9438 * stabsread.c (rs6000_builtin_type): Likewise.
9439 (read_sun_floating_type): Likewise.
9440
9441 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9442
9443 * stabsread.c (read_member_functions): Remove skip code for duplicate
9444 constructor/destructor methods. Use standard parsing for these
9445 methods and just do not chain them to the list of methods after
9446 parsing.
9447
9448 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9449
9450 * coffread.c: Remove redundant static declarations. Replace
9451 occurrences of `PTR' with `void *'.
9452 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9453 * top.h (quit_cover): Likewise.
9454 * defs.h (catch_errors): Likewise.
9455
9456 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9457
9458 * defs.h (XMALLOC): Define.
9459 * gdb-events.sh (XMALLOC): Delete macro.
9460 * gdb-events.c, gdb-events.h: Regenerate.
9461 * gdbarch.sh (XMALLOC): Delete macro.
9462 * gdbarch.c: Regenerate.
9463 * serial.c (XMALLOC): Delete macro.
9464 * ui-file.c (XMALLOC): Ditto.
9465 * ser-unix.h (XMALLOC): Ditto.
9466 * sh-tdep.c (XMALLOC): Ditto.
9467 * ui-out.c (XMALLOC): Ditto.
9468 * utils.c (XMALLOC): Ditto.
9469 * i386-tdep.c (XMALLOC): Ditto.
9470 * gdb-events.c (XMALLOC): Ditto.
9471 * d10v-tdep.c (XMALLOC): Ditto.
9472 * cli-out.c (XMALLOC): Ditto.
9473
9474 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9475 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9476 * ui-file.c, ui-out.c: Ditto.
9477
9478 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9479
9480 * command.h (struct cmd_list_element): Add field context.
9481 (set_cmd_context, get_cmd_context): Declare.
9482 * cli/cli-decode.h: Ditto.
9483 * cli/cli-decode.c (get_cmd_context): New function.
9484 (set_cmd_context): New function.
9485 (add_cmd): Initialize context.
9486 Part of fixing PR gdb/145 and PR gdb/146.
9487
9488 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9489
9490 * cli/cli-decode.c (cmd_type): New function.
9491 * command.h (cmd_type): Declare.
9492 * infrun.c (set_schedlock_func): Call function cmd_type.
9493 * kod.c (kod_set_os): Call cmd_type.
9494 * cris-tdep.c (cris_version_update): Use function cmd_type.
9495 (cris_mode_update, cris_abi_update): Ditto.
9496
9497 * command.h: (execute_cmd_post_hook): Declare.
9498 (execute_cmd_pre_hook): Declare.
9499 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9500 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9501 functions. Execute pre/post hook while ensuring that afterwords
9502 hook_in is cleared.
9503 * top.c (execute_command): Use execute_cmd_post_hook, and
9504 execute_cmd_pre_hook to execute pre/post commands.
9505 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9506 hook_stop_stub.
9507 (hook_stop_stub): Call execute_cmd_pre_hook.
9508
9509 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9510
9511 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9512 set'' and this leads to a core dump. Move xstrdup of
9513 operating_system to after check that it is not NULL.
9514
9515 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9516
9517 * kod.c (kod_set_os): Remove unnecessary check that
9518 ``command->type'' is set_cmd.
9519
9520 * valprint.c (set_input_radix): Use input_radix.
9521 (set_output_radix): Use output_radix.
9522 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9523 isn't reverted.
9524
9525 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9526
9527 * value.h (struct value): Delete field ``substring_addr''. Change
9528 aligner fields to force_doublest_align, force_longest_align,
9529 force_core_addr_align and force_pointer_aligh.
9530
9531 * value.h (struct value): Fix typo in above change.
9532
9533 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9534
9535 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9536 to fix internal_error from ``maintenance print architecture''.
9537
9538 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9539
9540 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9541 for gcc versions after gcc-2.8.1.
9542
9543 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9544
9545 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9546 for method resolution. Restore adjustment of ``this'' pointer after
9547 calling value_struct_elt, which was accidentally removed during the
9548 HP merge.
9549
9550 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9551
9552 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9553 value_of_register.
9554 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9555 get_saved_register.
9556 * value.h (value_of_register): Update.
9557
9558 2002-03-14 Richard Henderson <rth@redhat.com>
9559
9560 * configure.in: Detect declaration for canonicalize_file_name.
9561 * utils.c (canonicalize_file_name): Declare, if needed.
9562 (gdb_realpath): Prefer realpath if available and usable.
9563 * config.in, configure: Rebuild.
9564
9565 2002-03-14 Richard Henderson <rth@redhat.com>
9566
9567 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9568 a constant array bound.
9569
9570 * MAINTAINERS: Add myself to write-after-approval.
9571
9572 2002-03-14 Michael Snyder <msnyder@redhat.com>
9573
9574 * symfile.c (syms_from_objfile): Return immediately if no syms.
9575 (symbol_file_add): Return immediately if no syms.
9576 (find_sym_fns): Return immediately if no syms.
9577
9578 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9579
9580 * gdbserver/remote-util.c (remote_open): Print remote-side's
9581 IP address when remote debugging over the network.
9582
9583 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9584
9585 * config/sparc/fbsd.mh: Fix copyright.
9586 * config/sparc/fbsd.mt: Likewise.
9587
9588 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9589
9590 * MAINTAINERS: Fix typo in name of gdb warnings option.
9591 (x86-64): Fix formating so that this can be parsed by awk.
9592
9593 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9596 * defs.h: Include "gdb/signals.h".
9597 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9598
9599 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9600
9601 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9602 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9603 from x86-64-tdep.h
9604
9605 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9606 Don Howard <dhoward@redhat.com>
9607
9608 * mips-tdep.c (ST0_FR): Define.
9609 (mips2_fp_compat): New function, temporarily disabled.
9610 (mips_read_fp_register_single): New function.
9611 (mips_read_fp_register_double): New function.
9612 (mips_print_register): Use them.
9613 (do_fp_register_row): Likewise.
9614
9615 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9616
9617 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9618 approval''.
9619
9620 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9621
9622 * stabsread.c (read_member_functions): Fix is_stub test for
9623 static member functions, improve comment.
9624
9625 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9628 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9629 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9630 commands that set boolean values.
9631 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9632 (arm_rdi_resume): Always initialize PC.
9633 (arm_rdi_open): Don't use rslt as a boolean.
9634 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9635 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9636 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9637 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9638
9639 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9640
9641 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9642 * configure: Rebuilt.
9643
9644 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9645
9646 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9647 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9648
9649 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9650
9651 * cli/cli-decode.c (set_cmd_completer): New function.
9652 * command.h (set_cmd_completer): Declare.
9653 * cli/cli-decode.h (set_cmd_completer): Ditto.
9654
9655 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9656 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9657 * win32-nat.c (_initialize_inftarg): Ditto.
9658 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9659 * proc-api.c (_initialize_proc_api): Ditto.
9660 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9661 * source.c (_initialize_source): Ditto.
9662 * exec.c (_initialize_exec): Ditto.
9663 * solib.c (_initialize_solib): Ditto.
9664 * top.c (init_main): Ditto.
9665 * tracepoint.c (_initialize_tracepoint): Ditto.
9666 * symfile.c (_initialize_symfile): Ditto.
9667 * printcmd.c (_initialize_printcmd): Ditto.
9668 * infcmd.c (_initialize_infcmd): Ditto.
9669 * corefile.c (_initialize_core): Ditto.
9670
9671 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9672
9673 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9674
9675 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9676
9677 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9678
9679 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9680
9681 * NEWS: Update headings, 5.2 has branched.
9682
9683 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9684
9685 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9686 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9687 (register_addr, REGISTER_RAW_SIZE): Likewise.
9688 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9689 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9690
9691 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9692
9693 * MAINTAINERS (x86-64): Add myself.
9694 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9695 changed value_ptr -> struct value *
9696
9697 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9698
9699 * configure.host (sparc64-*-freebsd): Add.
9700 * configure.tgt: Likewise.
9701 * config/sparc/fbsd.mh: New file.
9702 * config/sparc/fbsd.mt: Likewise.
9703 * config/sparc/nm-fbsd.h: Likewise.
9704 * config/sparc/tm-fbsd.h: Likewise.
9705
9706 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9709 regformats/reg-s390x.dat.
9710
9711 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9712
9713 * utils.c: Add FIXME explaining true/false problem.
9714
9715 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9716
9717 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9718
9719 2002-02-28 Michael Chastain <mec@shout.net>
9720
9721 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9722
9723 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9724
9725 * gdbserver/linux-s390-low.c: New file.
9726 * regformats/reg-s390.dat: New file.
9727 * regformats/reg-s390x.dat: New file.
9728 * gdbserver/configure.srv: Add S/390.
9729 * gdbserver/Makefile.in: Add S/390.
9730 * configure.tgt: Enable gdbserver for S/390.
9731
9732 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9733
9734 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9735 first line of the doc string for "info dos", except at the end of
9736 the sentence, since the short help stops at the first period.
9737
9738 2002-02-28 Jason Merrill <jason@redhat.com>
9739
9740 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9741
9742 2002-02-27 Fred Fish <fnf@redhat.com>
9743
9744 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9745 comment (dumy -> dummy).
9746
9747 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9748
9749 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9750
9751 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9752
9753 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9754
9755 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9756
9757 * gdbserver/acconfig.h: New file.
9758 * gdbserver/i387-fp.c: New file.
9759 * gdbserver/i387-fp.h: New file.
9760 * gdbserver/linux-x86-64.c: New file.
9761 * regformats/reg-x86-64.dat: New file.
9762 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9763 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9764 * gdbserver/configure.in: Add support for regsets.
9765 * gdbserver/config.in: Regenerate.
9766 * gdbserver/configure: Regenerate.
9767 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9768 * gdbserver/linux-low.h: New file.
9769 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9770 for regsets.
9771 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9772 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9773 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9774 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9775 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9776 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9777 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9778 "i387-fp.h". Add PTRACE_GETREGS and friends.
9779 * gdbserver/regcache.c (supply_register): New function.
9780 (supply_register_by_name): New function.
9781 (collect_register): New function.
9782 (collect_register_by_name): New function.
9783
9784 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9785
9786 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9787 (config.status): Add configure.srv dependency.
9788 (server_h): Add config.h dependency.
9789
9790 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9791
9792 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9793 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9794 * gdbserver/configure.srv: Change i386-*-linux* to use
9795 reg-i386-linux.o.
9796
9797 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9798
9799 * x86-64-tdep.c: Re-indent. Update copyright date.
9800
9801 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9802
9803 From Michal Ludvig <mludvig@suse.cz>:
9804 * x86-64-tdep.c (value.h): Delete.
9805 (gdb_assert.h): Include.
9806 (x86_64_register_convert_to_virtual,
9807 x86_64_register_convert_to_raw ): Add check which lets only
9808 floating-point values to be converted.
9809 (value_push): Delete.
9810 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9811 (i386_gdbarch_init): Number of register_bytes fixed.
9812
9813 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9814
9815 * MAINTAINERS: Add x86-64 target.
9816
9817 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9818
9819 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9820 * osfsolib.c (solib_map_sections): Ditto.
9821 * irix5-nat.c (solib_map_sections): Ditto.
9822 * corelow.c (gdb_check_format): Ditto.
9823 * symfile.c (symfile_bfd_open): Ditto.
9824 * solib.c (solib_map_sections): Ditto.
9825 Fix PR gdb/354.
9826
9827 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9828
9829 * remote.c (_initialize_remote): By default, disable ``e'' and
9830 ``E'' step out-of-range packets.
9831
9832 2002-02-26 Andreas Schwab <schwab@suse.de>
9833
9834 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9835 m68k_linux_frame_saved_pc.
9836 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9837 in_sigtramp.
9838 (SIGCONTEXT_PC_OFFSET): Remove.
9839 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9840 m68k_linux_sigtramp_saved_pc): New functions.
9841 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9842 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9843 (UCONTEXT_PC_OFFSET): Define.
9844 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9845 non-RT and RT signal trampolines.
9846
9847 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9848
9849 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9850 (TARGET_NBPG, STACK_END_ADDR): Delete
9851 (VARIABLES_INSIDE_BLOCK): Delete.
9852
9853 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9854
9855 * utils.c (perror_with_name): Make string parameter constant.
9856 (print_sys_errmsg): Ditto.
9857 (query): Ditto.
9858 * defs.h (perror_with_name): Update.
9859 (print_sys_errmsg): Update.
9860 (query): Update.
9861
9862 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9863
9864 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9865 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9866
9867 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9868
9869 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9870 if it already matches the current architecture from the exec file.
9871 Include arch-utils.h for gdbarch_info_init prototype.
9872 * Makefile.in (rs6000-nat.o): Update dependencies.
9873
9874 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9875
9876 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9877 list of exported variables.
9878
9879 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9880
9881 * gdbserver/configure.srv: New file.
9882 * gdbserver/configure.in: Use configure.srv instead
9883 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9884 from it.
9885 * gdbserver/configure: Regenerated.
9886 * gdbserver/terminal.h: New file.
9887 * gdbserver/Makefile.in: Update for configure changes. Remove
9888 more unneeded include paths.
9889
9890 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9891
9892 From wiz at danbala:
9893 * config/sparc/tm-sp64.h: Fix grammar and typos.
9894 Fix PR gdb/287.
9895
9896 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9897
9898 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9899 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9900 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9901 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9902 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9903 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9904 * s390-tdep.c: Ditto.
9905 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9906 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9907 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9908 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9909 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9910 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9911 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9912 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9913 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9914 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9915 Fix PR gdb/378.
9916
9917 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9918
9919 * lin-thread.c: Delete file.
9920 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9921 to gdb_proc_service.h.
9922 * configure: Re-generate.
9923
9924 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9925 * serial.c (serial_open): Delete check for "ocd".
9926 Fix PR gdb/349.
9927
9928 * Makefile.in (linux-thread.o): Delete target.
9929 * linux-thread.c: Delete file.
9930
9931 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9932 renamed SH files to be consistent.
9933
9934 * symtab.c (sort_search_symbols): Use xfree.
9935
9936 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9937
9938 * arm-linux-tdep.c (arm_linux_init_abi): Register
9939 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9940 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9941 definition with undef, since we don't want the sysvr4 definition.
9942 (SKIP_TRAMPOLINE_CODE): Likewise.
9943
9944 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9945
9946 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9947
9948 * configure.in: (AC_CHECK_FUNCS) Added test for
9949 canonicalize_file_name Regenerated.
9950 * config.in, configure: Regenerated.
9951 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9952 defined use canonicalize_file_name.
9953
9954 2002-02-23 Michael Chastain <mec@shout.net>
9955
9956 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9957
9958 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9959
9960 * README: Remove references to cygnus.com.
9961 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9962 dot com'' form. Remove references to cygnus.com and sourceware.
9963
9964 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9965
9966 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9967 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9968 1003.1-2001 no longer allows "head -1".
9969 * gdb/Makefile.in (version.c): Likewise.
9970 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9971 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9972 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9973
9974 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9975
9976 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9977 * command.h (cmd_cfunc_eq): Declare.
9978 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9979
9980 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9981 ``struct cmd_list_element *''.
9982 * cli/cli-cmds.c (is_complete_command): Update. Use
9983 cmd_cfunc_eq.
9984 * top.c (execute_command): Pass the command to
9985 is_complete_command.
9986 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9987
9988 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9989
9990 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9991 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9992 architecture defines.
9993 * s390-tdep.c (s390_gdbarch_init): Likewise.
9994
9995 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9996
9997 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9998 (arm_linux_push_arguments): Likewise.
9999 (arm_linux_init_abi): Register them. Also register linux-specific
10000 call_dummy_words.
10001 (find_minsym_and_objfile): Use strcmp, not STREQ.
10002 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10003 (arm_linux_call_dummy_words): Delete declaration.
10004 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10005 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10006 declarations.
10007 (LOWEST_PC): Delete.
10008
10009 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10010
10011 * maint.c (print_section_info): Do not prepend `0x' to filepos
10012 output, it will be handled by local_hex_string_custom.
10013
10014 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10015
10016 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10017 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10018 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10019
10020 2002-02-22 Jim Blandy <jimb@redhat.com>
10021
10022 Indicate that the bcache functions don't change the strings
10023 they're passed.
10024 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10025 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10026
10027 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10028
10029 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10030
10031 2002-02-21 Christopher Faylor <cgf@redhat.com>
10032
10033 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10034 find the complete path to a loaded DLL.
10035
10036 2002-02-21 Fred Fish <fnf@redhat.com>
10037
10038 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10039 that marks the end of the range of a function, enter a line number
10040 entry that has a line number of zero and a PC offset that matches
10041 the end of the function. This starts a range of PC's for which no
10042 line number information is known.
10043 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10044 PC's for which no line number info is found (line number is zero)
10045 then we didn't find any valid line information.
10046 * symtab.h: Document use of zero line number entry.
10047
10048 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10049
10050 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10051 (have_ptrace_getvrregs): Define for run time checks.
10052 (gdb_vrregset_t): New type for Altivec register handling.
10053 (fetch_register, store_register): Fetch/store altivec register
10054 when needed.
10055 (fetch_altivec_register, store_altivec_register): New functions.
10056 (supply_vrregset, fill_vrregset): New functions.
10057 (fetch_altivec_registers, store_altivec_registers): New functions.
10058 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10059 registers as well.
10060
10061 2002-02-21 Jiri Smid <smid@suse.cz>
10062
10063 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10064
10065 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10066
10067 * Makefile.in (armnbsd-nat.o): Update dependencies.
10068 * armnbsd-nat.c (supply_gregset): New function. Common code to
10069 supply the integer register set.
10070 (supply_fparegset): New function. Similar for FPA registers.
10071 (fetch_regs, fetch_fp_regs): Use them.
10072 (fetch_core_registers): Likewise.
10073 (fetch_elfcore_registers): New function.
10074 (arm_netbsd_elfcore_fns): New core-file type specification.
10075 (_initialize_arm_netbsd_nat): Register it.
10076
10077 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10078
10079 * armnbsd-nat.c: Include gdbcore.h.
10080 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10081 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10082 'void' to declaration, to shut up ARI.
10083 (fetch_core_registers): Make static. Rewrite using supply_register.
10084 (arm_netbsd_core_fns): New core-file type specification.
10085 (_initialize_arm_netbsd_nat): New function.
10086
10087 2002-02-21 Christopher Faylor <cgf@redhat.com>
10088
10089 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10090 value.
10091
10092 2002-02-20 Christopher Faylor <cgf@redhat.com>
10093
10094 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10095 fails.
10096
10097 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * jv-exp.y (parse_number): Change type of implicit longs
10100 to builtin_type_uint64.
10101
10102 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10103
10104 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10105 to be an integer instead of a `union wait'.
10106
10107 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10108
10109 * mips-linux-nat.c: Call the operating system GNU/Linux.
10110 * mips-linux-tdep.c: Likewise.
10111 * mips-tdep.c: Likewise.
10112
10113 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10114
10115 Fix PR gdb/265.
10116 * jv-exp.y (parse_number): Handle 64-bit integers.
10117
10118 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10119
10120 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10121 AC_STDC_HEADERS to AC_HEADER_STDC.
10122 * gdbserver/configure: Regenerated.
10123
10124 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10125
10126 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10127 is defined.
10128 * sparc-tdep.c (get_longjmp_target): Likewise.
10129
10130 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10131
10132 * News: Add news about ARM and Multi-arch. Mention the new target
10133 arm*-*-netbsd*.
10134
10135 2002-02-19 Jim Blandy <jimb@redhat.com>
10136
10137 * stabsread.c (error_type_complaint): Improve error message.
10138
10139 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10140
10141 * gdbserver/README: Update documentation.
10142 * gdbserver/configure.in: Update configury to match documentation.
10143 * gdbserver/Makefile.in: Likewise.
10144 * gdbserver/configure: Regenerated.
10145 * gdbserver/aclocal.m4: New file, generated by aclocal.
10146 * gdbserver/config.in: New file, generated by autoheader.
10147
10148 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10149
10150 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10151 armnbsd-nat.c.
10152
10153 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10154
10155 * arm-tdep.h (enum arm_float_model): New enum.
10156 (struct gdbarch_tdep): Add fp_model.
10157 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10158 up floating-point conversions until we know the floating-point model
10159 in use by the inferior. Don't complain about being unable to
10160 determine the ABI of the inferior when we don't have one.
10161 (arm_extract_return_value): Support different floating-point models.
10162 (arm_store_return_value): Likewise.
10163 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10164 ARM_FLOAT_SOFT.
10165 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10166
10167 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10168
10169 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10170 of ``current_gdbarch''.
10171
10172 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10173
10174 * armnbsd-nat.c : ANSIfy all function declarations.
10175 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10176 (fetch_inferior_registers): Re-implement in terms of above.
10177 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10178 (store_inferior_registers): Re-implement in terms of above.
10179
10180 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10181
10182 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10183 kernel.
10184 * arm-linux-tdep.c: Likewise.
10185 * config/arm/tm-linux.h: Likewise.
10186
10187 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10188
10189 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10190 * config/arm/nbsd.mt (TM_FILE): Delete.
10191 * config/arm/tm-nbsd.h: Delete.
10192
10193 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10194
10195 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10196 Initialize CALL_DUMMY_LENGTH.
10197
10198 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10199
10200 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10201 function.
10202 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10203 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10204 defines one thing and that is incorrect for this port.
10205 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10206
10207 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10208
10209 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10210
10211 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10212
10213 * win32-nat.c (display_selector): New function. Displays information
10214 about the information returned by GetThreadSelectorEntry API function.
10215 (display_selectors): New function. Displays the infomation of
10216 the selector given as argument, or of CS, DS ans FS selectors
10217 if no argument is given.
10218 ( _initialize_inftarg): Add "w32" as info prefix command.
10219 Add "info w32 selector" as command calling display_selectors.
10220
10221 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10222
10223 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10224 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10225 if not defined.
10226
10227 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10228
10229 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10230
10231 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10232
10233 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10234 (arm_fix_call_dummy): Call it.
10235 (arm_call_dummy_breakpoint_offset): Delete.
10236 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10237 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10238
10239 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10240
10241 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10242 Default to func_frame_chain_valid.
10243 * gdbarch.h, gdbarch.c: Re-generate.
10244 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10245
10246 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10247
10248 * ppc-linux-nat.c: Update copyright.
10249 (fetch_register, store_register): Add tid parameter, don't compute
10250 tid here.
10251 (fetch_ppc_registers, store_ppc_registers): Add tid
10252 parameter. Pass it along to callees.
10253 (fetch_inferior_registers, store_inferior_registers): Compute tid
10254 here, and pass it to calleed functions.
10255 (fill_gregset, supply_fpregset): Clean up formatting.
10256
10257 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10258
10259 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10260 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10261
10262 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10263
10264 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10265 * gdbarch.c gdbarch.h: Regenerate.
10266 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10267 function.
10268 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10269 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10270 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10271
10272 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10273 * arm-tdep.c (arm_get_longjmp_target): New function.
10274 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10275 this to a positive value register arm_get_longjmp_target as the
10276 longjmp handler.
10277 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10278 (arm_linux_init_abi): Set up longjmp description in tdep.
10279 * armnbsd-nat.c (get_longjmp_target): Delete.
10280 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10281 description in tdep.
10282 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10283 (get_longjmp_target): Delete declaration.
10284 (GET_LONGJMP_TARGET): Delete.
10285 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10286 (GET_LONGJMP_TARGET): Delete.
10287
10288 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10289
10290 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10291 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10292 of ``current_gdbarch''.
10293
10294 2002-02-17 Tom Tromey <tromey@redhat.com>
10295
10296 * cli/cli-cmds.c (compare_strings): New function.
10297 (complete_command): Only print each unique item once.
10298 * completer.h (complete_line): Declare.
10299 * completer.c (complete_line): New function.
10300 (line_completion_function): Use it.
10301
10302 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10303
10304 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10305 * gdbarch.h, gdbarch.c: Re-generate.
10306
10307 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10308
10309 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10310
10311 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10312
10313 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10314 * valops.c (value_arg_coerce): Don't take the address of a reference
10315 to convert an argument to a reference.
10316
10317 2002-02-15 Christopher Faylor <cgf@redhat.com>
10318
10319 * win32-nat.c (get_image_name): New function.
10320 (handle_load_dll): Use get_image_name function.
10321 (get_child_debug_event): Avoid registering debug events until possibly
10322 execed process is started.
10323 (child_create_inferior): Allow invocation via shell so that command
10324 line redirection, etc. works ok.
10325 (_initialize_inftarg): Add new command: "set shell" to control whether
10326 a shell is used to start a process.
10327
10328 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10331 instead of find_register_by_number.
10332 (cannot_store_register): Likewise.
10333
10334 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10335
10336 * dwarf2read.c: Replace fprintf (stderr, ...) by
10337 fprintf_unfiltered (gdb_stderr, ...).
10338
10339 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * gdbserver/gdbserver.1: Document --attach.
10342
10343 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10344
10345 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10346 descriptions.
10347 * arm-tdep.c (arm_default_arm_le_breakpoint)
10348 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10349 (arm_default_thumb_be_breakpoint): New. Initialize them from
10350 traditional breakpoint defines.
10351 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10352 (arm_gdbarch_init): Initialize new breakpoint variables.
10353 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10354 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10355 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10356 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10357 code out to ...
10358 (arm_netbsd_init_abi_common): ... here; new function.
10359 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10360 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10361 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10362 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10363
10364 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10365
10366 * arm-tdep.h (enum arm_abi): New enum.
10367 (struct gdbarch_tdep): New structure.
10368 (LOWEST_PC): Provide a default.
10369 (arm_gdbarch_register_os_abi): Declare new function.
10370 * arm-tdep.c (arm_abi_names): New array.
10371 (process_note_abi_tag_sections): New function.
10372 (get_elfosabi): New function.
10373 (arm_gdbarch_register_os_abi): New function.
10374 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10375 support for that ABI has been built in, then call the appropriate
10376 configuration routine. Use gdbarch_num_regs() to get the number
10377 of registers.
10378 (arm_dump_tdep): New function.
10379 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10380 place-holder functions.
10381 (_initialize_arm_tdep): Register them.
10382 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10383
10384 * armnbsd-tdep.c: New file.
10385 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10386 * config/arm/nbsd.mt (TDEPFILES): Add it.
10387 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10388
10389 * armnbsd-nat.c: Include regcache.h.
10390 * Makefile.in (armnbsd-nat.o): Update dependency list.
10391
10392 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10393
10394 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * gdbserver/Makefile.in: Fix typos in target rules.
10397
10398 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10399
10400 Fix part of PR gdb/267.
10401 * linespec.c (find_methods): Handle constructors specially for now.
10402
10403 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10404
10405 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10406 handling.
10407 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10408 standard_coerce_float_to_double().
10409
10410 2002-02-14 Christopher Faylor <cgf@redhat.com>
10411
10412 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10413 GDBINIT_FILENAME.
10414
10415 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10416
10417 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10418 find_variant_by_name, because it confuses the multiarch
10419 framework. Return NULL if there isn't an architecture with the
10420 user supplied name, instead of forcing a different one without
10421 recording the change with the multiarch machinery.
10422 (find_variant_by_name): Delete.
10423
10424 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10425
10426 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10427 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10428
10429 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10430
10431 * stack.c (print_frame_info_base): When calling
10432 print_frame_info_listing_hook, set current_source_symtab.
10433
10434 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10437 and remove unused $(INCLUDE_DIR).
10438 Add regcache.c to OBS.
10439 Add generated register protocol files to clean target.
10440 Update dependencies for new objects, obsolete old target code.
10441
10442 * gdbserver/linux-low.c: Remove all platform-specific code to
10443 new files. Remove various dead code. Update to use regcache
10444 functionality.
10445 * gdbserver/remote-utils.c (fromhex): Add return statement
10446 to quiet warning.
10447 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10448 constant.
10449 (input_interrupt): Add integer parameter to match prototype
10450 of a signal handler.
10451 (outreg): Use register_data ().
10452 (prepare_resume_reply): Use gdbserver_expedite_regs.
10453 * gdbserver/server.c (main): Dynamically allocate own_buf because
10454 PBUFSIZ is no longer constant. Use registers_to_string () and
10455 registers_from_string ().
10456 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10457 for error (), fatal (), and warning (). Update definition of
10458 PBUFSIZ to use regcache functionality. Add include guard.
10459 * gdbserver/utils.c (fatal): Add missing ``const''.
10460 (warning): New function.
10461
10462 * regformats/regdat.sh: Include "regcache.h" in generated files.
10463 Provide init_registers () function.
10464 * regformats/regdef.h: Add prototype for set_register_cache ().
10465 Add include guard.
10466
10467 * gdbserver/linux-arm-low.c: New file.
10468 * gdbserver/linux-i386-low.c: New file.
10469 * gdbserver/linux-ia64-low.c: New file.
10470 * gdbserver/linux-m68k-low.c: New file.
10471 * gdbserver/linux-mips-low.c: New file.
10472 * gdbserver/linux-ppc-low.c: New file.
10473 * gdbserver/linux-sh-low.c: New file.
10474
10475 * gdbserver/regcache.c: New file.
10476 * gdbserver/regcache.h: New file.
10477
10478 * gdbserver/low-linux.c: Removed obsolete file.
10479
10480 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10483 * config/i386/linux.mt: Likewise.
10484 * config/ia64/linux.mt: Likewise.
10485 * config/m68k/linux.mh: Likewise.
10486 * config/powerpc/linux.mh: Likewise.
10487 * config/mips/linux.mt: Likewise.
10488
10489 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10490
10491 * config/i386/i386lynx.mh: Mark gdbserver variables
10492 as (currently) obsolete for this target.
10493 * config/i386/nbsd.mt: Likewise.
10494 * config/i386/nbsdelf.mt: Likewise.
10495 * config/m32r/m32r.mt: Likewise.
10496 * config/m68k/m68klynx.mh: Likewise.
10497 * config/m68k/nbsd.mt: Likewise.
10498 * config/m68k/sun3os4.mh: Likewise.
10499 * config/mips/vr5000.mt: Likewise.
10500 * config/ns32k/nbsd.mt: Likewise.
10501 * config/pa/hppabsd.mh: Likewise.
10502 * config/pa/hppaosf.mh: Likewise.
10503 * config/powerpc/nbsd.mt: Likewise.
10504 * config/rs6000/rs6000lynx.mh: Likewise.
10505 * config/s390/s390.mt: Likewise.
10506 * config/s390/s390x.mt: Likewise.
10507 * config/sparc/sparclynx.mh: Likewise.
10508 * config/sparc/sun4os4.mh: Likewise.
10509 * config/i386/x86-64linux.mt: Likewise.
10510 * config/sparc/linux.mh: Likewise.
10511
10512 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10513
10514 * configure.tgt: Configure gdbserver only for known working
10515 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10516 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10517 SUBDIRS if it is configured. Update comment for ${nativefile}.
10518 * configure: Regenerated.
10519
10520 2002-02-13 Michael Snyder <msnyder@redhat.com>
10521
10522 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10523
10524 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10525 (default_gcore_mach): Just return 0, work around a problem in bfd.
10526 (default_gcore_target): OK to return NULL if exec_bfd is null.
10527 (make_mem_sec): Use a cast, avoid a warning.
10528
10529 * procfs.c (find_memory_regions_callback): Use a cast instead of
10530 calling host_pointer_to_address (which complains if
10531 sizeof (host pointer) != sizeof (target pointer)).
10532 (procfs_make_note_section): Avoid overflow in psargs string.
10533
10534 * procfs.c (procfs_make_note_section): Make the default
10535 implementation return an error.
10536
10537 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10538
10539 * procfs.c (procfs_make_note_section): Provide a default definition
10540 (for alpha-dec-osf4.0f). Fix typos.
10541
10542 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10543
10544 * linux-proc.c: Add include of regcache.h.
10545 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10546
10547 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10548
10549 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10550 * memattr.c (create_mem_region): Disallow useless empty region.
10551 Regions are half-open intervals, so allow [A..B) [B..C) as
10552 non-overlapping.
10553
10554 2002-02-13 Michael Chastain <mec@shout.net>
10555
10556 * defs.h: Kill CONST_PTR.
10557 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10558 * c-lang.c (c_builtin_types): Likewise.
10559 * ch-lang.c (ch_builtin_types): Likewise.
10560 * f-lang.c (f_builtin_types): Likewise.
10561 * language.c (unknown_builtin_types): Likewise.
10562 * m2-lang.c (m2_builtin_types): Likewise.
10563 * p-lang.c (pascal_builtin_types): Likewise.
10564 * scm-lang.c (c_builtin_types): Likewise.
10565
10566 2002-02-13 Keith Seitz <keiths@redhat.com>
10567
10568 * arm-tdep.h (arm_get_next_pc): Add declaration.
10569
10570 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10571
10572 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10573 with other related struct-returning functions.
10574 (arm_extract_struct_value_address): New function.
10575 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10576 initialize float_format, double_format and long_double_format as
10577 appropriate to the endianness of the target.
10578 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10579 (arm_use_struct_convention): Delete declaration.
10580 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10581
10582 2002-02-13 Keith Seitz <keiths@redhat.com>
10583
10584 * defs.h (core_addr_to_string_nz): New function.
10585
10586 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10587
10588 Apply missing bits of 2002-01-15 patch.
10589 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10590 (fill_fpregset): Use i387_fill_fsave.
10591
10592 2002-02-12 Keith Seitz <keiths@redhat.com>
10593
10594 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10595 (core_addr_to_string_nz): New function.
10596
10597 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10598
10599 * arm-linux-nat.c: Really include arm-tdep.h.
10600 * config/arm/tm-linux.h (struct type, struct value): Declare.
10601
10602 2002-02-11 Michael Snyder <msnyder@redhat.com>
10603
10604 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10605 (gcore section): Ifdef for Solaris and Unixware only.
10606 (procfs_do_thread_registers): Unixware needs one lwpstatus
10607 per thread (not one prstatus or pstatus).
10608 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10609 not over all gdb threads. For unixware, call elfcore_write_pstatus
10610 once before iterating over threads.
10611
10612 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10613
10614 * arm-tdep.h: New file.
10615 * arm-tdep.c: Include arm-tdep.h.
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): Make static.
10621 (arm_software_single_step): Similarly. Fix types in declaration.
10622 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10623 (arm_store_return_value, arm_store_struct_return): New functions.
10624 (arm_gdbarch_init): Register the above functions. Also register
10625 call_dummy_start_offset, sizeof_call_dummy_words,
10626 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10627 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10628 max_register_virtual_size, register_size. Set up
10629 prologue_cache.saved_regs here, rather than ...
10630 (_initialize_arm_tdep): ... here.
10631 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10632 declarations.
10633 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10634 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10635 (arm_print_float_info, arm_register_type, convert_to_extended)
10636 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10637 (arm_extract_return_value, arm_register_name): Delete declarations.
10638 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10639 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10640 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10641 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10642 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10643 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10644 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10645 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10646 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10647 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10648 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10649 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10650 interface.
10651 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10652 * remote-rdi.c remote-rdp.c: Likewise.
10653 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10654 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10655 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10656 definition.
10657
10658 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10659 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10660 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10661 from non-ARM_ prefixed definitions.
10662 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10663 all uses of above.
10664 * remote-rdi.c remote-rdp.c: Likewise.
10665 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10666
10667 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10668
10669 * arm-tdep.c (arm_frameless_function_invocation)
10670 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10671 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10672 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10673 (arm_pop_frame, arm_get_next_pc): Make static.
10674 (arm_gdbarch_init): Register above in gdbarch structure.
10675 (arm_read_fp): Renamed from arm_target_read_fp.
10676 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10677 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10678 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10679 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10680 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10681 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10682 (arm_pc_is_thumb_dummy): Delete declarations.
10683 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10684 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10685 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10686 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10687
10688 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * symtab.c (compare_search_syms): New function.
10691 (sort_search_symbols): New function.
10692 (search_symbols): Sort symbols after searching rather than
10693 before.
10694
10695 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10696
10697 * NEWS: Linux -> GNU/Linux.
10698
10699 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10700
10701 * gdbarch.sh: For for level one methods, disallow a definition
10702 when partially multi-arched. Add comments explaining rationale.
10703 * gdbarch.h: Re-generate.
10704
10705 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10706
10707 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10708 multi-arch partial.
10709
10710 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10711
10712 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10713 field. Use diff -u.
10714 * gdbarch.c: Re-generate.
10715
10716 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10717
10718 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10719 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10720 partial.
10721
10722 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10723
10724 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10725 multi-arch partial.
10726 (PUSH_ARGUMENTS): Switch to using predefault.
10727 * gdbarch.c: Regenerate.
10728
10729 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10730
10731 * valops.c (PUSH_ARGUMENTS): Delete definition.
10732 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10733 partial. Default to default_push_arguments.
10734 * gdbarch.h, gdbarch.c: Regenerate.
10735
10736 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10737
10738 * defs.h (throw_exception): Rename return_to_top_level. Update
10739 comments.
10740 * utils.c (error_stream, internal_verror, quit): Ditto.
10741 * top.c (throw_exception, catcher): Ditto.
10742 * sparclet-rom.c (sparclet_load): Ditto.
10743 * remote.c (interrupt_query, minitelnet): Ditto.
10744 * remote-sds.c (interrupt_query): Ditto.
10745 * remote-mips.c (mips_error, mips_kill): Ditto.
10746 * ocd.c (interrupt_query): Ditto.
10747 * monitor.c (monitor_interrupt_query): Ditto.
10748 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10749 * target.h: Update comment.
10750
10751 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10752
10753 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10754
10755 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10756 default_double_format.
10757 * gdbarch.h, gdbarch.c: Re-generate.
10758 * findvar.c (floatformat_unknown): Delete variable definition.
10759 * doublest.h (floatformat_unknown): Delete variable declaration.
10760
10761 2002-02-09 Jim Blandy <jimb@redhat.com>
10762
10763 * stabsread.c (read_type): Add code to parse Sun's syntax for
10764 prototyped function types.
10765
10766 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10767
10768 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10769 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10770
10771 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10772
10773 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10774 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10775 now _initialize_xcoffsolib gets called again and overrides the
10776 commands from solib.c in a native configuration.
10777
10778 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10779
10780 * doublest.c (store_typed_floating): Don't try to return a value.
10781 Fixes PR gdb/290.
10782
10783 2002-02-08 Jim Blandy <jimb@redhat.com>
10784
10785 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10786 is prototyped and has no arguments, print its argument list as
10787 `(void)'.
10788
10789 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10790
10791 * MAINTAINERS (write-after-approval): Add myself.
10792 (paper-trail): I've escaped!
10793
10794 2002-02-08 Christopher Faylor <cgf@redhat.com>
10795
10796 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10797 changes.
10798 (_initialize_check_for_gdb_ini): Ditto.
10799
10800 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10801
10802 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10803 xaprintf -> xasprintf.
10804
10805 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10806
10807 * win32-nat.c: Remove use of printf and sprintf functions.
10808
10809 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10810
10811 * arm-tdep.c (arm_frame_chain_valid): Make static.
10812 (arm_push_arguments): Likewise.
10813 (arm_gdbarch_init): New function.
10814 (_initialize_arm_tdep): Call it.
10815 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10816 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10817 (FRAME_CHAIN_VALID): Delete.
10818 (arm_frame_chain_valid): Delete declaration.
10819 (PUSH_ARGUMENTS): Delete.
10820 (arm_push_arguments): Delete declaration.
10821 (CALL_DUMMY_P): Delete.
10822
10823 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10824 Corinna Vinschen <vinschen@redhat.com>
10825
10826 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10827 on builtin float types.
10828
10829 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10830
10831 * utils.c: Include <curses.h> before "bfd.h".
10832 * tui/tui-hooks.c: Likewise.
10833 * tui/tui.c: Likewise.
10834 * tui/tuiCommand.c: Likewise.
10835 * tui/tuiData.c: Likewise.
10836 * tui/tuiDataWin.c: Likewise.
10837 * tui/tuiDisassem.c: Likewise.
10838 * tui/tuiGeneralWin.c: Likewise.
10839 * tui/tuiIO.c: Likewise.
10840 * tui/tuiLayout.c: Likewise.
10841 * tui/tuiRegs.c: Likewise.
10842 * tui/tuiSource.c: Likewise.
10843 * tui/tuiSourceWin.c: Likewise.
10844 * tui/tuiStack.c: Likewise.
10845 * tui/tuiWin.c: Likewise.
10846
10847 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10848
10849 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10850 to include space for pseudoregs as well. Update loops accordingly.
10851 (sh_fp_frame_init_saved_regs): Ditto.
10852 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10853
10854 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10855
10856 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10857 Add Richard Earnshaw to Arm maintainers.
10858
10859 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10860
10861 * defs.h (warning_begin): Delete declaration.
10862
10863 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10864 Delete macro.
10865
10866 2002-02-07 Michael Snyder <msnyder@redhat.com>
10867
10868 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10869 Logic bug, remove misplaced else.
10870
10871 2002-02-07 Klee Dienes <klee@apple.com>
10872
10873 * fork-inferior.c (fork_inferior): Add '!' to the list of
10874 characters that need to be quoted when building a string for the
10875 shell. Quote '!' specifically with a backslash, since CSH chokes
10876 when trying to evaluate "str!str".
10877
10878 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10879
10880 * rdi-share/host.h: Only provide a typedef for bool if it is not
10881 defined.
10882
10883 2002-02-04 Michael Snyder <msnyder@redhat.com>
10884
10885 * breakpoint.h (enum bptype): Add new overlay event bp type.
10886 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10887
10888 * breakpoint.c (create_internal_breakpoint): New function.
10889 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10890 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10891 (create_thread_event_breakpoint): Ditto.
10892 (create_solib_event_breakpoint): Ditto.
10893 (create_overlay_event_breakpoint): New function.
10894 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10895 (update_breakpoints_after_exec): Delete and re-initialize
10896 overlay event breakpoints after an exec. Add FIXME comment
10897 about longjmp breakpoint.
10898 (print_it_typical): Ignore overlay event breakpoints.
10899 (print_one_breakpoint): Ditto.
10900 (mention): Ditto.
10901 (bpstat_what): Do not stop for overlay event breakpoints.
10902 (delete_breakpoint): Don't delete overlay event breakpoints.
10903 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10904 (breakpoint_re_set): Re-create overlay event breakpoint.
10905
10906 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10907 (overlay_manual_command): Disable overlay breakpoints.
10908 (overlay_off_command): Disable overlay breakpoints.
10909
10910 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10911
10912 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10913 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10914 to here from config/tm-arm.h.
10915 (coff_sym_is_thumb): Make static.
10916 (arm_elf_make_msymbol_special): New function.
10917 (arm_coff_make_msymbol_special): New function.
10918 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10919 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10920 (coff_sym_is_thumb): Delete declaration.
10921 (arm_elf_make_msymbol_special): Declare.
10922 (arm_coff_make_msymbol_special): Declare.
10923 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10924 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10925
10926 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10927
10928 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10929
10930 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10931
10932 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10933 * gdbarch.c gdbarch.h: Regenerate.
10934 * arch-utils.c (default_print_float_info): New function.
10935 * arch-utils.h (default_print_float_info): Prototype it.
10936 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10937 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10938 (PRINT_FLOAT_INFO): Document it.
10939
10940 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10941 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10942 (PRINT_FLOAT_INFO): Define.
10943
10944 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10945
10946 * win32-nat.c (_initialize_check_for_gdb_ini):
10947 Add typecast to sprintf argument to suppress a warning.
10948
10949 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10950
10951 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10952 to allow easier handling of pass state.
10953 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10954 that gives exception name and address.
10955 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10956 and set last_sig value to ourstatus->value.sig. Some missing
10957 exceptions added.
10958 (child_continue): Correctly report continue_status.
10959 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10960 TARGET_SIGNAL_0 (new default value).
10961 (child_resume): consider sig argument passed to decide if
10962 the exception should be passed to debuggee or not.
10963
10964 2002-02-05 Michael Snyder <msnyder@redhat.com>
10965
10966 * regcache.c (fetch_register): Call target_fetch_register
10967 only if we don't call FETCH_PSEUDO_REGISTER.
10968 (store_register): Call target_store_register only if we
10969 don't call STORE_PSEUDO_REGISTER.
10970
10971 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10972
10973 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10974 ELF_MAKE_MSYMBOL_SPECIAL.
10975 * gdbarch.c, gdbarch.h: Regenerate.
10976 * arch-utils.c (default_make_msymbol_special): New function.
10977 * arch-utils.h (default_make_msymbol_special): Export.
10978 * elfread.c (elf_symtab_read): Compile use of
10979 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10980 multiarched.
10981 * coffread.c (coff_symtab_read): Ditto, for
10982 COFF_MAKE_MSYMBOL_SPECIAL.
10983
10984 2002-02-05 Jim Blandy <jimb@redhat.com>
10985
10986 * solib-svr4.c (svr4_truncate_ptr): New function.
10987 (svr4_relocate_section_addresses): Do the address arithmetic with
10988 the appropriate truncation for target addresses, even when
10989 CORE_ADDR is larger than a target address.
10990
10991 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10994 to (int *).
10995
10996 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10997
10998 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10999 code.
11000
11001 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11004
11005 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11006
11007 * gdbserver/linux-low.c: Remove unused include files.
11008
11009 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11010
11011 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11012 (read_inferior_memory): Use it.
11013 (write_inferior_memory): Likewise.
11014
11015 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11018 grubbing through sys_errlist.
11019
11020 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11021
11022 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11023
11024 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11025 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11026
11027 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11028
11029 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11030 (do_sfunc, set_cmd_sfunc): New functions.
11031
11032 * command.h (struct cmd_list_element): Add field func.
11033 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11034 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11035 * cli/cli-decode.h: Ditto.
11036
11037 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11038 (help_all, help_cmd_list): Ditto.
11039 (find_cmd, complete_on_cmdlist): Ditto.
11040 * top.c (execute_command): Ditto.
11041
11042 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11043 function.sfunc.
11044
11045 * infcmd.c (notice_args_read): Fix function signature.
11046
11047 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11048 * cli/cli-decode.c (add_set_cmd): Ditto.
11049 * utils.c (initialize_utils): Ditto.
11050 * maint.c (_initialize_maint_cmds): Ditto.
11051 * infrun.c (_initialize_infrun): Ditto.
11052 * demangle.c (_initialize_demangler): Ditto.
11053 * remote.c (add_packet_config_cmd): Ditto.
11054 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11055 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11056 * proc-api.c (_initialize_proc_api): Ditto.
11057 * kod.c (_initialize_kod): Ditto.
11058 * valprint.c (_initialize_valprint): Ditto.
11059 * top.c (init_main): Ditto.
11060 * infcmd.c (_initialize_infcmd): Ditto.
11061 * corefile.c (_initialize_core): Ditto.
11062 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11063 * arch-utils.c (initialize_current_architecture): Ditto.
11064 (_initialize_gdbarch_utils): Ditto.
11065 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11066
11067 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11068 * wince.c (_initialize_inftarg): Ditto.
11069 * symfile.c (_initialize_symfile): Ditto.
11070 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11071 * language.c (_initialize_language): Ditto.
11072 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11073
11074 2002-02-04 Michael Snyder <msnyder@redhat.com>
11075
11076 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11077
11078 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11081 Add rules for building the register data files.
11082
11083 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * regformats/regdat.sh: Add braces to the definition of
11086 expedite_regs_${arch}.
11087
11088 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * regformats/regdef.h (struct reg): Add comment describing the
11091 requirements for offset and size fields.
11092
11093 2002-02-04 Andreas Schwab <schwab@suse.de>
11094
11095 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11096 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11097
11098 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11099
11100 * gdbarch.sh (copyright): Update years in generated header.
11101 (SMASH_TEXT_ADDRESS): Add rule.
11102 * gdbarch.h, gdbarch.c: Re-generate.
11103 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11104 * dbxread.c: Likewise.
11105 * dwarfread.c: Likewise.
11106 * elfread.c: Likewise.
11107 * somread.c: Likewise.
11108
11109 * arm-tdep.c (arm_smash_text_address): New function.
11110 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11111
11112 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11113
11114 Add support for hardware watchpoints on win32 native.
11115 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11116 CONTEXT_DEBUG_REGISTERS.
11117 (dr variable): New variable. Static array containing a local copy
11118 of debug registers.
11119 (debug_registers_changed): New variable. Reflects when debug registers
11120 are changed and need to be written to inferior.
11121 (debug_registers_used): New variable. Reflects when any debug register
11122 was set, used when new threads are created.
11123 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11124 i386-nat code.
11125 (thread_rec): Set dr array if id is the thread of current_event .
11126 (child_continue, child_resume): Change the debug registers for all
11127 threads if debug_registers_changed.
11128 (child_add_thread): Change the debug registers if debug_registers_used.
11129 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11130 Link nm.h to new nm-cygwin.h file.
11131 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11132 of hardware registers.
11133
11134 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11135
11136 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11137 Restore behavour broken by 2002-01-20 Andrew Cagney
11138 <ac131313@redhat.com> IEEE_FLOAT removal.
11139
11140 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * c-valprint.c (c_val_print): Pass a proper valaddr to
11143 cp_print_class_method.
11144 * valops.c (search_struct_method): If there is only one method
11145 and args is NULL, return that method.
11146
11147 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11150 accessing tag_name directly.
11151
11152 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11153
11154 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11155 of accessing tag_name directly.
11156
11157 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11158
11159 PR gdb/280
11160 * gdbtypes.c (replace_type): New function.
11161 * gdbtypes.h (replace_type): Add prototype.
11162 * stabsread.c (read_type): Use replace_type.
11163
11164 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11165
11166 * Makefile.in (memattr.o): Add missing dependencies rule.
11167
11168 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11169
11170 * breakpoint.c (break_at_finish_command): Really export.
11171 (break_at_finish_at_depth_command): Ditto.
11172 (tbreak_at_finish_command): Ditto.
11173 * hppa-tdep.c: Include completer.h.
11174 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11175 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11176
11177 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11178
11179 * utils.c (do_write): New function.
11180 (error_stream): Rewrite combining the code from error_begin and
11181 verror.
11182 (verror): Rewrite using error_stream.
11183 (error_begin): Delete function.
11184
11185 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11186
11187 * utils.c (error_begin): Make static.
11188 * defs.h (error_begin): Delete declaration.
11189
11190 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11191 (decode_line_1): Use cplusplus_error instead of error_begin,
11192 cplusplus_hint and return_to_top_level.
11193 * coffread.c (coff_symfile_read): Use error instead of error_begin
11194 and return_to_top_level.
11195 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11196
11197 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11198
11199 * language.h (type_error, range_error): Make string parameter
11200 constant.
11201 * language.c (warning_pre_print): Delete extern declaration.
11202 * dwarfread.c (warning_pre_print): Ditto.
11203 * language.c (type_error, range_error): Rewrite to use verror and
11204 vwarning instead of warning_begin.
11205
11206 2002-02-01 Michael Snyder <msnyder@redhat.com>
11207
11208 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11209 (set_ignore_count): Move misplaced comment back where it belongs.
11210
11211 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11212
11213 * command.h (NO_FUNCTION): Delete macro.
11214 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11215 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11216 * tracepoint.c (_initialize_tracepoint): Ditto.
11217 * cli/cli-decode.c (add_set_cmd): Ditto.
11218 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11219
11220 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11221
11222 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11223 Update ``this'' pointer when calling virtual functions.
11224
11225 2002-02-01 Michael Snyder <msnyder@redhat.com>
11226
11227 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11228 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11229
11230 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11231
11232 * regformats/reg-arm.dat: New file.
11233 * regformats/reg-i386.dat: New file.
11234 * regformats/reg-ia64.dat: New file.
11235 * regformats/reg-m68k.dat: New file.
11236 * regformats/reg-mips.dat: New file.
11237 * regformats/reg-ppc.dat: New file.
11238 * regformats/reg-sh.dat: New file.
11239 * regformats/regdef.h: New file.
11240 * regformats/regdat.sh: New file.
11241
11242 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11243
11244 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11245 (arm_frame_args_address, arm_frame_locals_address): New functions.
11246 (arm_frame_num_args): New function.
11247 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11248 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11249 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11250
11251 2002-01-31 Michael Snyder <msnyder@redhat.com>
11252
11253 * breakpoint.c (break_at_finish_command): Export.
11254 (break_at_finish_at_depth_command): Export.
11255 (tbreak_at_finish_command): Export.
11256 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11257 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11258 "txbreak" commands, which are HPPA specific.
11259
11260 * printcmd.c (disassemble_command): Remove an ancient
11261 artifact of an old merge.
11262
11263 * symfile.h (enum overlay_debugging_state):
11264 Define enum constant values for overlay mode.
11265 * symfile.c (overlay_debugging): Use enums instead of literals.
11266 (overlay_is_mapped, overlay_auto_command,
11267 overlay_manual_command): Ditto.
11268
11269 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11270 breakpoint_here_p, breakpoint_inserted_here_p,
11271 breakpoint_thread_match, bpstat_stop_status,
11272 describe_other_breakpoints, check_duplicates, clear_command):
11273 Coding standard fixes.
11274
11275 * target.c (target_xfer_memory): Add spaces, coding standard.
11276 (do_xfer_memory): Add missing line to trust-readonly
11277 code: check bfd SEC_READONLY flag for section.
11278
11279 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11280
11281 * PROBLEMS: Fix typo, 5.1->5.1.1.
11282
11283 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11284
11285 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11286 data symbols, since we search based on textlow and texthigh.
11287 (find_pc_sect_symtab): Likewise.
11288
11289 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11290
11291 * defs.h (vwarning): Declare.
11292 * utils.c (vwarning): New function.
11293 (warning): Call vwarning.
11294 (warning_begin): Delete function.
11295
11296 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11297 the warning message.
11298 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11299 warning_begin.
11300
11301 2002-01-30 Michael Snyder <msnyder@redhat.com>
11302
11303 * NEWS: Mention "set trust-readonly-sections" command.
11304 Mention generate-core-file command.
11305
11306 2002-01-15 Michael Snyder <msnyder@redhat.com>
11307
11308 * target.c: New command, "set trust-readonly-sections on".
11309 (do_xfer_memory): Honor the suggestion to trust readonly sections
11310 by reading them from the object file instead of from the target.
11311 (initialize_targets): Register command "set trust-readonly-sections".
11312
11313 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11314
11315 * parse.c (target_map_name_to_register): Simplify, search regs and
11316 pseudo-regs using a single loop.
11317
11318 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11319
11320 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11321
11322 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11323
11324 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11325 * config/i386/i386v42mp.mh: Add i387-nat.o .
11326 * i386v4-nat.c: Include i387-nat.h.
11327 (supply_fpregset): Use i387_supply_fsave.
11328 (fill_fpregset): Use i387_fill_fsave.
11329
11330 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11331
11332 * arm-tdep.c (arm_call_dummy_words): Define.
11333 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11334 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11335 (CALL_DUMMY_WORDS): Define.
11336 (arm_call_dummy_words): Declare.
11337 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11338 (arm_linux_call_dummy_words): Declare.
11339
11340 2002-01-30 Andreas Schwab <schwab@suse.de>
11341
11342 * m68klinux-nat.c: Fix last change to use regcache_collect
11343 instead of referencing registers[] directly.
11344
11345 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11346
11347 * parse.c (target_map_name_to_register): Delete code wrapped in
11348 #ifdef REGISTER_NAME_ALIAS_HOOK.
11349
11350 2002-01-28 Michael Snyder <msnyder@redhat.com>
11351
11352 * regcache.c (legacy_read_register_gen): Need to be able to
11353 read pseudo-register as well as real register.
11354 (legacy_write_register_gen): Ditto.
11355
11356 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11357
11358 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11359 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11360 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11361 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11362 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11363 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11364 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11365 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11366 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11367 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11368 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11369 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11370 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11371 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11372 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11373 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11374 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11375 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11376 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11377 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11378
11379 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11380
11381 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11382 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11383 (initialize_current_architecture): Update target_byte_order using
11384 information from BFD.
11385 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11386 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11387
11388 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11389
11390 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11391 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11392
11393 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11394 #ifdef INVALID_FLOAT.
11395 * infcmd.c (do_registers_info): Ditto.
11396 * values.c (unpack_double): Ditto. Add comment.
11397
11398 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11399 already commented out.
11400
11401 2002-01-26 Andreas Schwab <schwab@suse.de>
11402
11403 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11404 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11405 registers and add support for PTRACE_GETREGS.
11406
11407 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11408
11409 GDB 5.1.1 released from 5.1 branch.
11410 * NEWS: Add 5.1.1 news.
11411 * README: Sync with 5.1 branch.
11412
11413 2002-01-23 Fred Fish <fnf@redhat.com>
11414
11415 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11416 stabstring on initial malloc. Reallocing will copy it for us,
11417 if necessary.
11418
11419 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11420
11421 * Makefile.in (hpread_h): Delete.
11422 (HFILES_NO_SRCDIR): Remove hpread.h.
11423 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11424 (hpread.o): Update dependencies.
11425 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11426
11427 * hp-psymtab-read.c: Remove file.
11428 * hp-symtab-read.c: Remove file.
11429 * hpread.h: Remove file.
11430
11431 * hpread.c: Merge all contents of hp-psymtab-read.c,
11432 hp-symtab-read.c and hpread.h into this file, as it was prior to
11433 January 1999.
11434
11435 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11436 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11437 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11438 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11439
11440 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11441
11442 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11443 fill_gregset): Call gdbarch_tdep() just once, assign result to
11444 variable and use that, instead of calling the function several
11445 times.
11446
11447 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11448
11449 * configure.host: Accept sparcv9 as alias for sparc64.
11450 * configure.tgt: Likewise.
11451
11452 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11453
11454 * solib-aix5.c (build_so_list_from_mapfile)
11455 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11456 arguments is not reversed.
11457 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11458 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11459
11460 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11461
11462 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11463 modified version of obsolete sh_fetch_pseudo_register.
11464 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11465 (sh4_register_read): New function.
11466 (sh_pseudo_register_write): New function. Renamed and modified
11467 version of obsolete sh_store_pseudo_register.
11468 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11469 (sh4_register_write): New function.
11470 (sh_gdbarch_init): Remove setting of gdbarch function
11471 fetch_pseudo_register and store_pseudo_register. Remove setting of
11472 register_convert_to_raw, register_convert_to_virtual,
11473 register_convertible.
11474 (sh_sh4_register_convertible): Delete. No longer needed. All is
11475 taken care by architecture specific functions
11476 register_read/register_write.
11477 (sh_sh4_register_convert_to_virtual): Make static.
11478 (sh_sh4_register_convert_to_raw): Ditto.
11479
11480 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11481
11482 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11483 (floatformat_is_nan, floatformat_mantissa): Ditto.
11484
11485 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11486 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11487 builtin_type_ieee_double_little,
11488 builtin_type_ieee_double_littlebyte_bigword,
11489 builtin_type_m68881_ext, builtin_type_i960_ext,
11490 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11491 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11492 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11493 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11494
11495 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11496
11497 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11498 parameter. Set frameless flag if it exists and depended of
11499 whether the scanned function is frameless or not.
11500 (xstormy16_skip_prologue): If function is frameless, return
11501 result of xstormy16_scan_prologue().
11502 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11503 call.
11504
11505 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11506
11507 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11508 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11509 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11510 sh_sh4_register_byte, sh_sh4_register_raw_size,
11511 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11512 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11513 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11514 sh_store_pseudo_register, sh_do_pseudo_register): Call
11515 gdbarch_tdep() just once, assign result to variable and use that,
11516 instead of calling the function several times.
11517
11518 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11519
11520 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11521 macros instead of LAST_FPU_CTRL_REGNUM.
11522 (store_register): Likewise.
11523
11524 2002-01-21 Jim Blandy <jimb@redhat.com>
11525
11526 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11527 is up-to-date before running the program, not just when a program
11528 exits.
11529
11530 2002-01-21 Fred Fish <fnf@redhat.com>
11531
11532 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11533 when we have found all instructions we are looking for.
11534
11535 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11536
11537 * arm-tdep.c (arm_register_name): New function.
11538 (arm_registers_names): Make static.
11539 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11540 (arm_register_name): Declare.
11541 (REGISTER_NAME): Use it.
11542
11543 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11544 Kevin Buettner <kevinb@redhat.com>
11545
11546 Convert arm targets to new FRAME interface.
11547 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11548 (arm_frame_find_save_regs): Delete.
11549 (arm_frame_init_saved_regs): New.
11550 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11551 Allocate extra_info as required. Convert all uses of fsr.regs
11552 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11553 to use extra_info.
11554 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11555 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11556 (check_prologue_cache, save_prologue_cache): Likewise.
11557 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11558 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11559 (FRAME_FIND_SAVED_REGS): Delete.
11560 (arm_frame_find_saved_regs): Delete prototype.
11561 (arm_frame_init_saved_regs): New prototype.
11562 (FRAME_INIT_SAVED_REGS): Define.
11563
11564 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11565
11566 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11567
11568 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11569
11570 From Jeff Law <law@redhat.com>:
11571 * infttrace.c: Include <sys/pstat.h>.
11572 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11573 exec file if the ttrace equivalent fails.
11574
11575 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11576
11577 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11578 (closeLogFile): Ditto.
11579
11580 2002-01-20 Michael Chastain <mec@shout.net>
11581
11582 * top.c (print_gdb_version): Bump copyright year to 2002.
11583
11584 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11585
11586 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11587 Zannoni and Eli Zaretskii.
11588
11589 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11590
11591 * buildsym.c: Update copyright years.
11592 * c-typeprint.c: Likewise.
11593 * dwarf2read.c: Likewise.
11594 * f-typeprint.c: Likewise.
11595 * gdbtypes.c: Likewise.
11596 * gdbtypes.h: Likewise.
11597 * hp-symtab-read.c: Likewise.
11598 * hpread.c: Likewise.
11599 * mdebugread.c: Likewise.
11600 * p-typeprint.c: Likewise.
11601
11602 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11603
11604 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11605 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11606 byte-order selectable.
11607 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11608 * arch-utils.c: Ditto.
11609 (set_endian): Ditto.
11610 (set_endian_from_file): Ditto.
11611 * gdbserver/low-sim.c (create_inferior): Ditto.
11612 * gdbarch.sh: Ditto.
11613 * gdbarch.h: Re-generate.
11614 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11615 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11616 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11617 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11618 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11619 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11620 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11621 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11622 macro definition.
11623 * config/mips/tm-wince.h: Remove #undef of macro
11624 TARGET_BYTE_ORDER_SELECTABLE.
11625 * config/sh/tm-wince.h: Ditto.
11626
11627 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11628
11629 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11630 member function fields. Add accessor macro
11631 TYPE_FN_FIELD_ARTIFICIAL.
11632 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11633 * c-typeprint.c (c_type_print_base): Skip artificial member
11634 functions.
11635
11636 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11637
11638 * f-typeprint.c: Delete unused function f_type_print_args.
11639 * p-typeprint.c: Delete unused function pascal_type_print_args.
11640
11641 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11642
11643 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11644 comment. Add ``artificial'' to ``union field_location''.
11645
11646 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11647
11648 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11649 * mdebugread.c (parse_symbol): Likewise.
11650 * stabsread.c (define_symbol): Likewise.
11651 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11652 initializing TYPE_FIELD_BITPOS to n (obsolete).
11653 (hpread_doc_function_type): Likewise.
11654 * hpread.c (hpread_function_type): Likewise.
11655
11656 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11657
11658 * configure.in (host_makefile_frag): Only require a host makefile
11659 fragment when a native build.
11660 * configure: Re-generate.
11661
11662 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11663
11664 * doublest.h (floatformat_from_type): Declare.
11665 * doublest.c (floatformat_from_type): New function.
11666 (convert_typed_floating): Use.
11667
11668 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11669 call to function floatformat_from_type.
11670
11671 * gdbarch.sh (IEEE_FLOAT): Delete.
11672 * gdbarch.h, gdbarch.c: Re-generate.
11673 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11674 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11675 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11676 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11677 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11678 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11679 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11680 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11681 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11682 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11683 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11684 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11685
11686 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11687 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11688 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11689 * sh-tdep.c (sh_gdbarch_init): Ditto.
11690 * mips-tdep.c (mips_gdbarch_init): Ditto.
11691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11692 * cris-tdep.c (cris_gdbarch_init): Ditto.
11693
11694 2002-01-20 Jiri Smid <smid@suse.cz>
11695
11696 * configure.host, configure.tgt: Support x86-64.
11697 * NEWS: Note new target x86-64.
11698
11699 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11700 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11701 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11702 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11703 x86-64-linux-nat.o): Fix dependencies.
11704
11705 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11706
11707 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11708 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11709 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11710 * config/sparc/xm-sun4os4.h: Delete file.
11711 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11712
11713 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11714
11715 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11716 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11717 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11718 * config/i386/i386lynx.mh (XM_FILE): Delete.
11719 * config/rs6000/xm-rs6000ly.h: Delete file.
11720 * config/sparc/xm-sparclynx.h: Delete file.
11721 * config/m68k/xm-m68klynx.h: Delete file.
11722 * config/i386/xm-i386lynx.h: Delete file.
11723 * config/xm-lynx.h: Delete file.
11724 * config/djgpp/fnchange.lst: Update.
11725
11726 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11727
11728 * alpha-tdep.c (alpha_register_byte): New function.
11729 (alpha_register_raw_size): Ditto.
11730 (alpha_register_virtual_size): Ditto.
11731 (alpha_skip_prologue_internal): Renamed from
11732 alpha_skip_prologue.
11733 (alpha_skip_prologue): New version that calls
11734 alpha_skip_prologue_internal.
11735 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11736 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11737 second argument from alpha_skip_prologue.
11738 (REGISTER_BYTE): Use alpha_register_byte.
11739 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11740 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11741 (FRAMELESS_FUNCTION_INVOCATION): Use
11742 generic_frameless_function_invocation_not.
11743 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11744 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11745
11746 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11747
11748 * config/mips/xm-news-mips.h: Delete file.
11749 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11750
11751 * config/m88k/xm-m88k.h: Delete file.
11752 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11753 * config/m88k/xm-delta88v4.h: Ditto.
11754 * config/m88k/xm-delta88.h: Ditto.
11755
11756 * config/alpha/xm-fbsd.h: Delete file.
11757 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11758
11759 * config/sparc/xm-sparc.h: Delete file.
11760 * Makefile.in (xm-sun4os4.h): Delete dependency.
11761 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11762 * config/sparc/xm-sun4os4.h: Ditto.
11763 * config/sparc/xm-linux.h: Ditto.
11764
11765 * config/i386/xm-windows.h: Delete file.
11766
11767 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11768
11769 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11770 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11771
11772 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11773
11774 * alpha-tdep.c (alpha_call_dummy_words): New.
11775 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11776 (CALL_DUMMY_P): Define.
11777 (CALL_DUMMY_WORDS): Define.
11778 (SIZEOF_CALL_DUMMY_WORDS): Define.
11779
11780 2002-01-19 Per Bothner <per@bothner.com>
11781
11782 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11783 isn't NULL, which can happen with some gcj-3.x-produced code.
11784
11785 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11786
11787 * alpha-tdep.c (alpha_register_virtual_type): New function.
11788 (alpha_init_frame_pc_first): Ditto.
11789 (alpha_fix_call_dummy): Ditto.
11790 (alpha_store_struct_return): Ditto.
11791 (alpha_extract_struct_value_address): Ditto.
11792 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11793 alpha_register_virtual_type.
11794 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11795 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11796 alpha_extract_struct_value_address.
11797 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11798 (INIT_FRAME_PC): Use init_frame_pc_noop.
11799 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11800
11801 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11802
11803 * i386gnu-nat.c: Include "i386-tdep.h".
11804 (fetch_fpregs): Simplify code dealing with uninitialized floating
11805 point states such that it doesn't require FP7_REGNUM.
11806
11807 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11808
11809 * alpha-tdep.c (frame_extra_info): New.
11810 (alpha_find_saved_regs): Make static. Use
11811 frame->extra_info.
11812 (alpha_frame_init_saved_regs): New function.
11813 (alpha_frame_saved_pc): Use frame->extra_info.
11814 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11815 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11816 (init_extra_frame_info): Rename to...
11817 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11818 (alpha_print_extra_frame_info): New function.
11819 (alpha_frame_locals_address): Ditto.
11820 (alpha_frame_args_address): Ditto.
11821 (alpha_pop_frame): Use frame->extra_info.
11822 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11823 alpha_frame_args_address.
11824 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11825 (alpha_find_saved_regs): Remove prototype.
11826 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11827 (EXTRA_FRAME_INFO): Remove.
11828 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11829 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11830
11831 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11832
11833 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11834 (alpha_cannot_fetch_register): Ditto.
11835 (alpha_cannot_store_register): Ditto.
11836 (alpha_register_convertible): Ditto.
11837 (alpha_use_struct_convention): Ditto.
11838 * config/alpha/tm-alpha.h: Update copyright years.
11839 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11840 (INNER_THAN): Use core_addr_lessthan.
11841 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11842 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11843 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11844 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11845 (FRAME_CHAIN): Remove unnecessary cast.
11846
11847 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11848
11849 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11850 obsolete.
11851
11852 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11853
11854 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11855 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11856 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11857 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11858 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11859 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11860 * x86-64-linux-nat.c: Ditto.
11861
11862 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11863
11864 * alpha-tdep.c (alpha_register_name): New function.
11865 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11866 (REGISTER_NAME): Define.
11867
11868 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11869
11870 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11871
11872 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11873
11874 * alpha-tdep.c: Update copyright years.
11875 (alpha_next_pc): New function.
11876 (alpha_software_single_step): Ditto.
11877 * config/alpha/tm-alpha.h: Add prototype for
11878 alpha_software_single_step.
11879
11880 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11881
11882 * alphabsd-nat.c: Update copyright years.
11883 (fill_gregset): Use regcache_collect.
11884 (fill_fpregset): Likewise.
11885 (fetch_inferior_registers): Only fetch integer registers
11886 if requested to do so.
11887 (store_inferior_registers): Only store integer registers
11888 if requested to do so.
11889
11890 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11891
11892 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11893 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11894 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11895 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11896 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11897 * config/arm/linux.mh (XDEPFILES): Delete.
11898 * config/arm/nbsd.mh (XDEPFILES): Delete.
11899 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11900 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11901 * config/i386/i386m3.mh (XDEPFILES): Delete.
11902 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11903 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11904 * config/i386/fbsd.mh (XDEPFILES): Delete.
11905 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11906 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11907 * config/i386/i386v4.mh (XDEPFILES): Delete.
11908 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11909 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11910 * config/i386/i386aix.mh (XDEPFILES): Delete.
11911 * config/i386/go32.mh (XDEPFILES): Delete.
11912 * config/i386/cygwin.mh (XDEPFILES): Delete.
11913 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11914 * config/i386/i386mach.mh (XDEPFILES): Delete.
11915 * config/i386/i386v32.mh (XDEPFILES): Delete.
11916 * config/i386/linux.mh (XDEPFILES): Delete.
11917 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11918 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11919 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11920 * config/i386/i386sco.mh (XDEPFILES): Delete.
11921 * config/i386/i386v.mh (XDEPFILES): Delete.
11922 * config/i386/nbsd.mh (XDEPFILES): Delete.
11923 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11924 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11925 * config/i386/symmetry.mh (XDEPFILES): Delete.
11926 * config/i386/obsd.mh (XDEPFILES): Delete.
11927 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11928 * config/ia64/linux.mh (XDEPFILES): Delete.
11929 * config/ia64/aix.mh (XDEPFILES): Delete.
11930 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11931 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11932 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11933 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11934 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11935 * config/m68k/linux.mh (XDEPFILES): Delete.
11936 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11937 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11938 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11939 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11940 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11941 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11942 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11943 * config/m88k/delta88.mh (XDEPFILES): Delete.
11944 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11945 * config/m88k/m88k.mh (XDEPFILES): Delete.
11946 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11947 * config/mips/linux.mh (XDEPFILES): Delete.
11948 * config/mips/irix6.mh (XDEPFILES): Delete.
11949 * config/mips/irix5.mh (XDEPFILES): Delete.
11950 * config/mips/irix4.mh (XDEPFILES): Delete.
11951 * config/mips/irix3.mh (XDEPFILES): Delete.
11952 * config/mips/decstation.mh (XDEPFILES): Delete.
11953 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11954 (NATDEPFILES): Move core-aout.o to here.
11955 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11956 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11957 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11958 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11959 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11960 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11961 * config/pa/hpux11.mh (XDEPFILES): Delete.
11962 * config/powerpc/aix.mh (XDEPFILES): Delete.
11963 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11964 * config/powerpc/linux.mh (XDEPFILES): Delete.
11965 * config/romp/rtbsd.mh: Rename XDEPFILES.
11966 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11967 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11968 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11969 * config/s390/s390.mh (XDEPFILES): Delete.
11970 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11971 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11972 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11973 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11974 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11975 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11976 * config/sparc/linux.mh (XDEPFILES): Delete.
11977 * config/vax/vaxult.mh (XDEPFILES): Delete.
11978 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11979 * Makefile.in (DEPFILES): Remove XDEPFILES.
11980
11981 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11982
11983 * utils.c (internal_verror): Fix comments, default is yes not no.
11984 Update queries to match. Default to quit and dump core.
11985
11986 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11987
11988 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11989 copyright.
11990 * defs.h, event-top.c, gdbcmd.h: Ditto.
11991 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11992 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11993 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11994 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11995 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11996 * mi/mi-main.c:Ditto.
11997
11998 * stack.c, symfile.c: Update copyright.
11999
12000 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12001
12002 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12003 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12004 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12005 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12006
12007 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12008
12009 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12010 * gdbserver/low-lynx.c (myattach): Likewise.
12011 * gdbserver/low-nbsd.c (myattach): Likewise.
12012 * gdbserver/low-sim.c (myattach): Likewise.
12013 * gdbserver/low-sparc.c (myattach): Likewise.
12014 * gdbserver/low-sun3.c (myattach): Likewise.
12015
12016 * gdbserver/low-linux.c (myattach): New function.
12017
12018 * gdbserver/server.c (attach_inferior): New function.
12019 (main): Handle "--attach".
12020
12021 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12022
12023 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12024 maintainer.
12025
12026 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12027
12028 * c-typeprint.c (is_type_conversion_operator): Add additional
12029 check for non-conversion operators.
12030
12031 2002-01-15 Michael Snyder <msnyder@redhat.com>
12032
12033 * linux-proc.c: Add "info proc" command, a la procfs.c.
12034 (read_mapping): New function, abstract and re-use code.
12035 (linux_find_memory_regions): Use new func read_mapping.
12036 (linux_info_proc_cmd): New function, implement "info proc".
12037 (_initialize_linux_proc): Add new command "info proc".
12038
12039 2002-01-15 Michael Snyder <msnyder@redhat.com>
12040
12041 * symfile.c (generic_load): Use bfd_map_over_sections method
12042 instead of manipulating bfd structure members directly.
12043 (add_section_size_callback): New function, bfd sections callback
12044 used by generic_load.
12045 (load_sections_callback): New function, bfd sections callback
12046 used by generic_load.
12047
12048 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12049
12050 [Based on work by Jim Blandy]
12051 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12052 (builtin_type_vec128): Export.
12053 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12054 types.
12055 (builtin_type_vec128): New builtin type for 128 bit vector
12056 registers.
12057 (build_gdbtypes): Initialize builtin_type_v16qi and
12058 builtin_type_v8hi. Create the vec128 register builtin type
12059 structure.
12060 (build_builtin_type_vec128): New function.
12061 (_initialize_gdbtypes): Register builtin_type_v16qi and
12062 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12063 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12064 AltiVec register to new builtin type.
12065
12066 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12067
12068 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12069 to make_cv_type.
12070
12071 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12072
12073 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12074 CLEAN_UP_REGISTER_VALUE.
12075 * regcache.c (supply_register): Update only call.
12076
12077 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12078
12079 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12080 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12081 a29k-*-vxworks* targets as obsolete.
12082
12083 2002-01-14 Michael Snyder <msnyder@redhat.com>
12084
12085 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12086 until we can resolve portability issues.
12087 * gregset.h: Remove references to fpxregs.
12088 * gcore.c (gcore_command): Initialize note_sec to NULL.
12089
12090 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12091
12092 * signals.c (target_signal_to_name): Rewrite. Only use
12093 signals[].name when in bounds and non-NULL.
12094
12095 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12096
12097 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12098 * signals.c (target_signal_to_name): Verify that SIG is within the
12099 bounds of the signals array.
12100
12101 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12102
12103 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12104
12105 2002-01-13 Keith Seitz <keiths@redhat.com>
12106
12107 * stack.c (print_frame_info_base): Print the frame's pc
12108 only if when print_frame_info_listing_hook is not defined.
12109
12110 2002-01-13 Keith Seitz <keiths@redhat.com>
12111
12112 * varobj.c (varobj_set_value): Make sure that there were no
12113 errors evaluating the object before attempting to set its
12114 value.
12115 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12116 so this offset adjustment is no longer necessary.
12117 (create_child): Don't set the error flag if the child is
12118 a CPLUS_FAKE_CHILD.
12119 (value_of_child): If value_fetch_lazy fails, return NULL
12120 so that callers will be notified that an error occurred.
12121 (c_value_of_variable): Delay check of variable's validity
12122 until later. We actually want all structs and unions to have
12123 the value "{...}".
12124 Do not return "???" for variables which could not be evaluated.
12125 This error condition must be returned to the caller so that it
12126 can get the error condition from gdb.
12127 (cplus_name_of_child): Adjust index for vptr before figuring
12128 out the name of the child.
12129 (cplus_value_of_child): If a child's (real) parent is not valid,
12130 don't even bother trying to give a value for it. Just return
12131 an error. Change all instances in this function.
12132 (cplus_type_of_child): If our parent is one of the "fake"
12133 parents, we need to get at the type of the real parent, and
12134 derive the child's true type using this information.
12135
12136 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12137
12138 From 2002-01-09 John Marshall <johnm@falch.net>:
12139 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12140 sources.redhat.com, and tweak some related URLs which had
12141 suffered from linkrot.
12142
12143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12144
12145 From Jeff law:
12146 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12147 structures passed in registers.
12148
12149 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12150
12151 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12152 white space which prevented compilation. Reported by DSK
12153 <dsk@student.unsw.edu.au>.
12154
12155 2002-01-11 Michael Snyder <msnyder@redhat.com>
12156
12157 * symfile.c (build_section_addr_info_from_section_tab):
12158 Use bfd access method instead of manipulating bfd directly.
12159 (syms_from_objfile): Ditto.
12160 (simple_overlay_update_1): Ditto.
12161 (simple_overlay_update): Ditto.
12162 (generic_load): Ditto.
12163 (overlay_unmapped_address): FIXME comment, bfd access methods.
12164 (sections_overlap): FIXME comment, bfd access methods.
12165 (pc_in_mapped_range): FIXME comment, bfd access methods.
12166 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12167 (section_is_mapped): FIXME comment, bfd access methods.
12168 (section_is_overlay): FIXME comment, bfd access methods.
12169
12170 * symfile.c (generic_load): Whitespace and long line cleanups.
12171 Remove duplicate variable, change several local variables to
12172 more appropriate data types.
12173 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12174
12175 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12176
12177 From Peter Schauer:
12178 * language.c (longest_local_hex_string_custom): Use phex_nz to
12179 convert NUM to a hex string.
12180
12181 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12182
12183 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12184 the function.
12185 Update Copyright year.
12186
12187 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12188
12189 * language.c (longest_raw_hex_string): Delete unused function.
12190
12191 2002-01-11 Petr Sorfa <petrs@caldera.com>
12192
12193 * MAINTAINERS (write-after-approval): Add myself.
12194 * dwarf2read.c (read_tag_string_type): Handling of
12195 DW_AT_byte_size.
12196 (read_tag_string_type): FORTRAN fix to prevent propagation of
12197 first string size.
12198 (set_cu_language): Handling of DW_LANG_Fortran95
12199
12200 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12201
12202 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12203 GETPID(inferior_ptid).
12204 (store_inferior_registers): Likewise.
12205
12206 2002-01-10 Jason Merrill <jason@redhat.com>
12207
12208 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12209 Fix DW_OP_minus.
12210
12211 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12212
12213 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12214 and bfd/elf32-sh-nbsd.c.
12215
12216 2002-01-10 Michael Snyder <msnyder@redhat.com>
12217
12218 * NEWS: Mention --pid and corefile/proc-id behavior change.
12219
12220 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12221 * gcore.c: Include cli/cli-decode.h instead of command.h.
12222
12223 * main.c (captured_main): Add new command line option "--pid".
12224 If the second command line argument (following the symbol-file)
12225 begins with a digit, try to attach to it before trying to open
12226 it as a corefile.
12227 (print_gdb_help): Document the "--pid" argument.
12228
12229 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12230
12231 * completer.c (command_completer): New function.
12232
12233 * completer.h <command_completer>: Add prototype.
12234
12235 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12236 completer for the "help" command.
12237
12238 2002-01-09 Jason Merrill <jason@redhat.com>
12239
12240 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12241
12242 2002-01-09 Michael Snyder <msnyder@redhat.com>
12243
12244 * i386-linux-nat.c (fill_fpxregset): Make global.
12245 (store_fpxregset): Ditto.
12246
12247 * gregset.h (gdb_fpxregset_t): Define.
12248 (supply_fpxregset): Prototype.
12249 (fill_fpxregset): Prototype.
12250
12251 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12252
12253 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12254
12255 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12256 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12257 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12258
12259 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12260
12261 * MAINTAINERS: Update target maintainer rules so that any
12262 Maintainer can approve a tested patch for a maintenance-only
12263 target.
12264
12265 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12266
12267 * MAINTAINERS (write-after-approval): Add myself.
12268
12269 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12270 IN_SIGTRAMP.
12271
12272 2002-01-08 Michael Snyder <msnyder@redhat.com>
12273
12274 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12275 real name of the executable, rather than the /proc name.
12276
12277 2002-01-03 Michael Snyder <msnyder@redhat.com>
12278
12279 Implement a "generate-core-file" command in gdb, save target state.
12280 * gcore.c: New file. Implement new command 'generate-core-file'.
12281 Save a corefile image of the current state of the inferior.
12282 * linux-proc.c: Add linux-specific code for saving corefiles.
12283 * target.h (struct target_ops): Add new target vectors for saving
12284 corefiles; to_find_memory_regions and to_make_corefile_notes.
12285 (target_find_memory_regions): New macro.
12286 (target_make_corefile_notes): New macro.
12287 * target.c (update_current_target): Inherit new target methods.
12288 (dummy_find_memory_regions): New place-holder method.
12289 (dummy_make_corefile_notes): New place-holder method.
12290 (init_dummy_target): Initialize new dummy target vectors.
12291 * exec.c (exec_set_find_memory_regions): New function.
12292 Allow the exec_ops vector for memory regions to be taken over.
12293 (exec_make_note_section): New function, target vector method.
12294 * defs.h (exec_set_find_memory_regions): Export prototype.
12295 * procfs.c (proc_find_memory_regions): New function, corefile method.
12296 (procfs_make_note_section): New function, corefile method.
12297 (init_procfs_ops): Set new target vector pointers.
12298 (find_memory_regions_callback): New function.
12299 (procfs_do_thread_registers): New function.
12300 (procfs_corefile_thread_callback): New function.
12301 * sol-thread.c (sol_find_memory_regions): New function.
12302 (sol_make_note_section): New function.
12303 (init_sol_thread_ops): Initialize new target vectors.
12304 * inftarg.c (inftarg_set_find_memory_regions): New function.
12305 Allow to_find_memory_regions vector to be taken over.
12306 (inftarg_set_make_corefile_notes): New function.
12307 Allow to_make_corefile_notes vector to be taken over.
12308 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12309 interface layer if not target_has_execution (may be a corefile).
12310 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12311 * config/sparc/sun4sol2.mh: Ditto.
12312 * config/alpha/alpha-linux.mh: Ditto.
12313 * config/arm/linux.mh: Ditto.
12314 * config/i386/x86-64linux.mh: Ditto.
12315 * config/ia64/linux.mh: Ditto.
12316 * config/m68k/linux.mh: Ditto.
12317 * config/mips/linux.mh: Ditto.
12318 * config/powerpc/linux.mh: Ditto.
12319 * config/sparc/linux.mh: Ditto.
12320
12321 2002-01-07 Michael Snyder <msnyder@redhat.com>
12322
12323 * arm-linux-nat.c: Remove references to regcache.c internal data
12324 (registers[] and register_valid[]).
12325
12326 2002-01-07 Michael Snyder <msnyder@redhat.com>
12327
12328 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12329 so that attaching to a pid will automatically read the process's
12330 symbol file and shlibs.
12331 * Makefile.in: Add rule for linux-proc.o.
12332 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12333 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12334 * config/arm/linux.mh: Ditto.
12335 * config/i386/linux.mh: Ditto.
12336 * config/i386/x86-64linux.mh: Ditto.
12337 * config/ia64/linux.mh: Ditto.
12338 * config/m68k/linux.mh: Ditto.
12339 * config/mips/linux.mh: Ditto.
12340 * config/powerpc/linux.mh: Ditto.
12341 * config/sparc/linux.mh: Ditto.
12342
12343 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12344
12345 * win32-nat.c: Add i386-tdep.h dependency.
12346
12347 2002-01-07 Michael Snyder <msnyder@redhat.com>
12348
12349 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12350 instead of bfd_get_arch_size. Don't bail out just because
12351 there's no exec_bfd.
12352
12353 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12354 * p-valprint.c (pascal_object_print_value): Ditto.
12355 * somread.c (som_symtab_read): Ditto.
12356 * symfile.c (simple_free_overlay_region_table): Ditto.
12357 * valops.c (value_assign): Ditto.
12358
12359 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12360 use tilde_expand and strerror for opening save-tracepoints file.
12361
12362 * thread-db.c (thread_db_new_objfile): Indendation fix.
12363
12364 * infptrace.c (GDB_MAX_ALLOCA): New define.
12365 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12366 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12367 can be overridden with whatever value is appropriate to the host).
12368 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12369 alloca to allocate potentially large buffer.
12370 * rs6000-nat.c (child_xfer_memory): Ditto.
12371 * symm-nat.c (child_xfer_memory): Ditto.
12372 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12373
12374 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12375
12376 From Nick Clifton <nickc@redhat.com>
12377 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12378
12379 2002-01-07 Michael Snyder <msnyder@redhat.com>
12380
12381 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12382 Don't use exec_bfd if it's NULL.
12383
12384 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12385
12386 * valops.c (value_arg_coerce): Fix formatting.
12387
12388 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12389
12390 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12391 * gnu-nat.c: Ditto.
12392
12393 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12394
12395 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12396 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12397 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12398 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12399 z8k-coff have not been multi-arched. Update z8k-coff build
12400 status.
12401
12402 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12403
12404 * MAINTAINERS: Mark a29k target as obsolete.
12405 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12406 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12407 comments.
12408 * NEWS: Note that a29k targets are obsolete.
12409 * a29k-tdep.c: Mark as obsolete.
12410 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12411 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12412 a29k-*-vxworks* targets as obsolete.
12413 * remote-adapt.c: Obsolete.
12414 * remote-eb.c: Obsolete.
12415 * remote-mm.c: Obsolete.
12416 * remote-udi.c: Obsolete.
12417 * config/a29k/a29k-udi.mt: Obsolete.
12418 * config/a29k/a29k.mt: Obsolete.
12419 * config/a29k/tm-a29k.h: Obsolete.
12420 * config/a29k/tm-vx29k.h: Obsolete.
12421 * config/a29k/vx29k.mt: Obsolete.
12422
12423 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12424
12425 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12426 with BFD_ENDIAN_BIG.
12427
12428 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12429
12430 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12431 * configure, config.in: Re-generate.
12432 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12433 * defs.h: Do not include <endian.h>.
12434
12435 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12436
12437 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12438 * config.in: Regenerate.
12439 * configure.in: Update copyright years.
12440 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12441 * configure: Regenerate.
12442 * i386bsd-nat.c: Update copyright years.
12443 (fill_gregset): Use regcache_collect.
12444 (fetch_inferior_registers): Only fetch integer registers
12445 if requested to do so. Add support for XMM registers
12446 using PT_GETXMMREGS.
12447 (store_inferior_registers): Only store integer registers
12448 if requested to do so. Add support for XMM registers
12449 using PT_SETXMMREGS.
12450 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12451 (store_inferior_registers): Remove.
12452 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12453 (fetch_elfcore_registers): New function.
12454 (i386nbsd_elfcore_fns): New.
12455 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12456 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12457 i386bsd-nat.o.
12458 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12459 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12460 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12461 * config/i386/tm-nbsd.h: Update copyright years.
12462 (HAVE_SSE_REGS): Define.
12463 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12464 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12465 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12466 (SIGCONTEXT_PC_OFFSET): Remove.
12467 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12468
12469 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12470
12471 * configure.tgt: Remove powerpc-*-macos* target.
12472 * config/m68k/xm-mpw.h: Delete file.
12473 * config/xm-mpw.h: Delete file.
12474 * ser-mac.c: Delete file.
12475 * mpw-make.sed: Delete file.
12476 * mpw-config.in: Delete file.
12477 * mac-xdep.c: Delete file.
12478 * mac-gdb.r: Delete file.
12479 * mac-defs.h: Delete file.
12480 * mac-nat.c: Delete file.
12481 * config/powerpc/macos.mh: Delete file.
12482 * config/powerpc/macos.mt: Delete file.
12483 * config/powerpc/nm-macos.h: Delete file.
12484 * config/powerpc/tm-macos.h: Delete file.
12485 * source.c (openp, open_source_file): Remove obsolete code.
12486 * top.c (gdb_readline): Ditto.
12487 * utils.c (query): Ditto.
12488 * event-top.c (display_gdb_prompt): Ditto.
12489 * Makefile.in (ser-mac.o): Delete obsolete target.
12490 * NEWS: Update.
12491
12492 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12493
12494 * defs.h (BIG_ENDIAN): Delete macro definition.
12495 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12496 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12497 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12498 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12499 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12500 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12501 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12502 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12503 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12504 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12505 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12506 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12507 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12508 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12509 * gdbarch.c: Re-generate.
12510
12511 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12512
12513 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12514 for core files.
12515
12516 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12517
12518 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12519
12520 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12521
12522 * value.h (value_ptr): Delete typedef.
12523
12524 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12525
12526 * i386nbsd-nat.c: Update copyright years.
12527 Include i386-tdep.h.
12528
12529 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12530
12531 * stabsread.c: Update copyright years.
12532
12533 From Debashis Mahata <debashis.mahata@wipro.com>:
12534 (read_struct_fields): Deal with Sun C compiler erroneous stab
12535 output for structs and unions.
12536 Fix PR gdb/269.
12537
12538 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12539
12540 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12541 prototype.
12542
12543 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12544
12545 * cp-abi.c: Fix whitespace.
12546 (baseclass_offset): New wrapper function.
12547 * cp-abi.h (baseclass_offset): Add prototype.
12548 (struct cp_abi_ops): Add baseclass_offset pointer.
12549
12550 * valops.c (vb_match): Move to...
12551 * gnu-v2-abi.c (vb_match): here.
12552 * valops.c (baseclass_offset): Move to...
12553 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12554
12555 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12556
12557 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12558 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12559 * hpacc-abi.c (init_hpacc_ops): Likewise.
12560
12561 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12562
12563 * valops.c (find_overload_match): Accept obj as a
12564 reference parameter. Update it before returning.
12565 * value.h (find_overload_match): Update prototype.
12566 * eval.c (evaluate_subexp_standard): Pass object to
12567 find_overload_match by reference.
12568
12569 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12570
12571 * valarith.c: Replace value_ptr with struct value pointer. Remove
12572 register attribute from value declarations.
12573 * valops.c: Ditto.
12574 * value.h: Ditto.
12575 * scm-lang.c (scm_lookup_name): Ditto.
12576
12577 2002-01-03 Michael Snyder <msnyder@redhat.com>
12578
12579 Abstract the functionality of iterating over mapped memory
12580 regions into a general purpose iterator function.
12581 * procfs.c (iterate_over_mappings): New function, general purpose
12582 iterator for memory sections.
12583 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12584 (solib_mappings_callback): New function, callback for above.
12585 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12586 (info_mappings_callback): New function, callback for above.
12587
12588 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12589
12590 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12591
12592 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12593 * i386-tdep.c: Include "elf-bfd.h".
12594 (process_note_abi_tag_sections): New function.
12595 (i386_gdbarch_init): Add code to recognize various OS/ABI
12596 combinations.
12597
12598 * maint.c (_initialize_maint_cmds): Add missing \ in
12599 string-literal.
12600
12601 For older changes see ChangeLog-2001
12602 \f
12603 Local Variables:
12604 mode: change-log
12605 left-margin: 8
12606 fill-column: 74
12607 version-control: never
12608 End:
This page took 0.356745 seconds and 5 git commands to generate.