Preparation work to convert the hppa targets to multiarch partial.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2
3 Preparation work to convert the hppa targets to multiarch partial.
4
5 * hppa-tdep.c: Add new functions replacing macro bodies from
6 config/pa/tm-hppa.h. These function will be used to initialize
7 the gdbarch structure. Import some comments from tm-hppa.h,
8 and place them where appropriate, to avoid loosing them when
9 we cleanup this file.
10 (hppa_reg_struct_has_addr): New function.
11 (hppa_inner_than): New function.
12 (hppa_stack_align): New function.
13 (hppa_pc_requires_run_before_use): New function.
14 (hppa_instruction_nullified): New function.
15 (hppa_register_byte): New function.
16 (hppa_register_virtual_type): New function.
17 (hppa_store_struct_return): New function.
18 (hppa_cannot_store_register): New function.
19 (hppa_frame_args_address): New function.
20 (hppa_frame_locals_address): New function.
21 (hppa_smash_text_address): New function.
22 (hppa_coerce_float_to_double): New function. Requires the inclusion
23 of "language.h".
24
25 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
26
27 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
28 gdbarch-eligible macro to a call to the new associated function
29 created in hppa-tdep.c.
30 (INNER_THAN): Likewise.
31 (STACK_ALIGN): Likewise.
32 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
33 (INSTRUCTION_NULLIFIED): Likewise.
34 (REGISTER_BYTE): Likewise.
35 (REGISTER_VIRTUAL_TYPE): Likewise.
36 (STORE_STRUCT_RETURN): Likewise.
37 (CANNOT_STORE_REGISTER): Likewise.
38 (FRAME_ARGS_ADDRESS): Likewise.
39 (FRAME_LOCALS_ADDRESS): Likewise.
40 (SMASH_TEXT_ADDRESS): Likewise.
41 (COERCE_FLOAT_TO_DOUBLE): Likewise.
42 (ABOUT_TO_RETURN): Delete, as no longer used.
43
44 2002-11-07 Fernando Nasser <fnasser@redhat.com>
45
46 * printcmd.c (disassemble_command): Remove obsolete function.
47 (_initialize_printcmd): Do not create disassemble command here.
48 * cli/cli-cmds.c (disassemble_command): New function. Implements
49 disassemble command.
50 (init_cli_cmds): Create disassemble command here instead.
51
52 2002-11-07 Andrew Cagney <ac131313@redhat.com>
53
54 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
55
56 2002-11-07 Andrew Cagney <ac131313@redhat.com>
57
58 * regcache.h (regcache_cooked_read_using_offset_hack)
59 (regcache_cooked_write_using_offset_hack): Delete declarations.
60 (register_changed): Delete declaration.
61 * regcache.c (regcache_cooked_read_using_offset_hack)
62 (regcache_cooked_write_using_offset_hack): Delete functions.
63 (cooked_xfer_using_offset_hack): Delete function.
64 (register_changed): Delete function.
65
66 2002-11-07 Jim Blandy <jimb@redhat.com>
67
68 * macroscope.c: #include "complaints.h".
69 (sal_macro_scope): Cope with filenames that appear in the symtabs,
70 but not in the macro table.
71 * Makefile.in (macroscope.o): Record dependency.
72
73 2002-11-07 Joel Brobecker <brobecker@gnat.com>
74
75 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
76
77 2002-11-07 Andrew Cagney <ac131313@redhat.com>
78
79 * regcache.c (deprecated_registers_fetched): Update.
80 * regcache.h (deprecated_registers_fetched): Rename
81 registers_fetched.
82 * remote-vxsparc.c (vx_read_register): Update.
83 * remote-vxmips.c (vx_read_register): Update.
84 * remote-vx68.c (vx_read_register): Update.
85 * irix5-nat.c (fetch_core_registers): Update.
86 * mipsm3-nat.c (fetch_inferior_registers): Update.
87 * sun3-nat.c (fetch_inferior_registers): Update.
88 * symm-nat.c (fetch_inferior_registers): Update.
89 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
90 (fetch_core_registers): Update.
91 (fetch_kcore_registers): Update.
92 * mips-nat.c (fetch_inferior_registers): Update.
93 * corelow.c (get_core_registers): Update.
94 * a68v-nat.c (fetch_inferior_registers): Update.
95
96 2002-11-06 Joel Brobecker <brobecker@gnat.com>
97
98 Put in place the framework necessary for multiarching the hppa targets.
99 * hppa-tdep.c (hppa_gdbarch_init): New function.
100 (hppa_dump_tdep): New function.
101 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
102 tdep structure dumper.
103 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
104 until the multi-arching conversion has partially been completed.
105
106 2002-11-06 Andrew Cagney <ac131313@redhat.com>
107
108 * valops.c (value_assign): Merge lval_register case into
109 lval_reg_frame_relative. Use frame_register and
110 regcache_cooked_write instead of get_saved_register and
111 write_register_bytes. After flushing the register cache, try to
112 re-select the selected frame.
113
114 2002-11-06 Andrew Cagney <ac131313@redhat.com>
115
116 * regcache.h (deprecated_register_valid): Rename register_valid.
117 * regcache.c: Update.
118 * ia64-aix-nat.c: Update.
119 * i386gnu-nat.c: Update.
120 * alpha-nat.c: Update.
121 * sparc-nat.c: Update.
122 * lynx-nat.c: Update.
123 * remote-mips.c: Update.
124
125 2002-11-06 Joel Brobecker <brobecker@gnat.com>
126
127 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
128 to end of file, to be more consistent with the pratice followed
129 by other targets.
130
131 2002-11-06 Andrew Cagney <ac131313@redhat.com>
132
133 * infcmd.c: Include "reggroups.h" and <ctype.h>.
134 (print_float_info): Print registers in float_reggroup.
135 (print_vector_info): Print registers in vector_reggroup.
136 (default_print_registers_info): When all, print registers in
137 all_reggroup. Otherwize, print registers in general_reggroup.
138 (registers_info): Rewrite. Add support for register groups.
139 Eliminate a goto.
140
141 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
142
143 * symtab.c (methods_info): Delete. It has been ifdeffed out for
144 ages.
145 (symtab_symbol_info): Remove eons old ifdeffed out code.
146 (_initialize_symtab): Remove prehistoric disabled 'info methods'
147 command.
148
149 2002-11-06 Theodore A. Roth <troth@openavr.org>
150
151 * c-exp.y: Add missing semi-colons.
152 * f-exp.y: Add missing semi-colons.
153 * m2-exp.y: Add missing semi-colons.
154 * p-exp.y: Add missing semi-colons.
155 Add empty action to start rule to avoid a type clash error when
156 building with bison >= 1.50.
157
158 2002-11-06 Jim Blandy <jimb@redhat.com>
159
160 * macrotab.h (struct macro_source_file): Doc fix.
161
162 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
163
164 * varobj.c (child_exists, cplus_number_of_children): Change
165 STREQ macro references to strcmp.
166 (cplus_name_of_child): Change code to handle the fact that
167 fields are not necessarily contiguous with regards to their
168 access control. This is a fix for PR gdb/792.
169
170 2002-11-05 Andrew Cagney <ac131313@redhat.com>
171
172 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
173 * gdbarch.h, gdbarch.c: Regnerate.
174 * frame.h (frame_register): Declare.
175 * frame.c (frame_register): New function.
176 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
177 GET_SAVED_REGISTER, otherwize call
178 generic_unwind_get_saved_register.
179 (frame_register_read): Use frame_register instead of
180 get_saved_register.
181
182 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
183
184 From Jim Ingham <jingham@apple.com>:
185 * event-top.c (gdb_disable_readline): New function.
186 (_initialize_event_loop): Move comment.
187
188 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
189
190 * event-loop.c (start_event_loop): Add comment.
191 Update copyright.
192
193 2002-11-05 Andrew Cagney <ac131313@redhat.com>
194
195 * infcmd.c (default_print_registers_info): Do not call
196 PRINT_REGISTER_HOOK.
197
198 2002-11-05 Andrew Cagney <ac131313@redhat.com>
199
200 * sparc-tdep.c (sparc_print_register_hook): Make static.
201 (sparc_print_registers_info): New function.
202 (sparc_do_registers_info): New function.
203 (sparclet_print_registers_info): New function.
204 (sparclet_do_registers_info): New function.
205 (do_sparc_print_registers_info): New function.
206 (sparc_print_registers): New static function, clone of infcmd.c's
207 default_print_registers_info.
208 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
209 (sparclet_do_registers_info): Declare.
210 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
211 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
212 Re-define.
213 (sparc_do_registers_info): Declare.
214 (PRINT_REGISTER_HOOK): Delete macro.
215 (sparc_print_register_hook): Delete declaration.
216
217 2002-11-05 David Carlton <carlton@math.stanford.edu>
218
219 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
220 functions.
221 (lookup_symbol_aux_local): New function.
222 (lookup_symbol_aux_symtabs): New function.
223 (lookup_symbol_aux_psymtabs): New function.
224
225 2002-11-05 David Carlton <carlton@math.stanford.edu>
226
227 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
228 previous values of 'objfile' and 'block'.
229
230 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
231
232 * values.c (value_change_enclosing_type): Set
233 enclosing_type field correctly also for the case where
234 more memory needs to be allocated.
235
236 2002-11-03 Mark Kettenis <kettenis@gnu.org>
237
238 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
239 of puts_filtered.
240
241 * i387-tdep.c (i387_print_float_info): Replace calls to
242 register_read and deprecated_read_register_gen with calls to
243 frame_register_read, and make the necessary adjustments to the
244 surrounding code.
245
246 2002-11-02 Andrew Cagney <ac131313@redhat.com>
247
248 * gdbarch.sh (register_reggroup_p): Allow default value.
249 * gdbarch.h, gdbarch.c: Regenerate.
250
251 2002-11-02 Andrew Cagney <ac131313@redhat.com>
252
253 * regcache.h: Add coment indicating replacements for deprecated
254 functions.
255
256 2002-11-02 Andrew Cagney <cagney@redhat.com>
257
258 * reggroups.h, reggroups.c: New files.
259 * regcache.c: Include "reggroups.h".
260 (enum regcache_dump_what): Add `regcache_dump_groups'.
261 (regcache_dump): Contract size of the "Type" column. When
262 specified, dump the register's groups.
263 (maintenance_print_register_groups): New function.
264 (_initialize_regcache): Add command `maint print register-groups'.
265 * Makefile.in (COMMON_OBS): Add reggroups.o
266 (SFILES): Add reggroups.c.
267 (reggroups_h): Define.
268 (regcache.o, gdbarch.o): Update dependencies.
269 (reggroups.o): Specify dependencies.
270 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
271 Add opaque declaration for `struct reggroup' in generated .h file.
272 Include "reggroups.h" in generated .c file.
273 gdbarch.h, gdbarch.c: Re-generate.
274
275 2002-11-02 Andrew Cagney <cagney@redhat.com>
276
277 * regcache.h (deprecated_read_register_gen): Rename
278 read_register_gen.
279 (deprecated_write_register_gen): Rename write_register_gen.
280 * i387-tdep.c: Update.
281 * x86-64-linux-nat.c: Update
282 * wince.c: Update.
283 * thread-db.c: Update.
284 * win32-nat.c: Update.
285 * mips-tdep.c: Update.
286 * d10v-tdep.c: Update.
287 * cris-tdep.c: Update.
288 * remote-sim.c: Update.
289 * remote-rdi.c: Update.
290 * remote-rdp.c: Update.
291 * frame.c: Update.
292 * target.c: Update.
293 * blockframe.c: Update.
294 * x86-64-tdep.c: Update.
295 * xstormy16-tdep.c: Update.
296 * sh-tdep.c: Update.
297 * s390-tdep.c: Update.
298 * rs6000-tdep.c: Update.
299 * sparc-tdep.c: Update.
300 * i386-tdep.c: Update.
301 * dwarf2cfi.c: Update.
302 * regcache.c: Update.
303
304 2002-11-01 Joel Brobecker <brobecker@gnat.com>
305
306 New interix-specific files:
307 * config/i386/nm-interix.h: New file.
308 * config/i386/interix.mh: New file.
309 * config/i386/interix.mt: New file.
310 * i386-interix-nat.c: New file.
311 * i386-interix-tdep.c: New file.
312
313 2002-11-01 Andrew Cagney <cagney@redhat.com>
314
315 * frame.h (deprecated_generic_get_saved_register): Rename
316 generic_get_saved_register.
317 * blockframe.c (deprecated_generic_get_saved_register): Update.
318 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
319 (xstormy16_frame_saved_register): Update.
320 * sh-tdep.c (sh_gdbarch_init): Update.
321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
322 * ia64-tdep.c (ia64_get_saved_register): Update.
323 * cris-tdep.c (cris_gdbarch_init): Update.
324 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
325 * arm-tdep.c (arm_gdbarch_init): Update.
326
327 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
328
329 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
330
331 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
332
333 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
334 trampolines in sigaction.
335
336 2002-10-31 Andrew Cagney <cagney@redhat.com>
337
338 * h8300-tdep.c: Include "gdb_assert.h".
339 (h8300_print_register): Add gdbarch, file and frame parameters.
340 Use frame_read_unsigned_register to read the register's value.
341 Use fprintf_filtered to display output.
342 (h8300_print_registers_info): Replace h8300_do_registers_info.
343 (h8300_gdbarch_init): Set print_registers_info.
344
345 2002-10-31 Andrew Cagney <cagney@redhat.com>
346
347 * frame.c (frame_read_unsigned_register): New function.
348 (frame_read_signed_register): New function.
349 * frame.h (frame_read_unsigned_register): Declare.
350 (frame_read_signed_register): Declare.
351
352 2002-10-31 Andrew Cagney <cagney@redhat.com>
353
354 * h8500-tdep.c (h8500_print_registers_info): New static function,
355 clone of infcmd.c's default_print_registers_info.
356 (h8500_do_registers_info): New funtion.
357 (h8500_print_register_hook): Rename print_register_hook, make
358 static.
359
360 * config/h8500/tm-h8500.h: Update copyright.
361 (DEPRECATED_DO_REGISTERS_INFO): Define.
362 (h8500_do_registers_info: Declare.
363 (PRINT_REGISTER_HOOK): Delete macro.
364 (print_register_hook): Delete function.
365
366 2002-10-31 Andrew Cagney <cagney@redhat.com>
367
368 * z8k-tdep.c (z8k_print_register_hook): Make static.
369 (z8k_print_registers_info): New static function, clone of
370 infcmd.c's default_print_registers_info.
371 (z8k_do_registers_info): New function. Wrap
372 z8k_print_registers_info.
373 * config/z8k/tm-z8k.h: Update copyright.
374 (PRINT_REGISTER_HOOK): Delete macro.
375 (z8k_print_register_hook): Delete declaration.
376 (DEPRECATED_DO_REGISTERS_INFO): Define.
377 (z8k_do_registers_info): Declare.
378
379 2002-10-30 Joel Brobecker <brobecker@gnat.com>
380
381 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
382 as this is already provided by value.h, and was actually causing
383 a compilation error because of a conflict in parameter type
384 declaration due to a missing const keyword.
385 (low_text_segment_addres): Fix a compilation warning.
386
387 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
388
389 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
390 registers without a name.
391 (mips_linux_cannot_store_register): Don't store registers without
392 a name.
393
394 2002-10-28 David Carlton <carlton@math.stanford.edu>
395
396 * symtab.c (find_addr_symbol): Delete. (It was already commented
397 out.)
398 * symtab.h: Delete prototype for find_addr_symbol.
399
400 2002-10-26 Andrew Cagney <cagney@redhat.com>
401
402 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
403 DO_REGISTERS_INFO.
404 gdbarch.h, gdbarch.c: Re-generate.
405 * infcmd.c (default_print_registers_info): Update reference.
406 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
407 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
408 * sh-tdep.c (sh_gdbarch_init): Ditto.
409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
410 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
411
412 2002-10-26 Mark Kettenis <kettenis@gnu.org>
413
414 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
415 cfi_init_extra_frame_info.
416 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
417 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
418
419 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
420 target where necessary. Add more comments and remove the ones
421 that don't provide any useful information.
422
423 * i386-tdep.c (i386_frame_saved_pc): Replace call to
424 deprecated_read_register_dummy with
425 frame_unwind_unsigned_register.
426
427 * i386-tdep.c (i386_extract_struct_value_address): Use
428 regcache_raw_read_unsigned instead of
429 regcache_cooked_read_unsigned since we know that the register
430 we're reading isn't a pseudo register. Rename variable 'val' into
431 the more descriptive 'addr'.
432
433 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
434 (x86_64_push_return_address): Add comment.
435 (x86_64_pop_frame): Make static.
436 (examine_argument): Clarify comment.
437 (x86_64_skip_prologue): Make prolog_expact variable static.
438
439 * dwarf2cfi.c: Fix some formatting problems.
440 (context_cpy, read_encoded_pointer): Clarify comments.
441
442 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
443 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
444 i386 target back into x86_64_gdbarch_init. Add some comments and
445 remove meaningless ones.
446
447 2002-10-25 Andrew Cagney <cagney@redhat.com>
448
449 * complaints.h (struct deprecated_complaint): Rename `struct
450 complaint'.
451 * complaints.c (complain): Update.
452 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
453 incorrect comment indicating that "symfile.h" was being included
454 for the `struct complaint' definition.
455 * remote-vx.c: Update.
456 * objc-lang.c: Update.
457 * xcoffread.c: Update.
458 * hpread.c: Update.
459 * mdebugread.c: Update.
460 * stabsread.c: Update.
461 * dwarf2read.c: Update.
462 * dwarfread.c: Update.
463 * elfread.c: Update.
464 * coffread.c: Update.
465 * stabsread.h: Update.
466 * dbxread.c: Update.
467 * buildsym.c: Update.
468 * gdbtypes.c: Update.
469 * macrotab.c: Update.
470
471 2002-10-25 Mark Kettenis <kettenis@gnu.org>
472
473 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
474 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
475 (x86_64_init_abi): ...new function.
476
477 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
478 * i386v-nat.c: Include "i386-tdep.h".
479
480 2002-10-25 Andrew Cagney <cagney@redhat.com>
481
482 * gdbtypes.c (address_space_name_to_int): Update.
483 (address_space_int_to_name): Update.
484 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
485 multi-arch predicate.
486 (address_class_name_to_type_flags): Ditto.
487 * gdbarch.h, gdbarch.c: Re-generate.
488
489 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
490
491 2002-10-24 Martin M. Hunt <hunt@redhat.com>
492
493 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
494
495 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
496
497 * symtab.h (INIT_SAL): Delete macro.
498 (init_sal): Export.
499 * symtab.c (init_sal): New function.
500
501 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
502 to init_sal function call.
503 (find_sal_from_funcs_and_line): Ditto.
504 (all_sals_for_line): Ditto.
505 * breakpoint.c (create_internal_breakpoint): Ditto.
506 (create_fork_vfork_event_catchpoint): Ditto.
507 (create_exec_event_catchpoint): Ditto.
508 (parse_breakpoint_sals): Ditto.
509 (watch_command_1): Ditto.
510 (handle_gnu_4_16_catch_command): Ditto.
511 (clear_command): Ditto.
512 * hppa-tdep.c (child_enable_exception_callback): Ditto.
513 * infcmd.c (run_stack_dummy): Ditto.
514 * infrun.c (process_event_stop_test): Ditto.
515 (check_sigtramp2): Ditto.
516 (step_over_function): Ditto.
517 * linespec.c (decode_line_2): Ditto.
518 (decode_line_1): Ditto.
519 * source.c (line_info): Ditto.
520 * symtab.c (find_pc_sect_line): Ditto.
521
522 2002-10-24 Michal Ludvig <mludvig@suse.cz>
523
524 * dwarf2cfi.c (struct context)
525 (struct context_reg): Moved to dwarf2cfi.h
526 (context_alloc, frame_state_alloc, context_cpy):
527 Made extern instead of static, removed prototypes.
528 * dwarf2cfi.h (struct context)
529 (struct context_reg): New, moved from dwarf2cfi.c
530 (context_alloc, frame_state_alloc, context_cpy):
531 New prototypes.
532 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
533 Changed from static to extern.
534 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
535 (LINUX_SIGCONTEXT_FP_OFFSET)
536 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
537 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
538 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
539 * x86-64-tdep.c (x86_64_gdbarch_init): Several
540 set_gdbarch_*() calls now use x86-64 specific functions
541 instead of DWARF2 CFI ones.
542 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
543 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
544 (x86_64_init_extra_frame_info): New prototypes.
545
546 2002-10-23 David Carlton <carlton@math.stanford.edu>
547
548 * linespec.c: #include "parser-defs.h".
549 Delete prototype for find_template_name_end.
550 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
551
552 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
553
554 * NEWS: add recent mi fixes.
555 * varobj.c (struct varobj): Add new "updated" flag.
556 (new_variable): Default "updated" flag to 0.
557 (varobj_set_value): Set "updated" flag to 1 if value
558 changes.
559 (varobj_update): Check varobj "updated" flag before
560 comparing old and refreshed values. Fix for
561 PR gdb/702.
562
563 2002-10-23 David Carlton <carlton@math.stanford.edu>
564
565 * parse.c (parse_exp_1): Use BLOCK_START.
566 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
567 SYMBOL_BLOCK_VALUE.
568 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
569
570 2002-10-23 David Carlton <carlton@math.stanford.edu>
571
572 * symtab.c: Delete cplusplus_hint.
573 Delete prototype for find_template_name_end.
574
575 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
576
577 * symtab.h: Update comment.
578
579 2002-10-23 Michael Snyder <msnyder@redhat.com>
580
581 * printcmd.c (address_info): Restore quotes in output.
582 * valops.c (value_of_local): Restore quotes in error message.
583
584 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
585
586 * symtab.c (symbol_demangled_name): New function.
587 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
588 turning most of it into a function.
589 (symbol_demangled_name): Export.
590
591 2002-10-23 Michael Snyder <msnyder@redhat.com>
592
593 * valops.c (value_of_local): Restore quotes in error message.
594
595 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
596
597 * symtab.c (symbol_init_language_specific): New function.
598 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
599 turning most of it into a function.
600 (symbol_init_language_specific): Export.
601
602 2002-10-23 David Carlton <carlton@math.stanford.edu>
603
604 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
605 (dwarf_attr_name): Ditto.
606 (dwarf_type_encoding_name): Ditto.
607 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
608 (process_die): Handle DW_TAG_namespace,
609 DW_TAG_imported_declaration, DW_TAG_imported_module.
610 (read_namespace): New function.
611
612 2002-10-22 Joel Brobecker <brobecker@gnat.com>
613
614 * configure.in: Define NEW_PROC_API on Interix too.
615 * configure: Regenerate.
616
617 2002-10-21 Joel Brobecker <brobecker@gnat.com>
618
619 * configure: Regenerate using the proper version of autoconf.
620
621 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
622
623 * findvar.c (read_var_value): Temporarily disable TLS code, until
624 complete TLS support is added.
625
626 2002-10-21 Jim Blandy <jimb@redhat.com>
627 Elena Zannoni <ezannoni@redhat.com>
628
629 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
630 for thread local storage locations.
631 (struct symbol): Add objfile field.
632 (SYMBOL_OBJFILE): Define.
633 * dwarf2read.c (is_thread_local): New static variable.
634 (new_symbol): If variable is in thread local fill in address class
635 and objfile appropriately.
636 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
637 stack operation.
638 * printcmd.c (address_info): Print the information for thread
639 local storage variable.
640 * findvar.c (read_var_value): In case of thread local variable,
641 defer to the target vector code to compute address.
642
643 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
644
645 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
646 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
647
648 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
649
650 * symtab.h (address_class): Rename
651 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
652 * hpread.c (hpread_process_one_debug_symbol): Ditto.
653 * printcmd.c (address_info): Ditto.
654 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
655
656 2002-10-20 Mark Kettenis <kettenis@gnu.org>
657
658 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
659 DBREG_DRX macro to acces debug registers.
660
661 * Makefile.in (i386obsd-tdep.o): New target.
662
663 * solib-sunos.c: Include "bcache.h" and "regcache.h".
664 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
665
666 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
667 * config/i386/obsd.mt: New file.
668 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
669 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
670 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
671 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
672 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
673 * i386obsd-tdep.c: New file.
674
675 2002-10-19 Adam Fedor <fedor@gnu.org>
676
677 * objc-exp.y (name_not_typename): Fix invalid comment.
678
679 2002-10-20 Mark Kettenis <kettenis@gnu.org>
680
681 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
682 to allocate partial syms and macro byte caches.
683
684 2002-10-18 David Carlton <carlton@math.stanford.edu>
685
686 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
687
688 2002-10-18 Adam Fedor <fedor@gnu.org>
689
690 * stabsread.c (find_name_end): New function.
691 (define_symbol): Use it.
692
693 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
694
695 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
696 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
697 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
698 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
699
700 2002-10-17 David Carlton <carlton@math.stanford.edu>
701
702 * symfile.h: Add opaque declaration for struct obstack.
703 Declare obsavestring to take a const char *.
704 * symfile.c (obsavestring): Make first argument a const char *.
705
706 2002-10-16 Adam Fedor <fedor@gnu.org>
707
708 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
709 names when matching breakpoints in current file.
710
711 2002-10-16 Kevin Buettner <kevinb@redhat.com>
712
713 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
714 (read_tag_pointer_type): Add address class support.
715 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
716 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
717 New methods.
718 * gdbarch.h, gdbarch.c: Regenerate.
719 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
720 (make_type_with_address_space, recursive_type_dump): Add address
721 class support.
722 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
723 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
724 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
725
726 2002-10-16 Klee Dienes <kdienes@apple.com>
727
728 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
729 to get the last character of a char[] buffer, not
730 name[sizeof(vptr_name)-1].
731
732 2002-10-14 Adam Fedor <fedor@gnu.org>
733
734 * symtab.h: New objc_specific struct.
735 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
736 (SYMBOL_DEMANGLED_NAME): Likewise.
737
738 2002-10-14 Adam Fedor <fedor@gnu.org>
739
740 * symfile.c (init_filename_language_table): Add ObjC file extension.
741
742 2002-10-14 Adam Fedor <fedor@gnu.org>
743
744 * utils.c (puts_filtered_tabular): New function.
745 (fprintf_symbol_filtered): Get ObjC demangled name.
746 * defs.h (puts_filtered_tabular): Declared.
747
748 2002-10-14 Kevin Buettner <kevinb@redhat.com>
749
750 * c-lang.h (c_type_print_varspec_prefix): Delete.
751 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
752 ``need_post_space'' parameter. Adjust all callers.
753
754 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
755
756 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
757 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
758 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
759 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
760
761 2002-10-13 Adam Fedor <fedor@gnu.org>
762
763 * source.c (print_source_lines): Update comments.
764
765 2002-10-13 Adam Fedor <fedor@gnu.org>
766
767 * valops.c (value_of_local): New function.
768 (value_of_this): Use it.
769 * value.h (value_of_local): Declared.
770
771 2002-10-13 Adam Fedor <fedor@gnu.org>
772
773 * parse.c: (length_of_subexp, prefixify_subexp): Handle
774 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
775
776 2002-10-12 Adam Fedor <fedor@gnu.org>
777
778 * language.c (binop_result_type): Add language_objc to case.
779 (integral_type): Likewise.
780 (character_type): Likewise.
781 (string_type): Likewise.
782 (boolean_type): Likewise.
783 (structured_type): Likewise.
784 (binop_type_check): Likewise.
785
786 2002-10-11 Adam Fedor <fedor@gnu.org>
787
788 * printcmd.c (address_info): Print 'self' for ObjC.
789
790 2002-10-11 Adam Fedor <fedor@gnu.org>
791
792 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
793 OP_SELF.
794
795 2002-10-11 Adam Fedor <fedor@gnu.org>
796
797 * language.h (CAST_IS_CONVERSION): Add language_objc.
798
799 2002-10-11 Adam Fedor <fedor@gnu.org>
800
801 * defs.h (enum language): Add language_objc.
802
803 2002-10-11 Klee Dienes <kdienes@apple.com>
804
805 * corefile.c (read_memory_typed_address): New function.
806 * gdbcore.h (read_memory_typed_address): Add prototype.
807 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
808 to read a value destined for a CORE_ADDR, not read_memory_integer.
809 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
810 (f77_get_dynamic_lowerbound): Ditto.
811
812 2002-10-11 Martin M. Hunt <hunt@redhat.com>
813
814 * utils.c (string_to_core_addr): After turning string into
815 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
816 which will do necessary sign-extension, etc.
817
818 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
819
820 * c-exp.y (THIS): Delete token and grammar rule.
821 (yylex): Don't return THIS.
822 * cp-valprint.c (vtbl_ptr_name_old): Delete.
823 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
824 * demangle.c (cplus_markers): Update comment. Put '$'
825 first. Remove CPLUS_MARKER.
826 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
827 * jv-exp.y (THIS): Delete token and grammar rule.
828 (yylex): Don't return THIS.
829 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
830 * objc-exp.y (THIS): Delete token and grammar rule.
831 (yylex): Don't return THIS.
832 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
833 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
834 (read_member_functions): Likewise for opname.
835 (read_tilde_fields): Use is_cplus_marker.
836
837 * defs.h (CPLUS_MARKER): Don't define.
838 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
839 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
840 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
841 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
842 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
843
844 * config/i386/tm-i386v4.h: Delete file.
845 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
846 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
847 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
848 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
849 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
850 * config/i386/i386sco5.mt (TM_FILE): Likewise.
851 * config/i386/i386v4.mt (TM_FILE): Likewise.
852 * config/i386/ncr3000.mt (TM_FILE): Likewise.
853
854 2002-10-10 Marko Mlinar <markom@opencores.org>
855
856 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
857 accidentially not commited 2002-10-09
858 * gdbarch.h, gdbarch.c: Re-generate.
859
860 2002-10-09 Marko Mlinar <markom@opencores.org>
861
862 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
863 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
864 * gdbarch.h, gdbarch.c: Re-generate.
865
866 2002-10-08 Petr Sorfa <petrs@caldera.com>
867
868 Revised and re-submitted by John Wolfe <jlw@caldera.com>
869
870 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
871 so we can work on more than one compilation unit at a time. This
872 helps prepare GDB to handle inter-CU die references.
873 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
874 the code to be defined before struct comp_unit_head.
875 (comp_unit_head): Added new members - offset, cu_head,
876 begin_die, next and dwarf2_abbrevs.
877 (dwarf2_abbrevs): Removed single static var; now member of
878 struct comp_unit_head.
879 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
880 members.
881 (psymtab_to_symtab_1): Changed to work with the new
882 struct comp_unit_head.
883 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
884 constructs the dwarf2_abbrevs[] inside the cu_header.
885 (dwarf2_empty_abbrev_table): Now expects a ptr to a
886 dwarf2_abbrev table to clean up.
887 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
888 handling of dwarf2_abbrevs inside the cu_header.
889 (read_partial_die): Now supports the call to the new
890 dwarf2_lookup_abbrev.
891 (read_full_die): Now supports the call to the new
892 dwarf2_lookup_abbrev.
893
894 2002-10-06 Christopher Faylor <cgf@redhat.com>
895
896 * Makefile.in (install-gdbtk): Add missing continuation backslash to
897 insure that shell variables, such as "transformed_name" are propagated
898 to later shell statements in rule.
899
900 2002-10-06 Mark Kettenis <kettenis@gnu.org>
901
902 * config/i386/nm-i386sco.h: Add protection against
903 multiple-inclusion. Include "i386/nm-i386v.h".
904 (REGISTER_U_ADDR): Remove define.
905 (i386_register_u_addr): Remove prototype.
906
907 2002-10-04 Michael Snyder <msnyder@redhat.com>
908
909 * m32r-stub.c (handle_exception): Make sure exception is "trap"
910 before treating it as a single-step event.
911
912 2002-10-03 Adam Fedor <fedor@gnu.org>
913
914 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
915 (objc_demangle): Remove assignment in if statements, Replace
916 free with xfree.
917 (add_msglist): Likewise.
918 (end_msglist): Likewise.
919 (complare_selectors): Likewise.
920 (selectors_info): Likewise.
921 (compare_classes): Likewise.
922 (classes_info): Likewise.
923 (print_object_command): Likewise.
924 (find_objc_msgcall_submethod): Replace PTR with void *.
925 * objc-lang.h: Remove check for __STDC__.
926
927 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
928
929 * ui-out.h (ui_out_field_fmt_int): New prototype.
930 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
931 of field width and alignment.
932 * stack.c (print_frame_info_base): When printing frame level, use
933 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
934 PR gdb/192
935
936 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
937
938 * MAINTAINERS: Add self to Write After Approval list.
939
940 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
941
942 * infcmd.c (interrupt_target_command_wrapper): Delete.
943 (interrupt_target_command): Make non static.
944 (nofp_registers_info): Make static.
945 * stack.c (return_command_wrapper): Delete.
946 (return_command): Make non static.
947
948 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
949
950 * event-top.c (gdb_setup_readline): New function. Code moved from
951 _initialize_event_loop().
952 (_initialize_event_loop): Call gdb_setup_readline().
953
954 2002-10-02 Andrew Cagney <ac131313@redhat.com>
955
956 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
957 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
958 * gdbarch.h, gdbarch.c: Re-generate.
959
960 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
961
962 Fix PR gdb/778
963 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
964 before recursing.
965 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
966 of fill_in_vptr_fieldno.
967
968 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
969
970 * inferior.h (registers_info, stepi_command, nexti_command,
971 continue_command, interrupt_target_command): Export from infcmd.c.
972 * frame.h (args_info, selected_frame_level_changed_hook,
973 return_command): Export from stack.c.
974 * v850ice.c (stepi_command, nexti_command, continue_command): use
975 prototypes from inferior.h.
976 * tracepoint.c (registers_info, args_info, locals_info): Use
977 prototypes from frame.h and inferior.h.
978 * Makefile.in (mi-main.o): Add dependency on frame.h.
979
980 2002-10-02 Andrew Cagney <ac131313@redhat.com>
981
982 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
983 value in register 3 adjusted by ppc_gp0_regnum.
984
985 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
986
987 2002-10-02 Marko Mlinar <markom@opencores.org>
988
989 * MAINTAINERS: Add myself to the Write After Approval list.
990
991 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
992
993 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
994 of the section for the N64 ABI, fixed.
995
996 * config/mips/tm-irix6.h: Include solib.h.
997
998 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
999
1000 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1001 GNU operators.
1002
1003 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1004
1005 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1006 and that "mi0" syntax has been removed.
1007
1008 2002-09-30 David Carlton <carlton@math.stanford.edu>
1009
1010 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1011 * ppc-sysv-tdep.c: #include "gdb_string.h".
1012 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1013 pacify GCC.
1014
1015 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1016
1017 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1018 "vrsave"'s register number.
1019
1020 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1021
1022 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1023 use frame_unwind_signed_register to obtain the PC.
1024 (mips_frame_chain): Handle a generic dummy frame.
1025 (mips_init_extra_frame_info): When a generic dummy frame, don't
1026 re-compute the frame base.
1027 (mips_pop_frame): Handle generic dummy frames.
1028 (mips_gdbarch_init): When generic dummy frames, set
1029 use_generic_dummy_frames, push_dummy_frame to
1030 generic_push_dummy_frame, pc_in_call_dummy to
1031 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1032 generic_save_dummy_frame_tos.
1033
1034 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1035
1036 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1037 against TOP when TOP was explictly set.
1038 (generic_push_dummy_frame): Set TOP to zero.
1039
1040 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1041
1042 * event-loop.c (start_event_loop): Rename variable 'result' to
1043 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1044
1045 2002-09-30 Keith Seitz <keiths@redhat.com>
1046
1047 * gdb-events.sh (selected_thread_changed): New event.
1048 * gdb-events.c: Regenerated.
1049 * gdb-events.h: Regenerated.
1050
1051 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1052
1053 * MAINTAINERS: Add self to Write After Approval list.
1054
1055 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1056
1057 * disasm.c: New file.
1058 * disasm.h: New file.
1059 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1060 (compare_lines): Ditto.
1061 (dump_insns): Ditto.
1062 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1063 argument.
1064 (do_assembly_only): Ditto.
1065 (do_disassembly): Renamed to gdb_disassembly and moved to
1066 disasm.c. Sdded uiout argument.
1067 * Makefile.in: Add new files. Reorder SFILES list. Update
1068 dependencies. Include libgdb.a later in the insight executable.
1069
1070 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1071
1072 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1073 bfd/elf64-alpha-fbsd.c.
1074
1075 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1076
1077 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1078 i386gnu-tdep.c.
1079
1080 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1081
1082 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1083 __FUNCTION__.
1084 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1085 function name.
1086 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1087 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1088 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1089 (S_msg_sig_post_reply): Ditto.
1090
1091 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1092
1093 * sh-tdep.c (sh_use_struct_convention): Use definition according
1094 to ABI.
1095 (sh_push_arguments): Store in register with correct endianess.
1096 (sh_default_store_return_value): Ditto.
1097 (sh_gdbarch_init): Set sizeof long double to 8.
1098
1099 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1100
1101 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1102 Fix some whitespace problems.
1103
1104 2002-09-27 David Carlton <carlton@math.stanford.edu>
1105
1106 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1107 (mcore-tdep.o): Ditto.
1108 (ns32k-tdep.o): Ditto.
1109 (ns32knbsd-tdep.o): Ditto.
1110 (sh3-rom.o): Ditto.
1111 (vax-tdep.o): Ditto.
1112 * cris-tdep.c: #include "gdb_string.h"
1113 * mcore-tdep.c: Ditto.
1114 * ns32k-tdep.c: Ditto.
1115 * ns32knbsd-tdep.c: Ditto.
1116 * sh3-rom.c: Ditto.
1117 * vax-tdep.c: Ditto.
1118
1119 2002-09-27 David Carlton <carlton@math.stanford.edu>
1120
1121 * config/djgpp/fnchange.lst: Add entries for
1122 gdb/testsuite/gdb.c++/m-static files.
1123
1124 2002-09-27 Jim Wilson <wilson@redhat.com>
1125
1126 * MAINTAINERS: Add myself to the Write After Approval list.
1127
1128 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1129
1130 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1131
1132
1133 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1134
1135 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1136 frame.
1137
1138 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1139
1140 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1141 (rs6000_struct_return_address): Delete variable.
1142 (rs6000_store_struct_return): Update.
1143 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1144 deprecated_extract_struct_value_address.
1145 (rs6000_frame_align): New function.
1146 (rs6000_gdbarch_init): Set frame_align.
1147
1148 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1149
1150 From Grace Sainsbury <graces@redhat.com>:
1151 * Makefile.in (gdbtk-main.o): New target.
1152 (gdb.o): New target.
1153 (main_h): Define.
1154 (main.o): Update dependencies.
1155 (gdb$(EXEEXT)): Add gdb.o.
1156 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1157 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1158 (SUBDIR_GDBTK_CLEAN): Set.
1159 (install-gdbtk): Install the insight binary.
1160 (uninstall-gdbtk): New target.
1161 (all-gdbtk, clean-gdbtk): New rule.
1162 * top.c (use_windows): Default to zero.
1163 * main.c: Include "main.h".
1164 (main): Delete.
1165 (struct captured_main_args): Delete.
1166 (gdb_main): New function.
1167 * main.h: New file.
1168 * gdb.c: New File.
1169
1170 2002-09-25 Andrew Cagney <cagney@redhat.com>
1171
1172 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1173 (frame_map_regnum_to_name): New function.
1174 (frame_map_name_to_regnum): New function.
1175 * frame.h (frame_map_name_to_regnum): Declare.
1176 (frame_map_regnum_to_name): Declare.
1177 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1178 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1179 * parse.c: Do not include "builtin-regs.h".
1180 (target_map_name_to_register): Delete function.
1181 (write_dollar_variable): Use frame_map_name_to_regnum.
1182 * parser-defs.h (target_map_name_to_register): Delete declaration.
1183 * expprint.c: Include "frame.h".
1184 (print_subexp): Use frame_map_regnum_to_name.
1185 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1186 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1187
1188 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1189
1190 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1191 wasn't saved, and the next innermost frame is a dummy, return the
1192 dummy frame's link register.
1193
1194 2002-09-24 Jim Blandy <jimb@redhat.com>
1195
1196 Fix from Paul Breed:
1197 * main.c (captured_main): Add a `break' after the case for 'b'.
1198
1199 2002-09-24 Keith Seitz <keiths@redhat.com>
1200
1201 * varobj.c (c_type_of_child): Use get_target_type instead
1202 of TYPE_TARGET_TYPE.
1203
1204 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1205
1206 * source.c (get_current_or_default_source_symtab_and_line): Remove
1207 function.
1208 (set_default_source_symtab_and_line): New function. Attempts to
1209 determine a source file to list lines from if one is not currently
1210 defined.
1211 (get_current_source_symtab_and_line): Initialize sal.pc and
1212 sal.end fields.
1213 (set_current_source_symtab_and_line): Mark argument as const.
1214 * source.h: Update declarations and comments.
1215 * linespec.c (decode_line_1): Replace call to removed routine above.
1216 * stack.c (print_frame_info_base): Ditto.
1217 * cli/cli-cmds.c (edit_command): Ditto.
1218 (list_command): Ditto.
1219
1220 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1221
1222 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1223 sal.pc and sal.end fields.
1224 (get_current_or_default_source_symtab_and_line): Ditto.
1225 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1226 so we do not cause a new source symtab to be searched for (reverting an
1227 unintentional change from the 2002-09-20 patch).
1228 * scm-lang.c (scm_unpac): Ditto.
1229
1230 2002-09-21 Andrew Cagney <cagney@redhat.com>
1231
1232 * complaints.c (symfile_explanations): Remove new-line from
1233 ``isolated_message''.
1234 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1235 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1236
1237 2002-09-20 Nick Clifton <nickc@redhat.com>
1238
1239 * NEWS: Announce that V850EA ISA is no longer supported.
1240 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1241
1242 2002-09-20 David Carlton <carlton@math.stanford.edu>
1243
1244 * Makefile.in (c-lang.o): Correct dependencies.
1245 (utils.o): Gather dependencies.
1246 (charset.o): Move.
1247 * c-lang.c: #include "gdb_string.h"
1248
1249 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1250
1251 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1252 * cli/cli-cmds.c (list_command): New function. Implements the new
1253 cli edit command.
1254 (_init_cli_cmds): Add new command definition.
1255 * gdb.1: Document edit command.
1256 * doc/gdb.texinfo: Document edit command.
1257
1258 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1259
1260 * source.c: Make global variables current_source_symtab and
1261 current_source_line static.
1262 (list_command): Moved to cli/cli-cmds.c.
1263 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1264 (get_first_line_listed): New accessor function.
1265 (get_lines_to_list): New accessor function.
1266 (get_current_source_symtab_and_line): New function. Retrieves the
1267 position in the source code that we consider current.
1268 (get_current_or_default_source_symtab_and_line): New function.
1269 Like the above but attempts to determine a default position if one
1270 is not currently defined.
1271 (set_current_source_symtab_and_line): New function. Sets the source
1272 code position considered current and returns the previously set one.
1273 (clear_current_source_symtab_and_line): Reset stored information about
1274 a current source line.
1275 (_initialize_source): Remove registration for the "list" command and
1276 its alias.
1277 * source.h: Add declarations for the new functions above.
1278 * symtab.h: Remove declarations for the global variables mentioned
1279 above.
1280 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1281 obtain current source line.
1282 * linespec.c (decode_line_1): Ditto.
1283 * macroscope.c (default_macro_scope): Ditto.
1284 * scm-lang.c (scm_unpac): Ditto.
1285 * stack.c (print_frame_info_base): Ditto.
1286 * symfile.c (clear_symtab_users): Ditto.
1287 * symtab.c (decode_line_spec): Ditto.
1288 * cli/cli-cmds.c (list_command): Moved here from source.c.
1289 (ambiguous_line_spec): Moved here from source.c.
1290 (_init_cli_cmds): Add definition for "list" and its alias.
1291 * Makefile.in: Update dependencies.
1292
1293 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1294
1295 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1296 with what gcc thinks is correct.
1297
1298 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1299
1300 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1301 multiple register push instruction.
1302
1303 2002-09-19 Jim Blandy <jimb@redhat.com>
1304
1305 Add support for distinct host and target character sets.
1306 * charset.c, charset.h: New files.
1307 * c-exp.y: #include "charset.h".
1308 (yylex): Convert character and string literals to the target
1309 character set, before returning them as the semantic value of the
1310 token.
1311 * c-lang.c: #include "charset.h".
1312 (c_emit_char): Use charset-specific methods to recognize
1313 characters with backslash escape forms, to decide which characters
1314 to print literally and which to print using numeric escape
1315 sequences, and to convert target characters to host characters
1316 before printing.
1317 * utils.c: #include "charset.h".
1318 (no_control_char_error): New function.
1319 (parse_escape): Use charset-specific methods to recognize
1320 backslash escapes, parse `control character' notation, and convert
1321 characters from the host character set to the target character set.
1322 * configure.in: Set the default host character set.
1323 Check where to find iconv, and what its argument types might be.
1324 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1325 * Makefile.in (SFILES): List charset.c.
1326 (COMMON_OBS): List charset.o.
1327 (charset.o): New rule.
1328 (charset_h): New header dependency variable.
1329 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1330 (LIBICONV): New variable, set by configure.
1331 (CLIBS): Include $(LIBICONV) here.
1332 * aclocal.m4, config.in, configure: Regenerated.
1333
1334 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1335
1336 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1337 bison 1.35 warning.
1338
1339 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1340
1341 * gdb_mbuild.sh: New file.
1342
1343 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1344
1345 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1346
1347 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1348
1349 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1350 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1351 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1352 valops.c, value.h: Revert previous change.
1353
1354 2002-09-18 Michael Snyder <msnyder@redhat.com>
1355
1356 Preliminary support for Objective-C:
1357 * defs.h (language_objc): New enum value.
1358 (puts_filtered_tabular): Declaration only, exported from utils.c.
1359 (skip_quoted): Delete, declared in completer.h.
1360 * c-exp.y: Include completer.h.
1361 * p-exp.y: Ditto.
1362 * jv-exp.y: Ditto.
1363 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1364 New operator enum values.
1365 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1366 * language.c (binop_result_type): Handle language_objc case.
1367 (integral_type, character_type, string_type, boolean_type,
1368 structured_type, binop_type_check): Ditto.
1369 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1370 (struct objc_specific): Add to general_symbol_info.
1371 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1372 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1373 * parser-defs.h (struct objc_class_str): New struct type.
1374 (start_msglist, end_msglist, add_msglist): Declaration only,
1375 exported from objc-lang.c.
1376 * value.h (value_of_local, value_nsstring,
1377 call_function_by_hand_expecting_type): Exported from valops.c.
1378 * valops.c (find_function_addr): Export.
1379 (call_function_by_hand_expecting_type): New function.
1380 (value_of_local): New function.
1381 * symfile.c (init_filename_language_table): Add ".m" extension
1382 for Objective-C.
1383 * utils.c (puts_filtered_tabular): New function.
1384 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1385 (set/show demangle): Extend help-string to refer to ObjC.
1386 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1387 * stabsread.c (symbol_reference_defined): Objective-C symbols
1388 may contain colons: make allowances when scanning stabs strings
1389 for colons.
1390 (objc_find_colon): New function.
1391 * printcmd.c (address_info): If language == objc then print
1392 "self" instead of "this".
1393 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1394 OP_NSSTRING, and OP_SELF.
1395 (prefixify_subexp): Ditto.
1396 * source.c (print_source_lines): Mention objc in comment.
1397 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1398 method names.
1399
1400 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1401
1402 * complaints.h: Update copyright.
1403 (struct complaints): Declare.
1404 (struct complaint): Make `message' constant.
1405 (internal_complaint): Declare.
1406 (complaint): Declare.
1407 (complaint_root): Delete declaration.
1408 (symfile_complaints): Delete declaration.
1409 (struct complaints): Add opaque declaration.
1410 (clear_complaints): Add a complaints parameter.
1411 * complaints.c: Update copyright.
1412 (enum complaint_series): Define.
1413 (complaint_root): Delete.
1414 (struct complaints): Define.
1415 (complaint_sentinel, symfile_complaint_book): New variables.
1416 (symfile_explanations, symfile_complaints): New variables.
1417 New variables.
1418 (get_complaints): New function.
1419 (vcomplaint): New function.
1420 (complaint): New function.
1421 (internal_complaint): New function.
1422 (complain): Call vcomplain with symfile_complaint.
1423 (clear_complaints): Rewrite.
1424 (_initialize_complaints): Use add_setshow_command.
1425 * Makefile.in (complaints.o): Update dependencies.
1426 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1427 to call to clear_complaints.
1428 (new_symfile_objfile, reread_symbols): Ditto.
1429 (oldsyms_complaint): Delete.
1430 (empty_symtab_complaint, unknown_option_complaint): Delete.
1431 (free_named_symtabs): Use complaint instead of complain.
1432
1433 2002-09-18 Michael Snyder <msnyder@redhat.com>
1434
1435 Contributed by Apple Computer, Inc. Merged with current sources
1436 by Adam Fedor <fedor@doc.com> [cagney].
1437
1438 * objc-lang.c: First clean-up round: comments, indentation.
1439 * objc-lang.h: Ditto.
1440 * objc-lang.y: Ditto.
1441
1442 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1443
1444 * maint.c (maintenance_internal_error): Print the parameter as the
1445 error message.
1446 (maintenance_internal_warning): New function.
1447 (_initialize_maint_cmds): Add command `maint internal-warning'.
1448
1449 * defs.h (internal_warning, internal_vwarning): Declare.
1450 * utils.c (struct internal_problem): Define.
1451 (internal_vproblem): New function.
1452 (internal_warning): New function.
1453 (internal_vwarning): New function.
1454 (internal_warning_problem, internal_error_problem): New variables.
1455 (internal_verror): Just call internal_vproblem.
1456
1457 2002-09-18 Michael Snyder <msnyder@redhat.com>
1458
1459 * objc-lang.c: New file, support for Objective-C.
1460 Preliminary check-in, not yet integrated into gdb.
1461 * objc-lang.h: New file.
1462 * objc-exp.y: New file.
1463
1464 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1465
1466 * infrun.c (signal_stop_update): Convert definition to ISO C.
1467 (signal_print_update): Ditto.
1468 (signal_pass_update): Ditto.
1469 * inflow.c (terminal_save_ours): Ditto.
1470
1471 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1472 comments.
1473
1474 * config/djgpp/fnchange.lst: Handle name clashes between
1475 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1476 bfd/coff-tic80.c.
1477
1478 * i386-linux-tdep.h: Fix tipo.
1479
1480 2002-09-18 Adam Fedor <fedor@gnu.org>
1481
1482 * MAINTAINERS: Add myself to the Write After Approval list.
1483
1484 2002-09-18 Jim Blandy <jimb@redhat.com>
1485
1486 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1487 texthigh and textlow to reader-specific structs caused
1488 objfile_relocate to miss them. This is fixable, but the work that
1489 the change was supposed to prepare GDB for never got done anyway.
1490
1491 2002-09-18 David Carlton <carlton@math.stanford.edu>
1492
1493 * MAINTAINERS: Alphabetize Write After Approval list.
1494
1495 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1496
1497 Fix PR gdb/709
1498 * values.c (value_static_field): Call read_var_value.
1499
1500 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1501
1502 * valops.c (hand_function_call): Align the initial stack pointer
1503 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1504 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1505 return value.
1506 * mips-tdep.c (mips_frame_align): New function.
1507 (mips_gdbarch_init): Set frame_align.
1508 * gdbarch.sh (FRAME_ALIGN): New method.
1509 * gdbarch.h, gdbarch.c: Re-generate.
1510
1511 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1512
1513 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1514 registers.
1515
1516 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1517
1518 * NEWS: Mention that MIPS $fp behavior changed.
1519 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1520 reference to FP_REGNUM.
1521 (mipsnbsd_cannot_store_register): Ditto.
1522 * mips-linux-nat.c: Update copyright.
1523 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1524 (mips_linux_cannot_store_register): Ditto.
1525 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1526 * config/mips/tm-mips.h: Update copyright.
1527 (FP_REGNUM): Delete macro.
1528 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1529 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1530 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1531 (mips_r3041_reg_names, mips_r3051_reg_names)
1532 (mips_r3081_reg_names): Replace "fp" with "".
1533 Fix PR gdb/480.
1534
1535 2002-09-17 Theodore A. Roth <troth@verinet.com>
1536
1537 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1538 generic_read_register_dummy() (PR gdb/703).
1539 (avr_push_return_address): #if 0 out unused vars.
1540 (avr_gdbarch_init): Enable use of avr_push_return_address().
1541
1542 2002-09-17 Michael Snyder <msnyder@redhat.com>
1543
1544 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1545 RTE will take care of it.
1546
1547 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1548
1549 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1550 invalid, return SP_REGNUM.
1551
1552 2002-09-17 Michael Snyder <msnyder@redhat.com>
1553
1554 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1555 point registers without sign extension.
1556
1557 2002-09-17 Andrew Cagney <cagney@redhat.com>
1558
1559 * blockframe.c (deprecated_read_register_dummy): Rename
1560 generic_read_register_dummy.
1561 * frame.c (frame_unwind_signed_register): New function.
1562 (frame_unwind_unsigned_register): New function.
1563 * frame.h (frame_unwind_signed_register): Declare.
1564 (frame_unwind_unsigned_register): Declare.
1565 (deprecated_read_register_dummy): Rename
1566 generic_read_register_dummy.
1567
1568 * h8300-tdep.c (h8300_frame_chain): Update.
1569 (h8300_frame_saved_pc): Update.
1570 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1571 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1572 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1573 (s390_frame_chain): Update.
1574 * v850-tdep.c (v850_find_callers_reg): Update.
1575 (v850_frame_saved_pc): Update.
1576 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1577 (m32r_find_callers_reg): Update.
1578 (m32r_frame_saved_pc): Update.
1579 * sh-tdep.c (sh_find_callers_reg): Update.
1580 (sh64_get_saved_pr): Update.
1581 (sh_init_extra_frame_info): Update.
1582 (sh_init_extra_frame_info): Update.
1583 (sh64_init_extra_frame_info): Update.
1584 (sh64_init_extra_frame_info): Update.
1585 * mcore-tdep.c (mcore_find_callers_reg): Update.
1586 (mcore_frame_saved_pc): Update.
1587 (mcore_init_extra_frame_info): Update.
1588 * i386-tdep.c (i386_frame_saved_pc): Update.
1589 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1590 (ia64_init_extra_frame_info): Update.
1591 (ia64_init_extra_frame_info): Update.
1592 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1593 * cris-tdep.c (cris_init_extra_frame_info): Update.
1594 * avr-tdep.c (avr_frame_chain): Update.
1595 (avr_init_extra_frame_info): Update.
1596 (avr_frame_saved_pc): Update.
1597 * arm-tdep.c (arm_find_callers_reg): Update.
1598 (arm_init_extra_frame_info): Update.
1599 (arm_frame_saved_pc): Update.
1600
1601 2002-09-17 Tom Tromey <tromey@redhat.com>
1602
1603 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1604 is "'".
1605
1606 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1607
1608 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1609 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1610 NEXT_PROLOGUE_INSN.
1611 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1612 NEXT_PROLOGUE_INSN.
1613
1614 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1615
1616 * osfsolib.c: Remove file, replaced by solib-osf.c.
1617 * Makefile.in: Remove compilation rules for osfsolib.c.
1618
1619 2002-09-16 David Carlton <carlton@math.stanford.edu>
1620
1621 * cp-valprint.c (cp_print_class_method): Correct args to
1622 check_stub_method_group.
1623
1624 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1625
1626 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1627 `set architecture'. Unify naming convention of functions.
1628 (h8300_skip_prologue): Improve prologue analysis.
1629 (h8300_push_arguments): Rewritten to more closely match GCC's
1630 bizarre argument-passing behavior, along with the comment describing
1631 said behavior.
1632 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1633 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1634 sim, remote-e7000.c, remote-hms.c and remote.c
1635
1636 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1637
1638 * i386-tdep.c (gdb_print_insn_i386): Removed.
1639 (i386_print_insn): New function.
1640 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1641 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1642 tm_print_insn_info.
1643
1644 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1645
1646 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1647 zero.
1648
1649 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1650
1651 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1652 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1653 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1654
1655 2002-09-13 Christopher Faylor <cgf@redhat.com>
1656
1657 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1658
1659 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1660
1661 * gdbtypes.c (check_stub_method): Make static.
1662 (check_stub_method_group): New function.
1663 * gdbtypes.h: Update prototypes.
1664 * cp-support.c: New file.
1665 * cp-support.h: New file.
1666
1667 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1668 (update_method_name_from_physname): New function.
1669 (read_member_functions): Correct method names for operators
1670 and v3 constructors/destructors. Separate v2 constructors and
1671 destructors.
1672 * Makefile.in (stabsread.o): Update dependencies.
1673 (SFILES): Add cp-support.c.
1674 (COMMON_OBS): Add cp-support.o.
1675 (cp_support_h, cp-support.o): Add.
1676
1677 * cp-valprint.c (cp_print_class_method): Call
1678 check_stub_method_group instead of check_stub_method. Remove
1679 extraneous QUITs.
1680 * p-valprint.c (pascal_object_print_class_method): Likewise.
1681 * valops.c (search_struct_method): Likewise.
1682 (find_method_list, value_struct_elt_for_reference): Likewise.
1683
1684 2002-09-13 Andrew Cagney <cagney@redhat.com>
1685
1686 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1687 * gdbarch.h, gdbarch.c: Regenerate.
1688
1689 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1690
1691 * frame.c (find_saved_register): Delete function.
1692 * frame.h (find_saved_register): Delete declaration.
1693 Fix PR gdb/631.
1694
1695 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1696
1697 * mips-tdep.c (read_next_frame_reg): Re-hack using
1698 frame_register_unwind.
1699
1700 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1701
1702 * mips-tdep.c (mips_get_saved_register): Re-hack using
1703 frame_register_unwind.
1704
1705 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1706
1707 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1708 vector. Will be useful for Interix.
1709 * gdbarch.h, gdbarch.c: Regenerate.
1710
1711 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1712 name of the malloc function by NAME_OF_MALLOC.
1713
1714 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1715
1716 * value.h (find_function_in_inferior): Add const keyword to
1717 one of the parameters. Allows us to invoke this function with
1718 a const char *.
1719 * valops.c (find_function_in_inferior): Likewise.
1720
1721 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1722
1723 * exec.c (xfer_memory): Fix compilation warning with old versions
1724 of GCC.
1725 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1726
1727 2002-09-12 David Carlton <carlton@math.stanford.edu>
1728
1729 * symtab.h: Run through gdb_indent.h.
1730 Add 2002 to Copyright year list.
1731
1732 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1733
1734 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1735 mach constants.
1736 * MAINTAINERS: Add myself to write after approval list.
1737
1738 2002-09-11 J. Brobecker <brobecker@gnat.com>
1739
1740 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1741
1742 2002-09-11 J. Brobecker <brobecker@gnat.com>
1743
1744 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1745 Interix.
1746
1747 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1748
1749 * procfs.c (do_detach): Clear current signal, not just fault.
1750 Corrects problem with breakpoint trap signal leaking to detached
1751 process on Tru64.
1752
1753 2002-09-10 Michael Snyder <msnyder@redhat.com>
1754
1755 * buildsym.c (finish_block): Protect against null pointer.
1756
1757 2002-09-10 Andrew Cagney <cagney@redhat.com>
1758
1759 * infcmd.c (default_print_registers_info): Send all output to
1760 ``file'' instead of ``gdb_stdout''.
1761
1762 2002-09-10 Michael Snyder <msnyder@redhat.com>
1763
1764 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1765 LONGEST, and use signed register read (addresses are sign-
1766 extended for mips).
1767
1768 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1769
1770 * event-loop.c (gdb_do_one_event): Make public.
1771 * event-loop.h (gdb_do_one_event): Declare.
1772
1773 2002-09-10 Jeff Law <law@redhat.com>
1774
1775 * infttrace.c (child_resume): Simplify and rework to avoid
1776 TT_PROC_CONTINUE.
1777
1778 2002-09-09 Fred Fish <fnf@intrinsity.com>
1779
1780 * printcmd.c (print_scalar_formatted): "len" is the number of
1781 target bytes, NOT the number of target bits.
1782
1783 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1784
1785 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1786 * top.c (init_main): Set rl_terminal_name.
1787
1788 2002-09-08 Aidan Skinner <aidan@velvet.net>
1789
1790 * ada-lang.c (ada_array_bound, ada_type_match,
1791 _initialize_ada_language): Fix K&R definitions.
1792 * ada-tasks.c (get_current_task): Fix K&R definitions.
1793 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1794
1795 2002-09-07 Christopher Faylor <cgf@redhat.com>
1796
1797 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1798 Add XP.
1799
1800 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1801
1802 * i386-tdep.c (i386_register_virtual_type,
1803 i386_register_convertible, i386_register_convert_to_virtual,
1804 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1805 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1806 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1807 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1808 Don't set push_arguments twice.
1809
1810 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1811 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1812 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1813 sigtramp_end to NULL.
1814 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1815 defines.
1816 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1817
1818 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1819 whitespace.
1820
1821 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1822 * gdbarch.h, gdbarch.c: Re-generate.
1823 * blockframe.c (find_pc_sect_partial_function): Convert to use
1824 SIGTRAMP_START_P predicate.
1825
1826 2002-09-05 Michael Snyder <msnyder@redhat.com>
1827
1828 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1829 generic_dummy_frame method and old method. Also distinguish
1830 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1831 (arm_extract_return_value): Use new regcache method.
1832
1833 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1834 adjustment that doesn't conform to the ABI.
1835 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1836 saved regcache, not from current regcache.
1837
1838 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1839
1840 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1841 * README: Update.
1842
1843 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1844
1845 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1846 if arm_apcs_32 is false.
1847
1848 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1849
1850 GDB 5.3 branch created.
1851
1852 2002-09-03 Theodore A. Roth <troth@verinet.com>
1853
1854 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1855 generic_unwind_get_saved_register.
1856
1857 2002-09-03 David Carlton <carlton@math.stanford.edu>
1858
1859 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1860 argument (PR gdb/653). Update call to smash_to_method_type.
1861 (read_structure_scope): Update call to dwarf2_add_member_fn.
1862
1863 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1864
1865 * x86-64-linux-tdep.c: Include gdb_string.h
1866 * x86-64-linux-nat.c: Ditto.
1867
1868 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1869
1870 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1871 when YYDEBUG is set to 1.
1872 * c-exp.y: Likewise.
1873 * f-exp.y: Likewise.
1874 * jv-exp.y: Likewise.
1875 * m2-exp.y: Likewise.
1876 * p-exp.y: Likewise.
1877
1878 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1879
1880 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1881 dependency list.
1882 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1883 solib_svr4_fetch_link_map_offsets to
1884 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1885 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1886 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1887 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1888 solib-svr4.o, and solib-legacy.o.
1889 * config/i386/tm-nbsd.h: Include solib.h.
1890
1891 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1892
1893 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1894 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1895 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1896 comment noting that this needs its own target configuration.
1897 * config/i386/nbsd.mt: New file.
1898 * config/i386/nbsdaout.mt: Remove.
1899 * config/i386/nbsdelf.mt: Ditto.
1900 * config/i386/tm-nbsdaout.h: Ditto.
1901
1902 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1903
1904 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1905 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1906 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1907 tdep->sigtramp_end.
1908 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1909 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1910 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1911
1912 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1913
1914 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1915 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1916 * i386-tdep.h (i386bsd_init_abi): New prototype.
1917 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1918 function declaration.
1919 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1920 for NetBSD-a.out or NetBSD-ELF.
1921 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1922 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1923 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1924 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1925 and nbsd-tdep.h.
1926 (i386nbsd_pc_in_sigtramp): New function.
1927 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1928 i386nbsd_pc_in_sigtramp.
1929 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1930 and i386nbsdelf_init_abi OS ABI handlers.
1931 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1932 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1933
1934 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1935
1936 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1937 registers if the target really has them.
1938
1939 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1940
1941 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1942 than nbsd-tdep.h.
1943
1944 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1945
1946 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1947 list.
1948 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1949 (alphanbsd_skip_sigtramp_frame): New functions.
1950 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1951 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1952 to alphanbsd_sigcontext_addr.
1953
1954 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1955
1956 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1957 list.
1958 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1959 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1960 nbsd_pc_in_sigtramp.
1961 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1962 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1963 * nbsd-tdep.c: Include gdb_string.h.
1964 (nbsd_pc_in_sigtramp): New function.
1965 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1966 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1967 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1968 ppcnbsd_pc_in_sigtramp.
1969 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1970 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1971 shnbsd_pc_in_sigtramp.
1972 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1973 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1974 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1975
1976 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1977
1978 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1979 watchpoints to NULL.
1980 (insert_breakpoints): set val field of watchpoints if NULL.
1981
1982
1983 2002-08-29 Jim Blandy <jimb@redhat.com>
1984
1985 * symtab.c (lookup_symbol_aux): In the cases where we find a
1986 minimal symbol of an appropriate name and use its address to
1987 select a symtab to read and search, use `name' (as passed to us)
1988 as the demangled name when searching the symtab's global and
1989 static blocks, not the minsym's name.
1990
1991 2002-08-29 Keith Seitz <keiths@redhat.com>
1992
1993 * stack.c (print_frame_info_base): Always set current_source_symtab
1994 and current_source_line.
1995
1996 2002-08-29 Donn Terry <donnte@microsoft.com>
1997
1998 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1999
2000 2002-08-28 Keith Seitz <keiths@redhat.com>
2001
2002 * stack.c (select_frame): Add FIXME concerning selected-frame
2003 events.
2004 (select_frame_command): Send selected-frame-level-changed
2005 event notification, but only if the level actually changed.
2006 (up_silently_base): Add selected-frame-level-changed event
2007 notification.
2008 (down_silently_base): Likewise.
2009
2010 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2011
2012 * Makefile.in: Update dependencies for all gdb/*.c files.
2013
2014 2002-08-27 Tom Tromey <tromey@redhat.com>
2015
2016 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2017 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2018 Update dependencies.
2019 * i387-tdep.c: Include gdb_string.h.
2020 * osabi.c: Likewise.
2021 * i386-linux-nat.c: Likewise.
2022 * lin-lwp.c: Likewise.
2023 * ax-gdb.c: Likewise.
2024 * signals/signals.c: Likewise.
2025 * jv-valprint.c: Likewise.
2026 * p-lang.c: Likewise.
2027 * c-valprint.c: Likewise.
2028 * cp-abi.c: Likewise.
2029
2030 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2031
2032 * cli/cli-script.h (copy_command_lines): Export.
2033 * breakpoint.c: Include cli/cli-script.h.
2034 * Makefile.in (breakpoint.o): Update dependencies.
2035
2036 2002-08-26 Michael Snyder <msnyder@redhat.com>
2037
2038 * breakpoint.c (insert_breakpoints): Protect all references
2039 to 'process_warning'. Shorten long lines.
2040
2041 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2042
2043 * cli/cli-script.c (copy_command_lines): New function.
2044 * defs.h (copy_command_lines): Export.
2045 * testsuite/gdb.base/commands.exp: New tests for commands
2046 attached to a temporary breakpoint, and for commands that
2047 delete the breakpoint they are attached to.
2048
2049 2002-08-26 Michael Snyder <msnyder@redhat.com>
2050
2051 * breakpoint.c (bpstat_stop_status): Instead of copying the
2052 pointer to the breakpoint commands struct, make a new copy
2053 of the struct and point to that.
2054 (bpstat_clear): Free the commands struct.
2055 (bpstat_clear_actions): Free the commands struct.
2056 (bpstat_do_actions): Free the command actions. Also execute
2057 the local cleanups, instead of deleting them.
2058 (delete_breakpoint): Leave the commands field of the bpstat
2059 chain alone -- it will be freed later.
2060
2061 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2062
2063 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2064 deleted in 2002-08-20 commit. This function is still used by
2065 ppc-linux-nat.c.
2066
2067 2002-08-26 Keith Seitz <keiths@redhat.com>
2068
2069 * gdb-events.sh: Add selected-frame-level-changed event.
2070 * gdb-events.c: Regenerated.
2071 * gdb-events.h: Regenerated.
2072
2073 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2074
2075 Fix PR gdb/393:
2076 * inflow.c (terminal_save_ours): New function to save terminal
2077 settings.
2078 * inferior.h (terminal_save_ours): Declare.
2079 * target.c (debug_to_terminal_save_ours): New function.
2080 (cleanup_target): Defaults to_terminal_save_ours.
2081 (update_current_target): Inherit to_terminal_save_ours.
2082 (setup_target_debug): Set to_terminal_save_ours.
2083 * target.h (target_terminal_save_ours): New to save terminal settings.
2084 (target_ops): New member to_terminal_save_ours.
2085 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2086 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2087 * inftarg.c (init_child_ops): Likewise.
2088 * m3-nat.c (init_m3_ops): Likewise.
2089 * procfs.c (init_procfs_ops): Likewise.
2090 * wince.c (init_child_ops): Likewise.
2091 * win32-nat.c (init_child_ops): Likewise.
2092 * sol-thread.c (init_sol_thread_ops): Likewise.
2093
2094 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2095
2096 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2097 use regcache_* functions.
2098 (i386_gdbarch_init): Set store_return_value instead of
2099 deprecated_store_return_value.
2100
2101 * regcache.c (regcache_raw_write_signed,
2102 regcache_raw_write_unsigned): New functions.
2103 * regcache.h (regcache_raw_write_signed,
2104 regcache_raw_write_unsigned): New prototypes.
2105
2106 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2107
2108 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2109 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2110 source file dependencies. Cleanup corresponding generator rules.
2111
2112 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2113
2114 * regcache.h (register_offset_hack): Declare.
2115 (regcache_cooked_read_using_offset_hack): Declare.
2116 (regcache_cooked_write_using_offset_hack): Declare.
2117
2118 * regcache.c (register_offset_hack): New function.
2119 (regcache_cooked_read_using_offset_hack): New function.
2120 (regcache_cooked_write_using_offset_hack): New function.
2121 (regcache_dump): Check that the registers, according to their
2122 offset, are packed hard against each other.
2123 (cooked_xfer_using_offset_hack): New function.
2124
2125 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2126
2127 * regcache.c (struct regcache_descr): Add field register_type.
2128 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2129 in as a parameter
2130 (init_regcache_descr): Initialize register_type. Pass the descr
2131 to init_legacy_regcache_descr. Use register_type instead of
2132 REGISTER_VIRTUAL_TYPE.
2133 (register_type): New function.
2134 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2135 * regcache.h (register_type): Declare.
2136
2137 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2138
2139 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2140 instead of deprecated_store_return_value. Fix fallout from
2141 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2142
2143 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2144
2145 * regcache.c (max_register_size): New function.
2146 (init_legacy_regcache_descr): Ensure that max_register_size is
2147 large enough for REGISTER_VIRTUAL_SIZE.
2148 * regcache.h (max_register_size): Declare.
2149
2150 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2151
2152 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2153 store_return_value.
2154 (e500_extract_return_value): Change type of valbuf pointer to
2155 void.
2156
2157 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2158
2159 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2160 workaround.
2161
2162 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2163 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2164 long long) to prevent compiler warning on 64-bit systems.
2165
2166 2002-08-23 Andrew Cagney <cagney@redhat.com>
2167
2168 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2169 (DEPRECATED_STORE_RETURN_VALUE): New method.
2170 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2171 * gdbarch.h, gdbarch.c: Re-generate.
2172
2173 * values.c (set_return_value): Pass current_regcache to
2174 STORE_RETURN_VALUE.
2175 * arch-utils.h (legacy_store_return_value): Declare.
2176 * arch-utils.c (legacy_store_return_value): New function.
2177 (legacy_extract_return_value): Update parameters.
2178
2179 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2180 STORE_RETURN_VALUE.
2181 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2182 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2183 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2184 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2185 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2186 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2187 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2188 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2189 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2190 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2191
2192 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2193 * i386-tdep.c (i386_extract_return_value): Update.
2194 * arch-utils.c (legacy_extract_return_value): Update.
2195 * frv-tdep.c (frv_gdbarch_init): Update.
2196 * cris-tdep.c (cris_gdbarch_init): Update.
2197 * d10v-tdep.c (d10v_gdbarch_init): Update.
2198 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2199 * m68k-tdep.c (m68k_gdbarch_init): Update.
2200 * mcore-tdep.c (mcore_gdbarch_init): Update.
2201 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2202 * s390-tdep.c (s390_gdbarch_init): Update.
2203 * sparc-tdep.c (sparc_gdbarch_init): Update.
2204 * sh-tdep.c (sh_gdbarch_init): Update.
2205 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2206 * v850-tdep.c (v850_gdbarch_init): Update.
2207 * avr-tdep.c (avr_gdbarch_init): Update.
2208 * ia64-tdep.c (ia64_gdbarch_init): Update.
2209 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2210 * vax-tdep.c (vax_gdbarch_init): Update.
2211 * alpha-tdep.c (alpha_gdbarch_init): Update.
2212 * arm-tdep.c (arm_gdbarch_init): Update.
2213 * mips-tdep.c (mips_gdbarch_init): Update.
2214 * i386-tdep.c (i386_gdbarch_init): Update.
2215
2216 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2217
2218 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2219 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2220
2221 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2222
2223 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2224 problems.
2225
2226 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2227
2228 * infrun.c (handle_inferior_event): Move a comment outside of a
2229 function call, in order to avoid indent reformatting this part
2230 of the code in an unreadable way.
2231
2232 2002-08-23 Grace Sainsbury <graces@redhat.com>
2233
2234 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2235 when breakpoints fail. Move general breakpoint error messages to
2236 insert_breakpoints.
2237 * breakpoint.c (insert_breakpoints): Change warnings when
2238 breakpoints are nto inserted to specify the type. Remove call to
2239 memory_error when hardware breakpoints can't be inserted. Remove
2240 multiple calls to warning so all messages are sent to the user at
2241 once.
2242 (delete_breakpoints): Make insert error messsages more explicit.
2243
2244 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2245
2246 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2247 gdbserver/ChangeLog.
2248
2249 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2250
2251 * i386-tdep.c: Include "objfiles.h".
2252 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2253 skip_trampoline_code.
2254 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2255 (CPLUS_MARKER): Define to '.'.
2256
2257 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2258 member.
2259 (linux_corefile_thread_callback): Increase args->num_notes.
2260 (linux_make_note_section): Initialize thread_args.num_notes, and
2261 use it to determine whether notes for any threads were created.
2262
2263 2002-08-23 Donn Terry <donnte@microsoft.com>
2264
2265 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2266 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2267 and PCUNKILL.
2268 (write_with_trace): Conditionalize out the switch branch handling
2269 PCSHOLD if the corresponding macro is not defined. Likewise for
2270 PRSABORT and PRSTOP.
2271 This change will be needed by the Interix port.
2272
2273 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2274
2275 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2276 write_register wherever possible instead of manipulating the
2277 register bytes directly.
2278 Assign VALUE_CONTENTS to a variable and use that.
2279 The GPR numbers are now dependent on the architecture.
2280
2281 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2282
2283 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2284 ev_offset fields.
2285 (skip_prologue): Add support for BookE/e500 instructions.
2286 (e500_extract_return_value): New function.
2287 (frame_get_saved_regs): Add support for saving ev registers and
2288 pseudo gpr's.
2289 (e500_store_return_value): New function.
2290 (rs6000_gdbarch_init): Move up default intializations of
2291 deprecated_extract_return_value and store_return_value. Overwrite
2292 init of store_return_value with e500 specific version.
2293 Set extract_return_value for e500.
2294
2295 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2296
2297 * blockframe.c (generic_call_dummy_register_unwind): Use
2298 regcache_cooked_read to catch cases in which the variable is
2299 stored in a pseudo register.
2300
2301 2002-08-22 Andrew Cagney <cagney@redhat.com>
2302
2303 * NEWS: Mention that the i960 has been made obsolete.
2304 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2305 i960-tdep.c
2306 (remote-nrom.o): Obsolete target.
2307 (remote-nindy.o, i960-tdep.o): Ditto.
2308 * remote-nrom.c: Make file obsolete.
2309 * remote-nindy.c, remote-vx960.c: Ditto.
2310 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2311 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2312 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2313 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2314 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2315 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2316 i960-*-vxworks* obsolete.
2317 * MAINTAINERS: Note that the i960 is obsolete.
2318
2319 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2320
2321 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2322 detach to allow reinitialization.
2323
2324 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2325
2326 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2327 attempt).
2328
2329 2002-08-22 Jim Blandy <jimb@redhat.com>
2330
2331 * coffread.c (coff_symfile_read): Don't try to read the line
2332 number table from disk if the image file doesn't have a symbol
2333 table; we'll never actually look at the info anyway, and Windows
2334 ships DLL's with bogus file offsets for the line number data.
2335
2336 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2337
2338 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2339 an e500 executable.
2340
2341 2002-08-21 Michael Snyder <msnyder@redhat.com>
2342
2343 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2344 (MSYMBOL_SIZE): Replace macro with function.
2345 (DEFAULT_MIPS_TYPE): Delete unused macro.
2346 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2347 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2348
2349 2002-08-21 Jim Blandy <jimb@redhat.com>
2350
2351 * valops.c (value_cast): Simplify and correct logic for doing a
2352 static cast from a pointer to a base class to a pointer to a
2353 derived class.
2354
2355 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2356
2357 * infcmd.c (default_print_registers_info): Replace
2358 do_registers_info.
2359 (registers_info): Use gdbarch_print_registers_info instead of
2360 DO_REGISTERS_INFO.
2361 * inferior.h (default_print_registers_info): Replace
2362 do_registers_info.
2363 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2364 (DO_REGISTERS_INFO): Change to a predicate function.
2365 * gdbarch.h, gdbarch.c: Regenerate.
2366
2367 2002-08-21 Keith Seitz <keiths@redhat.com>
2368
2369 * gdb-events.sh: Add target-changed event.
2370 * gdb-events.c: Regenerated.
2371 * gdb-events.c: Regenerated.
2372 * valops.c (value_assign): Add target-changed event notification
2373 to inlval_register, lval_memory, and lval_reg_frame_relative.
2374
2375 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2376
2377 * NEWS: Add an entry regarding the improvement of the next/step
2378 operation on Alpha Tru64 multi-processor machines.
2379
2380 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2381
2382 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2383 directores.
2384 * Makefile.in: Update all _h macro definitions.
2385 * Makefile.in (install-gdbtk): Move to install section.
2386 (rdi-share/libangsd.a): Move to end of file.
2387
2388 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2389
2390 * frame.c (frame_register_unwind): When a register, set addrp to
2391 the register's byte.
2392
2393 2002-08-20 Michael Snyder <msnyder@redhat.com>
2394
2395 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2396 used locally, so move them from the target machine header to here.
2397 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2398 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2399 Make static.
2400 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2401
2402 2002-08-20 Andrew Cagney <cagney@redhat.com>
2403
2404 * NEWS: Mention that the Apollo line was made obsolete.
2405 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2406 m68*-hp-hpux* obsolete.
2407 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2408 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2409 * buildsym.c (make_blockvector): Make static.
2410 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2411 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2412 (ALLDEPFILES): Remove dstread.c.
2413 (dstread.o): Obsolete make rule.
2414 * dstread.c: Makefile obsolete.
2415 * dst.h: Ditto.
2416 * config/m68k/hp300hpux.mt: Ditto.
2417 * config/m68k/hp300hpux.mh: Ditto.
2418 * config/m68k/hp300bsd.mt: Ditto.
2419 * config/m68k/hp300bsd.mh: Ditto.
2420 * config/m68k/apollo68b.mt: Ditto.
2421 * config/m68k/apollo68v.mh: Ditto.
2422 * config/m68k/apollo68b.mh: Ditto.
2423
2424 2002-08-20 Michael Snyder <msnyder@redhat.com>
2425
2426 * mips-tdep.c (mips_in_return_stub): Make static.
2427 (mips_gdbarch_init): Set in_solib_return_trampoline.
2428 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2429
2430 2002-08-20 Michael Snyder <msnyder@redhat.com>
2431
2432 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2433 * gdbarch.c, gdbarch.h: Regenerate.
2434 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2435 Add.
2436 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2437
2438 2002-08-20 Michael Snyder <msnyder@redhat.com>
2439
2440 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2441 (mips_gdbarch_init): Set skip_trampoline_code,
2442 in_solib_call_trampoline.
2443 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2444 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2445
2446 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2447
2448 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2449
2450 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2451 vector type for ev registers.
2452 (e500_pseudo_register_read): New function.
2453 (e500_pseudo_register_write): New function.
2454 (e500_dwarf2_reg_to_regnum): New function.
2455 (PPC_UISA_NOFP_SPRS): New macro.
2456 (PPC_EV_REGS): New macro.
2457 (PPC_GPRS_PSEUDO_REGS): New macro.
2458 (registers_e500): New register set for e500.
2459 (variants): Add e500 variant.
2460 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2461 before setting architectural dependent variations. Initialize ev
2462 registers numbers. Add case for e500 architecture. Set the
2463 number of pseudo registers.
2464
2465 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2466
2467 * rs6000-tdep.c: Clean up comments.
2468
2469 2002-08-20 Andrew Cagney <cagney@redhat.com>
2470
2471 * h8300-tdep.c: Re-indent file.
2472
2473 2002-08-20 Jim Blandy <jimb@redhat.com>
2474
2475 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2476 default for this.
2477
2478 2002-08-20 Keith Seitz <keiths@redhat.com>
2479
2480 * breakpoints.c (watch_command_1): Use internal breakpoint
2481 when setting a watchpoint_scope breakpoint.
2482
2483 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2484
2485 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2486 (build_builtin_type_vec64i): Ditto.
2487 (build_builtin_type_vec128): Ditto.
2488 (build_builtin_type_vec128i): Ditto.
2489
2490 2002-08-19 Michael Snyder <msnyder@redhat.com>
2491
2492 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2493 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2494 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2495 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2496 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2497 CALL_DUMMY_ADDRESS): Delete.
2498 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2499 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2500 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2501 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2502 push_return_address.
2503 (mips_register_raw_size, mips_eabi_use_struct_convention,
2504 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2505 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2506 mips_init_extra_frame_info, mips_eabi_push_arguments,
2507 mips_n32n64_push_arguments, mips_push_return_address,
2508 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2509 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2510
2511 2002-08-19 Michael Snyder <msnyder@redhat.com>
2512
2513 * mips-tdep.c (mips_frame_num_args): New function.
2514 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2515 frame_saved_pc, frame_args_address, frame_locals_address,
2516 frame_num_args, and frame_args_skip.
2517 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2518 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2519 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2520 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2521
2522 2002-08-20 Michael Snyder <msnyder@redhat.com>
2523
2524 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2525 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2526 * mips-tdep.c (mips_store_struct_return): New function.
2527 (mips_extract_struct_value_address): New function.
2528 (mips_gdbarch_init): Set store_struct_return and
2529 extract_struct_value_address.
2530
2531 2002-08-20 David Carlton <carlton@math.stanford.edu>
2532
2533 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2534 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2535 (read_file_scope): Check that line_header is nonzero before
2536 decoding macro information.
2537
2538 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2539
2540 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2541 flag the general-purpose registers as floating-point on targets
2542 that don't support the floating-point registers.
2543
2544 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2545
2546 * rs6000-tdep.c (altivec_register_p): Delete.
2547 (rs6000_do_altivec_registers): Delete.
2548 (rs6000_altivec_registers_info): Delete.
2549 (rs6000_do_registers_info): Delete.
2550 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2551 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2552
2553 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2554
2555 * infcmd.c (do_registers_info): Print vector registers in hex
2556 format only.
2557 (print_vector_info): Check that printing registers
2558 makes sense.
2559 (print_float_info): Ditto.
2560
2561 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2562
2563 * mips-tdep.c (mips_gdbarch_init): Update.
2564 (mips_o32_extract_return_value): Rewrite.
2565 (mips_o32_store_return_value): Rewrite.
2566 (mips_o32_xfer_return_value): New function.
2567 (mips_xfer_register): Tweak debug print message. Allow for
2568 buf_offset when dumping the value transfered.
2569
2570 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2571
2572 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2573 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2574 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2575 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2576 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2577
2578 2002-08-14 Michael Snyder <msnyder@redhat.com>
2579
2580 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2581
2582 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2583
2584 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2585 register.
2586 (P): New macro to define a register as a pseudo register.
2587 (R, R4, R8, R16, FR32, R64, R0): Updated.
2588 (struct variant): Add new fields for number of pseudo registers
2589 and number of total registers.
2590 (tot_num_registers): New macro replacing....
2591 (num_registers): ...deleted macro.
2592 (num_registers): New function.
2593 (num_pseudo_registers): New function.
2594 (variants): Update all variants to intialize new fields correctly.
2595 Postpone initialization of number of pseudo regs and real regs.
2596 (init_variants): New function.
2597 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2598 registers offsets.
2599
2600 2002-08-19 David Carlton <carlton@math.stanford.edu>
2601
2602 * valops.c (search_struct_field): Change error message to treat
2603 return value of 0 from value_static_field as meaning that field is
2604 optimized out.
2605 (value_struct_elt_for_reference): Ditto.
2606 * values.c (value_static_field): Treat an unresolved location the
2607 same as a nonexistent symbol. Fix PR gdb/635.
2608 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2609 enclosed. Fix PR gdb/574.
2610 * MAINTAINERS: Add self to Write After Approval list.
2611
2612 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2613
2614 * mips-tdep.c (mips_xfer_register): New function.
2615 (mips_n32n64_extract_return_value): Rewrite.
2616 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2617 instead of deprecated_extract_return_value.
2618
2619 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2620
2621 * rs6000-tdep.c (TDEP): Delete macro.
2622 (branch_dest): Replace use of TDEP macro with its body.
2623 (rs6000_pop_frame): Ditto.
2624 (rs6000_push_arguments): Ditto.
2625 (rs6000_skip_trampoline_code): Ditto.
2626 (rs6000_frame_saved_pc): Ditto.
2627 (rs6000_frame_chain): Ditto.
2628 (rs6000_register_name): Ditto.
2629 (rs6000_register_byte): Ditto.
2630 (rs6000_register_raw_size): Ditto.
2631 (rs6000_register_virtual_type): Ditto.
2632 (rs6000_register_convertible): Ditto.
2633 (rs6000_convert_from_func_ptr_addr): Ditto.
2634
2635 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2636
2637 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2638 conditionally.
2639 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2640 MIPS_LINUX_JB_ELEMENT_SIZE.
2641 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2642 for MAX_REGISTER_RAW_SIZE arrays.
2643 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2644 MIPS_LINUX_JB_ELEMENT_SIZE.
2645
2646 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2647
2648 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2649
2650 2002-08-19 Aidan Skinner <aidan@velvet.net>
2651
2652 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2653 ada-valprint.c ada-tasks.c.
2654 (YYFILES): Add ada-exp.y.
2655 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2656 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2657 (ada-exp.tab.o): New target.
2658
2659 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2660
2661 * regcache.c (regcache_xfer_part): New function.
2662 (regcache_raw_read_part): New function.
2663 (regcache_raw_write_part): New function.
2664 (regcache_cooked_read_part): New function.
2665 (regcache_cooked_write_part): New function.
2666 * regcache.h (regcache_raw_read_part): Declare.
2667 (regcache_raw_write_part): Declare.
2668 (regcache_cooked_read_part): Declare.
2669 (regcache_cooked_write_part): Declare.
2670
2671 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * remote.c (remote_open_1): Add async_p.
2674 (remote_async_open_1): Delete.
2675 (open_remote_target): Delete.
2676 (remote_open, extended_remote_open): Update calls to remote_open_1.
2677 (remote_async_open, extended_remote_async_open): Call
2678 remote_open_1 instead of remote_async_open_1.
2679
2680 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2681
2682 * blockframe.c: Fix a few coding standard violations.
2683
2684 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2685
2686 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2687 here from ...
2688 * config/i386/tm-i386sco5.h: ... here. File removed.
2689 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2690
2691 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2692 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2693 (TM_FILE): Set to tm-i386.h.
2694 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2695 * config/i386/tm-i386v.h: Remove file.
2696 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2697 instead of "i386/tm-i386v.h".
2698 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2699 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2700 "i386/tm-i386v.h".
2701 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2702 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2703 "i386/tm-i386.h".
2704
2705 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2706
2707 * config/i386/nm-i386v.h: Add protection against
2708 multiple-inclusion.
2709 (i386_register_u_addr): Remove prototype.
2710 (register_u_addr): New prototype.
2711 (REGISTER_U_ADDR): Redefine accordingly.
2712 * i386v-nat.c: Improve several comments.
2713 (i386_register_u_addr): Change signature and rename to
2714 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2715 ubase variable.
2716
2717 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2718
2719 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2720 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2721 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2722 deprecated_extract_return_value.
2723 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2724 rename mips_o32o64_push_arguments.
2725 (mips_gdbarch_init): Update.
2726 (mips_extract_return_value): Delete.
2727 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2728 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2729 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2730 (mips_n32n64_extract_return_value): Clone
2731 mips_extract_return_value.
2732 (mips_store_return_value): Delete.
2733 (mips_o32_store_return_value): Clone mips_store_return_value.
2734 (mips_o64_store_return_value): Clone mips_store_return_value.
2735 (mips_eabi_store_return_value): Clone mips_store_return_value.
2736 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2737
2738 2002-08-18 Aidan Skinner <aidan@velvet.net>
2739
2740 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2741 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2742
2743 2002-08-18 Aidan Skinner <aidan@velvet.net>
2744
2745 * ada-lang.c: Run through gdb_indent.sh.
2746 * ada-lang.h: Run through gdb_indent.sh.
2747 * ada-tasks.c: Run through gdb_indent.sh.
2748 * ada-typeprint.c: Run through gdb_indent.sh.
2749 * ada-valprint.c: Run through gdb_indent.sh.
2750
2751 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2752
2753 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2754 ABI.
2755
2756 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2757
2758 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2759
2760 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2761 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2762
2763 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2764 write_register_gen instead of write_register_bytes.
2765
2766 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2767 i[3456]-*-osf1mk* configurations have been made obsolete.
2768 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2769 i[3456]86-*-osf1mk* hosts obsolete.
2770 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2771 targets obsolete.
2772 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2773 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2774 config/i386/i386m3.mt, config/i386/nm-m3.h,
2775 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2776 config/i386/i386mk.mh, config/i386/i386mk.mt,
2777 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2778 obsolete.
2779 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2780 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2781 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2782
2783 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2784
2785 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2786 (hppa_value_returned_from_stack): Declare.
2787 (hppa_extract_return_value): Declare.
2788 * config/pa/hppa.mt: New file.
2789 * configure.tgt: Recognize hppa*-*-*.
2790 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2791
2792 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2793
2794 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2795 comment.
2796
2797 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2798
2799 * top.c (gdb_rl_operate_and_get_next): Make sure
2800 operate-and-get-next functions correctly even when the history
2801 list is completely filled.
2802
2803 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2804
2805 * MAINTAINERS (Target Instruction Set Architectures): Rename
2806 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2807 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2808 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2809 already listed under Host/Native.
2810
2811 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2812 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2813 mips*-*-*.
2814
2815 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2816
2817 * config/ia64/ia64.mt: New file.
2818 * config/alpha/alpha.mt: New file.
2819 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2820 ia64-linux-gnu. Mention that ia64-elf is broken.
2821 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2822
2823 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2824
2825 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2826 generic_func_frame_valid instead of func_frame_valid.
2827
2828 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2829
2830 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2831 procfs appears to be broken when debugging on multi-processor
2832 machines. So enable software single stepping in order to avoid
2833 using the procfs interface to do next/step operations, using
2834 internal breakpoints instead.
2835
2836 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2837 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2838 make this pc address equal to the value it would have if the
2839 system stepping capability was used. Also set a new flag used
2840 to ensure that we don't readjust the PC one more time later.
2841
2842 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2843 address by DECR_PC_AFTER_BREAK when software single step is
2844 in use for this architecture, as this has already been taken
2845 care of in handle_inferior_event().
2846
2847 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2848
2849 * infrun.c (handle_inferior_event): Minor reformatting, to make
2850 a rather long condition expression easier to read.
2851
2852 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2853
2854 * Makefile.in (gdbtk.o): Move to end of file.
2855 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2856 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2857 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2858 (gdbtk-wrapper.o, gdbres.o): Ditto.
2859
2860 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2861
2862 * Makefile.in (copying.o): Separate out compile rule.
2863 (hpux-thread.o, procfs.o, signals.o): Ditto.
2864 (v850ice.o, z8k-tdep.o): Ditto.
2865 (tui-file.o): Move to TUI section.
2866 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2867 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2868
2869 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2870
2871 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2872 skip_trampoline_code, for better namespace-proofing.
2873
2874 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2875
2876 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2877
2878 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2879
2880 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2881
2882 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2883 signal, check whether we hit a breakpoint before checking for a
2884 single step breakpoint. Otherwise, GDB fails to notice that a
2885 breakpoint has been hit when stepping onto a breakpoint.
2886
2887 2002-08-16 Keith Seitz <keiths@redhat.com>
2888
2889 * gdb-events.sh (clear_gdb_event_hooks): New function.
2890 * gdb-events.c: Regenerate.
2891 * gdb-events.h: Regenerate.
2892
2893 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2894
2895 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2896 not_a_sw_breakpoint.
2897 * breakpoint.h (bpstat_stop_status): Add parameter names.
2898
2899 2002-08-16 Grace Sainsbury <graces@redhat.com>
2900
2901 * remote.c (remote_insert_hw_breakpoint)
2902 (remote_remove_hw_breakpoint): Fix calculation of length field
2903 for Z-packet.
2904
2905 2002-08-15 Michael Snyder <msnyder@redhat.com>
2906
2907 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2908 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2909 (supply_fpregset): Ditto.
2910
2911 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2912 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2913 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2914 (TARGET_READ_SP): Delete.
2915 (DO_REGISTERS_INFO): Delete.
2916 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2917 Delete.
2918 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2919 from macros to functions.
2920
2921 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2922 (mips_register_convertible, mips_register_convert_to_virtual,
2923 mips_register_convert_to_raw): Make static.
2924 (mips_read_sp): New function.
2925 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2926 (mips_do_registers_info): Make static.
2927 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2928 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2929 (mips_register_convert_from_type, mips_register_convert_to_type):
2930 New functions.
2931 (mips_gdbarch_init): Set up function_start_offset,
2932 register_virtual_size, pc_in_sigtramp.
2933
2934 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2935
2936 * infcmd.c (vector_info): New function.
2937 (_initialize_infcmd): Add command "info vector".
2938 (print_vector_info): New function.
2939
2940 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2941 * gdbarch.h, gdbarch.c: Regenerate.
2942
2943 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2944
2945 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2946 ``print_all''. Only print vector registers when ``print_all''.
2947
2948 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2949
2950 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2951 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2952
2953 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2954 Add `args' parameter.
2955 * gdbarch.h, gdbarch.c: Regenerate.
2956
2957 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2958
2959 * infcmd.c (float_info): Call print_float_info.
2960 (print_float_info): New function. By default, print the
2961 floating-point registers.
2962
2963 * arch-utils.h (default_print_float_info): Delete declaration.
2964 * arch-utils.c (default_print_float_info): Delete function.
2965
2966 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2967
2968 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2969 out define.
2970
2971 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2972 FRAME.
2973
2974 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2975 * configure.host: Make i[3456]86-*-aix host obsolete.
2976 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2977 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2978 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2979 config/i386/xm-i386aix.h: Make files obsolete.
2980 * i386aix-nat.c: Make file obsolete.
2981 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2982 (i386aix-nat.o): Make target obsolete.
2983
2984 * config/i386/nm-gnu.h: Removed.
2985 * config/i386/nm-i386gnu.h: New file.
2986 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2987 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2988 Moved here from ...
2989 * config/i386/tm-i386gnu.h: ... here. Removed.
2990 * config/i386/xm-i386gnu.h: Removed.
2991 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2992 (NAT_FILE): Set to nm-i386gnu.h.
2993 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2994 * i386-tdep.c: New file.
2995 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2996 (i386gnu-tdep.o): Specify dependencies.
2997
2998 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2999
3000 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3001 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3002 Adjust a few comments to reflect reality a bit closer.
3003 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3004 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3005 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3006 target_insert_watchpoint, target_remove_watchpoint):
3007 Move defines to ...
3008 * config/i386/nm-i386sco5.h: ... here.
3009 (kernel_u_size): Add prototype. Improve a few comments and add
3010 protection against multiple inclusion.
3011
3012 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3013 out define.
3014
3015 * uw-thread.c (SP_ARG0): Define if not already defined.
3016 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3017
3018 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3019
3020 * config/i386/tm-i386.h: Don't include "regcache.h".
3021
3022 * i387-tdep.h (i387_print_float_info): New prototype.
3023 * i387-tdep.c (print_i387_value, print_i387_ext,
3024 print_i387_status_word, print_i387_control_word): Add `struct
3025 ui_file *' argument and use it for output.
3026 (i387_print_float_info): Renamed from i387_float_info. Add
3027 `struct gdbarch *' and `struct ui_file *' arguments and use the
3028 latter for output.
3029 * i386-tdep.c: Include "i387-tdep.h".
3030 (i386_gdbarch_init): Set print_float_info.
3031 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3032 (FLOAT_INFO): Remove define.
3033
3034 2002-08-13 Michael Snyder <msnyder@redhat.com>
3035
3036 * mips-tdep.c (mips_push_arguments): Rename to
3037 mips_eabi_push_arguments, and tune for EABI.
3038 (MIPS_REGS_HAVE_HOME_P): Delete.
3039 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3040 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3041 Delete references to mips_regs_have_home_p.
3042
3043 2002-08-14 Keith Seitz <keiths@redhat.com>
3044
3045 * Makefile.in (install-gdbtk): Create insight plugin directory.
3046 Install plugins.tcl file.
3047
3048 2002-08-14 Keith Seitz <keiths@redhat.com>
3049
3050 * configure.in: Move SUBDIRS to near top of the file so that
3051 --enable options may add things to it.
3052 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3053 * configure: Regenerate.
3054
3055 2002-08-13 Michael Snyder <msnyder@redhat.com>
3056
3057 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3058 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3059 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3060
3061 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3062
3063 * vax-tdep.c (vax_get_saved_register): Delete function.
3064 (vax_gdbarch_init): Update.
3065 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3066 (ns32k_gdbarch_init): Update.
3067 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3068 (alpha_gdbarch_init): Update.
3069
3070 2002-08-13 Andrew Cagney <cagney@redhat.com>
3071
3072 * regcache.c (init_regcache_descr): Overallocate the
3073 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3074 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3075 nr_raw_registers.
3076 (set_register_cached): Add range checking assertions. Use
3077 current_regcache.
3078
3079 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3080
3081 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3082 numbers for MMX registers.
3083
3084 2002-08-13 Andrew Cagney <cagney@redhat.com>
3085
3086 * i386-tdep.c (i386_gdbarch_init): Use
3087 generic_unwind_get_saved_register.
3088
3089 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3090
3091 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3092 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3093 target vector.
3094 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3095 Delete. Add comment regarding this now-deleted target method.
3096
3097 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3098
3099 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3100 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3101 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3102 real PC and the page number (if it's within the memory bank window).
3103 (m68hc11_pseudo_register_write): Likewise when saving.
3104 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3105 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3106 (m68hc11_register_raw_size): And use 32-bit for it.
3107 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3108 16K memory bank is used by the prog; also use the virtual pc.
3109
3110 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3111
3112 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3113 (m68hc11_gdbarch_init): Install it in gdbarch.
3114 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3115 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3116 (MSYMBOL_SIZE): New for documentation.
3117 (insn_return_kind): Enum to specify how a function returns.
3118 (frame_extra_info): Cleanup and record the return mode.
3119 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3120 register in address computation.
3121 (m68hc11_get_return_insn): New to obtain the return instruction used
3122 by the function.
3123 (m68hc11_frame_init_saved_regs): Take into account the return
3124 instruction used by the function for far and interrupt functions.
3125 (m68hc11_init_extra_frame_info): Take into account page register.
3126 (m68hc11_frame_args_address): Adjust according to the return mode.
3127 (show_regs): Print page register only when it's used.
3128
3129 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3130
3131 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3132 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3133 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3134 registers.
3135 (m68hc11_register_raw_size): Likewise.
3136
3137 2002-08-13 Andrew Cagney <cagney@redhat.com>
3138
3139 * i386-tdep.c (i386_register_name): Handle mmx registers.
3140 (mmx_regnum_p): New function.
3141 (i386_mmx_names): New array.
3142 (mmx_num_regs): New variable.
3143 (i386_pseudo_register_read): New function.
3144 (i386_pseudo_register_write): New function.
3145 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3146
3147 * regcache.c (regcache_raw_read_unsigned): New function.
3148 (regcache_raw_read_signed): New function.
3149 * regcache.h (regcache_raw_read_unsigned): Declare.
3150 (regcache_raw_read_signed): Declare.
3151
3152 2002-08-13 Andrew Cagney <cagney@redhat.com>
3153
3154 * regcache.c (regcache_raw_read_as_address): Delete function.
3155 (regcache_cooked_read_signed): New function.
3156 (regcache_cooked_read_unsigned): New function.
3157 * regcache.h (regcache_cooked_read_signed): Declare.
3158 (regcache_cooked_read_unsigned): Declare.
3159 (regcache_raw_read_as_address): Delete declaration.
3160
3161 * blockframe.c (generic_read_register_dummy): Use
3162 regcache_cooked_read_unsigned.
3163 * i386-tdep.c (i386_extract_struct_value_address): Use
3164 regcache_cooked_read_unsigned.
3165
3166 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3167
3168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3169 double sizes according to ELF ABI flags.
3170 (gdbarch_tdep): Record elf_flags.
3171
3172 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3173
3174 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3175 (m6812_prolog): They can appear in 68HC12 function prologue.
3176 (m68hc11_frame_chain): Cleanup.
3177
3178 2002-08-12 Andrew Cagney <cagney@redhat.com>
3179
3180 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3181 declarations.
3182 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3183 (i386_linux_register_raw_size): Delete function.
3184 (i386_linux_init_abi): Update.
3185 * i386-tdep.c (i386_register_raw_size): Delete function.
3186 (i386_register_byte): Delete function.
3187 (i386_gdbarch_init): Update.
3188 (i386_register_size): Delete array.
3189 (i386_register_offset): Delete array.
3190
3191 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3192 (REGISTER_RAW_SIZE): Delete macro.
3193 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3194 (REGISTER_BYTE): Delete macro.
3195
3196 2002-08-11 Aidan Skinner <aidan@velvet.net>
3197
3198 * ada-lang.c (ada_lookup_partial_symbol)
3199 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3200 prototype names so that grep ^func works properly.
3201
3202 * ada-lang.c (ada_array_element_type)
3203 (ada_lookup_partial_symbol): Fix typos in parameter list.
3204
3205 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3206 Fix prototype names so that grep ^func works properly.
3207
3208 2002-08-10 Andrew Cagney <cagney@redhat.com>
3209 Elena Zannoni <ezannoni@redhat.com>
3210 Martin M. Hunt <hunt@redhat.com>
3211
3212 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3213 (build_builtin_type_vec128i): Set the vector bit.
3214 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3215 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3216 (build_builtin_type_vec64): New function.
3217 (build_builtin_type_vec64i): New function.
3218 (build_gdbtypes): Initialize builtin_type_vec64 and
3219 builtin_type_vec64i.
3220
3221 2002-08-09 Andrew Cagney <cagney@redhat.com>
3222
3223 * regcache.c (regcache_dump): Compare the register offset
3224 with REGISTER_BYTE.
3225 * arch-utils.c (generic_register_byte): New function.
3226 * arch-utils.h (generic_register_byte): Declare.
3227 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3228 * gdbarch.h, gdbarch.c: Regenerate.
3229
3230 2002-08-09 Andrew Cagney <cagney@redhat.com>
3231
3232 * regcache.c: Include "gdbcmd.h"
3233 (_initialize_regcache): Add commands "maintenance print
3234 registers", "maintenance print raw-registers" and "maintenance
3235 print cooked-registers".
3236 (enum regcache_dump_what): Define.
3237 (dump_endian_bytes): New function.
3238 (regcache_dump): New function.
3239 (regcache_print): New function.
3240 (maintenance_print_registers): New function.
3241 (maintenance_print_raw_registers): New function.
3242 (maintenance_print_cooked_registers): New function.
3243 * Makefile.in (regcache.o): Update dependencies.
3244
3245 2002-08-09 Michael Snyder <msnyder@redhat.com>
3246
3247 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3248 (mips_push_arguments): Correct some comments. Use paddr_nz
3249 for printing addresses in debug output. Replace static
3250 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3251 (mips_n32n64_push_arguments): New function, cloned from
3252 mips_push_arguments and tuned for the n32/n64 ABI.
3253 (mips_push_register): Buffer needs dynamic allocation.
3254 (mips_print_register): Ditto.
3255 (do_gp_register_row): Ditto.
3256 (mips_store_return_value): Ditto.
3257 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3258
3259 2002-08-09 Don Howard <dhoward@redhat.com>
3260
3261 * memattr.c (mem_info_command): Print special case of upper bound
3262 as max CORE_ADDR + 1.
3263
3264 2002-08-08 Michael Snyder <msnyder@redhat.com>
3265
3266 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3267 returns structs by ref if they're too big to fit in two registers.
3268
3269 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3270
3271 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3272 saved regs value.
3273 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3274 mips_find_saved_regs().
3275 (mips_pop_frame): Likewise.
3276
3277 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3278
3279 * blockframe.c (frame_saved_regs_register_unwind): Revise
3280 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3281 frames are in use.
3282
3283 2002-08-09 Grace Sainsbury <graces@redhat.com>
3284
3285 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3286 T-packets; the 'a' is not taken as a register number.
3287 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3288 (remote_stopped_data_address): New functions; add to target
3289 vector.
3290 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3291 prototypes to match other implementations of this
3292 function. replace integer argument with pointer -- the length
3293 field in the Z-packet is the length of what is pointed to or 1 if
3294 pointer is null. Add to target vector.
3295 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3296 target vector.
3297
3298 From Mark Salter:
3299 * remote.c (remote_wait): Add support to extract optional
3300 watchpoint information from T-packet. Ignore unrecognized
3301 optional info in T-packet.
3302 (remote_async_wait): Ditto.
3303
3304 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3305
3306 * cli/cli-dump.c: Change fopen modes to use binary open modes
3307 as defined in include/fopen-bin.h throughout.
3308
3309 2002-08-08 Michael Snyder <msnyder@redhat.com>
3310
3311 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3312
3313 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3314
3315 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3316 assertion failure by returning early after a warning.
3317
3318 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3319
3320 * mips-tdep.c (mips_find_saved_regs): Make static.
3321 (mips_frame_init_saved_regs): New function.
3322 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3323 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3324 (mips_find_saved_regs): Delete declaration.
3325
3326 2002-08-08 Grace Sainsbury <graces@redhat.com>
3327
3328 * remote.c (remote_wait, remote_async_wait): Change
3329 thread_num from int to ULONGEST.
3330 (unpack_varlen_hex): Change result parameter from
3331 int * to ULONGEST *.
3332
3333 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3334
3335 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3336 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3337 powerpc*-*-*.
3338 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3339
3340 2002-08-08 Andrew Cagney <cagney@redhat.com>
3341
3342 * gcore.c (override_derive_stack_segment): Delete variable.
3343 (preempt_derive_stack_segment): Delete function.
3344 (derive_stack_segment): Delete function.
3345 (default_derive_stack_segment): Renamed to derive_stack_segment.
3346 (override_derive_heap_segment): Delete variable.
3347 (preempt_derive_heap_segment): Delete function.
3348 (derive_heap_segment): Delete function.
3349 (default_derive_heap_segment): Rename to derive_heap_segment.
3350
3351 2002-08-06 Michael Snyder <msnyder@redhat.com>
3352
3353 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3354 * mips-tdep.c (mips_EABI_use_struct_convention,
3355 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3356 New functions. (mips_use_struct_convention): Delete.
3357 (mips_gdbarch_init): set use_gdbarch_convention.
3358
3359 2002-08-06 Michael Snyder <msnyder@redhat.com>
3360
3361 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3362 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3363 mips_o32_reg_struct_has_addr): New functions.
3364 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3365
3366 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3367
3368 * regcache.c (pseudo_register): Delete function.
3369 (fetch_register): Delete function.
3370 (store_register): Delete function.
3371 (regcache_raw_read, legacy_read_register_gen): Use
3372 target_fetch_registers instead of fetch_register.
3373 (legacy_write_register_gen, regcache_raw_write): Use
3374 target_store_register instead of store_register.
3375 (write_register_bytes): Ditto.
3376
3377 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3378 (STORE_PSEUDO_REGISTER): Delete.
3379 * gdbarch.h, gdbarch.c: Regenerate.
3380
3381 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3382
3383 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3384 write dump file binary.
3385
3386 2002-08-05 Michael Snyder <msnyder@redhat.com>
3387
3388 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3389 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3390 (mips_gdbarch_init): Set N32 target to be mips64.
3391
3392 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3393
3394 * frame.c (find_saved_register): Break out of loop once saved
3395 register address is found. Don't mention sparc in loop comment
3396 anymore.
3397
3398 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3399
3400 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3401 mips_default_saved_regsize to 8.
3402
3403 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3404
3405 * gcore.c: Do not include <sys/procfs.h>.
3406 * Makefile.in (gcore.o): Update dependencies.
3407
3408 2002-08-06 Andrew Cagney <cagney@redhat.com>
3409
3410 * configure.tgt: Make arc-*-* obsolete.
3411 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3412 * MAINTAINERS: Make arc-elf obsolete.
3413 * arc-tdep.c: Make file obsolete.
3414 * config/arc/arc.mt: Ditto.
3415 * config/arc/tm-arc.h: Ditto.
3416
3417 2002-08-05 Theodore A. Roth <troth@verinet.com>
3418
3419 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3420
3421 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3422
3423 * mcore-tdep.c (mcore_gdbarch_init): Use
3424 generic_unwind_get_saved_register instead of
3425 generic_get_saved_register.
3426 * v850-tdep.c (v850_gdbarch_init): Ditto.
3427 * frv-tdep.c (frv_gdbarch_init): Ditto.
3428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3429 * s390-tdep.c (s390_gdbarch_init): Ditto.
3430 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3431 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3432 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3433
3434 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3435
3436 * objfiles.h: Add missing #include "symfile.h"
3437
3438 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3439
3440 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3441
3442 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3443 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3444 of FIELD_BITSIZE.
3445
3446 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3447
3448 * NEWS: Cleanup and nitpick.
3449
3450 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3451
3452 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3453
3454 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3455
3456 * Makefile.in (gdbtk-bp.o): Update dependencies.
3457 (gdbtk-register.o): Ditto.
3458 (gdbtk-varobj.o): Ditto.
3459
3460 2002-08-03 Andrew Cagney <cagney@redhat.com>
3461
3462 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3463 m68hc11_fetch_pseudo_register.
3464 (m68hc11_pseudo_register_write): Replace
3465 m68hc11_store_pseudo_register.
3466 (m68hc11_gdbarch_init): Update.
3467
3468 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3469
3470 * gdbarch.sh: Include "gdb_string.h".
3471 * gdbarch.c: Regenerate.
3472
3473 * regcache.c: Include "gdb_string.h".
3474 * ax-general.c: Ditto.
3475 * varobj.c: Ditto.
3476 * std-regs.c: Ditto.
3477 * fbsd-proc.c: Ditto.
3478 * thread.c: Ditto.
3479
3480 * Makefile.in (regcache.o): Update dependencies.
3481 (thread.o, gdbarch.o): Ditto.
3482 (ax-general.o, gdbarch.o): Ditto.
3483 (varobj.o, std-regs.o): Ditto.
3484 (fbsd-proc.o): Specify dependencies.
3485
3486 2002-08-02 Andrew Cagney <cagney@redhat.com>
3487
3488 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3489 regnum.
3490 (regcache_cooked_write): Ditto.
3491
3492 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3493
3494 * regcache.c (regcache_cooked_read): New function.
3495 (regcache_cooked_write): New function.
3496 (read_register_gen): Rewrite using regcache_cooked_read.
3497 (write_register_gen): Rewrite using regcache_cooked_write.
3498
3499 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3500 Declare.
3501
3502 2002-08-02 Andrew Cagney <cagney@redhat.com>
3503
3504 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3505 Replace the architecture methods register_read and register_write.
3506 * gdbarch.h, gdbarch.c: Regenerate.
3507 * regcache.c (init_regcache_descr): Update.
3508 (read_register_gen): Update.
3509 (write_register_gen): Update.
3510 (supply_register): Update comment.
3511
3512 * sh-tdep.c (sh_gdbarch_init): Update.
3513 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3514 `regcache' and `gdbarch' parameters. Make `buffer' a void
3515 pointer. Update code.
3516 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3517 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3518 void pointer. Update code.
3519 (sh64_register_write): Delete.
3520 (sh4_register_read): Delete.
3521 (sh64_register_read): Delete.
3522 (sh4_register_write): Delete.
3523 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3524 void pointer, `to' parameter a void pointer.
3525 (sh_sh64_register_convert_to_raw): Ditto.
3526
3527 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3528
3529 * mips-tdep.c (mips_register_virtual_type): Use architecture
3530 invariant return values.
3531
3532 2002-08-01 Andrew Cagney <cagney@redhat.com>
3533
3534 * linux-proc.c: Include "gdb_string.h".
3535 * Makefile.in (linux-proc.o): Update dependency list.
3536
3537 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3538
3539 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3540 comment.
3541
3542 2002-08-01 Grace Sainsbury <graces@redhat.com>
3543
3544 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3545 to_insert_watchpoint, to_remove_watchpoint,
3546 to_stopped_by_watchpoint, to_stopped_data_address,
3547 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3548 target vecctor. Define their corresponding macros so they call
3549 them.
3550
3551 * target.c: Add default and debug versions of for
3552 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3553 to_insert_watchpoint, to_remove_watchpoint,
3554 to_stopped_by_watchpoint, to_stopped_data_address,
3555 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3556
3557 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3558
3559 * mips-tdep.c (mips_register_virtual_type): New function.
3560 (mips_gdbarch_init): Register mips_register_virtual_type()
3561 with gdbarch machinery.
3562 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3563 this file instead of tm-bigmips.h.
3564 (MIPS_REGSIZE): Delete this macro.
3565 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3566 multiarch version in mips-tdep.c will be found.
3567
3568 2002-08-01 Andrew Cagney <cagney@redhat.com>
3569
3570 * NEWS: Menion that CHILL has been made obsolete.
3571
3572 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3573 * stabsread.c (read_range_type): Ditto.
3574 * gdbtypes.h: Ditto.
3575 * language.c (binop_type_check): Ditto.
3576 (binop_result_type): Ditto.
3577 (integral_type): Ditto.
3578 (character_type): Ditto.
3579 (string_type): Ditto.
3580 (boolean_type): Ditto.
3581 (structured_type): Ditto.
3582 (lang_bool_type): Ditto.
3583 (binop_type_check): Ditto.
3584 * language.h (_LANG_chill): Ditto.
3585 * dwarfread.c (set_cu_language): Ditto.
3586 * dwarfread.c (CHILL_PRODUCER): Ditto.
3587 * dwarfread.c (handle_producer): Ditto.
3588 * expression.h (enum exp_opcode): Ditto.
3589 * eval.c: Ditto for comments.
3590 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3591 * expprint.c (print_subexp): Ditto.
3592 (print_subexp): Ditto.
3593 * valops.c (value_cast): Ditto.
3594 (search_struct_field): Ditto.
3595 * value.h (COERCE_VARYING_ARRAY): Ditto.
3596 * symfile.c (init_filename_language_table): Ditto.
3597 (add_psymbol_with_dem_name_to_list): Ditto.
3598 * valarith.c (value_binop): Ditto.
3599 (value_neg): Ditto.
3600 * valops.c (value_slice): Ditto.
3601 * symtab.h (union language_specific): Ditto.
3602 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3603 (SYMBOL_DEMANGLED_NAME): Ditto.
3604 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3605 * defs.h (enum language): Ditto.
3606 * symtab.c (got_symtab): Ditto.
3607 * utils.c (fprintf_symbol_filtered): Ditto.
3608
3609 * ch-typeprint.c: Make file obsolete.
3610 * ch-valprint.c: Make file obsolete.
3611 * ch-lang.h: Make file obsolete.
3612 * ch-exp.c: Make file obsolete.
3613 * ch-lang.c: Make file obsolete.
3614
3615 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3616 CHILL_LIB.
3617 (TARGET_FLAGS_TO_PASS): Ditto.
3618 (CHILLFLAGS): Obsolete.
3619 (CHILL): Obsolete.
3620 (CHILL_FOR_TARGET): Obsolete.
3621 (CHILL_LIB): Obsolete.
3622 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3623 ch-valprint.c.
3624 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3625 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3626 ch-lang.o.
3627 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3628 targets.
3629
3630 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3631
3632 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3633 This does not change anything at the moment, but will be helpful
3634 later when full Ada support is integrated.
3635
3636 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3637
3638 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3639 help message.
3640
3641 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3642
3643 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3644 and save it in a local variable. Use variable in later test.
3645
3646 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3647
3648 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3649 test. (Thanks to Daniel Jacobowitz.)
3650
3651 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3652
3653 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3654 (mips_abi_strings): Add "n64".
3655 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3656
3657 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3658
3659 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3660 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3661
3662 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3663
3664 * utils.c (host_pointer_to_address, address_to_host_pointer):
3665 Use gdb_assert() instead of explicit call to internal_error().
3666
3667 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3668
3669 * Makefile.in (rs6000-nat.o): Update dependencies.
3670
3671 From Nicholas Duffek:
3672 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3673 (aix-thread.o): New rule.
3674 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3675 * config/powerpc/aix432.mh: New file.
3676
3677 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3678
3679 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3680 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3681 (fetch_core_registers, ppc_linux_supply_gregset)
3682 (ppc_linux_supply_fpregset): New functions.
3683 (ppc_linux_regset_core_fns): New.
3684 (_initialize_ppc_linux_tdep): Call add_core_fns.
3685 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3686 and ppc_linux_supply_gregset.
3687 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3688 (supply_fpregset): Call ppc_linux_supply_fpregset.
3689 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3690 corelow.o.
3691 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3692
3693 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3694
3695 * symtab.c (lookup_symbol): Demangle before lowercasing.
3696
3697 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3698
3699 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3700 declaration.
3701 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3702 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3703 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3704 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3705 "gdb_string.h".
3706 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3707 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3708 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3709 (avr-tdep.o, mon960-rom.o): Ditto.
3710 (aout_stabs_gnu_h): Define.
3711 (symtab_h): Remove $(gdb_obstack_h).
3712
3713 2002-07-30 Jim Blandy <jimb@redhat.com>
3714
3715 Patch from David Carlton <carlton@math.stanford.edu>:
3716 * gdbinit.in: Move the `dir' commands that add GDB's own source
3717 directory to the search path to the end, so that the `gdb' source
3718 directory will be searched first.
3719
3720 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3721
3722 * gdb_obstack.h: New file.
3723 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3724 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3725 * objfiles.h: Include "gdb_obstack.h".
3726 * Makefile.in (gdb_obstack_h): Define.
3727 (symtab_h): Add $(gdb_obstack_h).
3728 (objfiles_h): Add $(gdb_obstack_h).
3729
3730 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3731 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3732 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3733 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3734 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3735 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3736 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3737 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3738
3739 * Makefile.in (bcache.o): Update dependencies.
3740 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3741 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3742 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3743 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3744 (stabsread.o, symfile.o, symmisc.o): Ditto.
3745 (symtab.o, typeprint.o, macroexp.o): Ditto.
3746 (macrotab.o, mdebugread.o): Ditto.
3747 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3748 (coff_ecoff_h, aout_aout64_h): Define.
3749 (aout_stabs_gnu_h, libaout_h): Define.
3750
3751 2002-07-29 Andrew Cagney <cagney@redhat.com>
3752
3753 * regcache.c (struct regcache_descr): Rename nr_registers to
3754 nr_cooked_registers. Revise comments describing the structure
3755 member fields.
3756 (init_regcache_descr): Update.
3757 (init_legacy_regcache_descr): Update.
3758 (read_register_gen, write_register_gen): When a cooked register in
3759 the raw register range, directly access the value from the raw
3760 register cache.
3761
3762 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3763
3764 * z8k-tdep.c: Do not include "obstack.h".
3765 * h8300-tdep.c, h8500-tdep.c: Ditto.
3766 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3767 * valprint.c, v850-tdep.c: Ditto.
3768 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3769 * mn10200-tdep.c: Ditto.
3770
3771 * Makefile.in (z8k-tdep.o): Update dependencies.
3772 (m68hc11-tdep.o, valprint.o): Ditto.
3773 (v850-tdep.o, d10v-tdep.o): Ditto.
3774 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3775 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3776 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3777 (sh_opc_h, gdb_sim_sh_h): Define.
3778 (elf_sh_h, elf_bfd_h): Define.
3779 (opcode_m68hc11_h): Define.
3780 (OPCODES_SRC, OPCODES_DIR): define.
3781 (OPCODES): Use $(OPCODES_DIR).
3782 (gdb_sim_d10v_h): Rename sim_d10v_h.
3783 (gdb_sim_arm_h): Rename sim_arm_h.
3784
3785 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3786
3787 * utils.c (host_pointer_to_address, address_to_host_pointer):
3788 Change internal_error() message to indicate function responsible
3789 for the error.
3790
3791 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3792
3793 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3794 calls to local_hex_string_custom().
3795
3796 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3797
3798 * irix5-nat.c: Move IRIX shared library support from here...
3799 * solib-irix.c: ...to here. Revised substantially to work with
3800 generic solib framework.
3801
3802 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3803 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3804 * mips-irix-tdep.c: New file.
3805
3806 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3807 (mips-irix-tdep.o, solib-irix.o): New rules.
3808 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3809 solib-irix.o.
3810 * config/mips/irix6.mt (TDEPFILES): Likewise.
3811 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3812
3813 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3814
3815 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3816 disabled (via ``#if 0'') includes.
3817
3818 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3819
3820 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3821 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3822 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3823 Add support for the fpscr register.
3824 * rs6000-nat.c (regmap, fetch_inferior_registers)
3825 (store_inferior_registers, fetch_core_registers): Likewise.
3826
3827 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3828
3829 * rs6000-nat.c (language.h): Include.
3830 (special_regs): Delete this array.
3831 (regmap): New function.
3832 (fetch_register, store_register): Use regmap() to map gdb
3833 register numbers to ptrace register numbers. Also, use
3834 outputs from regmap() to make decisions regarding type of
3835 ptrace() call to make. In particular, don't compare against
3836 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3837 (fetch_inferior_registers, store_inferior_registers): Where
3838 possible, obtain register numbers from tdep struct. Don't
3839 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3840 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3841 (LAST_UISA_SP_REGNUM): Delete.
3842
3843 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3844
3845 * rs6000-nat.c (ppc-tdep.h): Include.
3846 (fetch_registers, store_register, fetch_core_registers): Don't
3847 access registers[] directly. Instead, use supply_register() or
3848 regcache_collect() as appropriate.
3849 (find_toc_address): Format hex address with local_hex_string().
3850
3851 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3852
3853 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3854 bfd/elf32-frv.c.
3855
3856 2002-07-24 Tom Tromey <tromey@redhat.com>
3857
3858 * jv-exp.y: Marked all strings with _().
3859 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3860 internal_error.
3861 (MethodInvocation, CastExpression, parse_number, yyerror,
3862 java_type_from_name, push_expression_name, yylex): Typo fixes.
3863
3864 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3865
3866 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3867 (tee_file_flush, tee_file_write, tee_file_fputs)
3868 (tee_file_isatty): New.
3869 * ui-file.h (tee_file_new): Add prototype.
3870
3871 2002-07-24 Aidan Skinner <aidan@velvet.net>
3872
3873 * ada-lang.c: Change k&r style function definitions to prototyped
3874 form.
3875 * ada-typeprint.c: Change k&r style function definitions to prototyped
3876 form.
3877 * ada-valprint.c: Change k&r style function definitions to prototyped
3878 form.
3879
3880 2002-07-24 Andrew Cagney <cagney@redhat.com>
3881
3882 * README: Remove reference to remote-bug.
3883 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3884 remote-bug.c.
3885 (m88k-nat.o): Delete rule.
3886 (m88k-tdep.o): Delete rule.
3887 (remote-bug.o): Delete rule.
3888 * MAINTAINERS: Mark as obsolete.
3889 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3890 * m88k-tdep.c: Make file obsolete.
3891 * config/m88k/m88k.mh: Ditto.
3892 * config/m88k/delta88v4.mh: Ditto.
3893 * config/m88k/delta88v4.mt: Ditto.
3894 * config/m88k/delta88.mt: Ditto.
3895 * config/m88k/delta88.mh: Ditto.
3896 * remote-bug.c: Ditto.
3897 * config/m88k/tm-delta88.h: Ditto.
3898 * config/m88k/nm-delta88v4.h: Ditto.
3899 * config/m88k/xm-delta88.h: Ditto.
3900 * config/m88k/xm-dgux.h: Ditto.
3901 * config/m88k/tm-m88k.h: Ditto.
3902 * config/m88k/nm-m88k.h: Ditto.
3903 * config/m88k/tm-delta88v4.h: Ditto.
3904 * m88k-nat.c: Ditto.
3905 * cxux-nat.c: Ditto.
3906 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3907 and m88*-*-* obsolete.
3908 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3909 m88*-*-* obsolete.
3910
3911 2002-07-24 Andrew Cagney <cagney@redhat.com>
3912
3913 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3914 constant. Same for local pointer variables.
3915 (extract_signed_integer): Ditto.
3916 * defs.h (extract_unsigned_integer): Update.
3917 (extract_signed_integer): Update.
3918
3919 2002-07-24 Andrew Cagney <cagney@redhat.com>
3920
3921 * regcache.c (regcache_raw_write): Change buf parameter to a
3922 constant void pointer.
3923 (regcache_raw_read): Change buf parameter to a void pointer.
3924 (legacy_write_register_gen): Change myaddr parameter a constant
3925 void pointer.
3926 (supply_register): Change val parameter to a const void pointer.
3927 * regcache.h (regcache_raw_write): Update declaration.
3928 (regcache_raw_read): Update declaration.
3929 (supply_register): Update declaration.
3930
3931 2002-07-24 Tom Tromey <tromey@redhat.com>
3932
3933 * defs.h (gdb_readline_wrapper): Declare.
3934 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3935 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3936 * top.c (gdb_readline_wrapper): New function.
3937 (command_line_input): Use it.
3938
3939 2002-07-24 Andrew Cagney <cagney@redhat.com>
3940
3941 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3942 regcache_read and regcache_write.
3943 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3944 * regcache.c: Update.
3945 * sh-tdep.c (sh64_push_arguments): Update comment.
3946 (sh_pseudo_register_read): Update.
3947 (sh_pseudo_register_write): Update.
3948 (sh4_register_read): Update.
3949 (sh4_register_write): Update.
3950 (sh64_pseudo_register_read): Update.
3951 (sh64_pseudo_register_write): Update.
3952 (sh64_register_read): Update.
3953 (sh64_register_write): Update.
3954 * i386-tdep.c (i386_extract_return_value): Update.
3955 (i386_extract_struct_value_address): Update.
3956 (i386_extract_return_value): Update.
3957 * blockframe.c (generic_read_register_dummy): Update.
3958 (generic_call_dummy_register_unwind): Update
3959 * infrun.c (write_inferior_status_register): Update.
3960
3961 2002-07-23 Jim Blandy <jimb@redhat.com>
3962
3963 * parser-defs.h (expression_context_pc): Make this extern.
3964 (Thanks to Michael Snyder.)
3965
3966 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3967
3968 GDB 5.2.1 released from 5.2 branch.
3969 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3970 * README: Update to mention 5.2.1.
3971
3972 2002-07-23 Mark Salter <msalter@redhat.com>
3973
3974 * remote.c (remote_read_bytes): Fix check for error.
3975
3976 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3977
3978 * aix-thread.c (language.h): Include.
3979 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3980 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3981 Print newlines at end of debug messages.
3982 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3983 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3984
3985 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3986
3987 * aix-thread.c (ppc-tdep.h): Include.
3988 (special_register_p): New function.
3989 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3990 (store_regs_user_thread): Use register number information from
3991 gdbarch_tdep struct instead of hardcoded offsets relative to
3992 FIRST_UISA_SP_REGNUM.
3993 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3994 special_register_p() instead of using FPLAST_REGNUM and
3995 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3996 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3997 will be MQ's register number.
3998
3999 2002-07-22 Michael Snyder <msnyder@redhat.com>
4000
4001 * aix-thread.c (ops): Rename to aix_thread_ops.
4002 (base_ops): Rename to base_target.
4003 (ops_attach): Rename to aix_thread_attach.
4004 (ops_detach): Rename to aix_thread_detach.
4005 (ops_resume): Rename to aix_thread_detach.
4006 (ops_wait): Rename to aix_thread_wait.
4007 (ops_kill): Rename to aix_thread_kill.
4008 (init_ops): Rename to init_aix_thread_ops.
4009 (ops_fetch_register): Rename to aix_thread_fetch_register.
4010 (ops_store_register): Rename to aix_thread_store_register.
4011 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4012 (ops_thread_alive): Rename to aix_thread_thread_alive.
4013 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4014 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4015 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4016 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4017 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4018 (store_regs_lib): Rename to store_regs_user_thread.
4019 (store_regs_kern): Rename to store_regs_kernel_thread.
4020
4021 2002-07-22 Michael Snyder <msnyder@redhat.com>
4022
4023 * aix-thread.c (ops_prepare_to_store): Eliminate.
4024 (init_ops): Don't initialize ops.prepare_to_store.
4025 (store_regs_kern): Pre-fetch register buffers from child,
4026 because some registers may not be in the cache. Copy
4027 regs from register cache only if they are cached.
4028 (store_regs_lib): Copy regs from register cache only
4029 if they are cached.
4030 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4031 fill_gprs64): Ditto.
4032
4033 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4034
4035 * aix-thread.c (gdb_assert.h): Include.
4036 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4037 register sizes (from register cache) match size of buffer holding
4038 register data.
4039 (fill_sprs32): Change parameter types to match those in the ptrace()
4040 buffer.
4041 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4042 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4043
4044 2002-07-22 Michael Snyder <msnyder@redhat.com>
4045
4046 * aix-thread.c (supply_sprs64): Cosmetic change.
4047 (supply_sprs32): Cosmetic change.
4048 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4049 (fill_sprs64): Use regcache_collect instead of read_register.
4050 (store_regs_lib): Use regcache_collect instead of
4051 read_register. Use fill_sprs32 instead of fill_sprs64,
4052 if debugging a 32-bit architecture.
4053 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4054 out of the register cache, instead of passing a pointer into
4055 the register cache directly to ptrace. Use regcache_collect
4056 insteaad of read_register.
4057 (ops_prepare_to_store): Use target_read_registers instead
4058 of read_register_bytes.
4059
4060 2002-07-20 Aidan Skinner <aidan@velvet.net>
4061
4062 * MAINTAINERS: Add self under write after approval.
4063
4064 2002-07-20 Aidan Skinner <aidan@velvet.net>
4065
4066 * ada-tasks.c: Change k&r style function definitions to prototyped
4067 form.
4068
4069 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4070
4071 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4072 * x86-64-tdep.c: Include "objfiles.h".
4073 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4074 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4075
4076 2002-07-17 Michal Ludvig <michal@suse.cz>
4077
4078 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4079 (update_context): Initialise cfa variable.
4080
4081 2002-07-17 Michael Snyder <msnyder@redhat.com>
4082
4083 * aix-thread.c: Shorten some long lines.
4084 Bring comments into line with code spec.
4085
4086 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4087
4088 * infrun.c: Re-indent using gdb_indent.sh.
4089
4090 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4091
4092 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4093 Leave the indentation temporarily untouched, to minimize the diffs.
4094
4095 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4096
4097 * stabsread.c: Make os9k sections of the code obsolete,
4098 for real this time.
4099 * stabsread.h: Make os9k sections of the code obsolete.
4100
4101 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4102
4103 * linux-low.c (regsets_store_inferior_registers): Add free()
4104 at the end of a loop to prevent memory leak.
4105 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4106 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4107 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4108 line a comment.
4109 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4110
4111 2002-07-17 Jim Blandy <jimb@redhat.com>
4112
4113 * macrocmd.c (info_macro_command): Remove newline from error
4114 message.
4115
4116 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4117
4118 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4119 (sh_gdbarch_init): Use it for sh-dsp.
4120
4121 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4122
4123 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4124 64-bit DWARF2 format.
4125
4126 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4127
4128 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4129 <sys/proc.h> when not available.
4130
4131 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4132
4133 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4134 * stabsread.c: Make os9k sections of the code obsolete.
4135 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4136 * config/i386/i386os9k.mt: Make file obsolete.
4137 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4138 (COMMON_OBS): Remove os9kread.o
4139 (SFILES): Remove os9kread.c.
4140 (os9kread.o, remote-os9k.o): Make target obsolete.
4141 * remote-os9k.c: Make file obsolete.
4142 * os9kread.c: Make file obsolete.
4143 * Makefile.in
4144
4145 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4146
4147 * NEWS: Mention that the FR30 has been made obsolete.
4148 * fr30-tdep.c: Make file obsolete.
4149 * config/fr30/tm-fr30.h: Ditto.
4150 * config/fr30/fr30.mt: Ditto.
4151 * configure.tgt: Make fr30-*-elf obsolete.
4152 * MAINTAINERS: Make fr30-elf obsolete.
4153
4154 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4155
4156 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4157 found is not inside a section.
4158
4159 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4160
4161 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4162 strerror().
4163 (pdc_realloc): Use xrealloc() instead of realloc().
4164
4165 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4166
4167 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4168 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4169 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4170 macros.
4171
4172 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4173
4174 * aix-thread.c (ptrace_check): Eliminate goto.
4175 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4176 problem.
4177
4178 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4179
4180 * aix-thread.c (gdbcmd.h): Include.
4181 (DEBUG, DBG, DBG2, dbg): Eliminate.
4182 (debug_aix_thread): New static global.
4183 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4184 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4185 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4186 invocations to DBG and DBG2 macros to test against
4187 ``debug_aix_thread'' and call fprintf_unfiltered().
4188 (_initialize_aix_thread): Add new command "set debug aix-thread".
4189
4190 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4191
4192 From Gerhard Tonn <TON@de.ibm.com>:
4193 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4194 instead of supply_register.
4195
4196 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4197
4198 * dwarf2cfi.c: Include "gdb_assert.h".
4199 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4200 non-NULL.
4201 (update_context): Do not use __func__. Add missing ``break''.
4202 (update_context): Do not use __func__.
4203
4204 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4205
4206 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4207 and its setting. Set gdbarch instruction printing functions
4208 directly. For non-rs6000 case use new function
4209 gdb_print_insn_powerpc.
4210 (gdb_print_insn_powerpc): New function.
4211
4212 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4213
4214 * NEWS: Mention that the d30v has been marked obsolete.
4215 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4216 * configure.tgt: Mark d30v-*-* as obsolete.
4217 * d30v-tdep.c: Mark file as obsolete.
4218 * config/d30v/d30v.mt: Ditto.
4219 * config/d30v/tm-d30v.h: Ditto.
4220
4221 2002-07-13 Aidan Skinner <aidan@velvet.net>
4222
4223 * ada-tasks.c (add_task_entry): replace calls to
4224 malloc() with xmalloc
4225 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4226
4227 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4228 ada_finish_decode_line_1, all_sals_for_line
4229 ada_breakpoint_rewrite): replace calls to free() with xfree()
4230
4231 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4232
4233 From Nicholas Duffek (with minor changes by Martin Hunt,
4234 Louis Hamilton, and Kevin Buettner):
4235 * aix-thread.c: New file.
4236
4237 2002-07-12 Petr Sorfa <petrs@caldera.com>
4238
4239 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4240 complaint for invalid attribute class or form.
4241 (read_func_scope): DW_AT_frame_base
4242 better handling of DW_AT_block*.
4243 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4244 better handling of DW_AT_block*.
4245 (read_common_block): DW_AT_location
4246 better handling of DW_AT_block*.
4247 (read_partial_die): DW_AT_location better handling
4248 of DW_AT_block*.
4249 (new_symbol): DW_AT_external better handling of
4250 DW_AT_block*. Proper initialization of variable
4251 "addr".
4252 (attr_form_is_block): New function that returns true
4253 if the attribute's form is of DW_FORM_block*.
4254
4255 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4256
4257 * valops.c (find_method_list): Remove comment about
4258 removed STATIC_MEMFUNCP argument.
4259 (value_find_oload_method_list): Likewise.
4260
4261 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4262
4263 From Nicholas Duffek:
4264 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4265 target_new_objfile_hook.
4266
4267 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4268
4269 From Nicholas Duffek:
4270 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4271 csect.
4272
4273 2002-07-12 Andrew Cagney <cagney@redhat.com>
4274
4275 * MAINTAINERS: Mention --enable-sim-build-warnings.
4276 (m68hc11-elf): Disable sim build warnings.
4277 (m32r-elf): Mark as broken obsolete candidate.
4278 (x86_64-linux-gnu): Mark as buildable with -Werror.
4279 (arm-elf): Change -w to ``,'' which enables warnings but not
4280 -Werror.
4281
4282 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4283
4284 * bcache.h: Update copyright.
4285 (struct bstring, struct bcache): Move definition to "bcache.c".
4286 Replaced by opaque declaration.
4287 (bcache_xfree): Replace free_bcache.
4288 (bcache_xmalloc, bcache_memory_used): Declare.
4289
4290 * bcache.c: Update copyright.
4291 (struct bstring, struct bcache): Moved to here from "bcache.h".
4292 Update comments.
4293 (bcache_xmalloc, bcache_memory_used): New functions.
4294 (bcache_xfree): Replace function free_bcache.
4295
4296 * Makefile.in (objfiles.o): Add $(bcache_h).
4297 (objfiles_h): Remove $(bcache_h).
4298 (symfile.o): Add $(bcache_h).
4299
4300 * symmisc.c: Update copyright.
4301 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4302 (print_objfile_statistics): Use bcache_memory_used.
4303
4304 * symfile.c: Include "bcache.h".
4305 (reread_symbols): Use bcache_xfree.
4306 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4307 (add_psymbol_to_list): Pass psymbol_cache by value.
4308 (add_psymbol_with_dem_name_to_list): Ditto.
4309
4310 * objfiles.h: Update copyright.
4311 (struct bcache): Declare opaque. Do not include "bcache.h".
4312 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4313 bcache'' pointers.
4314 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4315
4316 * objfiles.c: Include "bcache.h". Update copyright.
4317 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4318 macro_cache.
4319 (free_objfile): Use bcache_xfree.
4320
4321 2002-07-11 Grace Sainsbury <graces@redhat.com>
4322
4323 * monitor.c (monitor_fetch_register): Make name a constant.
4324 (monitor_store_register): Same.
4325
4326 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4327
4328 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4329 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4330 (finish_block) For non-function blocks, hash the symbol table. For
4331 function blocks, mark the symbol table as unhashed.
4332 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4333 (msymbol_hash_iw): Likewise.
4334 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4335 value.
4336 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4337 (lookup_minimal_symbol): Likewise for both.
4338 * symtab.h (struct block): Add `hashtable' flag. Comment the
4339 hashtable.
4340 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4341 (ALL_BLOCK_SYMBOLS): Update.
4342 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4343 (struct symbol): Add `hash_next' pointer.
4344 * symtab.c (lookup_block_symbol): Search using the hash table when
4345 possible.
4346 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4347 (search_symbols, find_addr_symbol): Likewise.
4348
4349 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4350 (read_dst_symtab): Likewise.
4351 * jv-lang.c (get_java_class_symtab): Likewise.
4352 * mdebugread.c: Include "gdb_assert.h".
4353 (shrink_block): Assert that the block being modified is not hashed.
4354 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4355 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4356 symbols.
4357 (dump_symtab): Recognize hashed blocks.
4358 * printcmd.c (print_frame_args): Assert that function blocks do not
4359 have hashed symbol tables.
4360 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4361 (fill_in_ada_prototype, debug_print_block): Likewise.
4362 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4363
4364 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4365
4366 * stack.c (print_frame): Use result of frame_address_in_block()
4367 instead of fi->pc when evaluating symbols.
4368 (backtrace_command_1): Ditto.
4369
4370 2002-07-11 Andrew Cagney <cagney@redhat.com>
4371
4372 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4373 Make static.
4374
4375 * arm-tdep.c (arm_register_name): Make return type constant.
4376
4377 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4378
4379 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4380 prototype.
4381 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4382 * s390-tdep.c (s390_fp_regnum): Ditto.
4383 (s390_read_fp): Ditto.
4384 (s390_pop_frame): Ditto.
4385 (_initialize_s390_tdep): Ditto.
4386 * remote.c (get_remote_state): Ditto.
4387 * procfs.c (mappingflags): Ditto.
4388 * memattr.c (_initialize_mem): Ditto.
4389 * mcore-tdep.c (mcore_pop_frame): Ditto.
4390 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4391 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4392 * language.c (set_case_str): Ditto.
4393 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4394 * frv-tdep.c (new_variant): Ditto.
4395 (frv_stopped_data_address): Ditto.
4396 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4397 (context_alloc): Ditto.
4398 (frame_state_alloc): Ditto.
4399 (unwind_tmp_obstack_init): Ditto.
4400 (unwind_tmp_obstack_free): Ditto.
4401 (cfi_read_fp): Ditto.
4402 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4403 (cris_pop_frame): Ditto.
4404 * c-lang.c (scanning_macro_expansion): Ditto.
4405 (finished_macro_expansion): Ditto.
4406 (c_preprocess_and_parse): Ditto.
4407 * gdbarch.sh: Ditto.
4408 * gdbarch.h, gdbarch.c: Regenerate.
4409 * config/mn10200/tm-mn10200.h: Adjust indentation.
4410 * target.c: Adjust indentation.
4411 * symtab.h: Adjust indentation.
4412 * stabsread.h: Adjust indentation.
4413 * remote-es.c: Adjust indentation.
4414 * os9kread.c: Adjust indentation.
4415
4416 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4417
4418 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4419 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4420
4421 2002-07-10 Grace Sainsbury <graces@redhat.com>
4422
4423 * NEWS: Mention m68k, mcore multi-arching.
4424 * MAINTAINERS: Change status of m68k, mcore to reflect
4425 multi-arching.
4426
4427 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4428
4429 * valops.c (find_overload_match): Free oload_syms.
4430
4431 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4432
4433 Define HAVE_SYS_PROC_H if sys/proc.h exists
4434 * configure.in: Add check for sys/proc.h
4435 * config.in: Regenerate.
4436 * configure: Regenerate.
4437
4438 2002-07-09 Grace Sainsbury <graces@redhat.com>
4439
4440 * config/m68k/tm-m68k.h: Remove macros wrapped in
4441 #if !GDB_MULTI_ARCH.
4442
4443 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4444
4445 * config.in, configure: Regenerate.
4446
4447 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4448
4449 * dwarf2cfi.c: Include "gcore.h".
4450 (execute_stack_op): Fix implementation of the
4451 DW_OP_deref and DW_OP_deref_size operators by letting do their
4452 lookup in the target.
4453
4454 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4455
4456 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4457 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4458 tdep->sc_sp_offset.
4459
4460 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4461
4462 Fix PR gdb/595, gdb/602
4463 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4464 Don't call value_cast, just read the vtable pointer; update comments
4465 to match.
4466
4467 2002-07-05 Grace Sainsbury <graces@redhat.com>
4468
4469 * config/mcore/tm-mcore.h: Remove file.
4470 * config/mcore/mcore.mt: Remove definition of TM_FILE
4471 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4472
4473 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4474
4475 * i386bsd-tdep.c: Include "gdb_string.h".
4476
4477 2002-07-04 Grace Sainsbury <graces@redhat.com>
4478
4479 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4480 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4481 mcore-tdep.
4482 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4483 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4484 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4485 (RETVAL_REGNUM): Move macros from tm-mcore.h
4486 (mcore_reg_struct_has_addr): New function.
4487 (mcore_gdbarch_init): Added initializations for the macros removed
4488 from tm-mcore.h.
4489
4490 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4491
4492 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4493 traditonal string branding within the ELF header.
4494
4495 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4496
4497 * symtab.c (remove_params): New function.
4498 (make_symbol_overload_list): Use it instead of cplus_demangle.
4499 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4500
4501 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4502
4503 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4504
4505 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4506 New variables.
4507 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4508 and tdep->sigtramp_end.
4509 * i386obsd-nat.c: New file.
4510 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4511
4512 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4513 Don't call get_current_frame().
4514
4515 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4516
4517 * i386-nat.c (child_post_startup_inferior): New function
4518 calling i386_cleanup_dregs if
4519 I386_USE_GENERIC_WATCHPOINTS is defined.
4520 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4521 conditional to acknowledge that i386-nat.c has its
4522 own child_post_startup_inferior function.
4523
4524 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4525
4526 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4527 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4528 instead of MAX_REGISTER_RAW_SIZE.
4529 (i386_extract_return_value, i386_extract_struct_value_address):
4530 Convert to use regcache.
4531 (i386_gdbarch_init): Set max_register_raw_size and
4532 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4533 Set extract_return_value and extract_struct_value_address instead
4534 of their deprecated variants.
4535
4536 Convert i386 target to generic dummy frames.
4537 * i386-tdep.c: Include "symfile.h".
4538 (i386_frameless_signal_p): Consider a function to be frameless if
4539 the pc points at the first instruction of the function.
4540 (i386_frame_chain): Handle (generic) call dummies.
4541 (i386_frame_saved_pc): Likewise.
4542 (i386_frame_init_saved_regs): Remove code dealing with call
4543 dummies on the stack.
4544 (i386_push_dummy_frame): Removed.
4545 (i386_call_dummy_words): Removed.
4546 (i386_fix_call_dummy): Removed.
4547 (i386_push_return_address): New function.
4548 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4549 parameter, and don't call get_current_frame.
4550 (i386_pop_frame): New function.
4551 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4552 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4553 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4554 call_dummy_length to 0, set call_dummy_words to NULL, set
4555 sizeof_call_dummy_words to 0, set fix_call_dummy to
4556 generic_fix_call_dummy, set pc_in_call_dummy to
4557 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4558 generic_push_dummy_frame, set push_return_address to
4559 i386_push_return_address and set frame_chain_valid to
4560 generic_file_frame_chain_valid.
4561
4562 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4563
4564 * gdbarch.sh (struct regcache): Add opaque declaration.
4565 (EXTRACT_RETURN_VALUE): New architecture method.
4566 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4567 * gdbarch.h, gdbarch.c: Regenerate.
4568 * arch-utils.c (legacy_extract_return_value): New function.
4569 * arch-utils.h (legacy_extract_return_value): Declare.
4570 * values.c (value_being_returned): Re-enable code handling
4571 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4572 deprecated_grub_regcache_for_registers call to block handling
4573 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4574 (EXTRACT_RETURN_VALUE): Do not define.
4575
4576 2002-07-03 Grace Sainsbury <graces@redhat.com>
4577
4578 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4579 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4580 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4581 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4582 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4583 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4584 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4585 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4586 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4587 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4588 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4589 argument so the function fits the prototype in the architecture
4590 vector.
4591 (mcore_pop_frame): Remove argument so the function fits the
4592 prototype. Use get_current_frame instead of the argument.
4593 (mcore_push_arguments): Change type of struct_return so the
4594 function can be used in the architecture vector.
4595 (mcore_store_struct_return): Add.
4596 (mcore_frame_init_saved_regs): Add.
4597 (mcore_gdbarch_init): Add function calls to replace the macros
4598 removed from tm-mcore.h
4599
4600 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4601
4602 * infcmd.c (print_return_value): Remove compatibility code calling
4603 deprecated_grub_regcache_for_registers.
4604
4605 * values.c: Include "regcache.h".
4606 (value_being_returned): Update. Use
4607 deprecated_grub_regcache_for_registers to extract the register
4608 buffer address.
4609 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4610 ``struct regcache''.
4611 * Makefile.in (values.o): Add dependency on $(regcache_h).
4612
4613 * inferior.h (run_stack_dummy): Change type of second parameter to
4614 a ``struct regcache''.
4615 * valops.c (hand_function_call): Change type of retbuf to ``struct
4616 regcache''. Allocate using regcache_xmalloc, clean using
4617 make_cleanup_regcache_xfree.
4618 * infcmd.c (run_stack_dummy): Update. Use
4619 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4620
4621 * regcache.c (do_regcache_xfree): New function.
4622 (make_cleanup_regcache_xfree): New function.
4623 * regcache.h (make_cleanup_regcache_xfree): Declare.
4624
4625 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4626
4627 * event-top.c (command_line_handler): Don't read past
4628 beginning of buffer.
4629
4630 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4631
4632 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4633 struct frame_id.
4634 (varobj_create): Store frame_id for root.
4635 (varobj_gen_name): Use xasprintf.
4636 (varobj_update): Save and restore frame using get_frame_id() and
4637 frame_find_by_id().
4638 (create_child): Use xasprintf.
4639 (new_root_variable): Initialize frame_id.
4640 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4641 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4642 to prevent memory leak.
4643
4644 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4645
4646 * valops.c (hand_function_call): Move declaration of retbuf to
4647 start of function, allocate using malloc, add a cleanup but before
4648 the inf_status cleanup, cleanup the buffer. Rename local variable
4649 old_chain to inf_status_cleanup.
4650
4651 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4652
4653 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4654
4655 * cli/cli-decode.c (cmd_func_p): New function.
4656 (cmd_func): New function.
4657
4658 * command.h: Add cmd_func() and cmd_func_p().
4659
4660 2002-07-03 Grace Sainsbury <graces@redhat.com>
4661
4662 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4663 (REGISTER_SIZE): Remove.
4664 (MAX_REGISTER_RAW_SIZE): Remove.
4665 (REGISTER_VIRTUAL_TYPE): Remove.
4666 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4667 (REGISTER_NAME): Remove.
4668 (USE_GENERIC_DUMMY_FRAMES): Remove.
4669 (CALL_DUMMY): Remove.
4670 (CALL_DUMMY_START_OFFSET): Remove.
4671 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4672 (CALL_DUMMY_LOCATION): Remove.
4673 (FIX_CALL_DUMMY): Remove.
4674 (CALL_DUMMY_ADDRESS): Remove.
4675 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4676 (SAVE_DUMMY_FRAME_TOS): Remove.
4677 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4678 (mcore_register_virtual_type): New function.
4679 (mcore_register_byte): New function.
4680 (mcore_register_size): New function.
4681 (mcore_register_name): New function.
4682 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4683 macros removed from tm-mcore.h.
4684 (mcore_dump_tdep): Add.
4685 (_initialize_mcore_tdep): Add gdbarch_register call.
4686
4687 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4688
4689 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4690 frameless_look_for_prologue, such that we actually call this
4691 function.
4692
4693 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4694
4695 * frame.h (frame_address_in_block): New function.
4696
4697 * blockframe.c (frame_address_in_block): New function extracted
4698 from get_frame_block().
4699 (get_frame_block): Use frame_address_in_block().
4700 (block_innermost_frame): Use frame_address_in_block() to match
4701 the frame pc address against the block boundaries rather than
4702 the frame pc directly. This prevents a failure when a frame pc
4703 is actually a return-address pointing immediately after the end
4704 of the given block.
4705
4706 2002-07-02 Grace Sainsbury <graces@redhat.com>
4707
4708 * MAINTAINERS: Add self under write after approval.
4709
4710 2002-07-02 Grace Sainsbury <graces@redhat.com>
4711
4712 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4713 used in architecture vector. The default is
4714 m68k_local_breakpoint_from_pc.
4715 (m68k_local_breakpoint_from_pc): Add.
4716 (enum): Add register numbers from tm-m68k.h.
4717 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4718 vector.
4719 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4720 GDB_MULTI_ARCH_PARTIAL.
4721 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4722 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4723 m68k-tdep.c.
4724 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4725 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4726 to enum in m68k-tdep.c
4727
4728 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4729
4730 * solib-osf.c (open_map): Compute the list of shared libraries
4731 loaded by the inferior, rather than the list of libraries loaded
4732 by GDB itself. Otherwise, GDB ends up reading the symbols from
4733 the wrong shared libraries...
4734
4735 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4736
4737 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4738 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4739 macros.
4740 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4741 Remove functions.
4742 (FRAMELESS_SIGNAL): Remove function.
4743 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4744 i386_linux_saved_pc_after_call): Removed.
4745 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4746 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4747 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4748
4749 * i386-tdep.c (i386_frameless_signal_p): New function.
4750 (i386_frame_chain): Deal with frameless signals.
4751 (i386_sigtramp_saved_sp): New function.
4752 (i386_frame_saved_pc): Deal with frameless signals.
4753 (i386_saved_pc_after_call): Make sure the correct value is
4754 returned just after entry into a sigtramp.
4755 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4756 i386fbsd4_sc_sp_offset): New variables.
4757 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4758 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4759 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4760 similiar to what we already did for sc_pc_offset.
4761 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4762 tdep->sc_sp_offset.
4763
4764 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4765
4766 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4767
4768 * config/i386/tm-x86-64linux.h: New.
4769 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4770 definitions.
4771 * config/i386/nm-x86-64.h: Rename to ...
4772 * config/i386/nm-x86-64linux.h: ... this one.
4773 * config/i386/x86-64linux.mh: Reflect the above change.
4774
4775 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4776
4777 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4778 with sigcontext_addr. Add sc_sp_offset.
4779 (i386bsd_sigtramp_saved_pc): Remove prototype.
4780 (i386bsd_sicontext_addr): Add prototype.
4781 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4782 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4783 (i386_svr4_sigtramp_saved_pc): Removed.
4784 (i386_svr4_sigcontext_addr): New function.
4785 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4786 Initialize tdep->sigcontext_addr instead. Initialize
4787 tdep->sc_pc_offset and tdep->sc_sp_offset.
4788 (i386_gdbarch_init): Likewise.
4789 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4790 any more.
4791 (i386bsd_sigtramp_saved_pc): Remove function.
4792 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4793 Initialize tdep->sigcontext_addr instead. Initialize
4794 tdep->sc_pc_offset.
4795 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4796 of tdep->sigtramp_saved_pc.
4797 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4798 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4799 instead.
4800
4801 * i386-tdep.c (i386_frameless_function_invocation,
4802 i386_frame_num_args, i386_frame_init_saved_regs,
4803 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4804 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4805 i386_extract_return_value, i386_store_return_value,
4806 i386_extract_struct_value_address, i386_register_virtual_type,
4807 i386_register_convertible, i386_register_convert_to_virtual,
4808 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4809 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4810 static.
4811
4812 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4813
4814 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4815
4816 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4817 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4818 this macro. Include "value.h".
4819
4820 2002-06-30 Aidan Skinner <aidan@velvet.net>
4821
4822 * ada-exp.tab.c: remove as it's a generated file
4823 * ada-lex.c: remove as it's a generated file
4824
4825 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4826
4827 * config/i386/tm-i386.h (struct frame_info, struct
4828 frame_saved_regs, struct value, struct type): Remove forward
4829 declarations.
4830
4831 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4832 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4833 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4834 (FILL_FPXREGSET): Define.
4835
4836 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4837
4838 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4839 i[3456]86-*-netbsd* case.
4840 * config/i386/tm-obsd.h: Removed.
4841 * config/i386/obsd.mt: Removed.
4842 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4843 core-aout.o.
4844 (MH_CFLAGS): Add -DYYDEBUG=0.
4845
4846 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4847 i386nbsd_sc_pc_offset on OpenBSD too.
4848
4849 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4850 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4851 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4852 define.
4853 * i386bsd-tdep.c: Include "arch-utils.h".
4854 (i386bsd_aout_in_solib_call_trampoline): New function.
4855 (i386bsd_init_abi): Set in_solib_call_trampoline to
4856 i386bsd_aout_in_solib_call_trampoline.
4857 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4858 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4859
4860 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4861
4862 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4863 (struct obstack, struct bcache): Add opaque declarations.
4864 * Makefile.in (macrotab_h): Update
4865
4866 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4867
4868 * blockframe.c (generic_find_dummy_frame): Change return type to
4869 ``struct regcache''.
4870 (struct dummy_frame): Replace field ``registers'' with regcache, a
4871 struct regcache object.
4872 (generic_find_dummy_frame): Update.
4873 (generic_push_dummy_frame): Update. Use regcache_xfree,
4874 regcache_xmalloc and regcache_cpy.
4875 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4876 regcache_xfree.
4877 (deprecated_generic_find_dummy_frame): Update.
4878 (generic_read_register_dummy): Update. Use
4879 regcache_read_as_address.
4880 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4881 (generic_get_saved_register): Update. Use regcache_read.
4882
4883 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4884
4885 * Makefile.in (objfiles_h): Add $(bcache_h).
4886 * objfiles.h: Include "bcache.h".
4887
4888 * Makefile.in (symtab_h): Remove $(bcache_h).
4889 * symtab.h: Do not include "bcache.h".
4890
4891 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4892
4893 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4894 generic_func_frame_chain_valid.
4895
4896 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4897
4898 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4899 * config/i386/tm-fbsd.h: Likewise.
4900
4901 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4902
4903 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4904 generic_unwind_get_saved_register.
4905
4906 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4907
4908 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4909 * regcache.c (supply_register): Add missing argument to
4910 register_buffer call.
4911
4912 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4913
4914 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4915 Solaris /bin/grep does not not like it. From Peter Schauer.
4916
4917 2002-06-26 Tom Tromey <tromey@redhat.com>
4918
4919 * command.h (add_setshow_cmd): Declare.
4920 (add_setshow_cmd_full): Declare.
4921 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4922 returns void. Use add_setshow_cmd_full.
4923 (add_setshow_cmd_full): New function.
4924 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4925 (add_setshow_boolean_cmd): Likewise.
4926
4927 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4928
4929 * config/vax/tm-vax.h: Protect from multiple inclusion.
4930 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4931 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4932 * config/vax/tm-vaxbsd.h: ...here. New file.
4933 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4934
4935 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4936
4937 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4938 (BELIEVE_PCC_PROMOTION): Remove.
4939 (AP_REGNUM): Move to...
4940 * config/vax/nm-vax.h: ...here.
4941 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4942 (vax_breakpoint_from_pc): New function.
4943 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4944 and gdbarch_believe_pcc_promotion.
4945
4946 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4947
4948 * Makefile.in (vax_tdep_h): Define.
4949 (vax-tdep.o): Use $(vax_tdep_h).
4950 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4951 (vax_dump_tdep): New function.
4952 (_initialize_vax_tdep): Register vax_dump_tdep.
4953 * vax-tdep.h: Include osabi.h.
4954 (struct gdbarch_tdep): New.
4955
4956 2002-06-26 Andrew Cagney <cagney@redhat.com>
4957
4958 * frame.h (deprecated_generic_find_dummy_frame): Rename
4959 generic_find_dummy_frame.
4960 * blockframe.c (generic_find_dummy_frame): Make static.
4961 (deprecated_generic_find_dummy_frame): New function.
4962 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4963 generic_find_dummy_frame with deprecated_find_dummy_frame.
4964 (sh64_nofp_frame_init_saved_regs): Ditto.
4965 (sh_fp_frame_init_saved_regs): Ditto.
4966 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4967 (s390_frame_chain): Ditto.
4968 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4969
4970 2002-06-26 Grace Sainsbury <graces@redhat.com>
4971
4972 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4973 gdbarch vector are at the top.
4974 (NUM_REGS): Remove.
4975 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4976 (FRAME_ARGS_ADDRESS): Remove.
4977 (FRAME_LOCALS_ADDRESS): Remove.
4978 (FRAME_NUM_ARGS): Remove.
4979 (FRAME_ARGS_SKIP): Remove.
4980 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4981 (m68k_gdbarch_init): Add gdbarch initializations for macros
4982 undefined in tm-m68k.h
4983
4984 2002-06-26 Grace Sainsbury <graces@redhat.com>
4985
4986 * monitor.h: Add the function regname to monitor_ops
4987 structure. This way NUM_REGS does not have to be a constant.
4988 * monitor.c (monitor_fetch_register): Added support for regname
4989 function. The function is called if the array regnames is NULL.
4990 (monitor_store_register): Same.
4991 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4992 regnames array.
4993 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4994 cpu32bug_cmds.regname to point to new function.
4995 * abug-rom.c (abug_regname): Same as above.
4996 (init_abug_cmds): Same.
4997 * dbug-rom.c (dbug_regname): Same as above.
4998 (init_dbug_cmds): Same.
4999 * remote-est.c (est_regname): Same.
5000 (init_est_cmds): Same.
5001 * rom68k-rom.c (rom68k_regname): Same.
5002 (init_rom68k_cmds): Same.
5003
5004 2002-06-25 Tom Tromey <tromey@redhat.com>
5005
5006 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5007
5008 2002-06-25 Andrew Cagney <cagney@redhat.com>
5009
5010 * infrun.c (stop_registers): Change variable's type to ``struct
5011 regcache'''.
5012 (xmalloc_inferior_status): Delete function.
5013 (free_inferior_status): Delete function.
5014 (normal_stop): Use regcache_cpy.
5015 (struct inferior_status): Change type of fields ``stop_registers''
5016 and ``registers'' to ``struct regcache''.
5017 (write_inferior_status_register): Use regcache_write.
5018 (save_inferior_status): Instead of calling
5019 xmalloc_inferior_status, allocate the inf_status buffer directly.
5020 Use regcache_dup_no_passthrough and regcache_dup to save the
5021 buffers.
5022 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5023 Replace the stop_registers regcache instead of overriding it. Use
5024 regcache_xfree. Instead of calling free_inferior_status, xfree
5025 the buffer directly.
5026 (discard_inferior_status): Use regcache_xfree. Instead of calling
5027 free_inferior_status, xfree the buffer directly.
5028 (build_infrun): Use regcache_xmalloc.
5029 (_initialize_infrun): Delete redundant call to build_infrun.
5030
5031 * Makefile.in (infcmd.o): Add $(regcache_h).
5032
5033 * infcmd.c: Include "regcache.h".
5034 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5035 obtain the address of `stop_registers' register buffer.
5036 (print_return_value): Ditto.
5037
5038 * inferior.h (struct regcache): Add opaque declaration.
5039 (stop_registers): Change variable's declared type to ``struct
5040 regcache''.
5041
5042 2002-06-24 Tom Tromey <tromey@redhat.com>
5043
5044 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5045 * target.c (initialize_targets): Fixed typo in
5046 trust-readonly-sections `show' documentation.
5047
5048 * main.c: Marked all strings with _().
5049
5050 2002-06-24 Don Howard <dhoward@redhat.com>
5051
5052 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5053 that means max CORE_ADDR+1.
5054 (lookup_mem_region): Ditto.
5055 (mem_info_command): Ditto.
5056
5057 2002-06-24 Grace Sainsbury <graces@redhat.com>
5058
5059 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5060 (REGISTER_BYTES_OK): Remove.
5061 (REGISTER_BYTES): Remove.
5062 (STORE_STRUCT_RETURN): Remove.
5063 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5064 (STORE_RETURN_VALUE): Remove.
5065 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5066 (FRAME_CHAIN): Remove.
5067 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5068 (FRAME_SAVED_PC): Remove.
5069 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5070 (m68k_store_struct_return): Add.
5071 (m68k_deprecated_extract_return_value): Add.
5072 (m68k_deprecated_extract_struct_value_address): Add.
5073 (m68k_store_return_value): Add.
5074 (m68k_frame_chain): Add.
5075 (m68k_frameless_function_invocation): Add.
5076 (m68k_frame_saved_pc): Add.
5077 (m68k_gdbarch_init): added set_gdbarch calls for new
5078 functions and deleted macros.
5079
5080 2002-06-23 Tom Tromey <tromey@redhat.com>
5081
5082 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5083 (ALLDEPFILES): Likewise.
5084 (udiheaders): Removed.
5085 (udip2soc.o): Likewise.
5086 (udi2go32.o): Likewise.
5087 (udr.o): Likewise.
5088 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5089
5090 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5091
5092 * infrun.c (_initialize_infrun): Delete unnecessary call to
5093 build_infrun.
5094
5095 * regcache.h: Update comments describing the regcache_cpy family
5096 of functions.
5097 (regcache_save, regcache_restore): Delete declaration.
5098 (regcache_save_no_passthrough): Delete declaration.
5099 (regcache_restore_no_passthrough): Delete declaration.
5100 * regcache.c (regcache_save): Delete function.
5101 (regcache_save_no_passthrough): Delete function.
5102 (regcache_restore): Delete function.
5103 (regcache_restore_no_passthrough): Delete function.
5104
5105 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5106
5107 * config/m68k/tm-m68k.h: Fix typo.
5108 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5109 (m68k_frame_init_saved_regs): Declare.
5110
5111 2002-06-21 Jim Blandy <jimb@redhat.com>
5112
5113 Remove some vestiges of Harris 88k support.
5114 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5115 register numbering quirk.
5116 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5117 odd symbols occurring in Harris 88k ELF targets.
5118
5119 2002-06-21 Tom Tromey <tromey@redhat.com>
5120
5121 * gdb_locale.h: New file.
5122 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5123 (defs_h): Added gdb_locale.h.
5124 * configure, config.in: Rebuilt.
5125 * configure.in (PACKAGE): Define.
5126 * defs.h: Include gdb_locale.h.
5127 * main.c (captured_main): Call setlocale, bindtextdomain,
5128 textdomain.
5129
5130 2002-06-21 Dave Brolley <brolley@redhat.com>
5131
5132 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5133 * config/frv/frv.mt: New file.
5134 * config/frv/tm-frv.h: New file.
5135 * configure.tgt: Support frv-*-*.
5136 * Makefile.in (frv-tdep.o): New target.
5137 * frv-tdep.c: New file.
5138 * NEWS: Mention frv.
5139
5140 2002-06-21 Dave Brolley <brolley@redhat.com>
5141
5142 * MAINTAINERS: Add self to "Write After Approval" list.
5143
5144 2002-06-21 Grace Sainsbury <graces@redhat.com>
5145
5146 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5147 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5148 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5149 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5150 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5151
5152 * m68k-tdep.c: Include arch-utils.h
5153 (m68k_register_raw_size): Add.
5154 (m68k_register_virtual_size): Add.
5155 (m68k_register_virtual_type): Add.
5156 (m68k_register_name): Add.
5157 (m68k_stack_align): Add.
5158 (m68k_register_byte): Add.
5159 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5160 tm-m68k.h.
5161
5162 2002-06-21 Grace Sainsbury <graces@redhat.com>
5163
5164 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5165 m68k_find_saved_regs.
5166 (m68k_pop_frame): Removed saved_regs structure, and replaced
5167 references to it with frame->saved_regs.
5168 (m68k_gdbarch_init): Added function calls to initialize the
5169 gdbarch structure.
5170 (m68k_fix_call_dummy): Add.
5171 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5172 (CALL_DUMMY): Remove.
5173 (CALL_DUMMY_LENGTH): Remove.
5174 (CALL_DUMMY_START_OFFSET): Remove.
5175 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5176 (FIX_CALL_DUMMY): Remove.
5177 (PUSH_DUMMY_FRAME): Remove.
5178 (POP_FRAME): Remove.
5179
5180 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5181
5182 * parse.c (parse_fprintf): New function used to avoid calls to
5183 fprintf in bison parser generated debug code.
5184 * parser-defs.h: Declaration of new parse_fprintf function.
5185 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5186 Set YYDEBUG to 1 by default.
5187 Set YYFPRINTF as parse_fprintf.
5188
5189 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5190
5191 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5192 encoding anymore.
5193 (pointer_encoding, enum ptr_encoding): New.
5194 (execute_cfa_program): Take care about pointer encoding.
5195 (dwarf2_build_frame_info): Only call parse_frame_info for
5196 .debug_frame and .eh_frame.
5197 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5198 fixed augmentation handling, added relative addressing,
5199 ignore duplicate FDEs. Added comments.
5200 * dwarf2cfi.c: Reindented.
5201
5202 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5203
5204 * event-top.c (command_handler): Don't use space_at_cmd_start
5205 unless there is sbrk() on the host. Assign time and space data
5206 to union fields of the appropriate length.
5207
5208 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5209
5210 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5211 x86_64_register_name. Return type changed to 'const char *'.
5212 (x86_64_register_name2nr): Rename to x86_64_register_number.
5213 (x86_64_gdbarch_init): Update to reflect the change.
5214 * x86-64-tdep.h: Ditto.
5215 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5216 (supply_fpregset): Ditto.
5217
5218 2002-06-19 Andrew Cagney <cagney@redhat.com>
5219
5220 * regcache.h: Update copyright.
5221 (struct regcache, struct gdbarch): Add opaque declarations.
5222 (current_regcache): Declare global variable.
5223 (regcache_read, regcache_write): Add gdbarch parameter.
5224 (regcache_save, regcache_save_no_passthrough)
5225 (regcache_restore, regcache_restore_no_passthrough)
5226 (regcache_dup, regcache_dup_no_passthrough)
5227 (regcache_cpy, regcache_cpy_no_passthrough)
5228 (deprecated_grub_regcache_for_registers)
5229 (deprecated_grub_regcache_for_register_valid)
5230 (regcache_valid_p): Add function declarations.
5231
5232 * regcache.c: Update copyright.
5233 (regcache_descr_handle): New global variable.
5234 (struct regcache_descr): Define.
5235 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5236 (regcache_descr, xfree_regcache_descr): New functions.
5237 (struct regcache): Define.
5238 (regcache_xmalloc, regcache_xfree): New functions.
5239 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5240 (regcache_dup, regcache_dup_no_passthrough): New functions.
5241 (regcache_valid_p, regcache_read_as_address): New functions.
5242 (deprecated_grub_regcache_for_registers): New function.
5243 (deprecated_grub_regcache_for_register_valid): New function.
5244 (current_regcache): New global variable.
5245 (register_buffer): Add regcache parameter. Update calls.
5246 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5247 (read_register_gen, write_register_gen): Update register_buffer
5248 call. Test for legacy_p instead of gdbarch_register_read_p or
5249 gdbarch_register_write_p.
5250 (regcache_collect): Update register_buffer call.
5251 (build_regcache): Rewrite. Use deprecated grub functions.
5252 (regcache_save, regcache_save_no_passthrough): New functions.
5253 (regcache_restore, regcache_restore_no_passthrough): New
5254 functions.
5255 (_initialize_regcache): Create the regcache_data_handle. Swap
5256 current_regcache global variable.
5257
5258 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5259 parameter to regcache_read and regcache_write calls.
5260 (sh4_register_read): Ditto.
5261 (sh64_pseudo_register_read): Ditto.
5262 (sh64_register_read): Ditto.
5263 (sh_pseudo_register_write): Ditto.
5264 (sh4_register_write): Ditto.
5265 (sh64_pseudo_register_write): Ditto.
5266 (sh64_register_write): Ditto.
5267
5268 * defs.h (XCALLOC): Define.
5269
5270 2002-06-19 Grace Sainsbury <graces@redhat.com>
5271
5272 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5273 * m68k-tdep.c (m68k_gdbarch_init): Added.
5274 (m68k_dump_tdep): Added.
5275
5276 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * ada-lang.c (fill_in_ada_prototype): Update comment.
5279
5280 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5281
5282 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5283 MIPS_ABI_LAST.
5284 (mips_abi_string, mips_abi_strings): New.
5285 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5286 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5287 tdep->mips_abi_string. Honor mips_abi_string. Default to
5288 O32 if no ABI is found.
5289 (mips_dump_tdep): Use mips_abi_strings.
5290 (mips_abi_update): New function.
5291 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5292 ``set mips abi'' and ``show mips abi''. Check the size of
5293 mips_abi_strings.
5294
5295 2002-06-19 Andrew Cagney <cagney@redhat.com>
5296
5297 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5298 constant.
5299
5300 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5301
5302 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5303 current frame using only the first stack size adjustment. All
5304 subsequent size adjustments are not considered to be part of
5305 the "static" part of the current frame.
5306 Compute the address of the saved registers relative to the
5307 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5308 in use in this frame.
5309
5310 2002-06-18 Don Howard <dhoward@redhat.com>
5311
5312 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5313 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5314 suggesting this solution.
5315
5316 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5317
5318 * config/romp/xm-rtbsd.h: Delete file.
5319 * config/romp/rtbsd.mh: Delete file.
5320
5321 2002-06-18 Keith Seitz <keiths@redhat.com>
5322
5323 * breakpoint.c (condition_command): Post breakpoint_modify
5324 when a condition is added to an existing breakpoint.
5325 (commands_command): Likewise for commands.
5326 (set_ignore_count): Likewise for ignore counts.
5327 If no tty, do not simply return, still need to send event
5328 notification.
5329 (ignore_command): Only print a newline if the command came
5330 from a tty.
5331 Don't call breakpoints_changed, since this is now properly
5332 handled by set_ignore_count.
5333
5334 2002-06-18 Andrew Cagney <cagney@redhat.com>
5335
5336 * MAINTAINERS: Note that cris-elf target can be compiled with
5337 -Werror.
5338 * cris-tdep.c (cris_register_name): Make return type constant.
5339 (cris_breakpoint_from_pc): Ditto.
5340
5341 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5342
5343 * frame.h (struct frame_info): Change type of context to
5344 'struct context'.
5345
5346 2002-06-17 Andrew Cagney <cagney@redhat.com>
5347
5348 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5349 pointer.
5350 * gdbarch.h, gdbarch.c: Regenerate.
5351 * config/mips/tm-mips.h (mips_register_name): Update.
5352 * i386-tdep.h (i386_register_name): Update.
5353 * mips-tdep.c (mips_register_name): Update
5354 * alpha-tdep.c (alpha_register_name): Update.
5355 * arch-utils.c (legacy_register_name): Update.
5356 * arch-utils.h (legacy_register_name): Update.
5357 * avr-tdep.c (avr_register_name): Update.
5358 * ia64-tdep.c (ia64_register_name): Update.
5359 * i386-tdep.c (i386_register_name): Update.
5360 * sparc-tdep.c (sparc32_register_name): Update.
5361 (sparc64_register_name): Update.
5362 (sparclite_register_name): Update.
5363 (sparclet_register_name): Update.
5364 * sh-tdep.c (sh_generic_register_name): Update.
5365 (sh_sh_register_name): Update.
5366 (sh_sh3_register_name): Update.
5367 (sh_sh3e_register_name): Update.
5368 (sh_sh_dsp_register_name): Update.
5369 (sh_sh3_dsp_register_name): Update.
5370 (sh_sh4_register_name): Update.
5371 (sh_sh64_register_name): Update.
5372 * s390-tdep.c (s390_register_name): Update.
5373 * rs6000-tdep.c (rs6000_register_name): Update.
5374 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5375 (ns32k_register_name_32382): Update.
5376 * d10v-tdep.c (d10v_ts2_register_name): Update.
5377 (d10v_ts3_register_name): Update.
5378 * xstormy16-tdep.c (xstormy16_register_name): Update.
5379 * vax-tdep.c (vax_register_name): Update.
5380 * v850-tdep.c (v850_register_name): Update.
5381 * m68hc11-tdep.c (m68hc11_register_name): Update.
5382 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5383 (am33_register_name): Update.
5384
5385 2002-06-17 Grace Sainsbury <graces@redhat.com>
5386
5387 * m68k-tdep.c: Reindented.
5388
5389 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5390
5391 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5392 list of predefined types.
5393
5394 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5395
5396 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5397 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5398 REGISTER_CONVERT_TO_RAW): Remove defines.
5399 (i386_register_virtual_type, i386_register_convertible,
5400 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5401 Remove prototypes.
5402 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5403 macros mentioned above.
5404
5405 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5406 (i386lynx_saved_pc_after_call): Remove prototype.
5407 * i386ly-tdep.c: Include "i386-tdep.h".
5408 (i386lynx_saved_pc_after_call): Make static. Use
5409 read_memory_nobpt instead of read_memory. Use
5410 read_memory_unsigned_integer instead of read_memory_integer.
5411 (i386lynx_init_abi): New function.
5412 (i386lynx_coff_osabi_sniffer): New function.
5413 (_initialize_i386bsd_tdep): New function.
5414
5415 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5416 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5417 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5418 (i386_fix_call_dummy): Remove prototype.
5419 * i386-tdep.c (i386_call_dummy_words): New variable.
5420 (i386_gdbarch_init): Adjust for removal of the
5421 macros mentioned above.
5422
5423 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5424
5425 * command.h (add_setshow_auto_boolean_cmd): Replace
5426 add_set_auto_boolean_cmd.
5427 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5428 add_set_auto_boolean_cmd.
5429 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5430 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5431 mask-address'' command.
5432 (show_mask_address): Add cmd parameter.
5433 * remote.c (add_packet_config_cmd): Update. Change type of
5434 set_func and show_func to cmd_sfunc_ftype.
5435 (_initialize_remote): Update `set remote Z-packet'
5436 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5437 (show_remote_protocol_e_packet_cmd): Ditto.
5438 (show_remote_protocol_E_packet_cmd): Ditto.
5439 (show_remote_protocol_P_packet_cmd): Ditto.
5440 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5441 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5442 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5443 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5444 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5445 (show_remote_protocol_Z_packet_cmd): Ditto.
5446 (show_remote_protocol_binary_download_cmd): Ditto.
5447 (show_remote_cmd): Pass NULL to all of above.
5448
5449 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5450
5451 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5452 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5453 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5454 POP_FRAME): Remove defines.
5455 (i386_push_arguments, i386_store_struct_return,
5456 i386_extract_return_value, i386_store_return_value,
5457 i386_extract_struct_value_address, i386_push_dummy_frame,
5458 i386_pop_frame): Renove prototypes.
5459 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5460 macros mentioned above.
5461
5462 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5463
5464 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5465 add_set_boolean_cmd.
5466 (add_setshow_cmd): New function.
5467 * command.h (add_setshow_boolean_cmd): Replace
5468 add_set_boolean_cmd.
5469 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5470 and ``set rdiromatzero''.
5471 * maint.c (_initialize_maint_cmds): Update commented out code.
5472 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5473 * target.c (initialize_targets): Update `set
5474 trust-readonly-sections'.
5475 * remote.c (_initialize_remote): Update `set remotebreak'.
5476
5477 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5478
5479 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5480 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5481 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5482 fit into multi-arch framework.
5483 (i386_breakpoint_from_pc): New function.
5484 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5485 above.
5486
5487 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5488 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5489 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5490 (i386_frameless_function_invocation, i386_frame_num_args,
5491 i386_frame_init_saved_regs): Remove prototypes.
5492 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5493 macros mentioned above.
5494
5495 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5496
5497 * cli/cli-decode.c (set_cmd_cfunc): Update.
5498 (set_cmd_sfunc): Update.
5499 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5500 (set_cmd_sfunc, set_cmd_cfunc): Update.
5501 * cli/cli-decode.h: Update.
5502
5503 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5504
5505 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5506 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5507
5508 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5509
5510 * defs.h (auto_boolean): Declare enum.
5511 * command.h (cmd_auto_boolean): Delete enum.
5512 * mips-tdep.c (mask_address_var): Update.
5513 (mips_mask_address_p): Update.
5514 (show_mask_address): Update.
5515 * remote.c (struct packet_config): Update.
5516 (update_packet_config): Update.
5517 (show_packet_config_cmd): Update.
5518 (packet_ok): Update.
5519 (add_packet_config_cmd): Update.
5520 (_initialize_remote):
5521 * command.h: Update.
5522 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5523 (do_setshow_command): Update.
5524 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5525 * cli/cli-decode.h: Update.
5526
5527 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5528
5529 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5530 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5531 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5532 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5533 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5534 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5535
5536 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5537 list of DJGPP COFF targets.
5538
5539 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5540 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5541 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5542 (FP0_REGNUM): Remove define.
5543 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5544 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5545 (i386_register_virtual_size): Remove protoype.
5546 * i386-tdep.c (i386_register_virtual_size): Removed.
5547 (i386_extract_return_value, i386_store_return_value): Use
5548 FP0_REGNUM instead of NUM_FREGS to determine whether the
5549 floating-point registers are available.
5550 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5551 Adjust for removal of macros mentioned above.
5552
5553 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5554
5555 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5556 comments.
5557 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5558 Remove prototypes.
5559 (supply_gregset, fill_gregset): Remove use of register keyword and
5560 remove declaration for regmap. Use I386_NUM_GREGS instead of
5561 NUM_REGS and NUM_FREGS.
5562 (FPREGSET_FSAVE_OFFSET): Remove.
5563 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5564 NUM_FREGS to determine whether the floating-point registers are
5565 available.
5566
5567 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5568 gnu_store_registers): Replace usage of NUM_GREGS with
5569 I386_NUM_GREGS.
5570
5571 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5572 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5573 usage of NUM_GREGS with I386_NUM_GREGS.
5574
5575 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5576
5577 * i386bsd-nat.c: Include "i386-tdep.h".
5578 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5579 I386_NUM_GREGS.
5580
5581 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5582 and associated comment. They no longer make any sense, since we
5583 don't use this file anymore on Linux.
5584
5585 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5586 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5587 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5588 elements in these arrays.
5589 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5590 MAX_NUM_REGS.
5591
5592 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5593
5594 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5595 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5596
5597 2002-06-14 Andrew Cagney <cagney@redhat.com>
5598
5599 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5600 EXTRACT_RETURN_VALUE.
5601 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5602 EXTRACT_STRUCT_VALUE_ADDRESS.
5603 * gdbarch.h, gdbarch.c: Regenerate.
5604
5605 * values.c (value_being_returned): Handle
5606 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5607 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5608
5609 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5610 * arm-tdep.c (arm_gdbarch_init): Update.
5611 * avr-tdep.c (avr_gdbarch_init): Update.
5612 * cris-tdep.c (cris_gdbarch_init): Update.
5613 * d10v-tdep.c (d10v_gdbarch_init): Update.
5614 * ia64-tdep.c (ia64_gdbarch_init): Update.
5615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5616 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5617 * s390-tdep.c (s390_gdbarch_init): Update.
5618 * sh-tdep.c (sh_gdbarch_init): Update.
5619 * s390-tdep.c (s390_gdbarch_init): Update.
5620 * sparc-tdep.c (sparc_gdbarch_init): Update.
5621 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5622 * v850-tdep.c (v850_gdbarch_init): Update.
5623 * vax-tdep.c (vax_gdbarch_init): Update.
5624 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5626
5627 * config/arc/tm-arc.h: Update.
5628 * config/d30v/tm-d30v.h: Update.
5629 * config/fr30/tm-fr30.h: Update.
5630 * config/h8300/tm-h8300.h: Update.
5631 * config/h8500/tm-h8500.h: Update.
5632 * config/i386/tm-i386.h: Update.
5633 * config/i386/tm-ptx.h: Update.
5634 * config/i386/tm-symmetry.h: Update.
5635 * config/i960/tm-i960.h: Update.
5636 * config/m32r/tm-m32r.h: Update.
5637 * config/m68k/tm-delta68.h: Update.
5638 * config/m68k/tm-linux.h: Update.
5639 * config/m68k/tm-m68k.h: Update.
5640 * config/m88k/tm-m88k.h: Update.
5641 * config/mcore/tm-mcore.h: Update.
5642 * config/mips/tm-mips.h: Update.
5643 * config/mn10200/tm-mn10200.h: Update.
5644 * config/pa/tm-hppa.h: Update.
5645 * config/pa/tm-hppa64.h: Update.
5646 * config/sparc/tm-sp64.h: Update.
5647 * config/sparc/tm-sparc.h: Update.
5648 * config/sparc/tm-sparclet.h: Update.
5649 * config/z8k/tm-z8k.h: Update.
5650
5651 2002-06-14 Andrew Cagney <cagney@redhat.com>
5652
5653 * Makefile.in (i386_linux_tdep_h): Define.
5654 (i386_tdep_h, i387_tdep_h): Define.
5655 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5656 $(i386_tdep_h) and $(i387_tdep_h).
5657 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5658
5659 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5660
5661 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5662 Already covered by the default.
5663
5664 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5665 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5666 (i386_gdbarch_init): Initialize long_double_format and long_double
5667 bit.
5668
5669 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5670 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5671 Move these to ...
5672 * config/i386/i386sol2.mh: ... here.
5673 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5674 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5675 (SIGCONTEXT_PC_OFFSET): Remove define.
5676 (IN_SIGTRAMP): Remove define.
5677 * i386-sol2-tdep.c: New file.
5678
5679 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5680 * config/i386/tm-i386nw.h: Removed.
5681
5682 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5683 USE_STRUCT_CONVENTION): Remove defines.
5684 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5685 (get_longjmp_target): Remove prototype.
5686 (IN_SIGTRAMP): Remove define.
5687 (i386bsd_in_sigtramp): Remove prototype.
5688 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5689 function. Update comment accordingly
5690 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5691 (FRAME_SAVED_PC): Remove define.
5692 (i386bsd_frame_saved_pc): Remove prototype.
5693 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5694 GET_LONGJMP_TARGET): Remove defines.
5695 (get_longjmp_target): Remove prototype.
5696 (IN_SIGTRAMP): Remove define.
5697 (i386bsd_in_sigtramp): Remove prototype.
5698 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5699 function. Update comment accordingly
5700 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5701 (FRAME_SAVED_PC): Remove define.
5702 (i386bsd_frame_saved_pc): Remove prototype.
5703 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5704 Remove prototype.
5705 (USE_STRUCT_CONVENTION): Remove prototype.
5706 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5707 declaration.
5708 (_initialize_i386bsd_nat): Revise logic to determine some
5709 constants at compile time when compiling a native GDB. Warn if
5710 things don't match up with what we expect.
5711 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5712 Remove variables.
5713 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5714 to use date stored in `struct gdbarch_tdep'.
5715 (i386bsd_sigcontext_offset): Remove varaible.
5716 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5717 stored in `struct gdbarch_tdep'.
5718 (i386bsd_frame_saved_pc): Make static.
5719 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5720 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5721 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5722 i386fbsd4_sc_pc_offset): New variables.
5723 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5724 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5725 functions.
5726 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5727 functions.
5728 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5729 Modify the value of i386fbsd_sigtramp_start and
5730 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5731 i386fbsd_sigtramp_end.
5732 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5733 function.
5734
5735 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5736 define to i386-linux-tdep.h.
5737 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5738 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5739 defines.
5740 (i386_linux_register_name, i386_linux_register_byte,
5741 i386_linux_register_raw_size): Remove prototypes.
5742 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5743 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5744 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5745 TARGET_WRITE_PC): Remove defines.
5746 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5747 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5748 i386_linux_write_pc): Remove prototypes.
5749 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5750 (get_longjmp_target): Remove prototype.
5751 * i386-linux-tdep.h: New file.
5752 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5753 * i386-linux-tdep.c: Include "i386-tdep.h" and
5754 "i386-linux-tdep.h".
5755 (i386_linux_register_name, i386_linux_register_byte,
5756 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5757 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5758 Make static.
5759 (i386_linux_init_abi): New function.
5760 (_initialize_i386_linux_tdep): New function.
5761
5762 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5763 (i386_saved_pc_after_call): Remove prototype.
5764 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5765 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5766 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5767 (i386_register_name, i386_stab_reg_to_regnum,
5768 i386_dwarf_reg_to_regnum): Remove prototypes.
5769 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5770 SIZEOF_SSE_REGS): Remove defines.
5771 (REGISTER_BYTES): Remove define.
5772 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5773 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5774 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5775 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5776 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5777 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5778 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5779 (get_longjmp_target): Remove prototype.
5780 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5781 (sigtramp_saved_pc): Remove define.
5782 (i386v4_sigtramp_saved_pc): Remove prototype.
5783 * config/i386/tm-go32.h (FRAME_CHAIN,
5784 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5785 (i386go32_frame_saved_pc): Remove prototype.
5786 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5787 (get_longjmp_target): Remove prototype.
5788 * i386-tdep.h: Include "osabi.h".
5789 (enum i386_abi): Removed.
5790 (enum struct_return): New enum.
5791 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5792 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5793 sc_pc_offset members.
5794 (i386_gdbarch_register_os_abi): Remove prototype.
5795 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5796 I386_SSE_NUM_REGS): New defines.
5797 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5798 I386_SSE_SIZEOF_REGS): New defines.
5799 (i386_register_name, i386_register_byte, i386_register_raw_size):
5800 New prototypes.
5801 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5802 (i386bsd_sigtramp_saved_pc): New prototype.
5803 * i386-tdep.c: Don't include "elf-bfd.h".
5804 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5805 i386_frame_chain, i386_saved_pc_after_call): Make static.
5806 (i386_frame_saved_pc): Rewrite to call architecture dependent
5807 function to deal with signal handlers. Make static.
5808 (i386go32_frame_saved_pc): Removed.
5809 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5810 Removed.
5811 (i386_get_longjmp_target): New function.
5812 (default_struct_convention, pcc_struct_convention,
5813 reg_struct_convention, valid_conventions, struct_convention): New
5814 variables.
5815 (i386_use_struct_convention): New function.
5816 (i386v4_sigtramp_saved_pc): Renamed to
5817 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5818 (i386_pc_in_sigtramp): New function.
5819 (i386_abi_names): Removed.
5820 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5821 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5822 Removed.
5823 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5824 i386_gdbarch_register_os_abi): Removed.
5825 (struct i386_abi_handler): Removed.
5826 (i386_abi_handler_list): Removed.
5827 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5828 functions.
5829 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5830 i386_nw_init_abi): New functions.
5831 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5832 Use set_gdbarch_xxx() calls instead of relying on macros for a
5833 number of calls.
5834 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5835 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5836 Register the various architecture variants defined in this file.
5837
5838 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5839
5840 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5841 (struct main_type): Remove arg_types member. Update comments for
5842 struct field.
5843 (TYPE_ARG_TYPES): Remove.
5844 (TYPE_FN_FIELD_ARGS): Update.
5845 (smash_to_method_type): Update prototype.
5846
5847 * c-typeprint.c (cp_type_print_method_args): Take method type
5848 instead of argument list. Use new argument layout. Simplify.
5849 (c_type_print_args): Use new argument layout. Simplify.
5850 (c_type_print_base): Update call to cp_type_print_method_args.
5851 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5852 argument; use die->type instead. Update call to
5853 smash_to_method_type.
5854 (read_structure_scope): Update call to dwarf2_add_member_fn.
5855 * gdbtypes.c (allocate_stub_method): Update comment.
5856 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5857 Use new argument layout.
5858 (check_stub_method): Use new argument layout. Don't count
5859 void as an argument.
5860 (print_arg_types): Update comments. Use new argument layout.
5861 (recursive_dump_type): Don't print arg_types member.
5862 * hpread.c (hpread_read_struct_type): Use new argument layout.
5863 (fixup_class_method_type): Likewise.
5864 (hpread_type_lookup): Likewise.
5865 * stabsread.c (read_type): Update calls to read_args and
5866 smash_to_method_type.
5867 (read_args): Use new argument layout. Simplify.
5868 * valops.c (typecmp): Use new argument layout. Update parameters
5869 and comments. Simplify.
5870 (hand_function_call): Use new argument layout.
5871 (search_struct_method): Update call to typecmp.
5872 (find_overload_match): Use new argument layout.
5873
5874 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5875
5876 * NEWS: Mention multithreaded debug support for gdbserver.
5877
5878 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5879
5880 * MAINTAINERS: Mention NEWS.
5881
5882 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5883
5884 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5885 (struct mips_objfile_private, compare_pdr_entries): New.
5886 (non_heuristic_proc_desc): Read the ".pdr" section if it
5887 is present.
5888
5889 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5890
5891 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5892 (arm_debug): New static variable.
5893 (_initialize_arm_tdep): Add ``set debug arm'' command.
5894
5895 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5896
5897 * Makefile.in (sim_arm_h): Define.
5898 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5899 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5900 (arm_register_sim_regno): New function, map an internal REGNUM
5901 onto a simulator register number.
5902 (arm_gdbarch_init): Set register_sim_regno.
5903
5904 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5905
5906 * MAINTAINERS: Add self.
5907
5908 2002-06-11 Jim Blandy <jimb@redhat.com>
5909
5910 * source.c (source_info): Mention whether the symtab has
5911 information about preprocessor macros.
5912
5913 Call the command `info macro', not `show macro'.
5914 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5915 Fix error message.
5916 (_initialize_macrocmd): Register `info_macro_command' in
5917 `infolist', not `showlist'.
5918
5919 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5920
5921 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5922 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5923 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5924 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5925 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5926 unconditionally.
5927 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5928 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5929 (_initialize_mips_tdep): Remove dead code.
5930 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5931 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5932 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5933 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5934 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5935 MIPS_LAST_FP_ARG_REGNUM): Remove.
5936
5937 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5938
5939 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5940 (unwind_tmp_obstack_free, parse_frame_info)
5941 (update_context, cfi_read_fp, cfi_write_fp)
5942 (cfi_frame_chain, cfi_init_extra_frame_info)
5943 (cfi_virtual_frame_pointer): Use the above function.
5944 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5945
5946 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5947
5948 * v850-tdep.c (v850_type_is_scalar): New function.
5949 (v850_use_struct_convention): Match current gcc implementation
5950 as close as possible.
5951 (v850_push_arguments): Fix stack_offset handling. Don't write
5952 struct_addr into register. This is done by v850_store_struct_return.
5953 (v850_extract_return_value): Care for structs.
5954 (v850_store_return_value): Ditto.
5955 (v850_store_struct_return): Actually write address.
5956
5957 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5958
5959 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5960 without debug information too.
5961
5962 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5963
5964 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5965 Make multi-arch pure.
5966 * gdbarch.h, gdbarch.c: Re-generate.
5967 * arm-tdep.c (arm_print_float_info): Update.
5968 * arch-utils.h (default_print_float_info): Update.
5969 * arch-utils.c (default_print_float_info): Update.
5970 * infcmd.c (float_info): Update call.
5971
5972 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5973
5974 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5975 the front of the initialize list.
5976
5977 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5978
5979 * infrun.c (struct inferior_status): Replace fields
5980 selected_frame_address and selected_level with field
5981 selected_frame_id.
5982 (save_inferior_status): Update. Use get_frame_id.
5983 (struct restore_selected_frame_args): Delete.
5984 (restore_selected_frame): Update. Use frame_find_by_id.
5985 (restore_inferior_status): Update.
5986
5987 * breakpoint.h (struct breakpoint): Change type of
5988 watchpoint_frame to frame_id.
5989 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5990 call to get_current_frame.
5991 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5992 get_current_frame.
5993 (watchpoint_check): Use frame_find_by_id.
5994
5995 * frame.h (record_selected_frame): Delete declaration.
5996 * stack.c (record_selected_frame): Delete function.
5997
5998 * frame.h (struct frame_id): Define.
5999 (get_frame_id): Declare.
6000 (frame_find_by_id): Declare.
6001 * frame.c (frame_find_by_id): New function.
6002 (get_frame_id): New function.
6003
6004 2002-06-10 Andrey Volkov <avolkov@transas.com>
6005
6006 * ser-e7kpc.c: Fix duplicated define and call of
6007 _initialize_ser_e7000pc
6008
6009 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6010
6011 * signals/signals.c (target_signal_from_host): Fix #ifdef
6012 SIGRTMIN case.
6013 (do_target_signal_to_host): Likewise.
6014
6015 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6016
6017 * mips-tdep.c (mips_find_abi_section): New function.
6018 (mips_gdbarch_init): Call it.
6019
6020 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6021
6022 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6023 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6024 after Andrew's 2002-06-08 gdbarch change.
6025
6026 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6027
6028 * i386-linux-nat.c (suppy_gregset): Don't supply
6029 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6030 register cache.
6031 (fill_gregset): Don't fetch it under the same circumstances.
6032
6033 2002-06-09 Andrew Cagney <cagney@redhat.com>
6034
6035 * Makefile.in (callback_h): Define.
6036 (remote_sim_h): Update path to remote-sim.h.
6037 (remote-rdp.o): Add $(callback_h).
6038 (remote-sim.o): Use $(callback_h).
6039 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6040 * remote-rdp.c: Include "gdb/callback.h".
6041
6042 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6043
6044 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6045 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6046
6047 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6048
6049 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6050 * rdi-share/serpardr.c: Ditto.
6051 * rdi-share/unixcomm.c: Ditto.
6052 * rdi-share/serdrv.c: Ditto.
6053 * rdi-share/hostchan.h: Ditto.
6054 * rdi-share/hostchan.c: Ditto.
6055 * rdi-share/host.h: Ditto.
6056 * rdi-share/devsw.c: Ditto.
6057
6058 * objfiles.h: Change type of obj_private to void pointer.
6059 * pa64solib.c: Update copyright. Don't include "assert.h", use
6060 strcmp instead of STREQ, use LONGEST, do not use PTR
6061 * somsolib.c: Ditto.
6062
6063 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6064 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6065 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6066
6067 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6068
6069 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6070 (default_get_saved_register): Delete function.
6071 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6072 generic_unwind_get_saved_register.
6073 * gdbarch.h, gdbarch.c: Re-generate.
6074
6075 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6076
6077 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6078 generic_func_frame_chain_valid.
6079 * gdbarch.h, gdbarch.c: Re-generate.
6080 * blockframe.c (generic_func_frame_chain_valid): Only check
6081 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6082 passing FP to PC_IN_CALL_DUMMY.
6083 Fix PR gdb/360.
6084
6085 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6086
6087 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6088 (register_gdbarch_data): Initialize init_p.
6089 (gdbarch_data): Initialize data pointer using the init function.
6090 (init_gdbarch_data): Delete function.
6091 (gdbarch_update_p): Update.
6092 (initialize_non_multiarch): Update.
6093 (struct gdbarch): Add field initialized_p.
6094 * gdbarch.h, gdbarch.c: Re-generate.
6095
6096 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6097
6098 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6099 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6100 better do the things actually here.
6101 * x86-64-tdep.c (x86_64_register_name2nr): New.
6102 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6103 (x86_64_gdbarch_init): Respect the above change.
6104 * x86-64-tdep.h (x86_64_register_name2nr)
6105 (x86_64_register_nr2name): Add prototypes.
6106 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6107
6108 2002-06-06 Michael Snyder <msnyder@redhat.com>
6109
6110 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6111 Delete extra braces and re-indent.
6112 (d10v_store_return_value): Char return values
6113 must be shifted over by one byte in R0.
6114 (d10v_extract_return_value): Delete extra braces, re-indent.
6115
6116 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6117
6118 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6119 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6120 (d10v_integer_to_address): Rewrite.
6121 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6122 the d10v specific functions which take care of converting to the
6123 correct space.
6124
6125 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6126
6127 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6128 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6129
6130 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6131
6132 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6133 includes.
6134 * config/tm-linux.h: Ditto.
6135 * config/alpha/tm-alphalinux.h: Ditto.
6136 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6137 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6138 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6139 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6140 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6141 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6142 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6143 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6144 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6145 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6146 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6147 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6148 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6149 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6150 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6151 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6152 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6153 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6154 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6155 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6156 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6157 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6158 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6159 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6160 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6161 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6162 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6163 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6164 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6165 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6166 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6167 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6168 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6169 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6170 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6171 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6172 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6173
6174 2002-05-04 Aidan Skinner <aidan@velvet.net>
6175
6176 * ada-exp.tab.c: New file
6177 * ada-exp.y: New file
6178 * ada-lang.c: New file
6179 * ada-lang.h: New file
6180 * ada-lex.c: New file
6181 * ada-lex.l: New file
6182 * ada-tasks.c: New file
6183 * ada-typeprint.c: New file
6184 * ada-valprint.c: New file
6185
6186 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6189 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6190
6191 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6192
6193 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6194 insetead of ppc-linux-tdep.o.
6195 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6196 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6197
6198 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6199
6200 2002-05-07 Christian Groessler <chris@groessler.org>
6201 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6202 bit register contents for little endian hosts.
6203
6204 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6205
6206 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6207 any maintainer.
6208
6209 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6210
6211 * gdbarch.h: Regenerate.
6212
6213 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6214
6215 * MAINTAINERS: Add everyone to write-after-approval list.
6216
6217 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6218
6219 * stack.c (frame_info): Use frame_register_unwind instead of
6220 saved_regs. Mention when the SP is on the stack or in a register.
6221
6222 * frame.h (frame_register_unwind_ftype): Define. Document.
6223 (struct frame_info): Add field register_unwind and
6224 register_unwind_cache.
6225 (frame_register_unwind): Declare.
6226 (generic_unwind_get_saved_register): Declare.
6227
6228 * frame.c (frame_register_unwind): New function.
6229 (generic_unwind_get_saved_register): New function.
6230
6231 * blockframe.c (generic_call_dummy_register_unwind): New function.
6232 (frame_saved_regs_register_unwind): New function.
6233 (set_unwind_by_pc): New function.
6234 (create_new_frame): New function.
6235 (get_prev_frame): New function.
6236
6237 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6238
6239 * a29k-share/: Delete directory.
6240 * remote-vx29k.c: Delete file.
6241
6242 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6243
6244 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6245 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6246
6247 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6248
6249 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6250 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6251 (sparc64nbsd-nat.o)
6252 (sparcnbsd-nat.o)
6253 (sparcnbsd-tdep.o): New dependency lists.
6254 * NEWS: Note new UltraSPARC NetBSD native configuration.
6255 * configure.host (sparc64-*-netbsd*): New host.
6256 * configure.tgt (sparc-*-netbsdelf*)
6257 (sparc-*-netbsd*): Set gdb_target to nbsd.
6258 (sparc64-*-netbsd*): New target.
6259 * sparc64nbsd-nat.c: New file.
6260 * sparcnbsd-nat.c: New file.
6261 * sparcnbsd-tdep.c: New file.
6262 * sparcnbsd-tdep.h: New file.
6263 * config/sparc/nbsd.mt: New file.
6264 * config/sparc/nbsd64.mh: New file.
6265 * config/sparc/nbsd64.mt: New file.
6266 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6267 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6268 (HOST_IPC): Remove.
6269 * config/sparc/nbsdaout.mt: Remove.
6270 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6271 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6272 (HOST_IPC): Remove.
6273 * config/sparc/nbsdelf.mt: Remove.
6274 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6275 sparc-nat.c compatiblity defines.
6276 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6277 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6278 * config/sparc/tm-nbsd64.h: New file.
6279 * config/sparc/tm-nbsdaout.h: Remove.
6280 * config/sparc/xm-nbsd.h: Remove.
6281
6282 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6285 * sparc-tdep.c: Include osabi.h.
6286 (gdbarch_tdep): Add osabi member.
6287 (_initialize_sparc_tdep): Use gdbarch_register.
6288 (sparc_gdbarch_init): Use generic OS ABI framework.
6289 (sparc_dump_tdep): New function.
6290
6291 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6292
6293 * corefile.c (do_captured_read_memory_integer): Return non-zero
6294 result.
6295 (safe_read_memory_integer): Copy result of memory read when
6296 status is non-zero. Also, add comments.
6297
6298 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6299
6300 * Makefile.in (ppc_tdep_h): Define.
6301 (ppc-linux-nat.o)
6302 (ppc-linux-tdep.o)
6303 (rs6000-tdep.o): Use $(ppc_tdep_h).
6304 (ppc-sysv-tdep.o)
6305 (ppcnbsd-nat.o)
6306 (ppcnbsd-tdep.o): New dependency lists.
6307 * ppc-tdep.h: Use generic OS ABI framework.
6308 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6309 (ppc_linux_init_abi): New functions.
6310 (ppc_sysv_abi_broken_use_struct_convention)
6311 (ppc_sysv_abi_use_struct_convention)
6312 (ppc_sysv_abi_push_arguments): Move to...
6313 * ppc-sysv-tdep.c: ...here.
6314 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6315 * rs6000-tdep.c (process_note_abi_tag_sections)
6316 (get_elfosabi): Remove.
6317 (rs6000_gdbarch_init): Use generic OS ABI framework.
6318 (rs6000_dump_tdep): New function.
6319 (_initialize_rs6000_tdep): Use gdbarch_register.
6320 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6321 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6322 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6323 of ppc-linux-tdep.o.
6324 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6325 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6326 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6327 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6328 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6329 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6330
6331 2002-05-29 Jim Blandy <jimb@redhat.com>
6332
6333 * macroscope.c (default_macro_scope): Put `void' in empty argument
6334 list.
6335
6336 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6337
6338 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6339 * arch-utils.c: Include "sim-regno.h".
6340 * gdbarch.sh: Don't include "sim-regno.h".
6341 * gdbarch.h, gdbarch.c: Regenerate.
6342 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6343 here.
6344 * arch-utils.h (legacy_register_sim_regno): To here.
6345 * remote-sim.c (legacy_register_sim_regno): Move function from
6346 here.
6347 * arch-utils.c (legacy_register_sim_regno): To here.
6348
6349 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6350
6351 * sim-regno.h: New file.
6352 * Makefile.in (sim_regno_h): Define.
6353 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6354 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6355 (legacy_register_sim_regno): New function.
6356 (one2one_register_sim_regno): New function.
6357 (gdbsim_fetch_register): Rewrite.
6358 (gdbsim_store_register): Only store a register when
6359 REGISTER_SIM_REGNO is valid.
6360 * d10v-tdep.c: Include "sim-regno.h".
6361 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6362 (d10v_ts3_register_sim_regno): Ditto.
6363 * gdbarch.sh: Include "sim-regno.h".
6364 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6365 * gdbarch.h, gdbarch.c: Regenerate.
6366 * arch-utils.h (default_register_sim_regno): Delete declaration.
6367 * arch-utils.c (default_register_sim_regno): Delete function.
6368
6369 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6370
6371 * ppcnbsd-nat.c: Rewrite.
6372 * ppcnbsd-tdep.c: New file.
6373 * ppcnbsd-tdep.h: New file.
6374 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6375 solib.o, and solib-svr4.o.
6376 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6377 nbsd-tdep.o, and corelow.o.
6378
6379 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6380
6381 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6382 `tr' and `sed'. Mention that `broken' targets are not expected to
6383 build.
6384
6385 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6386
6387 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6388 Let PC point right after the prologue before looking up symbols.
6389
6390 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6391
6392 * i386-tdep.c (i386_register_virtual_type): Return
6393 builtin_type_vec128i for SSE registers.
6394
6395 * gdbtypes.h (builtin_type_vec128i): Declare.
6396
6397 * gdbtypes.c (build_builtin_type_vec128i): New function.
6398 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6399 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6400 (build_gdbtypes): Initialize new builtin vector types.
6401 (_initialize_gdbtypes): Register new vector types with gdbarch.
6402
6403 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6406 since it has been multi-arch'd.
6407 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6408 Move Alpha and VAX multi-arch news entries to same section
6409 as other multi-arch news.
6410
6411 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6412
6413 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6414 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6415 static. Rename some register numbers to put them in ns32k-tdep
6416 private namespace.
6417 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6418 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6419 functions.
6420 (_initialize_ns32k_tdep): Use gdbarch_register.
6421 * ns32k-tdep.h: New file.
6422 * ns32knbsd-tdep.c: New file.
6423 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6424 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6425 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6426 REGISTER_BYTES, REGISTER_BYTE): Remove.
6427 * config/ns32k/tm-ns32k.h: New file.
6428 * config/ns32k/tm-umax.h: Remove.
6429
6430 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6431
6432 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6433 ns32k_store_struct_return, ns32k_extract_return_value,
6434 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6435 functions.
6436 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6437 ns32k_saved_pc_after_call.
6438 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6439 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6440 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6441 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6442 ns32k_extract_struct_value_address.
6443
6444 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6445
6446 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6447 ns32k_fix_call_dummy): New.
6448 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6449 ns32k_call_dummy_words.
6450 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6451 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6452 CALL_DUMMY_NARGS): Remove.
6453 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6454
6455 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6458 ns32k_frame_saved_pc, ns32k_frame_args_address,
6459 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6460 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6461 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6462 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6463 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6464 (BREAKPOINT): Remove..
6465 (FRAME_CHAIN): Define as ns32k_frame_chain.
6466 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6467 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6468 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6469 (FRAME_FIND_SAVED_REGS): Remove.
6470 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6471 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6472 (POP_FRAME): Define as ns32k_pop_frame.
6473
6474 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6475
6476 * ns32k-tdep.c (ns32k_register_byte_32082,
6477 ns32k_register_byte_32382, ns32k_register_raw_size,
6478 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6479 functions.
6480 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6481 ns32k_register_byte_32382.
6482 * config/ns32k/tm-umax.h: Update copyright years.
6483 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6484 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6485 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6486 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6487 (ns32k_get_enter_addr): Fix prototype.
6488
6489 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6490
6491 * ns32k-tdep.c: Update copyright years.
6492 (ns32k_register_name_32082): New function.
6493 (ns32k_register_name_32382): Ditto.
6494 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6495 (REGISTER_NAME): Define as ns32k_register_name_32382.
6496 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6497 (REGISTER_NAME): Define as ns32k_register_name_32082.
6498
6499 2002-05-24 Jim Blandy <jimb@redhat.com>
6500
6501 * dwarf2read.c (free_line_header): Use xfree, not free.
6502
6503 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6504
6505 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6506 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6507
6508 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6509
6510 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6511
6512 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6513
6514 From Ross Alexander at NEC Europe:
6515 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6516
6517 2002-05-23 Michael Snyder <msnyder@redhat.com>
6518
6519 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6520 for input, rather than parse_and_eval_address.
6521
6522 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6523
6524 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6525 * Makefile.in (sim_d10v_h): Update definition.
6526
6527 2002-05-24 Andrew Cagney <cagney@redhat.com>
6528
6529 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6530 change `2002-05-22 Michael Snyder' below.
6531 (d10v_push_arguments): Ditto.
6532 (d10v_extract_return_value): Ditto.
6533
6534 2002-05-23 Jim Blandy <jimb@redhat.com>
6535
6536 * macrotab.c (check_for_redefinition): Don't complain if the new
6537 definition is the same as the previous one. Take more arguments
6538 to allow the comparison.
6539 (macro_define_object, macro_define_function): Pass more arguments
6540 to check_for_redefinition.
6541
6542 2002-05-22 Michael Snyder <msnyder@redhat.com>
6543
6544 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6545 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6546 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6547 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6548 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6549 Add a temp variable to save a call (and a memory read).
6550 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6551 if possible (so that PC_IN_CALL_DUMMY will work).
6552
6553 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6554
6555 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6556
6557 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6558
6559 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6560 fde->cie_ptr.
6561 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6562 (dwarf2_build_frame_info): Add offset to fde->initial_location
6563 so that frames of shared libraries are mapped correctly.
6564 (execute_stack_op): Change type of 'result' from ULONGEST to
6565 CORE_ADDR.
6566
6567 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6568
6569 * config/alpha/tm-nbsd.h: Include solib.h.
6570
6571 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6572
6573 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6574 assumptions about the host's byte order.
6575
6576 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6577
6578 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6579 to dependency list.
6580 * alphanbsd-tdep.c: Include solib-svr4.h.
6581 * shnbsd-tdep.c: Ditto.
6582
6583 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6584
6585 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6586 nbsd-tdep.h to dependency list.
6587 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6588 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6589 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6590 nbsdaout.mh and nbsdelf.mh consistently.
6591 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6592 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6593 nbsdaout.mt and nbsdelf.mh consistently.
6594 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6595 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6596 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6597 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6598 a.out shared library stuff from here...
6599 * config/nm-nbsdaout.h: ...to here.
6600 * config/tm-nbsd.h: Remove.
6601 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6602 * config/arm/nbsd.mh: Remove.
6603 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6604 nbsd-tdep.o.
6605 * config/arm/nbsdaout.mh: New file.
6606 * config/arm/nbsdelf.mh: New file.
6607 * config/arm/nm-nbsdaout.h: New file.
6608 * config/i386/nbsd.mh: Remove.
6609 * config/i386/nbsd.mt: Remove.
6610 * config/i386/nbsdaout.mh: New file.
6611 * config/i386/nbsdaout.mt: New file.
6612 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6613 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6614 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6615 i386_register_u_addr): Remove.
6616 * config/i386/nm-nbsdaout.h: New file.
6617 * config/i386/nm-nbsdelf.h: Remove.
6618 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6619 (USE_STRUCT_CONVENTION): Remove.
6620 * config/i386/tm-nbsdaout.h: New file.
6621 * config/i386/tm-nbsdelf.h: Remove.
6622 * config/m68k/nbsd.mh: Remove.
6623 * config/m68k/nbsd.mt: Remove.
6624 * config/m68k/nbsdaout.mh: New file.
6625 * config/m68k/nbsdaout.mt: New file.
6626 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6627 * config/m68k/nm-nbsdaout.h: New file.
6628 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6629 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6630 * config/ns32k/nbsd.mh: Remove.
6631 * config/ns32k/nbsd.mt: Remove.
6632 * config/ns32k/nbsdaout.mh: New file.
6633 * config/ns32k/nbsdaout.mt: New file.
6634 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6635 * config/ns32k/nm-nbsdaout.h: New file.
6636 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6637 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6638 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6639 (SVR4_SHARED_LIBS): Remove.
6640 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6641 * config/sparc/nbsd.mh: Remove.
6642 * config/sparc/nbsd.mt: Remove.
6643 * config/sparc/nbsdaout.mh: New file.
6644 * config/sparc/nbsdaout.mt: New file.
6645 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6646 * config/sparc/nbsdelf.mt: New file.
6647 * config/sparc/nm-nbsdaout.h: New file.
6648 * config/sparc/nm-nbsdelf.h: Remove.
6649 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6650 * config/sparc/tm-nbsdaout.h: New file.
6651
6652 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6655 mipsnbsd-tdep.c
6656 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6657
6658 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6659
6660 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6661 shnbsd-nat.c.
6662 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6663
6664 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6665
6666 * NEWS: Note new MIPS NetBSD native configuration.
6667 * configure.host (mips*-*-netbsd*): New host.
6668 * configure.tgt (mips*-*-netbsd*): New target.
6669 * mipsnbsd-nat.c: New file.
6670 * mipsnbsd-tdep.c: New file.
6671 * mipsnbsd-tdep.h: New file.
6672 * config/mips/nbsd.mh: New file.
6673 * config/mips/nbsd.mt: New file.
6674 * config/mips/nm-nbsd.h: New file.
6675 * config/mips/tm-nbsd.h: New file.
6676
6677 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6678
6679 * Makefile.in (SFILES): Add osabi.c.
6680 (COMMON_OBS): Add osabi.o.
6681 (osabi.o): New dependency list.
6682 * osabi.c: New file.
6683 * osabi.h: New file.
6684 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6685
6686 * Makefile.in (alpha_tdep_h): Define and use instead of
6687 alpha-tdep.h.
6688 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6689 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6690 Remove.
6691 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6692 * alpha-tdep.h: Include osabi.h.
6693 (alpha_abi): Remove.
6694 (gdbarch_tdep): Use generic OS ABI framework.
6695 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6696 gdbarch_register_osabi.
6697 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6698 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6699 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6700
6701 * Makefile.in (sh_tdep_h): Add osabi.h.
6702 * sh-tdep.h (sh_osabi): Remove.
6703 (gdbarch_tdep): Use generic OS ABI framework.
6704 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6705 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6706 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6707 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6708
6709 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6710 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6711 gdbarch_register_osabi.
6712 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6713 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6714 (get_elfosabi): Rename to...
6715 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6716 ABI framework support routines.
6717 (arm_gdbarch_init): Use generic OS ABI framework.
6718 (arm_dump_tdep): Likewise.
6719 (_initialize_arm_tdep): Likewise.
6720 * arm-tdep.h: Include osabi.h.
6721 (arm_abi): Remove.
6722 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6723 osabi member.
6724 (arm_gdbarch_register_os_abi): Remove prototype.
6725 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6726 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6727
6728 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6729 * mips-tdep.c: Include osabi.h.
6730 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6731 OS ABI framework.
6732
6733 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6734
6735 * h8300-tdep.c: Fix formatting.
6736
6737 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6738
6739 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6740 printing vector registers.
6741
6742 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6743
6744 From Fernando Nasser:
6745 * remote.c (remote_async_open_1): Re-throw the exception when the
6746 connection fails.
6747 (remote_cisco_open): Ditto.
6748 (remote_open_1): Ditto.
6749
6750 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6751
6752 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6753 (remote_start_remote): Add uiout parameter. Pass through to
6754 remote_start_remote_dummy.
6755 (remote_open_1): Use catch_exception instead of catch_errors.
6756 (remote_async_open_1): Ditto.
6757 (remote_cisco_open): Ditto.
6758
6759 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6760
6761 * remote.c (remote_start_remote): Replace PTR with void pointer.
6762 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6763 static.
6764
6765 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6766
6767 * gdb_indent.sh: Allow the script to be run in the sim directory.
6768
6769 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6770
6771 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6772 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6773
6774 * corelow.c (core_open): Only call set_gdbarch_from_file if
6775 exec_bfd is NULL.
6776
6777 2002-05-17 Andrey Volkov <avolkov@transas.com>
6778
6779 * h8300-tdep.c: Add support of EXR register
6780 * config/h8300/tm-h8300.h: Ditto.
6781
6782 2002-05-17 Andrey Volkov <avolkov@transas.com>
6783
6784 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6785
6786 2002-05-17 Andrey Volkov <avolkov@transas.com>
6787
6788 * h8300-tdep.c: Change literal regnums to REGNO.
6789
6790 2002-05-17 Jim Blandy <jimb@redhat.com>
6791
6792 * NEWS: Note addition of macro support.
6793
6794 Expand preprocessor macros in C expressions.
6795 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6796 (scan_macro_expansion, scanning_macro_expansion,
6797 finished_macro_expansion): New function declarations.
6798 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6799 variable declarations.
6800 * parser-defs.h (expression_context_pc): New declaration.
6801 * parse.c (expression_context_pc): New variable.
6802 (parse_exp_1): Set expression_context_pc, as well as
6803 expression_context_block.
6804 * c-exp.y (yylex): If we're not already reading the result of a
6805 macro expansion, try to macro-expand the next token. When we're
6806 done scanning a macro expansion, switch back to the mainline text.
6807 Commas and `if's in a macro's expansion don't terminate the input.
6808 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6809 (macro_original_text, macro_expanded_text,
6810 expression_macro_lookup_func, expression_macro_lookup_baton): New
6811 variables.
6812 (scan_macro_expansion, scanning_macro_expansion,
6813 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6814 c_preprocess_and_parse): New functions.
6815 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6816 c_preprocess_and_parse, instead of c_parse.
6817 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6818 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6819
6820 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6821
6822 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6823 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6824 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6825
6826 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6827
6828 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6829
6830 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6831
6832 * Makefile.in (sh_tdep_h): Define and use.
6833 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6834 register enum): Move to...
6835 * * sh-tdep.h: ...here.
6836 * sh-tdep.c: Include sh-tdep.h.
6837 * sh3-rom.c: Likewise.
6838 * shnbsd-tdep.c: Likewise.
6839
6840 2002-05-16 Michael Snyder <msnyder@redhat.com>
6841
6842 * arm-tdep.c: Spelling fix in comment.
6843
6844 2002-05-16 Jim Blandy <jimb@redhat.com>
6845
6846 Add commands for manually expanding macros and showing their
6847 definitions.
6848 * macrocmd.c, macroscope.c, macroscope.h: New files.
6849 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6850 (macroscope_h): New variable.
6851 (HFILES_NO_SRCDIR): Add macroscope.h.
6852 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6853 (macroscope.o, macrocmd.o): New rules.
6854
6855 Teach the Dwarf 2 reader to read macro information.
6856 * dwarf2read.c: #include "macrotab.h".
6857 (dwarf_macinfo_buffer): New variable.
6858 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6859 dwarf_macinfo_size.
6860 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6861 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6862 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6863 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6864 dwarf2_macro_spaces_in_definition): New complaints.
6865 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6866 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6867 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6868 the partial symbol table.
6869 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6870 from what's recorded in the partial symbol table.
6871 (read_file_scope): If the compilation unit has a
6872 `DW_AT_macro_info' attribute, read its macro information.
6873 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6874
6875 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6876
6877 Fix PR gdb/546
6878 * ser-tcp.c: Don't include <netinet/udp.h>.
6879
6880 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6881
6882 * MAINTAINERS: Update my email address.
6883
6884 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6885
6886 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6887 include file of the same name.
6888
6889 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6890
6891 * configure.tgt: Mark v850 as multi-arched.
6892 * config/v850/tm-v850.h: Remove file.
6893 * config/v850/v850.mt: Eliminate TM_FILE.
6894
6895 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6896
6897 * v850-tdep.c: Full multi-arch.
6898 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6899 Define GDB_MULTI_ARCH to 2.
6900
6901 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6902
6903 * p-exp.y (current_type): New static variable.
6904 Carries the type of the expression at the position that is parsed.
6905 (push_current_type, pop_current_type): Two new functions. Used
6906 to store/restore current_type in expression on specific tokens.
6907 (search_field): New static variable. Set to one after parsing a point
6908 as at that point only a FIELDNAME token should be searched.
6909 (FIELDNAME): New token. After a point only a token belonging to
6910 current_type type definition is allowed.
6911 (all over token rules): reset and change current_type according
6912 to rules.
6913 (exp '[' rule): insert implicit array index field if
6914 exp is a pascal string type.
6915
6916 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6917
6918 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6919 frame info. Use frame_info's saved_regs instead of matching member
6920 in extra_frame_info throughout.
6921 (v850_frame_init_saved_regs): New function.
6922 (v850_init_extra_frame_info): Move most functionality into
6923 v850_frame_init_saved_regs().
6924 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6925 (v850_frame_find_saved_regs): Remove declaration.
6926 (FRAME_FIND_SAVED_REGS): Remove definition.
6927 (v850_frame_init_saved_regs): Add declaration.
6928 (FRAME_INIT_SAVED_REGS): Add definition.
6929
6930 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6931
6932 * v850-tdep.c: Begin multi-arch'ing v850.
6933 (v850_target_architecture_hook): Remove function.
6934 (v850_gdbarch_init): New function. Add code previously in
6935 v850_target_architecture_hook().
6936 (_initialize_v850_tdep): Don't set target_architecture_hook.
6937 Call register_gdbarch_init() instead.
6938
6939 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6940
6941 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6942 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6943 (fixup_class_method_type): Likewise.
6944
6945 2002-05-15 Jim Blandy <jimb@redhat.com>
6946
6947 Add macro structures to GDB's symbol tables. Nobody puts anything
6948 in them yet.
6949 * symtab.h (struct symtab): New member: `macro_table'.
6950 * buildsym.h (pending_macros): New global variable.
6951 * buildsym.c: #include "macrotab.h".
6952 (buildsym_init): Initialize `pending_macros'.
6953 (end_symtab): If we found macro information while reading a CU's
6954 debugging info, do build a symtab structure for it. Make the
6955 symtab point to the macro information, and clear the
6956 `pending_macros' pointer which held it while we were reading the
6957 debug info.
6958 (really_free_pendings): Free any pending macro table.
6959 * objfiles.h (struct objfile): New member: `macro_cache'.
6960 * objfiles.c (allocate_objfile): Set allocate and free functions
6961 for the macro cache's objstack.
6962 (free_objfile): Empty the macro cache's obstack.
6963 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6964 set new allocate and free functions for it.
6965 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6966 free functions for the macro cache's objstack. (Why is this
6967 function building its own objfile?)
6968 * symmisc.c (print_objfile_statistics): Print statistics on the
6969 macro bcache.
6970 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6971
6972 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6973
6974 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6975 (REGISTER_U_ADDR): Delete definition.
6976 (arm_register_u_addr): Delete declaration.
6977
6978 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6979
6980 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6981 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6982
6983 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6984
6985 * regcache.c (register_valid): Revise comments refering to "Not
6986 available" and "unavailable".
6987 * frame.c (frame_register_read): Ditto.
6988 * findvar.c (value_of_register): Ditto.
6989
6990 2002-05-15 Andrew Cagney <cagney@redhat.com>
6991
6992 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6993 (remote-sim.o): Update dependencies.
6994 (d10v-tdep.o): Specify dependencies.
6995 (sim_d10v_h): Define.
6996
6997 2002-05-14 Jim Blandy <jimb@redhat.com>
6998
6999 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7000 * macrotab.c (macro_lookup_inclusion, find_definition,
7001 new_macro_table): Same.
7002
7003 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7004 not `! strcmp ()'. This is a dubious improvement.
7005 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7006
7007 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7008 although it's not necessary, to avoid a warning.
7009
7010 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7011
7012 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7013 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7014 TYPE_INSTANCE_FLAGS.
7015 (struct main_type): New.
7016 (struct type): Move most members to struct main_type. Change
7017 cv_type and as_type to new type_chain member. Add instance_flags.
7018 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7019 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7020 (finish_cv_type): Remove prototype.
7021 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7022 Set TYPE_CHAIN.
7023 (alloc_type_instance): New function.
7024 (smash_type): New function.
7025 (make_pointer_type, make_reference_type, make_function_type)
7026 (smash_to_member_type, smash_to_method_type): Call smash_type.
7027 (make_qualified_type): New function.
7028 (make_type_with_address_space): Call make_qualified_type.
7029 (make_cv_type): Likewise.
7030 (finish_cv_type): Remove unnecessary function.
7031 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7032 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7033 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7034 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7035 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7036 * hpread.c (hpread_read_struct_type): Likewise.
7037 * stabsread.c (read_struct_type): Likewise.
7038
7039 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7040
7041 * configure.tgt: Add a catch all sh* target, for cases like
7042 sh[2,3,4]-elf and sh-hms.
7043
7044 2002-05-14 Keith Seitz <keiths@redhat.com>
7045
7046 * event-loop.c (create_file_handler): Don't do anything but
7047 update data when we are given a fd which we are already
7048 monitoring.
7049
7050 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7051
7052 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7053 (update_context): Use __func__ in warnings.
7054
7055 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7056
7057 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7058 and tcp_close to net_open and net_close.
7059 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7060 using UDP if requested. Don't try to disable Nagle on UDP
7061 sockets.
7062 * remote.c (remote_serial_open): New function. Warn about UDP.
7063 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7064
7065 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7066
7067 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7068
7069 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7070
7071 * configure.tgt: Remove sh-hms target.
7072 * MAINTAINERS: Don't list sh-hms as a separate target.
7073
7074 2002-05-13 Jim Blandy <jimb@redhat.com>
7075
7076 Add first preprocessor macro-expansion files.
7077 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7078 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7079 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7080 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7081 (COMMON_OBS): Add macrotab.o, macroexp.o.
7082 (macroexp.o, macrotab.o): New rules.
7083
7084 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7085
7086 * config/m88k/tm-m88k.h: Update copyright.
7087 (m88k_target_write_pc): Declare
7088 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7089 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7090 (SHIFT_INST_REGS): Update definition.
7091 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7092 using old definition of TARGET_WRITE_PC.
7093 * regcache.c (generic_target_write_pc): Delete code handling
7094 NNPC_REGNUM.
7095 * gdbarch.sh (NNPC_REGNUM): Delete.
7096 * gdbarch.h, gdbarch.c: Regenerate.
7097
7098 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7099
7100 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7101 builtin reg number.
7102
7103 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7104
7105 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7106 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7107 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7108 access macros.
7109 * c-typeprint.c (cp_type_print_method_args): Likewise.
7110 (c_type_print_args): Likewise.
7111 * d10v-tdep.c (d10v_push_arguments): Likewise.
7112 (d10v_extract_return_value): Likewise.
7113 * expprint.c (print_subexp): Likewise.
7114 * gdbtypes.c (lookup_primitive_typename): Likewise.
7115 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7116 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7117 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7118 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7119 (TYPE_VECTOR): Likewise.
7120 * hpread.c (hpread_read_struct_type)
7121 (fix_static_member_physnames, fixup_class_method_type)
7122 (hpread_type_lookup): Likewise.
7123 * mdebugread.c (parse_symbol, parse_type): Likewise.
7124 * p-lang.c (is_pascal_string_type): Likewise.
7125 * valops.c (hand_function_call): Likewise.
7126 * x86-64-tdep.c (classify_argument): Likewise.
7127
7128 * hpread.c (hpread_read_function_type)
7129 (hpread_read_doc_function_type): Call replace_type.
7130 * dstread.c (create_new_type): Delete.
7131 (decode_dst_structure, process_dst_function): Call alloc_type.
7132 Use type access macros.
7133
7134 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7135
7136 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7137 the're not supported by the current architecture.
7138 (i387_fill_fxsave): Likewise.
7139
7140 2002-05-12 Fred Fish <fnf@redhat.com>
7141
7142 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7143 sect_index_xxx members to index the first slot in section_offsets
7144 if all of the section_offsets are zero.
7145
7146 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7147
7148 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7149 checked in with last change.
7150
7151 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7152
7153 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7154 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7155 config.sub.
7156
7157 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7158
7159 * Makefile.in: Update dependencies.
7160
7161 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7162
7163 * language.c (local_hex_string_custom): Simplify. Do not depend
7164 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7165
7166 * memattr.c (mem_info_command): Replace calls to
7167 longest_local_hex_string and longest_local_hex_string_custom.
7168 * buildsym.c (make_blockvector): Ditto.
7169 * solib.c (info_sharedlibrary_command): Ditto.
7170 * tracepoint.c (tracepoints_info): Ditto.
7171 * symtab.c (print_msymbol_info): Ditto.
7172
7173 * language.c (local_hex_string): Delete.
7174 (local_hex_string_custom): Delete.
7175 (longest_local_hex_string): Rename to local_hex_string.
7176 (longest_local_hex_string_custom): Rename to
7177 local_hex_string_custom.
7178 * language.h (local_hex_string): Change parameter type to LONGEST.
7179 (local_hex_string_custom): Ditto.
7180 (longest_local_hex_string): Delete declaration.
7181 (longest_local_hex_string_custom): Ditto.
7182
7183 * solib.c: Update copyright.
7184 * memattr.c: Update copyright.
7185
7186 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7187
7188 * arch-utils.h (legacy_register_to_value): Declare.
7189 (legacy_value_to_register): Declare.
7190 (legacy_convert_register_p): Declare.
7191 * arch-utils.c (legacy_register_to_value): New function.
7192 (legacy_value_to_register): New function.
7193 (legacy_convert_register_p): New function.
7194
7195 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7196 (VALUE_TO_REGISTER): Define.
7197 (CONVERT_REGISTER_P): Define.
7198 * gdbarch.h, gdbarch.c: Regenerate.
7199
7200 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7201 VALUE_TO_REGISTER.
7202 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7203 CONVERT_REGISTER_P.
7204
7205 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7206 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7207
7208 * Makefile.in: Update dependencies for valops.c.
7209 * valops.c: Include "gdb_assert.h".
7210 (typecmp): Skip THIS parameter to methods.
7211 (find_method_list): Remove static_memfuncp argument,
7212 update callers. Check for stub methods.
7213 (find_value_oload_method_list): Don't set *static_memfuncp.
7214 (find_overload_match): Don't check for stub methods. Assert
7215 that methods are not stubbed. Handle static methods.
7216 (value_find_oload_method_list): Remove static_memfuncp argument.
7217 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7218 to the argument list for static stub methods.
7219 * value.h (value_find_oload_method_list): Update prototype.
7220
7221 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7222
7223 * arch-utils.h (generic_register_size): Declare.
7224 (generic_register_raw_size, generic_register_virtual_size): Delete
7225 declarations.
7226 * arch-utils.c (generic_register_raw_size): Delete.
7227 (generic_register_size): New function.
7228 (generic_register_virtual_size): Delete.
7229
7230 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7231 default generic_register_size.
7232 * gdbarch.h, gdbarch.c: Re-generate.
7233
7234 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7235 register_virtual_size.
7236 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7238
7239 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7240
7241 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7242 * gdbarch.h, gdbarch.c: Regenerate.
7243 * gnu-v3-abi.c: Update copyright.
7244 (vtable_address_point_offset): Update.
7245 (gnuv3_rtti_type): Update.
7246 (gnuv3_baseclass_offset): Update.
7247 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7248 (init_fetch_link_map_offsets): Update.
7249 * remote.c (get_remote_state): Update.
7250
7251 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7252
7253 * TODO: Remove value_headof/value_from_vtable_info comment.
7254 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7255 * values.c (value_headof, value_from_vtable_info): Delete.
7256 * value.h (value_from_vtable_info): Delete prototype.
7257
7258 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7259
7260 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7261 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7262 $(gdb_regex_h).
7263 (gdb_assert_h): Define.
7264 (gdb_wait_h): Define.
7265 (gdb_regex_h): Define.
7266
7267 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7268
7269 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7270 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7271
7272 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7273
7274 * nbsd-tdep.c: Fix comment.
7275
7276 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7279 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7280 (nbsd-tdep.o): New dependency list.
7281 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7282 nbsd-tdep.h.
7283 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7284 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7285 * nbsd-tdep.c: New file.
7286 * nbsd-tdep.h: New file.
7287 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7288 nbsd-tdep.h.
7289 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7290 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7291 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7292 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7293
7294 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7295
7296 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7297 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7298 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7299 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7300 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7301 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7302
7303 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7304
7305 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7306 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7307 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7308 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7309 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7310 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7311 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7312
7313 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7314
7315 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7316 fetch_elfcore_registers to...
7317 * i386nbsd-tdep.c: ...here.
7318 (i386nbsd_use_struct_convention): Rename to...
7319 (i386nbsd_aout_use_struct_convention): ...this.
7320 (i386nbsd_supply_reg): New function.
7321 (i386nbsd_fill_reg): New function.
7322 (fetch_core_registers): Use i386nbsd_supply_reg.
7323 (fetch_elfcore_registers): Likewise.
7324 (_initialize_i386nbsd_tdep): New function.
7325 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7326 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7327 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7328 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7329 (i386nbsd_aout_use_struct_convention): ...this.
7330
7331 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7332
7333 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7334 (store_inferior_registers): Use shnbsd_fill_reg.
7335 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7336 sh_nbsd_supply_register): Collapse into...
7337 (shnbsd_supply_reg): ...this.
7338 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7339 (shnbsd_fill_reg): ...this.
7340 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7341 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7342 (fetch_core_registers): Use shnbsd_supply_reg.
7343 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7344 (sh_nbsd_core_fns): Rename to...
7345 (shnbsd_core_fns): ...this.
7346 (sh_nbsd_elfcore_fns): Rename to...
7347 (shnbsd_elfcore_fns): ...this.
7348 (sh_nbsd_init_abi): Rename to...
7349 (shnbsd_init_abi): ...this.
7350 (_initialize_sh_nbsd_tdep): Rename to...
7351 (_initialize_shnbsd_tdep): ...this.
7352 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7353 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7354 sh_nbsd_fill_register): Remove prototypes.
7355 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7356
7357 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7358
7359 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7360 (i387-nat.o): Delete dependency list.
7361 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7362 (x86-64-linux-nat.o): Likewise.
7363 * i387-nat.c: Delete file, moving contents to...
7364 * i387-tdep.c: ...here.
7365 * i387-nat.h: Rename...
7366 * i387-tdep.h: ...to this.
7367 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7368 * i386-linux-nat.c: Likewise.
7369 * i386bsd-nat.c: Likewise.
7370 * i386gnu-nat.c: Likewise.
7371 * i386nbsd-nat.c: Likewise.
7372 * i386v4-nat.c: Likewise.
7373 * x86-64-linux-nat.c: Likewise.
7374 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7375 * config/i386/go32.mh (NATDEPFILES): Likewise.
7376 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7377 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7378 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7379 * config/i386/linux.mh (NATDEPFILES): Likewise.
7380 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7381 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7382 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7383 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7384
7385 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7388 (alphanbsd-nat.o): Remove dependency list.
7389 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7390 * alphanbsd-nat.c: Delete. Contents moved to...
7391 * alphanbsd-tdep.c: ...here.
7392 (_initialize_alphanbsd_tdep): Register core functions.
7393 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7394
7395 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7396
7397 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7398 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7399 (alphanbsd-nat.o): Likewise.
7400 (alphabsd-tdep.o): New dependency list.
7401 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7402 (fill_gregset): Use alphabsd_fill_reg.
7403 (supply_fpregset): Use alphabsd_supply_fpreg.
7404 (fill_fpregset): Use alphabsd_fill_fpreg.
7405 (fetch_inferior_registers): Use struct reg and struct fpreg
7406 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7407 and alphabsd_supply_fpreg.
7408 (store_inferior_registers): Use struct reg and struct fpreg
7409 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7410 and alphabsd_fill_fpreg.
7411 * alphabsd-tdep.c: New file.
7412 * alphabsd-tdep.h: New file.
7413 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7414 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7415 alphabsd_supply_fpreg.
7416 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7417 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7418
7419 2002-05-11 Eric Christopher <echristo@redhat.com>
7420
7421 * mips-tdep.c (mips_double_register_type): Fix thinko.
7422 (mips_single_register_type): Ditto.
7423 * MAINTAINERS: Add self.
7424
7425 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7426
7427 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7428 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7429 right thing on architectures with different endianness and/or
7430 integer sizes.
7431
7432 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 From Christian Limpach <chris@Pin.LU>
7435 * configure.in: Change sed expression which comments out
7436 NATDEPFILES to also comment out continuation lines.
7437 * configure: Regenerate.
7438
7439 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7440
7441 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7442 big patch.
7443
7444 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7445
7446 * sh-tdep.c: Include correct file.
7447
7448 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7449
7450 New support for sh64-elf (sh5) target.
7451
7452 * configure.tgt: For sh64-elf target, default to sh-elf.
7453
7454 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7455 (struct gdbarch_tdep): Add new fields for new registers and ABI
7456 info.
7457
7458 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7459 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7460 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7461 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7462 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7463 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7464 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7465 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7466 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7467 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7468 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7469 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7470 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7471 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7472 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7473 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7474 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7475 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7476 sign_extend, sh64_nofp_frame_init_saved_regs,
7477 sh64_init_extra_frame_info, sh64_get_saved_register,
7478 sh64_extract_struct_value_address, sh64_pop_frame,
7479 sh64_push_arguments, sh64_extract_return_value,
7480 sh64_store_return_value, sh64_show_media_regs,
7481 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7482 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7483 sh_sh64_register_virtual_type,
7484 sh_sh64_register_convert_to_virtual,
7485 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7486 sh64_register_read, sh64_pseudo_register_write,
7487 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7488 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7489 sh64_do_pseudo_register, sh_compact_do_registers_info,
7490 sh64_do_registers_info, sh_gdbarch_init): New functions.
7491
7492 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7493
7494 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7495
7496 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7497
7498 * linespec.c (decode_line_1): Check for a double quote after
7499 a filename correctly.
7500
7501 2002-05-10 Jim Blandy <jimb@redhat.com>
7502
7503 Properly track the size of the current objfile's .debug_line section.
7504 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7505 (DWARF_LINE_SIZE): New macro.
7506 (dwarf2_build_psymtabs_hard): Record the line section's size in
7507 the partial symbol table.
7508 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7509 symbol table.
7510
7511 2002-05-10 Petr Sorfa <petrs@caldera.com>
7512
7513 * ia64-tdep.c: Handle breakpoints on L instruction type
7514 in MLX instruction bundle by moving the breakpoint to
7515 the third slot (X instruction type) as L holds only data.
7516
7517 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7518
7519 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7520 (process_one_symbol): Complain about discarding local symbols
7521 due to a misplaced N_LBRAC entry.
7522
7523 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7524
7525 From Daniel Berlin <dan@cgsoftware.com>
7526 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7527 decrease the depth we are at, in the case of templates.
7528
7529 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * mips-tdep.c (mips_float_register_type): New function.
7532 (mips_double_register_type): New function.
7533 (mips_print_register): Use them.
7534 (do_fp_register_row): Likewise.
7535
7536 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7537
7538 * signals/signals.c (signals): Remove conditional compilation around
7539 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7540 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7541
7542 2002-05-09 Michael Snyder <msnyder@redhat.com>
7543
7544 * remote-rdp.c (remote_rdp_can_run): Remove.
7545
7546 2002-05-09 Tom Tromey <tromey@redhat.com>
7547
7548 * jv-valprint.c (java_val_print): Handle `char' as a special case
7549 of TYPE_CODE_INT.
7550
7551 2002-05-09 Michael Snyder <msnyder@redhat.com>
7552
7553 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7554 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7555 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7556 str r(0123),[sp,#nn].
7557 (arm_skip_prologue): Ditto. Also make disassembly
7558 order-independent by placing it in a loop.
7559
7560 2002-05-06 Michael Snyder <msnyder@redhat.com>
7561
7562 * stabsread.c (read_type): Add recognition for new attribute:
7563 "@V;" means that an array type is actually a vector.
7564 This is analogous to the vector flag that's been added to dwarf2.
7565
7566 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7567
7568 * i386-tdep.h (i386_abi): New enum.
7569 (struct gdbarch_tdep): Replace os_ident member with abi.
7570 (i386_gdbarch_register_os_abi): New prototype.
7571 * i386-tdep.c (i386_abi_names): New array.
7572 (process_note_abi_tag_sections): Removed.
7573 (process_note_sections): New function.
7574 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7575 (struct i386_abi_handler): New struct.
7576 (i386_abi_handler_list): New variable.
7577 (i386_gdbarch_register_os_abi): New function.
7578 (i386_gdbarch_init): Adapt for the changes given above.
7579
7580 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7581
7582 * gregset.h: Say "GNU/Linux".
7583
7584 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7585
7586 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7587 (build_gdbtypes): Build builtin_type_v2_float.
7588 (_initialize_gdbtypes): Register new builtin type.
7589
7590 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7591
7592 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7593 (clear_gdbarch_swap): New function.
7594 (initialize_non_multiarch): Call.
7595 (gdbarch_update_p): Before calling init(), swap out and clear the
7596 existing architecture.
7597 * gdbarch.c: Regenerate.
7598
7599 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7602 alphanbsd-tdep.c.
7603
7604 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * sh-nbsd-nat.c: Rename to...
7607 * shnbsd-nat.c: ...this.
7608 * sh-nbsd-tdep.c: Rename to...
7609 * shnbsd-tdep.c: ...this.
7610 * sh-nbsd-tdep.h: Rename to...
7611 * shnbsd-tdep.h: ...this.
7612 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7613 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7614
7615 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7616
7617 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7618 concatenation for command help messages.
7619
7620 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7621
7622 * NEWS: Note new sh*-*-netbsdelf* configuration.
7623 * configure.host: Set gdb_host_cpu to sh for all sh*.
7624 (sh*-*-netbsdelf*): New host.
7625 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7626 (sh*-*-netbsdelf*): New target.
7627 * sh-nbsd-nat.c: New file.
7628 * sh-nbsd-tdep.c: New file.
7629 * sh-nbsd-tdep.h: New file.
7630 * config/sh/nbsd.mh: New file.
7631 * config/sh/nbsd.mt: New file.
7632 * config/sh/nm-nbsd.h: New file.
7633 * config/sh/tm-nbsd.h: New file.
7634
7635 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * sh-tdep.c (sh_osabi_names): Declare.
7638 (process_note_abi_tag_sections): New function.
7639 (get_elfosabi): Ditto.
7640 (sh_gdbarch_register_os_abi): Ditto.
7641 (sh_dump_tdep): Ditto.
7642 _initialize_sh_tdep): Use gdbarch_register to register
7643 sh_gdbarch_init and sh_dump_tdep.
7644 * config/sh/tm-sh.h (sh_osabi): Declare.
7645 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7646
7647 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7648
7649 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7650 (thumb_scan_prologue): Ditto.
7651 (arm_find_callers_reg): Ditto.
7652 (arm_frame_chain): Ditto.
7653 (arm_init_extra_frame_info): Ditto.
7654 (arm_frame_saved_pc): Ditto.
7655 (arm_pop_frame): Ditto.
7656 (arm_push_return_address): New function.
7657 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7658 call_dummy_location, call_dummy_breakpoint_offset_p,
7659 call_dummy_breakpoint_offset, call_dummy_p,
7660 call_dummy_stack_adjust_p, call_dummy_words,
7661 sizeof_call_dummy_words, call_dummy_start_offset,
7662 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7663 call_dummy_address, push_return_address and push_dummy_frame for
7664 generic dummy frames.
7665
7666 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7667
7668 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7669 size computation for alloca.
7670 (sh_fp_frame_init_saved_regs): Likewise.
7671
7672 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7673
7674 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7675 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7676 * arm-tdep.c (arm_store_return_value): Use them.
7677 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7678 * remote-rdp.c (remote_rdp_fetch_register): Use
7679 ARM_MAX_REGISTER_RAW_SIZE.
7680 (remote_rdp_store_register): Likewise.
7681
7682 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7683
7684 * dwarf2cfi.c: Code cleanup, removed unused variables,
7685 added default labels to switch {} statements.
7686 * x86-64-tdep.c: Ditto.
7687 * x86-64-linux-nat.c: Ditto.
7688
7689 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * solib.h: Protect against multiple inclusion.
7692
7693 2002-05-06 Jim Blandy <jimb@redhat.com>
7694
7695 Add first preprocessor macro-expansion files.
7696 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7697 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7698 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7699 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7700 (COMMON_OBS): Add macrotab.o, macroexp.o.
7701 (macroexp.o, macrotab.o): New rules.
7702
7703 Separate the job of reading the line number info statement program
7704 header (...expialidocious) out into its own function.
7705 * dwarf2read.c (struct line_head, struct filenames, struct
7706 directories): Replace with...
7707 (struct line_header): New structure, containing the full
7708 contents of the statement program header, including the
7709 include directory and file name tables.
7710 (read_file_scope): If we have line number info, instead of just
7711 calling dwarf_decode_lines to do all the work, call
7712 dwarf_decode_line_header first to get a `struct line_header'
7713 containing the data in the statement program header, and then
7714 pass that to dwarf_decode_lines, which will pick up where that
7715 left off. Be sure to clean up the `struct line_header' object.
7716 (dwarf_decode_line_header, free_line_header, add_include_dir,
7717 add_file_name): New functions.
7718 (dwarf_decode_lines): Move all the code to read the statement
7719 program header into dwarf_decode_line_header. Take the line
7720 header it built as the first argument, instead of the offset to
7721 the compilation unit's line number info. Use the new `struct
7722 line_header' type instead of the old structures. No need to do
7723 cleanups here now, since we don't allocate anything.
7724 (dwarf2_statement_list_fits_in_line_number_section,
7725 dwarf2_line_header_too_long): New complaints.
7726
7727 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7728
7729 * gdbtypes.c (init_vector_type): New function.
7730 (build_builtin_type_vec128): Simplify the representation of SIMD
7731 registers.
7732 (build_gdbtypes): Initialize new builtin vector types.
7733 (_initialize_gdbtypes): Register new vector types with gdbarch.
7734 (builtin_type_v4_float, builtin_type_v4_int32,
7735 builtin_type_v8_int16, builtin_type_v16_int8,
7736 builtin_type_v2_int32, builtin_type_v4_int16,
7737 builtin_type_v8_int8): New (renamed) SIMD types.
7738
7739 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7740
7741 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7742 (i387_fill_fxsave): Likewise.
7743
7744 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7745
7746 * alpha-tdep.c (alpha_extract_return_value): Don't use
7747 non-constant array size in prototype.
7748
7749 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7750
7751 From Brian Taylor <briant at model dot com>:
7752 * ui-out.c (ui_out_field_core_addr): Use the function
7753 longest_local_hex_string_custom'to format addresses > 32 bits
7754 wide.
7755
7756 * ui-out.c (ui_out_field_core_addr): Update comment.
7757
7758 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7759
7760 * stack.c (select_and_print_frame): Make static. Delete the
7761 parameter `level'.
7762 (func_command): Update call.
7763 (select_frame_command): Delete code computing the frame level.
7764 * frame.h (select_and_print_frame): Delete declaration.
7765
7766 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7767
7768 * sparc-tdep.c (sparc_get_saved_register): Comment why
7769 get_prev_frame call is safe.
7770
7771 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7772
7773 * frame.h (select_frame): Delete level parameter.
7774 * stack.c (select_frame): Update. Use frame_relative_level to
7775 obtain the frame's level.
7776 (select_and_print_frame): Update call.
7777 (select_frame_command): Ditto.
7778 (up_silently_base): Ditto.
7779 (down_silently_base): Ditto.
7780 * ocd.c (ocd_start_remote): Ditto.
7781 * remote-rdp.c (remote_rdp_open): Ditto.
7782 * remote-mips.c (mips_initialize): Ditto.
7783 (common_open): Ditto.
7784 * remote-e7000.c (e7000_start_remote): Ditto.
7785 * m3-nat.c (select_thread): Ditto.
7786 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7787 (child_get_current_exception_event): Ditto.
7788 * varobj.c (varobj_create): Ditto.
7789 (varobj_update): Ditto.
7790 (c_value_of_root): Ditto.
7791 * tracepoint.c (finish_tfind_command): Ditto.
7792 * corelow.c (core_open): Ditto.
7793 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7794 * thread.c (info_threads_command): Ditto.
7795 (switch_to_thread): Ditto.
7796 * infrun.c (normal_stop): Ditto.
7797 (restore_selected_frame): Ditto.
7798 (restore_inferior_status): Ditto.
7799 * breakpoint.c (insert_breakpoints): Ditto.
7800 (watchpoint_check): Ditto.
7801 (bpstat_stop_status): Ditto.
7802 (do_enable_breakpoint): Ditto.
7803 * blockframe.c (flush_cached_frames): Ditto.
7804 (reinit_frame_cache): Ditto.
7805
7806 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7807
7808 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7809 maintainer.
7810
7811 2002-05-04 Jim Blandy <jimb@redhat.com>
7812
7813 * gdbtypes.c (replace_type): Doc fix.
7814
7815 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7816
7817 * valprint.c (strcat_longest): Delete commented out function.
7818 Update copyright.
7819
7820 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7821
7822 * MAINTAINERS: Mark a29k as deleted.
7823 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7824 Move new configurations to the top.
7825 * configure.tgt: Remove a29k.
7826 * config/a29k/tm-vx29k.h: Delete.
7827 * config/a29k/vx29k.mt: Delete.
7828 * config/a29k/tm-a29k.h: Delete.
7829 * config/a29k/a29k-udi.mt: Delete.
7830 * config/a29k/a29k.mt: Delete.
7831 * a29k-tdep.c: Delete.
7832 * remote-udi.c: Delete.
7833 * remote-mm.c: Delete.
7834 * remote-eb.c: Delete.
7835 * remote-adapt.c: Delete.
7836 * Makefile.in: Remove obsolete code.
7837 * config/s390/s390x.mt: Ditto.
7838 * config/s390/s390.mt: Ditto.
7839 * config/sparc/sparclynx.mh: Ditto.
7840 * config/sparc/linux.mh: Ditto.
7841 * config/pa/hppaosf.mh: Ditto.
7842 * config/pa/hppabsd.mh: Ditto.
7843 * config/ns32k/nbsd.mt: Ditto.
7844 * config/mips/vr5000.mt: Ditto.
7845 * config/m68k/sun3os4.mh: Ditto.
7846 * config/m68k/nbsd.mt: Ditto.
7847 * config/m68k/m68klynx.mh: Ditto.
7848 * config/m32r/m32r.mt: Ditto.
7849 * config/i386/x86-64linux.mt: Ditto.
7850 * config/i386/nbsdelf.mt: Ditto.
7851 * config/i386/nbsd.mt: Ditto.
7852 * config/i386/i386lynx.mh: Ditto.
7853
7854 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7855
7856 * target.c (debug_print_register): New function. Handle oversize
7857 registers.
7858 (debug_to_fetch_registers): Call.
7859 (debug_to_store_registers): Call.
7860
7861 2002-05-03 Jim Blandy <jimb@redhat.com>
7862
7863 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7864 (read_type): Doc fix.
7865 * gdbtypes.c (replace_type): Doc fix.
7866
7867 * stabsread.c (multiply_defined_struct): New complaint.
7868 (read_struct_type): If the type we were passed isn't empty, or
7869 incomplete, don't read the new struct type into it; complain,
7870 and return the original type unchanged. Take a new `type_code'
7871 argument, which is the type code for the new type.
7872 (read_type): Rather than storing the type's type code here, pass
7873 it as an argument to read_struct_type, and let that take care of
7874 storing it. That way, we don't overwrite the original type code,
7875 so read_struct_type can use it to decide whether we're overwriting
7876 something we shouldn't.
7877 (complain_about_struct_wipeout): New function.
7878
7879 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7880
7881 * gdbarch.sh: Assert that gdbarch is non-NULL.
7882 * gdbarch.c: Regenerate.
7883
7884 2002-05-03 Jason Merrill <jason@redhat.com>
7885
7886 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7887 and return NULL.
7888
7889 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7890
7891 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7892 (x86_64_dwarf2gdb_regno_map_length),
7893 (x86_64_dwarf2_reg_to_regnum): Added.
7894 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7895 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7896 (_initialize_x86_64_tdep): Synced with the change above.
7897 (x86_64_skip_prologue): Reformulated message.
7898
7899 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7900
7901 * f-exp.y: Also use new prev_lexptr variable
7902 to improve error reporting. Based on Michael Snyder
7903 2002-04-24 dated patch to c-exp.y.
7904 * jv-exp.y: Likewise.
7905 * m2-exp.y: Likewise.
7906
7907 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7908
7909 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7910 we are dealing with vectors.
7911
7912 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7913
7914 * config/m68k/tm-nbsd.h: Obvious fix,
7915 correct machine name.
7916
7917 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7918
7919 * p-typeprint.c (pascal_type_print_base): Add support
7920 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7921
7922 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7923
7924 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7925 for fondamental pascal 'char' type.
7926
7927 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7928
7929 * p-lang.h (is_pascal_string_type): Declaration changed,
7930 new sixth argument of type char ** added.
7931 * p-lang.c (is_pascal_string_type): Implementation
7932 changed. Args length_pos, length_size, string_pos, char_size
7933 can now be NULL. New argument arrayname set to the field
7934 name of the char array. Return value set to char array
7935 field index plus one.
7936 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7937 is_pascal_string_type function.
7938
7939 2002-05-02 Andrew Cagney <cagney@redhat.com>
7940
7941 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7942 <cagney@redhat.com> change.
7943 * gdbarch.c: Regenerate.
7944
7945 2002-05-02 Andrew Cagney <cagney@redhat.com>
7946
7947 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7948 before probing for a new one. Detect errorenous gdbarch_init
7949 functions.
7950 * gdbarch.c: Regenerate.
7951
7952 2002-05-01 Andrew Cagney <cagney@redhat.com>
7953
7954 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7955 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7956 * config/v850/tm-v850.h: Ditto. Update copyright.
7957
7958 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7959
7960 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7961 current_gdbarch.
7962
7963 2002-04-30 Michael Snyder <msnyder@redhat.com>
7964
7965 * arm-tdep.c: Whitespace clean-ups.
7966 (arm_skip_prologue): Fix thinko; two lines
7967 should have been removed as part of 4/24 change.
7968
7969 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7970
7971 * rs6000-tdep.c: Added comment describing how fpscr register
7972 numbers were chosen.
7973
7974 2002-04-30 Michael Snyder <msnyder@redhat.com>
7975
7976 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7977
7978 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7979
7980 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7981 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7982 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7983
7984 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7985
7986 From Louis Hamilton <hamilton@redhat.com>:
7987 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7988 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7989 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7990 not bfd-private xcoff data, to determine wordsize.
7991 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7992
7993 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7994
7995 GDB 5.2 released from 5.2 branch.
7996
7997 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7998
7999 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8000 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8001 (x86_64_register_info_table): Added comments with register numbers.
8002
8003 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8004
8005 * rs6000-tdep.c (rs6000_extract_return_value,
8006 rs6000_store_return_value): Handle returning vectors.
8007 (rs6000_gdbarch_init): Use
8008 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8009 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8010 New function.
8011 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8012 vectors.
8013 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8014 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8015
8016 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8017
8018 * hpread.c (hpread_psymtab_to_symtab_1,
8019 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8020 with fprintf_unfiltered (gdb_stderr,...).
8021
8022 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8023
8024 * remote-array.c (printf_monitor, write_monitor,
8025 array_insert_breakpoint, array_remove_breakpoint ):
8026 Replace fprintf (stderr,...
8027 with fprintf_unfiltered (gdb_stderr,....
8028 * remote-es.c: Likewise.
8029 * remote-os9k.c: Likewise.
8030 * remote-st.c: Likewise.
8031
8032 2002-04-28 Andreas Schwab <schwab@suse.de>
8033
8034 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8035 linux-proc.o and gcore.o.
8036
8037 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8038
8039 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8040 code without frame pointers.
8041
8042 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8043
8044 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8045 ON_STACK is needed.
8046
8047 2002-04-26 Ben Elliston <bje@redhat.com>
8048
8049 * target.c (do_xfer_memory): Correct reference to the new option
8050 "trust-readonly-sections".
8051
8052 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8053
8054 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8055 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8056 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8057 vectors.
8058 (read_array_type): Record the fact that this array type is really a
8059 vector (i.e. are passed in by value).
8060
8061 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8064 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8065 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8066 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8067 * alpha-linux-tdep.c: Include frame.h.
8068 (alpha_linux_sigcontext_addr): New function.
8069 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8070 alpha_linux_sigcontext_addr.
8071 * alpha-osf1-tdep.c: Include gdbcore.h.
8072 (alpha_osf1_sigcontext_addr): New function.
8073 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8074 alpha_osf1_sigcontext_addr.
8075 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8076 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8077
8078 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8079
8080 * stack.c (selected_frame_level):
8081 (select_frame): Do not set selected_frame_level.
8082 * frame.h (selected_frame_level): Delete declaration.
8083
8084 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8085
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8087 convert_from_func_ptr-addr when AIX / PowerOpen.
8088
8089 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8090
8091 * valops.c (hand_function_call): Call
8092 generic_save_call_dummy_addr.
8093 * frame.h (generic_save_call_dummy_addr): Declare.
8094 * blockframe.c (struct dummy_frame): Add fields call_lo and
8095 call_hi.
8096 (generic_find_dummy_frame): Check for PC in range call_lo to
8097 call_hi instead of entry_point_address.
8098 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8099 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8100 (generic_save_call_dummy_addr): New function.
8101
8102 2002-04-24 David S. Miller <davem@redhat.com>
8103
8104 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8105 sparc_skip_prologue.
8106 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8107 information to find prologue when possible.
8108 (sparc_prologue_frameless_p): Call examine_prologue directly.
8109 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8110 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8111 second argument.
8112 (SKIP_PROLOGUE): Likewise.
8113
8114 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8115
8116 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8117 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8118 indicate that the condition it was testing is always true.
8119 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8120 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8121 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8122
8123 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8124
8125 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8126 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8127 tdep->jb_pc and tdep->jb_elt_size.
8128 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8129 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8130 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8131 * alpha-nat.c (get_longjmp_target): Remove.
8132 (JB_ELEMENT_SIZE): Ditto.
8133 (JB_PC): Ditto.
8134 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8135 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8136 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8137 to alpha_get_longjmp_target.
8138 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8139 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8140 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8141
8142 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8143
8144 * README: Update to GDB 5.2.
8145
8146 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8147
8148 * gdbarch.sh (LC_ALL): Set to `c'.
8149
8150 2002-04-25 Theodore A. Roth <troth@verinet.com>
8151
8152 * avr-tdep.c: Ran through gdb_indent.sh.
8153
8154 2002-04-25 Theodore A. Roth <troth@verinet.com>
8155
8156 * MAINTAINERS: Add myself as AVR maintainer.
8157 * NEWS: Note new target avr.
8158
8159 2002-04-25 Theodore A. Roth <troth@verinet.com>
8160
8161 * Makefile.in: Add support for AVR target.
8162 * configure.tgt: Add support for AVR target.
8163 * avr-tdep.c: New file
8164 * config/avr/avr.mt: New file.
8165
8166 2002-04-25 Theodore A. Roth <troth@verinet.com>
8167
8168 * MAINTAINERS: Add myself to write-after-approval.
8169
8170 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8171
8172 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8173 with fprintf_unfiltered (gdb_stderr,....
8174
8175 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8176
8177 Fix PR gdb/508.
8178 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8179
8180 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8181
8182 * p-exp.y: Also use new prev_lexptr variable
8183 to improve error reporting. Based on Michael Snyder
8184 2002-04-24 dated patch to c-exp.y.
8185
8186 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8189 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8190 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8191 to 0.
8192 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8193 and struct value.
8194 (FUNCTION_START_OFFSET): Remove.
8195 (BREAKPOINT): Ditto.
8196
8197 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8198
8199 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8200 * NEWS: Ditto.
8201
8202 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8203
8204 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8205 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8206 alpha_linux_pc_in_sigtramp.
8207 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8208 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8209 alpha_osf1_pc_in_sigtramp.
8210 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8211 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8212 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8213 alphafbsd_pc_in_sigtramp.
8214 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8215 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8216 alphanbsd_pc_in_sigtramp.
8217 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8218 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8219
8220 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8221
8222 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8223
8224 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8227 alphanbsd-tdep.c.
8228 (alphanbsd-nat.o): New dependency list.
8229 (alphanbsd-tdep.o): Ditto.
8230 * NEWS: Note new native NetBSD/alpha configuration.
8231 * alphanbsd-nat.c: New file.
8232 * alphanbsd-tdep.c: Ditto.
8233 * configure.host (alpha*-*-netbsd*): New host.
8234 * configure.tgt (alpha*-*-netbsd*): New target.
8235 * config/alpha/nbsd.mh: New file.
8236 * config/alpha/nbsd.mt: Ditto.
8237 * config/alpha/nm-nbsd.h: Ditto.
8238 * config/alpha/tm-nbsd.h: Ditto.
8239
8240 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8241
8242 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8243 (alpha-osf1-tdep.o): New dependency list.
8244 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8245 and skip_sigtramp_frame members.
8246 * alpha-linux-tdep.c: Include gdbcore.h.
8247 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8248 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8249 * alpha-osf1-tdep.c: New file.
8250 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8251 alpha-osf1-dep.c.
8252 (alpha_frame_past_sigtramp_frame): New function.
8253 (alpha_dynamic_sigtramp_offset): Ditto.
8254 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8255 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8256 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8257 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8258 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8259 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8260 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8261 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8262 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8263 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8264 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8265 to find_solib_trampoline_target.
8266 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8267 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8268 (SKIP_TRAMPOLINE_CODE): Remove.
8269 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8270 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8271 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8272 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8273 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8274 (PROC_SIGTRAMP_MAGIC): Ditto.
8275 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8276 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8277 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8278 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8279 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8280
8281 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8282
8283 * NEWS: Note that Alpha targets are now multi-arch.
8284
8285 2002-04-24 Michael Snyder <msnyder@redhat.com>
8286
8287 * parser-defs.h (prev_lexptr): New external variable.
8288 * parse.c (parse_exp_1): Set prev_lexptr to null before
8289 calling the language-specific parser.
8290 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8291 (yyerror): Use prev_lexptr in error reporting.
8292
8293 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8294
8295 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8296 * gregset.h: If FILL_FPXREGSET is defined, provide
8297 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8298 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8299 is defined, call fill_fpxregset.
8300
8301 2002-04-24 Roland McGrath <roland@frob.com>
8302
8303 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8304 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8305 (supply_gregset, supply_fpregset): New functions.
8306
8307 * gnu-nat.c (gnu_find_memory_regions): New function.
8308 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8309 (gnu_xfer_memory): Add a cast.
8310
8311 2002-04-24 Michael Snyder <msnyder@redhat.com>
8312
8313 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8314 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8315 of argument regs ("str r(0123), [r11, #-nn"]).
8316 (arm_skip_prologue): Better handling for frameless functions.
8317 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8318 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8319
8320 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8321
8322 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8323 NUM_PSEUDO_REGS can be used.
8324
8325 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8326
8327 * arch-utils.h: Update copyright.
8328
8329 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8330 * gdbarch.h, gdbarch.c: Re-generate.
8331
8332 * inferior.h (IN_SIGTRAMP): Delete definition.
8333 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8334 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8335
8336 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8337 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8338 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8339 (find_proc_framesize): Ditto.
8340 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8341 (alpha_init_extra_frame_info): Ditto.
8342 * infrun.c (handle_inferior_event): Ditto.
8343 (handle_inferior_event): Ditto.
8344 (check_sigtramp2): Ditto.
8345 * blockframe.c (create_new_frame): Ditto.
8346 (get_prev_frame): Ditto.
8347 * ppc-linux-tdep.c: Update comments.
8348 * i386-linux-tdep.c: Update comments.
8349 * breakpoint.c (bpstat_what): Update comment.
8350
8351 2002-04-24 David S. Miller <davem@redhat.com>
8352
8353 * i960-tdep.c (register_in_window_p): New function.
8354 (i960_find_saved_register): Use it instead of
8355 REGISTER_IN_WINDOW_P.
8356 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8357
8358 * symtab.h (find_stab_function_addr): Kill extern.
8359 * minsyms.c (find_stab_function_addr): Remove from here...
8360 * dbxread.c: ... to here, and mark it static.
8361
8362 2002-04-20 David S. Miller <davem@redhat.com>
8363
8364 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8365 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8366
8367 2002-04-21 David S. Miller <davem@redhat.com>
8368
8369 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8370 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8371 (vx_write_register): Likewise.
8372
8373 2002-04-23 J. Brobecker <brobecker@gnat.com>
8374
8375 * source.c (is_regular_file): New function.
8376 (openp): Check wether file to open is a regular file
8377 to avoid opening directories.
8378
8379 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8380
8381 * findvar.c (extract_signed_integer): Cast printf argument
8382 to suppress format warning.
8383 (extract_unsigned_integer): Likewise.
8384 * infcmd.c (registers_info): Likewise.
8385 * top.c (get_prompt_1): Likewise.
8386 * valops.c (value_assign): Likewise.
8387 * valprint.c (print_decimal): Likewise.
8388
8389 2002-04-22 H.J. Lu (hjl@gnu.org)
8390
8391 * c-exp.y (typebase): Support
8392
8393 [long|long long|short] [signed|unsigned] [int|]
8394
8395 and
8396
8397 signed [long|long long|short] int
8398
8399 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8400
8401 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8402 and vax-tdep.h.
8403 * vax-tdep.h: New file.
8404 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8405 Make several routines static.
8406 (vax_get_saved_register): New function.
8407 (vax_gdbarch_init): New function.
8408 (_initialize_vax_tdep): Register vax_gdbarch_init.
8409 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8410 Remove macros now under the control of gdbarch.
8411
8412 2002-04-22 Michael Snyder <msnyder@redhat.com>
8413
8414 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8415 Some whitespace and coding standards tweaks.
8416
8417 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8418
8419 * vax-tdep.c: Include regcache.h.
8420 (vax_call_dummy_words): New.
8421 (sizeof_vax_call_dummy_words): New.
8422 (vax_fix_call_dummy): New function.
8423 (vax_saved_pc_after_call): Ditto.
8424 * config/vax/tm-vax.h: Don't include regcache.h.
8425 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8426 (CALL_DUMMY): Remove.
8427 (CALL_DUMMY_WORDS): Define.
8428 (SIZEOF_CALL_DUMMY_WORDS): Define.
8429 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8430
8431 2002-04-18 Michael Snyder <msnyder@redhat.com>
8432
8433 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8434
8435 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8436
8437 * vax-tdep.c (vax_frame_chain): New function.
8438 (vax_push_dummy_frame): Ditto.
8439 (vax_pop_frame): Ditto.
8440 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8441 (FRAMELESS_FUNCTION_INVOCATION): Use
8442 generic_frameless_function_invocation_not.
8443 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8444 (POP_FRAME): Use vax_pop_frame.
8445
8446 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8447
8448 * vax-tdep.c (vax_store_struct_return): New function.
8449 (vax_extract_return_value): Ditto.
8450 (vax_store_return_value): Ditto.
8451 (vax_extract_struct_value_address): Ditto.
8452 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8453 vax_store_struct_return.
8454 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8455 (STORE_RETURN_VALUE): Use vax_store_return_value.
8456 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8457
8458 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8459
8460 * vax-tdep.c (vax_frame_saved_pc): New function.
8461 (vax_frame_args_address_correct): Ditto.
8462 (vax_frame_args_address): Ditto.
8463 (vax_frame_locals_address): Ditto.
8464 (vax_frame_num_args): Move code to be in proximity to
8465 other frame-related functions.
8466 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8467 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8468 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8469 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8470 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8471
8472 2002-04-22 H.J. Lu (hjl@gnu.org)
8473
8474 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8475 includedir.
8476
8477 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8478
8479 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8480 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8481 (FRAME_INIT_SAVED_REGS): New macro.
8482
8483 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8484
8485 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8486
8487 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8488
8489 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8490 where needed.
8491 (fetch_osf_core_registers): Likewise.
8492 (supply_gregset): Likewise.
8493
8494 2002-04-22 J. Brobecker <brobecker@gnat.com>
8495
8496 * symfile.h (get_section_index): Define.
8497 * symfile.c (get_section_index): New function.
8498 * mdebugread.c (SC_IS_SBSS): New macro.
8499 (SC_IS_BSS): Return true for the scBss storage class only, as
8500 the scSBss storage class refers to the .sbss section.
8501 (parse_partial_symbols): Discard the symbols which associated
8502 section does not exist.
8503 Make sure to use the .sbss section index for symbols which
8504 storage class is scBss, rather than using the .bss section index.
8505
8506 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8507
8508 * vax-tdep.c: Update copyright years.
8509 (vax_register_name): New function.
8510 (vax_register_byte): Ditto.
8511 (vax_register_raw_size): Ditto.
8512 (vax_register_virtual_size): Ditto.
8513 (vax_register_virtual_type): Ditto.
8514 * config/vax/tm-vax.h: Update copyright years.
8515 (REGISTER_NAMES): Remove.
8516 (REGISTER_NAME): Define.
8517 (REGISTER_BYTE): Use vax_register_byte.
8518 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8519 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8520 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8521
8522 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8523
8524 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8525 declaration
8526 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8527
8528 2002-04-21 David S. Miller <davem@redhat.com>
8529
8530 * arch-utils.c (generic_prologue_frameless_p): Kill
8531 SKIP_PROLOGUE_FRAMELESS_P code.
8532 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8533 references.
8534 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8535 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8536 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8537 references.
8538 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8539 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8540 (sparc_gdbarch_init): Pass it to
8541 set_gdbarch_prologue_frameless_p.
8542
8543 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8544
8545 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8546 (alphabsd-nat.o): New dependency list.
8547
8548 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8549
8550 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8551 alphafbsd-tdep.c.
8552 (alpha-linux-tdep.o): New dependency list.
8553 (alphafbsd-tdep.o): Likewise.
8554
8555 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8556
8557 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8558 to here...
8559 * alpha-tdep.c: ...from here.
8560 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8561
8562 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8565 prototype from here...
8566 * alpha-tdep.h: ...to here.
8567
8568 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8569
8570 * frame.h (selected_frame_level): Document as deprecated.
8571 (frame_relative_level): Declare.
8572 * stack.c (frame_relative_level): New function.
8573 (selected_frame_level): Document as deprecated.
8574 (select_frame): Do not set the selected_frame_level.
8575
8576 * stack.c (frame_info, record_selected_frame): Update.
8577 (frame_command, current_frame_command): Update.
8578 (up_silently_base, up_command, down_silently_base): Update.
8579 (down_command): Update.
8580 * inflow.c (kill_command): Update.
8581 * tracepoint.c (finish_tfind_command): Update.
8582 * corelow.c (core_open): Update.
8583 * thread.c (info_threads_command): Update.
8584 (do_captured_thread_select): Update.
8585 * infcmd.c (finish_command): Update.
8586 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8587
8588 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8589
8590 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8591
8592 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8593
8594 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8595 type const.
8596
8597 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8598
8599 * alphafbsd-tdep.c: Update copyright years. Include
8600 alpha-tdep.h.
8601 (alphafbsd_use_struct_convention): Make static.
8602 (alphafbsd_init_abi): New function.
8603 (_initialize_alphafbsd_tdep): New function.
8604 * config/alpha/tm-fbsd.h: Update copyright years.
8605 (USE_STRUCT_CONVENTION): Remove.
8606
8607 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8608
8609 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8610 an Alpha ABI variant.
8611 (alpha_abi_handler_list): Declare.
8612 (alpha_gdbarch_register_os_abi): New function.
8613 (alpha_gdbarch_init): Give registered ABI variant handlers a
8614 chance to tweak the gdbarch once we have set up defaults.
8615 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8616
8617 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8618
8619 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8620 to standard_coerce_float_to_double.
8621 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8622
8623 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8624
8625 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8626 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8627 from gdbarch_tdep rather than a constant.
8628 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8629 the default text address for all Alpha Unix ABIs.
8630 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8631 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8632
8633 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * alpha-tdep.h: New file. Includes several Alpha target constants
8636 taken from...
8637 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8638 let gdbarch deal with.
8639 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8640 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8641 to dependency list.
8642 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8643 Alpha target register names.
8644 * alphabsd-nat.c: Likewise.
8645 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8646 Alpha target register names. Make serveral routines static.
8647 (alpha_get_saved_register): New function.
8648 (alpha_abi_names): New.
8649 (process_note_abi_tag_sections): New function.
8650 (get_elfosabi): New function.
8651 (alpha_gdbarch_init): New function.
8652 (alpha_dump_tdep): New function.
8653 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8654
8655 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8656
8657 * frame.c (find_saved_register): Delete #ifdef
8658 HAVE_REGISTER_WINDOWS code.
8659 * config/sparc/tm-sparc.h: Update comments.
8660 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8661
8662 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8663
8664 * i960-tdep.c (i960_find_saved_register): New function.
8665 (i960_get_saved_register): New function.
8666 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8667 (i960_get_saved_register): Declare.
8668 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8669
8670 2002-04-20 David S. Miller <davem@redhat.com>
8671
8672 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8673
8674 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8675
8676 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8677 instead of NUM_PSEUDO_REGS.
8678
8679 2002-04-20 David S. Miller <davem@redhat.com>
8680
8681 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8682 GDB_MULTI_ARCH_PARTIAL
8683 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8684 define, let tm-sp64.h do it.
8685
8686 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8687
8688 * frame.c (find_saved_register): Avoid a NULL pointer
8689 dereference and actually walk the frame list.
8690
8691 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8692
8693 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8694 sorted in most most-recent-used order. Document.
8695 * gdbarch.h, gdbarch.c: Regenerate.
8696
8697 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8698
8699 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8700 instead of ->prev.
8701 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8702 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8703 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8704 instead of ->prev.
8705
8706 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8707
8708 Fix PR gdb/471.
8709 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8710 (build_builtin_type_vec128): Ditto.
8711 (append_composite_type_field): Fix calculation of type length in
8712 union case.
8713
8714 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8715
8716 * config/djgpp/README: Update.
8717
8718 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8719 compiler warnings.
8720
8721 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8724 (alpha_setup_arbitrary_frame): ...to this.
8725 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8726 for alpha_setup_arbitrary_frame.
8727
8728 2002-04-18 Andrew Cagney <cagney@redhat.com>
8729
8730 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8731 * gdbarch.h, gdbarch.c: Regenerate.
8732
8733 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8734 * target.h (memory_breakpoint_from_pc): Update declaration.
8735 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8736
8737 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8738 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8739 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8740 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8741 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8742 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8743 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8744 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8745 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8746 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8747 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8748 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8749
8750 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8751 const pointer.
8752 * monitor.c (monitor_insert_breakpoint): Ditto.
8753 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8754
8755 * config/mcore/tm-mcore.h: Update copyright.
8756 * mem-break.c: Ditto.
8757 * xstormy16-tdep.c: Ditto.
8758
8759 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8760
8761 * p-exp.y: Add precedence rule for '^' token.
8762 This removes the shift/reduce conflicts.
8763 Remove the comment concerning these shift/reduce conflicts.
8764
8765 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8766
8767 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8768 (registers_powerpc_nofp): New register set for processors
8769 without floating point unit.
8770
8771 2002-04-18 David S. Miller <davem@redhat.com>
8772
8773 * MAINTAINERS: Add myself to write-after-approval.
8774
8775 2002-04-17 Michael Snyder <msnyder@redhat.com>
8776
8777 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8778
8779 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8780
8781 * rs6000-tdep.c (frame_initial_stack_address): Use
8782 frame_register_read to read the alloca_reg.
8783
8784 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8785
8786 * frame.c (find_saved_register): Find saved registers in the next
8787 not prev frame.
8788 Fix PR gdb/365.
8789
8790 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8791
8792 * gdbarch.sh (LANG): Set to ``c''.
8793
8794 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8795
8796 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8797
8798 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8799
8800 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8801 Update copyright.
8802
8803 * hpread.c (hpread_get_lntt): Add declaration.
8804 Also fix PR gdb/391.
8805
8806 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8807
8808 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8809 * aclocal.m4, configure: Re-generate.
8810 Fix PR gdb/391.
8811
8812 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8813
8814 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8815 instead of tm_print_insn.
8816
8817 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8818
8819 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8820
8821 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8822
8823 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8824 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8825 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8826
8827 2002-04-12 Don Howard <dhoward@redhat.com>
8828
8829 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8830 max_user_call_depth.
8831 (init_cmd_lists): Initialize the new value;
8832 * cli/cli-script.c (execute_user_command): Limit the call depth of
8833 user defined commands. This avoids a core-dump when user commands
8834 are infinitly recursive.
8835
8836 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8837
8838 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8839 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8840 from tdep struct instead of DEFAULT_LR_SAVE.
8841 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8842 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8843 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8844
8845 2002-04-12 Michael Snyder <msnyder@redhat.com>
8846
8847 * Remote.c: Spelling fix.
8848 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8849 If no symbol found for "sbrk", try "_sbrk".
8850 (make_output_phdrs): Use bfd_section_name.
8851 (gcore_copy_callback): Use bfd_section_name.
8852 * eval.c: Indentation fix-ups.
8853 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8854 in case it gets applied to an address that is already
8855 in the instruction space.
8856 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8857 * symfile.c: Fix indentation, long lines.
8858 * source.c: White space fix-up.
8859
8860 2002-04-12 Andrew Cagney <cagney@redhat.com>
8861
8862 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8863 * frame.c (frame_register_read): New function. Return non-zero on
8864 success.
8865 (read_relative_register_raw_bytes_for_frame): Delete.
8866 (read_relative_register_raw_bytes): Delete.
8867 * frame.h (frame_register_read): Declare.
8868 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8869 * sh-tdep.c: Ditto.
8870 * infcmd.c (do_registers_info): Ditto.
8871 * hppa-tdep.c: Ditto.
8872 * rs6000-tdep.c: Ditto.
8873 * h8500-tdep.c: Ditto.
8874 * mips-tdep.c: Ditto.
8875 * h8300-tdep.c: Ditto.
8876 * z8k-tdep.c: Ditto.
8877
8878 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8879
8880 From Jimi X <jimix@watson.ibm.com>:
8881 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8882 64-bit SysV ABI.
8883
8884 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8885
8886 From Jimi X <jimix@watson.ibm.com>:
8887 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8888 bfd info.
8889
8890 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8891
8892 From Jimi X <jimix@watson.ibm.com>:
8893 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8894 register sets for these processor variants.
8895
8896 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * regformats/reg-ppc.dat: Support FPSCR.
8899
8900 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8901
8902 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8903 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8904 Add fpscr as an invalid/unfetchable register.
8905 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8906 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8907 (fill_fpregset): Add support for register fpscr.
8908 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8909 (fill_gregset): Account for the fact that register ``mq'' might
8910 not exist.
8911 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8912 (registers_power): Add fpscr to register set at slot 71.
8913 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8914 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8915
8916 2002-04-11 Michael Snyder <msnyder@redhat.com>
8917
8918 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8919 * configure: Regenerate.
8920 * config.in: Regenerate.
8921 * acconfig.h: Add define for _SYSCALL32.
8922 * core-sol2.c: Remove #define _SYSCALL32.
8923 * solib-legacy.c: Remove #define _SYSCALL32.
8924
8925 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8926
8927 * stack.c (select_frame): Cleanup internal error message, do not
8928 use %p.
8929
8930 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8931
8932 * stack.c (select_frame): Check that selected_frame and the
8933 specified level are as expected.
8934 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8935 Update copyright.
8936 * frame.h (struct frame_info): Add field `level'. Update
8937 copyright.
8938 Work-in-progress PR gdb/464.
8939
8940 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8941
8942 * maint.c (maint_print_section_info): Rename print_section_info.
8943 (print_bfd_section_info, print_objfile_section_info): Update.
8944 * inferior.h (struct gdbarch): Add opaque declaration.
8945 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8946 * gdbarch.h: Regenerate.
8947
8948 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8949
8950 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8951 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8952 (kernel_u_size): Added.
8953 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8954 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8955
8956 2002-04-04 Jim Ingham <jingham@apple.com>
8957
8958 * valarith.c (find_size_for_pointer_math): New function, either returns
8959 the size for a pointer's target, returns 1 for void *, or errors for
8960 incomplete types.
8961 (value_add, value_sub): use find_size_for_pointer_math.
8962
8963 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * linux-low.c (linux_look_up_symbols): New hook.
8966 (linux_target_ops): Add linux_look_up_symbols.
8967 * remote-utils.c (decode_address): New function.
8968 (look_up_one_symbol): New function.
8969 * server.c (handle_query): Call target look_up_symbols hook.
8970 * server.h (look_up_one_symbol): Add prototype.
8971 * target.h (struct target_ops): Add look_up_symbols hook.
8972
8973 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8974
8975 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8976 override FP_REGNUM with frame->fp. Update copyright.
8977 * parse.c (num_std_regs, std_regs): Delete.
8978 (target_map_name_to_register): Do not search std_regs. Update
8979 function description.
8980 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8981 declarations. Update copyright.
8982 Fix PR gdb/251.
8983
8984 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8985
8986 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8987 after the last symbol in a block.
8988
8989 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8990
8991 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8992 is non zero as a found symbol.
8993
8994 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8995
8996 * findvar.c: Include "builtin-regs.h".
8997 (value_of_register): Call value_of_builtin_reg when applicable.
8998 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8999 (target_map_name_to_register): Call
9000 builtin_reg_map_name_to_regnum.
9001 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9002 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9003 (builtin_regs_h): Define.
9004 (builtin-regs.o): New target.
9005 (findvar.o): Add $(builtin_regs_h).
9006 * builtin-regs.c, builtin-regs.h: New files.
9007 * std-regs.c: New file.
9008 Partial fix for PR gdb/251.
9009
9010 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9011
9012 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9013 it's no longer required.
9014
9015 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9016
9017 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9018
9019 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9020
9021 From Jimi X <jimix@watson.ibm.com>:
9022 * rs6000-tdep.c (rs6000_software_single_step): Use
9023 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9024 and size. Use target_insert_breakpoint() and
9025 target_remove_breakpoint() to insert and remove breakpoints
9026 instead of explicit memory reads and writes.
9027
9028 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9029
9030 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9031 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9032 ELF_OBJECT_FORMAT ifdef.
9033
9034 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9035
9036 From Jimi X <jimix@watson.ibm.com>:
9037 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9038
9039 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9040
9041 From Jimi X <jimix@watson.ibm.com>:
9042 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9043 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9044
9045 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9046
9047 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9048 s/asprintf/xasprintf/.
9049 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9050
9051 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9052
9053 I believe Jeff Law denies responsability for this one:
9054 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9055 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9056 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9057 Work-around for PR gdb/366.
9058
9059 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9062 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9063 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9064
9065 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9066
9067 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9068 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9069 information.
9070
9071 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9072
9073 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9074 maintainer.
9075
9076 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9077
9078 * README (Reporting Bugs in GDB): Document the bug web page as the
9079 prefered way of submitting bugs.
9080 Fix PR gdb/402.
9081
9082 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9083
9084 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9085 -1. Update comment.
9086 * gdbarch.h, gdbarch.c: Re-generate.
9087
9088 2002-04-07 Andreas Schwab <schwab@suse.de>
9089
9090 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9091 buffer to regcache_collect.
9092
9093 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9094
9095 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9096 * gdbarch.c, gdbarch.h: Re-generate.
9097
9098 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9099
9100 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9101 declaration. Fix -Werror.
9102
9103 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9106 * gdbarch.c: Regenerate.
9107
9108 2002-04-05 Michael Snyder <msnyder@redhat.com>
9109
9110 * breakpoint.c (clear_command): Rewrite middle section to
9111 combine two loops with identical control conditions.
9112 Add a cleanup to eliminate a memory leak.
9113 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9114
9115 2002-04-05 H.J. Lu (hjl@gnu.org)
9116
9117 * solib-svr4.c (bkpt_names): Add "__start".
9118
9119 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9120
9121 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9122 as test for 64 bit target.
9123
9124 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9125
9126 * h8500-tdep.c (h8500_write_fp): Delete function.
9127 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9128 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9129 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9131 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9132 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9133 (s390_write_fp):
9134 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9135 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9136 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9137 (d10v_write_fp): Delete function.
9138 * inferior.h (write_fp, generic_target_write_fp): Delete
9139 declarations.
9140 * regcache.c (generic_target_write_fp): Delete function.
9141 (write_fp): Delete function.
9142 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9143 * gdbarch.h, gdbarch.c: Regenerate.
9144 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9145 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9146 (sparc64_write_fp): Delete declaration.
9147 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9148 (h8500_write_fp): Delete declaration.
9149
9150 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9151
9152 * sparc-tdep.c (sparc64_write_fp): Delete.
9153 (sparc_push_dummy_frame): Replace write_fp call with code to store
9154 the FP directly.
9155 (sparc_gdbarch_init): Do not initialize write_fp.
9156
9157 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9158
9159 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9160 clause.
9161
9162 2002-03-29 Jim Blandy <jimb@redhat.com>
9163
9164 * stack.c (get_selected_block): Add new argument `addr_in_block',
9165 used to return the exact code address we used to select the block,
9166 not just the block.
9167 * blockframe.c (get_frame_block, get_current_block): Same.
9168 * frame.h (get_frame_block, get_current_block,
9169 get_selected_block): Update declarations.
9170 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9171 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9172
9173 2002-04-05 Michael Snyder <msnyder@redhat.com>
9174
9175 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9176 warning message.
9177
9178 2002-04-05 J. Brobecker <brobecker@gnat.com>
9179
9180 * utils.c (xfullpath): New function.
9181 * defs.h (xfullpath): Add declaration.
9182 * source.c (openp): Use xfullpath in place of gdb_realpath to
9183 avoid resolving the basename part of filenames when the
9184 associated file is a symbolic link. This fixes a potential
9185 inconsistency between the filenames known to GDB and the
9186 filenames it prints in the annotations.
9187 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9188 to be able to match a filename with either the real filename, or
9189 the name of any symbolic link to this file.
9190 (lookup_partial_symtab): Ditto.
9191
9192 2002-04-04 Michael Snyder <msnyder@redhat.com>
9193
9194 * breakpoint.c: Add support for hardware breakpoints in overlays.
9195 (overlay_events_enabled): New state variable.
9196 (insert_breakpoints): Use overlay_events_enabled to decide
9197 whether to attempt to set a breakpoint at the overlay load addr.
9198 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9199 (remove_breakpoint): Use overlay_events_enabled to decide
9200 whether breakpoints need to be removed from overlay load addr.
9201 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9202 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9203 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9204 disable_overlay_breakpoints): Update overlay_events_enabled.
9205
9206 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9207
9208 * dwarf2read.c (struct function_range): New.
9209 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9210 (check_cu_functions): New.
9211 (read_file_scope): Initialize global function lists.
9212 Call dwarf_decode_line after processing children.
9213 (read_func_scope): Add to global function list.
9214 (dwarf_decode_lines): Call check_cu_functions everywhere
9215 record_line is called. Call record_line with a linenumber
9216 of 0 to mark sequence ends.
9217
9218 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9219
9220 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9221 change sync with glibc.
9222
9223 2002-04-03 Jim Blandy <jimb@redhat.com>
9224
9225 * configure.in: Call AC_C_INLINE.
9226 * configure: Regenerated.
9227
9228 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9231 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9232
9233 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9234
9235 * NEWS: Mention gcore support on FreeBSD/i386.
9236
9237 * fbsd-proc.c: New file.
9238 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9239 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9240
9241 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9242 while statement.
9243
9244 2002-03-29 Jim Blandy <jimb@redhat.com>
9245
9246 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9247 unescaped newlines in string literals, but newer ones don't. So
9248 escape them.
9249
9250 2002-03-26 Michael Snyder <msnyder@redhat.com>
9251 Andrew Cagney <cagney@redhat.com>
9252
9253 * cli/cli-dump.c: New file. Dump memory to file,
9254 restore file to memory.
9255 * cli/cli-dump.h: New file.
9256 * Makefile.in: Add rules, dependencies for cli-dump.o.
9257 * NEWS: Mention new commands.
9258
9259 2002-03-28 Michael Snyder <msnyder@redhat.com>
9260
9261 * symfile.c (symbol_file_add): Move test for null symbols to later.
9262
9263 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9264
9265 From veksler at il.ibm.com:
9266 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9267 the xstrduped original path.
9268 Fix PR gdb/417.
9269
9270 2002-03-27 Michael Snyder <msnyder@redhat.com>
9271
9272 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9273 * infcmd.c (_initialize_infcmd): Ditto.
9274 * language.c (_initialize_language): Ditto.
9275 * symfile.c (_initialize_symfile): Ditto.
9276 * top.c (_init_main): Ditto.
9277 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9278
9279 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9280
9281 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9282 vector registers handling.
9283 (skip_prologue): Handle new AltiVec instructions. Fill in new
9284 fields of frame data.
9285 (frame_get_saved_regs): Fill in information for AltiVec registers.
9286
9287 2002-03-27 Jim Blandy <jimb@redhat.com>
9288
9289 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9290 a function; leave this macro here to invoke that function.
9291 (symbol_init_mangled_name): Declaration for that function.
9292 * symtab.c (symbol_init_mangled_name): New function.
9293
9294 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9295
9296 * valarith.c: Replace strerror with safe_strerror.
9297 * tracepoint.c: Ditto.
9298 * lin-lwp.c: Ditto.
9299 * go32-nat.c: Ditto.
9300 * inflow.c: Ditto.
9301 * gnu-nat.c: Ditto.
9302
9303 2002-03-27 Andreas Schwab <schwab@suse.de>
9304
9305 * event-top.c (command_line_handler): Remove useless if.
9306
9307 2002-03-27 Andreas Jaeger <aj@suse.de>
9308
9309 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9310 comment.
9311
9312 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9313
9314 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9315 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9316 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9317 (x86_64_linux_dr_get_status, supply_gregset),
9318 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9319 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9320 (x86_64_register_info_table): Add.
9321 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9322 (x86_64_register_raw_size, x86_64_register_virtual_type),
9323 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9324 general x86_64_register_info_table.
9325 (i386_gdbarch_init): gdbarch_register_bytes is now set
9326 dynamicaly during initialization.
9327 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9328 * gdbserver/linux-x86-64-low.c: Ditto.
9329
9330 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9331
9332 * gdbserver/server.c (main): Call target_signal_to_host_p
9333 and target_signal_to_host on signals received from the remote.
9334 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9335 target_signal_from_host on signals sent to the remote.
9336 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9337 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9338
9339 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9340
9341 * signals/signals.c: Include "server.h" in gdbserver build.
9342 (target_signal_from_name): Don't use STREQ.
9343 (_initialize_signals): Likewise. Don't include function in
9344 gdbserver build.
9345
9346 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9347
9348 * signals.c: Moved to...
9349 * signals/signals.c: Here.
9350 * Makefile (signals.o): Update.
9351
9352 2002-03-26 Jeff Law (law@redhat.com)
9353
9354 * somread.c (som_symtab_read): Remove some commented out code and
9355 updated related comments. Do not set the minimal symbol table to
9356 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9357 in a dynamic executable.
9358 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9359 where we are unable to find the minimal symbol for the given
9360 PC value.
9361
9362 2002-03-25 Jeff Law (law@redhat.com)
9363
9364 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9365
9366 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9367
9368 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9369
9370 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9371
9372 * command.h: Update copyright.
9373 (struct cmd_list_element): Replace definition with opaque
9374 declaration.
9375 (enum cmd_types): Document that it will eventually be moved to
9376 cli/cli-decode.h
9377 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9378 (MALLOCED_REPLACEMENT): Delete macro.
9379 * Makefile.in (cli_decode_h): Add $(command_h).
9380 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9381 * top.c: Include "cli/cli-decode.h".
9382 * completer.c: Include "cli/cli-decode.h".
9383 * maint.c: Include "cli/cli-decode.h".
9384 * cli/cli-decode.h: Include "command.h".
9385 (enum command_class): Delete.
9386 (enum cmd_types): Comment out.
9387 (enum cmd_auto_boolean): Delete.
9388 (enum var_types): Delete.
9389
9390 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9391
9392 * cli/cli-decode.c: Include "gdb_assert.h".
9393 (add_set_or_show_cmd): New static function.
9394 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9395 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9396 all fields, such as func, from the set command.
9397
9398 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9399
9400 * MAINTAINERS (sh-elf): Change warning flag to -w.
9401
9402 2002-03-23 Andrew Cagney <cagney@redhat.com>
9403
9404 * defs.h (error): Add printf format attribute.
9405 * thread-db.c (thread_from_lwp): Fix error format string.
9406 * stack.c (parse_frame_specification): Ditto.
9407 * cli/cli-decode.c (undef_cmd_error): Ditto.
9408 * scm-lang.c (scm_lookup_name): Ditto.
9409 * tracepoint.c (trace_error): Ditto.
9410 * remote-utils.c (usage): Ditto.
9411 * remote.c (compare_sections_command): Ditto.
9412 Fix PR gdb/328.
9413
9414 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9415
9416 * gdbtypes.c (append_composite_type_field): New function.
9417 (init_composite_type): New function.
9418 * gdbtypes.h (append_composite_type_field): Declare.
9419 (init_composite_type): Ditto.
9420
9421 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9422
9423 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9424 function.
9425 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9426 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9427 structure returning convention for SYSV ABI case, but not
9428 for GNU/Linux, FreeBSD, or NetBSD.
9429
9430 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * symtab.h (lookup_block_symbol): Add mangled_name argument
9433 to prototype.
9434
9435 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9436 with new mangled_name argument.
9437 * linespec.c (decode_line_1): Likewise.
9438 * valops (value_of_this): Likewise.
9439 * symtab.c (lookup_transparent_type): Likewise.
9440 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9441 (lookup_symbol): If we are given a mangled name, pass it down
9442 to lookup_symbol_aux.
9443 (lookup_block_symbol): If we are given a mangled name to check
9444 against, only return symbols which match it.
9445
9446 2002-03-22 Christopher Faylor <cgf@redhat.com>
9447
9448 * win32-nat.c (child_create_inferior): Check for proper shell to use
9449 here, in case the user changes it on the fly.
9450 (_initialize_inftarg): Remove shell path considerations.
9451
9452 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9453
9454 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9455 for gdbarch_max_register_raw_size and max_register_virtual_size.
9456 Adjust copyright year.
9457
9458 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9459
9460 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9461 in a function to cover the entire beginning of the function
9462 as well if it does not already.
9463
9464 2002-03-21 Tom Rix <trix@redhat.com>
9465
9466 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9467 (rs6000_ptrace64): Renamed from ptrace64.
9468
9469 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9470
9471 * gdbserver/remote-utils.c (remote_open): Don't call
9472 getprotobyname, we're all using TCP here so just use
9473 IPPROTO_TCP.
9474 * gdbserver/gdbreplay.c (remote_open): Ditto.
9475
9476 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9477
9478 * regcache.c (_initialize_regcache): No need to call
9479 build_regcache() at this time; it gets called whenever
9480 the gdbarch changes.
9481
9482 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9483
9484 * sparc-nat.c: Include sys/param.h where possible.
9485
9486 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9487
9488 Fix PR gdb/422.
9489 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9490 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9491 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9492 complex types.
9493 * stabsread.c (rs6000_builtin_type): Likewise.
9494 (read_sun_floating_type): Likewise.
9495
9496 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9497
9498 * stabsread.c (read_member_functions): Remove skip code for duplicate
9499 constructor/destructor methods. Use standard parsing for these
9500 methods and just do not chain them to the list of methods after
9501 parsing.
9502
9503 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9504
9505 * coffread.c: Remove redundant static declarations. Replace
9506 occurrences of `PTR' with `void *'.
9507 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9508 * top.h (quit_cover): Likewise.
9509 * defs.h (catch_errors): Likewise.
9510
9511 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9512
9513 * defs.h (XMALLOC): Define.
9514 * gdb-events.sh (XMALLOC): Delete macro.
9515 * gdb-events.c, gdb-events.h: Regenerate.
9516 * gdbarch.sh (XMALLOC): Delete macro.
9517 * gdbarch.c: Regenerate.
9518 * serial.c (XMALLOC): Delete macro.
9519 * ui-file.c (XMALLOC): Ditto.
9520 * ser-unix.h (XMALLOC): Ditto.
9521 * sh-tdep.c (XMALLOC): Ditto.
9522 * ui-out.c (XMALLOC): Ditto.
9523 * utils.c (XMALLOC): Ditto.
9524 * i386-tdep.c (XMALLOC): Ditto.
9525 * gdb-events.c (XMALLOC): Ditto.
9526 * d10v-tdep.c (XMALLOC): Ditto.
9527 * cli-out.c (XMALLOC): Ditto.
9528
9529 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9530 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9531 * ui-file.c, ui-out.c: Ditto.
9532
9533 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9534
9535 * command.h (struct cmd_list_element): Add field context.
9536 (set_cmd_context, get_cmd_context): Declare.
9537 * cli/cli-decode.h: Ditto.
9538 * cli/cli-decode.c (get_cmd_context): New function.
9539 (set_cmd_context): New function.
9540 (add_cmd): Initialize context.
9541 Part of fixing PR gdb/145 and PR gdb/146.
9542
9543 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9544
9545 * cli/cli-decode.c (cmd_type): New function.
9546 * command.h (cmd_type): Declare.
9547 * infrun.c (set_schedlock_func): Call function cmd_type.
9548 * kod.c (kod_set_os): Call cmd_type.
9549 * cris-tdep.c (cris_version_update): Use function cmd_type.
9550 (cris_mode_update, cris_abi_update): Ditto.
9551
9552 * command.h: (execute_cmd_post_hook): Declare.
9553 (execute_cmd_pre_hook): Declare.
9554 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9555 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9556 functions. Execute pre/post hook while ensuring that afterwords
9557 hook_in is cleared.
9558 * top.c (execute_command): Use execute_cmd_post_hook, and
9559 execute_cmd_pre_hook to execute pre/post commands.
9560 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9561 hook_stop_stub.
9562 (hook_stop_stub): Call execute_cmd_pre_hook.
9563
9564 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9565
9566 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9567 set'' and this leads to a core dump. Move xstrdup of
9568 operating_system to after check that it is not NULL.
9569
9570 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9571
9572 * kod.c (kod_set_os): Remove unnecessary check that
9573 ``command->type'' is set_cmd.
9574
9575 * valprint.c (set_input_radix): Use input_radix.
9576 (set_output_radix): Use output_radix.
9577 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9578 isn't reverted.
9579
9580 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9581
9582 * value.h (struct value): Delete field ``substring_addr''. Change
9583 aligner fields to force_doublest_align, force_longest_align,
9584 force_core_addr_align and force_pointer_aligh.
9585
9586 * value.h (struct value): Fix typo in above change.
9587
9588 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9589
9590 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9591 to fix internal_error from ``maintenance print architecture''.
9592
9593 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9594
9595 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9596 for gcc versions after gcc-2.8.1.
9597
9598 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9599
9600 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9601 for method resolution. Restore adjustment of ``this'' pointer after
9602 calling value_struct_elt, which was accidentally removed during the
9603 HP merge.
9604
9605 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9606
9607 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9608 value_of_register.
9609 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9610 get_saved_register.
9611 * value.h (value_of_register): Update.
9612
9613 2002-03-14 Richard Henderson <rth@redhat.com>
9614
9615 * configure.in: Detect declaration for canonicalize_file_name.
9616 * utils.c (canonicalize_file_name): Declare, if needed.
9617 (gdb_realpath): Prefer realpath if available and usable.
9618 * config.in, configure: Rebuild.
9619
9620 2002-03-14 Richard Henderson <rth@redhat.com>
9621
9622 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9623 a constant array bound.
9624
9625 * MAINTAINERS: Add myself to write-after-approval.
9626
9627 2002-03-14 Michael Snyder <msnyder@redhat.com>
9628
9629 * symfile.c (syms_from_objfile): Return immediately if no syms.
9630 (symbol_file_add): Return immediately if no syms.
9631 (find_sym_fns): Return immediately if no syms.
9632
9633 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9634
9635 * gdbserver/remote-util.c (remote_open): Print remote-side's
9636 IP address when remote debugging over the network.
9637
9638 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9639
9640 * config/sparc/fbsd.mh: Fix copyright.
9641 * config/sparc/fbsd.mt: Likewise.
9642
9643 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9644
9645 * MAINTAINERS: Fix typo in name of gdb warnings option.
9646 (x86-64): Fix formating so that this can be parsed by awk.
9647
9648 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9649
9650 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9651 * defs.h: Include "gdb/signals.h".
9652 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9653
9654 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9655
9656 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9657 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9658 from x86-64-tdep.h
9659
9660 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9661 Don Howard <dhoward@redhat.com>
9662
9663 * mips-tdep.c (ST0_FR): Define.
9664 (mips2_fp_compat): New function, temporarily disabled.
9665 (mips_read_fp_register_single): New function.
9666 (mips_read_fp_register_double): New function.
9667 (mips_print_register): Use them.
9668 (do_fp_register_row): Likewise.
9669
9670 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9671
9672 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9673 approval''.
9674
9675 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9676
9677 * stabsread.c (read_member_functions): Fix is_stub test for
9678 static member functions, improve comment.
9679
9680 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9681
9682 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9683 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9684 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9685 commands that set boolean values.
9686 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9687 (arm_rdi_resume): Always initialize PC.
9688 (arm_rdi_open): Don't use rslt as a boolean.
9689 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9690 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9691 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9692 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9693
9694 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9695
9696 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9697 * configure: Rebuilt.
9698
9699 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9700
9701 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9702 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9703
9704 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9705
9706 * cli/cli-decode.c (set_cmd_completer): New function.
9707 * command.h (set_cmd_completer): Declare.
9708 * cli/cli-decode.h (set_cmd_completer): Ditto.
9709
9710 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9711 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9712 * win32-nat.c (_initialize_inftarg): Ditto.
9713 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9714 * proc-api.c (_initialize_proc_api): Ditto.
9715 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9716 * source.c (_initialize_source): Ditto.
9717 * exec.c (_initialize_exec): Ditto.
9718 * solib.c (_initialize_solib): Ditto.
9719 * top.c (init_main): Ditto.
9720 * tracepoint.c (_initialize_tracepoint): Ditto.
9721 * symfile.c (_initialize_symfile): Ditto.
9722 * printcmd.c (_initialize_printcmd): Ditto.
9723 * infcmd.c (_initialize_infcmd): Ditto.
9724 * corefile.c (_initialize_core): Ditto.
9725
9726 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9727
9728 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9729
9730 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9731
9732 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9733
9734 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9735
9736 * NEWS: Update headings, 5.2 has branched.
9737
9738 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9741 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9742 (register_addr, REGISTER_RAW_SIZE): Likewise.
9743 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9744 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9745
9746 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9747
9748 * MAINTAINERS (x86-64): Add myself.
9749 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9750 changed value_ptr -> struct value *
9751
9752 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9753
9754 * configure.host (sparc64-*-freebsd): Add.
9755 * configure.tgt: Likewise.
9756 * config/sparc/fbsd.mh: New file.
9757 * config/sparc/fbsd.mt: Likewise.
9758 * config/sparc/nm-fbsd.h: Likewise.
9759 * config/sparc/tm-fbsd.h: Likewise.
9760
9761 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9764 regformats/reg-s390x.dat.
9765
9766 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9767
9768 * utils.c: Add FIXME explaining true/false problem.
9769
9770 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9771
9772 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9773
9774 2002-02-28 Michael Chastain <mec@shout.net>
9775
9776 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9777
9778 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9779
9780 * gdbserver/linux-s390-low.c: New file.
9781 * regformats/reg-s390.dat: New file.
9782 * regformats/reg-s390x.dat: New file.
9783 * gdbserver/configure.srv: Add S/390.
9784 * gdbserver/Makefile.in: Add S/390.
9785 * configure.tgt: Enable gdbserver for S/390.
9786
9787 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9788
9789 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9790 first line of the doc string for "info dos", except at the end of
9791 the sentence, since the short help stops at the first period.
9792
9793 2002-02-28 Jason Merrill <jason@redhat.com>
9794
9795 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9796
9797 2002-02-27 Fred Fish <fnf@redhat.com>
9798
9799 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9800 comment (dumy -> dummy).
9801
9802 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9803
9804 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9805
9806 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9807
9808 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9809
9810 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * gdbserver/acconfig.h: New file.
9813 * gdbserver/i387-fp.c: New file.
9814 * gdbserver/i387-fp.h: New file.
9815 * gdbserver/linux-x86-64.c: New file.
9816 * regformats/reg-x86-64.dat: New file.
9817 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9818 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9819 * gdbserver/configure.in: Add support for regsets.
9820 * gdbserver/config.in: Regenerate.
9821 * gdbserver/configure: Regenerate.
9822 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9823 * gdbserver/linux-low.h: New file.
9824 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9825 for regsets.
9826 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9827 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9828 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9829 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9830 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9831 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9832 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9833 "i387-fp.h". Add PTRACE_GETREGS and friends.
9834 * gdbserver/regcache.c (supply_register): New function.
9835 (supply_register_by_name): New function.
9836 (collect_register): New function.
9837 (collect_register_by_name): New function.
9838
9839 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9842 (config.status): Add configure.srv dependency.
9843 (server_h): Add config.h dependency.
9844
9845 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9848 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9849 * gdbserver/configure.srv: Change i386-*-linux* to use
9850 reg-i386-linux.o.
9851
9852 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9853
9854 * x86-64-tdep.c: Re-indent. Update copyright date.
9855
9856 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9857
9858 From Michal Ludvig <mludvig@suse.cz>:
9859 * x86-64-tdep.c (value.h): Delete.
9860 (gdb_assert.h): Include.
9861 (x86_64_register_convert_to_virtual,
9862 x86_64_register_convert_to_raw ): Add check which lets only
9863 floating-point values to be converted.
9864 (value_push): Delete.
9865 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9866 (i386_gdbarch_init): Number of register_bytes fixed.
9867
9868 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9869
9870 * MAINTAINERS: Add x86-64 target.
9871
9872 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9873
9874 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9875 * osfsolib.c (solib_map_sections): Ditto.
9876 * irix5-nat.c (solib_map_sections): Ditto.
9877 * corelow.c (gdb_check_format): Ditto.
9878 * symfile.c (symfile_bfd_open): Ditto.
9879 * solib.c (solib_map_sections): Ditto.
9880 Fix PR gdb/354.
9881
9882 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9883
9884 * remote.c (_initialize_remote): By default, disable ``e'' and
9885 ``E'' step out-of-range packets.
9886
9887 2002-02-26 Andreas Schwab <schwab@suse.de>
9888
9889 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9890 m68k_linux_frame_saved_pc.
9891 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9892 in_sigtramp.
9893 (SIGCONTEXT_PC_OFFSET): Remove.
9894 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9895 m68k_linux_sigtramp_saved_pc): New functions.
9896 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9897 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9898 (UCONTEXT_PC_OFFSET): Define.
9899 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9900 non-RT and RT signal trampolines.
9901
9902 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9903
9904 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9905 (TARGET_NBPG, STACK_END_ADDR): Delete
9906 (VARIABLES_INSIDE_BLOCK): Delete.
9907
9908 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9909
9910 * utils.c (perror_with_name): Make string parameter constant.
9911 (print_sys_errmsg): Ditto.
9912 (query): Ditto.
9913 * defs.h (perror_with_name): Update.
9914 (print_sys_errmsg): Update.
9915 (query): Update.
9916
9917 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9918
9919 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9920 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9921
9922 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9923
9924 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9925 if it already matches the current architecture from the exec file.
9926 Include arch-utils.h for gdbarch_info_init prototype.
9927 * Makefile.in (rs6000-nat.o): Update dependencies.
9928
9929 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9930
9931 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9932 list of exported variables.
9933
9934 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9935
9936 * gdbserver/configure.srv: New file.
9937 * gdbserver/configure.in: Use configure.srv instead
9938 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9939 from it.
9940 * gdbserver/configure: Regenerated.
9941 * gdbserver/terminal.h: New file.
9942 * gdbserver/Makefile.in: Update for configure changes. Remove
9943 more unneeded include paths.
9944
9945 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9946
9947 From wiz at danbala:
9948 * config/sparc/tm-sp64.h: Fix grammar and typos.
9949 Fix PR gdb/287.
9950
9951 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9952
9953 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9954 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9955 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9956 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9957 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9958 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9959 * s390-tdep.c: Ditto.
9960 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9961 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9962 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9963 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9964 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9965 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9966 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9967 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9968 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9969 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9970 Fix PR gdb/378.
9971
9972 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9973
9974 * lin-thread.c: Delete file.
9975 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9976 to gdb_proc_service.h.
9977 * configure: Re-generate.
9978
9979 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9980 * serial.c (serial_open): Delete check for "ocd".
9981 Fix PR gdb/349.
9982
9983 * Makefile.in (linux-thread.o): Delete target.
9984 * linux-thread.c: Delete file.
9985
9986 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9987 renamed SH files to be consistent.
9988
9989 * symtab.c (sort_search_symbols): Use xfree.
9990
9991 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9992
9993 * arm-linux-tdep.c (arm_linux_init_abi): Register
9994 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9995 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9996 definition with undef, since we don't want the sysvr4 definition.
9997 (SKIP_TRAMPOLINE_CODE): Likewise.
9998
9999 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10000
10001 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10002
10003 * configure.in: (AC_CHECK_FUNCS) Added test for
10004 canonicalize_file_name Regenerated.
10005 * config.in, configure: Regenerated.
10006 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10007 defined use canonicalize_file_name.
10008
10009 2002-02-23 Michael Chastain <mec@shout.net>
10010
10011 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10012
10013 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10014
10015 * README: Remove references to cygnus.com.
10016 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10017 dot com'' form. Remove references to cygnus.com and sourceware.
10018
10019 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10020
10021 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10022 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10023 1003.1-2001 no longer allows "head -1".
10024 * gdb/Makefile.in (version.c): Likewise.
10025 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10026 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10027 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10028
10029 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10030
10031 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10032 * command.h (cmd_cfunc_eq): Declare.
10033 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10034
10035 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10036 ``struct cmd_list_element *''.
10037 * cli/cli-cmds.c (is_complete_command): Update. Use
10038 cmd_cfunc_eq.
10039 * top.c (execute_command): Pass the command to
10040 is_complete_command.
10041 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10042
10043 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10044
10045 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10046 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10047 architecture defines.
10048 * s390-tdep.c (s390_gdbarch_init): Likewise.
10049
10050 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10051
10052 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10053 (arm_linux_push_arguments): Likewise.
10054 (arm_linux_init_abi): Register them. Also register linux-specific
10055 call_dummy_words.
10056 (find_minsym_and_objfile): Use strcmp, not STREQ.
10057 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10058 (arm_linux_call_dummy_words): Delete declaration.
10059 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10060 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10061 declarations.
10062 (LOWEST_PC): Delete.
10063
10064 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10065
10066 * maint.c (print_section_info): Do not prepend `0x' to filepos
10067 output, it will be handled by local_hex_string_custom.
10068
10069 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10070
10071 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10072 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10073 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10074
10075 2002-02-22 Jim Blandy <jimb@redhat.com>
10076
10077 Indicate that the bcache functions don't change the strings
10078 they're passed.
10079 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10080 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10081
10082 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10083
10084 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10085
10086 2002-02-21 Christopher Faylor <cgf@redhat.com>
10087
10088 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10089 find the complete path to a loaded DLL.
10090
10091 2002-02-21 Fred Fish <fnf@redhat.com>
10092
10093 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10094 that marks the end of the range of a function, enter a line number
10095 entry that has a line number of zero and a PC offset that matches
10096 the end of the function. This starts a range of PC's for which no
10097 line number information is known.
10098 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10099 PC's for which no line number info is found (line number is zero)
10100 then we didn't find any valid line information.
10101 * symtab.h: Document use of zero line number entry.
10102
10103 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10104
10105 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10106 (have_ptrace_getvrregs): Define for run time checks.
10107 (gdb_vrregset_t): New type for Altivec register handling.
10108 (fetch_register, store_register): Fetch/store altivec register
10109 when needed.
10110 (fetch_altivec_register, store_altivec_register): New functions.
10111 (supply_vrregset, fill_vrregset): New functions.
10112 (fetch_altivec_registers, store_altivec_registers): New functions.
10113 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10114 registers as well.
10115
10116 2002-02-21 Jiri Smid <smid@suse.cz>
10117
10118 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10119
10120 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10121
10122 * Makefile.in (armnbsd-nat.o): Update dependencies.
10123 * armnbsd-nat.c (supply_gregset): New function. Common code to
10124 supply the integer register set.
10125 (supply_fparegset): New function. Similar for FPA registers.
10126 (fetch_regs, fetch_fp_regs): Use them.
10127 (fetch_core_registers): Likewise.
10128 (fetch_elfcore_registers): New function.
10129 (arm_netbsd_elfcore_fns): New core-file type specification.
10130 (_initialize_arm_netbsd_nat): Register it.
10131
10132 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10133
10134 * armnbsd-nat.c: Include gdbcore.h.
10135 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10136 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10137 'void' to declaration, to shut up ARI.
10138 (fetch_core_registers): Make static. Rewrite using supply_register.
10139 (arm_netbsd_core_fns): New core-file type specification.
10140 (_initialize_arm_netbsd_nat): New function.
10141
10142 2002-02-21 Christopher Faylor <cgf@redhat.com>
10143
10144 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10145 value.
10146
10147 2002-02-20 Christopher Faylor <cgf@redhat.com>
10148
10149 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10150 fails.
10151
10152 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10153
10154 * jv-exp.y (parse_number): Change type of implicit longs
10155 to builtin_type_uint64.
10156
10157 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10158
10159 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10160 to be an integer instead of a `union wait'.
10161
10162 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10163
10164 * mips-linux-nat.c: Call the operating system GNU/Linux.
10165 * mips-linux-tdep.c: Likewise.
10166 * mips-tdep.c: Likewise.
10167
10168 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10169
10170 Fix PR gdb/265.
10171 * jv-exp.y (parse_number): Handle 64-bit integers.
10172
10173 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10174
10175 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10176 AC_STDC_HEADERS to AC_HEADER_STDC.
10177 * gdbserver/configure: Regenerated.
10178
10179 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10180
10181 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10182 is defined.
10183 * sparc-tdep.c (get_longjmp_target): Likewise.
10184
10185 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10186
10187 * News: Add news about ARM and Multi-arch. Mention the new target
10188 arm*-*-netbsd*.
10189
10190 2002-02-19 Jim Blandy <jimb@redhat.com>
10191
10192 * stabsread.c (error_type_complaint): Improve error message.
10193
10194 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10195
10196 * gdbserver/README: Update documentation.
10197 * gdbserver/configure.in: Update configury to match documentation.
10198 * gdbserver/Makefile.in: Likewise.
10199 * gdbserver/configure: Regenerated.
10200 * gdbserver/aclocal.m4: New file, generated by aclocal.
10201 * gdbserver/config.in: New file, generated by autoheader.
10202
10203 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10204
10205 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10206 armnbsd-nat.c.
10207
10208 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10209
10210 * arm-tdep.h (enum arm_float_model): New enum.
10211 (struct gdbarch_tdep): Add fp_model.
10212 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10213 up floating-point conversions until we know the floating-point model
10214 in use by the inferior. Don't complain about being unable to
10215 determine the ABI of the inferior when we don't have one.
10216 (arm_extract_return_value): Support different floating-point models.
10217 (arm_store_return_value): Likewise.
10218 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10219 ARM_FLOAT_SOFT.
10220 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10221
10222 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10223
10224 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10225 of ``current_gdbarch''.
10226
10227 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10228
10229 * armnbsd-nat.c : ANSIfy all function declarations.
10230 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10231 (fetch_inferior_registers): Re-implement in terms of above.
10232 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10233 (store_inferior_registers): Re-implement in terms of above.
10234
10235 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10236
10237 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10238 kernel.
10239 * arm-linux-tdep.c: Likewise.
10240 * config/arm/tm-linux.h: Likewise.
10241
10242 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10243
10244 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10245 * config/arm/nbsd.mt (TM_FILE): Delete.
10246 * config/arm/tm-nbsd.h: Delete.
10247
10248 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10249
10250 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10251 Initialize CALL_DUMMY_LENGTH.
10252
10253 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10254
10255 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10256 function.
10257 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10258 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10259 defines one thing and that is incorrect for this port.
10260 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10261
10262 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10263
10264 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10265
10266 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10267
10268 * win32-nat.c (display_selector): New function. Displays information
10269 about the information returned by GetThreadSelectorEntry API function.
10270 (display_selectors): New function. Displays the infomation of
10271 the selector given as argument, or of CS, DS ans FS selectors
10272 if no argument is given.
10273 ( _initialize_inftarg): Add "w32" as info prefix command.
10274 Add "info w32 selector" as command calling display_selectors.
10275
10276 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10277
10278 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10279 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10280 if not defined.
10281
10282 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10283
10284 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10285
10286 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10287
10288 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10289 (arm_fix_call_dummy): Call it.
10290 (arm_call_dummy_breakpoint_offset): Delete.
10291 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10292 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10293
10294 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10295
10296 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10297 Default to func_frame_chain_valid.
10298 * gdbarch.h, gdbarch.c: Re-generate.
10299 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10300
10301 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * ppc-linux-nat.c: Update copyright.
10304 (fetch_register, store_register): Add tid parameter, don't compute
10305 tid here.
10306 (fetch_ppc_registers, store_ppc_registers): Add tid
10307 parameter. Pass it along to callees.
10308 (fetch_inferior_registers, store_inferior_registers): Compute tid
10309 here, and pass it to calleed functions.
10310 (fill_gregset, supply_fpregset): Clean up formatting.
10311
10312 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10313
10314 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10315 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10316
10317 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10318
10319 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10320 * gdbarch.c gdbarch.h: Regenerate.
10321 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10322 function.
10323 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10324 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10325 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10326
10327 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10328 * arm-tdep.c (arm_get_longjmp_target): New function.
10329 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10330 this to a positive value register arm_get_longjmp_target as the
10331 longjmp handler.
10332 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10333 (arm_linux_init_abi): Set up longjmp description in tdep.
10334 * armnbsd-nat.c (get_longjmp_target): Delete.
10335 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10336 description in tdep.
10337 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10338 (get_longjmp_target): Delete declaration.
10339 (GET_LONGJMP_TARGET): Delete.
10340 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10341 (GET_LONGJMP_TARGET): Delete.
10342
10343 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10344
10345 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10346 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10347 of ``current_gdbarch''.
10348
10349 2002-02-17 Tom Tromey <tromey@redhat.com>
10350
10351 * cli/cli-cmds.c (compare_strings): New function.
10352 (complete_command): Only print each unique item once.
10353 * completer.h (complete_line): Declare.
10354 * completer.c (complete_line): New function.
10355 (line_completion_function): Use it.
10356
10357 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10358
10359 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10360 * gdbarch.h, gdbarch.c: Re-generate.
10361
10362 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10363
10364 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10365
10366 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10367
10368 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10369 * valops.c (value_arg_coerce): Don't take the address of a reference
10370 to convert an argument to a reference.
10371
10372 2002-02-15 Christopher Faylor <cgf@redhat.com>
10373
10374 * win32-nat.c (get_image_name): New function.
10375 (handle_load_dll): Use get_image_name function.
10376 (get_child_debug_event): Avoid registering debug events until possibly
10377 execed process is started.
10378 (child_create_inferior): Allow invocation via shell so that command
10379 line redirection, etc. works ok.
10380 (_initialize_inftarg): Add new command: "set shell" to control whether
10381 a shell is used to start a process.
10382
10383 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10384
10385 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10386 instead of find_register_by_number.
10387 (cannot_store_register): Likewise.
10388
10389 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10390
10391 * dwarf2read.c: Replace fprintf (stderr, ...) by
10392 fprintf_unfiltered (gdb_stderr, ...).
10393
10394 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * gdbserver/gdbserver.1: Document --attach.
10397
10398 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10399
10400 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10401 descriptions.
10402 * arm-tdep.c (arm_default_arm_le_breakpoint)
10403 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10404 (arm_default_thumb_be_breakpoint): New. Initialize them from
10405 traditional breakpoint defines.
10406 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10407 (arm_gdbarch_init): Initialize new breakpoint variables.
10408 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10409 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10410 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10411 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10412 code out to ...
10413 (arm_netbsd_init_abi_common): ... here; new function.
10414 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10415 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10416 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10417 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10418
10419 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10420
10421 * arm-tdep.h (enum arm_abi): New enum.
10422 (struct gdbarch_tdep): New structure.
10423 (LOWEST_PC): Provide a default.
10424 (arm_gdbarch_register_os_abi): Declare new function.
10425 * arm-tdep.c (arm_abi_names): New array.
10426 (process_note_abi_tag_sections): New function.
10427 (get_elfosabi): New function.
10428 (arm_gdbarch_register_os_abi): New function.
10429 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10430 support for that ABI has been built in, then call the appropriate
10431 configuration routine. Use gdbarch_num_regs() to get the number
10432 of registers.
10433 (arm_dump_tdep): New function.
10434 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10435 place-holder functions.
10436 (_initialize_arm_tdep): Register them.
10437 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10438
10439 * armnbsd-tdep.c: New file.
10440 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10441 * config/arm/nbsd.mt (TDEPFILES): Add it.
10442 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10443
10444 * armnbsd-nat.c: Include regcache.h.
10445 * Makefile.in (armnbsd-nat.o): Update dependency list.
10446
10447 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10448
10449 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * gdbserver/Makefile.in: Fix typos in target rules.
10452
10453 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10454
10455 Fix part of PR gdb/267.
10456 * linespec.c (find_methods): Handle constructors specially for now.
10457
10458 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10459
10460 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10461 handling.
10462 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10463 standard_coerce_float_to_double().
10464
10465 2002-02-14 Christopher Faylor <cgf@redhat.com>
10466
10467 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10468 GDBINIT_FILENAME.
10469
10470 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10471
10472 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10473 find_variant_by_name, because it confuses the multiarch
10474 framework. Return NULL if there isn't an architecture with the
10475 user supplied name, instead of forcing a different one without
10476 recording the change with the multiarch machinery.
10477 (find_variant_by_name): Delete.
10478
10479 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10480
10481 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10482 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10483
10484 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10485
10486 * stack.c (print_frame_info_base): When calling
10487 print_frame_info_listing_hook, set current_source_symtab.
10488
10489 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10492 and remove unused $(INCLUDE_DIR).
10493 Add regcache.c to OBS.
10494 Add generated register protocol files to clean target.
10495 Update dependencies for new objects, obsolete old target code.
10496
10497 * gdbserver/linux-low.c: Remove all platform-specific code to
10498 new files. Remove various dead code. Update to use regcache
10499 functionality.
10500 * gdbserver/remote-utils.c (fromhex): Add return statement
10501 to quiet warning.
10502 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10503 constant.
10504 (input_interrupt): Add integer parameter to match prototype
10505 of a signal handler.
10506 (outreg): Use register_data ().
10507 (prepare_resume_reply): Use gdbserver_expedite_regs.
10508 * gdbserver/server.c (main): Dynamically allocate own_buf because
10509 PBUFSIZ is no longer constant. Use registers_to_string () and
10510 registers_from_string ().
10511 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10512 for error (), fatal (), and warning (). Update definition of
10513 PBUFSIZ to use regcache functionality. Add include guard.
10514 * gdbserver/utils.c (fatal): Add missing ``const''.
10515 (warning): New function.
10516
10517 * regformats/regdat.sh: Include "regcache.h" in generated files.
10518 Provide init_registers () function.
10519 * regformats/regdef.h: Add prototype for set_register_cache ().
10520 Add include guard.
10521
10522 * gdbserver/linux-arm-low.c: New file.
10523 * gdbserver/linux-i386-low.c: New file.
10524 * gdbserver/linux-ia64-low.c: New file.
10525 * gdbserver/linux-m68k-low.c: New file.
10526 * gdbserver/linux-mips-low.c: New file.
10527 * gdbserver/linux-ppc-low.c: New file.
10528 * gdbserver/linux-sh-low.c: New file.
10529
10530 * gdbserver/regcache.c: New file.
10531 * gdbserver/regcache.h: New file.
10532
10533 * gdbserver/low-linux.c: Removed obsolete file.
10534
10535 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10538 * config/i386/linux.mt: Likewise.
10539 * config/ia64/linux.mt: Likewise.
10540 * config/m68k/linux.mh: Likewise.
10541 * config/powerpc/linux.mh: Likewise.
10542 * config/mips/linux.mt: Likewise.
10543
10544 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10545
10546 * config/i386/i386lynx.mh: Mark gdbserver variables
10547 as (currently) obsolete for this target.
10548 * config/i386/nbsd.mt: Likewise.
10549 * config/i386/nbsdelf.mt: Likewise.
10550 * config/m32r/m32r.mt: Likewise.
10551 * config/m68k/m68klynx.mh: Likewise.
10552 * config/m68k/nbsd.mt: Likewise.
10553 * config/m68k/sun3os4.mh: Likewise.
10554 * config/mips/vr5000.mt: Likewise.
10555 * config/ns32k/nbsd.mt: Likewise.
10556 * config/pa/hppabsd.mh: Likewise.
10557 * config/pa/hppaosf.mh: Likewise.
10558 * config/powerpc/nbsd.mt: Likewise.
10559 * config/rs6000/rs6000lynx.mh: Likewise.
10560 * config/s390/s390.mt: Likewise.
10561 * config/s390/s390x.mt: Likewise.
10562 * config/sparc/sparclynx.mh: Likewise.
10563 * config/sparc/sun4os4.mh: Likewise.
10564 * config/i386/x86-64linux.mt: Likewise.
10565 * config/sparc/linux.mh: Likewise.
10566
10567 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * configure.tgt: Configure gdbserver only for known working
10570 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10571 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10572 SUBDIRS if it is configured. Update comment for ${nativefile}.
10573 * configure: Regenerated.
10574
10575 2002-02-13 Michael Snyder <msnyder@redhat.com>
10576
10577 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10578
10579 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10580 (default_gcore_mach): Just return 0, work around a problem in bfd.
10581 (default_gcore_target): OK to return NULL if exec_bfd is null.
10582 (make_mem_sec): Use a cast, avoid a warning.
10583
10584 * procfs.c (find_memory_regions_callback): Use a cast instead of
10585 calling host_pointer_to_address (which complains if
10586 sizeof (host pointer) != sizeof (target pointer)).
10587 (procfs_make_note_section): Avoid overflow in psargs string.
10588
10589 * procfs.c (procfs_make_note_section): Make the default
10590 implementation return an error.
10591
10592 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10593
10594 * procfs.c (procfs_make_note_section): Provide a default definition
10595 (for alpha-dec-osf4.0f). Fix typos.
10596
10597 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10598
10599 * linux-proc.c: Add include of regcache.h.
10600 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10601
10602 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10603
10604 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10605 * memattr.c (create_mem_region): Disallow useless empty region.
10606 Regions are half-open intervals, so allow [A..B) [B..C) as
10607 non-overlapping.
10608
10609 2002-02-13 Michael Chastain <mec@shout.net>
10610
10611 * defs.h: Kill CONST_PTR.
10612 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10613 * c-lang.c (c_builtin_types): Likewise.
10614 * ch-lang.c (ch_builtin_types): Likewise.
10615 * f-lang.c (f_builtin_types): Likewise.
10616 * language.c (unknown_builtin_types): Likewise.
10617 * m2-lang.c (m2_builtin_types): Likewise.
10618 * p-lang.c (pascal_builtin_types): Likewise.
10619 * scm-lang.c (c_builtin_types): Likewise.
10620
10621 2002-02-13 Keith Seitz <keiths@redhat.com>
10622
10623 * arm-tdep.h (arm_get_next_pc): Add declaration.
10624
10625 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10626
10627 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10628 with other related struct-returning functions.
10629 (arm_extract_struct_value_address): New function.
10630 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10631 initialize float_format, double_format and long_double_format as
10632 appropriate to the endianness of the target.
10633 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10634 (arm_use_struct_convention): Delete declaration.
10635 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10636
10637 2002-02-13 Keith Seitz <keiths@redhat.com>
10638
10639 * defs.h (core_addr_to_string_nz): New function.
10640
10641 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10642
10643 Apply missing bits of 2002-01-15 patch.
10644 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10645 (fill_fpregset): Use i387_fill_fsave.
10646
10647 2002-02-12 Keith Seitz <keiths@redhat.com>
10648
10649 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10650 (core_addr_to_string_nz): New function.
10651
10652 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10653
10654 * arm-linux-nat.c: Really include arm-tdep.h.
10655 * config/arm/tm-linux.h (struct type, struct value): Declare.
10656
10657 2002-02-11 Michael Snyder <msnyder@redhat.com>
10658
10659 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10660 (gcore section): Ifdef for Solaris and Unixware only.
10661 (procfs_do_thread_registers): Unixware needs one lwpstatus
10662 per thread (not one prstatus or pstatus).
10663 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10664 not over all gdb threads. For unixware, call elfcore_write_pstatus
10665 once before iterating over threads.
10666
10667 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10668
10669 * arm-tdep.h: New file.
10670 * arm-tdep.c: Include arm-tdep.h.
10671 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10672 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10673 (arm_print_float_info, arm_register_type, convert_to_extended)
10674 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10675 (arm_extract_return_value, arm_register_name): Make static.
10676 (arm_software_single_step): Similarly. Fix types in declaration.
10677 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10678 (arm_store_return_value, arm_store_struct_return): New functions.
10679 (arm_gdbarch_init): Register the above functions. Also register
10680 call_dummy_start_offset, sizeof_call_dummy_words,
10681 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10682 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10683 max_register_virtual_size, register_size. Set up
10684 prologue_cache.saved_regs here, rather than ...
10685 (_initialize_arm_tdep): ... here.
10686 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10687 declarations.
10688 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10689 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10690 (arm_print_float_info, arm_register_type, convert_to_extended)
10691 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10692 (arm_extract_return_value, arm_register_name): Delete declarations.
10693 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10694 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10695 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10696 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10697 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10698 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10699 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10700 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10701 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10702 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10703 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10704 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10705 interface.
10706 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10707 * remote-rdi.c remote-rdp.c: Likewise.
10708 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10709 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10710 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10711 definition.
10712
10713 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10714 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10715 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10716 from non-ARM_ prefixed definitions.
10717 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10718 all uses of above.
10719 * remote-rdi.c remote-rdp.c: Likewise.
10720 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10721
10722 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10723
10724 * arm-tdep.c (arm_frameless_function_invocation)
10725 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10726 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10727 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10728 (arm_pop_frame, arm_get_next_pc): Make static.
10729 (arm_gdbarch_init): Register above in gdbarch structure.
10730 (arm_read_fp): Renamed from arm_target_read_fp.
10731 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10732 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10733 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10734 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10735 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10736 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10737 (arm_pc_is_thumb_dummy): Delete declarations.
10738 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10739 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10740 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10741 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10742
10743 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * symtab.c (compare_search_syms): New function.
10746 (sort_search_symbols): New function.
10747 (search_symbols): Sort symbols after searching rather than
10748 before.
10749
10750 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10751
10752 * NEWS: Linux -> GNU/Linux.
10753
10754 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10755
10756 * gdbarch.sh: For for level one methods, disallow a definition
10757 when partially multi-arched. Add comments explaining rationale.
10758 * gdbarch.h: Re-generate.
10759
10760 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10761
10762 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10763 multi-arch partial.
10764
10765 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10766
10767 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10768 field. Use diff -u.
10769 * gdbarch.c: Re-generate.
10770
10771 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10772
10773 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10774 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10775 partial.
10776
10777 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10778
10779 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10780 multi-arch partial.
10781 (PUSH_ARGUMENTS): Switch to using predefault.
10782 * gdbarch.c: Regenerate.
10783
10784 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10785
10786 * valops.c (PUSH_ARGUMENTS): Delete definition.
10787 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10788 partial. Default to default_push_arguments.
10789 * gdbarch.h, gdbarch.c: Regenerate.
10790
10791 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10792
10793 * defs.h (throw_exception): Rename return_to_top_level. Update
10794 comments.
10795 * utils.c (error_stream, internal_verror, quit): Ditto.
10796 * top.c (throw_exception, catcher): Ditto.
10797 * sparclet-rom.c (sparclet_load): Ditto.
10798 * remote.c (interrupt_query, minitelnet): Ditto.
10799 * remote-sds.c (interrupt_query): Ditto.
10800 * remote-mips.c (mips_error, mips_kill): Ditto.
10801 * ocd.c (interrupt_query): Ditto.
10802 * monitor.c (monitor_interrupt_query): Ditto.
10803 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10804 * target.h: Update comment.
10805
10806 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10807
10808 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10809
10810 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10811 default_double_format.
10812 * gdbarch.h, gdbarch.c: Re-generate.
10813 * findvar.c (floatformat_unknown): Delete variable definition.
10814 * doublest.h (floatformat_unknown): Delete variable declaration.
10815
10816 2002-02-09 Jim Blandy <jimb@redhat.com>
10817
10818 * stabsread.c (read_type): Add code to parse Sun's syntax for
10819 prototyped function types.
10820
10821 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10822
10823 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10824 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10825
10826 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10827
10828 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10829 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10830 now _initialize_xcoffsolib gets called again and overrides the
10831 commands from solib.c in a native configuration.
10832
10833 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10834
10835 * doublest.c (store_typed_floating): Don't try to return a value.
10836 Fixes PR gdb/290.
10837
10838 2002-02-08 Jim Blandy <jimb@redhat.com>
10839
10840 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10841 is prototyped and has no arguments, print its argument list as
10842 `(void)'.
10843
10844 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10845
10846 * MAINTAINERS (write-after-approval): Add myself.
10847 (paper-trail): I've escaped!
10848
10849 2002-02-08 Christopher Faylor <cgf@redhat.com>
10850
10851 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10852 changes.
10853 (_initialize_check_for_gdb_ini): Ditto.
10854
10855 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10856
10857 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10858 xaprintf -> xasprintf.
10859
10860 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10861
10862 * win32-nat.c: Remove use of printf and sprintf functions.
10863
10864 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10865
10866 * arm-tdep.c (arm_frame_chain_valid): Make static.
10867 (arm_push_arguments): Likewise.
10868 (arm_gdbarch_init): New function.
10869 (_initialize_arm_tdep): Call it.
10870 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10871 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10872 (FRAME_CHAIN_VALID): Delete.
10873 (arm_frame_chain_valid): Delete declaration.
10874 (PUSH_ARGUMENTS): Delete.
10875 (arm_push_arguments): Delete declaration.
10876 (CALL_DUMMY_P): Delete.
10877
10878 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10879 Corinna Vinschen <vinschen@redhat.com>
10880
10881 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10882 on builtin float types.
10883
10884 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10885
10886 * utils.c: Include <curses.h> before "bfd.h".
10887 * tui/tui-hooks.c: Likewise.
10888 * tui/tui.c: Likewise.
10889 * tui/tuiCommand.c: Likewise.
10890 * tui/tuiData.c: Likewise.
10891 * tui/tuiDataWin.c: Likewise.
10892 * tui/tuiDisassem.c: Likewise.
10893 * tui/tuiGeneralWin.c: Likewise.
10894 * tui/tuiIO.c: Likewise.
10895 * tui/tuiLayout.c: Likewise.
10896 * tui/tuiRegs.c: Likewise.
10897 * tui/tuiSource.c: Likewise.
10898 * tui/tuiSourceWin.c: Likewise.
10899 * tui/tuiStack.c: Likewise.
10900 * tui/tuiWin.c: Likewise.
10901
10902 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10903
10904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10905 to include space for pseudoregs as well. Update loops accordingly.
10906 (sh_fp_frame_init_saved_regs): Ditto.
10907 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10908
10909 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10910
10911 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10912 Add Richard Earnshaw to Arm maintainers.
10913
10914 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10915
10916 * defs.h (warning_begin): Delete declaration.
10917
10918 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10919 Delete macro.
10920
10921 2002-02-07 Michael Snyder <msnyder@redhat.com>
10922
10923 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10924 Logic bug, remove misplaced else.
10925
10926 2002-02-07 Klee Dienes <klee@apple.com>
10927
10928 * fork-inferior.c (fork_inferior): Add '!' to the list of
10929 characters that need to be quoted when building a string for the
10930 shell. Quote '!' specifically with a backslash, since CSH chokes
10931 when trying to evaluate "str!str".
10932
10933 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10934
10935 * rdi-share/host.h: Only provide a typedef for bool if it is not
10936 defined.
10937
10938 2002-02-04 Michael Snyder <msnyder@redhat.com>
10939
10940 * breakpoint.h (enum bptype): Add new overlay event bp type.
10941 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10942
10943 * breakpoint.c (create_internal_breakpoint): New function.
10944 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10945 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10946 (create_thread_event_breakpoint): Ditto.
10947 (create_solib_event_breakpoint): Ditto.
10948 (create_overlay_event_breakpoint): New function.
10949 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10950 (update_breakpoints_after_exec): Delete and re-initialize
10951 overlay event breakpoints after an exec. Add FIXME comment
10952 about longjmp breakpoint.
10953 (print_it_typical): Ignore overlay event breakpoints.
10954 (print_one_breakpoint): Ditto.
10955 (mention): Ditto.
10956 (bpstat_what): Do not stop for overlay event breakpoints.
10957 (delete_breakpoint): Don't delete overlay event breakpoints.
10958 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10959 (breakpoint_re_set): Re-create overlay event breakpoint.
10960
10961 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10962 (overlay_manual_command): Disable overlay breakpoints.
10963 (overlay_off_command): Disable overlay breakpoints.
10964
10965 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10968 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10969 to here from config/tm-arm.h.
10970 (coff_sym_is_thumb): Make static.
10971 (arm_elf_make_msymbol_special): New function.
10972 (arm_coff_make_msymbol_special): New function.
10973 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10974 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10975 (coff_sym_is_thumb): Delete declaration.
10976 (arm_elf_make_msymbol_special): Declare.
10977 (arm_coff_make_msymbol_special): Declare.
10978 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10979 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10980
10981 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10982
10983 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10984
10985 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10986
10987 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10988 * gdbarch.c gdbarch.h: Regenerate.
10989 * arch-utils.c (default_print_float_info): New function.
10990 * arch-utils.h (default_print_float_info): Prototype it.
10991 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10992 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10993 (PRINT_FLOAT_INFO): Document it.
10994
10995 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10996 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10997 (PRINT_FLOAT_INFO): Define.
10998
10999 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11000
11001 * win32-nat.c (_initialize_check_for_gdb_ini):
11002 Add typecast to sprintf argument to suppress a warning.
11003
11004 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11005
11006 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11007 to allow easier handling of pass state.
11008 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11009 that gives exception name and address.
11010 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11011 and set last_sig value to ourstatus->value.sig. Some missing
11012 exceptions added.
11013 (child_continue): Correctly report continue_status.
11014 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11015 TARGET_SIGNAL_0 (new default value).
11016 (child_resume): consider sig argument passed to decide if
11017 the exception should be passed to debuggee or not.
11018
11019 2002-02-05 Michael Snyder <msnyder@redhat.com>
11020
11021 * regcache.c (fetch_register): Call target_fetch_register
11022 only if we don't call FETCH_PSEUDO_REGISTER.
11023 (store_register): Call target_store_register only if we
11024 don't call STORE_PSEUDO_REGISTER.
11025
11026 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11027
11028 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11029 ELF_MAKE_MSYMBOL_SPECIAL.
11030 * gdbarch.c, gdbarch.h: Regenerate.
11031 * arch-utils.c (default_make_msymbol_special): New function.
11032 * arch-utils.h (default_make_msymbol_special): Export.
11033 * elfread.c (elf_symtab_read): Compile use of
11034 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11035 multiarched.
11036 * coffread.c (coff_symtab_read): Ditto, for
11037 COFF_MAKE_MSYMBOL_SPECIAL.
11038
11039 2002-02-05 Jim Blandy <jimb@redhat.com>
11040
11041 * solib-svr4.c (svr4_truncate_ptr): New function.
11042 (svr4_relocate_section_addresses): Do the address arithmetic with
11043 the appropriate truncation for target addresses, even when
11044 CORE_ADDR is larger than a target address.
11045
11046 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11047
11048 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11049 to (int *).
11050
11051 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11054 code.
11055
11056 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11057
11058 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11059
11060 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * gdbserver/linux-low.c: Remove unused include files.
11063
11064 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11065
11066 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11067 (read_inferior_memory): Use it.
11068 (write_inferior_memory): Likewise.
11069
11070 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11071
11072 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11073 grubbing through sys_errlist.
11074
11075 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11076
11077 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11078
11079 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11080 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11081
11082 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11083
11084 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11085 (do_sfunc, set_cmd_sfunc): New functions.
11086
11087 * command.h (struct cmd_list_element): Add field func.
11088 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11089 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11090 * cli/cli-decode.h: Ditto.
11091
11092 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11093 (help_all, help_cmd_list): Ditto.
11094 (find_cmd, complete_on_cmdlist): Ditto.
11095 * top.c (execute_command): Ditto.
11096
11097 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11098 function.sfunc.
11099
11100 * infcmd.c (notice_args_read): Fix function signature.
11101
11102 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11103 * cli/cli-decode.c (add_set_cmd): Ditto.
11104 * utils.c (initialize_utils): Ditto.
11105 * maint.c (_initialize_maint_cmds): Ditto.
11106 * infrun.c (_initialize_infrun): Ditto.
11107 * demangle.c (_initialize_demangler): Ditto.
11108 * remote.c (add_packet_config_cmd): Ditto.
11109 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11110 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11111 * proc-api.c (_initialize_proc_api): Ditto.
11112 * kod.c (_initialize_kod): Ditto.
11113 * valprint.c (_initialize_valprint): Ditto.
11114 * top.c (init_main): Ditto.
11115 * infcmd.c (_initialize_infcmd): Ditto.
11116 * corefile.c (_initialize_core): Ditto.
11117 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11118 * arch-utils.c (initialize_current_architecture): Ditto.
11119 (_initialize_gdbarch_utils): Ditto.
11120 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11121
11122 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11123 * wince.c (_initialize_inftarg): Ditto.
11124 * symfile.c (_initialize_symfile): Ditto.
11125 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11126 * language.c (_initialize_language): Ditto.
11127 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11128
11129 2002-02-04 Michael Snyder <msnyder@redhat.com>
11130
11131 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11132
11133 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11136 Add rules for building the register data files.
11137
11138 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11139
11140 * regformats/regdat.sh: Add braces to the definition of
11141 expedite_regs_${arch}.
11142
11143 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11144
11145 * regformats/regdef.h (struct reg): Add comment describing the
11146 requirements for offset and size fields.
11147
11148 2002-02-04 Andreas Schwab <schwab@suse.de>
11149
11150 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11151 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11152
11153 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11154
11155 * gdbarch.sh (copyright): Update years in generated header.
11156 (SMASH_TEXT_ADDRESS): Add rule.
11157 * gdbarch.h, gdbarch.c: Re-generate.
11158 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11159 * dbxread.c: Likewise.
11160 * dwarfread.c: Likewise.
11161 * elfread.c: Likewise.
11162 * somread.c: Likewise.
11163
11164 * arm-tdep.c (arm_smash_text_address): New function.
11165 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11166
11167 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11168
11169 Add support for hardware watchpoints on win32 native.
11170 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11171 CONTEXT_DEBUG_REGISTERS.
11172 (dr variable): New variable. Static array containing a local copy
11173 of debug registers.
11174 (debug_registers_changed): New variable. Reflects when debug registers
11175 are changed and need to be written to inferior.
11176 (debug_registers_used): New variable. Reflects when any debug register
11177 was set, used when new threads are created.
11178 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11179 i386-nat code.
11180 (thread_rec): Set dr array if id is the thread of current_event .
11181 (child_continue, child_resume): Change the debug registers for all
11182 threads if debug_registers_changed.
11183 (child_add_thread): Change the debug registers if debug_registers_used.
11184 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11185 Link nm.h to new nm-cygwin.h file.
11186 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11187 of hardware registers.
11188
11189 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11190
11191 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11192 Restore behavour broken by 2002-01-20 Andrew Cagney
11193 <ac131313@redhat.com> IEEE_FLOAT removal.
11194
11195 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11196
11197 * c-valprint.c (c_val_print): Pass a proper valaddr to
11198 cp_print_class_method.
11199 * valops.c (search_struct_method): If there is only one method
11200 and args is NULL, return that method.
11201
11202 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11203
11204 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11205 accessing tag_name directly.
11206
11207 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11208
11209 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11210 of accessing tag_name directly.
11211
11212 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11213
11214 PR gdb/280
11215 * gdbtypes.c (replace_type): New function.
11216 * gdbtypes.h (replace_type): Add prototype.
11217 * stabsread.c (read_type): Use replace_type.
11218
11219 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11220
11221 * Makefile.in (memattr.o): Add missing dependencies rule.
11222
11223 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11224
11225 * breakpoint.c (break_at_finish_command): Really export.
11226 (break_at_finish_at_depth_command): Ditto.
11227 (tbreak_at_finish_command): Ditto.
11228 * hppa-tdep.c: Include completer.h.
11229 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11230 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11231
11232 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11233
11234 * utils.c (do_write): New function.
11235 (error_stream): Rewrite combining the code from error_begin and
11236 verror.
11237 (verror): Rewrite using error_stream.
11238 (error_begin): Delete function.
11239
11240 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11241
11242 * utils.c (error_begin): Make static.
11243 * defs.h (error_begin): Delete declaration.
11244
11245 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11246 (decode_line_1): Use cplusplus_error instead of error_begin,
11247 cplusplus_hint and return_to_top_level.
11248 * coffread.c (coff_symfile_read): Use error instead of error_begin
11249 and return_to_top_level.
11250 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11251
11252 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11253
11254 * language.h (type_error, range_error): Make string parameter
11255 constant.
11256 * language.c (warning_pre_print): Delete extern declaration.
11257 * dwarfread.c (warning_pre_print): Ditto.
11258 * language.c (type_error, range_error): Rewrite to use verror and
11259 vwarning instead of warning_begin.
11260
11261 2002-02-01 Michael Snyder <msnyder@redhat.com>
11262
11263 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11264 (set_ignore_count): Move misplaced comment back where it belongs.
11265
11266 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11267
11268 * command.h (NO_FUNCTION): Delete macro.
11269 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11270 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11271 * tracepoint.c (_initialize_tracepoint): Ditto.
11272 * cli/cli-decode.c (add_set_cmd): Ditto.
11273 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11274
11275 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11276
11277 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11278 Update ``this'' pointer when calling virtual functions.
11279
11280 2002-02-01 Michael Snyder <msnyder@redhat.com>
11281
11282 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11283 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11284
11285 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * regformats/reg-arm.dat: New file.
11288 * regformats/reg-i386.dat: New file.
11289 * regformats/reg-ia64.dat: New file.
11290 * regformats/reg-m68k.dat: New file.
11291 * regformats/reg-mips.dat: New file.
11292 * regformats/reg-ppc.dat: New file.
11293 * regformats/reg-sh.dat: New file.
11294 * regformats/regdef.h: New file.
11295 * regformats/regdat.sh: New file.
11296
11297 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11298
11299 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11300 (arm_frame_args_address, arm_frame_locals_address): New functions.
11301 (arm_frame_num_args): New function.
11302 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11303 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11304 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11305
11306 2002-01-31 Michael Snyder <msnyder@redhat.com>
11307
11308 * breakpoint.c (break_at_finish_command): Export.
11309 (break_at_finish_at_depth_command): Export.
11310 (tbreak_at_finish_command): Export.
11311 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11312 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11313 "txbreak" commands, which are HPPA specific.
11314
11315 * printcmd.c (disassemble_command): Remove an ancient
11316 artifact of an old merge.
11317
11318 * symfile.h (enum overlay_debugging_state):
11319 Define enum constant values for overlay mode.
11320 * symfile.c (overlay_debugging): Use enums instead of literals.
11321 (overlay_is_mapped, overlay_auto_command,
11322 overlay_manual_command): Ditto.
11323
11324 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11325 breakpoint_here_p, breakpoint_inserted_here_p,
11326 breakpoint_thread_match, bpstat_stop_status,
11327 describe_other_breakpoints, check_duplicates, clear_command):
11328 Coding standard fixes.
11329
11330 * target.c (target_xfer_memory): Add spaces, coding standard.
11331 (do_xfer_memory): Add missing line to trust-readonly
11332 code: check bfd SEC_READONLY flag for section.
11333
11334 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11335
11336 * PROBLEMS: Fix typo, 5.1->5.1.1.
11337
11338 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11339
11340 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11341 data symbols, since we search based on textlow and texthigh.
11342 (find_pc_sect_symtab): Likewise.
11343
11344 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11345
11346 * defs.h (vwarning): Declare.
11347 * utils.c (vwarning): New function.
11348 (warning): Call vwarning.
11349 (warning_begin): Delete function.
11350
11351 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11352 the warning message.
11353 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11354 warning_begin.
11355
11356 2002-01-30 Michael Snyder <msnyder@redhat.com>
11357
11358 * NEWS: Mention "set trust-readonly-sections" command.
11359 Mention generate-core-file command.
11360
11361 2002-01-15 Michael Snyder <msnyder@redhat.com>
11362
11363 * target.c: New command, "set trust-readonly-sections on".
11364 (do_xfer_memory): Honor the suggestion to trust readonly sections
11365 by reading them from the object file instead of from the target.
11366 (initialize_targets): Register command "set trust-readonly-sections".
11367
11368 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11369
11370 * parse.c (target_map_name_to_register): Simplify, search regs and
11371 pseudo-regs using a single loop.
11372
11373 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11374
11375 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11376
11377 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11378
11379 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11380 * config/i386/i386v42mp.mh: Add i387-nat.o .
11381 * i386v4-nat.c: Include i387-nat.h.
11382 (supply_fpregset): Use i387_supply_fsave.
11383 (fill_fpregset): Use i387_fill_fsave.
11384
11385 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11386
11387 * arm-tdep.c (arm_call_dummy_words): Define.
11388 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11389 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11390 (CALL_DUMMY_WORDS): Define.
11391 (arm_call_dummy_words): Declare.
11392 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11393 (arm_linux_call_dummy_words): Declare.
11394
11395 2002-01-30 Andreas Schwab <schwab@suse.de>
11396
11397 * m68klinux-nat.c: Fix last change to use regcache_collect
11398 instead of referencing registers[] directly.
11399
11400 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11401
11402 * parse.c (target_map_name_to_register): Delete code wrapped in
11403 #ifdef REGISTER_NAME_ALIAS_HOOK.
11404
11405 2002-01-28 Michael Snyder <msnyder@redhat.com>
11406
11407 * regcache.c (legacy_read_register_gen): Need to be able to
11408 read pseudo-register as well as real register.
11409 (legacy_write_register_gen): Ditto.
11410
11411 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11412
11413 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11414 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11415 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11416 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11417 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11418 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11419 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11420 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11421 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11422 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11423 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11424 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11425 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11426 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11427 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11428 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11429 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11430 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11431 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11432 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11433
11434 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11435
11436 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11437 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11438 (initialize_current_architecture): Update target_byte_order using
11439 information from BFD.
11440 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11441 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11442
11443 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11444
11445 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11446 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11447
11448 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11449 #ifdef INVALID_FLOAT.
11450 * infcmd.c (do_registers_info): Ditto.
11451 * values.c (unpack_double): Ditto. Add comment.
11452
11453 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11454 already commented out.
11455
11456 2002-01-26 Andreas Schwab <schwab@suse.de>
11457
11458 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11459 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11460 registers and add support for PTRACE_GETREGS.
11461
11462 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11463
11464 GDB 5.1.1 released from 5.1 branch.
11465 * NEWS: Add 5.1.1 news.
11466 * README: Sync with 5.1 branch.
11467
11468 2002-01-23 Fred Fish <fnf@redhat.com>
11469
11470 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11471 stabstring on initial malloc. Reallocing will copy it for us,
11472 if necessary.
11473
11474 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11475
11476 * Makefile.in (hpread_h): Delete.
11477 (HFILES_NO_SRCDIR): Remove hpread.h.
11478 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11479 (hpread.o): Update dependencies.
11480 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11481
11482 * hp-psymtab-read.c: Remove file.
11483 * hp-symtab-read.c: Remove file.
11484 * hpread.h: Remove file.
11485
11486 * hpread.c: Merge all contents of hp-psymtab-read.c,
11487 hp-symtab-read.c and hpread.h into this file, as it was prior to
11488 January 1999.
11489
11490 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11491 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11492 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11493 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11494
11495 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11496
11497 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11498 fill_gregset): Call gdbarch_tdep() just once, assign result to
11499 variable and use that, instead of calling the function several
11500 times.
11501
11502 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11503
11504 * configure.host: Accept sparcv9 as alias for sparc64.
11505 * configure.tgt: Likewise.
11506
11507 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11508
11509 * solib-aix5.c (build_so_list_from_mapfile)
11510 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11511 arguments is not reversed.
11512 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11513 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11514
11515 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11516
11517 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11518 modified version of obsolete sh_fetch_pseudo_register.
11519 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11520 (sh4_register_read): New function.
11521 (sh_pseudo_register_write): New function. Renamed and modified
11522 version of obsolete sh_store_pseudo_register.
11523 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11524 (sh4_register_write): New function.
11525 (sh_gdbarch_init): Remove setting of gdbarch function
11526 fetch_pseudo_register and store_pseudo_register. Remove setting of
11527 register_convert_to_raw, register_convert_to_virtual,
11528 register_convertible.
11529 (sh_sh4_register_convertible): Delete. No longer needed. All is
11530 taken care by architecture specific functions
11531 register_read/register_write.
11532 (sh_sh4_register_convert_to_virtual): Make static.
11533 (sh_sh4_register_convert_to_raw): Ditto.
11534
11535 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11536
11537 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11538 (floatformat_is_nan, floatformat_mantissa): Ditto.
11539
11540 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11541 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11542 builtin_type_ieee_double_little,
11543 builtin_type_ieee_double_littlebyte_bigword,
11544 builtin_type_m68881_ext, builtin_type_i960_ext,
11545 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11546 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11547 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11548 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11549
11550 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11551
11552 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11553 parameter. Set frameless flag if it exists and depended of
11554 whether the scanned function is frameless or not.
11555 (xstormy16_skip_prologue): If function is frameless, return
11556 result of xstormy16_scan_prologue().
11557 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11558 call.
11559
11560 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11561
11562 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11563 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11564 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11565 sh_sh4_register_byte, sh_sh4_register_raw_size,
11566 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11567 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11568 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11569 sh_store_pseudo_register, sh_do_pseudo_register): Call
11570 gdbarch_tdep() just once, assign result to variable and use that,
11571 instead of calling the function several times.
11572
11573 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11574
11575 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11576 macros instead of LAST_FPU_CTRL_REGNUM.
11577 (store_register): Likewise.
11578
11579 2002-01-21 Jim Blandy <jimb@redhat.com>
11580
11581 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11582 is up-to-date before running the program, not just when a program
11583 exits.
11584
11585 2002-01-21 Fred Fish <fnf@redhat.com>
11586
11587 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11588 when we have found all instructions we are looking for.
11589
11590 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11591
11592 * arm-tdep.c (arm_register_name): New function.
11593 (arm_registers_names): Make static.
11594 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11595 (arm_register_name): Declare.
11596 (REGISTER_NAME): Use it.
11597
11598 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11599 Kevin Buettner <kevinb@redhat.com>
11600
11601 Convert arm targets to new FRAME interface.
11602 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11603 (arm_frame_find_save_regs): Delete.
11604 (arm_frame_init_saved_regs): New.
11605 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11606 Allocate extra_info as required. Convert all uses of fsr.regs
11607 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11608 to use extra_info.
11609 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11610 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11611 (check_prologue_cache, save_prologue_cache): Likewise.
11612 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11613 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11614 (FRAME_FIND_SAVED_REGS): Delete.
11615 (arm_frame_find_saved_regs): Delete prototype.
11616 (arm_frame_init_saved_regs): New prototype.
11617 (FRAME_INIT_SAVED_REGS): Define.
11618
11619 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11620
11621 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11622
11623 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11624
11625 From Jeff Law <law@redhat.com>:
11626 * infttrace.c: Include <sys/pstat.h>.
11627 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11628 exec file if the ttrace equivalent fails.
11629
11630 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11631
11632 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11633 (closeLogFile): Ditto.
11634
11635 2002-01-20 Michael Chastain <mec@shout.net>
11636
11637 * top.c (print_gdb_version): Bump copyright year to 2002.
11638
11639 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11640
11641 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11642 Zannoni and Eli Zaretskii.
11643
11644 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11645
11646 * buildsym.c: Update copyright years.
11647 * c-typeprint.c: Likewise.
11648 * dwarf2read.c: Likewise.
11649 * f-typeprint.c: Likewise.
11650 * gdbtypes.c: Likewise.
11651 * gdbtypes.h: Likewise.
11652 * hp-symtab-read.c: Likewise.
11653 * hpread.c: Likewise.
11654 * mdebugread.c: Likewise.
11655 * p-typeprint.c: Likewise.
11656
11657 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11658
11659 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11660 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11661 byte-order selectable.
11662 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11663 * arch-utils.c: Ditto.
11664 (set_endian): Ditto.
11665 (set_endian_from_file): Ditto.
11666 * gdbserver/low-sim.c (create_inferior): Ditto.
11667 * gdbarch.sh: Ditto.
11668 * gdbarch.h: Re-generate.
11669 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11670 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11671 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11672 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11673 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11674 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11675 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11676 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11677 macro definition.
11678 * config/mips/tm-wince.h: Remove #undef of macro
11679 TARGET_BYTE_ORDER_SELECTABLE.
11680 * config/sh/tm-wince.h: Ditto.
11681
11682 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11683
11684 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11685 member function fields. Add accessor macro
11686 TYPE_FN_FIELD_ARTIFICIAL.
11687 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11688 * c-typeprint.c (c_type_print_base): Skip artificial member
11689 functions.
11690
11691 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11692
11693 * f-typeprint.c: Delete unused function f_type_print_args.
11694 * p-typeprint.c: Delete unused function pascal_type_print_args.
11695
11696 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11697
11698 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11699 comment. Add ``artificial'' to ``union field_location''.
11700
11701 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11702
11703 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11704 * mdebugread.c (parse_symbol): Likewise.
11705 * stabsread.c (define_symbol): Likewise.
11706 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11707 initializing TYPE_FIELD_BITPOS to n (obsolete).
11708 (hpread_doc_function_type): Likewise.
11709 * hpread.c (hpread_function_type): Likewise.
11710
11711 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11712
11713 * configure.in (host_makefile_frag): Only require a host makefile
11714 fragment when a native build.
11715 * configure: Re-generate.
11716
11717 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11718
11719 * doublest.h (floatformat_from_type): Declare.
11720 * doublest.c (floatformat_from_type): New function.
11721 (convert_typed_floating): Use.
11722
11723 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11724 call to function floatformat_from_type.
11725
11726 * gdbarch.sh (IEEE_FLOAT): Delete.
11727 * gdbarch.h, gdbarch.c: Re-generate.
11728 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11729 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11730 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11731 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11732 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11733 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11734 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11735 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11736 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11737 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11738 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11739 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11740
11741 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11742 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11743 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11744 * sh-tdep.c (sh_gdbarch_init): Ditto.
11745 * mips-tdep.c (mips_gdbarch_init): Ditto.
11746 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11747 * cris-tdep.c (cris_gdbarch_init): Ditto.
11748
11749 2002-01-20 Jiri Smid <smid@suse.cz>
11750
11751 * configure.host, configure.tgt: Support x86-64.
11752 * NEWS: Note new target x86-64.
11753
11754 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11755 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11756 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11757 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11758 x86-64-linux-nat.o): Fix dependencies.
11759
11760 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11761
11762 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11763 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11764 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11765 * config/sparc/xm-sun4os4.h: Delete file.
11766 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11767
11768 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11769
11770 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11771 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11772 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11773 * config/i386/i386lynx.mh (XM_FILE): Delete.
11774 * config/rs6000/xm-rs6000ly.h: Delete file.
11775 * config/sparc/xm-sparclynx.h: Delete file.
11776 * config/m68k/xm-m68klynx.h: Delete file.
11777 * config/i386/xm-i386lynx.h: Delete file.
11778 * config/xm-lynx.h: Delete file.
11779 * config/djgpp/fnchange.lst: Update.
11780
11781 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11782
11783 * alpha-tdep.c (alpha_register_byte): New function.
11784 (alpha_register_raw_size): Ditto.
11785 (alpha_register_virtual_size): Ditto.
11786 (alpha_skip_prologue_internal): Renamed from
11787 alpha_skip_prologue.
11788 (alpha_skip_prologue): New version that calls
11789 alpha_skip_prologue_internal.
11790 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11791 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11792 second argument from alpha_skip_prologue.
11793 (REGISTER_BYTE): Use alpha_register_byte.
11794 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11795 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11796 (FRAMELESS_FUNCTION_INVOCATION): Use
11797 generic_frameless_function_invocation_not.
11798 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11799 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11800
11801 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11802
11803 * config/mips/xm-news-mips.h: Delete file.
11804 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11805
11806 * config/m88k/xm-m88k.h: Delete file.
11807 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11808 * config/m88k/xm-delta88v4.h: Ditto.
11809 * config/m88k/xm-delta88.h: Ditto.
11810
11811 * config/alpha/xm-fbsd.h: Delete file.
11812 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11813
11814 * config/sparc/xm-sparc.h: Delete file.
11815 * Makefile.in (xm-sun4os4.h): Delete dependency.
11816 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11817 * config/sparc/xm-sun4os4.h: Ditto.
11818 * config/sparc/xm-linux.h: Ditto.
11819
11820 * config/i386/xm-windows.h: Delete file.
11821
11822 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11823
11824 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11825 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11826
11827 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11828
11829 * alpha-tdep.c (alpha_call_dummy_words): New.
11830 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11831 (CALL_DUMMY_P): Define.
11832 (CALL_DUMMY_WORDS): Define.
11833 (SIZEOF_CALL_DUMMY_WORDS): Define.
11834
11835 2002-01-19 Per Bothner <per@bothner.com>
11836
11837 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11838 isn't NULL, which can happen with some gcj-3.x-produced code.
11839
11840 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11841
11842 * alpha-tdep.c (alpha_register_virtual_type): New function.
11843 (alpha_init_frame_pc_first): Ditto.
11844 (alpha_fix_call_dummy): Ditto.
11845 (alpha_store_struct_return): Ditto.
11846 (alpha_extract_struct_value_address): Ditto.
11847 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11848 alpha_register_virtual_type.
11849 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11850 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11851 alpha_extract_struct_value_address.
11852 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11853 (INIT_FRAME_PC): Use init_frame_pc_noop.
11854 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11855
11856 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11857
11858 * i386gnu-nat.c: Include "i386-tdep.h".
11859 (fetch_fpregs): Simplify code dealing with uninitialized floating
11860 point states such that it doesn't require FP7_REGNUM.
11861
11862 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11863
11864 * alpha-tdep.c (frame_extra_info): New.
11865 (alpha_find_saved_regs): Make static. Use
11866 frame->extra_info.
11867 (alpha_frame_init_saved_regs): New function.
11868 (alpha_frame_saved_pc): Use frame->extra_info.
11869 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11870 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11871 (init_extra_frame_info): Rename to...
11872 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11873 (alpha_print_extra_frame_info): New function.
11874 (alpha_frame_locals_address): Ditto.
11875 (alpha_frame_args_address): Ditto.
11876 (alpha_pop_frame): Use frame->extra_info.
11877 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11878 alpha_frame_args_address.
11879 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11880 (alpha_find_saved_regs): Remove prototype.
11881 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11882 (EXTRA_FRAME_INFO): Remove.
11883 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11884 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11885
11886 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11887
11888 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11889 (alpha_cannot_fetch_register): Ditto.
11890 (alpha_cannot_store_register): Ditto.
11891 (alpha_register_convertible): Ditto.
11892 (alpha_use_struct_convention): Ditto.
11893 * config/alpha/tm-alpha.h: Update copyright years.
11894 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11895 (INNER_THAN): Use core_addr_lessthan.
11896 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11897 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11898 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11899 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11900 (FRAME_CHAIN): Remove unnecessary cast.
11901
11902 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11903
11904 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11905 obsolete.
11906
11907 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11908
11909 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11910 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11911 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11912 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11913 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11914 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11915 * x86-64-linux-nat.c: Ditto.
11916
11917 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11918
11919 * alpha-tdep.c (alpha_register_name): New function.
11920 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11921 (REGISTER_NAME): Define.
11922
11923 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11924
11925 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11926
11927 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11928
11929 * alpha-tdep.c: Update copyright years.
11930 (alpha_next_pc): New function.
11931 (alpha_software_single_step): Ditto.
11932 * config/alpha/tm-alpha.h: Add prototype for
11933 alpha_software_single_step.
11934
11935 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11936
11937 * alphabsd-nat.c: Update copyright years.
11938 (fill_gregset): Use regcache_collect.
11939 (fill_fpregset): Likewise.
11940 (fetch_inferior_registers): Only fetch integer registers
11941 if requested to do so.
11942 (store_inferior_registers): Only store integer registers
11943 if requested to do so.
11944
11945 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11946
11947 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11948 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11949 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11950 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11951 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11952 * config/arm/linux.mh (XDEPFILES): Delete.
11953 * config/arm/nbsd.mh (XDEPFILES): Delete.
11954 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11955 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11956 * config/i386/i386m3.mh (XDEPFILES): Delete.
11957 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11958 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11959 * config/i386/fbsd.mh (XDEPFILES): Delete.
11960 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11961 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11962 * config/i386/i386v4.mh (XDEPFILES): Delete.
11963 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11964 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11965 * config/i386/i386aix.mh (XDEPFILES): Delete.
11966 * config/i386/go32.mh (XDEPFILES): Delete.
11967 * config/i386/cygwin.mh (XDEPFILES): Delete.
11968 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11969 * config/i386/i386mach.mh (XDEPFILES): Delete.
11970 * config/i386/i386v32.mh (XDEPFILES): Delete.
11971 * config/i386/linux.mh (XDEPFILES): Delete.
11972 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11973 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11974 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11975 * config/i386/i386sco.mh (XDEPFILES): Delete.
11976 * config/i386/i386v.mh (XDEPFILES): Delete.
11977 * config/i386/nbsd.mh (XDEPFILES): Delete.
11978 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11979 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11980 * config/i386/symmetry.mh (XDEPFILES): Delete.
11981 * config/i386/obsd.mh (XDEPFILES): Delete.
11982 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11983 * config/ia64/linux.mh (XDEPFILES): Delete.
11984 * config/ia64/aix.mh (XDEPFILES): Delete.
11985 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11986 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11987 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11988 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11989 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11990 * config/m68k/linux.mh (XDEPFILES): Delete.
11991 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11992 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11993 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11994 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11995 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11996 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11997 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11998 * config/m88k/delta88.mh (XDEPFILES): Delete.
11999 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12000 * config/m88k/m88k.mh (XDEPFILES): Delete.
12001 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12002 * config/mips/linux.mh (XDEPFILES): Delete.
12003 * config/mips/irix6.mh (XDEPFILES): Delete.
12004 * config/mips/irix5.mh (XDEPFILES): Delete.
12005 * config/mips/irix4.mh (XDEPFILES): Delete.
12006 * config/mips/irix3.mh (XDEPFILES): Delete.
12007 * config/mips/decstation.mh (XDEPFILES): Delete.
12008 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12009 (NATDEPFILES): Move core-aout.o to here.
12010 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12011 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12012 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12013 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12014 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12015 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12016 * config/pa/hpux11.mh (XDEPFILES): Delete.
12017 * config/powerpc/aix.mh (XDEPFILES): Delete.
12018 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12019 * config/powerpc/linux.mh (XDEPFILES): Delete.
12020 * config/romp/rtbsd.mh: Rename XDEPFILES.
12021 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12022 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12023 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12024 * config/s390/s390.mh (XDEPFILES): Delete.
12025 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12026 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12027 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12028 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12029 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12030 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12031 * config/sparc/linux.mh (XDEPFILES): Delete.
12032 * config/vax/vaxult.mh (XDEPFILES): Delete.
12033 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12034 * Makefile.in (DEPFILES): Remove XDEPFILES.
12035
12036 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12037
12038 * utils.c (internal_verror): Fix comments, default is yes not no.
12039 Update queries to match. Default to quit and dump core.
12040
12041 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12042
12043 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12044 copyright.
12045 * defs.h, event-top.c, gdbcmd.h: Ditto.
12046 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12047 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12048 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12049 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12050 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12051 * mi/mi-main.c:Ditto.
12052
12053 * stack.c, symfile.c: Update copyright.
12054
12055 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12056
12057 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12058 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12059 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12060 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12061
12062 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12063
12064 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12065 * gdbserver/low-lynx.c (myattach): Likewise.
12066 * gdbserver/low-nbsd.c (myattach): Likewise.
12067 * gdbserver/low-sim.c (myattach): Likewise.
12068 * gdbserver/low-sparc.c (myattach): Likewise.
12069 * gdbserver/low-sun3.c (myattach): Likewise.
12070
12071 * gdbserver/low-linux.c (myattach): New function.
12072
12073 * gdbserver/server.c (attach_inferior): New function.
12074 (main): Handle "--attach".
12075
12076 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12077
12078 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12079 maintainer.
12080
12081 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12082
12083 * c-typeprint.c (is_type_conversion_operator): Add additional
12084 check for non-conversion operators.
12085
12086 2002-01-15 Michael Snyder <msnyder@redhat.com>
12087
12088 * linux-proc.c: Add "info proc" command, a la procfs.c.
12089 (read_mapping): New function, abstract and re-use code.
12090 (linux_find_memory_regions): Use new func read_mapping.
12091 (linux_info_proc_cmd): New function, implement "info proc".
12092 (_initialize_linux_proc): Add new command "info proc".
12093
12094 2002-01-15 Michael Snyder <msnyder@redhat.com>
12095
12096 * symfile.c (generic_load): Use bfd_map_over_sections method
12097 instead of manipulating bfd structure members directly.
12098 (add_section_size_callback): New function, bfd sections callback
12099 used by generic_load.
12100 (load_sections_callback): New function, bfd sections callback
12101 used by generic_load.
12102
12103 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12104
12105 [Based on work by Jim Blandy]
12106 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12107 (builtin_type_vec128): Export.
12108 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12109 types.
12110 (builtin_type_vec128): New builtin type for 128 bit vector
12111 registers.
12112 (build_gdbtypes): Initialize builtin_type_v16qi and
12113 builtin_type_v8hi. Create the vec128 register builtin type
12114 structure.
12115 (build_builtin_type_vec128): New function.
12116 (_initialize_gdbtypes): Register builtin_type_v16qi and
12117 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12118 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12119 AltiVec register to new builtin type.
12120
12121 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12122
12123 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12124 to make_cv_type.
12125
12126 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12127
12128 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12129 CLEAN_UP_REGISTER_VALUE.
12130 * regcache.c (supply_register): Update only call.
12131
12132 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12133
12134 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12135 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12136 a29k-*-vxworks* targets as obsolete.
12137
12138 2002-01-14 Michael Snyder <msnyder@redhat.com>
12139
12140 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12141 until we can resolve portability issues.
12142 * gregset.h: Remove references to fpxregs.
12143 * gcore.c (gcore_command): Initialize note_sec to NULL.
12144
12145 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12146
12147 * signals.c (target_signal_to_name): Rewrite. Only use
12148 signals[].name when in bounds and non-NULL.
12149
12150 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12151
12152 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12153 * signals.c (target_signal_to_name): Verify that SIG is within the
12154 bounds of the signals array.
12155
12156 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12157
12158 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12159
12160 2002-01-13 Keith Seitz <keiths@redhat.com>
12161
12162 * stack.c (print_frame_info_base): Print the frame's pc
12163 only if when print_frame_info_listing_hook is not defined.
12164
12165 2002-01-13 Keith Seitz <keiths@redhat.com>
12166
12167 * varobj.c (varobj_set_value): Make sure that there were no
12168 errors evaluating the object before attempting to set its
12169 value.
12170 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12171 so this offset adjustment is no longer necessary.
12172 (create_child): Don't set the error flag if the child is
12173 a CPLUS_FAKE_CHILD.
12174 (value_of_child): If value_fetch_lazy fails, return NULL
12175 so that callers will be notified that an error occurred.
12176 (c_value_of_variable): Delay check of variable's validity
12177 until later. We actually want all structs and unions to have
12178 the value "{...}".
12179 Do not return "???" for variables which could not be evaluated.
12180 This error condition must be returned to the caller so that it
12181 can get the error condition from gdb.
12182 (cplus_name_of_child): Adjust index for vptr before figuring
12183 out the name of the child.
12184 (cplus_value_of_child): If a child's (real) parent is not valid,
12185 don't even bother trying to give a value for it. Just return
12186 an error. Change all instances in this function.
12187 (cplus_type_of_child): If our parent is one of the "fake"
12188 parents, we need to get at the type of the real parent, and
12189 derive the child's true type using this information.
12190
12191 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12192
12193 From 2002-01-09 John Marshall <johnm@falch.net>:
12194 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12195 sources.redhat.com, and tweak some related URLs which had
12196 suffered from linkrot.
12197
12198 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12199
12200 From Jeff law:
12201 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12202 structures passed in registers.
12203
12204 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12205
12206 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12207 white space which prevented compilation. Reported by DSK
12208 <dsk@student.unsw.edu.au>.
12209
12210 2002-01-11 Michael Snyder <msnyder@redhat.com>
12211
12212 * symfile.c (build_section_addr_info_from_section_tab):
12213 Use bfd access method instead of manipulating bfd directly.
12214 (syms_from_objfile): Ditto.
12215 (simple_overlay_update_1): Ditto.
12216 (simple_overlay_update): Ditto.
12217 (generic_load): Ditto.
12218 (overlay_unmapped_address): FIXME comment, bfd access methods.
12219 (sections_overlap): FIXME comment, bfd access methods.
12220 (pc_in_mapped_range): FIXME comment, bfd access methods.
12221 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12222 (section_is_mapped): FIXME comment, bfd access methods.
12223 (section_is_overlay): FIXME comment, bfd access methods.
12224
12225 * symfile.c (generic_load): Whitespace and long line cleanups.
12226 Remove duplicate variable, change several local variables to
12227 more appropriate data types.
12228 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12229
12230 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12231
12232 From Peter Schauer:
12233 * language.c (longest_local_hex_string_custom): Use phex_nz to
12234 convert NUM to a hex string.
12235
12236 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12237
12238 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12239 the function.
12240 Update Copyright year.
12241
12242 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12243
12244 * language.c (longest_raw_hex_string): Delete unused function.
12245
12246 2002-01-11 Petr Sorfa <petrs@caldera.com>
12247
12248 * MAINTAINERS (write-after-approval): Add myself.
12249 * dwarf2read.c (read_tag_string_type): Handling of
12250 DW_AT_byte_size.
12251 (read_tag_string_type): FORTRAN fix to prevent propagation of
12252 first string size.
12253 (set_cu_language): Handling of DW_LANG_Fortran95
12254
12255 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12256
12257 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12258 GETPID(inferior_ptid).
12259 (store_inferior_registers): Likewise.
12260
12261 2002-01-10 Jason Merrill <jason@redhat.com>
12262
12263 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12264 Fix DW_OP_minus.
12265
12266 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12267
12268 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12269 and bfd/elf32-sh-nbsd.c.
12270
12271 2002-01-10 Michael Snyder <msnyder@redhat.com>
12272
12273 * NEWS: Mention --pid and corefile/proc-id behavior change.
12274
12275 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12276 * gcore.c: Include cli/cli-decode.h instead of command.h.
12277
12278 * main.c (captured_main): Add new command line option "--pid".
12279 If the second command line argument (following the symbol-file)
12280 begins with a digit, try to attach to it before trying to open
12281 it as a corefile.
12282 (print_gdb_help): Document the "--pid" argument.
12283
12284 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12285
12286 * completer.c (command_completer): New function.
12287
12288 * completer.h <command_completer>: Add prototype.
12289
12290 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12291 completer for the "help" command.
12292
12293 2002-01-09 Jason Merrill <jason@redhat.com>
12294
12295 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12296
12297 2002-01-09 Michael Snyder <msnyder@redhat.com>
12298
12299 * i386-linux-nat.c (fill_fpxregset): Make global.
12300 (store_fpxregset): Ditto.
12301
12302 * gregset.h (gdb_fpxregset_t): Define.
12303 (supply_fpxregset): Prototype.
12304 (fill_fpxregset): Prototype.
12305
12306 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12307
12308 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12309
12310 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12311 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12312 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12313
12314 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12315
12316 * MAINTAINERS: Update target maintainer rules so that any
12317 Maintainer can approve a tested patch for a maintenance-only
12318 target.
12319
12320 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12321
12322 * MAINTAINERS (write-after-approval): Add myself.
12323
12324 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12325 IN_SIGTRAMP.
12326
12327 2002-01-08 Michael Snyder <msnyder@redhat.com>
12328
12329 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12330 real name of the executable, rather than the /proc name.
12331
12332 2002-01-03 Michael Snyder <msnyder@redhat.com>
12333
12334 Implement a "generate-core-file" command in gdb, save target state.
12335 * gcore.c: New file. Implement new command 'generate-core-file'.
12336 Save a corefile image of the current state of the inferior.
12337 * linux-proc.c: Add linux-specific code for saving corefiles.
12338 * target.h (struct target_ops): Add new target vectors for saving
12339 corefiles; to_find_memory_regions and to_make_corefile_notes.
12340 (target_find_memory_regions): New macro.
12341 (target_make_corefile_notes): New macro.
12342 * target.c (update_current_target): Inherit new target methods.
12343 (dummy_find_memory_regions): New place-holder method.
12344 (dummy_make_corefile_notes): New place-holder method.
12345 (init_dummy_target): Initialize new dummy target vectors.
12346 * exec.c (exec_set_find_memory_regions): New function.
12347 Allow the exec_ops vector for memory regions to be taken over.
12348 (exec_make_note_section): New function, target vector method.
12349 * defs.h (exec_set_find_memory_regions): Export prototype.
12350 * procfs.c (proc_find_memory_regions): New function, corefile method.
12351 (procfs_make_note_section): New function, corefile method.
12352 (init_procfs_ops): Set new target vector pointers.
12353 (find_memory_regions_callback): New function.
12354 (procfs_do_thread_registers): New function.
12355 (procfs_corefile_thread_callback): New function.
12356 * sol-thread.c (sol_find_memory_regions): New function.
12357 (sol_make_note_section): New function.
12358 (init_sol_thread_ops): Initialize new target vectors.
12359 * inftarg.c (inftarg_set_find_memory_regions): New function.
12360 Allow to_find_memory_regions vector to be taken over.
12361 (inftarg_set_make_corefile_notes): New function.
12362 Allow to_make_corefile_notes vector to be taken over.
12363 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12364 interface layer if not target_has_execution (may be a corefile).
12365 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12366 * config/sparc/sun4sol2.mh: Ditto.
12367 * config/alpha/alpha-linux.mh: Ditto.
12368 * config/arm/linux.mh: Ditto.
12369 * config/i386/x86-64linux.mh: Ditto.
12370 * config/ia64/linux.mh: Ditto.
12371 * config/m68k/linux.mh: Ditto.
12372 * config/mips/linux.mh: Ditto.
12373 * config/powerpc/linux.mh: Ditto.
12374 * config/sparc/linux.mh: Ditto.
12375
12376 2002-01-07 Michael Snyder <msnyder@redhat.com>
12377
12378 * arm-linux-nat.c: Remove references to regcache.c internal data
12379 (registers[] and register_valid[]).
12380
12381 2002-01-07 Michael Snyder <msnyder@redhat.com>
12382
12383 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12384 so that attaching to a pid will automatically read the process's
12385 symbol file and shlibs.
12386 * Makefile.in: Add rule for linux-proc.o.
12387 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12388 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12389 * config/arm/linux.mh: Ditto.
12390 * config/i386/linux.mh: Ditto.
12391 * config/i386/x86-64linux.mh: Ditto.
12392 * config/ia64/linux.mh: Ditto.
12393 * config/m68k/linux.mh: Ditto.
12394 * config/mips/linux.mh: Ditto.
12395 * config/powerpc/linux.mh: Ditto.
12396 * config/sparc/linux.mh: Ditto.
12397
12398 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12399
12400 * win32-nat.c: Add i386-tdep.h dependency.
12401
12402 2002-01-07 Michael Snyder <msnyder@redhat.com>
12403
12404 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12405 instead of bfd_get_arch_size. Don't bail out just because
12406 there's no exec_bfd.
12407
12408 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12409 * p-valprint.c (pascal_object_print_value): Ditto.
12410 * somread.c (som_symtab_read): Ditto.
12411 * symfile.c (simple_free_overlay_region_table): Ditto.
12412 * valops.c (value_assign): Ditto.
12413
12414 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12415 use tilde_expand and strerror for opening save-tracepoints file.
12416
12417 * thread-db.c (thread_db_new_objfile): Indendation fix.
12418
12419 * infptrace.c (GDB_MAX_ALLOCA): New define.
12420 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12421 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12422 can be overridden with whatever value is appropriate to the host).
12423 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12424 alloca to allocate potentially large buffer.
12425 * rs6000-nat.c (child_xfer_memory): Ditto.
12426 * symm-nat.c (child_xfer_memory): Ditto.
12427 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12428
12429 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12430
12431 From Nick Clifton <nickc@redhat.com>
12432 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12433
12434 2002-01-07 Michael Snyder <msnyder@redhat.com>
12435
12436 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12437 Don't use exec_bfd if it's NULL.
12438
12439 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12440
12441 * valops.c (value_arg_coerce): Fix formatting.
12442
12443 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12444
12445 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12446 * gnu-nat.c: Ditto.
12447
12448 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12449
12450 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12451 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12452 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12453 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12454 z8k-coff have not been multi-arched. Update z8k-coff build
12455 status.
12456
12457 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12458
12459 * MAINTAINERS: Mark a29k target as obsolete.
12460 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12461 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12462 comments.
12463 * NEWS: Note that a29k targets are obsolete.
12464 * a29k-tdep.c: Mark as obsolete.
12465 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12466 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12467 a29k-*-vxworks* targets as obsolete.
12468 * remote-adapt.c: Obsolete.
12469 * remote-eb.c: Obsolete.
12470 * remote-mm.c: Obsolete.
12471 * remote-udi.c: Obsolete.
12472 * config/a29k/a29k-udi.mt: Obsolete.
12473 * config/a29k/a29k.mt: Obsolete.
12474 * config/a29k/tm-a29k.h: Obsolete.
12475 * config/a29k/tm-vx29k.h: Obsolete.
12476 * config/a29k/vx29k.mt: Obsolete.
12477
12478 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12479
12480 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12481 with BFD_ENDIAN_BIG.
12482
12483 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12484
12485 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12486 * configure, config.in: Re-generate.
12487 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12488 * defs.h: Do not include <endian.h>.
12489
12490 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12491
12492 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12493 * config.in: Regenerate.
12494 * configure.in: Update copyright years.
12495 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12496 * configure: Regenerate.
12497 * i386bsd-nat.c: Update copyright years.
12498 (fill_gregset): Use regcache_collect.
12499 (fetch_inferior_registers): Only fetch integer registers
12500 if requested to do so. Add support for XMM registers
12501 using PT_GETXMMREGS.
12502 (store_inferior_registers): Only store integer registers
12503 if requested to do so. Add support for XMM registers
12504 using PT_SETXMMREGS.
12505 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12506 (store_inferior_registers): Remove.
12507 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12508 (fetch_elfcore_registers): New function.
12509 (i386nbsd_elfcore_fns): New.
12510 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12511 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12512 i386bsd-nat.o.
12513 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12514 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12515 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12516 * config/i386/tm-nbsd.h: Update copyright years.
12517 (HAVE_SSE_REGS): Define.
12518 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12519 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12520 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12521 (SIGCONTEXT_PC_OFFSET): Remove.
12522 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12523
12524 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12525
12526 * configure.tgt: Remove powerpc-*-macos* target.
12527 * config/m68k/xm-mpw.h: Delete file.
12528 * config/xm-mpw.h: Delete file.
12529 * ser-mac.c: Delete file.
12530 * mpw-make.sed: Delete file.
12531 * mpw-config.in: Delete file.
12532 * mac-xdep.c: Delete file.
12533 * mac-gdb.r: Delete file.
12534 * mac-defs.h: Delete file.
12535 * mac-nat.c: Delete file.
12536 * config/powerpc/macos.mh: Delete file.
12537 * config/powerpc/macos.mt: Delete file.
12538 * config/powerpc/nm-macos.h: Delete file.
12539 * config/powerpc/tm-macos.h: Delete file.
12540 * source.c (openp, open_source_file): Remove obsolete code.
12541 * top.c (gdb_readline): Ditto.
12542 * utils.c (query): Ditto.
12543 * event-top.c (display_gdb_prompt): Ditto.
12544 * Makefile.in (ser-mac.o): Delete obsolete target.
12545 * NEWS: Update.
12546
12547 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12548
12549 * defs.h (BIG_ENDIAN): Delete macro definition.
12550 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12551 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12552 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12553 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12554 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12555 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12556 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12557 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12558 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12559 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12560 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12561 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12562 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12563 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12564 * gdbarch.c: Re-generate.
12565
12566 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12567
12568 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12569 for core files.
12570
12571 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12572
12573 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12574
12575 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12576
12577 * value.h (value_ptr): Delete typedef.
12578
12579 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12580
12581 * i386nbsd-nat.c: Update copyright years.
12582 Include i386-tdep.h.
12583
12584 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12585
12586 * stabsread.c: Update copyright years.
12587
12588 From Debashis Mahata <debashis.mahata@wipro.com>:
12589 (read_struct_fields): Deal with Sun C compiler erroneous stab
12590 output for structs and unions.
12591 Fix PR gdb/269.
12592
12593 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12594
12595 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12596 prototype.
12597
12598 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12599
12600 * cp-abi.c: Fix whitespace.
12601 (baseclass_offset): New wrapper function.
12602 * cp-abi.h (baseclass_offset): Add prototype.
12603 (struct cp_abi_ops): Add baseclass_offset pointer.
12604
12605 * valops.c (vb_match): Move to...
12606 * gnu-v2-abi.c (vb_match): here.
12607 * valops.c (baseclass_offset): Move to...
12608 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12609
12610 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12611
12612 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12613 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12614 * hpacc-abi.c (init_hpacc_ops): Likewise.
12615
12616 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12617
12618 * valops.c (find_overload_match): Accept obj as a
12619 reference parameter. Update it before returning.
12620 * value.h (find_overload_match): Update prototype.
12621 * eval.c (evaluate_subexp_standard): Pass object to
12622 find_overload_match by reference.
12623
12624 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12625
12626 * valarith.c: Replace value_ptr with struct value pointer. Remove
12627 register attribute from value declarations.
12628 * valops.c: Ditto.
12629 * value.h: Ditto.
12630 * scm-lang.c (scm_lookup_name): Ditto.
12631
12632 2002-01-03 Michael Snyder <msnyder@redhat.com>
12633
12634 Abstract the functionality of iterating over mapped memory
12635 regions into a general purpose iterator function.
12636 * procfs.c (iterate_over_mappings): New function, general purpose
12637 iterator for memory sections.
12638 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12639 (solib_mappings_callback): New function, callback for above.
12640 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12641 (info_mappings_callback): New function, callback for above.
12642
12643 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12644
12645 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12646
12647 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12648 * i386-tdep.c: Include "elf-bfd.h".
12649 (process_note_abi_tag_sections): New function.
12650 (i386_gdbarch_init): Add code to recognize various OS/ABI
12651 combinations.
12652
12653 * maint.c (_initialize_maint_cmds): Add missing \ in
12654 string-literal.
12655
12656 For older changes see ChangeLog-2001
12657 \f
12658 Local Variables:
12659 mode: change-log
12660 left-margin: 8
12661 fill-column: 74
12662 version-control: never
12663 End: