* dwarf2read.c (read_func_scope): Restore local_symbols and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-08 Jim Blandy <jimb@redhat.com>
2
3 * dwarf2read.c (read_func_scope): Restore local_symbols and
4 param_symbols after we finish the function context. (Based on a
5 patch from David Edelsohn.)
6
7 2002-11-08 David Carlton <carlton@math.stanford.edu>
8
9 * linespec.c (symbol_found): New function.
10 (minsym_found): New function.
11 (decode_line_1): Separate out some code into separate functions.
12
13 2002-11-08 Joel Brobecker <brobecker@gnat.com>
14
15 * i386-tdep.c (i386_frameless_signal_p): Make non static for
16 the benefit of the interix target.
17 * i386-tdep.h (i386_frameless_signal_p): Declare.
18
19 2002-11-08 Andrew Cagney <ac131313@redhat.com>
20
21 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
22 declaration that snuck in from change below.
23
24 2002-11-06 Andrew Cagney <cagney@redhat.com>
25
26 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
27 all callers.
28 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
29 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
30 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
31 (i386_mxcsr_regnum_p): new function. Use instead of
32 MXCSR_REGNUM_P.
33 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
34 (i386_sse_regnum_p): Declare.
35 (i386_mxcsr_regnum_p): Declare.
36 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
37 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
38 (IS_FP_REGNUM): Update definition.
39 (IS_FPU_CTRL_REGNUM): Update definition..
40 (IS_SSE_REGNUM): Update definition..
41 * i386v-nat.c (register_u_addr): Update.
42 * go32-nat.c (fetch_register): Update.
43 (store_register): Update.
44
45 2002-11-07 Joel Brobecker <brobecker@gnat.com>
46
47 Preparation work to convert the hppa targets to multiarch partial.
48
49 * hppa-tdep.c: Add new functions replacing macro bodies from
50 config/pa/tm-hppa.h. These function will be used to initialize
51 the gdbarch structure. Import some comments from tm-hppa.h,
52 and place them where appropriate, to avoid loosing them when
53 we cleanup this file.
54 (hppa_reg_struct_has_addr): New function.
55 (hppa_inner_than): New function.
56 (hppa_stack_align): New function.
57 (hppa_pc_requires_run_before_use): New function.
58 (hppa_instruction_nullified): New function.
59 (hppa_register_byte): New function.
60 (hppa_register_virtual_type): New function.
61 (hppa_store_struct_return): New function.
62 (hppa_cannot_store_register): New function.
63 (hppa_frame_args_address): New function.
64 (hppa_frame_locals_address): New function.
65 (hppa_smash_text_address): New function.
66 (hppa_coerce_float_to_double): New function. Requires the inclusion
67 of "language.h".
68
69 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
70
71 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
72 gdbarch-eligible macro to a call to the new associated function
73 created in hppa-tdep.c.
74 (INNER_THAN): Likewise.
75 (STACK_ALIGN): Likewise.
76 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
77 (INSTRUCTION_NULLIFIED): Likewise.
78 (REGISTER_BYTE): Likewise.
79 (REGISTER_VIRTUAL_TYPE): Likewise.
80 (STORE_STRUCT_RETURN): Likewise.
81 (CANNOT_STORE_REGISTER): Likewise.
82 (FRAME_ARGS_ADDRESS): Likewise.
83 (FRAME_LOCALS_ADDRESS): Likewise.
84 (SMASH_TEXT_ADDRESS): Likewise.
85 (COERCE_FLOAT_TO_DOUBLE): Likewise.
86 (ABOUT_TO_RETURN): Delete, as no longer used.
87
88 2002-11-07 Fernando Nasser <fnasser@redhat.com>
89
90 * printcmd.c (disassemble_command): Remove obsolete function.
91 (_initialize_printcmd): Do not create disassemble command here.
92 * cli/cli-cmds.c (disassemble_command): New function. Implements
93 disassemble command.
94 (init_cli_cmds): Create disassemble command here instead.
95
96 2002-11-07 Andrew Cagney <ac131313@redhat.com>
97
98 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
99
100 2002-11-07 Andrew Cagney <ac131313@redhat.com>
101
102 * regcache.h (regcache_cooked_read_using_offset_hack)
103 (regcache_cooked_write_using_offset_hack): Delete declarations.
104 (register_changed): Delete declaration.
105 * regcache.c (regcache_cooked_read_using_offset_hack)
106 (regcache_cooked_write_using_offset_hack): Delete functions.
107 (cooked_xfer_using_offset_hack): Delete function.
108 (register_changed): Delete function.
109
110 2002-11-07 Jim Blandy <jimb@redhat.com>
111
112 * macroscope.c: #include "complaints.h".
113 (sal_macro_scope): Cope with filenames that appear in the symtabs,
114 but not in the macro table.
115 * Makefile.in (macroscope.o): Record dependency.
116
117 2002-11-07 Joel Brobecker <brobecker@gnat.com>
118
119 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
120
121 2002-11-07 Andrew Cagney <ac131313@redhat.com>
122
123 * regcache.c (deprecated_registers_fetched): Update.
124 * regcache.h (deprecated_registers_fetched): Rename
125 registers_fetched.
126 * remote-vxsparc.c (vx_read_register): Update.
127 * remote-vxmips.c (vx_read_register): Update.
128 * remote-vx68.c (vx_read_register): Update.
129 * irix5-nat.c (fetch_core_registers): Update.
130 * mipsm3-nat.c (fetch_inferior_registers): Update.
131 * sun3-nat.c (fetch_inferior_registers): Update.
132 * symm-nat.c (fetch_inferior_registers): Update.
133 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
134 (fetch_core_registers): Update.
135 (fetch_kcore_registers): Update.
136 * mips-nat.c (fetch_inferior_registers): Update.
137 * corelow.c (get_core_registers): Update.
138 * a68v-nat.c (fetch_inferior_registers): Update.
139
140 2002-11-06 Joel Brobecker <brobecker@gnat.com>
141
142 Put in place the framework necessary for multiarching the hppa targets.
143 * hppa-tdep.c (hppa_gdbarch_init): New function.
144 (hppa_dump_tdep): New function.
145 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
146 tdep structure dumper.
147 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
148 until the multi-arching conversion has partially been completed.
149
150 2002-11-06 Andrew Cagney <ac131313@redhat.com>
151
152 * valops.c (value_assign): Merge lval_register case into
153 lval_reg_frame_relative. Use frame_register and
154 regcache_cooked_write instead of get_saved_register and
155 write_register_bytes. After flushing the register cache, try to
156 re-select the selected frame.
157
158 2002-11-06 Andrew Cagney <ac131313@redhat.com>
159
160 * regcache.h (deprecated_register_valid): Rename register_valid.
161 * regcache.c: Update.
162 * ia64-aix-nat.c: Update.
163 * i386gnu-nat.c: Update.
164 * alpha-nat.c: Update.
165 * sparc-nat.c: Update.
166 * lynx-nat.c: Update.
167 * remote-mips.c: Update.
168
169 2002-11-06 Joel Brobecker <brobecker@gnat.com>
170
171 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
172 to end of file, to be more consistent with the pratice followed
173 by other targets.
174
175 2002-11-06 Andrew Cagney <ac131313@redhat.com>
176
177 * infcmd.c: Include "reggroups.h" and <ctype.h>.
178 (print_float_info): Print registers in float_reggroup.
179 (print_vector_info): Print registers in vector_reggroup.
180 (default_print_registers_info): When all, print registers in
181 all_reggroup. Otherwize, print registers in general_reggroup.
182 (registers_info): Rewrite. Add support for register groups.
183 Eliminate a goto.
184
185 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
186
187 * symtab.c (methods_info): Delete. It has been ifdeffed out for
188 ages.
189 (symtab_symbol_info): Remove eons old ifdeffed out code.
190 (_initialize_symtab): Remove prehistoric disabled 'info methods'
191 command.
192
193 2002-11-06 Theodore A. Roth <troth@openavr.org>
194
195 * c-exp.y: Add missing semi-colons.
196 * f-exp.y: Add missing semi-colons.
197 * m2-exp.y: Add missing semi-colons.
198 * p-exp.y: Add missing semi-colons.
199 Add empty action to start rule to avoid a type clash error when
200 building with bison >= 1.50.
201
202 2002-11-06 Jim Blandy <jimb@redhat.com>
203
204 * macrotab.h (struct macro_source_file): Doc fix.
205
206 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
207
208 * varobj.c (child_exists, cplus_number_of_children): Change
209 STREQ macro references to strcmp.
210 (cplus_name_of_child): Change code to handle the fact that
211 fields are not necessarily contiguous with regards to their
212 access control. This is a fix for PR gdb/792.
213
214 2002-11-05 Andrew Cagney <ac131313@redhat.com>
215
216 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
217 * gdbarch.h, gdbarch.c: Regnerate.
218 * frame.h (frame_register): Declare.
219 * frame.c (frame_register): New function.
220 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
221 GET_SAVED_REGISTER, otherwize call
222 generic_unwind_get_saved_register.
223 (frame_register_read): Use frame_register instead of
224 get_saved_register.
225
226 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
227
228 From Jim Ingham <jingham@apple.com>:
229 * event-top.c (gdb_disable_readline): New function.
230 (_initialize_event_loop): Move comment.
231
232 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
233
234 * event-loop.c (start_event_loop): Add comment.
235 Update copyright.
236
237 2002-11-05 Andrew Cagney <ac131313@redhat.com>
238
239 * infcmd.c (default_print_registers_info): Do not call
240 PRINT_REGISTER_HOOK.
241
242 2002-11-05 Andrew Cagney <ac131313@redhat.com>
243
244 * sparc-tdep.c (sparc_print_register_hook): Make static.
245 (sparc_print_registers_info): New function.
246 (sparc_do_registers_info): New function.
247 (sparclet_print_registers_info): New function.
248 (sparclet_do_registers_info): New function.
249 (do_sparc_print_registers_info): New function.
250 (sparc_print_registers): New static function, clone of infcmd.c's
251 default_print_registers_info.
252 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
253 (sparclet_do_registers_info): Declare.
254 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
255 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
256 Re-define.
257 (sparc_do_registers_info): Declare.
258 (PRINT_REGISTER_HOOK): Delete macro.
259 (sparc_print_register_hook): Delete declaration.
260
261 2002-11-05 David Carlton <carlton@math.stanford.edu>
262
263 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
264 functions.
265 (lookup_symbol_aux_local): New function.
266 (lookup_symbol_aux_symtabs): New function.
267 (lookup_symbol_aux_psymtabs): New function.
268
269 2002-11-05 David Carlton <carlton@math.stanford.edu>
270
271 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
272 previous values of 'objfile' and 'block'.
273
274 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
275
276 * values.c (value_change_enclosing_type): Set
277 enclosing_type field correctly also for the case where
278 more memory needs to be allocated.
279
280 2002-11-03 Mark Kettenis <kettenis@gnu.org>
281
282 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
283 of puts_filtered.
284
285 * i387-tdep.c (i387_print_float_info): Replace calls to
286 register_read and deprecated_read_register_gen with calls to
287 frame_register_read, and make the necessary adjustments to the
288 surrounding code.
289
290 2002-11-02 Andrew Cagney <ac131313@redhat.com>
291
292 * gdbarch.sh (register_reggroup_p): Allow default value.
293 * gdbarch.h, gdbarch.c: Regenerate.
294
295 2002-11-02 Andrew Cagney <ac131313@redhat.com>
296
297 * regcache.h: Add coment indicating replacements for deprecated
298 functions.
299
300 2002-11-02 Andrew Cagney <cagney@redhat.com>
301
302 * reggroups.h, reggroups.c: New files.
303 * regcache.c: Include "reggroups.h".
304 (enum regcache_dump_what): Add `regcache_dump_groups'.
305 (regcache_dump): Contract size of the "Type" column. When
306 specified, dump the register's groups.
307 (maintenance_print_register_groups): New function.
308 (_initialize_regcache): Add command `maint print register-groups'.
309 * Makefile.in (COMMON_OBS): Add reggroups.o
310 (SFILES): Add reggroups.c.
311 (reggroups_h): Define.
312 (regcache.o, gdbarch.o): Update dependencies.
313 (reggroups.o): Specify dependencies.
314 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
315 Add opaque declaration for `struct reggroup' in generated .h file.
316 Include "reggroups.h" in generated .c file.
317 gdbarch.h, gdbarch.c: Re-generate.
318
319 2002-11-02 Andrew Cagney <cagney@redhat.com>
320
321 * regcache.h (deprecated_read_register_gen): Rename
322 read_register_gen.
323 (deprecated_write_register_gen): Rename write_register_gen.
324 * i387-tdep.c: Update.
325 * x86-64-linux-nat.c: Update
326 * wince.c: Update.
327 * thread-db.c: Update.
328 * win32-nat.c: Update.
329 * mips-tdep.c: Update.
330 * d10v-tdep.c: Update.
331 * cris-tdep.c: Update.
332 * remote-sim.c: Update.
333 * remote-rdi.c: Update.
334 * remote-rdp.c: Update.
335 * frame.c: Update.
336 * target.c: Update.
337 * blockframe.c: Update.
338 * x86-64-tdep.c: Update.
339 * xstormy16-tdep.c: Update.
340 * sh-tdep.c: Update.
341 * s390-tdep.c: Update.
342 * rs6000-tdep.c: Update.
343 * sparc-tdep.c: Update.
344 * i386-tdep.c: Update.
345 * dwarf2cfi.c: Update.
346 * regcache.c: Update.
347
348 2002-11-01 Joel Brobecker <brobecker@gnat.com>
349
350 New interix-specific files:
351 * config/i386/nm-interix.h: New file.
352 * config/i386/interix.mh: New file.
353 * config/i386/interix.mt: New file.
354 * i386-interix-nat.c: New file.
355 * i386-interix-tdep.c: New file.
356
357 2002-11-01 Andrew Cagney <cagney@redhat.com>
358
359 * frame.h (deprecated_generic_get_saved_register): Rename
360 generic_get_saved_register.
361 * blockframe.c (deprecated_generic_get_saved_register): Update.
362 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
363 (xstormy16_frame_saved_register): Update.
364 * sh-tdep.c (sh_gdbarch_init): Update.
365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
366 * ia64-tdep.c (ia64_get_saved_register): Update.
367 * cris-tdep.c (cris_gdbarch_init): Update.
368 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
369 * arm-tdep.c (arm_gdbarch_init): Update.
370
371 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
372
373 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
374
375 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
376
377 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
378 trampolines in sigaction.
379
380 2002-10-31 Andrew Cagney <cagney@redhat.com>
381
382 * h8300-tdep.c: Include "gdb_assert.h".
383 (h8300_print_register): Add gdbarch, file and frame parameters.
384 Use frame_read_unsigned_register to read the register's value.
385 Use fprintf_filtered to display output.
386 (h8300_print_registers_info): Replace h8300_do_registers_info.
387 (h8300_gdbarch_init): Set print_registers_info.
388
389 2002-10-31 Andrew Cagney <cagney@redhat.com>
390
391 * frame.c (frame_read_unsigned_register): New function.
392 (frame_read_signed_register): New function.
393 * frame.h (frame_read_unsigned_register): Declare.
394 (frame_read_signed_register): Declare.
395
396 2002-10-31 Andrew Cagney <cagney@redhat.com>
397
398 * h8500-tdep.c (h8500_print_registers_info): New static function,
399 clone of infcmd.c's default_print_registers_info.
400 (h8500_do_registers_info): New funtion.
401 (h8500_print_register_hook): Rename print_register_hook, make
402 static.
403
404 * config/h8500/tm-h8500.h: Update copyright.
405 (DEPRECATED_DO_REGISTERS_INFO): Define.
406 (h8500_do_registers_info: Declare.
407 (PRINT_REGISTER_HOOK): Delete macro.
408 (print_register_hook): Delete function.
409
410 2002-10-31 Andrew Cagney <cagney@redhat.com>
411
412 * z8k-tdep.c (z8k_print_register_hook): Make static.
413 (z8k_print_registers_info): New static function, clone of
414 infcmd.c's default_print_registers_info.
415 (z8k_do_registers_info): New function. Wrap
416 z8k_print_registers_info.
417 * config/z8k/tm-z8k.h: Update copyright.
418 (PRINT_REGISTER_HOOK): Delete macro.
419 (z8k_print_register_hook): Delete declaration.
420 (DEPRECATED_DO_REGISTERS_INFO): Define.
421 (z8k_do_registers_info): Declare.
422
423 2002-10-30 Joel Brobecker <brobecker@gnat.com>
424
425 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
426 as this is already provided by value.h, and was actually causing
427 a compilation error because of a conflict in parameter type
428 declaration due to a missing const keyword.
429 (low_text_segment_addres): Fix a compilation warning.
430
431 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
432
433 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
434 registers without a name.
435 (mips_linux_cannot_store_register): Don't store registers without
436 a name.
437
438 2002-10-28 David Carlton <carlton@math.stanford.edu>
439
440 * symtab.c (find_addr_symbol): Delete. (It was already commented
441 out.)
442 * symtab.h: Delete prototype for find_addr_symbol.
443
444 2002-10-26 Andrew Cagney <cagney@redhat.com>
445
446 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
447 DO_REGISTERS_INFO.
448 gdbarch.h, gdbarch.c: Re-generate.
449 * infcmd.c (default_print_registers_info): Update reference.
450 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
451 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
452 * sh-tdep.c (sh_gdbarch_init): Ditto.
453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
455
456 2002-10-26 Mark Kettenis <kettenis@gnu.org>
457
458 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
459 cfi_init_extra_frame_info.
460 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
461 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
462
463 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
464 target where necessary. Add more comments and remove the ones
465 that don't provide any useful information.
466
467 * i386-tdep.c (i386_frame_saved_pc): Replace call to
468 deprecated_read_register_dummy with
469 frame_unwind_unsigned_register.
470
471 * i386-tdep.c (i386_extract_struct_value_address): Use
472 regcache_raw_read_unsigned instead of
473 regcache_cooked_read_unsigned since we know that the register
474 we're reading isn't a pseudo register. Rename variable 'val' into
475 the more descriptive 'addr'.
476
477 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
478 (x86_64_push_return_address): Add comment.
479 (x86_64_pop_frame): Make static.
480 (examine_argument): Clarify comment.
481 (x86_64_skip_prologue): Make prolog_expact variable static.
482
483 * dwarf2cfi.c: Fix some formatting problems.
484 (context_cpy, read_encoded_pointer): Clarify comments.
485
486 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
487 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
488 i386 target back into x86_64_gdbarch_init. Add some comments and
489 remove meaningless ones.
490
491 2002-10-25 Andrew Cagney <cagney@redhat.com>
492
493 * complaints.h (struct deprecated_complaint): Rename `struct
494 complaint'.
495 * complaints.c (complain): Update.
496 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
497 incorrect comment indicating that "symfile.h" was being included
498 for the `struct complaint' definition.
499 * remote-vx.c: Update.
500 * objc-lang.c: Update.
501 * xcoffread.c: Update.
502 * hpread.c: Update.
503 * mdebugread.c: Update.
504 * stabsread.c: Update.
505 * dwarf2read.c: Update.
506 * dwarfread.c: Update.
507 * elfread.c: Update.
508 * coffread.c: Update.
509 * stabsread.h: Update.
510 * dbxread.c: Update.
511 * buildsym.c: Update.
512 * gdbtypes.c: Update.
513 * macrotab.c: Update.
514
515 2002-10-25 Mark Kettenis <kettenis@gnu.org>
516
517 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
518 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
519 (x86_64_init_abi): ...new function.
520
521 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
522 * i386v-nat.c: Include "i386-tdep.h".
523
524 2002-10-25 Andrew Cagney <cagney@redhat.com>
525
526 * gdbtypes.c (address_space_name_to_int): Update.
527 (address_space_int_to_name): Update.
528 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
529 multi-arch predicate.
530 (address_class_name_to_type_flags): Ditto.
531 * gdbarch.h, gdbarch.c: Re-generate.
532
533 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
534
535 2002-10-24 Martin M. Hunt <hunt@redhat.com>
536
537 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
538
539 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
540
541 * symtab.h (INIT_SAL): Delete macro.
542 (init_sal): Export.
543 * symtab.c (init_sal): New function.
544
545 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
546 to init_sal function call.
547 (find_sal_from_funcs_and_line): Ditto.
548 (all_sals_for_line): Ditto.
549 * breakpoint.c (create_internal_breakpoint): Ditto.
550 (create_fork_vfork_event_catchpoint): Ditto.
551 (create_exec_event_catchpoint): Ditto.
552 (parse_breakpoint_sals): Ditto.
553 (watch_command_1): Ditto.
554 (handle_gnu_4_16_catch_command): Ditto.
555 (clear_command): Ditto.
556 * hppa-tdep.c (child_enable_exception_callback): Ditto.
557 * infcmd.c (run_stack_dummy): Ditto.
558 * infrun.c (process_event_stop_test): Ditto.
559 (check_sigtramp2): Ditto.
560 (step_over_function): Ditto.
561 * linespec.c (decode_line_2): Ditto.
562 (decode_line_1): Ditto.
563 * source.c (line_info): Ditto.
564 * symtab.c (find_pc_sect_line): Ditto.
565
566 2002-10-24 Michal Ludvig <mludvig@suse.cz>
567
568 * dwarf2cfi.c (struct context)
569 (struct context_reg): Moved to dwarf2cfi.h
570 (context_alloc, frame_state_alloc, context_cpy):
571 Made extern instead of static, removed prototypes.
572 * dwarf2cfi.h (struct context)
573 (struct context_reg): New, moved from dwarf2cfi.c
574 (context_alloc, frame_state_alloc, context_cpy):
575 New prototypes.
576 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
577 Changed from static to extern.
578 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
579 (LINUX_SIGCONTEXT_FP_OFFSET)
580 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
581 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
582 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
583 * x86-64-tdep.c (x86_64_gdbarch_init): Several
584 set_gdbarch_*() calls now use x86-64 specific functions
585 instead of DWARF2 CFI ones.
586 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
587 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
588 (x86_64_init_extra_frame_info): New prototypes.
589
590 2002-10-23 David Carlton <carlton@math.stanford.edu>
591
592 * linespec.c: #include "parser-defs.h".
593 Delete prototype for find_template_name_end.
594 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
595
596 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
597
598 * NEWS: add recent mi fixes.
599 * varobj.c (struct varobj): Add new "updated" flag.
600 (new_variable): Default "updated" flag to 0.
601 (varobj_set_value): Set "updated" flag to 1 if value
602 changes.
603 (varobj_update): Check varobj "updated" flag before
604 comparing old and refreshed values. Fix for
605 PR gdb/702.
606
607 2002-10-23 David Carlton <carlton@math.stanford.edu>
608
609 * parse.c (parse_exp_1): Use BLOCK_START.
610 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
611 SYMBOL_BLOCK_VALUE.
612 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
613
614 2002-10-23 David Carlton <carlton@math.stanford.edu>
615
616 * symtab.c: Delete cplusplus_hint.
617 Delete prototype for find_template_name_end.
618
619 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
620
621 * symtab.h: Update comment.
622
623 2002-10-23 Michael Snyder <msnyder@redhat.com>
624
625 * printcmd.c (address_info): Restore quotes in output.
626 * valops.c (value_of_local): Restore quotes in error message.
627
628 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
629
630 * symtab.c (symbol_demangled_name): New function.
631 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
632 turning most of it into a function.
633 (symbol_demangled_name): Export.
634
635 2002-10-23 Michael Snyder <msnyder@redhat.com>
636
637 * valops.c (value_of_local): Restore quotes in error message.
638
639 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
640
641 * symtab.c (symbol_init_language_specific): New function.
642 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
643 turning most of it into a function.
644 (symbol_init_language_specific): Export.
645
646 2002-10-23 David Carlton <carlton@math.stanford.edu>
647
648 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
649 (dwarf_attr_name): Ditto.
650 (dwarf_type_encoding_name): Ditto.
651 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
652 (process_die): Handle DW_TAG_namespace,
653 DW_TAG_imported_declaration, DW_TAG_imported_module.
654 (read_namespace): New function.
655
656 2002-10-22 Joel Brobecker <brobecker@gnat.com>
657
658 * configure.in: Define NEW_PROC_API on Interix too.
659 * configure: Regenerate.
660
661 2002-10-21 Joel Brobecker <brobecker@gnat.com>
662
663 * configure: Regenerate using the proper version of autoconf.
664
665 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
666
667 * findvar.c (read_var_value): Temporarily disable TLS code, until
668 complete TLS support is added.
669
670 2002-10-21 Jim Blandy <jimb@redhat.com>
671 Elena Zannoni <ezannoni@redhat.com>
672
673 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
674 for thread local storage locations.
675 (struct symbol): Add objfile field.
676 (SYMBOL_OBJFILE): Define.
677 * dwarf2read.c (is_thread_local): New static variable.
678 (new_symbol): If variable is in thread local fill in address class
679 and objfile appropriately.
680 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
681 stack operation.
682 * printcmd.c (address_info): Print the information for thread
683 local storage variable.
684 * findvar.c (read_var_value): In case of thread local variable,
685 defer to the target vector code to compute address.
686
687 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
688
689 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
690 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
691
692 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
693
694 * symtab.h (address_class): Rename
695 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
696 * hpread.c (hpread_process_one_debug_symbol): Ditto.
697 * printcmd.c (address_info): Ditto.
698 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
699
700 2002-10-20 Mark Kettenis <kettenis@gnu.org>
701
702 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
703 DBREG_DRX macro to acces debug registers.
704
705 * Makefile.in (i386obsd-tdep.o): New target.
706
707 * solib-sunos.c: Include "bcache.h" and "regcache.h".
708 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
709
710 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
711 * config/i386/obsd.mt: New file.
712 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
713 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
714 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
715 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
716 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
717 * i386obsd-tdep.c: New file.
718
719 2002-10-19 Adam Fedor <fedor@gnu.org>
720
721 * objc-exp.y (name_not_typename): Fix invalid comment.
722
723 2002-10-20 Mark Kettenis <kettenis@gnu.org>
724
725 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
726 to allocate partial syms and macro byte caches.
727
728 2002-10-18 David Carlton <carlton@math.stanford.edu>
729
730 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
731
732 2002-10-18 Adam Fedor <fedor@gnu.org>
733
734 * stabsread.c (find_name_end): New function.
735 (define_symbol): Use it.
736
737 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
738
739 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
740 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
741 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
742 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
743
744 2002-10-17 David Carlton <carlton@math.stanford.edu>
745
746 * symfile.h: Add opaque declaration for struct obstack.
747 Declare obsavestring to take a const char *.
748 * symfile.c (obsavestring): Make first argument a const char *.
749
750 2002-10-16 Adam Fedor <fedor@gnu.org>
751
752 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
753 names when matching breakpoints in current file.
754
755 2002-10-16 Kevin Buettner <kevinb@redhat.com>
756
757 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
758 (read_tag_pointer_type): Add address class support.
759 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
760 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
761 New methods.
762 * gdbarch.h, gdbarch.c: Regenerate.
763 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
764 (make_type_with_address_space, recursive_type_dump): Add address
765 class support.
766 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
767 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
768 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
769
770 2002-10-16 Klee Dienes <kdienes@apple.com>
771
772 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
773 to get the last character of a char[] buffer, not
774 name[sizeof(vptr_name)-1].
775
776 2002-10-14 Adam Fedor <fedor@gnu.org>
777
778 * symtab.h: New objc_specific struct.
779 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
780 (SYMBOL_DEMANGLED_NAME): Likewise.
781
782 2002-10-14 Adam Fedor <fedor@gnu.org>
783
784 * symfile.c (init_filename_language_table): Add ObjC file extension.
785
786 2002-10-14 Adam Fedor <fedor@gnu.org>
787
788 * utils.c (puts_filtered_tabular): New function.
789 (fprintf_symbol_filtered): Get ObjC demangled name.
790 * defs.h (puts_filtered_tabular): Declared.
791
792 2002-10-14 Kevin Buettner <kevinb@redhat.com>
793
794 * c-lang.h (c_type_print_varspec_prefix): Delete.
795 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
796 ``need_post_space'' parameter. Adjust all callers.
797
798 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
799
800 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
801 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
802 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
803 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
804
805 2002-10-13 Adam Fedor <fedor@gnu.org>
806
807 * source.c (print_source_lines): Update comments.
808
809 2002-10-13 Adam Fedor <fedor@gnu.org>
810
811 * valops.c (value_of_local): New function.
812 (value_of_this): Use it.
813 * value.h (value_of_local): Declared.
814
815 2002-10-13 Adam Fedor <fedor@gnu.org>
816
817 * parse.c: (length_of_subexp, prefixify_subexp): Handle
818 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
819
820 2002-10-12 Adam Fedor <fedor@gnu.org>
821
822 * language.c (binop_result_type): Add language_objc to case.
823 (integral_type): Likewise.
824 (character_type): Likewise.
825 (string_type): Likewise.
826 (boolean_type): Likewise.
827 (structured_type): Likewise.
828 (binop_type_check): Likewise.
829
830 2002-10-11 Adam Fedor <fedor@gnu.org>
831
832 * printcmd.c (address_info): Print 'self' for ObjC.
833
834 2002-10-11 Adam Fedor <fedor@gnu.org>
835
836 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
837 OP_SELF.
838
839 2002-10-11 Adam Fedor <fedor@gnu.org>
840
841 * language.h (CAST_IS_CONVERSION): Add language_objc.
842
843 2002-10-11 Adam Fedor <fedor@gnu.org>
844
845 * defs.h (enum language): Add language_objc.
846
847 2002-10-11 Klee Dienes <kdienes@apple.com>
848
849 * corefile.c (read_memory_typed_address): New function.
850 * gdbcore.h (read_memory_typed_address): Add prototype.
851 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
852 to read a value destined for a CORE_ADDR, not read_memory_integer.
853 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
854 (f77_get_dynamic_lowerbound): Ditto.
855
856 2002-10-11 Martin M. Hunt <hunt@redhat.com>
857
858 * utils.c (string_to_core_addr): After turning string into
859 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
860 which will do necessary sign-extension, etc.
861
862 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
863
864 * c-exp.y (THIS): Delete token and grammar rule.
865 (yylex): Don't return THIS.
866 * cp-valprint.c (vtbl_ptr_name_old): Delete.
867 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
868 * demangle.c (cplus_markers): Update comment. Put '$'
869 first. Remove CPLUS_MARKER.
870 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
871 * jv-exp.y (THIS): Delete token and grammar rule.
872 (yylex): Don't return THIS.
873 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
874 * objc-exp.y (THIS): Delete token and grammar rule.
875 (yylex): Don't return THIS.
876 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
877 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
878 (read_member_functions): Likewise for opname.
879 (read_tilde_fields): Use is_cplus_marker.
880
881 * defs.h (CPLUS_MARKER): Don't define.
882 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
883 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
884 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
885 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
886 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
887
888 * config/i386/tm-i386v4.h: Delete file.
889 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
890 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
891 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
892 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
893 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
894 * config/i386/i386sco5.mt (TM_FILE): Likewise.
895 * config/i386/i386v4.mt (TM_FILE): Likewise.
896 * config/i386/ncr3000.mt (TM_FILE): Likewise.
897
898 2002-10-10 Marko Mlinar <markom@opencores.org>
899
900 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
901 accidentially not commited 2002-10-09
902 * gdbarch.h, gdbarch.c: Re-generate.
903
904 2002-10-09 Marko Mlinar <markom@opencores.org>
905
906 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
907 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
908 * gdbarch.h, gdbarch.c: Re-generate.
909
910 2002-10-08 Petr Sorfa <petrs@caldera.com>
911
912 Revised and re-submitted by John Wolfe <jlw@caldera.com>
913
914 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
915 so we can work on more than one compilation unit at a time. This
916 helps prepare GDB to handle inter-CU die references.
917 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
918 the code to be defined before struct comp_unit_head.
919 (comp_unit_head): Added new members - offset, cu_head,
920 begin_die, next and dwarf2_abbrevs.
921 (dwarf2_abbrevs): Removed single static var; now member of
922 struct comp_unit_head.
923 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
924 members.
925 (psymtab_to_symtab_1): Changed to work with the new
926 struct comp_unit_head.
927 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
928 constructs the dwarf2_abbrevs[] inside the cu_header.
929 (dwarf2_empty_abbrev_table): Now expects a ptr to a
930 dwarf2_abbrev table to clean up.
931 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
932 handling of dwarf2_abbrevs inside the cu_header.
933 (read_partial_die): Now supports the call to the new
934 dwarf2_lookup_abbrev.
935 (read_full_die): Now supports the call to the new
936 dwarf2_lookup_abbrev.
937
938 2002-10-06 Christopher Faylor <cgf@redhat.com>
939
940 * Makefile.in (install-gdbtk): Add missing continuation backslash to
941 insure that shell variables, such as "transformed_name" are propagated
942 to later shell statements in rule.
943
944 2002-10-06 Mark Kettenis <kettenis@gnu.org>
945
946 * config/i386/nm-i386sco.h: Add protection against
947 multiple-inclusion. Include "i386/nm-i386v.h".
948 (REGISTER_U_ADDR): Remove define.
949 (i386_register_u_addr): Remove prototype.
950
951 2002-10-04 Michael Snyder <msnyder@redhat.com>
952
953 * m32r-stub.c (handle_exception): Make sure exception is "trap"
954 before treating it as a single-step event.
955
956 2002-10-03 Adam Fedor <fedor@gnu.org>
957
958 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
959 (objc_demangle): Remove assignment in if statements, Replace
960 free with xfree.
961 (add_msglist): Likewise.
962 (end_msglist): Likewise.
963 (complare_selectors): Likewise.
964 (selectors_info): Likewise.
965 (compare_classes): Likewise.
966 (classes_info): Likewise.
967 (print_object_command): Likewise.
968 (find_objc_msgcall_submethod): Replace PTR with void *.
969 * objc-lang.h: Remove check for __STDC__.
970
971 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
972
973 * ui-out.h (ui_out_field_fmt_int): New prototype.
974 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
975 of field width and alignment.
976 * stack.c (print_frame_info_base): When printing frame level, use
977 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
978 PR gdb/192
979
980 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
981
982 * MAINTAINERS: Add self to Write After Approval list.
983
984 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
985
986 * infcmd.c (interrupt_target_command_wrapper): Delete.
987 (interrupt_target_command): Make non static.
988 (nofp_registers_info): Make static.
989 * stack.c (return_command_wrapper): Delete.
990 (return_command): Make non static.
991
992 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
993
994 * event-top.c (gdb_setup_readline): New function. Code moved from
995 _initialize_event_loop().
996 (_initialize_event_loop): Call gdb_setup_readline().
997
998 2002-10-02 Andrew Cagney <ac131313@redhat.com>
999
1000 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1001 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1002 * gdbarch.h, gdbarch.c: Re-generate.
1003
1004 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1005
1006 Fix PR gdb/778
1007 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1008 before recursing.
1009 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1010 of fill_in_vptr_fieldno.
1011
1012 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1013
1014 * inferior.h (registers_info, stepi_command, nexti_command,
1015 continue_command, interrupt_target_command): Export from infcmd.c.
1016 * frame.h (args_info, selected_frame_level_changed_hook,
1017 return_command): Export from stack.c.
1018 * v850ice.c (stepi_command, nexti_command, continue_command): use
1019 prototypes from inferior.h.
1020 * tracepoint.c (registers_info, args_info, locals_info): Use
1021 prototypes from frame.h and inferior.h.
1022 * Makefile.in (mi-main.o): Add dependency on frame.h.
1023
1024 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1025
1026 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1027 value in register 3 adjusted by ppc_gp0_regnum.
1028
1029 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1030
1031 2002-10-02 Marko Mlinar <markom@opencores.org>
1032
1033 * MAINTAINERS: Add myself to the Write After Approval list.
1034
1035 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1036
1037 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1038 of the section for the N64 ABI, fixed.
1039
1040 * config/mips/tm-irix6.h: Include solib.h.
1041
1042 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1043
1044 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1045 GNU operators.
1046
1047 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1048
1049 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1050 and that "mi0" syntax has been removed.
1051
1052 2002-09-30 David Carlton <carlton@math.stanford.edu>
1053
1054 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1055 * ppc-sysv-tdep.c: #include "gdb_string.h".
1056 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1057 pacify GCC.
1058
1059 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1060
1061 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1062 "vrsave"'s register number.
1063
1064 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1065
1066 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1067 use frame_unwind_signed_register to obtain the PC.
1068 (mips_frame_chain): Handle a generic dummy frame.
1069 (mips_init_extra_frame_info): When a generic dummy frame, don't
1070 re-compute the frame base.
1071 (mips_pop_frame): Handle generic dummy frames.
1072 (mips_gdbarch_init): When generic dummy frames, set
1073 use_generic_dummy_frames, push_dummy_frame to
1074 generic_push_dummy_frame, pc_in_call_dummy to
1075 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1076 generic_save_dummy_frame_tos.
1077
1078 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1079
1080 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1081 against TOP when TOP was explictly set.
1082 (generic_push_dummy_frame): Set TOP to zero.
1083
1084 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1085
1086 * event-loop.c (start_event_loop): Rename variable 'result' to
1087 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1088
1089 2002-09-30 Keith Seitz <keiths@redhat.com>
1090
1091 * gdb-events.sh (selected_thread_changed): New event.
1092 * gdb-events.c: Regenerated.
1093 * gdb-events.h: Regenerated.
1094
1095 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1096
1097 * MAINTAINERS: Add self to Write After Approval list.
1098
1099 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1100
1101 * disasm.c: New file.
1102 * disasm.h: New file.
1103 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1104 (compare_lines): Ditto.
1105 (dump_insns): Ditto.
1106 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1107 argument.
1108 (do_assembly_only): Ditto.
1109 (do_disassembly): Renamed to gdb_disassembly and moved to
1110 disasm.c. Sdded uiout argument.
1111 * Makefile.in: Add new files. Reorder SFILES list. Update
1112 dependencies. Include libgdb.a later in the insight executable.
1113
1114 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1115
1116 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1117 bfd/elf64-alpha-fbsd.c.
1118
1119 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1120
1121 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1122 i386gnu-tdep.c.
1123
1124 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1125
1126 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1127 __FUNCTION__.
1128 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1129 function name.
1130 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1131 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1132 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1133 (S_msg_sig_post_reply): Ditto.
1134
1135 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1136
1137 * sh-tdep.c (sh_use_struct_convention): Use definition according
1138 to ABI.
1139 (sh_push_arguments): Store in register with correct endianess.
1140 (sh_default_store_return_value): Ditto.
1141 (sh_gdbarch_init): Set sizeof long double to 8.
1142
1143 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1144
1145 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1146 Fix some whitespace problems.
1147
1148 2002-09-27 David Carlton <carlton@math.stanford.edu>
1149
1150 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1151 (mcore-tdep.o): Ditto.
1152 (ns32k-tdep.o): Ditto.
1153 (ns32knbsd-tdep.o): Ditto.
1154 (sh3-rom.o): Ditto.
1155 (vax-tdep.o): Ditto.
1156 * cris-tdep.c: #include "gdb_string.h"
1157 * mcore-tdep.c: Ditto.
1158 * ns32k-tdep.c: Ditto.
1159 * ns32knbsd-tdep.c: Ditto.
1160 * sh3-rom.c: Ditto.
1161 * vax-tdep.c: Ditto.
1162
1163 2002-09-27 David Carlton <carlton@math.stanford.edu>
1164
1165 * config/djgpp/fnchange.lst: Add entries for
1166 gdb/testsuite/gdb.c++/m-static files.
1167
1168 2002-09-27 Jim Wilson <wilson@redhat.com>
1169
1170 * MAINTAINERS: Add myself to the Write After Approval list.
1171
1172 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1173
1174 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1175
1176
1177 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1178
1179 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1180 frame.
1181
1182 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1183
1184 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1185 (rs6000_struct_return_address): Delete variable.
1186 (rs6000_store_struct_return): Update.
1187 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1188 deprecated_extract_struct_value_address.
1189 (rs6000_frame_align): New function.
1190 (rs6000_gdbarch_init): Set frame_align.
1191
1192 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1193
1194 From Grace Sainsbury <graces@redhat.com>:
1195 * Makefile.in (gdbtk-main.o): New target.
1196 (gdb.o): New target.
1197 (main_h): Define.
1198 (main.o): Update dependencies.
1199 (gdb$(EXEEXT)): Add gdb.o.
1200 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1201 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1202 (SUBDIR_GDBTK_CLEAN): Set.
1203 (install-gdbtk): Install the insight binary.
1204 (uninstall-gdbtk): New target.
1205 (all-gdbtk, clean-gdbtk): New rule.
1206 * top.c (use_windows): Default to zero.
1207 * main.c: Include "main.h".
1208 (main): Delete.
1209 (struct captured_main_args): Delete.
1210 (gdb_main): New function.
1211 * main.h: New file.
1212 * gdb.c: New File.
1213
1214 2002-09-25 Andrew Cagney <cagney@redhat.com>
1215
1216 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1217 (frame_map_regnum_to_name): New function.
1218 (frame_map_name_to_regnum): New function.
1219 * frame.h (frame_map_name_to_regnum): Declare.
1220 (frame_map_regnum_to_name): Declare.
1221 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1222 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1223 * parse.c: Do not include "builtin-regs.h".
1224 (target_map_name_to_register): Delete function.
1225 (write_dollar_variable): Use frame_map_name_to_regnum.
1226 * parser-defs.h (target_map_name_to_register): Delete declaration.
1227 * expprint.c: Include "frame.h".
1228 (print_subexp): Use frame_map_regnum_to_name.
1229 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1230 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1231
1232 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1233
1234 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1235 wasn't saved, and the next innermost frame is a dummy, return the
1236 dummy frame's link register.
1237
1238 2002-09-24 Jim Blandy <jimb@redhat.com>
1239
1240 Fix from Paul Breed:
1241 * main.c (captured_main): Add a `break' after the case for 'b'.
1242
1243 2002-09-24 Keith Seitz <keiths@redhat.com>
1244
1245 * varobj.c (c_type_of_child): Use get_target_type instead
1246 of TYPE_TARGET_TYPE.
1247
1248 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1249
1250 * source.c (get_current_or_default_source_symtab_and_line): Remove
1251 function.
1252 (set_default_source_symtab_and_line): New function. Attempts to
1253 determine a source file to list lines from if one is not currently
1254 defined.
1255 (get_current_source_symtab_and_line): Initialize sal.pc and
1256 sal.end fields.
1257 (set_current_source_symtab_and_line): Mark argument as const.
1258 * source.h: Update declarations and comments.
1259 * linespec.c (decode_line_1): Replace call to removed routine above.
1260 * stack.c (print_frame_info_base): Ditto.
1261 * cli/cli-cmds.c (edit_command): Ditto.
1262 (list_command): Ditto.
1263
1264 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1265
1266 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1267 sal.pc and sal.end fields.
1268 (get_current_or_default_source_symtab_and_line): Ditto.
1269 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1270 so we do not cause a new source symtab to be searched for (reverting an
1271 unintentional change from the 2002-09-20 patch).
1272 * scm-lang.c (scm_unpac): Ditto.
1273
1274 2002-09-21 Andrew Cagney <cagney@redhat.com>
1275
1276 * complaints.c (symfile_explanations): Remove new-line from
1277 ``isolated_message''.
1278 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1279 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1280
1281 2002-09-20 Nick Clifton <nickc@redhat.com>
1282
1283 * NEWS: Announce that V850EA ISA is no longer supported.
1284 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1285
1286 2002-09-20 David Carlton <carlton@math.stanford.edu>
1287
1288 * Makefile.in (c-lang.o): Correct dependencies.
1289 (utils.o): Gather dependencies.
1290 (charset.o): Move.
1291 * c-lang.c: #include "gdb_string.h"
1292
1293 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1294
1295 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1296 * cli/cli-cmds.c (list_command): New function. Implements the new
1297 cli edit command.
1298 (_init_cli_cmds): Add new command definition.
1299 * gdb.1: Document edit command.
1300 * doc/gdb.texinfo: Document edit command.
1301
1302 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1303
1304 * source.c: Make global variables current_source_symtab and
1305 current_source_line static.
1306 (list_command): Moved to cli/cli-cmds.c.
1307 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1308 (get_first_line_listed): New accessor function.
1309 (get_lines_to_list): New accessor function.
1310 (get_current_source_symtab_and_line): New function. Retrieves the
1311 position in the source code that we consider current.
1312 (get_current_or_default_source_symtab_and_line): New function.
1313 Like the above but attempts to determine a default position if one
1314 is not currently defined.
1315 (set_current_source_symtab_and_line): New function. Sets the source
1316 code position considered current and returns the previously set one.
1317 (clear_current_source_symtab_and_line): Reset stored information about
1318 a current source line.
1319 (_initialize_source): Remove registration for the "list" command and
1320 its alias.
1321 * source.h: Add declarations for the new functions above.
1322 * symtab.h: Remove declarations for the global variables mentioned
1323 above.
1324 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1325 obtain current source line.
1326 * linespec.c (decode_line_1): Ditto.
1327 * macroscope.c (default_macro_scope): Ditto.
1328 * scm-lang.c (scm_unpac): Ditto.
1329 * stack.c (print_frame_info_base): Ditto.
1330 * symfile.c (clear_symtab_users): Ditto.
1331 * symtab.c (decode_line_spec): Ditto.
1332 * cli/cli-cmds.c (list_command): Moved here from source.c.
1333 (ambiguous_line_spec): Moved here from source.c.
1334 (_init_cli_cmds): Add definition for "list" and its alias.
1335 * Makefile.in: Update dependencies.
1336
1337 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1338
1339 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1340 with what gcc thinks is correct.
1341
1342 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1343
1344 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1345 multiple register push instruction.
1346
1347 2002-09-19 Jim Blandy <jimb@redhat.com>
1348
1349 Add support for distinct host and target character sets.
1350 * charset.c, charset.h: New files.
1351 * c-exp.y: #include "charset.h".
1352 (yylex): Convert character and string literals to the target
1353 character set, before returning them as the semantic value of the
1354 token.
1355 * c-lang.c: #include "charset.h".
1356 (c_emit_char): Use charset-specific methods to recognize
1357 characters with backslash escape forms, to decide which characters
1358 to print literally and which to print using numeric escape
1359 sequences, and to convert target characters to host characters
1360 before printing.
1361 * utils.c: #include "charset.h".
1362 (no_control_char_error): New function.
1363 (parse_escape): Use charset-specific methods to recognize
1364 backslash escapes, parse `control character' notation, and convert
1365 characters from the host character set to the target character set.
1366 * configure.in: Set the default host character set.
1367 Check where to find iconv, and what its argument types might be.
1368 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1369 * Makefile.in (SFILES): List charset.c.
1370 (COMMON_OBS): List charset.o.
1371 (charset.o): New rule.
1372 (charset_h): New header dependency variable.
1373 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1374 (LIBICONV): New variable, set by configure.
1375 (CLIBS): Include $(LIBICONV) here.
1376 * aclocal.m4, config.in, configure: Regenerated.
1377
1378 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1379
1380 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1381 bison 1.35 warning.
1382
1383 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1384
1385 * gdb_mbuild.sh: New file.
1386
1387 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1388
1389 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1390
1391 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1392
1393 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1394 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1395 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1396 valops.c, value.h: Revert previous change.
1397
1398 2002-09-18 Michael Snyder <msnyder@redhat.com>
1399
1400 Preliminary support for Objective-C:
1401 * defs.h (language_objc): New enum value.
1402 (puts_filtered_tabular): Declaration only, exported from utils.c.
1403 (skip_quoted): Delete, declared in completer.h.
1404 * c-exp.y: Include completer.h.
1405 * p-exp.y: Ditto.
1406 * jv-exp.y: Ditto.
1407 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1408 New operator enum values.
1409 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1410 * language.c (binop_result_type): Handle language_objc case.
1411 (integral_type, character_type, string_type, boolean_type,
1412 structured_type, binop_type_check): Ditto.
1413 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1414 (struct objc_specific): Add to general_symbol_info.
1415 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1416 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1417 * parser-defs.h (struct objc_class_str): New struct type.
1418 (start_msglist, end_msglist, add_msglist): Declaration only,
1419 exported from objc-lang.c.
1420 * value.h (value_of_local, value_nsstring,
1421 call_function_by_hand_expecting_type): Exported from valops.c.
1422 * valops.c (find_function_addr): Export.
1423 (call_function_by_hand_expecting_type): New function.
1424 (value_of_local): New function.
1425 * symfile.c (init_filename_language_table): Add ".m" extension
1426 for Objective-C.
1427 * utils.c (puts_filtered_tabular): New function.
1428 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1429 (set/show demangle): Extend help-string to refer to ObjC.
1430 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1431 * stabsread.c (symbol_reference_defined): Objective-C symbols
1432 may contain colons: make allowances when scanning stabs strings
1433 for colons.
1434 (objc_find_colon): New function.
1435 * printcmd.c (address_info): If language == objc then print
1436 "self" instead of "this".
1437 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1438 OP_NSSTRING, and OP_SELF.
1439 (prefixify_subexp): Ditto.
1440 * source.c (print_source_lines): Mention objc in comment.
1441 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1442 method names.
1443
1444 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1445
1446 * complaints.h: Update copyright.
1447 (struct complaints): Declare.
1448 (struct complaint): Make `message' constant.
1449 (internal_complaint): Declare.
1450 (complaint): Declare.
1451 (complaint_root): Delete declaration.
1452 (symfile_complaints): Delete declaration.
1453 (struct complaints): Add opaque declaration.
1454 (clear_complaints): Add a complaints parameter.
1455 * complaints.c: Update copyright.
1456 (enum complaint_series): Define.
1457 (complaint_root): Delete.
1458 (struct complaints): Define.
1459 (complaint_sentinel, symfile_complaint_book): New variables.
1460 (symfile_explanations, symfile_complaints): New variables.
1461 New variables.
1462 (get_complaints): New function.
1463 (vcomplaint): New function.
1464 (complaint): New function.
1465 (internal_complaint): New function.
1466 (complain): Call vcomplain with symfile_complaint.
1467 (clear_complaints): Rewrite.
1468 (_initialize_complaints): Use add_setshow_command.
1469 * Makefile.in (complaints.o): Update dependencies.
1470 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1471 to call to clear_complaints.
1472 (new_symfile_objfile, reread_symbols): Ditto.
1473 (oldsyms_complaint): Delete.
1474 (empty_symtab_complaint, unknown_option_complaint): Delete.
1475 (free_named_symtabs): Use complaint instead of complain.
1476
1477 2002-09-18 Michael Snyder <msnyder@redhat.com>
1478
1479 Contributed by Apple Computer, Inc. Merged with current sources
1480 by Adam Fedor <fedor@doc.com> [cagney].
1481
1482 * objc-lang.c: First clean-up round: comments, indentation.
1483 * objc-lang.h: Ditto.
1484 * objc-lang.y: Ditto.
1485
1486 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1487
1488 * maint.c (maintenance_internal_error): Print the parameter as the
1489 error message.
1490 (maintenance_internal_warning): New function.
1491 (_initialize_maint_cmds): Add command `maint internal-warning'.
1492
1493 * defs.h (internal_warning, internal_vwarning): Declare.
1494 * utils.c (struct internal_problem): Define.
1495 (internal_vproblem): New function.
1496 (internal_warning): New function.
1497 (internal_vwarning): New function.
1498 (internal_warning_problem, internal_error_problem): New variables.
1499 (internal_verror): Just call internal_vproblem.
1500
1501 2002-09-18 Michael Snyder <msnyder@redhat.com>
1502
1503 * objc-lang.c: New file, support for Objective-C.
1504 Preliminary check-in, not yet integrated into gdb.
1505 * objc-lang.h: New file.
1506 * objc-exp.y: New file.
1507
1508 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1509
1510 * infrun.c (signal_stop_update): Convert definition to ISO C.
1511 (signal_print_update): Ditto.
1512 (signal_pass_update): Ditto.
1513 * inflow.c (terminal_save_ours): Ditto.
1514
1515 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1516 comments.
1517
1518 * config/djgpp/fnchange.lst: Handle name clashes between
1519 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1520 bfd/coff-tic80.c.
1521
1522 * i386-linux-tdep.h: Fix tipo.
1523
1524 2002-09-18 Adam Fedor <fedor@gnu.org>
1525
1526 * MAINTAINERS: Add myself to the Write After Approval list.
1527
1528 2002-09-18 Jim Blandy <jimb@redhat.com>
1529
1530 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1531 texthigh and textlow to reader-specific structs caused
1532 objfile_relocate to miss them. This is fixable, but the work that
1533 the change was supposed to prepare GDB for never got done anyway.
1534
1535 2002-09-18 David Carlton <carlton@math.stanford.edu>
1536
1537 * MAINTAINERS: Alphabetize Write After Approval list.
1538
1539 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1540
1541 Fix PR gdb/709
1542 * values.c (value_static_field): Call read_var_value.
1543
1544 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1545
1546 * valops.c (hand_function_call): Align the initial stack pointer
1547 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1548 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1549 return value.
1550 * mips-tdep.c (mips_frame_align): New function.
1551 (mips_gdbarch_init): Set frame_align.
1552 * gdbarch.sh (FRAME_ALIGN): New method.
1553 * gdbarch.h, gdbarch.c: Re-generate.
1554
1555 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1556
1557 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1558 registers.
1559
1560 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1561
1562 * NEWS: Mention that MIPS $fp behavior changed.
1563 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1564 reference to FP_REGNUM.
1565 (mipsnbsd_cannot_store_register): Ditto.
1566 * mips-linux-nat.c: Update copyright.
1567 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1568 (mips_linux_cannot_store_register): Ditto.
1569 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1570 * config/mips/tm-mips.h: Update copyright.
1571 (FP_REGNUM): Delete macro.
1572 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1573 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1574 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1575 (mips_r3041_reg_names, mips_r3051_reg_names)
1576 (mips_r3081_reg_names): Replace "fp" with "".
1577 Fix PR gdb/480.
1578
1579 2002-09-17 Theodore A. Roth <troth@verinet.com>
1580
1581 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1582 generic_read_register_dummy() (PR gdb/703).
1583 (avr_push_return_address): #if 0 out unused vars.
1584 (avr_gdbarch_init): Enable use of avr_push_return_address().
1585
1586 2002-09-17 Michael Snyder <msnyder@redhat.com>
1587
1588 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1589 RTE will take care of it.
1590
1591 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1592
1593 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1594 invalid, return SP_REGNUM.
1595
1596 2002-09-17 Michael Snyder <msnyder@redhat.com>
1597
1598 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1599 point registers without sign extension.
1600
1601 2002-09-17 Andrew Cagney <cagney@redhat.com>
1602
1603 * blockframe.c (deprecated_read_register_dummy): Rename
1604 generic_read_register_dummy.
1605 * frame.c (frame_unwind_signed_register): New function.
1606 (frame_unwind_unsigned_register): New function.
1607 * frame.h (frame_unwind_signed_register): Declare.
1608 (frame_unwind_unsigned_register): Declare.
1609 (deprecated_read_register_dummy): Rename
1610 generic_read_register_dummy.
1611
1612 * h8300-tdep.c (h8300_frame_chain): Update.
1613 (h8300_frame_saved_pc): Update.
1614 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1615 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1616 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1617 (s390_frame_chain): Update.
1618 * v850-tdep.c (v850_find_callers_reg): Update.
1619 (v850_frame_saved_pc): Update.
1620 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1621 (m32r_find_callers_reg): Update.
1622 (m32r_frame_saved_pc): Update.
1623 * sh-tdep.c (sh_find_callers_reg): Update.
1624 (sh64_get_saved_pr): Update.
1625 (sh_init_extra_frame_info): Update.
1626 (sh_init_extra_frame_info): Update.
1627 (sh64_init_extra_frame_info): Update.
1628 (sh64_init_extra_frame_info): Update.
1629 * mcore-tdep.c (mcore_find_callers_reg): Update.
1630 (mcore_frame_saved_pc): Update.
1631 (mcore_init_extra_frame_info): Update.
1632 * i386-tdep.c (i386_frame_saved_pc): Update.
1633 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1634 (ia64_init_extra_frame_info): Update.
1635 (ia64_init_extra_frame_info): Update.
1636 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1637 * cris-tdep.c (cris_init_extra_frame_info): Update.
1638 * avr-tdep.c (avr_frame_chain): Update.
1639 (avr_init_extra_frame_info): Update.
1640 (avr_frame_saved_pc): Update.
1641 * arm-tdep.c (arm_find_callers_reg): Update.
1642 (arm_init_extra_frame_info): Update.
1643 (arm_frame_saved_pc): Update.
1644
1645 2002-09-17 Tom Tromey <tromey@redhat.com>
1646
1647 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1648 is "'".
1649
1650 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1651
1652 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1653 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1654 NEXT_PROLOGUE_INSN.
1655 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1656 NEXT_PROLOGUE_INSN.
1657
1658 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1659
1660 * osfsolib.c: Remove file, replaced by solib-osf.c.
1661 * Makefile.in: Remove compilation rules for osfsolib.c.
1662
1663 2002-09-16 David Carlton <carlton@math.stanford.edu>
1664
1665 * cp-valprint.c (cp_print_class_method): Correct args to
1666 check_stub_method_group.
1667
1668 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1669
1670 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1671 `set architecture'. Unify naming convention of functions.
1672 (h8300_skip_prologue): Improve prologue analysis.
1673 (h8300_push_arguments): Rewritten to more closely match GCC's
1674 bizarre argument-passing behavior, along with the comment describing
1675 said behavior.
1676 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1677 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1678 sim, remote-e7000.c, remote-hms.c and remote.c
1679
1680 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1681
1682 * i386-tdep.c (gdb_print_insn_i386): Removed.
1683 (i386_print_insn): New function.
1684 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1685 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1686 tm_print_insn_info.
1687
1688 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1689
1690 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1691 zero.
1692
1693 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1694
1695 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1696 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1697 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1698
1699 2002-09-13 Christopher Faylor <cgf@redhat.com>
1700
1701 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1702
1703 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1704
1705 * gdbtypes.c (check_stub_method): Make static.
1706 (check_stub_method_group): New function.
1707 * gdbtypes.h: Update prototypes.
1708 * cp-support.c: New file.
1709 * cp-support.h: New file.
1710
1711 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1712 (update_method_name_from_physname): New function.
1713 (read_member_functions): Correct method names for operators
1714 and v3 constructors/destructors. Separate v2 constructors and
1715 destructors.
1716 * Makefile.in (stabsread.o): Update dependencies.
1717 (SFILES): Add cp-support.c.
1718 (COMMON_OBS): Add cp-support.o.
1719 (cp_support_h, cp-support.o): Add.
1720
1721 * cp-valprint.c (cp_print_class_method): Call
1722 check_stub_method_group instead of check_stub_method. Remove
1723 extraneous QUITs.
1724 * p-valprint.c (pascal_object_print_class_method): Likewise.
1725 * valops.c (search_struct_method): Likewise.
1726 (find_method_list, value_struct_elt_for_reference): Likewise.
1727
1728 2002-09-13 Andrew Cagney <cagney@redhat.com>
1729
1730 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1731 * gdbarch.h, gdbarch.c: Regenerate.
1732
1733 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1734
1735 * frame.c (find_saved_register): Delete function.
1736 * frame.h (find_saved_register): Delete declaration.
1737 Fix PR gdb/631.
1738
1739 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1740
1741 * mips-tdep.c (read_next_frame_reg): Re-hack using
1742 frame_register_unwind.
1743
1744 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1745
1746 * mips-tdep.c (mips_get_saved_register): Re-hack using
1747 frame_register_unwind.
1748
1749 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1750
1751 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1752 vector. Will be useful for Interix.
1753 * gdbarch.h, gdbarch.c: Regenerate.
1754
1755 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1756 name of the malloc function by NAME_OF_MALLOC.
1757
1758 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1759
1760 * value.h (find_function_in_inferior): Add const keyword to
1761 one of the parameters. Allows us to invoke this function with
1762 a const char *.
1763 * valops.c (find_function_in_inferior): Likewise.
1764
1765 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1766
1767 * exec.c (xfer_memory): Fix compilation warning with old versions
1768 of GCC.
1769 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1770
1771 2002-09-12 David Carlton <carlton@math.stanford.edu>
1772
1773 * symtab.h: Run through gdb_indent.h.
1774 Add 2002 to Copyright year list.
1775
1776 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1777
1778 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1779 mach constants.
1780 * MAINTAINERS: Add myself to write after approval list.
1781
1782 2002-09-11 J. Brobecker <brobecker@gnat.com>
1783
1784 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1785
1786 2002-09-11 J. Brobecker <brobecker@gnat.com>
1787
1788 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1789 Interix.
1790
1791 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1792
1793 * procfs.c (do_detach): Clear current signal, not just fault.
1794 Corrects problem with breakpoint trap signal leaking to detached
1795 process on Tru64.
1796
1797 2002-09-10 Michael Snyder <msnyder@redhat.com>
1798
1799 * buildsym.c (finish_block): Protect against null pointer.
1800
1801 2002-09-10 Andrew Cagney <cagney@redhat.com>
1802
1803 * infcmd.c (default_print_registers_info): Send all output to
1804 ``file'' instead of ``gdb_stdout''.
1805
1806 2002-09-10 Michael Snyder <msnyder@redhat.com>
1807
1808 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1809 LONGEST, and use signed register read (addresses are sign-
1810 extended for mips).
1811
1812 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1813
1814 * event-loop.c (gdb_do_one_event): Make public.
1815 * event-loop.h (gdb_do_one_event): Declare.
1816
1817 2002-09-10 Jeff Law <law@redhat.com>
1818
1819 * infttrace.c (child_resume): Simplify and rework to avoid
1820 TT_PROC_CONTINUE.
1821
1822 2002-09-09 Fred Fish <fnf@intrinsity.com>
1823
1824 * printcmd.c (print_scalar_formatted): "len" is the number of
1825 target bytes, NOT the number of target bits.
1826
1827 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1828
1829 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1830 * top.c (init_main): Set rl_terminal_name.
1831
1832 2002-09-08 Aidan Skinner <aidan@velvet.net>
1833
1834 * ada-lang.c (ada_array_bound, ada_type_match,
1835 _initialize_ada_language): Fix K&R definitions.
1836 * ada-tasks.c (get_current_task): Fix K&R definitions.
1837 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1838
1839 2002-09-07 Christopher Faylor <cgf@redhat.com>
1840
1841 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1842 Add XP.
1843
1844 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1845
1846 * i386-tdep.c (i386_register_virtual_type,
1847 i386_register_convertible, i386_register_convert_to_virtual,
1848 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1849 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1850 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1851 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1852 Don't set push_arguments twice.
1853
1854 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1855 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1856 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1857 sigtramp_end to NULL.
1858 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1859 defines.
1860 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1861
1862 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1863 whitespace.
1864
1865 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1866 * gdbarch.h, gdbarch.c: Re-generate.
1867 * blockframe.c (find_pc_sect_partial_function): Convert to use
1868 SIGTRAMP_START_P predicate.
1869
1870 2002-09-05 Michael Snyder <msnyder@redhat.com>
1871
1872 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1873 generic_dummy_frame method and old method. Also distinguish
1874 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1875 (arm_extract_return_value): Use new regcache method.
1876
1877 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1878 adjustment that doesn't conform to the ABI.
1879 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1880 saved regcache, not from current regcache.
1881
1882 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1883
1884 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1885 * README: Update.
1886
1887 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1888
1889 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1890 if arm_apcs_32 is false.
1891
1892 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1893
1894 GDB 5.3 branch created.
1895
1896 2002-09-03 Theodore A. Roth <troth@verinet.com>
1897
1898 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1899 generic_unwind_get_saved_register.
1900
1901 2002-09-03 David Carlton <carlton@math.stanford.edu>
1902
1903 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1904 argument (PR gdb/653). Update call to smash_to_method_type.
1905 (read_structure_scope): Update call to dwarf2_add_member_fn.
1906
1907 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1908
1909 * x86-64-linux-tdep.c: Include gdb_string.h
1910 * x86-64-linux-nat.c: Ditto.
1911
1912 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1913
1914 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1915 when YYDEBUG is set to 1.
1916 * c-exp.y: Likewise.
1917 * f-exp.y: Likewise.
1918 * jv-exp.y: Likewise.
1919 * m2-exp.y: Likewise.
1920 * p-exp.y: Likewise.
1921
1922 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1923
1924 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1925 dependency list.
1926 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1927 solib_svr4_fetch_link_map_offsets to
1928 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1929 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1930 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1931 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1932 solib-svr4.o, and solib-legacy.o.
1933 * config/i386/tm-nbsd.h: Include solib.h.
1934
1935 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1936
1937 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1938 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1939 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1940 comment noting that this needs its own target configuration.
1941 * config/i386/nbsd.mt: New file.
1942 * config/i386/nbsdaout.mt: Remove.
1943 * config/i386/nbsdelf.mt: Ditto.
1944 * config/i386/tm-nbsdaout.h: Ditto.
1945
1946 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1947
1948 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1949 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1950 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1951 tdep->sigtramp_end.
1952 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1953 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1954 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1955
1956 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1957
1958 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1959 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1960 * i386-tdep.h (i386bsd_init_abi): New prototype.
1961 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1962 function declaration.
1963 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1964 for NetBSD-a.out or NetBSD-ELF.
1965 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1966 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1967 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1968 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1969 and nbsd-tdep.h.
1970 (i386nbsd_pc_in_sigtramp): New function.
1971 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1972 i386nbsd_pc_in_sigtramp.
1973 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1974 and i386nbsdelf_init_abi OS ABI handlers.
1975 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1976 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1977
1978 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1979
1980 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1981 registers if the target really has them.
1982
1983 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1984
1985 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1986 than nbsd-tdep.h.
1987
1988 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1989
1990 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1991 list.
1992 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1993 (alphanbsd_skip_sigtramp_frame): New functions.
1994 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1995 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1996 to alphanbsd_sigcontext_addr.
1997
1998 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1999
2000 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2001 list.
2002 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2003 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2004 nbsd_pc_in_sigtramp.
2005 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2006 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2007 * nbsd-tdep.c: Include gdb_string.h.
2008 (nbsd_pc_in_sigtramp): New function.
2009 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2010 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2011 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2012 ppcnbsd_pc_in_sigtramp.
2013 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2014 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2015 shnbsd_pc_in_sigtramp.
2016 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2017 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2018 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2019
2020 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2021
2022 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2023 watchpoints to NULL.
2024 (insert_breakpoints): set val field of watchpoints if NULL.
2025
2026
2027 2002-08-29 Jim Blandy <jimb@redhat.com>
2028
2029 * symtab.c (lookup_symbol_aux): In the cases where we find a
2030 minimal symbol of an appropriate name and use its address to
2031 select a symtab to read and search, use `name' (as passed to us)
2032 as the demangled name when searching the symtab's global and
2033 static blocks, not the minsym's name.
2034
2035 2002-08-29 Keith Seitz <keiths@redhat.com>
2036
2037 * stack.c (print_frame_info_base): Always set current_source_symtab
2038 and current_source_line.
2039
2040 2002-08-29 Donn Terry <donnte@microsoft.com>
2041
2042 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2043
2044 2002-08-28 Keith Seitz <keiths@redhat.com>
2045
2046 * stack.c (select_frame): Add FIXME concerning selected-frame
2047 events.
2048 (select_frame_command): Send selected-frame-level-changed
2049 event notification, but only if the level actually changed.
2050 (up_silently_base): Add selected-frame-level-changed event
2051 notification.
2052 (down_silently_base): Likewise.
2053
2054 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2055
2056 * Makefile.in: Update dependencies for all gdb/*.c files.
2057
2058 2002-08-27 Tom Tromey <tromey@redhat.com>
2059
2060 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2061 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2062 Update dependencies.
2063 * i387-tdep.c: Include gdb_string.h.
2064 * osabi.c: Likewise.
2065 * i386-linux-nat.c: Likewise.
2066 * lin-lwp.c: Likewise.
2067 * ax-gdb.c: Likewise.
2068 * signals/signals.c: Likewise.
2069 * jv-valprint.c: Likewise.
2070 * p-lang.c: Likewise.
2071 * c-valprint.c: Likewise.
2072 * cp-abi.c: Likewise.
2073
2074 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2075
2076 * cli/cli-script.h (copy_command_lines): Export.
2077 * breakpoint.c: Include cli/cli-script.h.
2078 * Makefile.in (breakpoint.o): Update dependencies.
2079
2080 2002-08-26 Michael Snyder <msnyder@redhat.com>
2081
2082 * breakpoint.c (insert_breakpoints): Protect all references
2083 to 'process_warning'. Shorten long lines.
2084
2085 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2086
2087 * cli/cli-script.c (copy_command_lines): New function.
2088 * defs.h (copy_command_lines): Export.
2089 * testsuite/gdb.base/commands.exp: New tests for commands
2090 attached to a temporary breakpoint, and for commands that
2091 delete the breakpoint they are attached to.
2092
2093 2002-08-26 Michael Snyder <msnyder@redhat.com>
2094
2095 * breakpoint.c (bpstat_stop_status): Instead of copying the
2096 pointer to the breakpoint commands struct, make a new copy
2097 of the struct and point to that.
2098 (bpstat_clear): Free the commands struct.
2099 (bpstat_clear_actions): Free the commands struct.
2100 (bpstat_do_actions): Free the command actions. Also execute
2101 the local cleanups, instead of deleting them.
2102 (delete_breakpoint): Leave the commands field of the bpstat
2103 chain alone -- it will be freed later.
2104
2105 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2106
2107 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2108 deleted in 2002-08-20 commit. This function is still used by
2109 ppc-linux-nat.c.
2110
2111 2002-08-26 Keith Seitz <keiths@redhat.com>
2112
2113 * gdb-events.sh: Add selected-frame-level-changed event.
2114 * gdb-events.c: Regenerated.
2115 * gdb-events.h: Regenerated.
2116
2117 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2118
2119 Fix PR gdb/393:
2120 * inflow.c (terminal_save_ours): New function to save terminal
2121 settings.
2122 * inferior.h (terminal_save_ours): Declare.
2123 * target.c (debug_to_terminal_save_ours): New function.
2124 (cleanup_target): Defaults to_terminal_save_ours.
2125 (update_current_target): Inherit to_terminal_save_ours.
2126 (setup_target_debug): Set to_terminal_save_ours.
2127 * target.h (target_terminal_save_ours): New to save terminal settings.
2128 (target_ops): New member to_terminal_save_ours.
2129 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2130 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2131 * inftarg.c (init_child_ops): Likewise.
2132 * m3-nat.c (init_m3_ops): Likewise.
2133 * procfs.c (init_procfs_ops): Likewise.
2134 * wince.c (init_child_ops): Likewise.
2135 * win32-nat.c (init_child_ops): Likewise.
2136 * sol-thread.c (init_sol_thread_ops): Likewise.
2137
2138 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2139
2140 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2141 use regcache_* functions.
2142 (i386_gdbarch_init): Set store_return_value instead of
2143 deprecated_store_return_value.
2144
2145 * regcache.c (regcache_raw_write_signed,
2146 regcache_raw_write_unsigned): New functions.
2147 * regcache.h (regcache_raw_write_signed,
2148 regcache_raw_write_unsigned): New prototypes.
2149
2150 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2151
2152 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2153 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2154 source file dependencies. Cleanup corresponding generator rules.
2155
2156 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2157
2158 * regcache.h (register_offset_hack): Declare.
2159 (regcache_cooked_read_using_offset_hack): Declare.
2160 (regcache_cooked_write_using_offset_hack): Declare.
2161
2162 * regcache.c (register_offset_hack): New function.
2163 (regcache_cooked_read_using_offset_hack): New function.
2164 (regcache_cooked_write_using_offset_hack): New function.
2165 (regcache_dump): Check that the registers, according to their
2166 offset, are packed hard against each other.
2167 (cooked_xfer_using_offset_hack): New function.
2168
2169 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2170
2171 * regcache.c (struct regcache_descr): Add field register_type.
2172 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2173 in as a parameter
2174 (init_regcache_descr): Initialize register_type. Pass the descr
2175 to init_legacy_regcache_descr. Use register_type instead of
2176 REGISTER_VIRTUAL_TYPE.
2177 (register_type): New function.
2178 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2179 * regcache.h (register_type): Declare.
2180
2181 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2182
2183 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2184 instead of deprecated_store_return_value. Fix fallout from
2185 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2186
2187 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2188
2189 * regcache.c (max_register_size): New function.
2190 (init_legacy_regcache_descr): Ensure that max_register_size is
2191 large enough for REGISTER_VIRTUAL_SIZE.
2192 * regcache.h (max_register_size): Declare.
2193
2194 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2195
2196 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2197 store_return_value.
2198 (e500_extract_return_value): Change type of valbuf pointer to
2199 void.
2200
2201 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2202
2203 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2204 workaround.
2205
2206 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2207 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2208 long long) to prevent compiler warning on 64-bit systems.
2209
2210 2002-08-23 Andrew Cagney <cagney@redhat.com>
2211
2212 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2213 (DEPRECATED_STORE_RETURN_VALUE): New method.
2214 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2215 * gdbarch.h, gdbarch.c: Re-generate.
2216
2217 * values.c (set_return_value): Pass current_regcache to
2218 STORE_RETURN_VALUE.
2219 * arch-utils.h (legacy_store_return_value): Declare.
2220 * arch-utils.c (legacy_store_return_value): New function.
2221 (legacy_extract_return_value): Update parameters.
2222
2223 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2224 STORE_RETURN_VALUE.
2225 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2226 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2227 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2228 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2229 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2230 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2231 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2232 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2233 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2234 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2235
2236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2237 * i386-tdep.c (i386_extract_return_value): Update.
2238 * arch-utils.c (legacy_extract_return_value): Update.
2239 * frv-tdep.c (frv_gdbarch_init): Update.
2240 * cris-tdep.c (cris_gdbarch_init): Update.
2241 * d10v-tdep.c (d10v_gdbarch_init): Update.
2242 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2243 * m68k-tdep.c (m68k_gdbarch_init): Update.
2244 * mcore-tdep.c (mcore_gdbarch_init): Update.
2245 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2246 * s390-tdep.c (s390_gdbarch_init): Update.
2247 * sparc-tdep.c (sparc_gdbarch_init): Update.
2248 * sh-tdep.c (sh_gdbarch_init): Update.
2249 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2250 * v850-tdep.c (v850_gdbarch_init): Update.
2251 * avr-tdep.c (avr_gdbarch_init): Update.
2252 * ia64-tdep.c (ia64_gdbarch_init): Update.
2253 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2254 * vax-tdep.c (vax_gdbarch_init): Update.
2255 * alpha-tdep.c (alpha_gdbarch_init): Update.
2256 * arm-tdep.c (arm_gdbarch_init): Update.
2257 * mips-tdep.c (mips_gdbarch_init): Update.
2258 * i386-tdep.c (i386_gdbarch_init): Update.
2259
2260 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2261
2262 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2263 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2264
2265 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2266
2267 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2268 problems.
2269
2270 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2271
2272 * infrun.c (handle_inferior_event): Move a comment outside of a
2273 function call, in order to avoid indent reformatting this part
2274 of the code in an unreadable way.
2275
2276 2002-08-23 Grace Sainsbury <graces@redhat.com>
2277
2278 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2279 when breakpoints fail. Move general breakpoint error messages to
2280 insert_breakpoints.
2281 * breakpoint.c (insert_breakpoints): Change warnings when
2282 breakpoints are nto inserted to specify the type. Remove call to
2283 memory_error when hardware breakpoints can't be inserted. Remove
2284 multiple calls to warning so all messages are sent to the user at
2285 once.
2286 (delete_breakpoints): Make insert error messsages more explicit.
2287
2288 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2289
2290 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2291 gdbserver/ChangeLog.
2292
2293 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2294
2295 * i386-tdep.c: Include "objfiles.h".
2296 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2297 skip_trampoline_code.
2298 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2299 (CPLUS_MARKER): Define to '.'.
2300
2301 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2302 member.
2303 (linux_corefile_thread_callback): Increase args->num_notes.
2304 (linux_make_note_section): Initialize thread_args.num_notes, and
2305 use it to determine whether notes for any threads were created.
2306
2307 2002-08-23 Donn Terry <donnte@microsoft.com>
2308
2309 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2310 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2311 and PCUNKILL.
2312 (write_with_trace): Conditionalize out the switch branch handling
2313 PCSHOLD if the corresponding macro is not defined. Likewise for
2314 PRSABORT and PRSTOP.
2315 This change will be needed by the Interix port.
2316
2317 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2318
2319 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2320 write_register wherever possible instead of manipulating the
2321 register bytes directly.
2322 Assign VALUE_CONTENTS to a variable and use that.
2323 The GPR numbers are now dependent on the architecture.
2324
2325 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2326
2327 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2328 ev_offset fields.
2329 (skip_prologue): Add support for BookE/e500 instructions.
2330 (e500_extract_return_value): New function.
2331 (frame_get_saved_regs): Add support for saving ev registers and
2332 pseudo gpr's.
2333 (e500_store_return_value): New function.
2334 (rs6000_gdbarch_init): Move up default intializations of
2335 deprecated_extract_return_value and store_return_value. Overwrite
2336 init of store_return_value with e500 specific version.
2337 Set extract_return_value for e500.
2338
2339 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2340
2341 * blockframe.c (generic_call_dummy_register_unwind): Use
2342 regcache_cooked_read to catch cases in which the variable is
2343 stored in a pseudo register.
2344
2345 2002-08-22 Andrew Cagney <cagney@redhat.com>
2346
2347 * NEWS: Mention that the i960 has been made obsolete.
2348 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2349 i960-tdep.c
2350 (remote-nrom.o): Obsolete target.
2351 (remote-nindy.o, i960-tdep.o): Ditto.
2352 * remote-nrom.c: Make file obsolete.
2353 * remote-nindy.c, remote-vx960.c: Ditto.
2354 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2355 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2356 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2357 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2358 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2359 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2360 i960-*-vxworks* obsolete.
2361 * MAINTAINERS: Note that the i960 is obsolete.
2362
2363 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2364
2365 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2366 detach to allow reinitialization.
2367
2368 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2369
2370 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2371 attempt).
2372
2373 2002-08-22 Jim Blandy <jimb@redhat.com>
2374
2375 * coffread.c (coff_symfile_read): Don't try to read the line
2376 number table from disk if the image file doesn't have a symbol
2377 table; we'll never actually look at the info anyway, and Windows
2378 ships DLL's with bogus file offsets for the line number data.
2379
2380 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2381
2382 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2383 an e500 executable.
2384
2385 2002-08-21 Michael Snyder <msnyder@redhat.com>
2386
2387 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2388 (MSYMBOL_SIZE): Replace macro with function.
2389 (DEFAULT_MIPS_TYPE): Delete unused macro.
2390 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2391 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2392
2393 2002-08-21 Jim Blandy <jimb@redhat.com>
2394
2395 * valops.c (value_cast): Simplify and correct logic for doing a
2396 static cast from a pointer to a base class to a pointer to a
2397 derived class.
2398
2399 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2400
2401 * infcmd.c (default_print_registers_info): Replace
2402 do_registers_info.
2403 (registers_info): Use gdbarch_print_registers_info instead of
2404 DO_REGISTERS_INFO.
2405 * inferior.h (default_print_registers_info): Replace
2406 do_registers_info.
2407 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2408 (DO_REGISTERS_INFO): Change to a predicate function.
2409 * gdbarch.h, gdbarch.c: Regenerate.
2410
2411 2002-08-21 Keith Seitz <keiths@redhat.com>
2412
2413 * gdb-events.sh: Add target-changed event.
2414 * gdb-events.c: Regenerated.
2415 * gdb-events.c: Regenerated.
2416 * valops.c (value_assign): Add target-changed event notification
2417 to inlval_register, lval_memory, and lval_reg_frame_relative.
2418
2419 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2420
2421 * NEWS: Add an entry regarding the improvement of the next/step
2422 operation on Alpha Tru64 multi-processor machines.
2423
2424 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2425
2426 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2427 directores.
2428 * Makefile.in: Update all _h macro definitions.
2429 * Makefile.in (install-gdbtk): Move to install section.
2430 (rdi-share/libangsd.a): Move to end of file.
2431
2432 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2433
2434 * frame.c (frame_register_unwind): When a register, set addrp to
2435 the register's byte.
2436
2437 2002-08-20 Michael Snyder <msnyder@redhat.com>
2438
2439 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2440 used locally, so move them from the target machine header to here.
2441 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2442 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2443 Make static.
2444 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2445
2446 2002-08-20 Andrew Cagney <cagney@redhat.com>
2447
2448 * NEWS: Mention that the Apollo line was made obsolete.
2449 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2450 m68*-hp-hpux* obsolete.
2451 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2452 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2453 * buildsym.c (make_blockvector): Make static.
2454 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2455 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2456 (ALLDEPFILES): Remove dstread.c.
2457 (dstread.o): Obsolete make rule.
2458 * dstread.c: Makefile obsolete.
2459 * dst.h: Ditto.
2460 * config/m68k/hp300hpux.mt: Ditto.
2461 * config/m68k/hp300hpux.mh: Ditto.
2462 * config/m68k/hp300bsd.mt: Ditto.
2463 * config/m68k/hp300bsd.mh: Ditto.
2464 * config/m68k/apollo68b.mt: Ditto.
2465 * config/m68k/apollo68v.mh: Ditto.
2466 * config/m68k/apollo68b.mh: Ditto.
2467
2468 2002-08-20 Michael Snyder <msnyder@redhat.com>
2469
2470 * mips-tdep.c (mips_in_return_stub): Make static.
2471 (mips_gdbarch_init): Set in_solib_return_trampoline.
2472 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2473
2474 2002-08-20 Michael Snyder <msnyder@redhat.com>
2475
2476 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2477 * gdbarch.c, gdbarch.h: Regenerate.
2478 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2479 Add.
2480 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2481
2482 2002-08-20 Michael Snyder <msnyder@redhat.com>
2483
2484 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2485 (mips_gdbarch_init): Set skip_trampoline_code,
2486 in_solib_call_trampoline.
2487 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2488 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2489
2490 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2491
2492 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2493
2494 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2495 vector type for ev registers.
2496 (e500_pseudo_register_read): New function.
2497 (e500_pseudo_register_write): New function.
2498 (e500_dwarf2_reg_to_regnum): New function.
2499 (PPC_UISA_NOFP_SPRS): New macro.
2500 (PPC_EV_REGS): New macro.
2501 (PPC_GPRS_PSEUDO_REGS): New macro.
2502 (registers_e500): New register set for e500.
2503 (variants): Add e500 variant.
2504 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2505 before setting architectural dependent variations. Initialize ev
2506 registers numbers. Add case for e500 architecture. Set the
2507 number of pseudo registers.
2508
2509 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2510
2511 * rs6000-tdep.c: Clean up comments.
2512
2513 2002-08-20 Andrew Cagney <cagney@redhat.com>
2514
2515 * h8300-tdep.c: Re-indent file.
2516
2517 2002-08-20 Jim Blandy <jimb@redhat.com>
2518
2519 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2520 default for this.
2521
2522 2002-08-20 Keith Seitz <keiths@redhat.com>
2523
2524 * breakpoints.c (watch_command_1): Use internal breakpoint
2525 when setting a watchpoint_scope breakpoint.
2526
2527 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2528
2529 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2530 (build_builtin_type_vec64i): Ditto.
2531 (build_builtin_type_vec128): Ditto.
2532 (build_builtin_type_vec128i): Ditto.
2533
2534 2002-08-19 Michael Snyder <msnyder@redhat.com>
2535
2536 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2537 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2538 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2539 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2540 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2541 CALL_DUMMY_ADDRESS): Delete.
2542 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2543 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2544 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2545 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2546 push_return_address.
2547 (mips_register_raw_size, mips_eabi_use_struct_convention,
2548 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2549 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2550 mips_init_extra_frame_info, mips_eabi_push_arguments,
2551 mips_n32n64_push_arguments, mips_push_return_address,
2552 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2553 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2554
2555 2002-08-19 Michael Snyder <msnyder@redhat.com>
2556
2557 * mips-tdep.c (mips_frame_num_args): New function.
2558 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2559 frame_saved_pc, frame_args_address, frame_locals_address,
2560 frame_num_args, and frame_args_skip.
2561 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2562 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2563 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2564 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2565
2566 2002-08-20 Michael Snyder <msnyder@redhat.com>
2567
2568 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2569 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2570 * mips-tdep.c (mips_store_struct_return): New function.
2571 (mips_extract_struct_value_address): New function.
2572 (mips_gdbarch_init): Set store_struct_return and
2573 extract_struct_value_address.
2574
2575 2002-08-20 David Carlton <carlton@math.stanford.edu>
2576
2577 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2578 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2579 (read_file_scope): Check that line_header is nonzero before
2580 decoding macro information.
2581
2582 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2583
2584 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2585 flag the general-purpose registers as floating-point on targets
2586 that don't support the floating-point registers.
2587
2588 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2589
2590 * rs6000-tdep.c (altivec_register_p): Delete.
2591 (rs6000_do_altivec_registers): Delete.
2592 (rs6000_altivec_registers_info): Delete.
2593 (rs6000_do_registers_info): Delete.
2594 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2595 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2596
2597 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2598
2599 * infcmd.c (do_registers_info): Print vector registers in hex
2600 format only.
2601 (print_vector_info): Check that printing registers
2602 makes sense.
2603 (print_float_info): Ditto.
2604
2605 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2606
2607 * mips-tdep.c (mips_gdbarch_init): Update.
2608 (mips_o32_extract_return_value): Rewrite.
2609 (mips_o32_store_return_value): Rewrite.
2610 (mips_o32_xfer_return_value): New function.
2611 (mips_xfer_register): Tweak debug print message. Allow for
2612 buf_offset when dumping the value transfered.
2613
2614 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2615
2616 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2617 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2618 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2619 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2620 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2621
2622 2002-08-14 Michael Snyder <msnyder@redhat.com>
2623
2624 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2625
2626 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2627
2628 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2629 register.
2630 (P): New macro to define a register as a pseudo register.
2631 (R, R4, R8, R16, FR32, R64, R0): Updated.
2632 (struct variant): Add new fields for number of pseudo registers
2633 and number of total registers.
2634 (tot_num_registers): New macro replacing....
2635 (num_registers): ...deleted macro.
2636 (num_registers): New function.
2637 (num_pseudo_registers): New function.
2638 (variants): Update all variants to intialize new fields correctly.
2639 Postpone initialization of number of pseudo regs and real regs.
2640 (init_variants): New function.
2641 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2642 registers offsets.
2643
2644 2002-08-19 David Carlton <carlton@math.stanford.edu>
2645
2646 * valops.c (search_struct_field): Change error message to treat
2647 return value of 0 from value_static_field as meaning that field is
2648 optimized out.
2649 (value_struct_elt_for_reference): Ditto.
2650 * values.c (value_static_field): Treat an unresolved location the
2651 same as a nonexistent symbol. Fix PR gdb/635.
2652 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2653 enclosed. Fix PR gdb/574.
2654 * MAINTAINERS: Add self to Write After Approval list.
2655
2656 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2657
2658 * mips-tdep.c (mips_xfer_register): New function.
2659 (mips_n32n64_extract_return_value): Rewrite.
2660 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2661 instead of deprecated_extract_return_value.
2662
2663 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2664
2665 * rs6000-tdep.c (TDEP): Delete macro.
2666 (branch_dest): Replace use of TDEP macro with its body.
2667 (rs6000_pop_frame): Ditto.
2668 (rs6000_push_arguments): Ditto.
2669 (rs6000_skip_trampoline_code): Ditto.
2670 (rs6000_frame_saved_pc): Ditto.
2671 (rs6000_frame_chain): Ditto.
2672 (rs6000_register_name): Ditto.
2673 (rs6000_register_byte): Ditto.
2674 (rs6000_register_raw_size): Ditto.
2675 (rs6000_register_virtual_type): Ditto.
2676 (rs6000_register_convertible): Ditto.
2677 (rs6000_convert_from_func_ptr_addr): Ditto.
2678
2679 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2680
2681 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2682 conditionally.
2683 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2684 MIPS_LINUX_JB_ELEMENT_SIZE.
2685 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2686 for MAX_REGISTER_RAW_SIZE arrays.
2687 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2688 MIPS_LINUX_JB_ELEMENT_SIZE.
2689
2690 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2691
2692 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2693
2694 2002-08-19 Aidan Skinner <aidan@velvet.net>
2695
2696 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2697 ada-valprint.c ada-tasks.c.
2698 (YYFILES): Add ada-exp.y.
2699 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2700 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2701 (ada-exp.tab.o): New target.
2702
2703 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2704
2705 * regcache.c (regcache_xfer_part): New function.
2706 (regcache_raw_read_part): New function.
2707 (regcache_raw_write_part): New function.
2708 (regcache_cooked_read_part): New function.
2709 (regcache_cooked_write_part): New function.
2710 * regcache.h (regcache_raw_read_part): Declare.
2711 (regcache_raw_write_part): Declare.
2712 (regcache_cooked_read_part): Declare.
2713 (regcache_cooked_write_part): Declare.
2714
2715 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2716
2717 * remote.c (remote_open_1): Add async_p.
2718 (remote_async_open_1): Delete.
2719 (open_remote_target): Delete.
2720 (remote_open, extended_remote_open): Update calls to remote_open_1.
2721 (remote_async_open, extended_remote_async_open): Call
2722 remote_open_1 instead of remote_async_open_1.
2723
2724 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2725
2726 * blockframe.c: Fix a few coding standard violations.
2727
2728 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2729
2730 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2731 here from ...
2732 * config/i386/tm-i386sco5.h: ... here. File removed.
2733 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2734
2735 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2736 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2737 (TM_FILE): Set to tm-i386.h.
2738 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2739 * config/i386/tm-i386v.h: Remove file.
2740 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2741 instead of "i386/tm-i386v.h".
2742 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2743 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2744 "i386/tm-i386v.h".
2745 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2746 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2747 "i386/tm-i386.h".
2748
2749 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2750
2751 * config/i386/nm-i386v.h: Add protection against
2752 multiple-inclusion.
2753 (i386_register_u_addr): Remove prototype.
2754 (register_u_addr): New prototype.
2755 (REGISTER_U_ADDR): Redefine accordingly.
2756 * i386v-nat.c: Improve several comments.
2757 (i386_register_u_addr): Change signature and rename to
2758 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2759 ubase variable.
2760
2761 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2762
2763 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2764 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2765 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2766 deprecated_extract_return_value.
2767 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2768 rename mips_o32o64_push_arguments.
2769 (mips_gdbarch_init): Update.
2770 (mips_extract_return_value): Delete.
2771 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2772 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2773 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2774 (mips_n32n64_extract_return_value): Clone
2775 mips_extract_return_value.
2776 (mips_store_return_value): Delete.
2777 (mips_o32_store_return_value): Clone mips_store_return_value.
2778 (mips_o64_store_return_value): Clone mips_store_return_value.
2779 (mips_eabi_store_return_value): Clone mips_store_return_value.
2780 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2781
2782 2002-08-18 Aidan Skinner <aidan@velvet.net>
2783
2784 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2785 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2786
2787 2002-08-18 Aidan Skinner <aidan@velvet.net>
2788
2789 * ada-lang.c: Run through gdb_indent.sh.
2790 * ada-lang.h: Run through gdb_indent.sh.
2791 * ada-tasks.c: Run through gdb_indent.sh.
2792 * ada-typeprint.c: Run through gdb_indent.sh.
2793 * ada-valprint.c: Run through gdb_indent.sh.
2794
2795 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2796
2797 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2798 ABI.
2799
2800 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2801
2802 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2803
2804 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2805 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2806
2807 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2808 write_register_gen instead of write_register_bytes.
2809
2810 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2811 i[3456]-*-osf1mk* configurations have been made obsolete.
2812 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2813 i[3456]86-*-osf1mk* hosts obsolete.
2814 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2815 targets obsolete.
2816 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2817 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2818 config/i386/i386m3.mt, config/i386/nm-m3.h,
2819 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2820 config/i386/i386mk.mh, config/i386/i386mk.mt,
2821 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2822 obsolete.
2823 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2824 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2825 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2826
2827 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2828
2829 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2830 (hppa_value_returned_from_stack): Declare.
2831 (hppa_extract_return_value): Declare.
2832 * config/pa/hppa.mt: New file.
2833 * configure.tgt: Recognize hppa*-*-*.
2834 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2835
2836 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2837
2838 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2839 comment.
2840
2841 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2842
2843 * top.c (gdb_rl_operate_and_get_next): Make sure
2844 operate-and-get-next functions correctly even when the history
2845 list is completely filled.
2846
2847 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2848
2849 * MAINTAINERS (Target Instruction Set Architectures): Rename
2850 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2851 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2852 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2853 already listed under Host/Native.
2854
2855 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2856 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2857 mips*-*-*.
2858
2859 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2860
2861 * config/ia64/ia64.mt: New file.
2862 * config/alpha/alpha.mt: New file.
2863 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2864 ia64-linux-gnu. Mention that ia64-elf is broken.
2865 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2866
2867 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2868
2869 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2870 generic_func_frame_valid instead of func_frame_valid.
2871
2872 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2873
2874 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2875 procfs appears to be broken when debugging on multi-processor
2876 machines. So enable software single stepping in order to avoid
2877 using the procfs interface to do next/step operations, using
2878 internal breakpoints instead.
2879
2880 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2881 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2882 make this pc address equal to the value it would have if the
2883 system stepping capability was used. Also set a new flag used
2884 to ensure that we don't readjust the PC one more time later.
2885
2886 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2887 address by DECR_PC_AFTER_BREAK when software single step is
2888 in use for this architecture, as this has already been taken
2889 care of in handle_inferior_event().
2890
2891 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2892
2893 * infrun.c (handle_inferior_event): Minor reformatting, to make
2894 a rather long condition expression easier to read.
2895
2896 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2897
2898 * Makefile.in (gdbtk.o): Move to end of file.
2899 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2900 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2901 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2902 (gdbtk-wrapper.o, gdbres.o): Ditto.
2903
2904 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2905
2906 * Makefile.in (copying.o): Separate out compile rule.
2907 (hpux-thread.o, procfs.o, signals.o): Ditto.
2908 (v850ice.o, z8k-tdep.o): Ditto.
2909 (tui-file.o): Move to TUI section.
2910 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2911 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2912
2913 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2914
2915 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2916 skip_trampoline_code, for better namespace-proofing.
2917
2918 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2919
2920 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2921
2922 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2923
2924 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2925
2926 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2927 signal, check whether we hit a breakpoint before checking for a
2928 single step breakpoint. Otherwise, GDB fails to notice that a
2929 breakpoint has been hit when stepping onto a breakpoint.
2930
2931 2002-08-16 Keith Seitz <keiths@redhat.com>
2932
2933 * gdb-events.sh (clear_gdb_event_hooks): New function.
2934 * gdb-events.c: Regenerate.
2935 * gdb-events.h: Regenerate.
2936
2937 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2938
2939 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2940 not_a_sw_breakpoint.
2941 * breakpoint.h (bpstat_stop_status): Add parameter names.
2942
2943 2002-08-16 Grace Sainsbury <graces@redhat.com>
2944
2945 * remote.c (remote_insert_hw_breakpoint)
2946 (remote_remove_hw_breakpoint): Fix calculation of length field
2947 for Z-packet.
2948
2949 2002-08-15 Michael Snyder <msnyder@redhat.com>
2950
2951 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2952 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2953 (supply_fpregset): Ditto.
2954
2955 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2956 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2957 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2958 (TARGET_READ_SP): Delete.
2959 (DO_REGISTERS_INFO): Delete.
2960 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2961 Delete.
2962 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2963 from macros to functions.
2964
2965 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2966 (mips_register_convertible, mips_register_convert_to_virtual,
2967 mips_register_convert_to_raw): Make static.
2968 (mips_read_sp): New function.
2969 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2970 (mips_do_registers_info): Make static.
2971 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2972 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2973 (mips_register_convert_from_type, mips_register_convert_to_type):
2974 New functions.
2975 (mips_gdbarch_init): Set up function_start_offset,
2976 register_virtual_size, pc_in_sigtramp.
2977
2978 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2979
2980 * infcmd.c (vector_info): New function.
2981 (_initialize_infcmd): Add command "info vector".
2982 (print_vector_info): New function.
2983
2984 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2985 * gdbarch.h, gdbarch.c: Regenerate.
2986
2987 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2988
2989 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2990 ``print_all''. Only print vector registers when ``print_all''.
2991
2992 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2993
2994 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2995 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2996
2997 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2998 Add `args' parameter.
2999 * gdbarch.h, gdbarch.c: Regenerate.
3000
3001 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3002
3003 * infcmd.c (float_info): Call print_float_info.
3004 (print_float_info): New function. By default, print the
3005 floating-point registers.
3006
3007 * arch-utils.h (default_print_float_info): Delete declaration.
3008 * arch-utils.c (default_print_float_info): Delete function.
3009
3010 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3011
3012 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3013 out define.
3014
3015 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3016 FRAME.
3017
3018 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3019 * configure.host: Make i[3456]86-*-aix host obsolete.
3020 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3021 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3022 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3023 config/i386/xm-i386aix.h: Make files obsolete.
3024 * i386aix-nat.c: Make file obsolete.
3025 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3026 (i386aix-nat.o): Make target obsolete.
3027
3028 * config/i386/nm-gnu.h: Removed.
3029 * config/i386/nm-i386gnu.h: New file.
3030 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3031 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3032 Moved here from ...
3033 * config/i386/tm-i386gnu.h: ... here. Removed.
3034 * config/i386/xm-i386gnu.h: Removed.
3035 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3036 (NAT_FILE): Set to nm-i386gnu.h.
3037 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3038 * i386-tdep.c: New file.
3039 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3040 (i386gnu-tdep.o): Specify dependencies.
3041
3042 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3043
3044 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3045 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3046 Adjust a few comments to reflect reality a bit closer.
3047 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3048 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3049 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3050 target_insert_watchpoint, target_remove_watchpoint):
3051 Move defines to ...
3052 * config/i386/nm-i386sco5.h: ... here.
3053 (kernel_u_size): Add prototype. Improve a few comments and add
3054 protection against multiple inclusion.
3055
3056 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3057 out define.
3058
3059 * uw-thread.c (SP_ARG0): Define if not already defined.
3060 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3061
3062 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3063
3064 * config/i386/tm-i386.h: Don't include "regcache.h".
3065
3066 * i387-tdep.h (i387_print_float_info): New prototype.
3067 * i387-tdep.c (print_i387_value, print_i387_ext,
3068 print_i387_status_word, print_i387_control_word): Add `struct
3069 ui_file *' argument and use it for output.
3070 (i387_print_float_info): Renamed from i387_float_info. Add
3071 `struct gdbarch *' and `struct ui_file *' arguments and use the
3072 latter for output.
3073 * i386-tdep.c: Include "i387-tdep.h".
3074 (i386_gdbarch_init): Set print_float_info.
3075 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3076 (FLOAT_INFO): Remove define.
3077
3078 2002-08-13 Michael Snyder <msnyder@redhat.com>
3079
3080 * mips-tdep.c (mips_push_arguments): Rename to
3081 mips_eabi_push_arguments, and tune for EABI.
3082 (MIPS_REGS_HAVE_HOME_P): Delete.
3083 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3084 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3085 Delete references to mips_regs_have_home_p.
3086
3087 2002-08-14 Keith Seitz <keiths@redhat.com>
3088
3089 * Makefile.in (install-gdbtk): Create insight plugin directory.
3090 Install plugins.tcl file.
3091
3092 2002-08-14 Keith Seitz <keiths@redhat.com>
3093
3094 * configure.in: Move SUBDIRS to near top of the file so that
3095 --enable options may add things to it.
3096 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3097 * configure: Regenerate.
3098
3099 2002-08-13 Michael Snyder <msnyder@redhat.com>
3100
3101 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3102 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3103 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3104
3105 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3106
3107 * vax-tdep.c (vax_get_saved_register): Delete function.
3108 (vax_gdbarch_init): Update.
3109 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3110 (ns32k_gdbarch_init): Update.
3111 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3112 (alpha_gdbarch_init): Update.
3113
3114 2002-08-13 Andrew Cagney <cagney@redhat.com>
3115
3116 * regcache.c (init_regcache_descr): Overallocate the
3117 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3118 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3119 nr_raw_registers.
3120 (set_register_cached): Add range checking assertions. Use
3121 current_regcache.
3122
3123 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3124
3125 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3126 numbers for MMX registers.
3127
3128 2002-08-13 Andrew Cagney <cagney@redhat.com>
3129
3130 * i386-tdep.c (i386_gdbarch_init): Use
3131 generic_unwind_get_saved_register.
3132
3133 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3134
3135 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3136 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3137 target vector.
3138 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3139 Delete. Add comment regarding this now-deleted target method.
3140
3141 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3142
3143 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3144 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3145 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3146 real PC and the page number (if it's within the memory bank window).
3147 (m68hc11_pseudo_register_write): Likewise when saving.
3148 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3149 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3150 (m68hc11_register_raw_size): And use 32-bit for it.
3151 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3152 16K memory bank is used by the prog; also use the virtual pc.
3153
3154 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3155
3156 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3157 (m68hc11_gdbarch_init): Install it in gdbarch.
3158 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3159 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3160 (MSYMBOL_SIZE): New for documentation.
3161 (insn_return_kind): Enum to specify how a function returns.
3162 (frame_extra_info): Cleanup and record the return mode.
3163 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3164 register in address computation.
3165 (m68hc11_get_return_insn): New to obtain the return instruction used
3166 by the function.
3167 (m68hc11_frame_init_saved_regs): Take into account the return
3168 instruction used by the function for far and interrupt functions.
3169 (m68hc11_init_extra_frame_info): Take into account page register.
3170 (m68hc11_frame_args_address): Adjust according to the return mode.
3171 (show_regs): Print page register only when it's used.
3172
3173 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3174
3175 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3176 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3177 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3178 registers.
3179 (m68hc11_register_raw_size): Likewise.
3180
3181 2002-08-13 Andrew Cagney <cagney@redhat.com>
3182
3183 * i386-tdep.c (i386_register_name): Handle mmx registers.
3184 (mmx_regnum_p): New function.
3185 (i386_mmx_names): New array.
3186 (mmx_num_regs): New variable.
3187 (i386_pseudo_register_read): New function.
3188 (i386_pseudo_register_write): New function.
3189 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3190
3191 * regcache.c (regcache_raw_read_unsigned): New function.
3192 (regcache_raw_read_signed): New function.
3193 * regcache.h (regcache_raw_read_unsigned): Declare.
3194 (regcache_raw_read_signed): Declare.
3195
3196 2002-08-13 Andrew Cagney <cagney@redhat.com>
3197
3198 * regcache.c (regcache_raw_read_as_address): Delete function.
3199 (regcache_cooked_read_signed): New function.
3200 (regcache_cooked_read_unsigned): New function.
3201 * regcache.h (regcache_cooked_read_signed): Declare.
3202 (regcache_cooked_read_unsigned): Declare.
3203 (regcache_raw_read_as_address): Delete declaration.
3204
3205 * blockframe.c (generic_read_register_dummy): Use
3206 regcache_cooked_read_unsigned.
3207 * i386-tdep.c (i386_extract_struct_value_address): Use
3208 regcache_cooked_read_unsigned.
3209
3210 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3211
3212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3213 double sizes according to ELF ABI flags.
3214 (gdbarch_tdep): Record elf_flags.
3215
3216 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3217
3218 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3219 (m6812_prolog): They can appear in 68HC12 function prologue.
3220 (m68hc11_frame_chain): Cleanup.
3221
3222 2002-08-12 Andrew Cagney <cagney@redhat.com>
3223
3224 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3225 declarations.
3226 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3227 (i386_linux_register_raw_size): Delete function.
3228 (i386_linux_init_abi): Update.
3229 * i386-tdep.c (i386_register_raw_size): Delete function.
3230 (i386_register_byte): Delete function.
3231 (i386_gdbarch_init): Update.
3232 (i386_register_size): Delete array.
3233 (i386_register_offset): Delete array.
3234
3235 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3236 (REGISTER_RAW_SIZE): Delete macro.
3237 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3238 (REGISTER_BYTE): Delete macro.
3239
3240 2002-08-11 Aidan Skinner <aidan@velvet.net>
3241
3242 * ada-lang.c (ada_lookup_partial_symbol)
3243 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3244 prototype names so that grep ^func works properly.
3245
3246 * ada-lang.c (ada_array_element_type)
3247 (ada_lookup_partial_symbol): Fix typos in parameter list.
3248
3249 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3250 Fix prototype names so that grep ^func works properly.
3251
3252 2002-08-10 Andrew Cagney <cagney@redhat.com>
3253 Elena Zannoni <ezannoni@redhat.com>
3254 Martin M. Hunt <hunt@redhat.com>
3255
3256 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3257 (build_builtin_type_vec128i): Set the vector bit.
3258 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3259 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3260 (build_builtin_type_vec64): New function.
3261 (build_builtin_type_vec64i): New function.
3262 (build_gdbtypes): Initialize builtin_type_vec64 and
3263 builtin_type_vec64i.
3264
3265 2002-08-09 Andrew Cagney <cagney@redhat.com>
3266
3267 * regcache.c (regcache_dump): Compare the register offset
3268 with REGISTER_BYTE.
3269 * arch-utils.c (generic_register_byte): New function.
3270 * arch-utils.h (generic_register_byte): Declare.
3271 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3272 * gdbarch.h, gdbarch.c: Regenerate.
3273
3274 2002-08-09 Andrew Cagney <cagney@redhat.com>
3275
3276 * regcache.c: Include "gdbcmd.h"
3277 (_initialize_regcache): Add commands "maintenance print
3278 registers", "maintenance print raw-registers" and "maintenance
3279 print cooked-registers".
3280 (enum regcache_dump_what): Define.
3281 (dump_endian_bytes): New function.
3282 (regcache_dump): New function.
3283 (regcache_print): New function.
3284 (maintenance_print_registers): New function.
3285 (maintenance_print_raw_registers): New function.
3286 (maintenance_print_cooked_registers): New function.
3287 * Makefile.in (regcache.o): Update dependencies.
3288
3289 2002-08-09 Michael Snyder <msnyder@redhat.com>
3290
3291 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3292 (mips_push_arguments): Correct some comments. Use paddr_nz
3293 for printing addresses in debug output. Replace static
3294 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3295 (mips_n32n64_push_arguments): New function, cloned from
3296 mips_push_arguments and tuned for the n32/n64 ABI.
3297 (mips_push_register): Buffer needs dynamic allocation.
3298 (mips_print_register): Ditto.
3299 (do_gp_register_row): Ditto.
3300 (mips_store_return_value): Ditto.
3301 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3302
3303 2002-08-09 Don Howard <dhoward@redhat.com>
3304
3305 * memattr.c (mem_info_command): Print special case of upper bound
3306 as max CORE_ADDR + 1.
3307
3308 2002-08-08 Michael Snyder <msnyder@redhat.com>
3309
3310 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3311 returns structs by ref if they're too big to fit in two registers.
3312
3313 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3314
3315 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3316 saved regs value.
3317 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3318 mips_find_saved_regs().
3319 (mips_pop_frame): Likewise.
3320
3321 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3322
3323 * blockframe.c (frame_saved_regs_register_unwind): Revise
3324 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3325 frames are in use.
3326
3327 2002-08-09 Grace Sainsbury <graces@redhat.com>
3328
3329 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3330 T-packets; the 'a' is not taken as a register number.
3331 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3332 (remote_stopped_data_address): New functions; add to target
3333 vector.
3334 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3335 prototypes to match other implementations of this
3336 function. replace integer argument with pointer -- the length
3337 field in the Z-packet is the length of what is pointed to or 1 if
3338 pointer is null. Add to target vector.
3339 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3340 target vector.
3341
3342 From Mark Salter:
3343 * remote.c (remote_wait): Add support to extract optional
3344 watchpoint information from T-packet. Ignore unrecognized
3345 optional info in T-packet.
3346 (remote_async_wait): Ditto.
3347
3348 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3349
3350 * cli/cli-dump.c: Change fopen modes to use binary open modes
3351 as defined in include/fopen-bin.h throughout.
3352
3353 2002-08-08 Michael Snyder <msnyder@redhat.com>
3354
3355 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3356
3357 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3358
3359 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3360 assertion failure by returning early after a warning.
3361
3362 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3363
3364 * mips-tdep.c (mips_find_saved_regs): Make static.
3365 (mips_frame_init_saved_regs): New function.
3366 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3367 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3368 (mips_find_saved_regs): Delete declaration.
3369
3370 2002-08-08 Grace Sainsbury <graces@redhat.com>
3371
3372 * remote.c (remote_wait, remote_async_wait): Change
3373 thread_num from int to ULONGEST.
3374 (unpack_varlen_hex): Change result parameter from
3375 int * to ULONGEST *.
3376
3377 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3378
3379 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3380 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3381 powerpc*-*-*.
3382 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3383
3384 2002-08-08 Andrew Cagney <cagney@redhat.com>
3385
3386 * gcore.c (override_derive_stack_segment): Delete variable.
3387 (preempt_derive_stack_segment): Delete function.
3388 (derive_stack_segment): Delete function.
3389 (default_derive_stack_segment): Renamed to derive_stack_segment.
3390 (override_derive_heap_segment): Delete variable.
3391 (preempt_derive_heap_segment): Delete function.
3392 (derive_heap_segment): Delete function.
3393 (default_derive_heap_segment): Rename to derive_heap_segment.
3394
3395 2002-08-06 Michael Snyder <msnyder@redhat.com>
3396
3397 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3398 * mips-tdep.c (mips_EABI_use_struct_convention,
3399 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3400 New functions. (mips_use_struct_convention): Delete.
3401 (mips_gdbarch_init): set use_gdbarch_convention.
3402
3403 2002-08-06 Michael Snyder <msnyder@redhat.com>
3404
3405 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3406 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3407 mips_o32_reg_struct_has_addr): New functions.
3408 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3409
3410 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3411
3412 * regcache.c (pseudo_register): Delete function.
3413 (fetch_register): Delete function.
3414 (store_register): Delete function.
3415 (regcache_raw_read, legacy_read_register_gen): Use
3416 target_fetch_registers instead of fetch_register.
3417 (legacy_write_register_gen, regcache_raw_write): Use
3418 target_store_register instead of store_register.
3419 (write_register_bytes): Ditto.
3420
3421 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3422 (STORE_PSEUDO_REGISTER): Delete.
3423 * gdbarch.h, gdbarch.c: Regenerate.
3424
3425 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3426
3427 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3428 write dump file binary.
3429
3430 2002-08-05 Michael Snyder <msnyder@redhat.com>
3431
3432 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3433 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3434 (mips_gdbarch_init): Set N32 target to be mips64.
3435
3436 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3437
3438 * frame.c (find_saved_register): Break out of loop once saved
3439 register address is found. Don't mention sparc in loop comment
3440 anymore.
3441
3442 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3443
3444 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3445 mips_default_saved_regsize to 8.
3446
3447 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3448
3449 * gcore.c: Do not include <sys/procfs.h>.
3450 * Makefile.in (gcore.o): Update dependencies.
3451
3452 2002-08-06 Andrew Cagney <cagney@redhat.com>
3453
3454 * configure.tgt: Make arc-*-* obsolete.
3455 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3456 * MAINTAINERS: Make arc-elf obsolete.
3457 * arc-tdep.c: Make file obsolete.
3458 * config/arc/arc.mt: Ditto.
3459 * config/arc/tm-arc.h: Ditto.
3460
3461 2002-08-05 Theodore A. Roth <troth@verinet.com>
3462
3463 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3464
3465 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3466
3467 * mcore-tdep.c (mcore_gdbarch_init): Use
3468 generic_unwind_get_saved_register instead of
3469 generic_get_saved_register.
3470 * v850-tdep.c (v850_gdbarch_init): Ditto.
3471 * frv-tdep.c (frv_gdbarch_init): Ditto.
3472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3473 * s390-tdep.c (s390_gdbarch_init): Ditto.
3474 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3475 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3476 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3477
3478 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3479
3480 * objfiles.h: Add missing #include "symfile.h"
3481
3482 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3483
3484 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3485
3486 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3487 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3488 of FIELD_BITSIZE.
3489
3490 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3491
3492 * NEWS: Cleanup and nitpick.
3493
3494 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3495
3496 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3497
3498 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3499
3500 * Makefile.in (gdbtk-bp.o): Update dependencies.
3501 (gdbtk-register.o): Ditto.
3502 (gdbtk-varobj.o): Ditto.
3503
3504 2002-08-03 Andrew Cagney <cagney@redhat.com>
3505
3506 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3507 m68hc11_fetch_pseudo_register.
3508 (m68hc11_pseudo_register_write): Replace
3509 m68hc11_store_pseudo_register.
3510 (m68hc11_gdbarch_init): Update.
3511
3512 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3513
3514 * gdbarch.sh: Include "gdb_string.h".
3515 * gdbarch.c: Regenerate.
3516
3517 * regcache.c: Include "gdb_string.h".
3518 * ax-general.c: Ditto.
3519 * varobj.c: Ditto.
3520 * std-regs.c: Ditto.
3521 * fbsd-proc.c: Ditto.
3522 * thread.c: Ditto.
3523
3524 * Makefile.in (regcache.o): Update dependencies.
3525 (thread.o, gdbarch.o): Ditto.
3526 (ax-general.o, gdbarch.o): Ditto.
3527 (varobj.o, std-regs.o): Ditto.
3528 (fbsd-proc.o): Specify dependencies.
3529
3530 2002-08-02 Andrew Cagney <cagney@redhat.com>
3531
3532 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3533 regnum.
3534 (regcache_cooked_write): Ditto.
3535
3536 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3537
3538 * regcache.c (regcache_cooked_read): New function.
3539 (regcache_cooked_write): New function.
3540 (read_register_gen): Rewrite using regcache_cooked_read.
3541 (write_register_gen): Rewrite using regcache_cooked_write.
3542
3543 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3544 Declare.
3545
3546 2002-08-02 Andrew Cagney <cagney@redhat.com>
3547
3548 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3549 Replace the architecture methods register_read and register_write.
3550 * gdbarch.h, gdbarch.c: Regenerate.
3551 * regcache.c (init_regcache_descr): Update.
3552 (read_register_gen): Update.
3553 (write_register_gen): Update.
3554 (supply_register): Update comment.
3555
3556 * sh-tdep.c (sh_gdbarch_init): Update.
3557 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3558 `regcache' and `gdbarch' parameters. Make `buffer' a void
3559 pointer. Update code.
3560 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3561 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3562 void pointer. Update code.
3563 (sh64_register_write): Delete.
3564 (sh4_register_read): Delete.
3565 (sh64_register_read): Delete.
3566 (sh4_register_write): Delete.
3567 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3568 void pointer, `to' parameter a void pointer.
3569 (sh_sh64_register_convert_to_raw): Ditto.
3570
3571 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3572
3573 * mips-tdep.c (mips_register_virtual_type): Use architecture
3574 invariant return values.
3575
3576 2002-08-01 Andrew Cagney <cagney@redhat.com>
3577
3578 * linux-proc.c: Include "gdb_string.h".
3579 * Makefile.in (linux-proc.o): Update dependency list.
3580
3581 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3582
3583 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3584 comment.
3585
3586 2002-08-01 Grace Sainsbury <graces@redhat.com>
3587
3588 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3589 to_insert_watchpoint, to_remove_watchpoint,
3590 to_stopped_by_watchpoint, to_stopped_data_address,
3591 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3592 target vecctor. Define their corresponding macros so they call
3593 them.
3594
3595 * target.c: Add default and debug versions of for
3596 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3597 to_insert_watchpoint, to_remove_watchpoint,
3598 to_stopped_by_watchpoint, to_stopped_data_address,
3599 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3600
3601 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3602
3603 * mips-tdep.c (mips_register_virtual_type): New function.
3604 (mips_gdbarch_init): Register mips_register_virtual_type()
3605 with gdbarch machinery.
3606 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3607 this file instead of tm-bigmips.h.
3608 (MIPS_REGSIZE): Delete this macro.
3609 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3610 multiarch version in mips-tdep.c will be found.
3611
3612 2002-08-01 Andrew Cagney <cagney@redhat.com>
3613
3614 * NEWS: Menion that CHILL has been made obsolete.
3615
3616 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3617 * stabsread.c (read_range_type): Ditto.
3618 * gdbtypes.h: Ditto.
3619 * language.c (binop_type_check): Ditto.
3620 (binop_result_type): Ditto.
3621 (integral_type): Ditto.
3622 (character_type): Ditto.
3623 (string_type): Ditto.
3624 (boolean_type): Ditto.
3625 (structured_type): Ditto.
3626 (lang_bool_type): Ditto.
3627 (binop_type_check): Ditto.
3628 * language.h (_LANG_chill): Ditto.
3629 * dwarfread.c (set_cu_language): Ditto.
3630 * dwarfread.c (CHILL_PRODUCER): Ditto.
3631 * dwarfread.c (handle_producer): Ditto.
3632 * expression.h (enum exp_opcode): Ditto.
3633 * eval.c: Ditto for comments.
3634 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3635 * expprint.c (print_subexp): Ditto.
3636 (print_subexp): Ditto.
3637 * valops.c (value_cast): Ditto.
3638 (search_struct_field): Ditto.
3639 * value.h (COERCE_VARYING_ARRAY): Ditto.
3640 * symfile.c (init_filename_language_table): Ditto.
3641 (add_psymbol_with_dem_name_to_list): Ditto.
3642 * valarith.c (value_binop): Ditto.
3643 (value_neg): Ditto.
3644 * valops.c (value_slice): Ditto.
3645 * symtab.h (union language_specific): Ditto.
3646 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3647 (SYMBOL_DEMANGLED_NAME): Ditto.
3648 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3649 * defs.h (enum language): Ditto.
3650 * symtab.c (got_symtab): Ditto.
3651 * utils.c (fprintf_symbol_filtered): Ditto.
3652
3653 * ch-typeprint.c: Make file obsolete.
3654 * ch-valprint.c: Make file obsolete.
3655 * ch-lang.h: Make file obsolete.
3656 * ch-exp.c: Make file obsolete.
3657 * ch-lang.c: Make file obsolete.
3658
3659 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3660 CHILL_LIB.
3661 (TARGET_FLAGS_TO_PASS): Ditto.
3662 (CHILLFLAGS): Obsolete.
3663 (CHILL): Obsolete.
3664 (CHILL_FOR_TARGET): Obsolete.
3665 (CHILL_LIB): Obsolete.
3666 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3667 ch-valprint.c.
3668 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3669 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3670 ch-lang.o.
3671 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3672 targets.
3673
3674 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3675
3676 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3677 This does not change anything at the moment, but will be helpful
3678 later when full Ada support is integrated.
3679
3680 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3681
3682 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3683 help message.
3684
3685 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3686
3687 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3688 and save it in a local variable. Use variable in later test.
3689
3690 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3691
3692 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3693 test. (Thanks to Daniel Jacobowitz.)
3694
3695 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3696
3697 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3698 (mips_abi_strings): Add "n64".
3699 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3700
3701 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3702
3703 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3704 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3705
3706 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3707
3708 * utils.c (host_pointer_to_address, address_to_host_pointer):
3709 Use gdb_assert() instead of explicit call to internal_error().
3710
3711 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3712
3713 * Makefile.in (rs6000-nat.o): Update dependencies.
3714
3715 From Nicholas Duffek:
3716 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3717 (aix-thread.o): New rule.
3718 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3719 * config/powerpc/aix432.mh: New file.
3720
3721 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3722
3723 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3724 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3725 (fetch_core_registers, ppc_linux_supply_gregset)
3726 (ppc_linux_supply_fpregset): New functions.
3727 (ppc_linux_regset_core_fns): New.
3728 (_initialize_ppc_linux_tdep): Call add_core_fns.
3729 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3730 and ppc_linux_supply_gregset.
3731 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3732 (supply_fpregset): Call ppc_linux_supply_fpregset.
3733 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3734 corelow.o.
3735 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3736
3737 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3738
3739 * symtab.c (lookup_symbol): Demangle before lowercasing.
3740
3741 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3742
3743 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3744 declaration.
3745 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3746 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3747 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3748 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3749 "gdb_string.h".
3750 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3751 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3752 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3753 (avr-tdep.o, mon960-rom.o): Ditto.
3754 (aout_stabs_gnu_h): Define.
3755 (symtab_h): Remove $(gdb_obstack_h).
3756
3757 2002-07-30 Jim Blandy <jimb@redhat.com>
3758
3759 Patch from David Carlton <carlton@math.stanford.edu>:
3760 * gdbinit.in: Move the `dir' commands that add GDB's own source
3761 directory to the search path to the end, so that the `gdb' source
3762 directory will be searched first.
3763
3764 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3765
3766 * gdb_obstack.h: New file.
3767 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3768 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3769 * objfiles.h: Include "gdb_obstack.h".
3770 * Makefile.in (gdb_obstack_h): Define.
3771 (symtab_h): Add $(gdb_obstack_h).
3772 (objfiles_h): Add $(gdb_obstack_h).
3773
3774 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3775 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3776 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3777 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3778 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3779 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3780 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3781 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3782
3783 * Makefile.in (bcache.o): Update dependencies.
3784 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3785 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3786 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3787 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3788 (stabsread.o, symfile.o, symmisc.o): Ditto.
3789 (symtab.o, typeprint.o, macroexp.o): Ditto.
3790 (macrotab.o, mdebugread.o): Ditto.
3791 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3792 (coff_ecoff_h, aout_aout64_h): Define.
3793 (aout_stabs_gnu_h, libaout_h): Define.
3794
3795 2002-07-29 Andrew Cagney <cagney@redhat.com>
3796
3797 * regcache.c (struct regcache_descr): Rename nr_registers to
3798 nr_cooked_registers. Revise comments describing the structure
3799 member fields.
3800 (init_regcache_descr): Update.
3801 (init_legacy_regcache_descr): Update.
3802 (read_register_gen, write_register_gen): When a cooked register in
3803 the raw register range, directly access the value from the raw
3804 register cache.
3805
3806 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3807
3808 * z8k-tdep.c: Do not include "obstack.h".
3809 * h8300-tdep.c, h8500-tdep.c: Ditto.
3810 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3811 * valprint.c, v850-tdep.c: Ditto.
3812 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3813 * mn10200-tdep.c: Ditto.
3814
3815 * Makefile.in (z8k-tdep.o): Update dependencies.
3816 (m68hc11-tdep.o, valprint.o): Ditto.
3817 (v850-tdep.o, d10v-tdep.o): Ditto.
3818 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3819 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3820 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3821 (sh_opc_h, gdb_sim_sh_h): Define.
3822 (elf_sh_h, elf_bfd_h): Define.
3823 (opcode_m68hc11_h): Define.
3824 (OPCODES_SRC, OPCODES_DIR): define.
3825 (OPCODES): Use $(OPCODES_DIR).
3826 (gdb_sim_d10v_h): Rename sim_d10v_h.
3827 (gdb_sim_arm_h): Rename sim_arm_h.
3828
3829 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3830
3831 * utils.c (host_pointer_to_address, address_to_host_pointer):
3832 Change internal_error() message to indicate function responsible
3833 for the error.
3834
3835 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3836
3837 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3838 calls to local_hex_string_custom().
3839
3840 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3841
3842 * irix5-nat.c: Move IRIX shared library support from here...
3843 * solib-irix.c: ...to here. Revised substantially to work with
3844 generic solib framework.
3845
3846 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3847 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3848 * mips-irix-tdep.c: New file.
3849
3850 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3851 (mips-irix-tdep.o, solib-irix.o): New rules.
3852 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3853 solib-irix.o.
3854 * config/mips/irix6.mt (TDEPFILES): Likewise.
3855 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3856
3857 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3858
3859 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3860 disabled (via ``#if 0'') includes.
3861
3862 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3863
3864 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3865 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3866 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3867 Add support for the fpscr register.
3868 * rs6000-nat.c (regmap, fetch_inferior_registers)
3869 (store_inferior_registers, fetch_core_registers): Likewise.
3870
3871 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3872
3873 * rs6000-nat.c (language.h): Include.
3874 (special_regs): Delete this array.
3875 (regmap): New function.
3876 (fetch_register, store_register): Use regmap() to map gdb
3877 register numbers to ptrace register numbers. Also, use
3878 outputs from regmap() to make decisions regarding type of
3879 ptrace() call to make. In particular, don't compare against
3880 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3881 (fetch_inferior_registers, store_inferior_registers): Where
3882 possible, obtain register numbers from tdep struct. Don't
3883 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3884 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3885 (LAST_UISA_SP_REGNUM): Delete.
3886
3887 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3888
3889 * rs6000-nat.c (ppc-tdep.h): Include.
3890 (fetch_registers, store_register, fetch_core_registers): Don't
3891 access registers[] directly. Instead, use supply_register() or
3892 regcache_collect() as appropriate.
3893 (find_toc_address): Format hex address with local_hex_string().
3894
3895 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3896
3897 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3898 bfd/elf32-frv.c.
3899
3900 2002-07-24 Tom Tromey <tromey@redhat.com>
3901
3902 * jv-exp.y: Marked all strings with _().
3903 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3904 internal_error.
3905 (MethodInvocation, CastExpression, parse_number, yyerror,
3906 java_type_from_name, push_expression_name, yylex): Typo fixes.
3907
3908 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3909
3910 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3911 (tee_file_flush, tee_file_write, tee_file_fputs)
3912 (tee_file_isatty): New.
3913 * ui-file.h (tee_file_new): Add prototype.
3914
3915 2002-07-24 Aidan Skinner <aidan@velvet.net>
3916
3917 * ada-lang.c: Change k&r style function definitions to prototyped
3918 form.
3919 * ada-typeprint.c: Change k&r style function definitions to prototyped
3920 form.
3921 * ada-valprint.c: Change k&r style function definitions to prototyped
3922 form.
3923
3924 2002-07-24 Andrew Cagney <cagney@redhat.com>
3925
3926 * README: Remove reference to remote-bug.
3927 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3928 remote-bug.c.
3929 (m88k-nat.o): Delete rule.
3930 (m88k-tdep.o): Delete rule.
3931 (remote-bug.o): Delete rule.
3932 * MAINTAINERS: Mark as obsolete.
3933 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3934 * m88k-tdep.c: Make file obsolete.
3935 * config/m88k/m88k.mh: Ditto.
3936 * config/m88k/delta88v4.mh: Ditto.
3937 * config/m88k/delta88v4.mt: Ditto.
3938 * config/m88k/delta88.mt: Ditto.
3939 * config/m88k/delta88.mh: Ditto.
3940 * remote-bug.c: Ditto.
3941 * config/m88k/tm-delta88.h: Ditto.
3942 * config/m88k/nm-delta88v4.h: Ditto.
3943 * config/m88k/xm-delta88.h: Ditto.
3944 * config/m88k/xm-dgux.h: Ditto.
3945 * config/m88k/tm-m88k.h: Ditto.
3946 * config/m88k/nm-m88k.h: Ditto.
3947 * config/m88k/tm-delta88v4.h: Ditto.
3948 * m88k-nat.c: Ditto.
3949 * cxux-nat.c: Ditto.
3950 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3951 and m88*-*-* obsolete.
3952 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3953 m88*-*-* obsolete.
3954
3955 2002-07-24 Andrew Cagney <cagney@redhat.com>
3956
3957 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3958 constant. Same for local pointer variables.
3959 (extract_signed_integer): Ditto.
3960 * defs.h (extract_unsigned_integer): Update.
3961 (extract_signed_integer): Update.
3962
3963 2002-07-24 Andrew Cagney <cagney@redhat.com>
3964
3965 * regcache.c (regcache_raw_write): Change buf parameter to a
3966 constant void pointer.
3967 (regcache_raw_read): Change buf parameter to a void pointer.
3968 (legacy_write_register_gen): Change myaddr parameter a constant
3969 void pointer.
3970 (supply_register): Change val parameter to a const void pointer.
3971 * regcache.h (regcache_raw_write): Update declaration.
3972 (regcache_raw_read): Update declaration.
3973 (supply_register): Update declaration.
3974
3975 2002-07-24 Tom Tromey <tromey@redhat.com>
3976
3977 * defs.h (gdb_readline_wrapper): Declare.
3978 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3979 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3980 * top.c (gdb_readline_wrapper): New function.
3981 (command_line_input): Use it.
3982
3983 2002-07-24 Andrew Cagney <cagney@redhat.com>
3984
3985 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3986 regcache_read and regcache_write.
3987 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3988 * regcache.c: Update.
3989 * sh-tdep.c (sh64_push_arguments): Update comment.
3990 (sh_pseudo_register_read): Update.
3991 (sh_pseudo_register_write): Update.
3992 (sh4_register_read): Update.
3993 (sh4_register_write): Update.
3994 (sh64_pseudo_register_read): Update.
3995 (sh64_pseudo_register_write): Update.
3996 (sh64_register_read): Update.
3997 (sh64_register_write): Update.
3998 * i386-tdep.c (i386_extract_return_value): Update.
3999 (i386_extract_struct_value_address): Update.
4000 (i386_extract_return_value): Update.
4001 * blockframe.c (generic_read_register_dummy): Update.
4002 (generic_call_dummy_register_unwind): Update
4003 * infrun.c (write_inferior_status_register): Update.
4004
4005 2002-07-23 Jim Blandy <jimb@redhat.com>
4006
4007 * parser-defs.h (expression_context_pc): Make this extern.
4008 (Thanks to Michael Snyder.)
4009
4010 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4011
4012 GDB 5.2.1 released from 5.2 branch.
4013 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4014 * README: Update to mention 5.2.1.
4015
4016 2002-07-23 Mark Salter <msalter@redhat.com>
4017
4018 * remote.c (remote_read_bytes): Fix check for error.
4019
4020 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4021
4022 * aix-thread.c (language.h): Include.
4023 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4024 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4025 Print newlines at end of debug messages.
4026 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4027 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4028
4029 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4030
4031 * aix-thread.c (ppc-tdep.h): Include.
4032 (special_register_p): New function.
4033 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4034 (store_regs_user_thread): Use register number information from
4035 gdbarch_tdep struct instead of hardcoded offsets relative to
4036 FIRST_UISA_SP_REGNUM.
4037 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4038 special_register_p() instead of using FPLAST_REGNUM and
4039 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4040 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4041 will be MQ's register number.
4042
4043 2002-07-22 Michael Snyder <msnyder@redhat.com>
4044
4045 * aix-thread.c (ops): Rename to aix_thread_ops.
4046 (base_ops): Rename to base_target.
4047 (ops_attach): Rename to aix_thread_attach.
4048 (ops_detach): Rename to aix_thread_detach.
4049 (ops_resume): Rename to aix_thread_detach.
4050 (ops_wait): Rename to aix_thread_wait.
4051 (ops_kill): Rename to aix_thread_kill.
4052 (init_ops): Rename to init_aix_thread_ops.
4053 (ops_fetch_register): Rename to aix_thread_fetch_register.
4054 (ops_store_register): Rename to aix_thread_store_register.
4055 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4056 (ops_thread_alive): Rename to aix_thread_thread_alive.
4057 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4058 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4059 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4060 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4061 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4062 (store_regs_lib): Rename to store_regs_user_thread.
4063 (store_regs_kern): Rename to store_regs_kernel_thread.
4064
4065 2002-07-22 Michael Snyder <msnyder@redhat.com>
4066
4067 * aix-thread.c (ops_prepare_to_store): Eliminate.
4068 (init_ops): Don't initialize ops.prepare_to_store.
4069 (store_regs_kern): Pre-fetch register buffers from child,
4070 because some registers may not be in the cache. Copy
4071 regs from register cache only if they are cached.
4072 (store_regs_lib): Copy regs from register cache only
4073 if they are cached.
4074 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4075 fill_gprs64): Ditto.
4076
4077 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4078
4079 * aix-thread.c (gdb_assert.h): Include.
4080 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4081 register sizes (from register cache) match size of buffer holding
4082 register data.
4083 (fill_sprs32): Change parameter types to match those in the ptrace()
4084 buffer.
4085 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4086 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4087
4088 2002-07-22 Michael Snyder <msnyder@redhat.com>
4089
4090 * aix-thread.c (supply_sprs64): Cosmetic change.
4091 (supply_sprs32): Cosmetic change.
4092 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4093 (fill_sprs64): Use regcache_collect instead of read_register.
4094 (store_regs_lib): Use regcache_collect instead of
4095 read_register. Use fill_sprs32 instead of fill_sprs64,
4096 if debugging a 32-bit architecture.
4097 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4098 out of the register cache, instead of passing a pointer into
4099 the register cache directly to ptrace. Use regcache_collect
4100 insteaad of read_register.
4101 (ops_prepare_to_store): Use target_read_registers instead
4102 of read_register_bytes.
4103
4104 2002-07-20 Aidan Skinner <aidan@velvet.net>
4105
4106 * MAINTAINERS: Add self under write after approval.
4107
4108 2002-07-20 Aidan Skinner <aidan@velvet.net>
4109
4110 * ada-tasks.c: Change k&r style function definitions to prototyped
4111 form.
4112
4113 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4114
4115 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4116 * x86-64-tdep.c: Include "objfiles.h".
4117 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4118 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4119
4120 2002-07-17 Michal Ludvig <michal@suse.cz>
4121
4122 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4123 (update_context): Initialise cfa variable.
4124
4125 2002-07-17 Michael Snyder <msnyder@redhat.com>
4126
4127 * aix-thread.c: Shorten some long lines.
4128 Bring comments into line with code spec.
4129
4130 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4131
4132 * infrun.c: Re-indent using gdb_indent.sh.
4133
4134 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4135
4136 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4137 Leave the indentation temporarily untouched, to minimize the diffs.
4138
4139 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4140
4141 * stabsread.c: Make os9k sections of the code obsolete,
4142 for real this time.
4143 * stabsread.h: Make os9k sections of the code obsolete.
4144
4145 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4146
4147 * linux-low.c (regsets_store_inferior_registers): Add free()
4148 at the end of a loop to prevent memory leak.
4149 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4150 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4151 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4152 line a comment.
4153 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4154
4155 2002-07-17 Jim Blandy <jimb@redhat.com>
4156
4157 * macrocmd.c (info_macro_command): Remove newline from error
4158 message.
4159
4160 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4161
4162 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4163 (sh_gdbarch_init): Use it for sh-dsp.
4164
4165 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4166
4167 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4168 64-bit DWARF2 format.
4169
4170 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4171
4172 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4173 <sys/proc.h> when not available.
4174
4175 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4176
4177 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4178 * stabsread.c: Make os9k sections of the code obsolete.
4179 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4180 * config/i386/i386os9k.mt: Make file obsolete.
4181 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4182 (COMMON_OBS): Remove os9kread.o
4183 (SFILES): Remove os9kread.c.
4184 (os9kread.o, remote-os9k.o): Make target obsolete.
4185 * remote-os9k.c: Make file obsolete.
4186 * os9kread.c: Make file obsolete.
4187 * Makefile.in
4188
4189 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4190
4191 * NEWS: Mention that the FR30 has been made obsolete.
4192 * fr30-tdep.c: Make file obsolete.
4193 * config/fr30/tm-fr30.h: Ditto.
4194 * config/fr30/fr30.mt: Ditto.
4195 * configure.tgt: Make fr30-*-elf obsolete.
4196 * MAINTAINERS: Make fr30-elf obsolete.
4197
4198 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4199
4200 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4201 found is not inside a section.
4202
4203 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4204
4205 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4206 strerror().
4207 (pdc_realloc): Use xrealloc() instead of realloc().
4208
4209 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4210
4211 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4212 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4213 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4214 macros.
4215
4216 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4217
4218 * aix-thread.c (ptrace_check): Eliminate goto.
4219 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4220 problem.
4221
4222 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4223
4224 * aix-thread.c (gdbcmd.h): Include.
4225 (DEBUG, DBG, DBG2, dbg): Eliminate.
4226 (debug_aix_thread): New static global.
4227 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4228 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4229 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4230 invocations to DBG and DBG2 macros to test against
4231 ``debug_aix_thread'' and call fprintf_unfiltered().
4232 (_initialize_aix_thread): Add new command "set debug aix-thread".
4233
4234 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4235
4236 From Gerhard Tonn <TON@de.ibm.com>:
4237 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4238 instead of supply_register.
4239
4240 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4241
4242 * dwarf2cfi.c: Include "gdb_assert.h".
4243 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4244 non-NULL.
4245 (update_context): Do not use __func__. Add missing ``break''.
4246 (update_context): Do not use __func__.
4247
4248 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4249
4250 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4251 and its setting. Set gdbarch instruction printing functions
4252 directly. For non-rs6000 case use new function
4253 gdb_print_insn_powerpc.
4254 (gdb_print_insn_powerpc): New function.
4255
4256 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4257
4258 * NEWS: Mention that the d30v has been marked obsolete.
4259 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4260 * configure.tgt: Mark d30v-*-* as obsolete.
4261 * d30v-tdep.c: Mark file as obsolete.
4262 * config/d30v/d30v.mt: Ditto.
4263 * config/d30v/tm-d30v.h: Ditto.
4264
4265 2002-07-13 Aidan Skinner <aidan@velvet.net>
4266
4267 * ada-tasks.c (add_task_entry): replace calls to
4268 malloc() with xmalloc
4269 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4270
4271 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4272 ada_finish_decode_line_1, all_sals_for_line
4273 ada_breakpoint_rewrite): replace calls to free() with xfree()
4274
4275 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4276
4277 From Nicholas Duffek (with minor changes by Martin Hunt,
4278 Louis Hamilton, and Kevin Buettner):
4279 * aix-thread.c: New file.
4280
4281 2002-07-12 Petr Sorfa <petrs@caldera.com>
4282
4283 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4284 complaint for invalid attribute class or form.
4285 (read_func_scope): DW_AT_frame_base
4286 better handling of DW_AT_block*.
4287 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4288 better handling of DW_AT_block*.
4289 (read_common_block): DW_AT_location
4290 better handling of DW_AT_block*.
4291 (read_partial_die): DW_AT_location better handling
4292 of DW_AT_block*.
4293 (new_symbol): DW_AT_external better handling of
4294 DW_AT_block*. Proper initialization of variable
4295 "addr".
4296 (attr_form_is_block): New function that returns true
4297 if the attribute's form is of DW_FORM_block*.
4298
4299 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4300
4301 * valops.c (find_method_list): Remove comment about
4302 removed STATIC_MEMFUNCP argument.
4303 (value_find_oload_method_list): Likewise.
4304
4305 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4306
4307 From Nicholas Duffek:
4308 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4309 target_new_objfile_hook.
4310
4311 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4312
4313 From Nicholas Duffek:
4314 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4315 csect.
4316
4317 2002-07-12 Andrew Cagney <cagney@redhat.com>
4318
4319 * MAINTAINERS: Mention --enable-sim-build-warnings.
4320 (m68hc11-elf): Disable sim build warnings.
4321 (m32r-elf): Mark as broken obsolete candidate.
4322 (x86_64-linux-gnu): Mark as buildable with -Werror.
4323 (arm-elf): Change -w to ``,'' which enables warnings but not
4324 -Werror.
4325
4326 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4327
4328 * bcache.h: Update copyright.
4329 (struct bstring, struct bcache): Move definition to "bcache.c".
4330 Replaced by opaque declaration.
4331 (bcache_xfree): Replace free_bcache.
4332 (bcache_xmalloc, bcache_memory_used): Declare.
4333
4334 * bcache.c: Update copyright.
4335 (struct bstring, struct bcache): Moved to here from "bcache.h".
4336 Update comments.
4337 (bcache_xmalloc, bcache_memory_used): New functions.
4338 (bcache_xfree): Replace function free_bcache.
4339
4340 * Makefile.in (objfiles.o): Add $(bcache_h).
4341 (objfiles_h): Remove $(bcache_h).
4342 (symfile.o): Add $(bcache_h).
4343
4344 * symmisc.c: Update copyright.
4345 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4346 (print_objfile_statistics): Use bcache_memory_used.
4347
4348 * symfile.c: Include "bcache.h".
4349 (reread_symbols): Use bcache_xfree.
4350 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4351 (add_psymbol_to_list): Pass psymbol_cache by value.
4352 (add_psymbol_with_dem_name_to_list): Ditto.
4353
4354 * objfiles.h: Update copyright.
4355 (struct bcache): Declare opaque. Do not include "bcache.h".
4356 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4357 bcache'' pointers.
4358 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4359
4360 * objfiles.c: Include "bcache.h". Update copyright.
4361 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4362 macro_cache.
4363 (free_objfile): Use bcache_xfree.
4364
4365 2002-07-11 Grace Sainsbury <graces@redhat.com>
4366
4367 * monitor.c (monitor_fetch_register): Make name a constant.
4368 (monitor_store_register): Same.
4369
4370 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4371
4372 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4373 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4374 (finish_block) For non-function blocks, hash the symbol table. For
4375 function blocks, mark the symbol table as unhashed.
4376 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4377 (msymbol_hash_iw): Likewise.
4378 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4379 value.
4380 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4381 (lookup_minimal_symbol): Likewise for both.
4382 * symtab.h (struct block): Add `hashtable' flag. Comment the
4383 hashtable.
4384 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4385 (ALL_BLOCK_SYMBOLS): Update.
4386 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4387 (struct symbol): Add `hash_next' pointer.
4388 * symtab.c (lookup_block_symbol): Search using the hash table when
4389 possible.
4390 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4391 (search_symbols, find_addr_symbol): Likewise.
4392
4393 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4394 (read_dst_symtab): Likewise.
4395 * jv-lang.c (get_java_class_symtab): Likewise.
4396 * mdebugread.c: Include "gdb_assert.h".
4397 (shrink_block): Assert that the block being modified is not hashed.
4398 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4399 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4400 symbols.
4401 (dump_symtab): Recognize hashed blocks.
4402 * printcmd.c (print_frame_args): Assert that function blocks do not
4403 have hashed symbol tables.
4404 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4405 (fill_in_ada_prototype, debug_print_block): Likewise.
4406 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4407
4408 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4409
4410 * stack.c (print_frame): Use result of frame_address_in_block()
4411 instead of fi->pc when evaluating symbols.
4412 (backtrace_command_1): Ditto.
4413
4414 2002-07-11 Andrew Cagney <cagney@redhat.com>
4415
4416 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4417 Make static.
4418
4419 * arm-tdep.c (arm_register_name): Make return type constant.
4420
4421 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4422
4423 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4424 prototype.
4425 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4426 * s390-tdep.c (s390_fp_regnum): Ditto.
4427 (s390_read_fp): Ditto.
4428 (s390_pop_frame): Ditto.
4429 (_initialize_s390_tdep): Ditto.
4430 * remote.c (get_remote_state): Ditto.
4431 * procfs.c (mappingflags): Ditto.
4432 * memattr.c (_initialize_mem): Ditto.
4433 * mcore-tdep.c (mcore_pop_frame): Ditto.
4434 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4435 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4436 * language.c (set_case_str): Ditto.
4437 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4438 * frv-tdep.c (new_variant): Ditto.
4439 (frv_stopped_data_address): Ditto.
4440 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4441 (context_alloc): Ditto.
4442 (frame_state_alloc): Ditto.
4443 (unwind_tmp_obstack_init): Ditto.
4444 (unwind_tmp_obstack_free): Ditto.
4445 (cfi_read_fp): Ditto.
4446 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4447 (cris_pop_frame): Ditto.
4448 * c-lang.c (scanning_macro_expansion): Ditto.
4449 (finished_macro_expansion): Ditto.
4450 (c_preprocess_and_parse): Ditto.
4451 * gdbarch.sh: Ditto.
4452 * gdbarch.h, gdbarch.c: Regenerate.
4453 * config/mn10200/tm-mn10200.h: Adjust indentation.
4454 * target.c: Adjust indentation.
4455 * symtab.h: Adjust indentation.
4456 * stabsread.h: Adjust indentation.
4457 * remote-es.c: Adjust indentation.
4458 * os9kread.c: Adjust indentation.
4459
4460 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4461
4462 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4463 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4464
4465 2002-07-10 Grace Sainsbury <graces@redhat.com>
4466
4467 * NEWS: Mention m68k, mcore multi-arching.
4468 * MAINTAINERS: Change status of m68k, mcore to reflect
4469 multi-arching.
4470
4471 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4472
4473 * valops.c (find_overload_match): Free oload_syms.
4474
4475 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4476
4477 Define HAVE_SYS_PROC_H if sys/proc.h exists
4478 * configure.in: Add check for sys/proc.h
4479 * config.in: Regenerate.
4480 * configure: Regenerate.
4481
4482 2002-07-09 Grace Sainsbury <graces@redhat.com>
4483
4484 * config/m68k/tm-m68k.h: Remove macros wrapped in
4485 #if !GDB_MULTI_ARCH.
4486
4487 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4488
4489 * config.in, configure: Regenerate.
4490
4491 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4492
4493 * dwarf2cfi.c: Include "gcore.h".
4494 (execute_stack_op): Fix implementation of the
4495 DW_OP_deref and DW_OP_deref_size operators by letting do their
4496 lookup in the target.
4497
4498 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4499
4500 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4501 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4502 tdep->sc_sp_offset.
4503
4504 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4505
4506 Fix PR gdb/595, gdb/602
4507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4508 Don't call value_cast, just read the vtable pointer; update comments
4509 to match.
4510
4511 2002-07-05 Grace Sainsbury <graces@redhat.com>
4512
4513 * config/mcore/tm-mcore.h: Remove file.
4514 * config/mcore/mcore.mt: Remove definition of TM_FILE
4515 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4516
4517 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4518
4519 * i386bsd-tdep.c: Include "gdb_string.h".
4520
4521 2002-07-04 Grace Sainsbury <graces@redhat.com>
4522
4523 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4524 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4525 mcore-tdep.
4526 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4527 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4528 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4529 (RETVAL_REGNUM): Move macros from tm-mcore.h
4530 (mcore_reg_struct_has_addr): New function.
4531 (mcore_gdbarch_init): Added initializations for the macros removed
4532 from tm-mcore.h.
4533
4534 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4535
4536 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4537 traditonal string branding within the ELF header.
4538
4539 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4540
4541 * symtab.c (remove_params): New function.
4542 (make_symbol_overload_list): Use it instead of cplus_demangle.
4543 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4544
4545 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4546
4547 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4548
4549 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4550 New variables.
4551 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4552 and tdep->sigtramp_end.
4553 * i386obsd-nat.c: New file.
4554 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4555
4556 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4557 Don't call get_current_frame().
4558
4559 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4560
4561 * i386-nat.c (child_post_startup_inferior): New function
4562 calling i386_cleanup_dregs if
4563 I386_USE_GENERIC_WATCHPOINTS is defined.
4564 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4565 conditional to acknowledge that i386-nat.c has its
4566 own child_post_startup_inferior function.
4567
4568 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4569
4570 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4571 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4572 instead of MAX_REGISTER_RAW_SIZE.
4573 (i386_extract_return_value, i386_extract_struct_value_address):
4574 Convert to use regcache.
4575 (i386_gdbarch_init): Set max_register_raw_size and
4576 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4577 Set extract_return_value and extract_struct_value_address instead
4578 of their deprecated variants.
4579
4580 Convert i386 target to generic dummy frames.
4581 * i386-tdep.c: Include "symfile.h".
4582 (i386_frameless_signal_p): Consider a function to be frameless if
4583 the pc points at the first instruction of the function.
4584 (i386_frame_chain): Handle (generic) call dummies.
4585 (i386_frame_saved_pc): Likewise.
4586 (i386_frame_init_saved_regs): Remove code dealing with call
4587 dummies on the stack.
4588 (i386_push_dummy_frame): Removed.
4589 (i386_call_dummy_words): Removed.
4590 (i386_fix_call_dummy): Removed.
4591 (i386_push_return_address): New function.
4592 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4593 parameter, and don't call get_current_frame.
4594 (i386_pop_frame): New function.
4595 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4596 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4597 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4598 call_dummy_length to 0, set call_dummy_words to NULL, set
4599 sizeof_call_dummy_words to 0, set fix_call_dummy to
4600 generic_fix_call_dummy, set pc_in_call_dummy to
4601 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4602 generic_push_dummy_frame, set push_return_address to
4603 i386_push_return_address and set frame_chain_valid to
4604 generic_file_frame_chain_valid.
4605
4606 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4607
4608 * gdbarch.sh (struct regcache): Add opaque declaration.
4609 (EXTRACT_RETURN_VALUE): New architecture method.
4610 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4611 * gdbarch.h, gdbarch.c: Regenerate.
4612 * arch-utils.c (legacy_extract_return_value): New function.
4613 * arch-utils.h (legacy_extract_return_value): Declare.
4614 * values.c (value_being_returned): Re-enable code handling
4615 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4616 deprecated_grub_regcache_for_registers call to block handling
4617 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4618 (EXTRACT_RETURN_VALUE): Do not define.
4619
4620 2002-07-03 Grace Sainsbury <graces@redhat.com>
4621
4622 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4623 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4624 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4625 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4626 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4627 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4628 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4629 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4630 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4631 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4632 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4633 argument so the function fits the prototype in the architecture
4634 vector.
4635 (mcore_pop_frame): Remove argument so the function fits the
4636 prototype. Use get_current_frame instead of the argument.
4637 (mcore_push_arguments): Change type of struct_return so the
4638 function can be used in the architecture vector.
4639 (mcore_store_struct_return): Add.
4640 (mcore_frame_init_saved_regs): Add.
4641 (mcore_gdbarch_init): Add function calls to replace the macros
4642 removed from tm-mcore.h
4643
4644 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4645
4646 * infcmd.c (print_return_value): Remove compatibility code calling
4647 deprecated_grub_regcache_for_registers.
4648
4649 * values.c: Include "regcache.h".
4650 (value_being_returned): Update. Use
4651 deprecated_grub_regcache_for_registers to extract the register
4652 buffer address.
4653 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4654 ``struct regcache''.
4655 * Makefile.in (values.o): Add dependency on $(regcache_h).
4656
4657 * inferior.h (run_stack_dummy): Change type of second parameter to
4658 a ``struct regcache''.
4659 * valops.c (hand_function_call): Change type of retbuf to ``struct
4660 regcache''. Allocate using regcache_xmalloc, clean using
4661 make_cleanup_regcache_xfree.
4662 * infcmd.c (run_stack_dummy): Update. Use
4663 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4664
4665 * regcache.c (do_regcache_xfree): New function.
4666 (make_cleanup_regcache_xfree): New function.
4667 * regcache.h (make_cleanup_regcache_xfree): Declare.
4668
4669 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4670
4671 * event-top.c (command_line_handler): Don't read past
4672 beginning of buffer.
4673
4674 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4675
4676 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4677 struct frame_id.
4678 (varobj_create): Store frame_id for root.
4679 (varobj_gen_name): Use xasprintf.
4680 (varobj_update): Save and restore frame using get_frame_id() and
4681 frame_find_by_id().
4682 (create_child): Use xasprintf.
4683 (new_root_variable): Initialize frame_id.
4684 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4685 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4686 to prevent memory leak.
4687
4688 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4689
4690 * valops.c (hand_function_call): Move declaration of retbuf to
4691 start of function, allocate using malloc, add a cleanup but before
4692 the inf_status cleanup, cleanup the buffer. Rename local variable
4693 old_chain to inf_status_cleanup.
4694
4695 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4696
4697 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4698
4699 * cli/cli-decode.c (cmd_func_p): New function.
4700 (cmd_func): New function.
4701
4702 * command.h: Add cmd_func() and cmd_func_p().
4703
4704 2002-07-03 Grace Sainsbury <graces@redhat.com>
4705
4706 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4707 (REGISTER_SIZE): Remove.
4708 (MAX_REGISTER_RAW_SIZE): Remove.
4709 (REGISTER_VIRTUAL_TYPE): Remove.
4710 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4711 (REGISTER_NAME): Remove.
4712 (USE_GENERIC_DUMMY_FRAMES): Remove.
4713 (CALL_DUMMY): Remove.
4714 (CALL_DUMMY_START_OFFSET): Remove.
4715 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4716 (CALL_DUMMY_LOCATION): Remove.
4717 (FIX_CALL_DUMMY): Remove.
4718 (CALL_DUMMY_ADDRESS): Remove.
4719 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4720 (SAVE_DUMMY_FRAME_TOS): Remove.
4721 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4722 (mcore_register_virtual_type): New function.
4723 (mcore_register_byte): New function.
4724 (mcore_register_size): New function.
4725 (mcore_register_name): New function.
4726 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4727 macros removed from tm-mcore.h.
4728 (mcore_dump_tdep): Add.
4729 (_initialize_mcore_tdep): Add gdbarch_register call.
4730
4731 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4732
4733 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4734 frameless_look_for_prologue, such that we actually call this
4735 function.
4736
4737 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4738
4739 * frame.h (frame_address_in_block): New function.
4740
4741 * blockframe.c (frame_address_in_block): New function extracted
4742 from get_frame_block().
4743 (get_frame_block): Use frame_address_in_block().
4744 (block_innermost_frame): Use frame_address_in_block() to match
4745 the frame pc address against the block boundaries rather than
4746 the frame pc directly. This prevents a failure when a frame pc
4747 is actually a return-address pointing immediately after the end
4748 of the given block.
4749
4750 2002-07-02 Grace Sainsbury <graces@redhat.com>
4751
4752 * MAINTAINERS: Add self under write after approval.
4753
4754 2002-07-02 Grace Sainsbury <graces@redhat.com>
4755
4756 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4757 used in architecture vector. The default is
4758 m68k_local_breakpoint_from_pc.
4759 (m68k_local_breakpoint_from_pc): Add.
4760 (enum): Add register numbers from tm-m68k.h.
4761 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4762 vector.
4763 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4764 GDB_MULTI_ARCH_PARTIAL.
4765 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4766 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4767 m68k-tdep.c.
4768 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4769 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4770 to enum in m68k-tdep.c
4771
4772 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4773
4774 * solib-osf.c (open_map): Compute the list of shared libraries
4775 loaded by the inferior, rather than the list of libraries loaded
4776 by GDB itself. Otherwise, GDB ends up reading the symbols from
4777 the wrong shared libraries...
4778
4779 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4780
4781 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4782 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4783 macros.
4784 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4785 Remove functions.
4786 (FRAMELESS_SIGNAL): Remove function.
4787 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4788 i386_linux_saved_pc_after_call): Removed.
4789 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4790 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4791 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4792
4793 * i386-tdep.c (i386_frameless_signal_p): New function.
4794 (i386_frame_chain): Deal with frameless signals.
4795 (i386_sigtramp_saved_sp): New function.
4796 (i386_frame_saved_pc): Deal with frameless signals.
4797 (i386_saved_pc_after_call): Make sure the correct value is
4798 returned just after entry into a sigtramp.
4799 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4800 i386fbsd4_sc_sp_offset): New variables.
4801 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4802 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4803 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4804 similiar to what we already did for sc_pc_offset.
4805 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4806 tdep->sc_sp_offset.
4807
4808 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4809
4810 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4811
4812 * config/i386/tm-x86-64linux.h: New.
4813 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4814 definitions.
4815 * config/i386/nm-x86-64.h: Rename to ...
4816 * config/i386/nm-x86-64linux.h: ... this one.
4817 * config/i386/x86-64linux.mh: Reflect the above change.
4818
4819 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4820
4821 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4822 with sigcontext_addr. Add sc_sp_offset.
4823 (i386bsd_sigtramp_saved_pc): Remove prototype.
4824 (i386bsd_sicontext_addr): Add prototype.
4825 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4826 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4827 (i386_svr4_sigtramp_saved_pc): Removed.
4828 (i386_svr4_sigcontext_addr): New function.
4829 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4830 Initialize tdep->sigcontext_addr instead. Initialize
4831 tdep->sc_pc_offset and tdep->sc_sp_offset.
4832 (i386_gdbarch_init): Likewise.
4833 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4834 any more.
4835 (i386bsd_sigtramp_saved_pc): Remove function.
4836 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4837 Initialize tdep->sigcontext_addr instead. Initialize
4838 tdep->sc_pc_offset.
4839 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4840 of tdep->sigtramp_saved_pc.
4841 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4842 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4843 instead.
4844
4845 * i386-tdep.c (i386_frameless_function_invocation,
4846 i386_frame_num_args, i386_frame_init_saved_regs,
4847 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4848 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4849 i386_extract_return_value, i386_store_return_value,
4850 i386_extract_struct_value_address, i386_register_virtual_type,
4851 i386_register_convertible, i386_register_convert_to_virtual,
4852 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4853 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4854 static.
4855
4856 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4857
4858 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4859
4860 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4861 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4862 this macro. Include "value.h".
4863
4864 2002-06-30 Aidan Skinner <aidan@velvet.net>
4865
4866 * ada-exp.tab.c: remove as it's a generated file
4867 * ada-lex.c: remove as it's a generated file
4868
4869 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4870
4871 * config/i386/tm-i386.h (struct frame_info, struct
4872 frame_saved_regs, struct value, struct type): Remove forward
4873 declarations.
4874
4875 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4876 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4877 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4878 (FILL_FPXREGSET): Define.
4879
4880 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4881
4882 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4883 i[3456]86-*-netbsd* case.
4884 * config/i386/tm-obsd.h: Removed.
4885 * config/i386/obsd.mt: Removed.
4886 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4887 core-aout.o.
4888 (MH_CFLAGS): Add -DYYDEBUG=0.
4889
4890 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4891 i386nbsd_sc_pc_offset on OpenBSD too.
4892
4893 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4894 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4895 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4896 define.
4897 * i386bsd-tdep.c: Include "arch-utils.h".
4898 (i386bsd_aout_in_solib_call_trampoline): New function.
4899 (i386bsd_init_abi): Set in_solib_call_trampoline to
4900 i386bsd_aout_in_solib_call_trampoline.
4901 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4902 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4903
4904 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4905
4906 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4907 (struct obstack, struct bcache): Add opaque declarations.
4908 * Makefile.in (macrotab_h): Update
4909
4910 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4911
4912 * blockframe.c (generic_find_dummy_frame): Change return type to
4913 ``struct regcache''.
4914 (struct dummy_frame): Replace field ``registers'' with regcache, a
4915 struct regcache object.
4916 (generic_find_dummy_frame): Update.
4917 (generic_push_dummy_frame): Update. Use regcache_xfree,
4918 regcache_xmalloc and regcache_cpy.
4919 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4920 regcache_xfree.
4921 (deprecated_generic_find_dummy_frame): Update.
4922 (generic_read_register_dummy): Update. Use
4923 regcache_read_as_address.
4924 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4925 (generic_get_saved_register): Update. Use regcache_read.
4926
4927 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4928
4929 * Makefile.in (objfiles_h): Add $(bcache_h).
4930 * objfiles.h: Include "bcache.h".
4931
4932 * Makefile.in (symtab_h): Remove $(bcache_h).
4933 * symtab.h: Do not include "bcache.h".
4934
4935 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4936
4937 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4938 generic_func_frame_chain_valid.
4939
4940 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4941
4942 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4943 * config/i386/tm-fbsd.h: Likewise.
4944
4945 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4946
4947 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4948 generic_unwind_get_saved_register.
4949
4950 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4951
4952 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4953 * regcache.c (supply_register): Add missing argument to
4954 register_buffer call.
4955
4956 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4957
4958 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4959 Solaris /bin/grep does not not like it. From Peter Schauer.
4960
4961 2002-06-26 Tom Tromey <tromey@redhat.com>
4962
4963 * command.h (add_setshow_cmd): Declare.
4964 (add_setshow_cmd_full): Declare.
4965 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4966 returns void. Use add_setshow_cmd_full.
4967 (add_setshow_cmd_full): New function.
4968 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4969 (add_setshow_boolean_cmd): Likewise.
4970
4971 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4972
4973 * config/vax/tm-vax.h: Protect from multiple inclusion.
4974 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4975 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4976 * config/vax/tm-vaxbsd.h: ...here. New file.
4977 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4978
4979 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4980
4981 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4982 (BELIEVE_PCC_PROMOTION): Remove.
4983 (AP_REGNUM): Move to...
4984 * config/vax/nm-vax.h: ...here.
4985 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4986 (vax_breakpoint_from_pc): New function.
4987 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4988 and gdbarch_believe_pcc_promotion.
4989
4990 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4991
4992 * Makefile.in (vax_tdep_h): Define.
4993 (vax-tdep.o): Use $(vax_tdep_h).
4994 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4995 (vax_dump_tdep): New function.
4996 (_initialize_vax_tdep): Register vax_dump_tdep.
4997 * vax-tdep.h: Include osabi.h.
4998 (struct gdbarch_tdep): New.
4999
5000 2002-06-26 Andrew Cagney <cagney@redhat.com>
5001
5002 * frame.h (deprecated_generic_find_dummy_frame): Rename
5003 generic_find_dummy_frame.
5004 * blockframe.c (generic_find_dummy_frame): Make static.
5005 (deprecated_generic_find_dummy_frame): New function.
5006 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5007 generic_find_dummy_frame with deprecated_find_dummy_frame.
5008 (sh64_nofp_frame_init_saved_regs): Ditto.
5009 (sh_fp_frame_init_saved_regs): Ditto.
5010 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5011 (s390_frame_chain): Ditto.
5012 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5013
5014 2002-06-26 Grace Sainsbury <graces@redhat.com>
5015
5016 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5017 gdbarch vector are at the top.
5018 (NUM_REGS): Remove.
5019 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5020 (FRAME_ARGS_ADDRESS): Remove.
5021 (FRAME_LOCALS_ADDRESS): Remove.
5022 (FRAME_NUM_ARGS): Remove.
5023 (FRAME_ARGS_SKIP): Remove.
5024 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5025 (m68k_gdbarch_init): Add gdbarch initializations for macros
5026 undefined in tm-m68k.h
5027
5028 2002-06-26 Grace Sainsbury <graces@redhat.com>
5029
5030 * monitor.h: Add the function regname to monitor_ops
5031 structure. This way NUM_REGS does not have to be a constant.
5032 * monitor.c (monitor_fetch_register): Added support for regname
5033 function. The function is called if the array regnames is NULL.
5034 (monitor_store_register): Same.
5035 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5036 regnames array.
5037 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5038 cpu32bug_cmds.regname to point to new function.
5039 * abug-rom.c (abug_regname): Same as above.
5040 (init_abug_cmds): Same.
5041 * dbug-rom.c (dbug_regname): Same as above.
5042 (init_dbug_cmds): Same.
5043 * remote-est.c (est_regname): Same.
5044 (init_est_cmds): Same.
5045 * rom68k-rom.c (rom68k_regname): Same.
5046 (init_rom68k_cmds): Same.
5047
5048 2002-06-25 Tom Tromey <tromey@redhat.com>
5049
5050 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5051
5052 2002-06-25 Andrew Cagney <cagney@redhat.com>
5053
5054 * infrun.c (stop_registers): Change variable's type to ``struct
5055 regcache'''.
5056 (xmalloc_inferior_status): Delete function.
5057 (free_inferior_status): Delete function.
5058 (normal_stop): Use regcache_cpy.
5059 (struct inferior_status): Change type of fields ``stop_registers''
5060 and ``registers'' to ``struct regcache''.
5061 (write_inferior_status_register): Use regcache_write.
5062 (save_inferior_status): Instead of calling
5063 xmalloc_inferior_status, allocate the inf_status buffer directly.
5064 Use regcache_dup_no_passthrough and regcache_dup to save the
5065 buffers.
5066 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5067 Replace the stop_registers regcache instead of overriding it. Use
5068 regcache_xfree. Instead of calling free_inferior_status, xfree
5069 the buffer directly.
5070 (discard_inferior_status): Use regcache_xfree. Instead of calling
5071 free_inferior_status, xfree the buffer directly.
5072 (build_infrun): Use regcache_xmalloc.
5073 (_initialize_infrun): Delete redundant call to build_infrun.
5074
5075 * Makefile.in (infcmd.o): Add $(regcache_h).
5076
5077 * infcmd.c: Include "regcache.h".
5078 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5079 obtain the address of `stop_registers' register buffer.
5080 (print_return_value): Ditto.
5081
5082 * inferior.h (struct regcache): Add opaque declaration.
5083 (stop_registers): Change variable's declared type to ``struct
5084 regcache''.
5085
5086 2002-06-24 Tom Tromey <tromey@redhat.com>
5087
5088 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5089 * target.c (initialize_targets): Fixed typo in
5090 trust-readonly-sections `show' documentation.
5091
5092 * main.c: Marked all strings with _().
5093
5094 2002-06-24 Don Howard <dhoward@redhat.com>
5095
5096 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5097 that means max CORE_ADDR+1.
5098 (lookup_mem_region): Ditto.
5099 (mem_info_command): Ditto.
5100
5101 2002-06-24 Grace Sainsbury <graces@redhat.com>
5102
5103 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5104 (REGISTER_BYTES_OK): Remove.
5105 (REGISTER_BYTES): Remove.
5106 (STORE_STRUCT_RETURN): Remove.
5107 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5108 (STORE_RETURN_VALUE): Remove.
5109 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5110 (FRAME_CHAIN): Remove.
5111 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5112 (FRAME_SAVED_PC): Remove.
5113 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5114 (m68k_store_struct_return): Add.
5115 (m68k_deprecated_extract_return_value): Add.
5116 (m68k_deprecated_extract_struct_value_address): Add.
5117 (m68k_store_return_value): Add.
5118 (m68k_frame_chain): Add.
5119 (m68k_frameless_function_invocation): Add.
5120 (m68k_frame_saved_pc): Add.
5121 (m68k_gdbarch_init): added set_gdbarch calls for new
5122 functions and deleted macros.
5123
5124 2002-06-23 Tom Tromey <tromey@redhat.com>
5125
5126 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5127 (ALLDEPFILES): Likewise.
5128 (udiheaders): Removed.
5129 (udip2soc.o): Likewise.
5130 (udi2go32.o): Likewise.
5131 (udr.o): Likewise.
5132 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5133
5134 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5135
5136 * infrun.c (_initialize_infrun): Delete unnecessary call to
5137 build_infrun.
5138
5139 * regcache.h: Update comments describing the regcache_cpy family
5140 of functions.
5141 (regcache_save, regcache_restore): Delete declaration.
5142 (regcache_save_no_passthrough): Delete declaration.
5143 (regcache_restore_no_passthrough): Delete declaration.
5144 * regcache.c (regcache_save): Delete function.
5145 (regcache_save_no_passthrough): Delete function.
5146 (regcache_restore): Delete function.
5147 (regcache_restore_no_passthrough): Delete function.
5148
5149 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5150
5151 * config/m68k/tm-m68k.h: Fix typo.
5152 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5153 (m68k_frame_init_saved_regs): Declare.
5154
5155 2002-06-21 Jim Blandy <jimb@redhat.com>
5156
5157 Remove some vestiges of Harris 88k support.
5158 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5159 register numbering quirk.
5160 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5161 odd symbols occurring in Harris 88k ELF targets.
5162
5163 2002-06-21 Tom Tromey <tromey@redhat.com>
5164
5165 * gdb_locale.h: New file.
5166 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5167 (defs_h): Added gdb_locale.h.
5168 * configure, config.in: Rebuilt.
5169 * configure.in (PACKAGE): Define.
5170 * defs.h: Include gdb_locale.h.
5171 * main.c (captured_main): Call setlocale, bindtextdomain,
5172 textdomain.
5173
5174 2002-06-21 Dave Brolley <brolley@redhat.com>
5175
5176 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5177 * config/frv/frv.mt: New file.
5178 * config/frv/tm-frv.h: New file.
5179 * configure.tgt: Support frv-*-*.
5180 * Makefile.in (frv-tdep.o): New target.
5181 * frv-tdep.c: New file.
5182 * NEWS: Mention frv.
5183
5184 2002-06-21 Dave Brolley <brolley@redhat.com>
5185
5186 * MAINTAINERS: Add self to "Write After Approval" list.
5187
5188 2002-06-21 Grace Sainsbury <graces@redhat.com>
5189
5190 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5191 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5192 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5193 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5194 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5195
5196 * m68k-tdep.c: Include arch-utils.h
5197 (m68k_register_raw_size): Add.
5198 (m68k_register_virtual_size): Add.
5199 (m68k_register_virtual_type): Add.
5200 (m68k_register_name): Add.
5201 (m68k_stack_align): Add.
5202 (m68k_register_byte): Add.
5203 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5204 tm-m68k.h.
5205
5206 2002-06-21 Grace Sainsbury <graces@redhat.com>
5207
5208 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5209 m68k_find_saved_regs.
5210 (m68k_pop_frame): Removed saved_regs structure, and replaced
5211 references to it with frame->saved_regs.
5212 (m68k_gdbarch_init): Added function calls to initialize the
5213 gdbarch structure.
5214 (m68k_fix_call_dummy): Add.
5215 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5216 (CALL_DUMMY): Remove.
5217 (CALL_DUMMY_LENGTH): Remove.
5218 (CALL_DUMMY_START_OFFSET): Remove.
5219 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5220 (FIX_CALL_DUMMY): Remove.
5221 (PUSH_DUMMY_FRAME): Remove.
5222 (POP_FRAME): Remove.
5223
5224 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5225
5226 * parse.c (parse_fprintf): New function used to avoid calls to
5227 fprintf in bison parser generated debug code.
5228 * parser-defs.h: Declaration of new parse_fprintf function.
5229 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5230 Set YYDEBUG to 1 by default.
5231 Set YYFPRINTF as parse_fprintf.
5232
5233 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5234
5235 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5236 encoding anymore.
5237 (pointer_encoding, enum ptr_encoding): New.
5238 (execute_cfa_program): Take care about pointer encoding.
5239 (dwarf2_build_frame_info): Only call parse_frame_info for
5240 .debug_frame and .eh_frame.
5241 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5242 fixed augmentation handling, added relative addressing,
5243 ignore duplicate FDEs. Added comments.
5244 * dwarf2cfi.c: Reindented.
5245
5246 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5247
5248 * event-top.c (command_handler): Don't use space_at_cmd_start
5249 unless there is sbrk() on the host. Assign time and space data
5250 to union fields of the appropriate length.
5251
5252 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5253
5254 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5255 x86_64_register_name. Return type changed to 'const char *'.
5256 (x86_64_register_name2nr): Rename to x86_64_register_number.
5257 (x86_64_gdbarch_init): Update to reflect the change.
5258 * x86-64-tdep.h: Ditto.
5259 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5260 (supply_fpregset): Ditto.
5261
5262 2002-06-19 Andrew Cagney <cagney@redhat.com>
5263
5264 * regcache.h: Update copyright.
5265 (struct regcache, struct gdbarch): Add opaque declarations.
5266 (current_regcache): Declare global variable.
5267 (regcache_read, regcache_write): Add gdbarch parameter.
5268 (regcache_save, regcache_save_no_passthrough)
5269 (regcache_restore, regcache_restore_no_passthrough)
5270 (regcache_dup, regcache_dup_no_passthrough)
5271 (regcache_cpy, regcache_cpy_no_passthrough)
5272 (deprecated_grub_regcache_for_registers)
5273 (deprecated_grub_regcache_for_register_valid)
5274 (regcache_valid_p): Add function declarations.
5275
5276 * regcache.c: Update copyright.
5277 (regcache_descr_handle): New global variable.
5278 (struct regcache_descr): Define.
5279 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5280 (regcache_descr, xfree_regcache_descr): New functions.
5281 (struct regcache): Define.
5282 (regcache_xmalloc, regcache_xfree): New functions.
5283 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5284 (regcache_dup, regcache_dup_no_passthrough): New functions.
5285 (regcache_valid_p, regcache_read_as_address): New functions.
5286 (deprecated_grub_regcache_for_registers): New function.
5287 (deprecated_grub_regcache_for_register_valid): New function.
5288 (current_regcache): New global variable.
5289 (register_buffer): Add regcache parameter. Update calls.
5290 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5291 (read_register_gen, write_register_gen): Update register_buffer
5292 call. Test for legacy_p instead of gdbarch_register_read_p or
5293 gdbarch_register_write_p.
5294 (regcache_collect): Update register_buffer call.
5295 (build_regcache): Rewrite. Use deprecated grub functions.
5296 (regcache_save, regcache_save_no_passthrough): New functions.
5297 (regcache_restore, regcache_restore_no_passthrough): New
5298 functions.
5299 (_initialize_regcache): Create the regcache_data_handle. Swap
5300 current_regcache global variable.
5301
5302 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5303 parameter to regcache_read and regcache_write calls.
5304 (sh4_register_read): Ditto.
5305 (sh64_pseudo_register_read): Ditto.
5306 (sh64_register_read): Ditto.
5307 (sh_pseudo_register_write): Ditto.
5308 (sh4_register_write): Ditto.
5309 (sh64_pseudo_register_write): Ditto.
5310 (sh64_register_write): Ditto.
5311
5312 * defs.h (XCALLOC): Define.
5313
5314 2002-06-19 Grace Sainsbury <graces@redhat.com>
5315
5316 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5317 * m68k-tdep.c (m68k_gdbarch_init): Added.
5318 (m68k_dump_tdep): Added.
5319
5320 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5321
5322 * ada-lang.c (fill_in_ada_prototype): Update comment.
5323
5324 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5325
5326 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5327 MIPS_ABI_LAST.
5328 (mips_abi_string, mips_abi_strings): New.
5329 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5330 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5331 tdep->mips_abi_string. Honor mips_abi_string. Default to
5332 O32 if no ABI is found.
5333 (mips_dump_tdep): Use mips_abi_strings.
5334 (mips_abi_update): New function.
5335 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5336 ``set mips abi'' and ``show mips abi''. Check the size of
5337 mips_abi_strings.
5338
5339 2002-06-19 Andrew Cagney <cagney@redhat.com>
5340
5341 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5342 constant.
5343
5344 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5345
5346 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5347 current frame using only the first stack size adjustment. All
5348 subsequent size adjustments are not considered to be part of
5349 the "static" part of the current frame.
5350 Compute the address of the saved registers relative to the
5351 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5352 in use in this frame.
5353
5354 2002-06-18 Don Howard <dhoward@redhat.com>
5355
5356 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5357 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5358 suggesting this solution.
5359
5360 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5361
5362 * config/romp/xm-rtbsd.h: Delete file.
5363 * config/romp/rtbsd.mh: Delete file.
5364
5365 2002-06-18 Keith Seitz <keiths@redhat.com>
5366
5367 * breakpoint.c (condition_command): Post breakpoint_modify
5368 when a condition is added to an existing breakpoint.
5369 (commands_command): Likewise for commands.
5370 (set_ignore_count): Likewise for ignore counts.
5371 If no tty, do not simply return, still need to send event
5372 notification.
5373 (ignore_command): Only print a newline if the command came
5374 from a tty.
5375 Don't call breakpoints_changed, since this is now properly
5376 handled by set_ignore_count.
5377
5378 2002-06-18 Andrew Cagney <cagney@redhat.com>
5379
5380 * MAINTAINERS: Note that cris-elf target can be compiled with
5381 -Werror.
5382 * cris-tdep.c (cris_register_name): Make return type constant.
5383 (cris_breakpoint_from_pc): Ditto.
5384
5385 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5386
5387 * frame.h (struct frame_info): Change type of context to
5388 'struct context'.
5389
5390 2002-06-17 Andrew Cagney <cagney@redhat.com>
5391
5392 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5393 pointer.
5394 * gdbarch.h, gdbarch.c: Regenerate.
5395 * config/mips/tm-mips.h (mips_register_name): Update.
5396 * i386-tdep.h (i386_register_name): Update.
5397 * mips-tdep.c (mips_register_name): Update
5398 * alpha-tdep.c (alpha_register_name): Update.
5399 * arch-utils.c (legacy_register_name): Update.
5400 * arch-utils.h (legacy_register_name): Update.
5401 * avr-tdep.c (avr_register_name): Update.
5402 * ia64-tdep.c (ia64_register_name): Update.
5403 * i386-tdep.c (i386_register_name): Update.
5404 * sparc-tdep.c (sparc32_register_name): Update.
5405 (sparc64_register_name): Update.
5406 (sparclite_register_name): Update.
5407 (sparclet_register_name): Update.
5408 * sh-tdep.c (sh_generic_register_name): Update.
5409 (sh_sh_register_name): Update.
5410 (sh_sh3_register_name): Update.
5411 (sh_sh3e_register_name): Update.
5412 (sh_sh_dsp_register_name): Update.
5413 (sh_sh3_dsp_register_name): Update.
5414 (sh_sh4_register_name): Update.
5415 (sh_sh64_register_name): Update.
5416 * s390-tdep.c (s390_register_name): Update.
5417 * rs6000-tdep.c (rs6000_register_name): Update.
5418 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5419 (ns32k_register_name_32382): Update.
5420 * d10v-tdep.c (d10v_ts2_register_name): Update.
5421 (d10v_ts3_register_name): Update.
5422 * xstormy16-tdep.c (xstormy16_register_name): Update.
5423 * vax-tdep.c (vax_register_name): Update.
5424 * v850-tdep.c (v850_register_name): Update.
5425 * m68hc11-tdep.c (m68hc11_register_name): Update.
5426 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5427 (am33_register_name): Update.
5428
5429 2002-06-17 Grace Sainsbury <graces@redhat.com>
5430
5431 * m68k-tdep.c: Reindented.
5432
5433 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5434
5435 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5436 list of predefined types.
5437
5438 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5439
5440 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5441 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5442 REGISTER_CONVERT_TO_RAW): Remove defines.
5443 (i386_register_virtual_type, i386_register_convertible,
5444 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5445 Remove prototypes.
5446 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5447 macros mentioned above.
5448
5449 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5450 (i386lynx_saved_pc_after_call): Remove prototype.
5451 * i386ly-tdep.c: Include "i386-tdep.h".
5452 (i386lynx_saved_pc_after_call): Make static. Use
5453 read_memory_nobpt instead of read_memory. Use
5454 read_memory_unsigned_integer instead of read_memory_integer.
5455 (i386lynx_init_abi): New function.
5456 (i386lynx_coff_osabi_sniffer): New function.
5457 (_initialize_i386bsd_tdep): New function.
5458
5459 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5460 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5461 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5462 (i386_fix_call_dummy): Remove prototype.
5463 * i386-tdep.c (i386_call_dummy_words): New variable.
5464 (i386_gdbarch_init): Adjust for removal of the
5465 macros mentioned above.
5466
5467 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5468
5469 * command.h (add_setshow_auto_boolean_cmd): Replace
5470 add_set_auto_boolean_cmd.
5471 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5472 add_set_auto_boolean_cmd.
5473 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5474 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5475 mask-address'' command.
5476 (show_mask_address): Add cmd parameter.
5477 * remote.c (add_packet_config_cmd): Update. Change type of
5478 set_func and show_func to cmd_sfunc_ftype.
5479 (_initialize_remote): Update `set remote Z-packet'
5480 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5481 (show_remote_protocol_e_packet_cmd): Ditto.
5482 (show_remote_protocol_E_packet_cmd): Ditto.
5483 (show_remote_protocol_P_packet_cmd): Ditto.
5484 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5485 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5486 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5487 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5488 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5489 (show_remote_protocol_Z_packet_cmd): Ditto.
5490 (show_remote_protocol_binary_download_cmd): Ditto.
5491 (show_remote_cmd): Pass NULL to all of above.
5492
5493 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5494
5495 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5496 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5497 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5498 POP_FRAME): Remove defines.
5499 (i386_push_arguments, i386_store_struct_return,
5500 i386_extract_return_value, i386_store_return_value,
5501 i386_extract_struct_value_address, i386_push_dummy_frame,
5502 i386_pop_frame): Renove prototypes.
5503 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5504 macros mentioned above.
5505
5506 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5507
5508 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5509 add_set_boolean_cmd.
5510 (add_setshow_cmd): New function.
5511 * command.h (add_setshow_boolean_cmd): Replace
5512 add_set_boolean_cmd.
5513 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5514 and ``set rdiromatzero''.
5515 * maint.c (_initialize_maint_cmds): Update commented out code.
5516 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5517 * target.c (initialize_targets): Update `set
5518 trust-readonly-sections'.
5519 * remote.c (_initialize_remote): Update `set remotebreak'.
5520
5521 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5522
5523 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5524 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5525 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5526 fit into multi-arch framework.
5527 (i386_breakpoint_from_pc): New function.
5528 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5529 above.
5530
5531 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5532 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5533 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5534 (i386_frameless_function_invocation, i386_frame_num_args,
5535 i386_frame_init_saved_regs): Remove prototypes.
5536 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5537 macros mentioned above.
5538
5539 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5540
5541 * cli/cli-decode.c (set_cmd_cfunc): Update.
5542 (set_cmd_sfunc): Update.
5543 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5544 (set_cmd_sfunc, set_cmd_cfunc): Update.
5545 * cli/cli-decode.h: Update.
5546
5547 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5548
5549 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5550 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5551
5552 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5553
5554 * defs.h (auto_boolean): Declare enum.
5555 * command.h (cmd_auto_boolean): Delete enum.
5556 * mips-tdep.c (mask_address_var): Update.
5557 (mips_mask_address_p): Update.
5558 (show_mask_address): Update.
5559 * remote.c (struct packet_config): Update.
5560 (update_packet_config): Update.
5561 (show_packet_config_cmd): Update.
5562 (packet_ok): Update.
5563 (add_packet_config_cmd): Update.
5564 (_initialize_remote):
5565 * command.h: Update.
5566 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5567 (do_setshow_command): Update.
5568 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5569 * cli/cli-decode.h: Update.
5570
5571 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5572
5573 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5574 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5575 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5576 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5577 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5578 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5579
5580 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5581 list of DJGPP COFF targets.
5582
5583 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5584 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5585 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5586 (FP0_REGNUM): Remove define.
5587 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5588 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5589 (i386_register_virtual_size): Remove protoype.
5590 * i386-tdep.c (i386_register_virtual_size): Removed.
5591 (i386_extract_return_value, i386_store_return_value): Use
5592 FP0_REGNUM instead of NUM_FREGS to determine whether the
5593 floating-point registers are available.
5594 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5595 Adjust for removal of macros mentioned above.
5596
5597 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5598
5599 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5600 comments.
5601 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5602 Remove prototypes.
5603 (supply_gregset, fill_gregset): Remove use of register keyword and
5604 remove declaration for regmap. Use I386_NUM_GREGS instead of
5605 NUM_REGS and NUM_FREGS.
5606 (FPREGSET_FSAVE_OFFSET): Remove.
5607 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5608 NUM_FREGS to determine whether the floating-point registers are
5609 available.
5610
5611 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5612 gnu_store_registers): Replace usage of NUM_GREGS with
5613 I386_NUM_GREGS.
5614
5615 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5616 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5617 usage of NUM_GREGS with I386_NUM_GREGS.
5618
5619 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5620
5621 * i386bsd-nat.c: Include "i386-tdep.h".
5622 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5623 I386_NUM_GREGS.
5624
5625 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5626 and associated comment. They no longer make any sense, since we
5627 don't use this file anymore on Linux.
5628
5629 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5630 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5631 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5632 elements in these arrays.
5633 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5634 MAX_NUM_REGS.
5635
5636 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5637
5638 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5639 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5640
5641 2002-06-14 Andrew Cagney <cagney@redhat.com>
5642
5643 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5644 EXTRACT_RETURN_VALUE.
5645 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5646 EXTRACT_STRUCT_VALUE_ADDRESS.
5647 * gdbarch.h, gdbarch.c: Regenerate.
5648
5649 * values.c (value_being_returned): Handle
5650 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5651 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5652
5653 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5654 * arm-tdep.c (arm_gdbarch_init): Update.
5655 * avr-tdep.c (avr_gdbarch_init): Update.
5656 * cris-tdep.c (cris_gdbarch_init): Update.
5657 * d10v-tdep.c (d10v_gdbarch_init): Update.
5658 * ia64-tdep.c (ia64_gdbarch_init): Update.
5659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5660 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5661 * s390-tdep.c (s390_gdbarch_init): Update.
5662 * sh-tdep.c (sh_gdbarch_init): Update.
5663 * s390-tdep.c (s390_gdbarch_init): Update.
5664 * sparc-tdep.c (sparc_gdbarch_init): Update.
5665 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5666 * v850-tdep.c (v850_gdbarch_init): Update.
5667 * vax-tdep.c (vax_gdbarch_init): Update.
5668 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5669 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5670
5671 * config/arc/tm-arc.h: Update.
5672 * config/d30v/tm-d30v.h: Update.
5673 * config/fr30/tm-fr30.h: Update.
5674 * config/h8300/tm-h8300.h: Update.
5675 * config/h8500/tm-h8500.h: Update.
5676 * config/i386/tm-i386.h: Update.
5677 * config/i386/tm-ptx.h: Update.
5678 * config/i386/tm-symmetry.h: Update.
5679 * config/i960/tm-i960.h: Update.
5680 * config/m32r/tm-m32r.h: Update.
5681 * config/m68k/tm-delta68.h: Update.
5682 * config/m68k/tm-linux.h: Update.
5683 * config/m68k/tm-m68k.h: Update.
5684 * config/m88k/tm-m88k.h: Update.
5685 * config/mcore/tm-mcore.h: Update.
5686 * config/mips/tm-mips.h: Update.
5687 * config/mn10200/tm-mn10200.h: Update.
5688 * config/pa/tm-hppa.h: Update.
5689 * config/pa/tm-hppa64.h: Update.
5690 * config/sparc/tm-sp64.h: Update.
5691 * config/sparc/tm-sparc.h: Update.
5692 * config/sparc/tm-sparclet.h: Update.
5693 * config/z8k/tm-z8k.h: Update.
5694
5695 2002-06-14 Andrew Cagney <cagney@redhat.com>
5696
5697 * Makefile.in (i386_linux_tdep_h): Define.
5698 (i386_tdep_h, i387_tdep_h): Define.
5699 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5700 $(i386_tdep_h) and $(i387_tdep_h).
5701 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5702
5703 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5704
5705 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5706 Already covered by the default.
5707
5708 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5709 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5710 (i386_gdbarch_init): Initialize long_double_format and long_double
5711 bit.
5712
5713 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5714 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5715 Move these to ...
5716 * config/i386/i386sol2.mh: ... here.
5717 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5718 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5719 (SIGCONTEXT_PC_OFFSET): Remove define.
5720 (IN_SIGTRAMP): Remove define.
5721 * i386-sol2-tdep.c: New file.
5722
5723 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5724 * config/i386/tm-i386nw.h: Removed.
5725
5726 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5727 USE_STRUCT_CONVENTION): Remove defines.
5728 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5729 (get_longjmp_target): Remove prototype.
5730 (IN_SIGTRAMP): Remove define.
5731 (i386bsd_in_sigtramp): Remove prototype.
5732 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5733 function. Update comment accordingly
5734 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5735 (FRAME_SAVED_PC): Remove define.
5736 (i386bsd_frame_saved_pc): Remove prototype.
5737 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5738 GET_LONGJMP_TARGET): Remove defines.
5739 (get_longjmp_target): Remove prototype.
5740 (IN_SIGTRAMP): Remove define.
5741 (i386bsd_in_sigtramp): Remove prototype.
5742 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5743 function. Update comment accordingly
5744 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5745 (FRAME_SAVED_PC): Remove define.
5746 (i386bsd_frame_saved_pc): Remove prototype.
5747 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5748 Remove prototype.
5749 (USE_STRUCT_CONVENTION): Remove prototype.
5750 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5751 declaration.
5752 (_initialize_i386bsd_nat): Revise logic to determine some
5753 constants at compile time when compiling a native GDB. Warn if
5754 things don't match up with what we expect.
5755 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5756 Remove variables.
5757 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5758 to use date stored in `struct gdbarch_tdep'.
5759 (i386bsd_sigcontext_offset): Remove varaible.
5760 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5761 stored in `struct gdbarch_tdep'.
5762 (i386bsd_frame_saved_pc): Make static.
5763 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5764 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5765 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5766 i386fbsd4_sc_pc_offset): New variables.
5767 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5768 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5769 functions.
5770 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5771 functions.
5772 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5773 Modify the value of i386fbsd_sigtramp_start and
5774 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5775 i386fbsd_sigtramp_end.
5776 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5777 function.
5778
5779 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5780 define to i386-linux-tdep.h.
5781 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5782 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5783 defines.
5784 (i386_linux_register_name, i386_linux_register_byte,
5785 i386_linux_register_raw_size): Remove prototypes.
5786 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5787 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5788 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5789 TARGET_WRITE_PC): Remove defines.
5790 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5791 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5792 i386_linux_write_pc): Remove prototypes.
5793 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5794 (get_longjmp_target): Remove prototype.
5795 * i386-linux-tdep.h: New file.
5796 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5797 * i386-linux-tdep.c: Include "i386-tdep.h" and
5798 "i386-linux-tdep.h".
5799 (i386_linux_register_name, i386_linux_register_byte,
5800 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5801 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5802 Make static.
5803 (i386_linux_init_abi): New function.
5804 (_initialize_i386_linux_tdep): New function.
5805
5806 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5807 (i386_saved_pc_after_call): Remove prototype.
5808 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5809 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5810 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5811 (i386_register_name, i386_stab_reg_to_regnum,
5812 i386_dwarf_reg_to_regnum): Remove prototypes.
5813 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5814 SIZEOF_SSE_REGS): Remove defines.
5815 (REGISTER_BYTES): Remove define.
5816 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5817 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5818 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5819 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5820 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5821 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5822 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5823 (get_longjmp_target): Remove prototype.
5824 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5825 (sigtramp_saved_pc): Remove define.
5826 (i386v4_sigtramp_saved_pc): Remove prototype.
5827 * config/i386/tm-go32.h (FRAME_CHAIN,
5828 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5829 (i386go32_frame_saved_pc): Remove prototype.
5830 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5831 (get_longjmp_target): Remove prototype.
5832 * i386-tdep.h: Include "osabi.h".
5833 (enum i386_abi): Removed.
5834 (enum struct_return): New enum.
5835 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5836 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5837 sc_pc_offset members.
5838 (i386_gdbarch_register_os_abi): Remove prototype.
5839 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5840 I386_SSE_NUM_REGS): New defines.
5841 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5842 I386_SSE_SIZEOF_REGS): New defines.
5843 (i386_register_name, i386_register_byte, i386_register_raw_size):
5844 New prototypes.
5845 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5846 (i386bsd_sigtramp_saved_pc): New prototype.
5847 * i386-tdep.c: Don't include "elf-bfd.h".
5848 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5849 i386_frame_chain, i386_saved_pc_after_call): Make static.
5850 (i386_frame_saved_pc): Rewrite to call architecture dependent
5851 function to deal with signal handlers. Make static.
5852 (i386go32_frame_saved_pc): Removed.
5853 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5854 Removed.
5855 (i386_get_longjmp_target): New function.
5856 (default_struct_convention, pcc_struct_convention,
5857 reg_struct_convention, valid_conventions, struct_convention): New
5858 variables.
5859 (i386_use_struct_convention): New function.
5860 (i386v4_sigtramp_saved_pc): Renamed to
5861 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5862 (i386_pc_in_sigtramp): New function.
5863 (i386_abi_names): Removed.
5864 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5865 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5866 Removed.
5867 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5868 i386_gdbarch_register_os_abi): Removed.
5869 (struct i386_abi_handler): Removed.
5870 (i386_abi_handler_list): Removed.
5871 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5872 functions.
5873 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5874 i386_nw_init_abi): New functions.
5875 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5876 Use set_gdbarch_xxx() calls instead of relying on macros for a
5877 number of calls.
5878 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5879 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5880 Register the various architecture variants defined in this file.
5881
5882 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5883
5884 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5885 (struct main_type): Remove arg_types member. Update comments for
5886 struct field.
5887 (TYPE_ARG_TYPES): Remove.
5888 (TYPE_FN_FIELD_ARGS): Update.
5889 (smash_to_method_type): Update prototype.
5890
5891 * c-typeprint.c (cp_type_print_method_args): Take method type
5892 instead of argument list. Use new argument layout. Simplify.
5893 (c_type_print_args): Use new argument layout. Simplify.
5894 (c_type_print_base): Update call to cp_type_print_method_args.
5895 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5896 argument; use die->type instead. Update call to
5897 smash_to_method_type.
5898 (read_structure_scope): Update call to dwarf2_add_member_fn.
5899 * gdbtypes.c (allocate_stub_method): Update comment.
5900 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5901 Use new argument layout.
5902 (check_stub_method): Use new argument layout. Don't count
5903 void as an argument.
5904 (print_arg_types): Update comments. Use new argument layout.
5905 (recursive_dump_type): Don't print arg_types member.
5906 * hpread.c (hpread_read_struct_type): Use new argument layout.
5907 (fixup_class_method_type): Likewise.
5908 (hpread_type_lookup): Likewise.
5909 * stabsread.c (read_type): Update calls to read_args and
5910 smash_to_method_type.
5911 (read_args): Use new argument layout. Simplify.
5912 * valops.c (typecmp): Use new argument layout. Update parameters
5913 and comments. Simplify.
5914 (hand_function_call): Use new argument layout.
5915 (search_struct_method): Update call to typecmp.
5916 (find_overload_match): Use new argument layout.
5917
5918 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5919
5920 * NEWS: Mention multithreaded debug support for gdbserver.
5921
5922 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5923
5924 * MAINTAINERS: Mention NEWS.
5925
5926 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5929 (struct mips_objfile_private, compare_pdr_entries): New.
5930 (non_heuristic_proc_desc): Read the ".pdr" section if it
5931 is present.
5932
5933 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5934
5935 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5936 (arm_debug): New static variable.
5937 (_initialize_arm_tdep): Add ``set debug arm'' command.
5938
5939 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5940
5941 * Makefile.in (sim_arm_h): Define.
5942 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5943 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5944 (arm_register_sim_regno): New function, map an internal REGNUM
5945 onto a simulator register number.
5946 (arm_gdbarch_init): Set register_sim_regno.
5947
5948 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5949
5950 * MAINTAINERS: Add self.
5951
5952 2002-06-11 Jim Blandy <jimb@redhat.com>
5953
5954 * source.c (source_info): Mention whether the symtab has
5955 information about preprocessor macros.
5956
5957 Call the command `info macro', not `show macro'.
5958 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5959 Fix error message.
5960 (_initialize_macrocmd): Register `info_macro_command' in
5961 `infolist', not `showlist'.
5962
5963 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5964
5965 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5966 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5967 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5968 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5969 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5970 unconditionally.
5971 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5972 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5973 (_initialize_mips_tdep): Remove dead code.
5974 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5975 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5976 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5977 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5978 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5979 MIPS_LAST_FP_ARG_REGNUM): Remove.
5980
5981 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5982
5983 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5984 (unwind_tmp_obstack_free, parse_frame_info)
5985 (update_context, cfi_read_fp, cfi_write_fp)
5986 (cfi_frame_chain, cfi_init_extra_frame_info)
5987 (cfi_virtual_frame_pointer): Use the above function.
5988 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5989
5990 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5991
5992 * v850-tdep.c (v850_type_is_scalar): New function.
5993 (v850_use_struct_convention): Match current gcc implementation
5994 as close as possible.
5995 (v850_push_arguments): Fix stack_offset handling. Don't write
5996 struct_addr into register. This is done by v850_store_struct_return.
5997 (v850_extract_return_value): Care for structs.
5998 (v850_store_return_value): Ditto.
5999 (v850_store_struct_return): Actually write address.
6000
6001 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6002
6003 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6004 without debug information too.
6005
6006 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6007
6008 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6009 Make multi-arch pure.
6010 * gdbarch.h, gdbarch.c: Re-generate.
6011 * arm-tdep.c (arm_print_float_info): Update.
6012 * arch-utils.h (default_print_float_info): Update.
6013 * arch-utils.c (default_print_float_info): Update.
6014 * infcmd.c (float_info): Update call.
6015
6016 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6017
6018 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6019 the front of the initialize list.
6020
6021 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6022
6023 * infrun.c (struct inferior_status): Replace fields
6024 selected_frame_address and selected_level with field
6025 selected_frame_id.
6026 (save_inferior_status): Update. Use get_frame_id.
6027 (struct restore_selected_frame_args): Delete.
6028 (restore_selected_frame): Update. Use frame_find_by_id.
6029 (restore_inferior_status): Update.
6030
6031 * breakpoint.h (struct breakpoint): Change type of
6032 watchpoint_frame to frame_id.
6033 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6034 call to get_current_frame.
6035 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6036 get_current_frame.
6037 (watchpoint_check): Use frame_find_by_id.
6038
6039 * frame.h (record_selected_frame): Delete declaration.
6040 * stack.c (record_selected_frame): Delete function.
6041
6042 * frame.h (struct frame_id): Define.
6043 (get_frame_id): Declare.
6044 (frame_find_by_id): Declare.
6045 * frame.c (frame_find_by_id): New function.
6046 (get_frame_id): New function.
6047
6048 2002-06-10 Andrey Volkov <avolkov@transas.com>
6049
6050 * ser-e7kpc.c: Fix duplicated define and call of
6051 _initialize_ser_e7000pc
6052
6053 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6054
6055 * signals/signals.c (target_signal_from_host): Fix #ifdef
6056 SIGRTMIN case.
6057 (do_target_signal_to_host): Likewise.
6058
6059 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6060
6061 * mips-tdep.c (mips_find_abi_section): New function.
6062 (mips_gdbarch_init): Call it.
6063
6064 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6065
6066 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6067 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6068 after Andrew's 2002-06-08 gdbarch change.
6069
6070 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6071
6072 * i386-linux-nat.c (suppy_gregset): Don't supply
6073 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6074 register cache.
6075 (fill_gregset): Don't fetch it under the same circumstances.
6076
6077 2002-06-09 Andrew Cagney <cagney@redhat.com>
6078
6079 * Makefile.in (callback_h): Define.
6080 (remote_sim_h): Update path to remote-sim.h.
6081 (remote-rdp.o): Add $(callback_h).
6082 (remote-sim.o): Use $(callback_h).
6083 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6084 * remote-rdp.c: Include "gdb/callback.h".
6085
6086 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6087
6088 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6089 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6090
6091 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6092
6093 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6094 * rdi-share/serpardr.c: Ditto.
6095 * rdi-share/unixcomm.c: Ditto.
6096 * rdi-share/serdrv.c: Ditto.
6097 * rdi-share/hostchan.h: Ditto.
6098 * rdi-share/hostchan.c: Ditto.
6099 * rdi-share/host.h: Ditto.
6100 * rdi-share/devsw.c: Ditto.
6101
6102 * objfiles.h: Change type of obj_private to void pointer.
6103 * pa64solib.c: Update copyright. Don't include "assert.h", use
6104 strcmp instead of STREQ, use LONGEST, do not use PTR
6105 * somsolib.c: Ditto.
6106
6107 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6108 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6109 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6110
6111 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6112
6113 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6114 (default_get_saved_register): Delete function.
6115 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6116 generic_unwind_get_saved_register.
6117 * gdbarch.h, gdbarch.c: Re-generate.
6118
6119 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6120
6121 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6122 generic_func_frame_chain_valid.
6123 * gdbarch.h, gdbarch.c: Re-generate.
6124 * blockframe.c (generic_func_frame_chain_valid): Only check
6125 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6126 passing FP to PC_IN_CALL_DUMMY.
6127 Fix PR gdb/360.
6128
6129 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6130
6131 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6132 (register_gdbarch_data): Initialize init_p.
6133 (gdbarch_data): Initialize data pointer using the init function.
6134 (init_gdbarch_data): Delete function.
6135 (gdbarch_update_p): Update.
6136 (initialize_non_multiarch): Update.
6137 (struct gdbarch): Add field initialized_p.
6138 * gdbarch.h, gdbarch.c: Re-generate.
6139
6140 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6141
6142 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6143 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6144 better do the things actually here.
6145 * x86-64-tdep.c (x86_64_register_name2nr): New.
6146 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6147 (x86_64_gdbarch_init): Respect the above change.
6148 * x86-64-tdep.h (x86_64_register_name2nr)
6149 (x86_64_register_nr2name): Add prototypes.
6150 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6151
6152 2002-06-06 Michael Snyder <msnyder@redhat.com>
6153
6154 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6155 Delete extra braces and re-indent.
6156 (d10v_store_return_value): Char return values
6157 must be shifted over by one byte in R0.
6158 (d10v_extract_return_value): Delete extra braces, re-indent.
6159
6160 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6161
6162 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6163 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6164 (d10v_integer_to_address): Rewrite.
6165 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6166 the d10v specific functions which take care of converting to the
6167 correct space.
6168
6169 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6170
6171 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6172 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6173
6174 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6175
6176 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6177 includes.
6178 * config/tm-linux.h: Ditto.
6179 * config/alpha/tm-alphalinux.h: Ditto.
6180 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6181 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6182 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6183 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6184 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6185 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6186 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6187 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6188 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6189 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6190 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6191 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6192 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6193 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6194 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6195 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6196 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6197 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6198 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6199 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6200 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6201 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6202 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6203 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6204 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6205 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6206 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6207 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6208 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6209 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6210 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6211 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6212 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6213 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6214 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6215 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6216 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6217
6218 2002-05-04 Aidan Skinner <aidan@velvet.net>
6219
6220 * ada-exp.tab.c: New file
6221 * ada-exp.y: New file
6222 * ada-lang.c: New file
6223 * ada-lang.h: New file
6224 * ada-lex.c: New file
6225 * ada-lex.l: New file
6226 * ada-tasks.c: New file
6227 * ada-typeprint.c: New file
6228 * ada-valprint.c: New file
6229
6230 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6231
6232 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6233 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6234
6235 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6236
6237 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6238 insetead of ppc-linux-tdep.o.
6239 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6240 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6241
6242 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6243
6244 2002-05-07 Christian Groessler <chris@groessler.org>
6245 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6246 bit register contents for little endian hosts.
6247
6248 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6249
6250 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6251 any maintainer.
6252
6253 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6254
6255 * gdbarch.h: Regenerate.
6256
6257 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6258
6259 * MAINTAINERS: Add everyone to write-after-approval list.
6260
6261 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6262
6263 * stack.c (frame_info): Use frame_register_unwind instead of
6264 saved_regs. Mention when the SP is on the stack or in a register.
6265
6266 * frame.h (frame_register_unwind_ftype): Define. Document.
6267 (struct frame_info): Add field register_unwind and
6268 register_unwind_cache.
6269 (frame_register_unwind): Declare.
6270 (generic_unwind_get_saved_register): Declare.
6271
6272 * frame.c (frame_register_unwind): New function.
6273 (generic_unwind_get_saved_register): New function.
6274
6275 * blockframe.c (generic_call_dummy_register_unwind): New function.
6276 (frame_saved_regs_register_unwind): New function.
6277 (set_unwind_by_pc): New function.
6278 (create_new_frame): New function.
6279 (get_prev_frame): New function.
6280
6281 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6282
6283 * a29k-share/: Delete directory.
6284 * remote-vx29k.c: Delete file.
6285
6286 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6287
6288 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6289 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6290
6291 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6292
6293 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6294 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6295 (sparc64nbsd-nat.o)
6296 (sparcnbsd-nat.o)
6297 (sparcnbsd-tdep.o): New dependency lists.
6298 * NEWS: Note new UltraSPARC NetBSD native configuration.
6299 * configure.host (sparc64-*-netbsd*): New host.
6300 * configure.tgt (sparc-*-netbsdelf*)
6301 (sparc-*-netbsd*): Set gdb_target to nbsd.
6302 (sparc64-*-netbsd*): New target.
6303 * sparc64nbsd-nat.c: New file.
6304 * sparcnbsd-nat.c: New file.
6305 * sparcnbsd-tdep.c: New file.
6306 * sparcnbsd-tdep.h: New file.
6307 * config/sparc/nbsd.mt: New file.
6308 * config/sparc/nbsd64.mh: New file.
6309 * config/sparc/nbsd64.mt: New file.
6310 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6311 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6312 (HOST_IPC): Remove.
6313 * config/sparc/nbsdaout.mt: Remove.
6314 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6315 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6316 (HOST_IPC): Remove.
6317 * config/sparc/nbsdelf.mt: Remove.
6318 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6319 sparc-nat.c compatiblity defines.
6320 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6321 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6322 * config/sparc/tm-nbsd64.h: New file.
6323 * config/sparc/tm-nbsdaout.h: Remove.
6324 * config/sparc/xm-nbsd.h: Remove.
6325
6326 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6327
6328 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6329 * sparc-tdep.c: Include osabi.h.
6330 (gdbarch_tdep): Add osabi member.
6331 (_initialize_sparc_tdep): Use gdbarch_register.
6332 (sparc_gdbarch_init): Use generic OS ABI framework.
6333 (sparc_dump_tdep): New function.
6334
6335 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6336
6337 * corefile.c (do_captured_read_memory_integer): Return non-zero
6338 result.
6339 (safe_read_memory_integer): Copy result of memory read when
6340 status is non-zero. Also, add comments.
6341
6342 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * Makefile.in (ppc_tdep_h): Define.
6345 (ppc-linux-nat.o)
6346 (ppc-linux-tdep.o)
6347 (rs6000-tdep.o): Use $(ppc_tdep_h).
6348 (ppc-sysv-tdep.o)
6349 (ppcnbsd-nat.o)
6350 (ppcnbsd-tdep.o): New dependency lists.
6351 * ppc-tdep.h: Use generic OS ABI framework.
6352 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6353 (ppc_linux_init_abi): New functions.
6354 (ppc_sysv_abi_broken_use_struct_convention)
6355 (ppc_sysv_abi_use_struct_convention)
6356 (ppc_sysv_abi_push_arguments): Move to...
6357 * ppc-sysv-tdep.c: ...here.
6358 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6359 * rs6000-tdep.c (process_note_abi_tag_sections)
6360 (get_elfosabi): Remove.
6361 (rs6000_gdbarch_init): Use generic OS ABI framework.
6362 (rs6000_dump_tdep): New function.
6363 (_initialize_rs6000_tdep): Use gdbarch_register.
6364 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6365 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6366 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6367 of ppc-linux-tdep.o.
6368 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6369 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6370 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6371 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6372 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6373 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6374
6375 2002-05-29 Jim Blandy <jimb@redhat.com>
6376
6377 * macroscope.c (default_macro_scope): Put `void' in empty argument
6378 list.
6379
6380 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6381
6382 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6383 * arch-utils.c: Include "sim-regno.h".
6384 * gdbarch.sh: Don't include "sim-regno.h".
6385 * gdbarch.h, gdbarch.c: Regenerate.
6386 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6387 here.
6388 * arch-utils.h (legacy_register_sim_regno): To here.
6389 * remote-sim.c (legacy_register_sim_regno): Move function from
6390 here.
6391 * arch-utils.c (legacy_register_sim_regno): To here.
6392
6393 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6394
6395 * sim-regno.h: New file.
6396 * Makefile.in (sim_regno_h): Define.
6397 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6398 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6399 (legacy_register_sim_regno): New function.
6400 (one2one_register_sim_regno): New function.
6401 (gdbsim_fetch_register): Rewrite.
6402 (gdbsim_store_register): Only store a register when
6403 REGISTER_SIM_REGNO is valid.
6404 * d10v-tdep.c: Include "sim-regno.h".
6405 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6406 (d10v_ts3_register_sim_regno): Ditto.
6407 * gdbarch.sh: Include "sim-regno.h".
6408 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6409 * gdbarch.h, gdbarch.c: Regenerate.
6410 * arch-utils.h (default_register_sim_regno): Delete declaration.
6411 * arch-utils.c (default_register_sim_regno): Delete function.
6412
6413 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6414
6415 * ppcnbsd-nat.c: Rewrite.
6416 * ppcnbsd-tdep.c: New file.
6417 * ppcnbsd-tdep.h: New file.
6418 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6419 solib.o, and solib-svr4.o.
6420 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6421 nbsd-tdep.o, and corelow.o.
6422
6423 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6424
6425 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6426 `tr' and `sed'. Mention that `broken' targets are not expected to
6427 build.
6428
6429 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6430
6431 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6432 Let PC point right after the prologue before looking up symbols.
6433
6434 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6435
6436 * i386-tdep.c (i386_register_virtual_type): Return
6437 builtin_type_vec128i for SSE registers.
6438
6439 * gdbtypes.h (builtin_type_vec128i): Declare.
6440
6441 * gdbtypes.c (build_builtin_type_vec128i): New function.
6442 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6443 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6444 (build_gdbtypes): Initialize new builtin vector types.
6445 (_initialize_gdbtypes): Register new vector types with gdbarch.
6446
6447 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6448
6449 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6450 since it has been multi-arch'd.
6451 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6452 Move Alpha and VAX multi-arch news entries to same section
6453 as other multi-arch news.
6454
6455 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6456
6457 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6458 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6459 static. Rename some register numbers to put them in ns32k-tdep
6460 private namespace.
6461 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6462 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6463 functions.
6464 (_initialize_ns32k_tdep): Use gdbarch_register.
6465 * ns32k-tdep.h: New file.
6466 * ns32knbsd-tdep.c: New file.
6467 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6468 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6469 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6470 REGISTER_BYTES, REGISTER_BYTE): Remove.
6471 * config/ns32k/tm-ns32k.h: New file.
6472 * config/ns32k/tm-umax.h: Remove.
6473
6474 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6475
6476 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6477 ns32k_store_struct_return, ns32k_extract_return_value,
6478 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6479 functions.
6480 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6481 ns32k_saved_pc_after_call.
6482 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6483 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6484 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6485 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6486 ns32k_extract_struct_value_address.
6487
6488 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6491 ns32k_fix_call_dummy): New.
6492 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6493 ns32k_call_dummy_words.
6494 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6495 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6496 CALL_DUMMY_NARGS): Remove.
6497 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6498
6499 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6500
6501 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6502 ns32k_frame_saved_pc, ns32k_frame_args_address,
6503 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6504 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6505 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6506 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6507 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6508 (BREAKPOINT): Remove..
6509 (FRAME_CHAIN): Define as ns32k_frame_chain.
6510 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6511 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6512 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6513 (FRAME_FIND_SAVED_REGS): Remove.
6514 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6515 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6516 (POP_FRAME): Define as ns32k_pop_frame.
6517
6518 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6519
6520 * ns32k-tdep.c (ns32k_register_byte_32082,
6521 ns32k_register_byte_32382, ns32k_register_raw_size,
6522 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6523 functions.
6524 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6525 ns32k_register_byte_32382.
6526 * config/ns32k/tm-umax.h: Update copyright years.
6527 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6528 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6529 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6530 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6531 (ns32k_get_enter_addr): Fix prototype.
6532
6533 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 * ns32k-tdep.c: Update copyright years.
6536 (ns32k_register_name_32082): New function.
6537 (ns32k_register_name_32382): Ditto.
6538 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6539 (REGISTER_NAME): Define as ns32k_register_name_32382.
6540 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6541 (REGISTER_NAME): Define as ns32k_register_name_32082.
6542
6543 2002-05-24 Jim Blandy <jimb@redhat.com>
6544
6545 * dwarf2read.c (free_line_header): Use xfree, not free.
6546
6547 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6548
6549 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6550 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6551
6552 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6553
6554 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6555
6556 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6557
6558 From Ross Alexander at NEC Europe:
6559 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6560
6561 2002-05-23 Michael Snyder <msnyder@redhat.com>
6562
6563 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6564 for input, rather than parse_and_eval_address.
6565
6566 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6567
6568 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6569 * Makefile.in (sim_d10v_h): Update definition.
6570
6571 2002-05-24 Andrew Cagney <cagney@redhat.com>
6572
6573 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6574 change `2002-05-22 Michael Snyder' below.
6575 (d10v_push_arguments): Ditto.
6576 (d10v_extract_return_value): Ditto.
6577
6578 2002-05-23 Jim Blandy <jimb@redhat.com>
6579
6580 * macrotab.c (check_for_redefinition): Don't complain if the new
6581 definition is the same as the previous one. Take more arguments
6582 to allow the comparison.
6583 (macro_define_object, macro_define_function): Pass more arguments
6584 to check_for_redefinition.
6585
6586 2002-05-22 Michael Snyder <msnyder@redhat.com>
6587
6588 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6589 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6590 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6591 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6592 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6593 Add a temp variable to save a call (and a memory read).
6594 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6595 if possible (so that PC_IN_CALL_DUMMY will work).
6596
6597 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6598
6599 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6600
6601 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6602
6603 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6604 fde->cie_ptr.
6605 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6606 (dwarf2_build_frame_info): Add offset to fde->initial_location
6607 so that frames of shared libraries are mapped correctly.
6608 (execute_stack_op): Change type of 'result' from ULONGEST to
6609 CORE_ADDR.
6610
6611 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * config/alpha/tm-nbsd.h: Include solib.h.
6614
6615 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6616
6617 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6618 assumptions about the host's byte order.
6619
6620 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6621
6622 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6623 to dependency list.
6624 * alphanbsd-tdep.c: Include solib-svr4.h.
6625 * shnbsd-tdep.c: Ditto.
6626
6627 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6628
6629 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6630 nbsd-tdep.h to dependency list.
6631 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6632 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6633 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6634 nbsdaout.mh and nbsdelf.mh consistently.
6635 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6636 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6637 nbsdaout.mt and nbsdelf.mh consistently.
6638 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6639 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6640 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6641 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6642 a.out shared library stuff from here...
6643 * config/nm-nbsdaout.h: ...to here.
6644 * config/tm-nbsd.h: Remove.
6645 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6646 * config/arm/nbsd.mh: Remove.
6647 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6648 nbsd-tdep.o.
6649 * config/arm/nbsdaout.mh: New file.
6650 * config/arm/nbsdelf.mh: New file.
6651 * config/arm/nm-nbsdaout.h: New file.
6652 * config/i386/nbsd.mh: Remove.
6653 * config/i386/nbsd.mt: Remove.
6654 * config/i386/nbsdaout.mh: New file.
6655 * config/i386/nbsdaout.mt: New file.
6656 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6657 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6658 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6659 i386_register_u_addr): Remove.
6660 * config/i386/nm-nbsdaout.h: New file.
6661 * config/i386/nm-nbsdelf.h: Remove.
6662 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6663 (USE_STRUCT_CONVENTION): Remove.
6664 * config/i386/tm-nbsdaout.h: New file.
6665 * config/i386/tm-nbsdelf.h: Remove.
6666 * config/m68k/nbsd.mh: Remove.
6667 * config/m68k/nbsd.mt: Remove.
6668 * config/m68k/nbsdaout.mh: New file.
6669 * config/m68k/nbsdaout.mt: New file.
6670 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6671 * config/m68k/nm-nbsdaout.h: New file.
6672 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6673 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6674 * config/ns32k/nbsd.mh: Remove.
6675 * config/ns32k/nbsd.mt: Remove.
6676 * config/ns32k/nbsdaout.mh: New file.
6677 * config/ns32k/nbsdaout.mt: New file.
6678 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6679 * config/ns32k/nm-nbsdaout.h: New file.
6680 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6681 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6682 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6683 (SVR4_SHARED_LIBS): Remove.
6684 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6685 * config/sparc/nbsd.mh: Remove.
6686 * config/sparc/nbsd.mt: Remove.
6687 * config/sparc/nbsdaout.mh: New file.
6688 * config/sparc/nbsdaout.mt: New file.
6689 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6690 * config/sparc/nbsdelf.mt: New file.
6691 * config/sparc/nm-nbsdaout.h: New file.
6692 * config/sparc/nm-nbsdelf.h: Remove.
6693 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6694 * config/sparc/tm-nbsdaout.h: New file.
6695
6696 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6697
6698 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6699 mipsnbsd-tdep.c
6700 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6701
6702 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6703
6704 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6705 shnbsd-nat.c.
6706 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6707
6708 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6709
6710 * NEWS: Note new MIPS NetBSD native configuration.
6711 * configure.host (mips*-*-netbsd*): New host.
6712 * configure.tgt (mips*-*-netbsd*): New target.
6713 * mipsnbsd-nat.c: New file.
6714 * mipsnbsd-tdep.c: New file.
6715 * mipsnbsd-tdep.h: New file.
6716 * config/mips/nbsd.mh: New file.
6717 * config/mips/nbsd.mt: New file.
6718 * config/mips/nm-nbsd.h: New file.
6719 * config/mips/tm-nbsd.h: New file.
6720
6721 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6722
6723 * Makefile.in (SFILES): Add osabi.c.
6724 (COMMON_OBS): Add osabi.o.
6725 (osabi.o): New dependency list.
6726 * osabi.c: New file.
6727 * osabi.h: New file.
6728 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6729
6730 * Makefile.in (alpha_tdep_h): Define and use instead of
6731 alpha-tdep.h.
6732 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6733 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6734 Remove.
6735 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6736 * alpha-tdep.h: Include osabi.h.
6737 (alpha_abi): Remove.
6738 (gdbarch_tdep): Use generic OS ABI framework.
6739 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6740 gdbarch_register_osabi.
6741 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6742 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6743 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6744
6745 * Makefile.in (sh_tdep_h): Add osabi.h.
6746 * sh-tdep.h (sh_osabi): Remove.
6747 (gdbarch_tdep): Use generic OS ABI framework.
6748 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6749 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6750 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6751 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6752
6753 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6754 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6755 gdbarch_register_osabi.
6756 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6757 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6758 (get_elfosabi): Rename to...
6759 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6760 ABI framework support routines.
6761 (arm_gdbarch_init): Use generic OS ABI framework.
6762 (arm_dump_tdep): Likewise.
6763 (_initialize_arm_tdep): Likewise.
6764 * arm-tdep.h: Include osabi.h.
6765 (arm_abi): Remove.
6766 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6767 osabi member.
6768 (arm_gdbarch_register_os_abi): Remove prototype.
6769 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6770 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6771
6772 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6773 * mips-tdep.c: Include osabi.h.
6774 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6775 OS ABI framework.
6776
6777 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6778
6779 * h8300-tdep.c: Fix formatting.
6780
6781 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6782
6783 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6784 printing vector registers.
6785
6786 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6787
6788 From Fernando Nasser:
6789 * remote.c (remote_async_open_1): Re-throw the exception when the
6790 connection fails.
6791 (remote_cisco_open): Ditto.
6792 (remote_open_1): Ditto.
6793
6794 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6795
6796 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6797 (remote_start_remote): Add uiout parameter. Pass through to
6798 remote_start_remote_dummy.
6799 (remote_open_1): Use catch_exception instead of catch_errors.
6800 (remote_async_open_1): Ditto.
6801 (remote_cisco_open): Ditto.
6802
6803 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6804
6805 * remote.c (remote_start_remote): Replace PTR with void pointer.
6806 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6807 static.
6808
6809 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6810
6811 * gdb_indent.sh: Allow the script to be run in the sim directory.
6812
6813 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6814
6815 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6816 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6817
6818 * corelow.c (core_open): Only call set_gdbarch_from_file if
6819 exec_bfd is NULL.
6820
6821 2002-05-17 Andrey Volkov <avolkov@transas.com>
6822
6823 * h8300-tdep.c: Add support of EXR register
6824 * config/h8300/tm-h8300.h: Ditto.
6825
6826 2002-05-17 Andrey Volkov <avolkov@transas.com>
6827
6828 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6829
6830 2002-05-17 Andrey Volkov <avolkov@transas.com>
6831
6832 * h8300-tdep.c: Change literal regnums to REGNO.
6833
6834 2002-05-17 Jim Blandy <jimb@redhat.com>
6835
6836 * NEWS: Note addition of macro support.
6837
6838 Expand preprocessor macros in C expressions.
6839 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6840 (scan_macro_expansion, scanning_macro_expansion,
6841 finished_macro_expansion): New function declarations.
6842 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6843 variable declarations.
6844 * parser-defs.h (expression_context_pc): New declaration.
6845 * parse.c (expression_context_pc): New variable.
6846 (parse_exp_1): Set expression_context_pc, as well as
6847 expression_context_block.
6848 * c-exp.y (yylex): If we're not already reading the result of a
6849 macro expansion, try to macro-expand the next token. When we're
6850 done scanning a macro expansion, switch back to the mainline text.
6851 Commas and `if's in a macro's expansion don't terminate the input.
6852 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6853 (macro_original_text, macro_expanded_text,
6854 expression_macro_lookup_func, expression_macro_lookup_baton): New
6855 variables.
6856 (scan_macro_expansion, scanning_macro_expansion,
6857 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6858 c_preprocess_and_parse): New functions.
6859 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6860 c_preprocess_and_parse, instead of c_parse.
6861 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6862 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6863
6864 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6865
6866 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6867 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6868 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6869
6870 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6871
6872 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6873
6874 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * Makefile.in (sh_tdep_h): Define and use.
6877 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6878 register enum): Move to...
6879 * * sh-tdep.h: ...here.
6880 * sh-tdep.c: Include sh-tdep.h.
6881 * sh3-rom.c: Likewise.
6882 * shnbsd-tdep.c: Likewise.
6883
6884 2002-05-16 Michael Snyder <msnyder@redhat.com>
6885
6886 * arm-tdep.c: Spelling fix in comment.
6887
6888 2002-05-16 Jim Blandy <jimb@redhat.com>
6889
6890 Add commands for manually expanding macros and showing their
6891 definitions.
6892 * macrocmd.c, macroscope.c, macroscope.h: New files.
6893 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6894 (macroscope_h): New variable.
6895 (HFILES_NO_SRCDIR): Add macroscope.h.
6896 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6897 (macroscope.o, macrocmd.o): New rules.
6898
6899 Teach the Dwarf 2 reader to read macro information.
6900 * dwarf2read.c: #include "macrotab.h".
6901 (dwarf_macinfo_buffer): New variable.
6902 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6903 dwarf_macinfo_size.
6904 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6905 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6906 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6907 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6908 dwarf2_macro_spaces_in_definition): New complaints.
6909 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6910 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6911 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6912 the partial symbol table.
6913 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6914 from what's recorded in the partial symbol table.
6915 (read_file_scope): If the compilation unit has a
6916 `DW_AT_macro_info' attribute, read its macro information.
6917 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6918
6919 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6920
6921 Fix PR gdb/546
6922 * ser-tcp.c: Don't include <netinet/udp.h>.
6923
6924 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6925
6926 * MAINTAINERS: Update my email address.
6927
6928 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6929
6930 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6931 include file of the same name.
6932
6933 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6934
6935 * configure.tgt: Mark v850 as multi-arched.
6936 * config/v850/tm-v850.h: Remove file.
6937 * config/v850/v850.mt: Eliminate TM_FILE.
6938
6939 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6940
6941 * v850-tdep.c: Full multi-arch.
6942 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6943 Define GDB_MULTI_ARCH to 2.
6944
6945 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6946
6947 * p-exp.y (current_type): New static variable.
6948 Carries the type of the expression at the position that is parsed.
6949 (push_current_type, pop_current_type): Two new functions. Used
6950 to store/restore current_type in expression on specific tokens.
6951 (search_field): New static variable. Set to one after parsing a point
6952 as at that point only a FIELDNAME token should be searched.
6953 (FIELDNAME): New token. After a point only a token belonging to
6954 current_type type definition is allowed.
6955 (all over token rules): reset and change current_type according
6956 to rules.
6957 (exp '[' rule): insert implicit array index field if
6958 exp is a pascal string type.
6959
6960 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6961
6962 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6963 frame info. Use frame_info's saved_regs instead of matching member
6964 in extra_frame_info throughout.
6965 (v850_frame_init_saved_regs): New function.
6966 (v850_init_extra_frame_info): Move most functionality into
6967 v850_frame_init_saved_regs().
6968 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6969 (v850_frame_find_saved_regs): Remove declaration.
6970 (FRAME_FIND_SAVED_REGS): Remove definition.
6971 (v850_frame_init_saved_regs): Add declaration.
6972 (FRAME_INIT_SAVED_REGS): Add definition.
6973
6974 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6975
6976 * v850-tdep.c: Begin multi-arch'ing v850.
6977 (v850_target_architecture_hook): Remove function.
6978 (v850_gdbarch_init): New function. Add code previously in
6979 v850_target_architecture_hook().
6980 (_initialize_v850_tdep): Don't set target_architecture_hook.
6981 Call register_gdbarch_init() instead.
6982
6983 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6984
6985 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6986 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6987 (fixup_class_method_type): Likewise.
6988
6989 2002-05-15 Jim Blandy <jimb@redhat.com>
6990
6991 Add macro structures to GDB's symbol tables. Nobody puts anything
6992 in them yet.
6993 * symtab.h (struct symtab): New member: `macro_table'.
6994 * buildsym.h (pending_macros): New global variable.
6995 * buildsym.c: #include "macrotab.h".
6996 (buildsym_init): Initialize `pending_macros'.
6997 (end_symtab): If we found macro information while reading a CU's
6998 debugging info, do build a symtab structure for it. Make the
6999 symtab point to the macro information, and clear the
7000 `pending_macros' pointer which held it while we were reading the
7001 debug info.
7002 (really_free_pendings): Free any pending macro table.
7003 * objfiles.h (struct objfile): New member: `macro_cache'.
7004 * objfiles.c (allocate_objfile): Set allocate and free functions
7005 for the macro cache's objstack.
7006 (free_objfile): Empty the macro cache's obstack.
7007 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7008 set new allocate and free functions for it.
7009 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7010 free functions for the macro cache's objstack. (Why is this
7011 function building its own objfile?)
7012 * symmisc.c (print_objfile_statistics): Print statistics on the
7013 macro bcache.
7014 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7015
7016 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7017
7018 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7019 (REGISTER_U_ADDR): Delete definition.
7020 (arm_register_u_addr): Delete declaration.
7021
7022 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7023
7024 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7025 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7026
7027 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7028
7029 * regcache.c (register_valid): Revise comments refering to "Not
7030 available" and "unavailable".
7031 * frame.c (frame_register_read): Ditto.
7032 * findvar.c (value_of_register): Ditto.
7033
7034 2002-05-15 Andrew Cagney <cagney@redhat.com>
7035
7036 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7037 (remote-sim.o): Update dependencies.
7038 (d10v-tdep.o): Specify dependencies.
7039 (sim_d10v_h): Define.
7040
7041 2002-05-14 Jim Blandy <jimb@redhat.com>
7042
7043 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7044 * macrotab.c (macro_lookup_inclusion, find_definition,
7045 new_macro_table): Same.
7046
7047 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7048 not `! strcmp ()'. This is a dubious improvement.
7049 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7050
7051 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7052 although it's not necessary, to avoid a warning.
7053
7054 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7055
7056 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7057 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7058 TYPE_INSTANCE_FLAGS.
7059 (struct main_type): New.
7060 (struct type): Move most members to struct main_type. Change
7061 cv_type and as_type to new type_chain member. Add instance_flags.
7062 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7063 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7064 (finish_cv_type): Remove prototype.
7065 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7066 Set TYPE_CHAIN.
7067 (alloc_type_instance): New function.
7068 (smash_type): New function.
7069 (make_pointer_type, make_reference_type, make_function_type)
7070 (smash_to_member_type, smash_to_method_type): Call smash_type.
7071 (make_qualified_type): New function.
7072 (make_type_with_address_space): Call make_qualified_type.
7073 (make_cv_type): Likewise.
7074 (finish_cv_type): Remove unnecessary function.
7075 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7076 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7077 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7078 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7079 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7080 * hpread.c (hpread_read_struct_type): Likewise.
7081 * stabsread.c (read_struct_type): Likewise.
7082
7083 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7084
7085 * configure.tgt: Add a catch all sh* target, for cases like
7086 sh[2,3,4]-elf and sh-hms.
7087
7088 2002-05-14 Keith Seitz <keiths@redhat.com>
7089
7090 * event-loop.c (create_file_handler): Don't do anything but
7091 update data when we are given a fd which we are already
7092 monitoring.
7093
7094 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7095
7096 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7097 (update_context): Use __func__ in warnings.
7098
7099 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7100
7101 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7102 and tcp_close to net_open and net_close.
7103 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7104 using UDP if requested. Don't try to disable Nagle on UDP
7105 sockets.
7106 * remote.c (remote_serial_open): New function. Warn about UDP.
7107 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7108
7109 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7110
7111 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7112
7113 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7114
7115 * configure.tgt: Remove sh-hms target.
7116 * MAINTAINERS: Don't list sh-hms as a separate target.
7117
7118 2002-05-13 Jim Blandy <jimb@redhat.com>
7119
7120 Add first preprocessor macro-expansion files.
7121 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7122 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7123 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7124 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7125 (COMMON_OBS): Add macrotab.o, macroexp.o.
7126 (macroexp.o, macrotab.o): New rules.
7127
7128 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7129
7130 * config/m88k/tm-m88k.h: Update copyright.
7131 (m88k_target_write_pc): Declare
7132 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7133 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7134 (SHIFT_INST_REGS): Update definition.
7135 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7136 using old definition of TARGET_WRITE_PC.
7137 * regcache.c (generic_target_write_pc): Delete code handling
7138 NNPC_REGNUM.
7139 * gdbarch.sh (NNPC_REGNUM): Delete.
7140 * gdbarch.h, gdbarch.c: Regenerate.
7141
7142 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7143
7144 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7145 builtin reg number.
7146
7147 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7148
7149 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7150 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7151 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7152 access macros.
7153 * c-typeprint.c (cp_type_print_method_args): Likewise.
7154 (c_type_print_args): Likewise.
7155 * d10v-tdep.c (d10v_push_arguments): Likewise.
7156 (d10v_extract_return_value): Likewise.
7157 * expprint.c (print_subexp): Likewise.
7158 * gdbtypes.c (lookup_primitive_typename): Likewise.
7159 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7160 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7161 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7162 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7163 (TYPE_VECTOR): Likewise.
7164 * hpread.c (hpread_read_struct_type)
7165 (fix_static_member_physnames, fixup_class_method_type)
7166 (hpread_type_lookup): Likewise.
7167 * mdebugread.c (parse_symbol, parse_type): Likewise.
7168 * p-lang.c (is_pascal_string_type): Likewise.
7169 * valops.c (hand_function_call): Likewise.
7170 * x86-64-tdep.c (classify_argument): Likewise.
7171
7172 * hpread.c (hpread_read_function_type)
7173 (hpread_read_doc_function_type): Call replace_type.
7174 * dstread.c (create_new_type): Delete.
7175 (decode_dst_structure, process_dst_function): Call alloc_type.
7176 Use type access macros.
7177
7178 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7179
7180 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7181 the're not supported by the current architecture.
7182 (i387_fill_fxsave): Likewise.
7183
7184 2002-05-12 Fred Fish <fnf@redhat.com>
7185
7186 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7187 sect_index_xxx members to index the first slot in section_offsets
7188 if all of the section_offsets are zero.
7189
7190 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7191
7192 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7193 checked in with last change.
7194
7195 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7196
7197 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7198 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7199 config.sub.
7200
7201 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7202
7203 * Makefile.in: Update dependencies.
7204
7205 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7206
7207 * language.c (local_hex_string_custom): Simplify. Do not depend
7208 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7209
7210 * memattr.c (mem_info_command): Replace calls to
7211 longest_local_hex_string and longest_local_hex_string_custom.
7212 * buildsym.c (make_blockvector): Ditto.
7213 * solib.c (info_sharedlibrary_command): Ditto.
7214 * tracepoint.c (tracepoints_info): Ditto.
7215 * symtab.c (print_msymbol_info): Ditto.
7216
7217 * language.c (local_hex_string): Delete.
7218 (local_hex_string_custom): Delete.
7219 (longest_local_hex_string): Rename to local_hex_string.
7220 (longest_local_hex_string_custom): Rename to
7221 local_hex_string_custom.
7222 * language.h (local_hex_string): Change parameter type to LONGEST.
7223 (local_hex_string_custom): Ditto.
7224 (longest_local_hex_string): Delete declaration.
7225 (longest_local_hex_string_custom): Ditto.
7226
7227 * solib.c: Update copyright.
7228 * memattr.c: Update copyright.
7229
7230 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7231
7232 * arch-utils.h (legacy_register_to_value): Declare.
7233 (legacy_value_to_register): Declare.
7234 (legacy_convert_register_p): Declare.
7235 * arch-utils.c (legacy_register_to_value): New function.
7236 (legacy_value_to_register): New function.
7237 (legacy_convert_register_p): New function.
7238
7239 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7240 (VALUE_TO_REGISTER): Define.
7241 (CONVERT_REGISTER_P): Define.
7242 * gdbarch.h, gdbarch.c: Regenerate.
7243
7244 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7245 VALUE_TO_REGISTER.
7246 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7247 CONVERT_REGISTER_P.
7248
7249 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7250 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7251
7252 * Makefile.in: Update dependencies for valops.c.
7253 * valops.c: Include "gdb_assert.h".
7254 (typecmp): Skip THIS parameter to methods.
7255 (find_method_list): Remove static_memfuncp argument,
7256 update callers. Check for stub methods.
7257 (find_value_oload_method_list): Don't set *static_memfuncp.
7258 (find_overload_match): Don't check for stub methods. Assert
7259 that methods are not stubbed. Handle static methods.
7260 (value_find_oload_method_list): Remove static_memfuncp argument.
7261 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7262 to the argument list for static stub methods.
7263 * value.h (value_find_oload_method_list): Update prototype.
7264
7265 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7266
7267 * arch-utils.h (generic_register_size): Declare.
7268 (generic_register_raw_size, generic_register_virtual_size): Delete
7269 declarations.
7270 * arch-utils.c (generic_register_raw_size): Delete.
7271 (generic_register_size): New function.
7272 (generic_register_virtual_size): Delete.
7273
7274 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7275 default generic_register_size.
7276 * gdbarch.h, gdbarch.c: Re-generate.
7277
7278 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7279 register_virtual_size.
7280 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7281 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7282
7283 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7284
7285 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7286 * gdbarch.h, gdbarch.c: Regenerate.
7287 * gnu-v3-abi.c: Update copyright.
7288 (vtable_address_point_offset): Update.
7289 (gnuv3_rtti_type): Update.
7290 (gnuv3_baseclass_offset): Update.
7291 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7292 (init_fetch_link_map_offsets): Update.
7293 * remote.c (get_remote_state): Update.
7294
7295 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * TODO: Remove value_headof/value_from_vtable_info comment.
7298 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7299 * values.c (value_headof, value_from_vtable_info): Delete.
7300 * value.h (value_from_vtable_info): Delete prototype.
7301
7302 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7303
7304 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7305 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7306 $(gdb_regex_h).
7307 (gdb_assert_h): Define.
7308 (gdb_wait_h): Define.
7309 (gdb_regex_h): Define.
7310
7311 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7312
7313 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7314 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7315
7316 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7317
7318 * nbsd-tdep.c: Fix comment.
7319
7320 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7321
7322 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7323 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7324 (nbsd-tdep.o): New dependency list.
7325 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7326 nbsd-tdep.h.
7327 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7328 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7329 * nbsd-tdep.c: New file.
7330 * nbsd-tdep.h: New file.
7331 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7332 nbsd-tdep.h.
7333 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7334 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7335 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7336 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7337
7338 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7339
7340 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7341 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7342 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7343 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7344 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7345 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7346
7347 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7348
7349 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7350 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7351 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7352 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7353 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7354 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7355 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7356
7357 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7358
7359 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7360 fetch_elfcore_registers to...
7361 * i386nbsd-tdep.c: ...here.
7362 (i386nbsd_use_struct_convention): Rename to...
7363 (i386nbsd_aout_use_struct_convention): ...this.
7364 (i386nbsd_supply_reg): New function.
7365 (i386nbsd_fill_reg): New function.
7366 (fetch_core_registers): Use i386nbsd_supply_reg.
7367 (fetch_elfcore_registers): Likewise.
7368 (_initialize_i386nbsd_tdep): New function.
7369 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7370 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7371 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7372 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7373 (i386nbsd_aout_use_struct_convention): ...this.
7374
7375 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7376
7377 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7378 (store_inferior_registers): Use shnbsd_fill_reg.
7379 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7380 sh_nbsd_supply_register): Collapse into...
7381 (shnbsd_supply_reg): ...this.
7382 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7383 (shnbsd_fill_reg): ...this.
7384 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7385 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7386 (fetch_core_registers): Use shnbsd_supply_reg.
7387 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7388 (sh_nbsd_core_fns): Rename to...
7389 (shnbsd_core_fns): ...this.
7390 (sh_nbsd_elfcore_fns): Rename to...
7391 (shnbsd_elfcore_fns): ...this.
7392 (sh_nbsd_init_abi): Rename to...
7393 (shnbsd_init_abi): ...this.
7394 (_initialize_sh_nbsd_tdep): Rename to...
7395 (_initialize_shnbsd_tdep): ...this.
7396 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7397 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7398 sh_nbsd_fill_register): Remove prototypes.
7399 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7400
7401 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7404 (i387-nat.o): Delete dependency list.
7405 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7406 (x86-64-linux-nat.o): Likewise.
7407 * i387-nat.c: Delete file, moving contents to...
7408 * i387-tdep.c: ...here.
7409 * i387-nat.h: Rename...
7410 * i387-tdep.h: ...to this.
7411 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7412 * i386-linux-nat.c: Likewise.
7413 * i386bsd-nat.c: Likewise.
7414 * i386gnu-nat.c: Likewise.
7415 * i386nbsd-nat.c: Likewise.
7416 * i386v4-nat.c: Likewise.
7417 * x86-64-linux-nat.c: Likewise.
7418 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7419 * config/i386/go32.mh (NATDEPFILES): Likewise.
7420 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7421 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7422 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7423 * config/i386/linux.mh (NATDEPFILES): Likewise.
7424 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7425 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7426 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7427 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7428
7429 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7430
7431 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7432 (alphanbsd-nat.o): Remove dependency list.
7433 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7434 * alphanbsd-nat.c: Delete. Contents moved to...
7435 * alphanbsd-tdep.c: ...here.
7436 (_initialize_alphanbsd_tdep): Register core functions.
7437 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7438
7439 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7442 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7443 (alphanbsd-nat.o): Likewise.
7444 (alphabsd-tdep.o): New dependency list.
7445 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7446 (fill_gregset): Use alphabsd_fill_reg.
7447 (supply_fpregset): Use alphabsd_supply_fpreg.
7448 (fill_fpregset): Use alphabsd_fill_fpreg.
7449 (fetch_inferior_registers): Use struct reg and struct fpreg
7450 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7451 and alphabsd_supply_fpreg.
7452 (store_inferior_registers): Use struct reg and struct fpreg
7453 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7454 and alphabsd_fill_fpreg.
7455 * alphabsd-tdep.c: New file.
7456 * alphabsd-tdep.h: New file.
7457 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7458 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7459 alphabsd_supply_fpreg.
7460 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7461 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7462
7463 2002-05-11 Eric Christopher <echristo@redhat.com>
7464
7465 * mips-tdep.c (mips_double_register_type): Fix thinko.
7466 (mips_single_register_type): Ditto.
7467 * MAINTAINERS: Add self.
7468
7469 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7470
7471 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7472 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7473 right thing on architectures with different endianness and/or
7474 integer sizes.
7475
7476 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 From Christian Limpach <chris@Pin.LU>
7479 * configure.in: Change sed expression which comments out
7480 NATDEPFILES to also comment out continuation lines.
7481 * configure: Regenerate.
7482
7483 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7484
7485 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7486 big patch.
7487
7488 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7489
7490 * sh-tdep.c: Include correct file.
7491
7492 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7493
7494 New support for sh64-elf (sh5) target.
7495
7496 * configure.tgt: For sh64-elf target, default to sh-elf.
7497
7498 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7499 (struct gdbarch_tdep): Add new fields for new registers and ABI
7500 info.
7501
7502 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7503 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7504 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7505 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7506 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7507 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7508 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7509 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7510 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7511 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7512 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7513 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7514 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7515 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7516 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7517 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7518 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7519 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7520 sign_extend, sh64_nofp_frame_init_saved_regs,
7521 sh64_init_extra_frame_info, sh64_get_saved_register,
7522 sh64_extract_struct_value_address, sh64_pop_frame,
7523 sh64_push_arguments, sh64_extract_return_value,
7524 sh64_store_return_value, sh64_show_media_regs,
7525 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7526 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7527 sh_sh64_register_virtual_type,
7528 sh_sh64_register_convert_to_virtual,
7529 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7530 sh64_register_read, sh64_pseudo_register_write,
7531 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7532 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7533 sh64_do_pseudo_register, sh_compact_do_registers_info,
7534 sh64_do_registers_info, sh_gdbarch_init): New functions.
7535
7536 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7537
7538 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7539
7540 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7541
7542 * linespec.c (decode_line_1): Check for a double quote after
7543 a filename correctly.
7544
7545 2002-05-10 Jim Blandy <jimb@redhat.com>
7546
7547 Properly track the size of the current objfile's .debug_line section.
7548 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7549 (DWARF_LINE_SIZE): New macro.
7550 (dwarf2_build_psymtabs_hard): Record the line section's size in
7551 the partial symbol table.
7552 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7553 symbol table.
7554
7555 2002-05-10 Petr Sorfa <petrs@caldera.com>
7556
7557 * ia64-tdep.c: Handle breakpoints on L instruction type
7558 in MLX instruction bundle by moving the breakpoint to
7559 the third slot (X instruction type) as L holds only data.
7560
7561 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7562
7563 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7564 (process_one_symbol): Complain about discarding local symbols
7565 due to a misplaced N_LBRAC entry.
7566
7567 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7568
7569 From Daniel Berlin <dan@cgsoftware.com>
7570 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7571 decrease the depth we are at, in the case of templates.
7572
7573 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7574
7575 * mips-tdep.c (mips_float_register_type): New function.
7576 (mips_double_register_type): New function.
7577 (mips_print_register): Use them.
7578 (do_fp_register_row): Likewise.
7579
7580 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7581
7582 * signals/signals.c (signals): Remove conditional compilation around
7583 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7584 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7585
7586 2002-05-09 Michael Snyder <msnyder@redhat.com>
7587
7588 * remote-rdp.c (remote_rdp_can_run): Remove.
7589
7590 2002-05-09 Tom Tromey <tromey@redhat.com>
7591
7592 * jv-valprint.c (java_val_print): Handle `char' as a special case
7593 of TYPE_CODE_INT.
7594
7595 2002-05-09 Michael Snyder <msnyder@redhat.com>
7596
7597 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7598 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7599 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7600 str r(0123),[sp,#nn].
7601 (arm_skip_prologue): Ditto. Also make disassembly
7602 order-independent by placing it in a loop.
7603
7604 2002-05-06 Michael Snyder <msnyder@redhat.com>
7605
7606 * stabsread.c (read_type): Add recognition for new attribute:
7607 "@V;" means that an array type is actually a vector.
7608 This is analogous to the vector flag that's been added to dwarf2.
7609
7610 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7611
7612 * i386-tdep.h (i386_abi): New enum.
7613 (struct gdbarch_tdep): Replace os_ident member with abi.
7614 (i386_gdbarch_register_os_abi): New prototype.
7615 * i386-tdep.c (i386_abi_names): New array.
7616 (process_note_abi_tag_sections): Removed.
7617 (process_note_sections): New function.
7618 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7619 (struct i386_abi_handler): New struct.
7620 (i386_abi_handler_list): New variable.
7621 (i386_gdbarch_register_os_abi): New function.
7622 (i386_gdbarch_init): Adapt for the changes given above.
7623
7624 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7625
7626 * gregset.h: Say "GNU/Linux".
7627
7628 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7629
7630 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7631 (build_gdbtypes): Build builtin_type_v2_float.
7632 (_initialize_gdbtypes): Register new builtin type.
7633
7634 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7635
7636 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7637 (clear_gdbarch_swap): New function.
7638 (initialize_non_multiarch): Call.
7639 (gdbarch_update_p): Before calling init(), swap out and clear the
7640 existing architecture.
7641 * gdbarch.c: Regenerate.
7642
7643 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7644
7645 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7646 alphanbsd-tdep.c.
7647
7648 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7649
7650 * sh-nbsd-nat.c: Rename to...
7651 * shnbsd-nat.c: ...this.
7652 * sh-nbsd-tdep.c: Rename to...
7653 * shnbsd-tdep.c: ...this.
7654 * sh-nbsd-tdep.h: Rename to...
7655 * shnbsd-tdep.h: ...this.
7656 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7657 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7658
7659 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7660
7661 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7662 concatenation for command help messages.
7663
7664 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7665
7666 * NEWS: Note new sh*-*-netbsdelf* configuration.
7667 * configure.host: Set gdb_host_cpu to sh for all sh*.
7668 (sh*-*-netbsdelf*): New host.
7669 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7670 (sh*-*-netbsdelf*): New target.
7671 * sh-nbsd-nat.c: New file.
7672 * sh-nbsd-tdep.c: New file.
7673 * sh-nbsd-tdep.h: New file.
7674 * config/sh/nbsd.mh: New file.
7675 * config/sh/nbsd.mt: New file.
7676 * config/sh/nm-nbsd.h: New file.
7677 * config/sh/tm-nbsd.h: New file.
7678
7679 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7680
7681 * sh-tdep.c (sh_osabi_names): Declare.
7682 (process_note_abi_tag_sections): New function.
7683 (get_elfosabi): Ditto.
7684 (sh_gdbarch_register_os_abi): Ditto.
7685 (sh_dump_tdep): Ditto.
7686 _initialize_sh_tdep): Use gdbarch_register to register
7687 sh_gdbarch_init and sh_dump_tdep.
7688 * config/sh/tm-sh.h (sh_osabi): Declare.
7689 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7690
7691 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7692
7693 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7694 (thumb_scan_prologue): Ditto.
7695 (arm_find_callers_reg): Ditto.
7696 (arm_frame_chain): Ditto.
7697 (arm_init_extra_frame_info): Ditto.
7698 (arm_frame_saved_pc): Ditto.
7699 (arm_pop_frame): Ditto.
7700 (arm_push_return_address): New function.
7701 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7702 call_dummy_location, call_dummy_breakpoint_offset_p,
7703 call_dummy_breakpoint_offset, call_dummy_p,
7704 call_dummy_stack_adjust_p, call_dummy_words,
7705 sizeof_call_dummy_words, call_dummy_start_offset,
7706 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7707 call_dummy_address, push_return_address and push_dummy_frame for
7708 generic dummy frames.
7709
7710 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7711
7712 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7713 size computation for alloca.
7714 (sh_fp_frame_init_saved_regs): Likewise.
7715
7716 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7717
7718 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7719 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7720 * arm-tdep.c (arm_store_return_value): Use them.
7721 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7722 * remote-rdp.c (remote_rdp_fetch_register): Use
7723 ARM_MAX_REGISTER_RAW_SIZE.
7724 (remote_rdp_store_register): Likewise.
7725
7726 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7727
7728 * dwarf2cfi.c: Code cleanup, removed unused variables,
7729 added default labels to switch {} statements.
7730 * x86-64-tdep.c: Ditto.
7731 * x86-64-linux-nat.c: Ditto.
7732
7733 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7734
7735 * solib.h: Protect against multiple inclusion.
7736
7737 2002-05-06 Jim Blandy <jimb@redhat.com>
7738
7739 Add first preprocessor macro-expansion files.
7740 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7741 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7742 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7743 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7744 (COMMON_OBS): Add macrotab.o, macroexp.o.
7745 (macroexp.o, macrotab.o): New rules.
7746
7747 Separate the job of reading the line number info statement program
7748 header (...expialidocious) out into its own function.
7749 * dwarf2read.c (struct line_head, struct filenames, struct
7750 directories): Replace with...
7751 (struct line_header): New structure, containing the full
7752 contents of the statement program header, including the
7753 include directory and file name tables.
7754 (read_file_scope): If we have line number info, instead of just
7755 calling dwarf_decode_lines to do all the work, call
7756 dwarf_decode_line_header first to get a `struct line_header'
7757 containing the data in the statement program header, and then
7758 pass that to dwarf_decode_lines, which will pick up where that
7759 left off. Be sure to clean up the `struct line_header' object.
7760 (dwarf_decode_line_header, free_line_header, add_include_dir,
7761 add_file_name): New functions.
7762 (dwarf_decode_lines): Move all the code to read the statement
7763 program header into dwarf_decode_line_header. Take the line
7764 header it built as the first argument, instead of the offset to
7765 the compilation unit's line number info. Use the new `struct
7766 line_header' type instead of the old structures. No need to do
7767 cleanups here now, since we don't allocate anything.
7768 (dwarf2_statement_list_fits_in_line_number_section,
7769 dwarf2_line_header_too_long): New complaints.
7770
7771 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7772
7773 * gdbtypes.c (init_vector_type): New function.
7774 (build_builtin_type_vec128): Simplify the representation of SIMD
7775 registers.
7776 (build_gdbtypes): Initialize new builtin vector types.
7777 (_initialize_gdbtypes): Register new vector types with gdbarch.
7778 (builtin_type_v4_float, builtin_type_v4_int32,
7779 builtin_type_v8_int16, builtin_type_v16_int8,
7780 builtin_type_v2_int32, builtin_type_v4_int16,
7781 builtin_type_v8_int8): New (renamed) SIMD types.
7782
7783 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7784
7785 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7786 (i387_fill_fxsave): Likewise.
7787
7788 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7789
7790 * alpha-tdep.c (alpha_extract_return_value): Don't use
7791 non-constant array size in prototype.
7792
7793 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7794
7795 From Brian Taylor <briant at model dot com>:
7796 * ui-out.c (ui_out_field_core_addr): Use the function
7797 longest_local_hex_string_custom'to format addresses > 32 bits
7798 wide.
7799
7800 * ui-out.c (ui_out_field_core_addr): Update comment.
7801
7802 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7803
7804 * stack.c (select_and_print_frame): Make static. Delete the
7805 parameter `level'.
7806 (func_command): Update call.
7807 (select_frame_command): Delete code computing the frame level.
7808 * frame.h (select_and_print_frame): Delete declaration.
7809
7810 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7811
7812 * sparc-tdep.c (sparc_get_saved_register): Comment why
7813 get_prev_frame call is safe.
7814
7815 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7816
7817 * frame.h (select_frame): Delete level parameter.
7818 * stack.c (select_frame): Update. Use frame_relative_level to
7819 obtain the frame's level.
7820 (select_and_print_frame): Update call.
7821 (select_frame_command): Ditto.
7822 (up_silently_base): Ditto.
7823 (down_silently_base): Ditto.
7824 * ocd.c (ocd_start_remote): Ditto.
7825 * remote-rdp.c (remote_rdp_open): Ditto.
7826 * remote-mips.c (mips_initialize): Ditto.
7827 (common_open): Ditto.
7828 * remote-e7000.c (e7000_start_remote): Ditto.
7829 * m3-nat.c (select_thread): Ditto.
7830 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7831 (child_get_current_exception_event): Ditto.
7832 * varobj.c (varobj_create): Ditto.
7833 (varobj_update): Ditto.
7834 (c_value_of_root): Ditto.
7835 * tracepoint.c (finish_tfind_command): Ditto.
7836 * corelow.c (core_open): Ditto.
7837 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7838 * thread.c (info_threads_command): Ditto.
7839 (switch_to_thread): Ditto.
7840 * infrun.c (normal_stop): Ditto.
7841 (restore_selected_frame): Ditto.
7842 (restore_inferior_status): Ditto.
7843 * breakpoint.c (insert_breakpoints): Ditto.
7844 (watchpoint_check): Ditto.
7845 (bpstat_stop_status): Ditto.
7846 (do_enable_breakpoint): Ditto.
7847 * blockframe.c (flush_cached_frames): Ditto.
7848 (reinit_frame_cache): Ditto.
7849
7850 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7851
7852 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7853 maintainer.
7854
7855 2002-05-04 Jim Blandy <jimb@redhat.com>
7856
7857 * gdbtypes.c (replace_type): Doc fix.
7858
7859 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7860
7861 * valprint.c (strcat_longest): Delete commented out function.
7862 Update copyright.
7863
7864 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7865
7866 * MAINTAINERS: Mark a29k as deleted.
7867 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7868 Move new configurations to the top.
7869 * configure.tgt: Remove a29k.
7870 * config/a29k/tm-vx29k.h: Delete.
7871 * config/a29k/vx29k.mt: Delete.
7872 * config/a29k/tm-a29k.h: Delete.
7873 * config/a29k/a29k-udi.mt: Delete.
7874 * config/a29k/a29k.mt: Delete.
7875 * a29k-tdep.c: Delete.
7876 * remote-udi.c: Delete.
7877 * remote-mm.c: Delete.
7878 * remote-eb.c: Delete.
7879 * remote-adapt.c: Delete.
7880 * Makefile.in: Remove obsolete code.
7881 * config/s390/s390x.mt: Ditto.
7882 * config/s390/s390.mt: Ditto.
7883 * config/sparc/sparclynx.mh: Ditto.
7884 * config/sparc/linux.mh: Ditto.
7885 * config/pa/hppaosf.mh: Ditto.
7886 * config/pa/hppabsd.mh: Ditto.
7887 * config/ns32k/nbsd.mt: Ditto.
7888 * config/mips/vr5000.mt: Ditto.
7889 * config/m68k/sun3os4.mh: Ditto.
7890 * config/m68k/nbsd.mt: Ditto.
7891 * config/m68k/m68klynx.mh: Ditto.
7892 * config/m32r/m32r.mt: Ditto.
7893 * config/i386/x86-64linux.mt: Ditto.
7894 * config/i386/nbsdelf.mt: Ditto.
7895 * config/i386/nbsd.mt: Ditto.
7896 * config/i386/i386lynx.mh: Ditto.
7897
7898 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7899
7900 * target.c (debug_print_register): New function. Handle oversize
7901 registers.
7902 (debug_to_fetch_registers): Call.
7903 (debug_to_store_registers): Call.
7904
7905 2002-05-03 Jim Blandy <jimb@redhat.com>
7906
7907 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7908 (read_type): Doc fix.
7909 * gdbtypes.c (replace_type): Doc fix.
7910
7911 * stabsread.c (multiply_defined_struct): New complaint.
7912 (read_struct_type): If the type we were passed isn't empty, or
7913 incomplete, don't read the new struct type into it; complain,
7914 and return the original type unchanged. Take a new `type_code'
7915 argument, which is the type code for the new type.
7916 (read_type): Rather than storing the type's type code here, pass
7917 it as an argument to read_struct_type, and let that take care of
7918 storing it. That way, we don't overwrite the original type code,
7919 so read_struct_type can use it to decide whether we're overwriting
7920 something we shouldn't.
7921 (complain_about_struct_wipeout): New function.
7922
7923 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7924
7925 * gdbarch.sh: Assert that gdbarch is non-NULL.
7926 * gdbarch.c: Regenerate.
7927
7928 2002-05-03 Jason Merrill <jason@redhat.com>
7929
7930 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7931 and return NULL.
7932
7933 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7934
7935 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7936 (x86_64_dwarf2gdb_regno_map_length),
7937 (x86_64_dwarf2_reg_to_regnum): Added.
7938 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7939 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7940 (_initialize_x86_64_tdep): Synced with the change above.
7941 (x86_64_skip_prologue): Reformulated message.
7942
7943 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7944
7945 * f-exp.y: Also use new prev_lexptr variable
7946 to improve error reporting. Based on Michael Snyder
7947 2002-04-24 dated patch to c-exp.y.
7948 * jv-exp.y: Likewise.
7949 * m2-exp.y: Likewise.
7950
7951 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7952
7953 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7954 we are dealing with vectors.
7955
7956 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7957
7958 * config/m68k/tm-nbsd.h: Obvious fix,
7959 correct machine name.
7960
7961 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7962
7963 * p-typeprint.c (pascal_type_print_base): Add support
7964 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7965
7966 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7967
7968 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7969 for fondamental pascal 'char' type.
7970
7971 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7972
7973 * p-lang.h (is_pascal_string_type): Declaration changed,
7974 new sixth argument of type char ** added.
7975 * p-lang.c (is_pascal_string_type): Implementation
7976 changed. Args length_pos, length_size, string_pos, char_size
7977 can now be NULL. New argument arrayname set to the field
7978 name of the char array. Return value set to char array
7979 field index plus one.
7980 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7981 is_pascal_string_type function.
7982
7983 2002-05-02 Andrew Cagney <cagney@redhat.com>
7984
7985 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7986 <cagney@redhat.com> change.
7987 * gdbarch.c: Regenerate.
7988
7989 2002-05-02 Andrew Cagney <cagney@redhat.com>
7990
7991 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7992 before probing for a new one. Detect errorenous gdbarch_init
7993 functions.
7994 * gdbarch.c: Regenerate.
7995
7996 2002-05-01 Andrew Cagney <cagney@redhat.com>
7997
7998 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7999 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8000 * config/v850/tm-v850.h: Ditto. Update copyright.
8001
8002 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8003
8004 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8005 current_gdbarch.
8006
8007 2002-04-30 Michael Snyder <msnyder@redhat.com>
8008
8009 * arm-tdep.c: Whitespace clean-ups.
8010 (arm_skip_prologue): Fix thinko; two lines
8011 should have been removed as part of 4/24 change.
8012
8013 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8014
8015 * rs6000-tdep.c: Added comment describing how fpscr register
8016 numbers were chosen.
8017
8018 2002-04-30 Michael Snyder <msnyder@redhat.com>
8019
8020 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8021
8022 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8023
8024 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8025 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8026 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8027
8028 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8029
8030 From Louis Hamilton <hamilton@redhat.com>:
8031 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8032 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8033 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8034 not bfd-private xcoff data, to determine wordsize.
8035 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8036
8037 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8038
8039 GDB 5.2 released from 5.2 branch.
8040
8041 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8042
8043 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8044 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8045 (x86_64_register_info_table): Added comments with register numbers.
8046
8047 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8048
8049 * rs6000-tdep.c (rs6000_extract_return_value,
8050 rs6000_store_return_value): Handle returning vectors.
8051 (rs6000_gdbarch_init): Use
8052 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8053 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8054 New function.
8055 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8056 vectors.
8057 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8058 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8059
8060 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8061
8062 * hpread.c (hpread_psymtab_to_symtab_1,
8063 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8064 with fprintf_unfiltered (gdb_stderr,...).
8065
8066 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8067
8068 * remote-array.c (printf_monitor, write_monitor,
8069 array_insert_breakpoint, array_remove_breakpoint ):
8070 Replace fprintf (stderr,...
8071 with fprintf_unfiltered (gdb_stderr,....
8072 * remote-es.c: Likewise.
8073 * remote-os9k.c: Likewise.
8074 * remote-st.c: Likewise.
8075
8076 2002-04-28 Andreas Schwab <schwab@suse.de>
8077
8078 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8079 linux-proc.o and gcore.o.
8080
8081 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8082
8083 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8084 code without frame pointers.
8085
8086 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8087
8088 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8089 ON_STACK is needed.
8090
8091 2002-04-26 Ben Elliston <bje@redhat.com>
8092
8093 * target.c (do_xfer_memory): Correct reference to the new option
8094 "trust-readonly-sections".
8095
8096 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8097
8098 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8099 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8100 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8101 vectors.
8102 (read_array_type): Record the fact that this array type is really a
8103 vector (i.e. are passed in by value).
8104
8105 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8106
8107 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8108 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8109 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8110 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8111 * alpha-linux-tdep.c: Include frame.h.
8112 (alpha_linux_sigcontext_addr): New function.
8113 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8114 alpha_linux_sigcontext_addr.
8115 * alpha-osf1-tdep.c: Include gdbcore.h.
8116 (alpha_osf1_sigcontext_addr): New function.
8117 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8118 alpha_osf1_sigcontext_addr.
8119 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8120 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8121
8122 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8123
8124 * stack.c (selected_frame_level):
8125 (select_frame): Do not set selected_frame_level.
8126 * frame.h (selected_frame_level): Delete declaration.
8127
8128 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8129
8130 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8131 convert_from_func_ptr-addr when AIX / PowerOpen.
8132
8133 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8134
8135 * valops.c (hand_function_call): Call
8136 generic_save_call_dummy_addr.
8137 * frame.h (generic_save_call_dummy_addr): Declare.
8138 * blockframe.c (struct dummy_frame): Add fields call_lo and
8139 call_hi.
8140 (generic_find_dummy_frame): Check for PC in range call_lo to
8141 call_hi instead of entry_point_address.
8142 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8143 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8144 (generic_save_call_dummy_addr): New function.
8145
8146 2002-04-24 David S. Miller <davem@redhat.com>
8147
8148 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8149 sparc_skip_prologue.
8150 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8151 information to find prologue when possible.
8152 (sparc_prologue_frameless_p): Call examine_prologue directly.
8153 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8154 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8155 second argument.
8156 (SKIP_PROLOGUE): Likewise.
8157
8158 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8159
8160 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8161 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8162 indicate that the condition it was testing is always true.
8163 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8164 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8165 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8166
8167 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8168
8169 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8170 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8171 tdep->jb_pc and tdep->jb_elt_size.
8172 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8173 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8174 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8175 * alpha-nat.c (get_longjmp_target): Remove.
8176 (JB_ELEMENT_SIZE): Ditto.
8177 (JB_PC): Ditto.
8178 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8179 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8180 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8181 to alpha_get_longjmp_target.
8182 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8183 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8184 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8185
8186 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8187
8188 * README: Update to GDB 5.2.
8189
8190 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8191
8192 * gdbarch.sh (LC_ALL): Set to `c'.
8193
8194 2002-04-25 Theodore A. Roth <troth@verinet.com>
8195
8196 * avr-tdep.c: Ran through gdb_indent.sh.
8197
8198 2002-04-25 Theodore A. Roth <troth@verinet.com>
8199
8200 * MAINTAINERS: Add myself as AVR maintainer.
8201 * NEWS: Note new target avr.
8202
8203 2002-04-25 Theodore A. Roth <troth@verinet.com>
8204
8205 * Makefile.in: Add support for AVR target.
8206 * configure.tgt: Add support for AVR target.
8207 * avr-tdep.c: New file
8208 * config/avr/avr.mt: New file.
8209
8210 2002-04-25 Theodore A. Roth <troth@verinet.com>
8211
8212 * MAINTAINERS: Add myself to write-after-approval.
8213
8214 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8215
8216 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8217 with fprintf_unfiltered (gdb_stderr,....
8218
8219 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8220
8221 Fix PR gdb/508.
8222 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8223
8224 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8225
8226 * p-exp.y: Also use new prev_lexptr variable
8227 to improve error reporting. Based on Michael Snyder
8228 2002-04-24 dated patch to c-exp.y.
8229
8230 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8231
8232 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8233 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8234 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8235 to 0.
8236 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8237 and struct value.
8238 (FUNCTION_START_OFFSET): Remove.
8239 (BREAKPOINT): Ditto.
8240
8241 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8242
8243 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8244 * NEWS: Ditto.
8245
8246 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8247
8248 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8249 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8250 alpha_linux_pc_in_sigtramp.
8251 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8252 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8253 alpha_osf1_pc_in_sigtramp.
8254 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8255 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8256 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8257 alphafbsd_pc_in_sigtramp.
8258 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8259 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8260 alphanbsd_pc_in_sigtramp.
8261 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8262 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8263
8264 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8265
8266 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8267
8268 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8269
8270 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8271 alphanbsd-tdep.c.
8272 (alphanbsd-nat.o): New dependency list.
8273 (alphanbsd-tdep.o): Ditto.
8274 * NEWS: Note new native NetBSD/alpha configuration.
8275 * alphanbsd-nat.c: New file.
8276 * alphanbsd-tdep.c: Ditto.
8277 * configure.host (alpha*-*-netbsd*): New host.
8278 * configure.tgt (alpha*-*-netbsd*): New target.
8279 * config/alpha/nbsd.mh: New file.
8280 * config/alpha/nbsd.mt: Ditto.
8281 * config/alpha/nm-nbsd.h: Ditto.
8282 * config/alpha/tm-nbsd.h: Ditto.
8283
8284 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8285
8286 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8287 (alpha-osf1-tdep.o): New dependency list.
8288 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8289 and skip_sigtramp_frame members.
8290 * alpha-linux-tdep.c: Include gdbcore.h.
8291 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8292 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8293 * alpha-osf1-tdep.c: New file.
8294 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8295 alpha-osf1-dep.c.
8296 (alpha_frame_past_sigtramp_frame): New function.
8297 (alpha_dynamic_sigtramp_offset): Ditto.
8298 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8299 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8300 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8301 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8302 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8303 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8304 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8305 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8306 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8307 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8308 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8309 to find_solib_trampoline_target.
8310 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8311 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8312 (SKIP_TRAMPOLINE_CODE): Remove.
8313 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8314 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8315 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8316 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8317 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8318 (PROC_SIGTRAMP_MAGIC): Ditto.
8319 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8320 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8321 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8322 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8323 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8324
8325 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8326
8327 * NEWS: Note that Alpha targets are now multi-arch.
8328
8329 2002-04-24 Michael Snyder <msnyder@redhat.com>
8330
8331 * parser-defs.h (prev_lexptr): New external variable.
8332 * parse.c (parse_exp_1): Set prev_lexptr to null before
8333 calling the language-specific parser.
8334 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8335 (yyerror): Use prev_lexptr in error reporting.
8336
8337 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8338
8339 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8340 * gregset.h: If FILL_FPXREGSET is defined, provide
8341 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8342 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8343 is defined, call fill_fpxregset.
8344
8345 2002-04-24 Roland McGrath <roland@frob.com>
8346
8347 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8348 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8349 (supply_gregset, supply_fpregset): New functions.
8350
8351 * gnu-nat.c (gnu_find_memory_regions): New function.
8352 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8353 (gnu_xfer_memory): Add a cast.
8354
8355 2002-04-24 Michael Snyder <msnyder@redhat.com>
8356
8357 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8358 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8359 of argument regs ("str r(0123), [r11, #-nn"]).
8360 (arm_skip_prologue): Better handling for frameless functions.
8361 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8362 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8363
8364 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8365
8366 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8367 NUM_PSEUDO_REGS can be used.
8368
8369 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8370
8371 * arch-utils.h: Update copyright.
8372
8373 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8374 * gdbarch.h, gdbarch.c: Re-generate.
8375
8376 * inferior.h (IN_SIGTRAMP): Delete definition.
8377 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8378 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8379
8380 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8381 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8382 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8383 (find_proc_framesize): Ditto.
8384 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8385 (alpha_init_extra_frame_info): Ditto.
8386 * infrun.c (handle_inferior_event): Ditto.
8387 (handle_inferior_event): Ditto.
8388 (check_sigtramp2): Ditto.
8389 * blockframe.c (create_new_frame): Ditto.
8390 (get_prev_frame): Ditto.
8391 * ppc-linux-tdep.c: Update comments.
8392 * i386-linux-tdep.c: Update comments.
8393 * breakpoint.c (bpstat_what): Update comment.
8394
8395 2002-04-24 David S. Miller <davem@redhat.com>
8396
8397 * i960-tdep.c (register_in_window_p): New function.
8398 (i960_find_saved_register): Use it instead of
8399 REGISTER_IN_WINDOW_P.
8400 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8401
8402 * symtab.h (find_stab_function_addr): Kill extern.
8403 * minsyms.c (find_stab_function_addr): Remove from here...
8404 * dbxread.c: ... to here, and mark it static.
8405
8406 2002-04-20 David S. Miller <davem@redhat.com>
8407
8408 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8409 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8410
8411 2002-04-21 David S. Miller <davem@redhat.com>
8412
8413 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8414 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8415 (vx_write_register): Likewise.
8416
8417 2002-04-23 J. Brobecker <brobecker@gnat.com>
8418
8419 * source.c (is_regular_file): New function.
8420 (openp): Check wether file to open is a regular file
8421 to avoid opening directories.
8422
8423 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8424
8425 * findvar.c (extract_signed_integer): Cast printf argument
8426 to suppress format warning.
8427 (extract_unsigned_integer): Likewise.
8428 * infcmd.c (registers_info): Likewise.
8429 * top.c (get_prompt_1): Likewise.
8430 * valops.c (value_assign): Likewise.
8431 * valprint.c (print_decimal): Likewise.
8432
8433 2002-04-22 H.J. Lu (hjl@gnu.org)
8434
8435 * c-exp.y (typebase): Support
8436
8437 [long|long long|short] [signed|unsigned] [int|]
8438
8439 and
8440
8441 signed [long|long long|short] int
8442
8443 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8444
8445 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8446 and vax-tdep.h.
8447 * vax-tdep.h: New file.
8448 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8449 Make several routines static.
8450 (vax_get_saved_register): New function.
8451 (vax_gdbarch_init): New function.
8452 (_initialize_vax_tdep): Register vax_gdbarch_init.
8453 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8454 Remove macros now under the control of gdbarch.
8455
8456 2002-04-22 Michael Snyder <msnyder@redhat.com>
8457
8458 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8459 Some whitespace and coding standards tweaks.
8460
8461 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8462
8463 * vax-tdep.c: Include regcache.h.
8464 (vax_call_dummy_words): New.
8465 (sizeof_vax_call_dummy_words): New.
8466 (vax_fix_call_dummy): New function.
8467 (vax_saved_pc_after_call): Ditto.
8468 * config/vax/tm-vax.h: Don't include regcache.h.
8469 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8470 (CALL_DUMMY): Remove.
8471 (CALL_DUMMY_WORDS): Define.
8472 (SIZEOF_CALL_DUMMY_WORDS): Define.
8473 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8474
8475 2002-04-18 Michael Snyder <msnyder@redhat.com>
8476
8477 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8478
8479 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8480
8481 * vax-tdep.c (vax_frame_chain): New function.
8482 (vax_push_dummy_frame): Ditto.
8483 (vax_pop_frame): Ditto.
8484 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8485 (FRAMELESS_FUNCTION_INVOCATION): Use
8486 generic_frameless_function_invocation_not.
8487 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8488 (POP_FRAME): Use vax_pop_frame.
8489
8490 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8491
8492 * vax-tdep.c (vax_store_struct_return): New function.
8493 (vax_extract_return_value): Ditto.
8494 (vax_store_return_value): Ditto.
8495 (vax_extract_struct_value_address): Ditto.
8496 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8497 vax_store_struct_return.
8498 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8499 (STORE_RETURN_VALUE): Use vax_store_return_value.
8500 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8501
8502 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8503
8504 * vax-tdep.c (vax_frame_saved_pc): New function.
8505 (vax_frame_args_address_correct): Ditto.
8506 (vax_frame_args_address): Ditto.
8507 (vax_frame_locals_address): Ditto.
8508 (vax_frame_num_args): Move code to be in proximity to
8509 other frame-related functions.
8510 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8511 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8512 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8513 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8514 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8515
8516 2002-04-22 H.J. Lu (hjl@gnu.org)
8517
8518 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8519 includedir.
8520
8521 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8522
8523 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8524 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8525 (FRAME_INIT_SAVED_REGS): New macro.
8526
8527 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8528
8529 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8530
8531 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8532
8533 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8534 where needed.
8535 (fetch_osf_core_registers): Likewise.
8536 (supply_gregset): Likewise.
8537
8538 2002-04-22 J. Brobecker <brobecker@gnat.com>
8539
8540 * symfile.h (get_section_index): Define.
8541 * symfile.c (get_section_index): New function.
8542 * mdebugread.c (SC_IS_SBSS): New macro.
8543 (SC_IS_BSS): Return true for the scBss storage class only, as
8544 the scSBss storage class refers to the .sbss section.
8545 (parse_partial_symbols): Discard the symbols which associated
8546 section does not exist.
8547 Make sure to use the .sbss section index for symbols which
8548 storage class is scBss, rather than using the .bss section index.
8549
8550 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8551
8552 * vax-tdep.c: Update copyright years.
8553 (vax_register_name): New function.
8554 (vax_register_byte): Ditto.
8555 (vax_register_raw_size): Ditto.
8556 (vax_register_virtual_size): Ditto.
8557 (vax_register_virtual_type): Ditto.
8558 * config/vax/tm-vax.h: Update copyright years.
8559 (REGISTER_NAMES): Remove.
8560 (REGISTER_NAME): Define.
8561 (REGISTER_BYTE): Use vax_register_byte.
8562 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8563 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8564 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8565
8566 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8567
8568 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8569 declaration
8570 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8571
8572 2002-04-21 David S. Miller <davem@redhat.com>
8573
8574 * arch-utils.c (generic_prologue_frameless_p): Kill
8575 SKIP_PROLOGUE_FRAMELESS_P code.
8576 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8577 references.
8578 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8579 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8580 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8581 references.
8582 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8583 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8584 (sparc_gdbarch_init): Pass it to
8585 set_gdbarch_prologue_frameless_p.
8586
8587 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8588
8589 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8590 (alphabsd-nat.o): New dependency list.
8591
8592 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8593
8594 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8595 alphafbsd-tdep.c.
8596 (alpha-linux-tdep.o): New dependency list.
8597 (alphafbsd-tdep.o): Likewise.
8598
8599 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8600
8601 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8602 to here...
8603 * alpha-tdep.c: ...from here.
8604 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8605
8606 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8607
8608 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8609 prototype from here...
8610 * alpha-tdep.h: ...to here.
8611
8612 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8613
8614 * frame.h (selected_frame_level): Document as deprecated.
8615 (frame_relative_level): Declare.
8616 * stack.c (frame_relative_level): New function.
8617 (selected_frame_level): Document as deprecated.
8618 (select_frame): Do not set the selected_frame_level.
8619
8620 * stack.c (frame_info, record_selected_frame): Update.
8621 (frame_command, current_frame_command): Update.
8622 (up_silently_base, up_command, down_silently_base): Update.
8623 (down_command): Update.
8624 * inflow.c (kill_command): Update.
8625 * tracepoint.c (finish_tfind_command): Update.
8626 * corelow.c (core_open): Update.
8627 * thread.c (info_threads_command): Update.
8628 (do_captured_thread_select): Update.
8629 * infcmd.c (finish_command): Update.
8630 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8631
8632 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8633
8634 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8635
8636 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8637
8638 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8639 type const.
8640
8641 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * alphafbsd-tdep.c: Update copyright years. Include
8644 alpha-tdep.h.
8645 (alphafbsd_use_struct_convention): Make static.
8646 (alphafbsd_init_abi): New function.
8647 (_initialize_alphafbsd_tdep): New function.
8648 * config/alpha/tm-fbsd.h: Update copyright years.
8649 (USE_STRUCT_CONVENTION): Remove.
8650
8651 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8652
8653 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8654 an Alpha ABI variant.
8655 (alpha_abi_handler_list): Declare.
8656 (alpha_gdbarch_register_os_abi): New function.
8657 (alpha_gdbarch_init): Give registered ABI variant handlers a
8658 chance to tweak the gdbarch once we have set up defaults.
8659 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8660
8661 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8662
8663 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8664 to standard_coerce_float_to_double.
8665 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8666
8667 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8668
8669 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8670 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8671 from gdbarch_tdep rather than a constant.
8672 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8673 the default text address for all Alpha Unix ABIs.
8674 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8675 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8676
8677 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8678
8679 * alpha-tdep.h: New file. Includes several Alpha target constants
8680 taken from...
8681 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8682 let gdbarch deal with.
8683 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8684 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8685 to dependency list.
8686 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8687 Alpha target register names.
8688 * alphabsd-nat.c: Likewise.
8689 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8690 Alpha target register names. Make serveral routines static.
8691 (alpha_get_saved_register): New function.
8692 (alpha_abi_names): New.
8693 (process_note_abi_tag_sections): New function.
8694 (get_elfosabi): New function.
8695 (alpha_gdbarch_init): New function.
8696 (alpha_dump_tdep): New function.
8697 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8698
8699 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8700
8701 * frame.c (find_saved_register): Delete #ifdef
8702 HAVE_REGISTER_WINDOWS code.
8703 * config/sparc/tm-sparc.h: Update comments.
8704 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8705
8706 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8707
8708 * i960-tdep.c (i960_find_saved_register): New function.
8709 (i960_get_saved_register): New function.
8710 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8711 (i960_get_saved_register): Declare.
8712 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8713
8714 2002-04-20 David S. Miller <davem@redhat.com>
8715
8716 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8717
8718 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8719
8720 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8721 instead of NUM_PSEUDO_REGS.
8722
8723 2002-04-20 David S. Miller <davem@redhat.com>
8724
8725 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8726 GDB_MULTI_ARCH_PARTIAL
8727 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8728 define, let tm-sp64.h do it.
8729
8730 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8731
8732 * frame.c (find_saved_register): Avoid a NULL pointer
8733 dereference and actually walk the frame list.
8734
8735 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8736
8737 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8738 sorted in most most-recent-used order. Document.
8739 * gdbarch.h, gdbarch.c: Regenerate.
8740
8741 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8742
8743 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8744 instead of ->prev.
8745 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8746 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8747 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8748 instead of ->prev.
8749
8750 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8751
8752 Fix PR gdb/471.
8753 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8754 (build_builtin_type_vec128): Ditto.
8755 (append_composite_type_field): Fix calculation of type length in
8756 union case.
8757
8758 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8759
8760 * config/djgpp/README: Update.
8761
8762 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8763 compiler warnings.
8764
8765 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8766
8767 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8768 (alpha_setup_arbitrary_frame): ...to this.
8769 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8770 for alpha_setup_arbitrary_frame.
8771
8772 2002-04-18 Andrew Cagney <cagney@redhat.com>
8773
8774 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8775 * gdbarch.h, gdbarch.c: Regenerate.
8776
8777 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8778 * target.h (memory_breakpoint_from_pc): Update declaration.
8779 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8780
8781 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8782 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8783 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8784 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8785 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8786 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8787 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8788 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8789 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8790 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8791 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8792 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8793
8794 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8795 const pointer.
8796 * monitor.c (monitor_insert_breakpoint): Ditto.
8797 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8798
8799 * config/mcore/tm-mcore.h: Update copyright.
8800 * mem-break.c: Ditto.
8801 * xstormy16-tdep.c: Ditto.
8802
8803 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8804
8805 * p-exp.y: Add precedence rule for '^' token.
8806 This removes the shift/reduce conflicts.
8807 Remove the comment concerning these shift/reduce conflicts.
8808
8809 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8812 (registers_powerpc_nofp): New register set for processors
8813 without floating point unit.
8814
8815 2002-04-18 David S. Miller <davem@redhat.com>
8816
8817 * MAINTAINERS: Add myself to write-after-approval.
8818
8819 2002-04-17 Michael Snyder <msnyder@redhat.com>
8820
8821 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8822
8823 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8824
8825 * rs6000-tdep.c (frame_initial_stack_address): Use
8826 frame_register_read to read the alloca_reg.
8827
8828 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8829
8830 * frame.c (find_saved_register): Find saved registers in the next
8831 not prev frame.
8832 Fix PR gdb/365.
8833
8834 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8835
8836 * gdbarch.sh (LANG): Set to ``c''.
8837
8838 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8839
8840 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8841
8842 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8843
8844 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8845 Update copyright.
8846
8847 * hpread.c (hpread_get_lntt): Add declaration.
8848 Also fix PR gdb/391.
8849
8850 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8851
8852 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8853 * aclocal.m4, configure: Re-generate.
8854 Fix PR gdb/391.
8855
8856 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8857
8858 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8859 instead of tm_print_insn.
8860
8861 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8862
8863 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8864
8865 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8866
8867 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8868 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8869 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8870
8871 2002-04-12 Don Howard <dhoward@redhat.com>
8872
8873 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8874 max_user_call_depth.
8875 (init_cmd_lists): Initialize the new value;
8876 * cli/cli-script.c (execute_user_command): Limit the call depth of
8877 user defined commands. This avoids a core-dump when user commands
8878 are infinitly recursive.
8879
8880 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8881
8882 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8883 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8884 from tdep struct instead of DEFAULT_LR_SAVE.
8885 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8886 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8887 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8888
8889 2002-04-12 Michael Snyder <msnyder@redhat.com>
8890
8891 * Remote.c: Spelling fix.
8892 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8893 If no symbol found for "sbrk", try "_sbrk".
8894 (make_output_phdrs): Use bfd_section_name.
8895 (gcore_copy_callback): Use bfd_section_name.
8896 * eval.c: Indentation fix-ups.
8897 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8898 in case it gets applied to an address that is already
8899 in the instruction space.
8900 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8901 * symfile.c: Fix indentation, long lines.
8902 * source.c: White space fix-up.
8903
8904 2002-04-12 Andrew Cagney <cagney@redhat.com>
8905
8906 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8907 * frame.c (frame_register_read): New function. Return non-zero on
8908 success.
8909 (read_relative_register_raw_bytes_for_frame): Delete.
8910 (read_relative_register_raw_bytes): Delete.
8911 * frame.h (frame_register_read): Declare.
8912 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8913 * sh-tdep.c: Ditto.
8914 * infcmd.c (do_registers_info): Ditto.
8915 * hppa-tdep.c: Ditto.
8916 * rs6000-tdep.c: Ditto.
8917 * h8500-tdep.c: Ditto.
8918 * mips-tdep.c: Ditto.
8919 * h8300-tdep.c: Ditto.
8920 * z8k-tdep.c: Ditto.
8921
8922 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8923
8924 From Jimi X <jimix@watson.ibm.com>:
8925 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8926 64-bit SysV ABI.
8927
8928 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8929
8930 From Jimi X <jimix@watson.ibm.com>:
8931 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8932 bfd info.
8933
8934 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8935
8936 From Jimi X <jimix@watson.ibm.com>:
8937 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8938 register sets for these processor variants.
8939
8940 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * regformats/reg-ppc.dat: Support FPSCR.
8943
8944 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8945
8946 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8947 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8948 Add fpscr as an invalid/unfetchable register.
8949 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8950 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8951 (fill_fpregset): Add support for register fpscr.
8952 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8953 (fill_gregset): Account for the fact that register ``mq'' might
8954 not exist.
8955 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8956 (registers_power): Add fpscr to register set at slot 71.
8957 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8958 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8959
8960 2002-04-11 Michael Snyder <msnyder@redhat.com>
8961
8962 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8963 * configure: Regenerate.
8964 * config.in: Regenerate.
8965 * acconfig.h: Add define for _SYSCALL32.
8966 * core-sol2.c: Remove #define _SYSCALL32.
8967 * solib-legacy.c: Remove #define _SYSCALL32.
8968
8969 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8970
8971 * stack.c (select_frame): Cleanup internal error message, do not
8972 use %p.
8973
8974 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8975
8976 * stack.c (select_frame): Check that selected_frame and the
8977 specified level are as expected.
8978 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8979 Update copyright.
8980 * frame.h (struct frame_info): Add field `level'. Update
8981 copyright.
8982 Work-in-progress PR gdb/464.
8983
8984 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8985
8986 * maint.c (maint_print_section_info): Rename print_section_info.
8987 (print_bfd_section_info, print_objfile_section_info): Update.
8988 * inferior.h (struct gdbarch): Add opaque declaration.
8989 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8990 * gdbarch.h: Regenerate.
8991
8992 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8993
8994 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8995 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8996 (kernel_u_size): Added.
8997 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8998 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8999
9000 2002-04-04 Jim Ingham <jingham@apple.com>
9001
9002 * valarith.c (find_size_for_pointer_math): New function, either returns
9003 the size for a pointer's target, returns 1 for void *, or errors for
9004 incomplete types.
9005 (value_add, value_sub): use find_size_for_pointer_math.
9006
9007 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9008
9009 * linux-low.c (linux_look_up_symbols): New hook.
9010 (linux_target_ops): Add linux_look_up_symbols.
9011 * remote-utils.c (decode_address): New function.
9012 (look_up_one_symbol): New function.
9013 * server.c (handle_query): Call target look_up_symbols hook.
9014 * server.h (look_up_one_symbol): Add prototype.
9015 * target.h (struct target_ops): Add look_up_symbols hook.
9016
9017 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9018
9019 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9020 override FP_REGNUM with frame->fp. Update copyright.
9021 * parse.c (num_std_regs, std_regs): Delete.
9022 (target_map_name_to_register): Do not search std_regs. Update
9023 function description.
9024 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9025 declarations. Update copyright.
9026 Fix PR gdb/251.
9027
9028 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9029
9030 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9031 after the last symbol in a block.
9032
9033 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9034
9035 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9036 is non zero as a found symbol.
9037
9038 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9039
9040 * findvar.c: Include "builtin-regs.h".
9041 (value_of_register): Call value_of_builtin_reg when applicable.
9042 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9043 (target_map_name_to_register): Call
9044 builtin_reg_map_name_to_regnum.
9045 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9046 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9047 (builtin_regs_h): Define.
9048 (builtin-regs.o): New target.
9049 (findvar.o): Add $(builtin_regs_h).
9050 * builtin-regs.c, builtin-regs.h: New files.
9051 * std-regs.c: New file.
9052 Partial fix for PR gdb/251.
9053
9054 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9055
9056 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9057 it's no longer required.
9058
9059 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9060
9061 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9062
9063 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9064
9065 From Jimi X <jimix@watson.ibm.com>:
9066 * rs6000-tdep.c (rs6000_software_single_step): Use
9067 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9068 and size. Use target_insert_breakpoint() and
9069 target_remove_breakpoint() to insert and remove breakpoints
9070 instead of explicit memory reads and writes.
9071
9072 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9073
9074 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9075 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9076 ELF_OBJECT_FORMAT ifdef.
9077
9078 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9079
9080 From Jimi X <jimix@watson.ibm.com>:
9081 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9082
9083 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9084
9085 From Jimi X <jimix@watson.ibm.com>:
9086 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9087 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9088
9089 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9090
9091 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9092 s/asprintf/xasprintf/.
9093 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9094
9095 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9096
9097 I believe Jeff Law denies responsability for this one:
9098 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9099 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9100 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9101 Work-around for PR gdb/366.
9102
9103 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9104
9105 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9106 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9107 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9108
9109 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9110
9111 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9112 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9113 information.
9114
9115 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9116
9117 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9118 maintainer.
9119
9120 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9121
9122 * README (Reporting Bugs in GDB): Document the bug web page as the
9123 prefered way of submitting bugs.
9124 Fix PR gdb/402.
9125
9126 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9127
9128 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9129 -1. Update comment.
9130 * gdbarch.h, gdbarch.c: Re-generate.
9131
9132 2002-04-07 Andreas Schwab <schwab@suse.de>
9133
9134 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9135 buffer to regcache_collect.
9136
9137 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9138
9139 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9140 * gdbarch.c, gdbarch.h: Re-generate.
9141
9142 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9143
9144 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9145 declaration. Fix -Werror.
9146
9147 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9150 * gdbarch.c: Regenerate.
9151
9152 2002-04-05 Michael Snyder <msnyder@redhat.com>
9153
9154 * breakpoint.c (clear_command): Rewrite middle section to
9155 combine two loops with identical control conditions.
9156 Add a cleanup to eliminate a memory leak.
9157 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9158
9159 2002-04-05 H.J. Lu (hjl@gnu.org)
9160
9161 * solib-svr4.c (bkpt_names): Add "__start".
9162
9163 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9164
9165 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9166 as test for 64 bit target.
9167
9168 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9169
9170 * h8500-tdep.c (h8500_write_fp): Delete function.
9171 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9172 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9173 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9174 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9175 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9176 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9177 (s390_write_fp):
9178 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9179 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9180 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9181 (d10v_write_fp): Delete function.
9182 * inferior.h (write_fp, generic_target_write_fp): Delete
9183 declarations.
9184 * regcache.c (generic_target_write_fp): Delete function.
9185 (write_fp): Delete function.
9186 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9187 * gdbarch.h, gdbarch.c: Regenerate.
9188 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9189 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9190 (sparc64_write_fp): Delete declaration.
9191 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9192 (h8500_write_fp): Delete declaration.
9193
9194 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9195
9196 * sparc-tdep.c (sparc64_write_fp): Delete.
9197 (sparc_push_dummy_frame): Replace write_fp call with code to store
9198 the FP directly.
9199 (sparc_gdbarch_init): Do not initialize write_fp.
9200
9201 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9202
9203 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9204 clause.
9205
9206 2002-03-29 Jim Blandy <jimb@redhat.com>
9207
9208 * stack.c (get_selected_block): Add new argument `addr_in_block',
9209 used to return the exact code address we used to select the block,
9210 not just the block.
9211 * blockframe.c (get_frame_block, get_current_block): Same.
9212 * frame.h (get_frame_block, get_current_block,
9213 get_selected_block): Update declarations.
9214 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9215 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9216
9217 2002-04-05 Michael Snyder <msnyder@redhat.com>
9218
9219 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9220 warning message.
9221
9222 2002-04-05 J. Brobecker <brobecker@gnat.com>
9223
9224 * utils.c (xfullpath): New function.
9225 * defs.h (xfullpath): Add declaration.
9226 * source.c (openp): Use xfullpath in place of gdb_realpath to
9227 avoid resolving the basename part of filenames when the
9228 associated file is a symbolic link. This fixes a potential
9229 inconsistency between the filenames known to GDB and the
9230 filenames it prints in the annotations.
9231 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9232 to be able to match a filename with either the real filename, or
9233 the name of any symbolic link to this file.
9234 (lookup_partial_symtab): Ditto.
9235
9236 2002-04-04 Michael Snyder <msnyder@redhat.com>
9237
9238 * breakpoint.c: Add support for hardware breakpoints in overlays.
9239 (overlay_events_enabled): New state variable.
9240 (insert_breakpoints): Use overlay_events_enabled to decide
9241 whether to attempt to set a breakpoint at the overlay load addr.
9242 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9243 (remove_breakpoint): Use overlay_events_enabled to decide
9244 whether breakpoints need to be removed from overlay load addr.
9245 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9246 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9247 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9248 disable_overlay_breakpoints): Update overlay_events_enabled.
9249
9250 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9251
9252 * dwarf2read.c (struct function_range): New.
9253 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9254 (check_cu_functions): New.
9255 (read_file_scope): Initialize global function lists.
9256 Call dwarf_decode_line after processing children.
9257 (read_func_scope): Add to global function list.
9258 (dwarf_decode_lines): Call check_cu_functions everywhere
9259 record_line is called. Call record_line with a linenumber
9260 of 0 to mark sequence ends.
9261
9262 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9263
9264 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9265 change sync with glibc.
9266
9267 2002-04-03 Jim Blandy <jimb@redhat.com>
9268
9269 * configure.in: Call AC_C_INLINE.
9270 * configure: Regenerated.
9271
9272 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9273
9274 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9275 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9276
9277 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9278
9279 * NEWS: Mention gcore support on FreeBSD/i386.
9280
9281 * fbsd-proc.c: New file.
9282 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9283 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9284
9285 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9286 while statement.
9287
9288 2002-03-29 Jim Blandy <jimb@redhat.com>
9289
9290 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9291 unescaped newlines in string literals, but newer ones don't. So
9292 escape them.
9293
9294 2002-03-26 Michael Snyder <msnyder@redhat.com>
9295 Andrew Cagney <cagney@redhat.com>
9296
9297 * cli/cli-dump.c: New file. Dump memory to file,
9298 restore file to memory.
9299 * cli/cli-dump.h: New file.
9300 * Makefile.in: Add rules, dependencies for cli-dump.o.
9301 * NEWS: Mention new commands.
9302
9303 2002-03-28 Michael Snyder <msnyder@redhat.com>
9304
9305 * symfile.c (symbol_file_add): Move test for null symbols to later.
9306
9307 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9308
9309 From veksler at il.ibm.com:
9310 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9311 the xstrduped original path.
9312 Fix PR gdb/417.
9313
9314 2002-03-27 Michael Snyder <msnyder@redhat.com>
9315
9316 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9317 * infcmd.c (_initialize_infcmd): Ditto.
9318 * language.c (_initialize_language): Ditto.
9319 * symfile.c (_initialize_symfile): Ditto.
9320 * top.c (_init_main): Ditto.
9321 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9322
9323 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9324
9325 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9326 vector registers handling.
9327 (skip_prologue): Handle new AltiVec instructions. Fill in new
9328 fields of frame data.
9329 (frame_get_saved_regs): Fill in information for AltiVec registers.
9330
9331 2002-03-27 Jim Blandy <jimb@redhat.com>
9332
9333 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9334 a function; leave this macro here to invoke that function.
9335 (symbol_init_mangled_name): Declaration for that function.
9336 * symtab.c (symbol_init_mangled_name): New function.
9337
9338 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9339
9340 * valarith.c: Replace strerror with safe_strerror.
9341 * tracepoint.c: Ditto.
9342 * lin-lwp.c: Ditto.
9343 * go32-nat.c: Ditto.
9344 * inflow.c: Ditto.
9345 * gnu-nat.c: Ditto.
9346
9347 2002-03-27 Andreas Schwab <schwab@suse.de>
9348
9349 * event-top.c (command_line_handler): Remove useless if.
9350
9351 2002-03-27 Andreas Jaeger <aj@suse.de>
9352
9353 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9354 comment.
9355
9356 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9357
9358 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9359 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9360 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9361 (x86_64_linux_dr_get_status, supply_gregset),
9362 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9363 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9364 (x86_64_register_info_table): Add.
9365 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9366 (x86_64_register_raw_size, x86_64_register_virtual_type),
9367 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9368 general x86_64_register_info_table.
9369 (i386_gdbarch_init): gdbarch_register_bytes is now set
9370 dynamicaly during initialization.
9371 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9372 * gdbserver/linux-x86-64-low.c: Ditto.
9373
9374 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * gdbserver/server.c (main): Call target_signal_to_host_p
9377 and target_signal_to_host on signals received from the remote.
9378 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9379 target_signal_from_host on signals sent to the remote.
9380 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9381 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9382
9383 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9384
9385 * signals/signals.c: Include "server.h" in gdbserver build.
9386 (target_signal_from_name): Don't use STREQ.
9387 (_initialize_signals): Likewise. Don't include function in
9388 gdbserver build.
9389
9390 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9391
9392 * signals.c: Moved to...
9393 * signals/signals.c: Here.
9394 * Makefile (signals.o): Update.
9395
9396 2002-03-26 Jeff Law (law@redhat.com)
9397
9398 * somread.c (som_symtab_read): Remove some commented out code and
9399 updated related comments. Do not set the minimal symbol table to
9400 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9401 in a dynamic executable.
9402 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9403 where we are unable to find the minimal symbol for the given
9404 PC value.
9405
9406 2002-03-25 Jeff Law (law@redhat.com)
9407
9408 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9409
9410 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9411
9412 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9413
9414 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9415
9416 * command.h: Update copyright.
9417 (struct cmd_list_element): Replace definition with opaque
9418 declaration.
9419 (enum cmd_types): Document that it will eventually be moved to
9420 cli/cli-decode.h
9421 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9422 (MALLOCED_REPLACEMENT): Delete macro.
9423 * Makefile.in (cli_decode_h): Add $(command_h).
9424 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9425 * top.c: Include "cli/cli-decode.h".
9426 * completer.c: Include "cli/cli-decode.h".
9427 * maint.c: Include "cli/cli-decode.h".
9428 * cli/cli-decode.h: Include "command.h".
9429 (enum command_class): Delete.
9430 (enum cmd_types): Comment out.
9431 (enum cmd_auto_boolean): Delete.
9432 (enum var_types): Delete.
9433
9434 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9435
9436 * cli/cli-decode.c: Include "gdb_assert.h".
9437 (add_set_or_show_cmd): New static function.
9438 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9439 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9440 all fields, such as func, from the set command.
9441
9442 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9443
9444 * MAINTAINERS (sh-elf): Change warning flag to -w.
9445
9446 2002-03-23 Andrew Cagney <cagney@redhat.com>
9447
9448 * defs.h (error): Add printf format attribute.
9449 * thread-db.c (thread_from_lwp): Fix error format string.
9450 * stack.c (parse_frame_specification): Ditto.
9451 * cli/cli-decode.c (undef_cmd_error): Ditto.
9452 * scm-lang.c (scm_lookup_name): Ditto.
9453 * tracepoint.c (trace_error): Ditto.
9454 * remote-utils.c (usage): Ditto.
9455 * remote.c (compare_sections_command): Ditto.
9456 Fix PR gdb/328.
9457
9458 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9459
9460 * gdbtypes.c (append_composite_type_field): New function.
9461 (init_composite_type): New function.
9462 * gdbtypes.h (append_composite_type_field): Declare.
9463 (init_composite_type): Ditto.
9464
9465 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9466
9467 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9468 function.
9469 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9470 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9471 structure returning convention for SYSV ABI case, but not
9472 for GNU/Linux, FreeBSD, or NetBSD.
9473
9474 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9475
9476 * symtab.h (lookup_block_symbol): Add mangled_name argument
9477 to prototype.
9478
9479 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9480 with new mangled_name argument.
9481 * linespec.c (decode_line_1): Likewise.
9482 * valops (value_of_this): Likewise.
9483 * symtab.c (lookup_transparent_type): Likewise.
9484 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9485 (lookup_symbol): If we are given a mangled name, pass it down
9486 to lookup_symbol_aux.
9487 (lookup_block_symbol): If we are given a mangled name to check
9488 against, only return symbols which match it.
9489
9490 2002-03-22 Christopher Faylor <cgf@redhat.com>
9491
9492 * win32-nat.c (child_create_inferior): Check for proper shell to use
9493 here, in case the user changes it on the fly.
9494 (_initialize_inftarg): Remove shell path considerations.
9495
9496 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9497
9498 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9499 for gdbarch_max_register_raw_size and max_register_virtual_size.
9500 Adjust copyright year.
9501
9502 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9505 in a function to cover the entire beginning of the function
9506 as well if it does not already.
9507
9508 2002-03-21 Tom Rix <trix@redhat.com>
9509
9510 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9511 (rs6000_ptrace64): Renamed from ptrace64.
9512
9513 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9514
9515 * gdbserver/remote-utils.c (remote_open): Don't call
9516 getprotobyname, we're all using TCP here so just use
9517 IPPROTO_TCP.
9518 * gdbserver/gdbreplay.c (remote_open): Ditto.
9519
9520 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9521
9522 * regcache.c (_initialize_regcache): No need to call
9523 build_regcache() at this time; it gets called whenever
9524 the gdbarch changes.
9525
9526 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9527
9528 * sparc-nat.c: Include sys/param.h where possible.
9529
9530 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9531
9532 Fix PR gdb/422.
9533 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9534 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9535 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9536 complex types.
9537 * stabsread.c (rs6000_builtin_type): Likewise.
9538 (read_sun_floating_type): Likewise.
9539
9540 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9541
9542 * stabsread.c (read_member_functions): Remove skip code for duplicate
9543 constructor/destructor methods. Use standard parsing for these
9544 methods and just do not chain them to the list of methods after
9545 parsing.
9546
9547 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9548
9549 * coffread.c: Remove redundant static declarations. Replace
9550 occurrences of `PTR' with `void *'.
9551 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9552 * top.h (quit_cover): Likewise.
9553 * defs.h (catch_errors): Likewise.
9554
9555 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9556
9557 * defs.h (XMALLOC): Define.
9558 * gdb-events.sh (XMALLOC): Delete macro.
9559 * gdb-events.c, gdb-events.h: Regenerate.
9560 * gdbarch.sh (XMALLOC): Delete macro.
9561 * gdbarch.c: Regenerate.
9562 * serial.c (XMALLOC): Delete macro.
9563 * ui-file.c (XMALLOC): Ditto.
9564 * ser-unix.h (XMALLOC): Ditto.
9565 * sh-tdep.c (XMALLOC): Ditto.
9566 * ui-out.c (XMALLOC): Ditto.
9567 * utils.c (XMALLOC): Ditto.
9568 * i386-tdep.c (XMALLOC): Ditto.
9569 * gdb-events.c (XMALLOC): Ditto.
9570 * d10v-tdep.c (XMALLOC): Ditto.
9571 * cli-out.c (XMALLOC): Ditto.
9572
9573 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9574 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9575 * ui-file.c, ui-out.c: Ditto.
9576
9577 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9578
9579 * command.h (struct cmd_list_element): Add field context.
9580 (set_cmd_context, get_cmd_context): Declare.
9581 * cli/cli-decode.h: Ditto.
9582 * cli/cli-decode.c (get_cmd_context): New function.
9583 (set_cmd_context): New function.
9584 (add_cmd): Initialize context.
9585 Part of fixing PR gdb/145 and PR gdb/146.
9586
9587 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9588
9589 * cli/cli-decode.c (cmd_type): New function.
9590 * command.h (cmd_type): Declare.
9591 * infrun.c (set_schedlock_func): Call function cmd_type.
9592 * kod.c (kod_set_os): Call cmd_type.
9593 * cris-tdep.c (cris_version_update): Use function cmd_type.
9594 (cris_mode_update, cris_abi_update): Ditto.
9595
9596 * command.h: (execute_cmd_post_hook): Declare.
9597 (execute_cmd_pre_hook): Declare.
9598 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9599 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9600 functions. Execute pre/post hook while ensuring that afterwords
9601 hook_in is cleared.
9602 * top.c (execute_command): Use execute_cmd_post_hook, and
9603 execute_cmd_pre_hook to execute pre/post commands.
9604 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9605 hook_stop_stub.
9606 (hook_stop_stub): Call execute_cmd_pre_hook.
9607
9608 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9609
9610 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9611 set'' and this leads to a core dump. Move xstrdup of
9612 operating_system to after check that it is not NULL.
9613
9614 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9615
9616 * kod.c (kod_set_os): Remove unnecessary check that
9617 ``command->type'' is set_cmd.
9618
9619 * valprint.c (set_input_radix): Use input_radix.
9620 (set_output_radix): Use output_radix.
9621 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9622 isn't reverted.
9623
9624 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9625
9626 * value.h (struct value): Delete field ``substring_addr''. Change
9627 aligner fields to force_doublest_align, force_longest_align,
9628 force_core_addr_align and force_pointer_aligh.
9629
9630 * value.h (struct value): Fix typo in above change.
9631
9632 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9633
9634 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9635 to fix internal_error from ``maintenance print architecture''.
9636
9637 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9638
9639 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9640 for gcc versions after gcc-2.8.1.
9641
9642 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9643
9644 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9645 for method resolution. Restore adjustment of ``this'' pointer after
9646 calling value_struct_elt, which was accidentally removed during the
9647 HP merge.
9648
9649 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9650
9651 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9652 value_of_register.
9653 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9654 get_saved_register.
9655 * value.h (value_of_register): Update.
9656
9657 2002-03-14 Richard Henderson <rth@redhat.com>
9658
9659 * configure.in: Detect declaration for canonicalize_file_name.
9660 * utils.c (canonicalize_file_name): Declare, if needed.
9661 (gdb_realpath): Prefer realpath if available and usable.
9662 * config.in, configure: Rebuild.
9663
9664 2002-03-14 Richard Henderson <rth@redhat.com>
9665
9666 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9667 a constant array bound.
9668
9669 * MAINTAINERS: Add myself to write-after-approval.
9670
9671 2002-03-14 Michael Snyder <msnyder@redhat.com>
9672
9673 * symfile.c (syms_from_objfile): Return immediately if no syms.
9674 (symbol_file_add): Return immediately if no syms.
9675 (find_sym_fns): Return immediately if no syms.
9676
9677 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9678
9679 * gdbserver/remote-util.c (remote_open): Print remote-side's
9680 IP address when remote debugging over the network.
9681
9682 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9683
9684 * config/sparc/fbsd.mh: Fix copyright.
9685 * config/sparc/fbsd.mt: Likewise.
9686
9687 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9688
9689 * MAINTAINERS: Fix typo in name of gdb warnings option.
9690 (x86-64): Fix formating so that this can be parsed by awk.
9691
9692 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9695 * defs.h: Include "gdb/signals.h".
9696 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9697
9698 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9699
9700 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9701 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9702 from x86-64-tdep.h
9703
9704 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9705 Don Howard <dhoward@redhat.com>
9706
9707 * mips-tdep.c (ST0_FR): Define.
9708 (mips2_fp_compat): New function, temporarily disabled.
9709 (mips_read_fp_register_single): New function.
9710 (mips_read_fp_register_double): New function.
9711 (mips_print_register): Use them.
9712 (do_fp_register_row): Likewise.
9713
9714 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9715
9716 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9717 approval''.
9718
9719 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9720
9721 * stabsread.c (read_member_functions): Fix is_stub test for
9722 static member functions, improve comment.
9723
9724 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9725
9726 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9727 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9728 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9729 commands that set boolean values.
9730 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9731 (arm_rdi_resume): Always initialize PC.
9732 (arm_rdi_open): Don't use rslt as a boolean.
9733 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9734 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9735 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9736 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9737
9738 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9739
9740 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9741 * configure: Rebuilt.
9742
9743 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9744
9745 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9746 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9747
9748 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9749
9750 * cli/cli-decode.c (set_cmd_completer): New function.
9751 * command.h (set_cmd_completer): Declare.
9752 * cli/cli-decode.h (set_cmd_completer): Ditto.
9753
9754 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9755 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9756 * win32-nat.c (_initialize_inftarg): Ditto.
9757 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9758 * proc-api.c (_initialize_proc_api): Ditto.
9759 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9760 * source.c (_initialize_source): Ditto.
9761 * exec.c (_initialize_exec): Ditto.
9762 * solib.c (_initialize_solib): Ditto.
9763 * top.c (init_main): Ditto.
9764 * tracepoint.c (_initialize_tracepoint): Ditto.
9765 * symfile.c (_initialize_symfile): Ditto.
9766 * printcmd.c (_initialize_printcmd): Ditto.
9767 * infcmd.c (_initialize_infcmd): Ditto.
9768 * corefile.c (_initialize_core): Ditto.
9769
9770 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9771
9772 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9773
9774 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9775
9776 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9777
9778 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9779
9780 * NEWS: Update headings, 5.2 has branched.
9781
9782 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9785 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9786 (register_addr, REGISTER_RAW_SIZE): Likewise.
9787 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9788 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9789
9790 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9791
9792 * MAINTAINERS (x86-64): Add myself.
9793 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9794 changed value_ptr -> struct value *
9795
9796 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9797
9798 * configure.host (sparc64-*-freebsd): Add.
9799 * configure.tgt: Likewise.
9800 * config/sparc/fbsd.mh: New file.
9801 * config/sparc/fbsd.mt: Likewise.
9802 * config/sparc/nm-fbsd.h: Likewise.
9803 * config/sparc/tm-fbsd.h: Likewise.
9804
9805 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9806
9807 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9808 regformats/reg-s390x.dat.
9809
9810 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9811
9812 * utils.c: Add FIXME explaining true/false problem.
9813
9814 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9815
9816 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9817
9818 2002-02-28 Michael Chastain <mec@shout.net>
9819
9820 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9821
9822 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9823
9824 * gdbserver/linux-s390-low.c: New file.
9825 * regformats/reg-s390.dat: New file.
9826 * regformats/reg-s390x.dat: New file.
9827 * gdbserver/configure.srv: Add S/390.
9828 * gdbserver/Makefile.in: Add S/390.
9829 * configure.tgt: Enable gdbserver for S/390.
9830
9831 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9832
9833 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9834 first line of the doc string for "info dos", except at the end of
9835 the sentence, since the short help stops at the first period.
9836
9837 2002-02-28 Jason Merrill <jason@redhat.com>
9838
9839 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9840
9841 2002-02-27 Fred Fish <fnf@redhat.com>
9842
9843 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9844 comment (dumy -> dummy).
9845
9846 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9847
9848 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9849
9850 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9851
9852 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9853
9854 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9855
9856 * gdbserver/acconfig.h: New file.
9857 * gdbserver/i387-fp.c: New file.
9858 * gdbserver/i387-fp.h: New file.
9859 * gdbserver/linux-x86-64.c: New file.
9860 * regformats/reg-x86-64.dat: New file.
9861 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9862 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9863 * gdbserver/configure.in: Add support for regsets.
9864 * gdbserver/config.in: Regenerate.
9865 * gdbserver/configure: Regenerate.
9866 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9867 * gdbserver/linux-low.h: New file.
9868 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9869 for regsets.
9870 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9871 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9872 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9873 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9874 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9875 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9876 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9877 "i387-fp.h". Add PTRACE_GETREGS and friends.
9878 * gdbserver/regcache.c (supply_register): New function.
9879 (supply_register_by_name): New function.
9880 (collect_register): New function.
9881 (collect_register_by_name): New function.
9882
9883 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9886 (config.status): Add configure.srv dependency.
9887 (server_h): Add config.h dependency.
9888
9889 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9890
9891 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9892 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9893 * gdbserver/configure.srv: Change i386-*-linux* to use
9894 reg-i386-linux.o.
9895
9896 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9897
9898 * x86-64-tdep.c: Re-indent. Update copyright date.
9899
9900 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9901
9902 From Michal Ludvig <mludvig@suse.cz>:
9903 * x86-64-tdep.c (value.h): Delete.
9904 (gdb_assert.h): Include.
9905 (x86_64_register_convert_to_virtual,
9906 x86_64_register_convert_to_raw ): Add check which lets only
9907 floating-point values to be converted.
9908 (value_push): Delete.
9909 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9910 (i386_gdbarch_init): Number of register_bytes fixed.
9911
9912 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9913
9914 * MAINTAINERS: Add x86-64 target.
9915
9916 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9917
9918 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9919 * osfsolib.c (solib_map_sections): Ditto.
9920 * irix5-nat.c (solib_map_sections): Ditto.
9921 * corelow.c (gdb_check_format): Ditto.
9922 * symfile.c (symfile_bfd_open): Ditto.
9923 * solib.c (solib_map_sections): Ditto.
9924 Fix PR gdb/354.
9925
9926 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9927
9928 * remote.c (_initialize_remote): By default, disable ``e'' and
9929 ``E'' step out-of-range packets.
9930
9931 2002-02-26 Andreas Schwab <schwab@suse.de>
9932
9933 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9934 m68k_linux_frame_saved_pc.
9935 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9936 in_sigtramp.
9937 (SIGCONTEXT_PC_OFFSET): Remove.
9938 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9939 m68k_linux_sigtramp_saved_pc): New functions.
9940 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9941 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9942 (UCONTEXT_PC_OFFSET): Define.
9943 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9944 non-RT and RT signal trampolines.
9945
9946 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9947
9948 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9949 (TARGET_NBPG, STACK_END_ADDR): Delete
9950 (VARIABLES_INSIDE_BLOCK): Delete.
9951
9952 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9953
9954 * utils.c (perror_with_name): Make string parameter constant.
9955 (print_sys_errmsg): Ditto.
9956 (query): Ditto.
9957 * defs.h (perror_with_name): Update.
9958 (print_sys_errmsg): Update.
9959 (query): Update.
9960
9961 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9962
9963 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9964 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9965
9966 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9967
9968 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9969 if it already matches the current architecture from the exec file.
9970 Include arch-utils.h for gdbarch_info_init prototype.
9971 * Makefile.in (rs6000-nat.o): Update dependencies.
9972
9973 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9974
9975 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9976 list of exported variables.
9977
9978 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9979
9980 * gdbserver/configure.srv: New file.
9981 * gdbserver/configure.in: Use configure.srv instead
9982 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9983 from it.
9984 * gdbserver/configure: Regenerated.
9985 * gdbserver/terminal.h: New file.
9986 * gdbserver/Makefile.in: Update for configure changes. Remove
9987 more unneeded include paths.
9988
9989 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9990
9991 From wiz at danbala:
9992 * config/sparc/tm-sp64.h: Fix grammar and typos.
9993 Fix PR gdb/287.
9994
9995 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9996
9997 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9998 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9999 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10000 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10001 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10002 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10003 * s390-tdep.c: Ditto.
10004 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10005 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10006 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10007 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10008 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10009 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10010 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10011 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10012 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10013 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10014 Fix PR gdb/378.
10015
10016 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10017
10018 * lin-thread.c: Delete file.
10019 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10020 to gdb_proc_service.h.
10021 * configure: Re-generate.
10022
10023 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10024 * serial.c (serial_open): Delete check for "ocd".
10025 Fix PR gdb/349.
10026
10027 * Makefile.in (linux-thread.o): Delete target.
10028 * linux-thread.c: Delete file.
10029
10030 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10031 renamed SH files to be consistent.
10032
10033 * symtab.c (sort_search_symbols): Use xfree.
10034
10035 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10036
10037 * arm-linux-tdep.c (arm_linux_init_abi): Register
10038 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10039 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10040 definition with undef, since we don't want the sysvr4 definition.
10041 (SKIP_TRAMPOLINE_CODE): Likewise.
10042
10043 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10044
10045 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10046
10047 * configure.in: (AC_CHECK_FUNCS) Added test for
10048 canonicalize_file_name Regenerated.
10049 * config.in, configure: Regenerated.
10050 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10051 defined use canonicalize_file_name.
10052
10053 2002-02-23 Michael Chastain <mec@shout.net>
10054
10055 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10056
10057 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10058
10059 * README: Remove references to cygnus.com.
10060 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10061 dot com'' form. Remove references to cygnus.com and sourceware.
10062
10063 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10064
10065 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10066 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10067 1003.1-2001 no longer allows "head -1".
10068 * gdb/Makefile.in (version.c): Likewise.
10069 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10070 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10071 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10072
10073 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10074
10075 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10076 * command.h (cmd_cfunc_eq): Declare.
10077 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10078
10079 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10080 ``struct cmd_list_element *''.
10081 * cli/cli-cmds.c (is_complete_command): Update. Use
10082 cmd_cfunc_eq.
10083 * top.c (execute_command): Pass the command to
10084 is_complete_command.
10085 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10086
10087 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10088
10089 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10090 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10091 architecture defines.
10092 * s390-tdep.c (s390_gdbarch_init): Likewise.
10093
10094 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10095
10096 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10097 (arm_linux_push_arguments): Likewise.
10098 (arm_linux_init_abi): Register them. Also register linux-specific
10099 call_dummy_words.
10100 (find_minsym_and_objfile): Use strcmp, not STREQ.
10101 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10102 (arm_linux_call_dummy_words): Delete declaration.
10103 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10104 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10105 declarations.
10106 (LOWEST_PC): Delete.
10107
10108 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10109
10110 * maint.c (print_section_info): Do not prepend `0x' to filepos
10111 output, it will be handled by local_hex_string_custom.
10112
10113 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10114
10115 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10116 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10117 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10118
10119 2002-02-22 Jim Blandy <jimb@redhat.com>
10120
10121 Indicate that the bcache functions don't change the strings
10122 they're passed.
10123 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10124 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10125
10126 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10127
10128 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10129
10130 2002-02-21 Christopher Faylor <cgf@redhat.com>
10131
10132 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10133 find the complete path to a loaded DLL.
10134
10135 2002-02-21 Fred Fish <fnf@redhat.com>
10136
10137 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10138 that marks the end of the range of a function, enter a line number
10139 entry that has a line number of zero and a PC offset that matches
10140 the end of the function. This starts a range of PC's for which no
10141 line number information is known.
10142 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10143 PC's for which no line number info is found (line number is zero)
10144 then we didn't find any valid line information.
10145 * symtab.h: Document use of zero line number entry.
10146
10147 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10148
10149 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10150 (have_ptrace_getvrregs): Define for run time checks.
10151 (gdb_vrregset_t): New type for Altivec register handling.
10152 (fetch_register, store_register): Fetch/store altivec register
10153 when needed.
10154 (fetch_altivec_register, store_altivec_register): New functions.
10155 (supply_vrregset, fill_vrregset): New functions.
10156 (fetch_altivec_registers, store_altivec_registers): New functions.
10157 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10158 registers as well.
10159
10160 2002-02-21 Jiri Smid <smid@suse.cz>
10161
10162 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10163
10164 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10165
10166 * Makefile.in (armnbsd-nat.o): Update dependencies.
10167 * armnbsd-nat.c (supply_gregset): New function. Common code to
10168 supply the integer register set.
10169 (supply_fparegset): New function. Similar for FPA registers.
10170 (fetch_regs, fetch_fp_regs): Use them.
10171 (fetch_core_registers): Likewise.
10172 (fetch_elfcore_registers): New function.
10173 (arm_netbsd_elfcore_fns): New core-file type specification.
10174 (_initialize_arm_netbsd_nat): Register it.
10175
10176 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10177
10178 * armnbsd-nat.c: Include gdbcore.h.
10179 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10180 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10181 'void' to declaration, to shut up ARI.
10182 (fetch_core_registers): Make static. Rewrite using supply_register.
10183 (arm_netbsd_core_fns): New core-file type specification.
10184 (_initialize_arm_netbsd_nat): New function.
10185
10186 2002-02-21 Christopher Faylor <cgf@redhat.com>
10187
10188 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10189 value.
10190
10191 2002-02-20 Christopher Faylor <cgf@redhat.com>
10192
10193 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10194 fails.
10195
10196 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10197
10198 * jv-exp.y (parse_number): Change type of implicit longs
10199 to builtin_type_uint64.
10200
10201 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10202
10203 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10204 to be an integer instead of a `union wait'.
10205
10206 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * mips-linux-nat.c: Call the operating system GNU/Linux.
10209 * mips-linux-tdep.c: Likewise.
10210 * mips-tdep.c: Likewise.
10211
10212 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10213
10214 Fix PR gdb/265.
10215 * jv-exp.y (parse_number): Handle 64-bit integers.
10216
10217 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10220 AC_STDC_HEADERS to AC_HEADER_STDC.
10221 * gdbserver/configure: Regenerated.
10222
10223 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10224
10225 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10226 is defined.
10227 * sparc-tdep.c (get_longjmp_target): Likewise.
10228
10229 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10230
10231 * News: Add news about ARM and Multi-arch. Mention the new target
10232 arm*-*-netbsd*.
10233
10234 2002-02-19 Jim Blandy <jimb@redhat.com>
10235
10236 * stabsread.c (error_type_complaint): Improve error message.
10237
10238 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * gdbserver/README: Update documentation.
10241 * gdbserver/configure.in: Update configury to match documentation.
10242 * gdbserver/Makefile.in: Likewise.
10243 * gdbserver/configure: Regenerated.
10244 * gdbserver/aclocal.m4: New file, generated by aclocal.
10245 * gdbserver/config.in: New file, generated by autoheader.
10246
10247 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10248
10249 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10250 armnbsd-nat.c.
10251
10252 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * arm-tdep.h (enum arm_float_model): New enum.
10255 (struct gdbarch_tdep): Add fp_model.
10256 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10257 up floating-point conversions until we know the floating-point model
10258 in use by the inferior. Don't complain about being unable to
10259 determine the ABI of the inferior when we don't have one.
10260 (arm_extract_return_value): Support different floating-point models.
10261 (arm_store_return_value): Likewise.
10262 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10263 ARM_FLOAT_SOFT.
10264 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10265
10266 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10267
10268 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10269 of ``current_gdbarch''.
10270
10271 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10272
10273 * armnbsd-nat.c : ANSIfy all function declarations.
10274 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10275 (fetch_inferior_registers): Re-implement in terms of above.
10276 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10277 (store_inferior_registers): Re-implement in terms of above.
10278
10279 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10280
10281 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10282 kernel.
10283 * arm-linux-tdep.c: Likewise.
10284 * config/arm/tm-linux.h: Likewise.
10285
10286 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10287
10288 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10289 * config/arm/nbsd.mt (TM_FILE): Delete.
10290 * config/arm/tm-nbsd.h: Delete.
10291
10292 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10293
10294 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10295 Initialize CALL_DUMMY_LENGTH.
10296
10297 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10298
10299 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10300 function.
10301 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10302 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10303 defines one thing and that is incorrect for this port.
10304 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10305
10306 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10307
10308 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10309
10310 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10311
10312 * win32-nat.c (display_selector): New function. Displays information
10313 about the information returned by GetThreadSelectorEntry API function.
10314 (display_selectors): New function. Displays the infomation of
10315 the selector given as argument, or of CS, DS ans FS selectors
10316 if no argument is given.
10317 ( _initialize_inftarg): Add "w32" as info prefix command.
10318 Add "info w32 selector" as command calling display_selectors.
10319
10320 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10321
10322 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10323 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10324 if not defined.
10325
10326 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10327
10328 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10329
10330 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10331
10332 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10333 (arm_fix_call_dummy): Call it.
10334 (arm_call_dummy_breakpoint_offset): Delete.
10335 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10336 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10337
10338 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10339
10340 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10341 Default to func_frame_chain_valid.
10342 * gdbarch.h, gdbarch.c: Re-generate.
10343 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10344
10345 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10346
10347 * ppc-linux-nat.c: Update copyright.
10348 (fetch_register, store_register): Add tid parameter, don't compute
10349 tid here.
10350 (fetch_ppc_registers, store_ppc_registers): Add tid
10351 parameter. Pass it along to callees.
10352 (fetch_inferior_registers, store_inferior_registers): Compute tid
10353 here, and pass it to calleed functions.
10354 (fill_gregset, supply_fpregset): Clean up formatting.
10355
10356 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10357
10358 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10359 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10360
10361 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10362
10363 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10364 * gdbarch.c gdbarch.h: Regenerate.
10365 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10366 function.
10367 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10368 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10369 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10370
10371 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10372 * arm-tdep.c (arm_get_longjmp_target): New function.
10373 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10374 this to a positive value register arm_get_longjmp_target as the
10375 longjmp handler.
10376 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10377 (arm_linux_init_abi): Set up longjmp description in tdep.
10378 * armnbsd-nat.c (get_longjmp_target): Delete.
10379 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10380 description in tdep.
10381 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10382 (get_longjmp_target): Delete declaration.
10383 (GET_LONGJMP_TARGET): Delete.
10384 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10385 (GET_LONGJMP_TARGET): Delete.
10386
10387 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10388
10389 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10390 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10391 of ``current_gdbarch''.
10392
10393 2002-02-17 Tom Tromey <tromey@redhat.com>
10394
10395 * cli/cli-cmds.c (compare_strings): New function.
10396 (complete_command): Only print each unique item once.
10397 * completer.h (complete_line): Declare.
10398 * completer.c (complete_line): New function.
10399 (line_completion_function): Use it.
10400
10401 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10402
10403 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10404 * gdbarch.h, gdbarch.c: Re-generate.
10405
10406 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10407
10408 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10409
10410 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10411
10412 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10413 * valops.c (value_arg_coerce): Don't take the address of a reference
10414 to convert an argument to a reference.
10415
10416 2002-02-15 Christopher Faylor <cgf@redhat.com>
10417
10418 * win32-nat.c (get_image_name): New function.
10419 (handle_load_dll): Use get_image_name function.
10420 (get_child_debug_event): Avoid registering debug events until possibly
10421 execed process is started.
10422 (child_create_inferior): Allow invocation via shell so that command
10423 line redirection, etc. works ok.
10424 (_initialize_inftarg): Add new command: "set shell" to control whether
10425 a shell is used to start a process.
10426
10427 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10428
10429 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10430 instead of find_register_by_number.
10431 (cannot_store_register): Likewise.
10432
10433 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10434
10435 * dwarf2read.c: Replace fprintf (stderr, ...) by
10436 fprintf_unfiltered (gdb_stderr, ...).
10437
10438 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * gdbserver/gdbserver.1: Document --attach.
10441
10442 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10443
10444 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10445 descriptions.
10446 * arm-tdep.c (arm_default_arm_le_breakpoint)
10447 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10448 (arm_default_thumb_be_breakpoint): New. Initialize them from
10449 traditional breakpoint defines.
10450 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10451 (arm_gdbarch_init): Initialize new breakpoint variables.
10452 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10453 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10454 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10455 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10456 code out to ...
10457 (arm_netbsd_init_abi_common): ... here; new function.
10458 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10459 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10460 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10461 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10462
10463 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10464
10465 * arm-tdep.h (enum arm_abi): New enum.
10466 (struct gdbarch_tdep): New structure.
10467 (LOWEST_PC): Provide a default.
10468 (arm_gdbarch_register_os_abi): Declare new function.
10469 * arm-tdep.c (arm_abi_names): New array.
10470 (process_note_abi_tag_sections): New function.
10471 (get_elfosabi): New function.
10472 (arm_gdbarch_register_os_abi): New function.
10473 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10474 support for that ABI has been built in, then call the appropriate
10475 configuration routine. Use gdbarch_num_regs() to get the number
10476 of registers.
10477 (arm_dump_tdep): New function.
10478 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10479 place-holder functions.
10480 (_initialize_arm_tdep): Register them.
10481 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10482
10483 * armnbsd-tdep.c: New file.
10484 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10485 * config/arm/nbsd.mt (TDEPFILES): Add it.
10486 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10487
10488 * armnbsd-nat.c: Include regcache.h.
10489 * Makefile.in (armnbsd-nat.o): Update dependency list.
10490
10491 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10492
10493 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10494
10495 * gdbserver/Makefile.in: Fix typos in target rules.
10496
10497 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10498
10499 Fix part of PR gdb/267.
10500 * linespec.c (find_methods): Handle constructors specially for now.
10501
10502 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10503
10504 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10505 handling.
10506 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10507 standard_coerce_float_to_double().
10508
10509 2002-02-14 Christopher Faylor <cgf@redhat.com>
10510
10511 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10512 GDBINIT_FILENAME.
10513
10514 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10515
10516 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10517 find_variant_by_name, because it confuses the multiarch
10518 framework. Return NULL if there isn't an architecture with the
10519 user supplied name, instead of forcing a different one without
10520 recording the change with the multiarch machinery.
10521 (find_variant_by_name): Delete.
10522
10523 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10524
10525 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10526 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10527
10528 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10529
10530 * stack.c (print_frame_info_base): When calling
10531 print_frame_info_listing_hook, set current_source_symtab.
10532
10533 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10534
10535 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10536 and remove unused $(INCLUDE_DIR).
10537 Add regcache.c to OBS.
10538 Add generated register protocol files to clean target.
10539 Update dependencies for new objects, obsolete old target code.
10540
10541 * gdbserver/linux-low.c: Remove all platform-specific code to
10542 new files. Remove various dead code. Update to use regcache
10543 functionality.
10544 * gdbserver/remote-utils.c (fromhex): Add return statement
10545 to quiet warning.
10546 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10547 constant.
10548 (input_interrupt): Add integer parameter to match prototype
10549 of a signal handler.
10550 (outreg): Use register_data ().
10551 (prepare_resume_reply): Use gdbserver_expedite_regs.
10552 * gdbserver/server.c (main): Dynamically allocate own_buf because
10553 PBUFSIZ is no longer constant. Use registers_to_string () and
10554 registers_from_string ().
10555 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10556 for error (), fatal (), and warning (). Update definition of
10557 PBUFSIZ to use regcache functionality. Add include guard.
10558 * gdbserver/utils.c (fatal): Add missing ``const''.
10559 (warning): New function.
10560
10561 * regformats/regdat.sh: Include "regcache.h" in generated files.
10562 Provide init_registers () function.
10563 * regformats/regdef.h: Add prototype for set_register_cache ().
10564 Add include guard.
10565
10566 * gdbserver/linux-arm-low.c: New file.
10567 * gdbserver/linux-i386-low.c: New file.
10568 * gdbserver/linux-ia64-low.c: New file.
10569 * gdbserver/linux-m68k-low.c: New file.
10570 * gdbserver/linux-mips-low.c: New file.
10571 * gdbserver/linux-ppc-low.c: New file.
10572 * gdbserver/linux-sh-low.c: New file.
10573
10574 * gdbserver/regcache.c: New file.
10575 * gdbserver/regcache.h: New file.
10576
10577 * gdbserver/low-linux.c: Removed obsolete file.
10578
10579 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10582 * config/i386/linux.mt: Likewise.
10583 * config/ia64/linux.mt: Likewise.
10584 * config/m68k/linux.mh: Likewise.
10585 * config/powerpc/linux.mh: Likewise.
10586 * config/mips/linux.mt: Likewise.
10587
10588 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10589
10590 * config/i386/i386lynx.mh: Mark gdbserver variables
10591 as (currently) obsolete for this target.
10592 * config/i386/nbsd.mt: Likewise.
10593 * config/i386/nbsdelf.mt: Likewise.
10594 * config/m32r/m32r.mt: Likewise.
10595 * config/m68k/m68klynx.mh: Likewise.
10596 * config/m68k/nbsd.mt: Likewise.
10597 * config/m68k/sun3os4.mh: Likewise.
10598 * config/mips/vr5000.mt: Likewise.
10599 * config/ns32k/nbsd.mt: Likewise.
10600 * config/pa/hppabsd.mh: Likewise.
10601 * config/pa/hppaosf.mh: Likewise.
10602 * config/powerpc/nbsd.mt: Likewise.
10603 * config/rs6000/rs6000lynx.mh: Likewise.
10604 * config/s390/s390.mt: Likewise.
10605 * config/s390/s390x.mt: Likewise.
10606 * config/sparc/sparclynx.mh: Likewise.
10607 * config/sparc/sun4os4.mh: Likewise.
10608 * config/i386/x86-64linux.mt: Likewise.
10609 * config/sparc/linux.mh: Likewise.
10610
10611 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * configure.tgt: Configure gdbserver only for known working
10614 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10615 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10616 SUBDIRS if it is configured. Update comment for ${nativefile}.
10617 * configure: Regenerated.
10618
10619 2002-02-13 Michael Snyder <msnyder@redhat.com>
10620
10621 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10622
10623 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10624 (default_gcore_mach): Just return 0, work around a problem in bfd.
10625 (default_gcore_target): OK to return NULL if exec_bfd is null.
10626 (make_mem_sec): Use a cast, avoid a warning.
10627
10628 * procfs.c (find_memory_regions_callback): Use a cast instead of
10629 calling host_pointer_to_address (which complains if
10630 sizeof (host pointer) != sizeof (target pointer)).
10631 (procfs_make_note_section): Avoid overflow in psargs string.
10632
10633 * procfs.c (procfs_make_note_section): Make the default
10634 implementation return an error.
10635
10636 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10637
10638 * procfs.c (procfs_make_note_section): Provide a default definition
10639 (for alpha-dec-osf4.0f). Fix typos.
10640
10641 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10642
10643 * linux-proc.c: Add include of regcache.h.
10644 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10645
10646 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10647
10648 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10649 * memattr.c (create_mem_region): Disallow useless empty region.
10650 Regions are half-open intervals, so allow [A..B) [B..C) as
10651 non-overlapping.
10652
10653 2002-02-13 Michael Chastain <mec@shout.net>
10654
10655 * defs.h: Kill CONST_PTR.
10656 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10657 * c-lang.c (c_builtin_types): Likewise.
10658 * ch-lang.c (ch_builtin_types): Likewise.
10659 * f-lang.c (f_builtin_types): Likewise.
10660 * language.c (unknown_builtin_types): Likewise.
10661 * m2-lang.c (m2_builtin_types): Likewise.
10662 * p-lang.c (pascal_builtin_types): Likewise.
10663 * scm-lang.c (c_builtin_types): Likewise.
10664
10665 2002-02-13 Keith Seitz <keiths@redhat.com>
10666
10667 * arm-tdep.h (arm_get_next_pc): Add declaration.
10668
10669 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10670
10671 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10672 with other related struct-returning functions.
10673 (arm_extract_struct_value_address): New function.
10674 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10675 initialize float_format, double_format and long_double_format as
10676 appropriate to the endianness of the target.
10677 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10678 (arm_use_struct_convention): Delete declaration.
10679 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10680
10681 2002-02-13 Keith Seitz <keiths@redhat.com>
10682
10683 * defs.h (core_addr_to_string_nz): New function.
10684
10685 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10686
10687 Apply missing bits of 2002-01-15 patch.
10688 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10689 (fill_fpregset): Use i387_fill_fsave.
10690
10691 2002-02-12 Keith Seitz <keiths@redhat.com>
10692
10693 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10694 (core_addr_to_string_nz): New function.
10695
10696 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10697
10698 * arm-linux-nat.c: Really include arm-tdep.h.
10699 * config/arm/tm-linux.h (struct type, struct value): Declare.
10700
10701 2002-02-11 Michael Snyder <msnyder@redhat.com>
10702
10703 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10704 (gcore section): Ifdef for Solaris and Unixware only.
10705 (procfs_do_thread_registers): Unixware needs one lwpstatus
10706 per thread (not one prstatus or pstatus).
10707 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10708 not over all gdb threads. For unixware, call elfcore_write_pstatus
10709 once before iterating over threads.
10710
10711 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10712
10713 * arm-tdep.h: New file.
10714 * arm-tdep.c: Include arm-tdep.h.
10715 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10716 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10717 (arm_print_float_info, arm_register_type, convert_to_extended)
10718 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10719 (arm_extract_return_value, arm_register_name): Make static.
10720 (arm_software_single_step): Similarly. Fix types in declaration.
10721 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10722 (arm_store_return_value, arm_store_struct_return): New functions.
10723 (arm_gdbarch_init): Register the above functions. Also register
10724 call_dummy_start_offset, sizeof_call_dummy_words,
10725 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10726 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10727 max_register_virtual_size, register_size. Set up
10728 prologue_cache.saved_regs here, rather than ...
10729 (_initialize_arm_tdep): ... here.
10730 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10731 declarations.
10732 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10733 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10734 (arm_print_float_info, arm_register_type, convert_to_extended)
10735 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10736 (arm_extract_return_value, arm_register_name): Delete declarations.
10737 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10738 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10739 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10740 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10741 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10742 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10743 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10744 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10745 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10746 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10747 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10748 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10749 interface.
10750 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10751 * remote-rdi.c remote-rdp.c: Likewise.
10752 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10753 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10754 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10755 definition.
10756
10757 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10758 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10759 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10760 from non-ARM_ prefixed definitions.
10761 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10762 all uses of above.
10763 * remote-rdi.c remote-rdp.c: Likewise.
10764 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10765
10766 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10767
10768 * arm-tdep.c (arm_frameless_function_invocation)
10769 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10770 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10771 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10772 (arm_pop_frame, arm_get_next_pc): Make static.
10773 (arm_gdbarch_init): Register above in gdbarch structure.
10774 (arm_read_fp): Renamed from arm_target_read_fp.
10775 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10776 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10777 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10778 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10779 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10780 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10781 (arm_pc_is_thumb_dummy): Delete declarations.
10782 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10783 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10784 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10785 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10786
10787 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10788
10789 * symtab.c (compare_search_syms): New function.
10790 (sort_search_symbols): New function.
10791 (search_symbols): Sort symbols after searching rather than
10792 before.
10793
10794 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10795
10796 * NEWS: Linux -> GNU/Linux.
10797
10798 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10799
10800 * gdbarch.sh: For for level one methods, disallow a definition
10801 when partially multi-arched. Add comments explaining rationale.
10802 * gdbarch.h: Re-generate.
10803
10804 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10805
10806 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10807 multi-arch partial.
10808
10809 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10810
10811 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10812 field. Use diff -u.
10813 * gdbarch.c: Re-generate.
10814
10815 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10816
10817 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10818 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10819 partial.
10820
10821 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10822
10823 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10824 multi-arch partial.
10825 (PUSH_ARGUMENTS): Switch to using predefault.
10826 * gdbarch.c: Regenerate.
10827
10828 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10829
10830 * valops.c (PUSH_ARGUMENTS): Delete definition.
10831 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10832 partial. Default to default_push_arguments.
10833 * gdbarch.h, gdbarch.c: Regenerate.
10834
10835 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10836
10837 * defs.h (throw_exception): Rename return_to_top_level. Update
10838 comments.
10839 * utils.c (error_stream, internal_verror, quit): Ditto.
10840 * top.c (throw_exception, catcher): Ditto.
10841 * sparclet-rom.c (sparclet_load): Ditto.
10842 * remote.c (interrupt_query, minitelnet): Ditto.
10843 * remote-sds.c (interrupt_query): Ditto.
10844 * remote-mips.c (mips_error, mips_kill): Ditto.
10845 * ocd.c (interrupt_query): Ditto.
10846 * monitor.c (monitor_interrupt_query): Ditto.
10847 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10848 * target.h: Update comment.
10849
10850 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10851
10852 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10853
10854 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10855 default_double_format.
10856 * gdbarch.h, gdbarch.c: Re-generate.
10857 * findvar.c (floatformat_unknown): Delete variable definition.
10858 * doublest.h (floatformat_unknown): Delete variable declaration.
10859
10860 2002-02-09 Jim Blandy <jimb@redhat.com>
10861
10862 * stabsread.c (read_type): Add code to parse Sun's syntax for
10863 prototyped function types.
10864
10865 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10866
10867 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10868 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10869
10870 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10871
10872 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10873 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10874 now _initialize_xcoffsolib gets called again and overrides the
10875 commands from solib.c in a native configuration.
10876
10877 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10878
10879 * doublest.c (store_typed_floating): Don't try to return a value.
10880 Fixes PR gdb/290.
10881
10882 2002-02-08 Jim Blandy <jimb@redhat.com>
10883
10884 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10885 is prototyped and has no arguments, print its argument list as
10886 `(void)'.
10887
10888 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10889
10890 * MAINTAINERS (write-after-approval): Add myself.
10891 (paper-trail): I've escaped!
10892
10893 2002-02-08 Christopher Faylor <cgf@redhat.com>
10894
10895 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10896 changes.
10897 (_initialize_check_for_gdb_ini): Ditto.
10898
10899 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10900
10901 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10902 xaprintf -> xasprintf.
10903
10904 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10905
10906 * win32-nat.c: Remove use of printf and sprintf functions.
10907
10908 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10909
10910 * arm-tdep.c (arm_frame_chain_valid): Make static.
10911 (arm_push_arguments): Likewise.
10912 (arm_gdbarch_init): New function.
10913 (_initialize_arm_tdep): Call it.
10914 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10915 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10916 (FRAME_CHAIN_VALID): Delete.
10917 (arm_frame_chain_valid): Delete declaration.
10918 (PUSH_ARGUMENTS): Delete.
10919 (arm_push_arguments): Delete declaration.
10920 (CALL_DUMMY_P): Delete.
10921
10922 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10923 Corinna Vinschen <vinschen@redhat.com>
10924
10925 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10926 on builtin float types.
10927
10928 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10929
10930 * utils.c: Include <curses.h> before "bfd.h".
10931 * tui/tui-hooks.c: Likewise.
10932 * tui/tui.c: Likewise.
10933 * tui/tuiCommand.c: Likewise.
10934 * tui/tuiData.c: Likewise.
10935 * tui/tuiDataWin.c: Likewise.
10936 * tui/tuiDisassem.c: Likewise.
10937 * tui/tuiGeneralWin.c: Likewise.
10938 * tui/tuiIO.c: Likewise.
10939 * tui/tuiLayout.c: Likewise.
10940 * tui/tuiRegs.c: Likewise.
10941 * tui/tuiSource.c: Likewise.
10942 * tui/tuiSourceWin.c: Likewise.
10943 * tui/tuiStack.c: Likewise.
10944 * tui/tuiWin.c: Likewise.
10945
10946 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10947
10948 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10949 to include space for pseudoregs as well. Update loops accordingly.
10950 (sh_fp_frame_init_saved_regs): Ditto.
10951 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10952
10953 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10954
10955 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10956 Add Richard Earnshaw to Arm maintainers.
10957
10958 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10959
10960 * defs.h (warning_begin): Delete declaration.
10961
10962 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10963 Delete macro.
10964
10965 2002-02-07 Michael Snyder <msnyder@redhat.com>
10966
10967 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10968 Logic bug, remove misplaced else.
10969
10970 2002-02-07 Klee Dienes <klee@apple.com>
10971
10972 * fork-inferior.c (fork_inferior): Add '!' to the list of
10973 characters that need to be quoted when building a string for the
10974 shell. Quote '!' specifically with a backslash, since CSH chokes
10975 when trying to evaluate "str!str".
10976
10977 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10978
10979 * rdi-share/host.h: Only provide a typedef for bool if it is not
10980 defined.
10981
10982 2002-02-04 Michael Snyder <msnyder@redhat.com>
10983
10984 * breakpoint.h (enum bptype): Add new overlay event bp type.
10985 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10986
10987 * breakpoint.c (create_internal_breakpoint): New function.
10988 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10989 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10990 (create_thread_event_breakpoint): Ditto.
10991 (create_solib_event_breakpoint): Ditto.
10992 (create_overlay_event_breakpoint): New function.
10993 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10994 (update_breakpoints_after_exec): Delete and re-initialize
10995 overlay event breakpoints after an exec. Add FIXME comment
10996 about longjmp breakpoint.
10997 (print_it_typical): Ignore overlay event breakpoints.
10998 (print_one_breakpoint): Ditto.
10999 (mention): Ditto.
11000 (bpstat_what): Do not stop for overlay event breakpoints.
11001 (delete_breakpoint): Don't delete overlay event breakpoints.
11002 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11003 (breakpoint_re_set): Re-create overlay event breakpoint.
11004
11005 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11006 (overlay_manual_command): Disable overlay breakpoints.
11007 (overlay_off_command): Disable overlay breakpoints.
11008
11009 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11010
11011 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11012 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11013 to here from config/tm-arm.h.
11014 (coff_sym_is_thumb): Make static.
11015 (arm_elf_make_msymbol_special): New function.
11016 (arm_coff_make_msymbol_special): New function.
11017 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11018 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11019 (coff_sym_is_thumb): Delete declaration.
11020 (arm_elf_make_msymbol_special): Declare.
11021 (arm_coff_make_msymbol_special): Declare.
11022 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11023 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11024
11025 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11026
11027 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11028
11029 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11030
11031 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11032 * gdbarch.c gdbarch.h: Regenerate.
11033 * arch-utils.c (default_print_float_info): New function.
11034 * arch-utils.h (default_print_float_info): Prototype it.
11035 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11036 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11037 (PRINT_FLOAT_INFO): Document it.
11038
11039 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11040 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11041 (PRINT_FLOAT_INFO): Define.
11042
11043 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11044
11045 * win32-nat.c (_initialize_check_for_gdb_ini):
11046 Add typecast to sprintf argument to suppress a warning.
11047
11048 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11049
11050 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11051 to allow easier handling of pass state.
11052 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11053 that gives exception name and address.
11054 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11055 and set last_sig value to ourstatus->value.sig. Some missing
11056 exceptions added.
11057 (child_continue): Correctly report continue_status.
11058 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11059 TARGET_SIGNAL_0 (new default value).
11060 (child_resume): consider sig argument passed to decide if
11061 the exception should be passed to debuggee or not.
11062
11063 2002-02-05 Michael Snyder <msnyder@redhat.com>
11064
11065 * regcache.c (fetch_register): Call target_fetch_register
11066 only if we don't call FETCH_PSEUDO_REGISTER.
11067 (store_register): Call target_store_register only if we
11068 don't call STORE_PSEUDO_REGISTER.
11069
11070 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11071
11072 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11073 ELF_MAKE_MSYMBOL_SPECIAL.
11074 * gdbarch.c, gdbarch.h: Regenerate.
11075 * arch-utils.c (default_make_msymbol_special): New function.
11076 * arch-utils.h (default_make_msymbol_special): Export.
11077 * elfread.c (elf_symtab_read): Compile use of
11078 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11079 multiarched.
11080 * coffread.c (coff_symtab_read): Ditto, for
11081 COFF_MAKE_MSYMBOL_SPECIAL.
11082
11083 2002-02-05 Jim Blandy <jimb@redhat.com>
11084
11085 * solib-svr4.c (svr4_truncate_ptr): New function.
11086 (svr4_relocate_section_addresses): Do the address arithmetic with
11087 the appropriate truncation for target addresses, even when
11088 CORE_ADDR is larger than a target address.
11089
11090 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11091
11092 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11093 to (int *).
11094
11095 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11098 code.
11099
11100 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11101
11102 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11103
11104 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11105
11106 * gdbserver/linux-low.c: Remove unused include files.
11107
11108 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11109
11110 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11111 (read_inferior_memory): Use it.
11112 (write_inferior_memory): Likewise.
11113
11114 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11115
11116 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11117 grubbing through sys_errlist.
11118
11119 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11120
11121 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11122
11123 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11124 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11125
11126 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11127
11128 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11129 (do_sfunc, set_cmd_sfunc): New functions.
11130
11131 * command.h (struct cmd_list_element): Add field func.
11132 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11133 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11134 * cli/cli-decode.h: Ditto.
11135
11136 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11137 (help_all, help_cmd_list): Ditto.
11138 (find_cmd, complete_on_cmdlist): Ditto.
11139 * top.c (execute_command): Ditto.
11140
11141 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11142 function.sfunc.
11143
11144 * infcmd.c (notice_args_read): Fix function signature.
11145
11146 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11147 * cli/cli-decode.c (add_set_cmd): Ditto.
11148 * utils.c (initialize_utils): Ditto.
11149 * maint.c (_initialize_maint_cmds): Ditto.
11150 * infrun.c (_initialize_infrun): Ditto.
11151 * demangle.c (_initialize_demangler): Ditto.
11152 * remote.c (add_packet_config_cmd): Ditto.
11153 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11154 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11155 * proc-api.c (_initialize_proc_api): Ditto.
11156 * kod.c (_initialize_kod): Ditto.
11157 * valprint.c (_initialize_valprint): Ditto.
11158 * top.c (init_main): Ditto.
11159 * infcmd.c (_initialize_infcmd): Ditto.
11160 * corefile.c (_initialize_core): Ditto.
11161 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11162 * arch-utils.c (initialize_current_architecture): Ditto.
11163 (_initialize_gdbarch_utils): Ditto.
11164 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11165
11166 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11167 * wince.c (_initialize_inftarg): Ditto.
11168 * symfile.c (_initialize_symfile): Ditto.
11169 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11170 * language.c (_initialize_language): Ditto.
11171 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11172
11173 2002-02-04 Michael Snyder <msnyder@redhat.com>
11174
11175 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11176
11177 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11178
11179 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11180 Add rules for building the register data files.
11181
11182 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11183
11184 * regformats/regdat.sh: Add braces to the definition of
11185 expedite_regs_${arch}.
11186
11187 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11188
11189 * regformats/regdef.h (struct reg): Add comment describing the
11190 requirements for offset and size fields.
11191
11192 2002-02-04 Andreas Schwab <schwab@suse.de>
11193
11194 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11195 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11196
11197 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * gdbarch.sh (copyright): Update years in generated header.
11200 (SMASH_TEXT_ADDRESS): Add rule.
11201 * gdbarch.h, gdbarch.c: Re-generate.
11202 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11203 * dbxread.c: Likewise.
11204 * dwarfread.c: Likewise.
11205 * elfread.c: Likewise.
11206 * somread.c: Likewise.
11207
11208 * arm-tdep.c (arm_smash_text_address): New function.
11209 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11210
11211 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 Add support for hardware watchpoints on win32 native.
11214 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11215 CONTEXT_DEBUG_REGISTERS.
11216 (dr variable): New variable. Static array containing a local copy
11217 of debug registers.
11218 (debug_registers_changed): New variable. Reflects when debug registers
11219 are changed and need to be written to inferior.
11220 (debug_registers_used): New variable. Reflects when any debug register
11221 was set, used when new threads are created.
11222 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11223 i386-nat code.
11224 (thread_rec): Set dr array if id is the thread of current_event .
11225 (child_continue, child_resume): Change the debug registers for all
11226 threads if debug_registers_changed.
11227 (child_add_thread): Change the debug registers if debug_registers_used.
11228 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11229 Link nm.h to new nm-cygwin.h file.
11230 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11231 of hardware registers.
11232
11233 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11234
11235 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11236 Restore behavour broken by 2002-01-20 Andrew Cagney
11237 <ac131313@redhat.com> IEEE_FLOAT removal.
11238
11239 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11240
11241 * c-valprint.c (c_val_print): Pass a proper valaddr to
11242 cp_print_class_method.
11243 * valops.c (search_struct_method): If there is only one method
11244 and args is NULL, return that method.
11245
11246 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11249 accessing tag_name directly.
11250
11251 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11252
11253 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11254 of accessing tag_name directly.
11255
11256 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11257
11258 PR gdb/280
11259 * gdbtypes.c (replace_type): New function.
11260 * gdbtypes.h (replace_type): Add prototype.
11261 * stabsread.c (read_type): Use replace_type.
11262
11263 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11264
11265 * Makefile.in (memattr.o): Add missing dependencies rule.
11266
11267 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11268
11269 * breakpoint.c (break_at_finish_command): Really export.
11270 (break_at_finish_at_depth_command): Ditto.
11271 (tbreak_at_finish_command): Ditto.
11272 * hppa-tdep.c: Include completer.h.
11273 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11274 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11275
11276 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11277
11278 * utils.c (do_write): New function.
11279 (error_stream): Rewrite combining the code from error_begin and
11280 verror.
11281 (verror): Rewrite using error_stream.
11282 (error_begin): Delete function.
11283
11284 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11285
11286 * utils.c (error_begin): Make static.
11287 * defs.h (error_begin): Delete declaration.
11288
11289 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11290 (decode_line_1): Use cplusplus_error instead of error_begin,
11291 cplusplus_hint and return_to_top_level.
11292 * coffread.c (coff_symfile_read): Use error instead of error_begin
11293 and return_to_top_level.
11294 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11295
11296 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11297
11298 * language.h (type_error, range_error): Make string parameter
11299 constant.
11300 * language.c (warning_pre_print): Delete extern declaration.
11301 * dwarfread.c (warning_pre_print): Ditto.
11302 * language.c (type_error, range_error): Rewrite to use verror and
11303 vwarning instead of warning_begin.
11304
11305 2002-02-01 Michael Snyder <msnyder@redhat.com>
11306
11307 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11308 (set_ignore_count): Move misplaced comment back where it belongs.
11309
11310 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11311
11312 * command.h (NO_FUNCTION): Delete macro.
11313 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11314 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11315 * tracepoint.c (_initialize_tracepoint): Ditto.
11316 * cli/cli-decode.c (add_set_cmd): Ditto.
11317 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11318
11319 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11320
11321 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11322 Update ``this'' pointer when calling virtual functions.
11323
11324 2002-02-01 Michael Snyder <msnyder@redhat.com>
11325
11326 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11327 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11328
11329 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11330
11331 * regformats/reg-arm.dat: New file.
11332 * regformats/reg-i386.dat: New file.
11333 * regformats/reg-ia64.dat: New file.
11334 * regformats/reg-m68k.dat: New file.
11335 * regformats/reg-mips.dat: New file.
11336 * regformats/reg-ppc.dat: New file.
11337 * regformats/reg-sh.dat: New file.
11338 * regformats/regdef.h: New file.
11339 * regformats/regdat.sh: New file.
11340
11341 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11342
11343 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11344 (arm_frame_args_address, arm_frame_locals_address): New functions.
11345 (arm_frame_num_args): New function.
11346 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11347 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11348 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11349
11350 2002-01-31 Michael Snyder <msnyder@redhat.com>
11351
11352 * breakpoint.c (break_at_finish_command): Export.
11353 (break_at_finish_at_depth_command): Export.
11354 (tbreak_at_finish_command): Export.
11355 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11356 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11357 "txbreak" commands, which are HPPA specific.
11358
11359 * printcmd.c (disassemble_command): Remove an ancient
11360 artifact of an old merge.
11361
11362 * symfile.h (enum overlay_debugging_state):
11363 Define enum constant values for overlay mode.
11364 * symfile.c (overlay_debugging): Use enums instead of literals.
11365 (overlay_is_mapped, overlay_auto_command,
11366 overlay_manual_command): Ditto.
11367
11368 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11369 breakpoint_here_p, breakpoint_inserted_here_p,
11370 breakpoint_thread_match, bpstat_stop_status,
11371 describe_other_breakpoints, check_duplicates, clear_command):
11372 Coding standard fixes.
11373
11374 * target.c (target_xfer_memory): Add spaces, coding standard.
11375 (do_xfer_memory): Add missing line to trust-readonly
11376 code: check bfd SEC_READONLY flag for section.
11377
11378 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11379
11380 * PROBLEMS: Fix typo, 5.1->5.1.1.
11381
11382 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11383
11384 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11385 data symbols, since we search based on textlow and texthigh.
11386 (find_pc_sect_symtab): Likewise.
11387
11388 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11389
11390 * defs.h (vwarning): Declare.
11391 * utils.c (vwarning): New function.
11392 (warning): Call vwarning.
11393 (warning_begin): Delete function.
11394
11395 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11396 the warning message.
11397 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11398 warning_begin.
11399
11400 2002-01-30 Michael Snyder <msnyder@redhat.com>
11401
11402 * NEWS: Mention "set trust-readonly-sections" command.
11403 Mention generate-core-file command.
11404
11405 2002-01-15 Michael Snyder <msnyder@redhat.com>
11406
11407 * target.c: New command, "set trust-readonly-sections on".
11408 (do_xfer_memory): Honor the suggestion to trust readonly sections
11409 by reading them from the object file instead of from the target.
11410 (initialize_targets): Register command "set trust-readonly-sections".
11411
11412 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11413
11414 * parse.c (target_map_name_to_register): Simplify, search regs and
11415 pseudo-regs using a single loop.
11416
11417 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11418
11419 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11420
11421 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11422
11423 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11424 * config/i386/i386v42mp.mh: Add i387-nat.o .
11425 * i386v4-nat.c: Include i387-nat.h.
11426 (supply_fpregset): Use i387_supply_fsave.
11427 (fill_fpregset): Use i387_fill_fsave.
11428
11429 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11430
11431 * arm-tdep.c (arm_call_dummy_words): Define.
11432 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11433 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11434 (CALL_DUMMY_WORDS): Define.
11435 (arm_call_dummy_words): Declare.
11436 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11437 (arm_linux_call_dummy_words): Declare.
11438
11439 2002-01-30 Andreas Schwab <schwab@suse.de>
11440
11441 * m68klinux-nat.c: Fix last change to use regcache_collect
11442 instead of referencing registers[] directly.
11443
11444 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11445
11446 * parse.c (target_map_name_to_register): Delete code wrapped in
11447 #ifdef REGISTER_NAME_ALIAS_HOOK.
11448
11449 2002-01-28 Michael Snyder <msnyder@redhat.com>
11450
11451 * regcache.c (legacy_read_register_gen): Need to be able to
11452 read pseudo-register as well as real register.
11453 (legacy_write_register_gen): Ditto.
11454
11455 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11456
11457 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11458 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11459 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11460 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11461 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11462 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11463 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11464 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11465 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11466 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11467 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11468 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11469 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11470 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11471 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11472 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11473 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11474 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11475 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11476 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11477
11478 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11479
11480 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11481 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11482 (initialize_current_architecture): Update target_byte_order using
11483 information from BFD.
11484 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11485 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11486
11487 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11488
11489 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11490 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11491
11492 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11493 #ifdef INVALID_FLOAT.
11494 * infcmd.c (do_registers_info): Ditto.
11495 * values.c (unpack_double): Ditto. Add comment.
11496
11497 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11498 already commented out.
11499
11500 2002-01-26 Andreas Schwab <schwab@suse.de>
11501
11502 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11503 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11504 registers and add support for PTRACE_GETREGS.
11505
11506 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11507
11508 GDB 5.1.1 released from 5.1 branch.
11509 * NEWS: Add 5.1.1 news.
11510 * README: Sync with 5.1 branch.
11511
11512 2002-01-23 Fred Fish <fnf@redhat.com>
11513
11514 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11515 stabstring on initial malloc. Reallocing will copy it for us,
11516 if necessary.
11517
11518 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11519
11520 * Makefile.in (hpread_h): Delete.
11521 (HFILES_NO_SRCDIR): Remove hpread.h.
11522 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11523 (hpread.o): Update dependencies.
11524 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11525
11526 * hp-psymtab-read.c: Remove file.
11527 * hp-symtab-read.c: Remove file.
11528 * hpread.h: Remove file.
11529
11530 * hpread.c: Merge all contents of hp-psymtab-read.c,
11531 hp-symtab-read.c and hpread.h into this file, as it was prior to
11532 January 1999.
11533
11534 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11535 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11536 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11537 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11538
11539 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11540
11541 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11542 fill_gregset): Call gdbarch_tdep() just once, assign result to
11543 variable and use that, instead of calling the function several
11544 times.
11545
11546 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11547
11548 * configure.host: Accept sparcv9 as alias for sparc64.
11549 * configure.tgt: Likewise.
11550
11551 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11552
11553 * solib-aix5.c (build_so_list_from_mapfile)
11554 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11555 arguments is not reversed.
11556 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11557 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11558
11559 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11560
11561 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11562 modified version of obsolete sh_fetch_pseudo_register.
11563 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11564 (sh4_register_read): New function.
11565 (sh_pseudo_register_write): New function. Renamed and modified
11566 version of obsolete sh_store_pseudo_register.
11567 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11568 (sh4_register_write): New function.
11569 (sh_gdbarch_init): Remove setting of gdbarch function
11570 fetch_pseudo_register and store_pseudo_register. Remove setting of
11571 register_convert_to_raw, register_convert_to_virtual,
11572 register_convertible.
11573 (sh_sh4_register_convertible): Delete. No longer needed. All is
11574 taken care by architecture specific functions
11575 register_read/register_write.
11576 (sh_sh4_register_convert_to_virtual): Make static.
11577 (sh_sh4_register_convert_to_raw): Ditto.
11578
11579 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11580
11581 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11582 (floatformat_is_nan, floatformat_mantissa): Ditto.
11583
11584 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11585 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11586 builtin_type_ieee_double_little,
11587 builtin_type_ieee_double_littlebyte_bigword,
11588 builtin_type_m68881_ext, builtin_type_i960_ext,
11589 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11590 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11591 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11592 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11593
11594 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11595
11596 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11597 parameter. Set frameless flag if it exists and depended of
11598 whether the scanned function is frameless or not.
11599 (xstormy16_skip_prologue): If function is frameless, return
11600 result of xstormy16_scan_prologue().
11601 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11602 call.
11603
11604 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11605
11606 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11607 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11608 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11609 sh_sh4_register_byte, sh_sh4_register_raw_size,
11610 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11611 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11612 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11613 sh_store_pseudo_register, sh_do_pseudo_register): Call
11614 gdbarch_tdep() just once, assign result to variable and use that,
11615 instead of calling the function several times.
11616
11617 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11618
11619 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11620 macros instead of LAST_FPU_CTRL_REGNUM.
11621 (store_register): Likewise.
11622
11623 2002-01-21 Jim Blandy <jimb@redhat.com>
11624
11625 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11626 is up-to-date before running the program, not just when a program
11627 exits.
11628
11629 2002-01-21 Fred Fish <fnf@redhat.com>
11630
11631 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11632 when we have found all instructions we are looking for.
11633
11634 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * arm-tdep.c (arm_register_name): New function.
11637 (arm_registers_names): Make static.
11638 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11639 (arm_register_name): Declare.
11640 (REGISTER_NAME): Use it.
11641
11642 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11643 Kevin Buettner <kevinb@redhat.com>
11644
11645 Convert arm targets to new FRAME interface.
11646 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11647 (arm_frame_find_save_regs): Delete.
11648 (arm_frame_init_saved_regs): New.
11649 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11650 Allocate extra_info as required. Convert all uses of fsr.regs
11651 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11652 to use extra_info.
11653 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11654 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11655 (check_prologue_cache, save_prologue_cache): Likewise.
11656 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11657 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11658 (FRAME_FIND_SAVED_REGS): Delete.
11659 (arm_frame_find_saved_regs): Delete prototype.
11660 (arm_frame_init_saved_regs): New prototype.
11661 (FRAME_INIT_SAVED_REGS): Define.
11662
11663 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11664
11665 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11666
11667 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11668
11669 From Jeff Law <law@redhat.com>:
11670 * infttrace.c: Include <sys/pstat.h>.
11671 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11672 exec file if the ttrace equivalent fails.
11673
11674 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11675
11676 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11677 (closeLogFile): Ditto.
11678
11679 2002-01-20 Michael Chastain <mec@shout.net>
11680
11681 * top.c (print_gdb_version): Bump copyright year to 2002.
11682
11683 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11684
11685 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11686 Zannoni and Eli Zaretskii.
11687
11688 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * buildsym.c: Update copyright years.
11691 * c-typeprint.c: Likewise.
11692 * dwarf2read.c: Likewise.
11693 * f-typeprint.c: Likewise.
11694 * gdbtypes.c: Likewise.
11695 * gdbtypes.h: Likewise.
11696 * hp-symtab-read.c: Likewise.
11697 * hpread.c: Likewise.
11698 * mdebugread.c: Likewise.
11699 * p-typeprint.c: Likewise.
11700
11701 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11702
11703 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11704 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11705 byte-order selectable.
11706 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11707 * arch-utils.c: Ditto.
11708 (set_endian): Ditto.
11709 (set_endian_from_file): Ditto.
11710 * gdbserver/low-sim.c (create_inferior): Ditto.
11711 * gdbarch.sh: Ditto.
11712 * gdbarch.h: Re-generate.
11713 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11714 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11715 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11716 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11717 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11718 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11719 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11720 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11721 macro definition.
11722 * config/mips/tm-wince.h: Remove #undef of macro
11723 TARGET_BYTE_ORDER_SELECTABLE.
11724 * config/sh/tm-wince.h: Ditto.
11725
11726 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11727
11728 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11729 member function fields. Add accessor macro
11730 TYPE_FN_FIELD_ARTIFICIAL.
11731 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11732 * c-typeprint.c (c_type_print_base): Skip artificial member
11733 functions.
11734
11735 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11736
11737 * f-typeprint.c: Delete unused function f_type_print_args.
11738 * p-typeprint.c: Delete unused function pascal_type_print_args.
11739
11740 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11741
11742 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11743 comment. Add ``artificial'' to ``union field_location''.
11744
11745 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11746
11747 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11748 * mdebugread.c (parse_symbol): Likewise.
11749 * stabsread.c (define_symbol): Likewise.
11750 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11751 initializing TYPE_FIELD_BITPOS to n (obsolete).
11752 (hpread_doc_function_type): Likewise.
11753 * hpread.c (hpread_function_type): Likewise.
11754
11755 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11756
11757 * configure.in (host_makefile_frag): Only require a host makefile
11758 fragment when a native build.
11759 * configure: Re-generate.
11760
11761 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11762
11763 * doublest.h (floatformat_from_type): Declare.
11764 * doublest.c (floatformat_from_type): New function.
11765 (convert_typed_floating): Use.
11766
11767 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11768 call to function floatformat_from_type.
11769
11770 * gdbarch.sh (IEEE_FLOAT): Delete.
11771 * gdbarch.h, gdbarch.c: Re-generate.
11772 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11773 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11774 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11775 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11776 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11777 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11778 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11779 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11780 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11781 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11782 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11783 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11784
11785 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11786 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11787 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11788 * sh-tdep.c (sh_gdbarch_init): Ditto.
11789 * mips-tdep.c (mips_gdbarch_init): Ditto.
11790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11791 * cris-tdep.c (cris_gdbarch_init): Ditto.
11792
11793 2002-01-20 Jiri Smid <smid@suse.cz>
11794
11795 * configure.host, configure.tgt: Support x86-64.
11796 * NEWS: Note new target x86-64.
11797
11798 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11799 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11800 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11801 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11802 x86-64-linux-nat.o): Fix dependencies.
11803
11804 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11805
11806 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11807 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11808 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11809 * config/sparc/xm-sun4os4.h: Delete file.
11810 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11811
11812 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11813
11814 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11815 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11816 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11817 * config/i386/i386lynx.mh (XM_FILE): Delete.
11818 * config/rs6000/xm-rs6000ly.h: Delete file.
11819 * config/sparc/xm-sparclynx.h: Delete file.
11820 * config/m68k/xm-m68klynx.h: Delete file.
11821 * config/i386/xm-i386lynx.h: Delete file.
11822 * config/xm-lynx.h: Delete file.
11823 * config/djgpp/fnchange.lst: Update.
11824
11825 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11826
11827 * alpha-tdep.c (alpha_register_byte): New function.
11828 (alpha_register_raw_size): Ditto.
11829 (alpha_register_virtual_size): Ditto.
11830 (alpha_skip_prologue_internal): Renamed from
11831 alpha_skip_prologue.
11832 (alpha_skip_prologue): New version that calls
11833 alpha_skip_prologue_internal.
11834 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11835 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11836 second argument from alpha_skip_prologue.
11837 (REGISTER_BYTE): Use alpha_register_byte.
11838 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11839 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11840 (FRAMELESS_FUNCTION_INVOCATION): Use
11841 generic_frameless_function_invocation_not.
11842 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11843 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11844
11845 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11846
11847 * config/mips/xm-news-mips.h: Delete file.
11848 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11849
11850 * config/m88k/xm-m88k.h: Delete file.
11851 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11852 * config/m88k/xm-delta88v4.h: Ditto.
11853 * config/m88k/xm-delta88.h: Ditto.
11854
11855 * config/alpha/xm-fbsd.h: Delete file.
11856 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11857
11858 * config/sparc/xm-sparc.h: Delete file.
11859 * Makefile.in (xm-sun4os4.h): Delete dependency.
11860 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11861 * config/sparc/xm-sun4os4.h: Ditto.
11862 * config/sparc/xm-linux.h: Ditto.
11863
11864 * config/i386/xm-windows.h: Delete file.
11865
11866 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11867
11868 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11869 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11870
11871 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11872
11873 * alpha-tdep.c (alpha_call_dummy_words): New.
11874 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11875 (CALL_DUMMY_P): Define.
11876 (CALL_DUMMY_WORDS): Define.
11877 (SIZEOF_CALL_DUMMY_WORDS): Define.
11878
11879 2002-01-19 Per Bothner <per@bothner.com>
11880
11881 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11882 isn't NULL, which can happen with some gcj-3.x-produced code.
11883
11884 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11885
11886 * alpha-tdep.c (alpha_register_virtual_type): New function.
11887 (alpha_init_frame_pc_first): Ditto.
11888 (alpha_fix_call_dummy): Ditto.
11889 (alpha_store_struct_return): Ditto.
11890 (alpha_extract_struct_value_address): Ditto.
11891 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11892 alpha_register_virtual_type.
11893 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11894 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11895 alpha_extract_struct_value_address.
11896 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11897 (INIT_FRAME_PC): Use init_frame_pc_noop.
11898 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11899
11900 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11901
11902 * i386gnu-nat.c: Include "i386-tdep.h".
11903 (fetch_fpregs): Simplify code dealing with uninitialized floating
11904 point states such that it doesn't require FP7_REGNUM.
11905
11906 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11907
11908 * alpha-tdep.c (frame_extra_info): New.
11909 (alpha_find_saved_regs): Make static. Use
11910 frame->extra_info.
11911 (alpha_frame_init_saved_regs): New function.
11912 (alpha_frame_saved_pc): Use frame->extra_info.
11913 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11914 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11915 (init_extra_frame_info): Rename to...
11916 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11917 (alpha_print_extra_frame_info): New function.
11918 (alpha_frame_locals_address): Ditto.
11919 (alpha_frame_args_address): Ditto.
11920 (alpha_pop_frame): Use frame->extra_info.
11921 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11922 alpha_frame_args_address.
11923 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11924 (alpha_find_saved_regs): Remove prototype.
11925 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11926 (EXTRA_FRAME_INFO): Remove.
11927 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11928 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11929
11930 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11931
11932 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11933 (alpha_cannot_fetch_register): Ditto.
11934 (alpha_cannot_store_register): Ditto.
11935 (alpha_register_convertible): Ditto.
11936 (alpha_use_struct_convention): Ditto.
11937 * config/alpha/tm-alpha.h: Update copyright years.
11938 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11939 (INNER_THAN): Use core_addr_lessthan.
11940 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11941 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11942 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11943 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11944 (FRAME_CHAIN): Remove unnecessary cast.
11945
11946 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11947
11948 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11949 obsolete.
11950
11951 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11952
11953 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11954 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11955 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11956 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11957 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11958 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11959 * x86-64-linux-nat.c: Ditto.
11960
11961 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11962
11963 * alpha-tdep.c (alpha_register_name): New function.
11964 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11965 (REGISTER_NAME): Define.
11966
11967 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11968
11969 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11970
11971 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11972
11973 * alpha-tdep.c: Update copyright years.
11974 (alpha_next_pc): New function.
11975 (alpha_software_single_step): Ditto.
11976 * config/alpha/tm-alpha.h: Add prototype for
11977 alpha_software_single_step.
11978
11979 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11980
11981 * alphabsd-nat.c: Update copyright years.
11982 (fill_gregset): Use regcache_collect.
11983 (fill_fpregset): Likewise.
11984 (fetch_inferior_registers): Only fetch integer registers
11985 if requested to do so.
11986 (store_inferior_registers): Only store integer registers
11987 if requested to do so.
11988
11989 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11990
11991 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11992 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11993 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11994 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11995 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11996 * config/arm/linux.mh (XDEPFILES): Delete.
11997 * config/arm/nbsd.mh (XDEPFILES): Delete.
11998 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11999 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12000 * config/i386/i386m3.mh (XDEPFILES): Delete.
12001 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12002 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12003 * config/i386/fbsd.mh (XDEPFILES): Delete.
12004 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12005 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12006 * config/i386/i386v4.mh (XDEPFILES): Delete.
12007 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12008 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12009 * config/i386/i386aix.mh (XDEPFILES): Delete.
12010 * config/i386/go32.mh (XDEPFILES): Delete.
12011 * config/i386/cygwin.mh (XDEPFILES): Delete.
12012 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12013 * config/i386/i386mach.mh (XDEPFILES): Delete.
12014 * config/i386/i386v32.mh (XDEPFILES): Delete.
12015 * config/i386/linux.mh (XDEPFILES): Delete.
12016 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12017 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12018 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12019 * config/i386/i386sco.mh (XDEPFILES): Delete.
12020 * config/i386/i386v.mh (XDEPFILES): Delete.
12021 * config/i386/nbsd.mh (XDEPFILES): Delete.
12022 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12023 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12024 * config/i386/symmetry.mh (XDEPFILES): Delete.
12025 * config/i386/obsd.mh (XDEPFILES): Delete.
12026 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12027 * config/ia64/linux.mh (XDEPFILES): Delete.
12028 * config/ia64/aix.mh (XDEPFILES): Delete.
12029 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12030 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12031 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12032 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12033 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12034 * config/m68k/linux.mh (XDEPFILES): Delete.
12035 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12036 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12037 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12038 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12039 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12040 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12041 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12042 * config/m88k/delta88.mh (XDEPFILES): Delete.
12043 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12044 * config/m88k/m88k.mh (XDEPFILES): Delete.
12045 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12046 * config/mips/linux.mh (XDEPFILES): Delete.
12047 * config/mips/irix6.mh (XDEPFILES): Delete.
12048 * config/mips/irix5.mh (XDEPFILES): Delete.
12049 * config/mips/irix4.mh (XDEPFILES): Delete.
12050 * config/mips/irix3.mh (XDEPFILES): Delete.
12051 * config/mips/decstation.mh (XDEPFILES): Delete.
12052 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12053 (NATDEPFILES): Move core-aout.o to here.
12054 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12055 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12056 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12057 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12058 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12059 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12060 * config/pa/hpux11.mh (XDEPFILES): Delete.
12061 * config/powerpc/aix.mh (XDEPFILES): Delete.
12062 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12063 * config/powerpc/linux.mh (XDEPFILES): Delete.
12064 * config/romp/rtbsd.mh: Rename XDEPFILES.
12065 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12066 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12067 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12068 * config/s390/s390.mh (XDEPFILES): Delete.
12069 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12070 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12071 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12072 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12073 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12074 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12075 * config/sparc/linux.mh (XDEPFILES): Delete.
12076 * config/vax/vaxult.mh (XDEPFILES): Delete.
12077 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12078 * Makefile.in (DEPFILES): Remove XDEPFILES.
12079
12080 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12081
12082 * utils.c (internal_verror): Fix comments, default is yes not no.
12083 Update queries to match. Default to quit and dump core.
12084
12085 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12086
12087 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12088 copyright.
12089 * defs.h, event-top.c, gdbcmd.h: Ditto.
12090 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12091 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12092 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12093 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12094 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12095 * mi/mi-main.c:Ditto.
12096
12097 * stack.c, symfile.c: Update copyright.
12098
12099 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12100
12101 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12102 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12103 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12104 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12105
12106 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12107
12108 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12109 * gdbserver/low-lynx.c (myattach): Likewise.
12110 * gdbserver/low-nbsd.c (myattach): Likewise.
12111 * gdbserver/low-sim.c (myattach): Likewise.
12112 * gdbserver/low-sparc.c (myattach): Likewise.
12113 * gdbserver/low-sun3.c (myattach): Likewise.
12114
12115 * gdbserver/low-linux.c (myattach): New function.
12116
12117 * gdbserver/server.c (attach_inferior): New function.
12118 (main): Handle "--attach".
12119
12120 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12121
12122 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12123 maintainer.
12124
12125 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12126
12127 * c-typeprint.c (is_type_conversion_operator): Add additional
12128 check for non-conversion operators.
12129
12130 2002-01-15 Michael Snyder <msnyder@redhat.com>
12131
12132 * linux-proc.c: Add "info proc" command, a la procfs.c.
12133 (read_mapping): New function, abstract and re-use code.
12134 (linux_find_memory_regions): Use new func read_mapping.
12135 (linux_info_proc_cmd): New function, implement "info proc".
12136 (_initialize_linux_proc): Add new command "info proc".
12137
12138 2002-01-15 Michael Snyder <msnyder@redhat.com>
12139
12140 * symfile.c (generic_load): Use bfd_map_over_sections method
12141 instead of manipulating bfd structure members directly.
12142 (add_section_size_callback): New function, bfd sections callback
12143 used by generic_load.
12144 (load_sections_callback): New function, bfd sections callback
12145 used by generic_load.
12146
12147 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12148
12149 [Based on work by Jim Blandy]
12150 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12151 (builtin_type_vec128): Export.
12152 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12153 types.
12154 (builtin_type_vec128): New builtin type for 128 bit vector
12155 registers.
12156 (build_gdbtypes): Initialize builtin_type_v16qi and
12157 builtin_type_v8hi. Create the vec128 register builtin type
12158 structure.
12159 (build_builtin_type_vec128): New function.
12160 (_initialize_gdbtypes): Register builtin_type_v16qi and
12161 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12162 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12163 AltiVec register to new builtin type.
12164
12165 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12166
12167 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12168 to make_cv_type.
12169
12170 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12171
12172 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12173 CLEAN_UP_REGISTER_VALUE.
12174 * regcache.c (supply_register): Update only call.
12175
12176 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12177
12178 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12179 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12180 a29k-*-vxworks* targets as obsolete.
12181
12182 2002-01-14 Michael Snyder <msnyder@redhat.com>
12183
12184 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12185 until we can resolve portability issues.
12186 * gregset.h: Remove references to fpxregs.
12187 * gcore.c (gcore_command): Initialize note_sec to NULL.
12188
12189 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12190
12191 * signals.c (target_signal_to_name): Rewrite. Only use
12192 signals[].name when in bounds and non-NULL.
12193
12194 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12195
12196 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12197 * signals.c (target_signal_to_name): Verify that SIG is within the
12198 bounds of the signals array.
12199
12200 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12201
12202 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12203
12204 2002-01-13 Keith Seitz <keiths@redhat.com>
12205
12206 * stack.c (print_frame_info_base): Print the frame's pc
12207 only if when print_frame_info_listing_hook is not defined.
12208
12209 2002-01-13 Keith Seitz <keiths@redhat.com>
12210
12211 * varobj.c (varobj_set_value): Make sure that there were no
12212 errors evaluating the object before attempting to set its
12213 value.
12214 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12215 so this offset adjustment is no longer necessary.
12216 (create_child): Don't set the error flag if the child is
12217 a CPLUS_FAKE_CHILD.
12218 (value_of_child): If value_fetch_lazy fails, return NULL
12219 so that callers will be notified that an error occurred.
12220 (c_value_of_variable): Delay check of variable's validity
12221 until later. We actually want all structs and unions to have
12222 the value "{...}".
12223 Do not return "???" for variables which could not be evaluated.
12224 This error condition must be returned to the caller so that it
12225 can get the error condition from gdb.
12226 (cplus_name_of_child): Adjust index for vptr before figuring
12227 out the name of the child.
12228 (cplus_value_of_child): If a child's (real) parent is not valid,
12229 don't even bother trying to give a value for it. Just return
12230 an error. Change all instances in this function.
12231 (cplus_type_of_child): If our parent is one of the "fake"
12232 parents, we need to get at the type of the real parent, and
12233 derive the child's true type using this information.
12234
12235 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12236
12237 From 2002-01-09 John Marshall <johnm@falch.net>:
12238 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12239 sources.redhat.com, and tweak some related URLs which had
12240 suffered from linkrot.
12241
12242 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12243
12244 From Jeff law:
12245 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12246 structures passed in registers.
12247
12248 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12249
12250 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12251 white space which prevented compilation. Reported by DSK
12252 <dsk@student.unsw.edu.au>.
12253
12254 2002-01-11 Michael Snyder <msnyder@redhat.com>
12255
12256 * symfile.c (build_section_addr_info_from_section_tab):
12257 Use bfd access method instead of manipulating bfd directly.
12258 (syms_from_objfile): Ditto.
12259 (simple_overlay_update_1): Ditto.
12260 (simple_overlay_update): Ditto.
12261 (generic_load): Ditto.
12262 (overlay_unmapped_address): FIXME comment, bfd access methods.
12263 (sections_overlap): FIXME comment, bfd access methods.
12264 (pc_in_mapped_range): FIXME comment, bfd access methods.
12265 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12266 (section_is_mapped): FIXME comment, bfd access methods.
12267 (section_is_overlay): FIXME comment, bfd access methods.
12268
12269 * symfile.c (generic_load): Whitespace and long line cleanups.
12270 Remove duplicate variable, change several local variables to
12271 more appropriate data types.
12272 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12273
12274 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12275
12276 From Peter Schauer:
12277 * language.c (longest_local_hex_string_custom): Use phex_nz to
12278 convert NUM to a hex string.
12279
12280 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12281
12282 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12283 the function.
12284 Update Copyright year.
12285
12286 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12287
12288 * language.c (longest_raw_hex_string): Delete unused function.
12289
12290 2002-01-11 Petr Sorfa <petrs@caldera.com>
12291
12292 * MAINTAINERS (write-after-approval): Add myself.
12293 * dwarf2read.c (read_tag_string_type): Handling of
12294 DW_AT_byte_size.
12295 (read_tag_string_type): FORTRAN fix to prevent propagation of
12296 first string size.
12297 (set_cu_language): Handling of DW_LANG_Fortran95
12298
12299 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12300
12301 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12302 GETPID(inferior_ptid).
12303 (store_inferior_registers): Likewise.
12304
12305 2002-01-10 Jason Merrill <jason@redhat.com>
12306
12307 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12308 Fix DW_OP_minus.
12309
12310 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12311
12312 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12313 and bfd/elf32-sh-nbsd.c.
12314
12315 2002-01-10 Michael Snyder <msnyder@redhat.com>
12316
12317 * NEWS: Mention --pid and corefile/proc-id behavior change.
12318
12319 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12320 * gcore.c: Include cli/cli-decode.h instead of command.h.
12321
12322 * main.c (captured_main): Add new command line option "--pid".
12323 If the second command line argument (following the symbol-file)
12324 begins with a digit, try to attach to it before trying to open
12325 it as a corefile.
12326 (print_gdb_help): Document the "--pid" argument.
12327
12328 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12329
12330 * completer.c (command_completer): New function.
12331
12332 * completer.h <command_completer>: Add prototype.
12333
12334 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12335 completer for the "help" command.
12336
12337 2002-01-09 Jason Merrill <jason@redhat.com>
12338
12339 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12340
12341 2002-01-09 Michael Snyder <msnyder@redhat.com>
12342
12343 * i386-linux-nat.c (fill_fpxregset): Make global.
12344 (store_fpxregset): Ditto.
12345
12346 * gregset.h (gdb_fpxregset_t): Define.
12347 (supply_fpxregset): Prototype.
12348 (fill_fpxregset): Prototype.
12349
12350 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12351
12352 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12353
12354 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12355 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12356 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12357
12358 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12359
12360 * MAINTAINERS: Update target maintainer rules so that any
12361 Maintainer can approve a tested patch for a maintenance-only
12362 target.
12363
12364 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12365
12366 * MAINTAINERS (write-after-approval): Add myself.
12367
12368 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12369 IN_SIGTRAMP.
12370
12371 2002-01-08 Michael Snyder <msnyder@redhat.com>
12372
12373 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12374 real name of the executable, rather than the /proc name.
12375
12376 2002-01-03 Michael Snyder <msnyder@redhat.com>
12377
12378 Implement a "generate-core-file" command in gdb, save target state.
12379 * gcore.c: New file. Implement new command 'generate-core-file'.
12380 Save a corefile image of the current state of the inferior.
12381 * linux-proc.c: Add linux-specific code for saving corefiles.
12382 * target.h (struct target_ops): Add new target vectors for saving
12383 corefiles; to_find_memory_regions and to_make_corefile_notes.
12384 (target_find_memory_regions): New macro.
12385 (target_make_corefile_notes): New macro.
12386 * target.c (update_current_target): Inherit new target methods.
12387 (dummy_find_memory_regions): New place-holder method.
12388 (dummy_make_corefile_notes): New place-holder method.
12389 (init_dummy_target): Initialize new dummy target vectors.
12390 * exec.c (exec_set_find_memory_regions): New function.
12391 Allow the exec_ops vector for memory regions to be taken over.
12392 (exec_make_note_section): New function, target vector method.
12393 * defs.h (exec_set_find_memory_regions): Export prototype.
12394 * procfs.c (proc_find_memory_regions): New function, corefile method.
12395 (procfs_make_note_section): New function, corefile method.
12396 (init_procfs_ops): Set new target vector pointers.
12397 (find_memory_regions_callback): New function.
12398 (procfs_do_thread_registers): New function.
12399 (procfs_corefile_thread_callback): New function.
12400 * sol-thread.c (sol_find_memory_regions): New function.
12401 (sol_make_note_section): New function.
12402 (init_sol_thread_ops): Initialize new target vectors.
12403 * inftarg.c (inftarg_set_find_memory_regions): New function.
12404 Allow to_find_memory_regions vector to be taken over.
12405 (inftarg_set_make_corefile_notes): New function.
12406 Allow to_make_corefile_notes vector to be taken over.
12407 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12408 interface layer if not target_has_execution (may be a corefile).
12409 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12410 * config/sparc/sun4sol2.mh: Ditto.
12411 * config/alpha/alpha-linux.mh: Ditto.
12412 * config/arm/linux.mh: Ditto.
12413 * config/i386/x86-64linux.mh: Ditto.
12414 * config/ia64/linux.mh: Ditto.
12415 * config/m68k/linux.mh: Ditto.
12416 * config/mips/linux.mh: Ditto.
12417 * config/powerpc/linux.mh: Ditto.
12418 * config/sparc/linux.mh: Ditto.
12419
12420 2002-01-07 Michael Snyder <msnyder@redhat.com>
12421
12422 * arm-linux-nat.c: Remove references to regcache.c internal data
12423 (registers[] and register_valid[]).
12424
12425 2002-01-07 Michael Snyder <msnyder@redhat.com>
12426
12427 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12428 so that attaching to a pid will automatically read the process's
12429 symbol file and shlibs.
12430 * Makefile.in: Add rule for linux-proc.o.
12431 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12432 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12433 * config/arm/linux.mh: Ditto.
12434 * config/i386/linux.mh: Ditto.
12435 * config/i386/x86-64linux.mh: Ditto.
12436 * config/ia64/linux.mh: Ditto.
12437 * config/m68k/linux.mh: Ditto.
12438 * config/mips/linux.mh: Ditto.
12439 * config/powerpc/linux.mh: Ditto.
12440 * config/sparc/linux.mh: Ditto.
12441
12442 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12443
12444 * win32-nat.c: Add i386-tdep.h dependency.
12445
12446 2002-01-07 Michael Snyder <msnyder@redhat.com>
12447
12448 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12449 instead of bfd_get_arch_size. Don't bail out just because
12450 there's no exec_bfd.
12451
12452 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12453 * p-valprint.c (pascal_object_print_value): Ditto.
12454 * somread.c (som_symtab_read): Ditto.
12455 * symfile.c (simple_free_overlay_region_table): Ditto.
12456 * valops.c (value_assign): Ditto.
12457
12458 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12459 use tilde_expand and strerror for opening save-tracepoints file.
12460
12461 * thread-db.c (thread_db_new_objfile): Indendation fix.
12462
12463 * infptrace.c (GDB_MAX_ALLOCA): New define.
12464 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12465 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12466 can be overridden with whatever value is appropriate to the host).
12467 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12468 alloca to allocate potentially large buffer.
12469 * rs6000-nat.c (child_xfer_memory): Ditto.
12470 * symm-nat.c (child_xfer_memory): Ditto.
12471 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12472
12473 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12474
12475 From Nick Clifton <nickc@redhat.com>
12476 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12477
12478 2002-01-07 Michael Snyder <msnyder@redhat.com>
12479
12480 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12481 Don't use exec_bfd if it's NULL.
12482
12483 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12484
12485 * valops.c (value_arg_coerce): Fix formatting.
12486
12487 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12488
12489 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12490 * gnu-nat.c: Ditto.
12491
12492 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12493
12494 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12495 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12496 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12497 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12498 z8k-coff have not been multi-arched. Update z8k-coff build
12499 status.
12500
12501 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12502
12503 * MAINTAINERS: Mark a29k target as obsolete.
12504 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12505 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12506 comments.
12507 * NEWS: Note that a29k targets are obsolete.
12508 * a29k-tdep.c: Mark as obsolete.
12509 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12510 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12511 a29k-*-vxworks* targets as obsolete.
12512 * remote-adapt.c: Obsolete.
12513 * remote-eb.c: Obsolete.
12514 * remote-mm.c: Obsolete.
12515 * remote-udi.c: Obsolete.
12516 * config/a29k/a29k-udi.mt: Obsolete.
12517 * config/a29k/a29k.mt: Obsolete.
12518 * config/a29k/tm-a29k.h: Obsolete.
12519 * config/a29k/tm-vx29k.h: Obsolete.
12520 * config/a29k/vx29k.mt: Obsolete.
12521
12522 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12523
12524 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12525 with BFD_ENDIAN_BIG.
12526
12527 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12528
12529 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12530 * configure, config.in: Re-generate.
12531 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12532 * defs.h: Do not include <endian.h>.
12533
12534 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12535
12536 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12537 * config.in: Regenerate.
12538 * configure.in: Update copyright years.
12539 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12540 * configure: Regenerate.
12541 * i386bsd-nat.c: Update copyright years.
12542 (fill_gregset): Use regcache_collect.
12543 (fetch_inferior_registers): Only fetch integer registers
12544 if requested to do so. Add support for XMM registers
12545 using PT_GETXMMREGS.
12546 (store_inferior_registers): Only store integer registers
12547 if requested to do so. Add support for XMM registers
12548 using PT_SETXMMREGS.
12549 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12550 (store_inferior_registers): Remove.
12551 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12552 (fetch_elfcore_registers): New function.
12553 (i386nbsd_elfcore_fns): New.
12554 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12555 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12556 i386bsd-nat.o.
12557 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12558 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12559 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12560 * config/i386/tm-nbsd.h: Update copyright years.
12561 (HAVE_SSE_REGS): Define.
12562 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12563 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12564 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12565 (SIGCONTEXT_PC_OFFSET): Remove.
12566 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12567
12568 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12569
12570 * configure.tgt: Remove powerpc-*-macos* target.
12571 * config/m68k/xm-mpw.h: Delete file.
12572 * config/xm-mpw.h: Delete file.
12573 * ser-mac.c: Delete file.
12574 * mpw-make.sed: Delete file.
12575 * mpw-config.in: Delete file.
12576 * mac-xdep.c: Delete file.
12577 * mac-gdb.r: Delete file.
12578 * mac-defs.h: Delete file.
12579 * mac-nat.c: Delete file.
12580 * config/powerpc/macos.mh: Delete file.
12581 * config/powerpc/macos.mt: Delete file.
12582 * config/powerpc/nm-macos.h: Delete file.
12583 * config/powerpc/tm-macos.h: Delete file.
12584 * source.c (openp, open_source_file): Remove obsolete code.
12585 * top.c (gdb_readline): Ditto.
12586 * utils.c (query): Ditto.
12587 * event-top.c (display_gdb_prompt): Ditto.
12588 * Makefile.in (ser-mac.o): Delete obsolete target.
12589 * NEWS: Update.
12590
12591 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12592
12593 * defs.h (BIG_ENDIAN): Delete macro definition.
12594 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12595 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12596 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12597 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12598 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12599 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12600 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12601 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12602 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12603 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12604 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12605 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12606 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12607 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12608 * gdbarch.c: Re-generate.
12609
12610 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12611
12612 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12613 for core files.
12614
12615 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12616
12617 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12618
12619 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12620
12621 * value.h (value_ptr): Delete typedef.
12622
12623 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12624
12625 * i386nbsd-nat.c: Update copyright years.
12626 Include i386-tdep.h.
12627
12628 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12629
12630 * stabsread.c: Update copyright years.
12631
12632 From Debashis Mahata <debashis.mahata@wipro.com>:
12633 (read_struct_fields): Deal with Sun C compiler erroneous stab
12634 output for structs and unions.
12635 Fix PR gdb/269.
12636
12637 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12638
12639 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12640 prototype.
12641
12642 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12643
12644 * cp-abi.c: Fix whitespace.
12645 (baseclass_offset): New wrapper function.
12646 * cp-abi.h (baseclass_offset): Add prototype.
12647 (struct cp_abi_ops): Add baseclass_offset pointer.
12648
12649 * valops.c (vb_match): Move to...
12650 * gnu-v2-abi.c (vb_match): here.
12651 * valops.c (baseclass_offset): Move to...
12652 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12653
12654 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12655
12656 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12657 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12658 * hpacc-abi.c (init_hpacc_ops): Likewise.
12659
12660 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12661
12662 * valops.c (find_overload_match): Accept obj as a
12663 reference parameter. Update it before returning.
12664 * value.h (find_overload_match): Update prototype.
12665 * eval.c (evaluate_subexp_standard): Pass object to
12666 find_overload_match by reference.
12667
12668 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12669
12670 * valarith.c: Replace value_ptr with struct value pointer. Remove
12671 register attribute from value declarations.
12672 * valops.c: Ditto.
12673 * value.h: Ditto.
12674 * scm-lang.c (scm_lookup_name): Ditto.
12675
12676 2002-01-03 Michael Snyder <msnyder@redhat.com>
12677
12678 Abstract the functionality of iterating over mapped memory
12679 regions into a general purpose iterator function.
12680 * procfs.c (iterate_over_mappings): New function, general purpose
12681 iterator for memory sections.
12682 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12683 (solib_mappings_callback): New function, callback for above.
12684 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12685 (info_mappings_callback): New function, callback for above.
12686
12687 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12688
12689 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12690
12691 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12692 * i386-tdep.c: Include "elf-bfd.h".
12693 (process_note_abi_tag_sections): New function.
12694 (i386_gdbarch_init): Add code to recognize various OS/ABI
12695 combinations.
12696
12697 * maint.c (_initialize_maint_cmds): Add missing \ in
12698 string-literal.
12699
12700 For older changes see ChangeLog-2001
12701 \f
12702 Local Variables:
12703 mode: change-log
12704 left-margin: 8
12705 fill-column: 74
12706 version-control: never
12707 End:
This page took 0.446348 seconds and 4 git commands to generate.