* dwarf2read.c (read_func_scope): Restore list_in_scope properly
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-08 Jim Blandy <jimb@redhat.com>
2
3 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
4 when we finish a function a context.
5 * buildsym.h (outermost_context_p): New macro.
6 (Bug analyzed by David Edelsohn.)
7
8 2002-11-08 Andrew Cagney <ac131313@redhat.com>
9
10 * blockframe.c: Include "dummy-frame.h".
11 (struct dummy_frame, dummy_frame_stack)
12 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
13 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
14 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
15 (generic_save_call_dummy_addr, generic_pop_current_frame)
16 (generic_pop_dummy_frame, generic_fix_call_dummy)
17 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
18 dummy frame code from here...
19 * dummy-frame.c: ...to here. New file.
20 * dummy-frame.h: New file.
21 (generic_call_dummy_register_unwind): Declare.
22 (generic_find_dummy_frame): Declare.
23 * Makefile.in (SFILES): Add dummy-frame.c.
24 (dummy-frame.o): Specify dependencies.
25 (dummy_frame_h): Define.
26 (COMMON_OBS): Add dummy-frame.o.
27 (blockframe.o): Update dependencies.
28
29 2002-11-08 Jim Blandy <jimb@redhat.com>
30
31 * dwarf2read.c (read_func_scope): Restore local_symbols and
32 param_symbols after we finish the function context. (Based on a
33 patch from David Edelsohn.)
34
35 2002-11-08 David Carlton <carlton@math.stanford.edu>
36
37 * linespec.c (symbol_found): New function.
38 (minsym_found): New function.
39 (decode_line_1): Separate out some code into separate functions.
40
41 2002-11-08 Joel Brobecker <brobecker@gnat.com>
42
43 * i386-tdep.c (i386_frameless_signal_p): Make non static for
44 the benefit of the interix target.
45 * i386-tdep.h (i386_frameless_signal_p): Declare.
46
47 2002-11-08 Andrew Cagney <ac131313@redhat.com>
48
49 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
50 declaration that snuck in from change below.
51
52 2002-11-06 Andrew Cagney <cagney@redhat.com>
53
54 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
55 all callers.
56 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
57 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
58 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
59 (i386_mxcsr_regnum_p): new function. Use instead of
60 MXCSR_REGNUM_P.
61 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
62 (i386_sse_regnum_p): Declare.
63 (i386_mxcsr_regnum_p): Declare.
64 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
65 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
66 (IS_FP_REGNUM): Update definition.
67 (IS_FPU_CTRL_REGNUM): Update definition..
68 (IS_SSE_REGNUM): Update definition..
69 * i386v-nat.c (register_u_addr): Update.
70 * go32-nat.c (fetch_register): Update.
71 (store_register): Update.
72
73 2002-11-07 Joel Brobecker <brobecker@gnat.com>
74
75 Preparation work to convert the hppa targets to multiarch partial.
76
77 * hppa-tdep.c: Add new functions replacing macro bodies from
78 config/pa/tm-hppa.h. These function will be used to initialize
79 the gdbarch structure. Import some comments from tm-hppa.h,
80 and place them where appropriate, to avoid loosing them when
81 we cleanup this file.
82 (hppa_reg_struct_has_addr): New function.
83 (hppa_inner_than): New function.
84 (hppa_stack_align): New function.
85 (hppa_pc_requires_run_before_use): New function.
86 (hppa_instruction_nullified): New function.
87 (hppa_register_byte): New function.
88 (hppa_register_virtual_type): New function.
89 (hppa_store_struct_return): New function.
90 (hppa_cannot_store_register): New function.
91 (hppa_frame_args_address): New function.
92 (hppa_frame_locals_address): New function.
93 (hppa_smash_text_address): New function.
94 (hppa_coerce_float_to_double): New function. Requires the inclusion
95 of "language.h".
96
97 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
98
99 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
100 gdbarch-eligible macro to a call to the new associated function
101 created in hppa-tdep.c.
102 (INNER_THAN): Likewise.
103 (STACK_ALIGN): Likewise.
104 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
105 (INSTRUCTION_NULLIFIED): Likewise.
106 (REGISTER_BYTE): Likewise.
107 (REGISTER_VIRTUAL_TYPE): Likewise.
108 (STORE_STRUCT_RETURN): Likewise.
109 (CANNOT_STORE_REGISTER): Likewise.
110 (FRAME_ARGS_ADDRESS): Likewise.
111 (FRAME_LOCALS_ADDRESS): Likewise.
112 (SMASH_TEXT_ADDRESS): Likewise.
113 (COERCE_FLOAT_TO_DOUBLE): Likewise.
114 (ABOUT_TO_RETURN): Delete, as no longer used.
115
116 2002-11-07 Fernando Nasser <fnasser@redhat.com>
117
118 * printcmd.c (disassemble_command): Remove obsolete function.
119 (_initialize_printcmd): Do not create disassemble command here.
120 * cli/cli-cmds.c (disassemble_command): New function. Implements
121 disassemble command.
122 (init_cli_cmds): Create disassemble command here instead.
123
124 2002-11-07 Andrew Cagney <ac131313@redhat.com>
125
126 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
127
128 2002-11-07 Andrew Cagney <ac131313@redhat.com>
129
130 * regcache.h (regcache_cooked_read_using_offset_hack)
131 (regcache_cooked_write_using_offset_hack): Delete declarations.
132 (register_changed): Delete declaration.
133 * regcache.c (regcache_cooked_read_using_offset_hack)
134 (regcache_cooked_write_using_offset_hack): Delete functions.
135 (cooked_xfer_using_offset_hack): Delete function.
136 (register_changed): Delete function.
137
138 2002-11-07 Jim Blandy <jimb@redhat.com>
139
140 * macroscope.c: #include "complaints.h".
141 (sal_macro_scope): Cope with filenames that appear in the symtabs,
142 but not in the macro table.
143 * Makefile.in (macroscope.o): Record dependency.
144
145 2002-11-07 Joel Brobecker <brobecker@gnat.com>
146
147 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
148
149 2002-11-07 Andrew Cagney <ac131313@redhat.com>
150
151 * regcache.c (deprecated_registers_fetched): Update.
152 * regcache.h (deprecated_registers_fetched): Rename
153 registers_fetched.
154 * remote-vxsparc.c (vx_read_register): Update.
155 * remote-vxmips.c (vx_read_register): Update.
156 * remote-vx68.c (vx_read_register): Update.
157 * irix5-nat.c (fetch_core_registers): Update.
158 * mipsm3-nat.c (fetch_inferior_registers): Update.
159 * sun3-nat.c (fetch_inferior_registers): Update.
160 * symm-nat.c (fetch_inferior_registers): Update.
161 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
162 (fetch_core_registers): Update.
163 (fetch_kcore_registers): Update.
164 * mips-nat.c (fetch_inferior_registers): Update.
165 * corelow.c (get_core_registers): Update.
166 * a68v-nat.c (fetch_inferior_registers): Update.
167
168 2002-11-06 Joel Brobecker <brobecker@gnat.com>
169
170 Put in place the framework necessary for multiarching the hppa targets.
171 * hppa-tdep.c (hppa_gdbarch_init): New function.
172 (hppa_dump_tdep): New function.
173 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
174 tdep structure dumper.
175 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
176 until the multi-arching conversion has partially been completed.
177
178 2002-11-06 Andrew Cagney <ac131313@redhat.com>
179
180 * valops.c (value_assign): Merge lval_register case into
181 lval_reg_frame_relative. Use frame_register and
182 regcache_cooked_write instead of get_saved_register and
183 write_register_bytes. After flushing the register cache, try to
184 re-select the selected frame.
185
186 2002-11-06 Andrew Cagney <ac131313@redhat.com>
187
188 * regcache.h (deprecated_register_valid): Rename register_valid.
189 * regcache.c: Update.
190 * ia64-aix-nat.c: Update.
191 * i386gnu-nat.c: Update.
192 * alpha-nat.c: Update.
193 * sparc-nat.c: Update.
194 * lynx-nat.c: Update.
195 * remote-mips.c: Update.
196
197 2002-11-06 Joel Brobecker <brobecker@gnat.com>
198
199 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
200 to end of file, to be more consistent with the pratice followed
201 by other targets.
202
203 2002-11-06 Andrew Cagney <ac131313@redhat.com>
204
205 * infcmd.c: Include "reggroups.h" and <ctype.h>.
206 (print_float_info): Print registers in float_reggroup.
207 (print_vector_info): Print registers in vector_reggroup.
208 (default_print_registers_info): When all, print registers in
209 all_reggroup. Otherwize, print registers in general_reggroup.
210 (registers_info): Rewrite. Add support for register groups.
211 Eliminate a goto.
212
213 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
214
215 * symtab.c (methods_info): Delete. It has been ifdeffed out for
216 ages.
217 (symtab_symbol_info): Remove eons old ifdeffed out code.
218 (_initialize_symtab): Remove prehistoric disabled 'info methods'
219 command.
220
221 2002-11-06 Theodore A. Roth <troth@openavr.org>
222
223 * c-exp.y: Add missing semi-colons.
224 * f-exp.y: Add missing semi-colons.
225 * m2-exp.y: Add missing semi-colons.
226 * p-exp.y: Add missing semi-colons.
227 Add empty action to start rule to avoid a type clash error when
228 building with bison >= 1.50.
229
230 2002-11-06 Jim Blandy <jimb@redhat.com>
231
232 * macrotab.h (struct macro_source_file): Doc fix.
233
234 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
235
236 * varobj.c (child_exists, cplus_number_of_children): Change
237 STREQ macro references to strcmp.
238 (cplus_name_of_child): Change code to handle the fact that
239 fields are not necessarily contiguous with regards to their
240 access control. This is a fix for PR gdb/792.
241
242 2002-11-05 Andrew Cagney <ac131313@redhat.com>
243
244 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
245 * gdbarch.h, gdbarch.c: Regnerate.
246 * frame.h (frame_register): Declare.
247 * frame.c (frame_register): New function.
248 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
249 GET_SAVED_REGISTER, otherwize call
250 generic_unwind_get_saved_register.
251 (frame_register_read): Use frame_register instead of
252 get_saved_register.
253
254 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
255
256 From Jim Ingham <jingham@apple.com>:
257 * event-top.c (gdb_disable_readline): New function.
258 (_initialize_event_loop): Move comment.
259
260 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
261
262 * event-loop.c (start_event_loop): Add comment.
263 Update copyright.
264
265 2002-11-05 Andrew Cagney <ac131313@redhat.com>
266
267 * infcmd.c (default_print_registers_info): Do not call
268 PRINT_REGISTER_HOOK.
269
270 2002-11-05 Andrew Cagney <ac131313@redhat.com>
271
272 * sparc-tdep.c (sparc_print_register_hook): Make static.
273 (sparc_print_registers_info): New function.
274 (sparc_do_registers_info): New function.
275 (sparclet_print_registers_info): New function.
276 (sparclet_do_registers_info): New function.
277 (do_sparc_print_registers_info): New function.
278 (sparc_print_registers): New static function, clone of infcmd.c's
279 default_print_registers_info.
280 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
281 (sparclet_do_registers_info): Declare.
282 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
283 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
284 Re-define.
285 (sparc_do_registers_info): Declare.
286 (PRINT_REGISTER_HOOK): Delete macro.
287 (sparc_print_register_hook): Delete declaration.
288
289 2002-11-05 David Carlton <carlton@math.stanford.edu>
290
291 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
292 functions.
293 (lookup_symbol_aux_local): New function.
294 (lookup_symbol_aux_symtabs): New function.
295 (lookup_symbol_aux_psymtabs): New function.
296
297 2002-11-05 David Carlton <carlton@math.stanford.edu>
298
299 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
300 previous values of 'objfile' and 'block'.
301
302 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
303
304 * values.c (value_change_enclosing_type): Set
305 enclosing_type field correctly also for the case where
306 more memory needs to be allocated.
307
308 2002-11-03 Mark Kettenis <kettenis@gnu.org>
309
310 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
311 of puts_filtered.
312
313 * i387-tdep.c (i387_print_float_info): Replace calls to
314 register_read and deprecated_read_register_gen with calls to
315 frame_register_read, and make the necessary adjustments to the
316 surrounding code.
317
318 2002-11-02 Andrew Cagney <ac131313@redhat.com>
319
320 * gdbarch.sh (register_reggroup_p): Allow default value.
321 * gdbarch.h, gdbarch.c: Regenerate.
322
323 2002-11-02 Andrew Cagney <ac131313@redhat.com>
324
325 * regcache.h: Add coment indicating replacements for deprecated
326 functions.
327
328 2002-11-02 Andrew Cagney <cagney@redhat.com>
329
330 * reggroups.h, reggroups.c: New files.
331 * regcache.c: Include "reggroups.h".
332 (enum regcache_dump_what): Add `regcache_dump_groups'.
333 (regcache_dump): Contract size of the "Type" column. When
334 specified, dump the register's groups.
335 (maintenance_print_register_groups): New function.
336 (_initialize_regcache): Add command `maint print register-groups'.
337 * Makefile.in (COMMON_OBS): Add reggroups.o
338 (SFILES): Add reggroups.c.
339 (reggroups_h): Define.
340 (regcache.o, gdbarch.o): Update dependencies.
341 (reggroups.o): Specify dependencies.
342 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
343 Add opaque declaration for `struct reggroup' in generated .h file.
344 Include "reggroups.h" in generated .c file.
345 gdbarch.h, gdbarch.c: Re-generate.
346
347 2002-11-02 Andrew Cagney <cagney@redhat.com>
348
349 * regcache.h (deprecated_read_register_gen): Rename
350 read_register_gen.
351 (deprecated_write_register_gen): Rename write_register_gen.
352 * i387-tdep.c: Update.
353 * x86-64-linux-nat.c: Update
354 * wince.c: Update.
355 * thread-db.c: Update.
356 * win32-nat.c: Update.
357 * mips-tdep.c: Update.
358 * d10v-tdep.c: Update.
359 * cris-tdep.c: Update.
360 * remote-sim.c: Update.
361 * remote-rdi.c: Update.
362 * remote-rdp.c: Update.
363 * frame.c: Update.
364 * target.c: Update.
365 * blockframe.c: Update.
366 * x86-64-tdep.c: Update.
367 * xstormy16-tdep.c: Update.
368 * sh-tdep.c: Update.
369 * s390-tdep.c: Update.
370 * rs6000-tdep.c: Update.
371 * sparc-tdep.c: Update.
372 * i386-tdep.c: Update.
373 * dwarf2cfi.c: Update.
374 * regcache.c: Update.
375
376 2002-11-01 Joel Brobecker <brobecker@gnat.com>
377
378 New interix-specific files:
379 * config/i386/nm-interix.h: New file.
380 * config/i386/interix.mh: New file.
381 * config/i386/interix.mt: New file.
382 * i386-interix-nat.c: New file.
383 * i386-interix-tdep.c: New file.
384
385 2002-11-01 Andrew Cagney <cagney@redhat.com>
386
387 * frame.h (deprecated_generic_get_saved_register): Rename
388 generic_get_saved_register.
389 * blockframe.c (deprecated_generic_get_saved_register): Update.
390 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
391 (xstormy16_frame_saved_register): Update.
392 * sh-tdep.c (sh_gdbarch_init): Update.
393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
394 * ia64-tdep.c (ia64_get_saved_register): Update.
395 * cris-tdep.c (cris_gdbarch_init): Update.
396 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
397 * arm-tdep.c (arm_gdbarch_init): Update.
398
399 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
400
401 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
402
403 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
404
405 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
406 trampolines in sigaction.
407
408 2002-10-31 Andrew Cagney <cagney@redhat.com>
409
410 * h8300-tdep.c: Include "gdb_assert.h".
411 (h8300_print_register): Add gdbarch, file and frame parameters.
412 Use frame_read_unsigned_register to read the register's value.
413 Use fprintf_filtered to display output.
414 (h8300_print_registers_info): Replace h8300_do_registers_info.
415 (h8300_gdbarch_init): Set print_registers_info.
416
417 2002-10-31 Andrew Cagney <cagney@redhat.com>
418
419 * frame.c (frame_read_unsigned_register): New function.
420 (frame_read_signed_register): New function.
421 * frame.h (frame_read_unsigned_register): Declare.
422 (frame_read_signed_register): Declare.
423
424 2002-10-31 Andrew Cagney <cagney@redhat.com>
425
426 * h8500-tdep.c (h8500_print_registers_info): New static function,
427 clone of infcmd.c's default_print_registers_info.
428 (h8500_do_registers_info): New funtion.
429 (h8500_print_register_hook): Rename print_register_hook, make
430 static.
431
432 * config/h8500/tm-h8500.h: Update copyright.
433 (DEPRECATED_DO_REGISTERS_INFO): Define.
434 (h8500_do_registers_info: Declare.
435 (PRINT_REGISTER_HOOK): Delete macro.
436 (print_register_hook): Delete function.
437
438 2002-10-31 Andrew Cagney <cagney@redhat.com>
439
440 * z8k-tdep.c (z8k_print_register_hook): Make static.
441 (z8k_print_registers_info): New static function, clone of
442 infcmd.c's default_print_registers_info.
443 (z8k_do_registers_info): New function. Wrap
444 z8k_print_registers_info.
445 * config/z8k/tm-z8k.h: Update copyright.
446 (PRINT_REGISTER_HOOK): Delete macro.
447 (z8k_print_register_hook): Delete declaration.
448 (DEPRECATED_DO_REGISTERS_INFO): Define.
449 (z8k_do_registers_info): Declare.
450
451 2002-10-30 Joel Brobecker <brobecker@gnat.com>
452
453 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
454 as this is already provided by value.h, and was actually causing
455 a compilation error because of a conflict in parameter type
456 declaration due to a missing const keyword.
457 (low_text_segment_addres): Fix a compilation warning.
458
459 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
460
461 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
462 registers without a name.
463 (mips_linux_cannot_store_register): Don't store registers without
464 a name.
465
466 2002-10-28 David Carlton <carlton@math.stanford.edu>
467
468 * symtab.c (find_addr_symbol): Delete. (It was already commented
469 out.)
470 * symtab.h: Delete prototype for find_addr_symbol.
471
472 2002-10-26 Andrew Cagney <cagney@redhat.com>
473
474 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
475 DO_REGISTERS_INFO.
476 gdbarch.h, gdbarch.c: Re-generate.
477 * infcmd.c (default_print_registers_info): Update reference.
478 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
479 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
480 * sh-tdep.c (sh_gdbarch_init): Ditto.
481 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
483
484 2002-10-26 Mark Kettenis <kettenis@gnu.org>
485
486 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
487 cfi_init_extra_frame_info.
488 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
489 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
490
491 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
492 target where necessary. Add more comments and remove the ones
493 that don't provide any useful information.
494
495 * i386-tdep.c (i386_frame_saved_pc): Replace call to
496 deprecated_read_register_dummy with
497 frame_unwind_unsigned_register.
498
499 * i386-tdep.c (i386_extract_struct_value_address): Use
500 regcache_raw_read_unsigned instead of
501 regcache_cooked_read_unsigned since we know that the register
502 we're reading isn't a pseudo register. Rename variable 'val' into
503 the more descriptive 'addr'.
504
505 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
506 (x86_64_push_return_address): Add comment.
507 (x86_64_pop_frame): Make static.
508 (examine_argument): Clarify comment.
509 (x86_64_skip_prologue): Make prolog_expact variable static.
510
511 * dwarf2cfi.c: Fix some formatting problems.
512 (context_cpy, read_encoded_pointer): Clarify comments.
513
514 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
515 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
516 i386 target back into x86_64_gdbarch_init. Add some comments and
517 remove meaningless ones.
518
519 2002-10-25 Andrew Cagney <cagney@redhat.com>
520
521 * complaints.h (struct deprecated_complaint): Rename `struct
522 complaint'.
523 * complaints.c (complain): Update.
524 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
525 incorrect comment indicating that "symfile.h" was being included
526 for the `struct complaint' definition.
527 * remote-vx.c: Update.
528 * objc-lang.c: Update.
529 * xcoffread.c: Update.
530 * hpread.c: Update.
531 * mdebugread.c: Update.
532 * stabsread.c: Update.
533 * dwarf2read.c: Update.
534 * dwarfread.c: Update.
535 * elfread.c: Update.
536 * coffread.c: Update.
537 * stabsread.h: Update.
538 * dbxread.c: Update.
539 * buildsym.c: Update.
540 * gdbtypes.c: Update.
541 * macrotab.c: Update.
542
543 2002-10-25 Mark Kettenis <kettenis@gnu.org>
544
545 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
546 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
547 (x86_64_init_abi): ...new function.
548
549 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
550 * i386v-nat.c: Include "i386-tdep.h".
551
552 2002-10-25 Andrew Cagney <cagney@redhat.com>
553
554 * gdbtypes.c (address_space_name_to_int): Update.
555 (address_space_int_to_name): Update.
556 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
557 multi-arch predicate.
558 (address_class_name_to_type_flags): Ditto.
559 * gdbarch.h, gdbarch.c: Re-generate.
560
561 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
562
563 2002-10-24 Martin M. Hunt <hunt@redhat.com>
564
565 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
566
567 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
568
569 * symtab.h (INIT_SAL): Delete macro.
570 (init_sal): Export.
571 * symtab.c (init_sal): New function.
572
573 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
574 to init_sal function call.
575 (find_sal_from_funcs_and_line): Ditto.
576 (all_sals_for_line): Ditto.
577 * breakpoint.c (create_internal_breakpoint): Ditto.
578 (create_fork_vfork_event_catchpoint): Ditto.
579 (create_exec_event_catchpoint): Ditto.
580 (parse_breakpoint_sals): Ditto.
581 (watch_command_1): Ditto.
582 (handle_gnu_4_16_catch_command): Ditto.
583 (clear_command): Ditto.
584 * hppa-tdep.c (child_enable_exception_callback): Ditto.
585 * infcmd.c (run_stack_dummy): Ditto.
586 * infrun.c (process_event_stop_test): Ditto.
587 (check_sigtramp2): Ditto.
588 (step_over_function): Ditto.
589 * linespec.c (decode_line_2): Ditto.
590 (decode_line_1): Ditto.
591 * source.c (line_info): Ditto.
592 * symtab.c (find_pc_sect_line): Ditto.
593
594 2002-10-24 Michal Ludvig <mludvig@suse.cz>
595
596 * dwarf2cfi.c (struct context)
597 (struct context_reg): Moved to dwarf2cfi.h
598 (context_alloc, frame_state_alloc, context_cpy):
599 Made extern instead of static, removed prototypes.
600 * dwarf2cfi.h (struct context)
601 (struct context_reg): New, moved from dwarf2cfi.c
602 (context_alloc, frame_state_alloc, context_cpy):
603 New prototypes.
604 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
605 Changed from static to extern.
606 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
607 (LINUX_SIGCONTEXT_FP_OFFSET)
608 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
609 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
610 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
611 * x86-64-tdep.c (x86_64_gdbarch_init): Several
612 set_gdbarch_*() calls now use x86-64 specific functions
613 instead of DWARF2 CFI ones.
614 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
615 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
616 (x86_64_init_extra_frame_info): New prototypes.
617
618 2002-10-23 David Carlton <carlton@math.stanford.edu>
619
620 * linespec.c: #include "parser-defs.h".
621 Delete prototype for find_template_name_end.
622 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
623
624 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
625
626 * NEWS: add recent mi fixes.
627 * varobj.c (struct varobj): Add new "updated" flag.
628 (new_variable): Default "updated" flag to 0.
629 (varobj_set_value): Set "updated" flag to 1 if value
630 changes.
631 (varobj_update): Check varobj "updated" flag before
632 comparing old and refreshed values. Fix for
633 PR gdb/702.
634
635 2002-10-23 David Carlton <carlton@math.stanford.edu>
636
637 * parse.c (parse_exp_1): Use BLOCK_START.
638 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
639 SYMBOL_BLOCK_VALUE.
640 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
641
642 2002-10-23 David Carlton <carlton@math.stanford.edu>
643
644 * symtab.c: Delete cplusplus_hint.
645 Delete prototype for find_template_name_end.
646
647 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
648
649 * symtab.h: Update comment.
650
651 2002-10-23 Michael Snyder <msnyder@redhat.com>
652
653 * printcmd.c (address_info): Restore quotes in output.
654 * valops.c (value_of_local): Restore quotes in error message.
655
656 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
657
658 * symtab.c (symbol_demangled_name): New function.
659 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
660 turning most of it into a function.
661 (symbol_demangled_name): Export.
662
663 2002-10-23 Michael Snyder <msnyder@redhat.com>
664
665 * valops.c (value_of_local): Restore quotes in error message.
666
667 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
668
669 * symtab.c (symbol_init_language_specific): New function.
670 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
671 turning most of it into a function.
672 (symbol_init_language_specific): Export.
673
674 2002-10-23 David Carlton <carlton@math.stanford.edu>
675
676 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
677 (dwarf_attr_name): Ditto.
678 (dwarf_type_encoding_name): Ditto.
679 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
680 (process_die): Handle DW_TAG_namespace,
681 DW_TAG_imported_declaration, DW_TAG_imported_module.
682 (read_namespace): New function.
683
684 2002-10-22 Joel Brobecker <brobecker@gnat.com>
685
686 * configure.in: Define NEW_PROC_API on Interix too.
687 * configure: Regenerate.
688
689 2002-10-21 Joel Brobecker <brobecker@gnat.com>
690
691 * configure: Regenerate using the proper version of autoconf.
692
693 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
694
695 * findvar.c (read_var_value): Temporarily disable TLS code, until
696 complete TLS support is added.
697
698 2002-10-21 Jim Blandy <jimb@redhat.com>
699 Elena Zannoni <ezannoni@redhat.com>
700
701 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
702 for thread local storage locations.
703 (struct symbol): Add objfile field.
704 (SYMBOL_OBJFILE): Define.
705 * dwarf2read.c (is_thread_local): New static variable.
706 (new_symbol): If variable is in thread local fill in address class
707 and objfile appropriately.
708 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
709 stack operation.
710 * printcmd.c (address_info): Print the information for thread
711 local storage variable.
712 * findvar.c (read_var_value): In case of thread local variable,
713 defer to the target vector code to compute address.
714
715 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
716
717 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
718 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
719
720 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
721
722 * symtab.h (address_class): Rename
723 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
724 * hpread.c (hpread_process_one_debug_symbol): Ditto.
725 * printcmd.c (address_info): Ditto.
726 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
727
728 2002-10-20 Mark Kettenis <kettenis@gnu.org>
729
730 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
731 DBREG_DRX macro to acces debug registers.
732
733 * Makefile.in (i386obsd-tdep.o): New target.
734
735 * solib-sunos.c: Include "bcache.h" and "regcache.h".
736 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
737
738 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
739 * config/i386/obsd.mt: New file.
740 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
741 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
742 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
743 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
744 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
745 * i386obsd-tdep.c: New file.
746
747 2002-10-19 Adam Fedor <fedor@gnu.org>
748
749 * objc-exp.y (name_not_typename): Fix invalid comment.
750
751 2002-10-20 Mark Kettenis <kettenis@gnu.org>
752
753 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
754 to allocate partial syms and macro byte caches.
755
756 2002-10-18 David Carlton <carlton@math.stanford.edu>
757
758 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
759
760 2002-10-18 Adam Fedor <fedor@gnu.org>
761
762 * stabsread.c (find_name_end): New function.
763 (define_symbol): Use it.
764
765 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
766
767 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
768 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
769 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
770 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
771
772 2002-10-17 David Carlton <carlton@math.stanford.edu>
773
774 * symfile.h: Add opaque declaration for struct obstack.
775 Declare obsavestring to take a const char *.
776 * symfile.c (obsavestring): Make first argument a const char *.
777
778 2002-10-16 Adam Fedor <fedor@gnu.org>
779
780 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
781 names when matching breakpoints in current file.
782
783 2002-10-16 Kevin Buettner <kevinb@redhat.com>
784
785 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
786 (read_tag_pointer_type): Add address class support.
787 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
788 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
789 New methods.
790 * gdbarch.h, gdbarch.c: Regenerate.
791 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
792 (make_type_with_address_space, recursive_type_dump): Add address
793 class support.
794 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
795 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
796 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
797
798 2002-10-16 Klee Dienes <kdienes@apple.com>
799
800 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
801 to get the last character of a char[] buffer, not
802 name[sizeof(vptr_name)-1].
803
804 2002-10-14 Adam Fedor <fedor@gnu.org>
805
806 * symtab.h: New objc_specific struct.
807 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
808 (SYMBOL_DEMANGLED_NAME): Likewise.
809
810 2002-10-14 Adam Fedor <fedor@gnu.org>
811
812 * symfile.c (init_filename_language_table): Add ObjC file extension.
813
814 2002-10-14 Adam Fedor <fedor@gnu.org>
815
816 * utils.c (puts_filtered_tabular): New function.
817 (fprintf_symbol_filtered): Get ObjC demangled name.
818 * defs.h (puts_filtered_tabular): Declared.
819
820 2002-10-14 Kevin Buettner <kevinb@redhat.com>
821
822 * c-lang.h (c_type_print_varspec_prefix): Delete.
823 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
824 ``need_post_space'' parameter. Adjust all callers.
825
826 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
827
828 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
829 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
830 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
831 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
832
833 2002-10-13 Adam Fedor <fedor@gnu.org>
834
835 * source.c (print_source_lines): Update comments.
836
837 2002-10-13 Adam Fedor <fedor@gnu.org>
838
839 * valops.c (value_of_local): New function.
840 (value_of_this): Use it.
841 * value.h (value_of_local): Declared.
842
843 2002-10-13 Adam Fedor <fedor@gnu.org>
844
845 * parse.c: (length_of_subexp, prefixify_subexp): Handle
846 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
847
848 2002-10-12 Adam Fedor <fedor@gnu.org>
849
850 * language.c (binop_result_type): Add language_objc to case.
851 (integral_type): Likewise.
852 (character_type): Likewise.
853 (string_type): Likewise.
854 (boolean_type): Likewise.
855 (structured_type): Likewise.
856 (binop_type_check): Likewise.
857
858 2002-10-11 Adam Fedor <fedor@gnu.org>
859
860 * printcmd.c (address_info): Print 'self' for ObjC.
861
862 2002-10-11 Adam Fedor <fedor@gnu.org>
863
864 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
865 OP_SELF.
866
867 2002-10-11 Adam Fedor <fedor@gnu.org>
868
869 * language.h (CAST_IS_CONVERSION): Add language_objc.
870
871 2002-10-11 Adam Fedor <fedor@gnu.org>
872
873 * defs.h (enum language): Add language_objc.
874
875 2002-10-11 Klee Dienes <kdienes@apple.com>
876
877 * corefile.c (read_memory_typed_address): New function.
878 * gdbcore.h (read_memory_typed_address): Add prototype.
879 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
880 to read a value destined for a CORE_ADDR, not read_memory_integer.
881 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
882 (f77_get_dynamic_lowerbound): Ditto.
883
884 2002-10-11 Martin M. Hunt <hunt@redhat.com>
885
886 * utils.c (string_to_core_addr): After turning string into
887 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
888 which will do necessary sign-extension, etc.
889
890 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
891
892 * c-exp.y (THIS): Delete token and grammar rule.
893 (yylex): Don't return THIS.
894 * cp-valprint.c (vtbl_ptr_name_old): Delete.
895 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
896 * demangle.c (cplus_markers): Update comment. Put '$'
897 first. Remove CPLUS_MARKER.
898 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
899 * jv-exp.y (THIS): Delete token and grammar rule.
900 (yylex): Don't return THIS.
901 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
902 * objc-exp.y (THIS): Delete token and grammar rule.
903 (yylex): Don't return THIS.
904 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
905 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
906 (read_member_functions): Likewise for opname.
907 (read_tilde_fields): Use is_cplus_marker.
908
909 * defs.h (CPLUS_MARKER): Don't define.
910 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
911 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
912 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
913 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
914 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
915
916 * config/i386/tm-i386v4.h: Delete file.
917 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
918 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
919 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
920 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
921 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
922 * config/i386/i386sco5.mt (TM_FILE): Likewise.
923 * config/i386/i386v4.mt (TM_FILE): Likewise.
924 * config/i386/ncr3000.mt (TM_FILE): Likewise.
925
926 2002-10-10 Marko Mlinar <markom@opencores.org>
927
928 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
929 accidentially not commited 2002-10-09
930 * gdbarch.h, gdbarch.c: Re-generate.
931
932 2002-10-09 Marko Mlinar <markom@opencores.org>
933
934 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
935 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
936 * gdbarch.h, gdbarch.c: Re-generate.
937
938 2002-10-08 Petr Sorfa <petrs@caldera.com>
939
940 Revised and re-submitted by John Wolfe <jlw@caldera.com>
941
942 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
943 so we can work on more than one compilation unit at a time. This
944 helps prepare GDB to handle inter-CU die references.
945 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
946 the code to be defined before struct comp_unit_head.
947 (comp_unit_head): Added new members - offset, cu_head,
948 begin_die, next and dwarf2_abbrevs.
949 (dwarf2_abbrevs): Removed single static var; now member of
950 struct comp_unit_head.
951 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
952 members.
953 (psymtab_to_symtab_1): Changed to work with the new
954 struct comp_unit_head.
955 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
956 constructs the dwarf2_abbrevs[] inside the cu_header.
957 (dwarf2_empty_abbrev_table): Now expects a ptr to a
958 dwarf2_abbrev table to clean up.
959 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
960 handling of dwarf2_abbrevs inside the cu_header.
961 (read_partial_die): Now supports the call to the new
962 dwarf2_lookup_abbrev.
963 (read_full_die): Now supports the call to the new
964 dwarf2_lookup_abbrev.
965
966 2002-10-06 Christopher Faylor <cgf@redhat.com>
967
968 * Makefile.in (install-gdbtk): Add missing continuation backslash to
969 insure that shell variables, such as "transformed_name" are propagated
970 to later shell statements in rule.
971
972 2002-10-06 Mark Kettenis <kettenis@gnu.org>
973
974 * config/i386/nm-i386sco.h: Add protection against
975 multiple-inclusion. Include "i386/nm-i386v.h".
976 (REGISTER_U_ADDR): Remove define.
977 (i386_register_u_addr): Remove prototype.
978
979 2002-10-04 Michael Snyder <msnyder@redhat.com>
980
981 * m32r-stub.c (handle_exception): Make sure exception is "trap"
982 before treating it as a single-step event.
983
984 2002-10-03 Adam Fedor <fedor@gnu.org>
985
986 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
987 (objc_demangle): Remove assignment in if statements, Replace
988 free with xfree.
989 (add_msglist): Likewise.
990 (end_msglist): Likewise.
991 (complare_selectors): Likewise.
992 (selectors_info): Likewise.
993 (compare_classes): Likewise.
994 (classes_info): Likewise.
995 (print_object_command): Likewise.
996 (find_objc_msgcall_submethod): Replace PTR with void *.
997 * objc-lang.h: Remove check for __STDC__.
998
999 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1000
1001 * ui-out.h (ui_out_field_fmt_int): New prototype.
1002 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1003 of field width and alignment.
1004 * stack.c (print_frame_info_base): When printing frame level, use
1005 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1006 PR gdb/192
1007
1008 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1009
1010 * MAINTAINERS: Add self to Write After Approval list.
1011
1012 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1013
1014 * infcmd.c (interrupt_target_command_wrapper): Delete.
1015 (interrupt_target_command): Make non static.
1016 (nofp_registers_info): Make static.
1017 * stack.c (return_command_wrapper): Delete.
1018 (return_command): Make non static.
1019
1020 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1021
1022 * event-top.c (gdb_setup_readline): New function. Code moved from
1023 _initialize_event_loop().
1024 (_initialize_event_loop): Call gdb_setup_readline().
1025
1026 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1027
1028 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1029 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1030 * gdbarch.h, gdbarch.c: Re-generate.
1031
1032 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1033
1034 Fix PR gdb/778
1035 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1036 before recursing.
1037 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1038 of fill_in_vptr_fieldno.
1039
1040 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1041
1042 * inferior.h (registers_info, stepi_command, nexti_command,
1043 continue_command, interrupt_target_command): Export from infcmd.c.
1044 * frame.h (args_info, selected_frame_level_changed_hook,
1045 return_command): Export from stack.c.
1046 * v850ice.c (stepi_command, nexti_command, continue_command): use
1047 prototypes from inferior.h.
1048 * tracepoint.c (registers_info, args_info, locals_info): Use
1049 prototypes from frame.h and inferior.h.
1050 * Makefile.in (mi-main.o): Add dependency on frame.h.
1051
1052 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1053
1054 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1055 value in register 3 adjusted by ppc_gp0_regnum.
1056
1057 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1058
1059 2002-10-02 Marko Mlinar <markom@opencores.org>
1060
1061 * MAINTAINERS: Add myself to the Write After Approval list.
1062
1063 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1064
1065 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1066 of the section for the N64 ABI, fixed.
1067
1068 * config/mips/tm-irix6.h: Include solib.h.
1069
1070 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1071
1072 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1073 GNU operators.
1074
1075 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1076
1077 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1078 and that "mi0" syntax has been removed.
1079
1080 2002-09-30 David Carlton <carlton@math.stanford.edu>
1081
1082 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1083 * ppc-sysv-tdep.c: #include "gdb_string.h".
1084 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1085 pacify GCC.
1086
1087 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1088
1089 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1090 "vrsave"'s register number.
1091
1092 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1093
1094 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1095 use frame_unwind_signed_register to obtain the PC.
1096 (mips_frame_chain): Handle a generic dummy frame.
1097 (mips_init_extra_frame_info): When a generic dummy frame, don't
1098 re-compute the frame base.
1099 (mips_pop_frame): Handle generic dummy frames.
1100 (mips_gdbarch_init): When generic dummy frames, set
1101 use_generic_dummy_frames, push_dummy_frame to
1102 generic_push_dummy_frame, pc_in_call_dummy to
1103 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1104 generic_save_dummy_frame_tos.
1105
1106 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1107
1108 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1109 against TOP when TOP was explictly set.
1110 (generic_push_dummy_frame): Set TOP to zero.
1111
1112 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1113
1114 * event-loop.c (start_event_loop): Rename variable 'result' to
1115 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1116
1117 2002-09-30 Keith Seitz <keiths@redhat.com>
1118
1119 * gdb-events.sh (selected_thread_changed): New event.
1120 * gdb-events.c: Regenerated.
1121 * gdb-events.h: Regenerated.
1122
1123 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1124
1125 * MAINTAINERS: Add self to Write After Approval list.
1126
1127 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1128
1129 * disasm.c: New file.
1130 * disasm.h: New file.
1131 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1132 (compare_lines): Ditto.
1133 (dump_insns): Ditto.
1134 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1135 argument.
1136 (do_assembly_only): Ditto.
1137 (do_disassembly): Renamed to gdb_disassembly and moved to
1138 disasm.c. Sdded uiout argument.
1139 * Makefile.in: Add new files. Reorder SFILES list. Update
1140 dependencies. Include libgdb.a later in the insight executable.
1141
1142 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1143
1144 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1145 bfd/elf64-alpha-fbsd.c.
1146
1147 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1148
1149 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1150 i386gnu-tdep.c.
1151
1152 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1153
1154 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1155 __FUNCTION__.
1156 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1157 function name.
1158 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1159 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1160 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1161 (S_msg_sig_post_reply): Ditto.
1162
1163 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1164
1165 * sh-tdep.c (sh_use_struct_convention): Use definition according
1166 to ABI.
1167 (sh_push_arguments): Store in register with correct endianess.
1168 (sh_default_store_return_value): Ditto.
1169 (sh_gdbarch_init): Set sizeof long double to 8.
1170
1171 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1172
1173 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1174 Fix some whitespace problems.
1175
1176 2002-09-27 David Carlton <carlton@math.stanford.edu>
1177
1178 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1179 (mcore-tdep.o): Ditto.
1180 (ns32k-tdep.o): Ditto.
1181 (ns32knbsd-tdep.o): Ditto.
1182 (sh3-rom.o): Ditto.
1183 (vax-tdep.o): Ditto.
1184 * cris-tdep.c: #include "gdb_string.h"
1185 * mcore-tdep.c: Ditto.
1186 * ns32k-tdep.c: Ditto.
1187 * ns32knbsd-tdep.c: Ditto.
1188 * sh3-rom.c: Ditto.
1189 * vax-tdep.c: Ditto.
1190
1191 2002-09-27 David Carlton <carlton@math.stanford.edu>
1192
1193 * config/djgpp/fnchange.lst: Add entries for
1194 gdb/testsuite/gdb.c++/m-static files.
1195
1196 2002-09-27 Jim Wilson <wilson@redhat.com>
1197
1198 * MAINTAINERS: Add myself to the Write After Approval list.
1199
1200 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1201
1202 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1203
1204
1205 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1206
1207 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1208 frame.
1209
1210 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1211
1212 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1213 (rs6000_struct_return_address): Delete variable.
1214 (rs6000_store_struct_return): Update.
1215 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1216 deprecated_extract_struct_value_address.
1217 (rs6000_frame_align): New function.
1218 (rs6000_gdbarch_init): Set frame_align.
1219
1220 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1221
1222 From Grace Sainsbury <graces@redhat.com>:
1223 * Makefile.in (gdbtk-main.o): New target.
1224 (gdb.o): New target.
1225 (main_h): Define.
1226 (main.o): Update dependencies.
1227 (gdb$(EXEEXT)): Add gdb.o.
1228 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1229 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1230 (SUBDIR_GDBTK_CLEAN): Set.
1231 (install-gdbtk): Install the insight binary.
1232 (uninstall-gdbtk): New target.
1233 (all-gdbtk, clean-gdbtk): New rule.
1234 * top.c (use_windows): Default to zero.
1235 * main.c: Include "main.h".
1236 (main): Delete.
1237 (struct captured_main_args): Delete.
1238 (gdb_main): New function.
1239 * main.h: New file.
1240 * gdb.c: New File.
1241
1242 2002-09-25 Andrew Cagney <cagney@redhat.com>
1243
1244 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1245 (frame_map_regnum_to_name): New function.
1246 (frame_map_name_to_regnum): New function.
1247 * frame.h (frame_map_name_to_regnum): Declare.
1248 (frame_map_regnum_to_name): Declare.
1249 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1250 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1251 * parse.c: Do not include "builtin-regs.h".
1252 (target_map_name_to_register): Delete function.
1253 (write_dollar_variable): Use frame_map_name_to_regnum.
1254 * parser-defs.h (target_map_name_to_register): Delete declaration.
1255 * expprint.c: Include "frame.h".
1256 (print_subexp): Use frame_map_regnum_to_name.
1257 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1258 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1259
1260 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1261
1262 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1263 wasn't saved, and the next innermost frame is a dummy, return the
1264 dummy frame's link register.
1265
1266 2002-09-24 Jim Blandy <jimb@redhat.com>
1267
1268 Fix from Paul Breed:
1269 * main.c (captured_main): Add a `break' after the case for 'b'.
1270
1271 2002-09-24 Keith Seitz <keiths@redhat.com>
1272
1273 * varobj.c (c_type_of_child): Use get_target_type instead
1274 of TYPE_TARGET_TYPE.
1275
1276 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1277
1278 * source.c (get_current_or_default_source_symtab_and_line): Remove
1279 function.
1280 (set_default_source_symtab_and_line): New function. Attempts to
1281 determine a source file to list lines from if one is not currently
1282 defined.
1283 (get_current_source_symtab_and_line): Initialize sal.pc and
1284 sal.end fields.
1285 (set_current_source_symtab_and_line): Mark argument as const.
1286 * source.h: Update declarations and comments.
1287 * linespec.c (decode_line_1): Replace call to removed routine above.
1288 * stack.c (print_frame_info_base): Ditto.
1289 * cli/cli-cmds.c (edit_command): Ditto.
1290 (list_command): Ditto.
1291
1292 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1293
1294 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1295 sal.pc and sal.end fields.
1296 (get_current_or_default_source_symtab_and_line): Ditto.
1297 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1298 so we do not cause a new source symtab to be searched for (reverting an
1299 unintentional change from the 2002-09-20 patch).
1300 * scm-lang.c (scm_unpac): Ditto.
1301
1302 2002-09-21 Andrew Cagney <cagney@redhat.com>
1303
1304 * complaints.c (symfile_explanations): Remove new-line from
1305 ``isolated_message''.
1306 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1307 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1308
1309 2002-09-20 Nick Clifton <nickc@redhat.com>
1310
1311 * NEWS: Announce that V850EA ISA is no longer supported.
1312 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1313
1314 2002-09-20 David Carlton <carlton@math.stanford.edu>
1315
1316 * Makefile.in (c-lang.o): Correct dependencies.
1317 (utils.o): Gather dependencies.
1318 (charset.o): Move.
1319 * c-lang.c: #include "gdb_string.h"
1320
1321 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1322
1323 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1324 * cli/cli-cmds.c (list_command): New function. Implements the new
1325 cli edit command.
1326 (_init_cli_cmds): Add new command definition.
1327 * gdb.1: Document edit command.
1328 * doc/gdb.texinfo: Document edit command.
1329
1330 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1331
1332 * source.c: Make global variables current_source_symtab and
1333 current_source_line static.
1334 (list_command): Moved to cli/cli-cmds.c.
1335 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1336 (get_first_line_listed): New accessor function.
1337 (get_lines_to_list): New accessor function.
1338 (get_current_source_symtab_and_line): New function. Retrieves the
1339 position in the source code that we consider current.
1340 (get_current_or_default_source_symtab_and_line): New function.
1341 Like the above but attempts to determine a default position if one
1342 is not currently defined.
1343 (set_current_source_symtab_and_line): New function. Sets the source
1344 code position considered current and returns the previously set one.
1345 (clear_current_source_symtab_and_line): Reset stored information about
1346 a current source line.
1347 (_initialize_source): Remove registration for the "list" command and
1348 its alias.
1349 * source.h: Add declarations for the new functions above.
1350 * symtab.h: Remove declarations for the global variables mentioned
1351 above.
1352 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1353 obtain current source line.
1354 * linespec.c (decode_line_1): Ditto.
1355 * macroscope.c (default_macro_scope): Ditto.
1356 * scm-lang.c (scm_unpac): Ditto.
1357 * stack.c (print_frame_info_base): Ditto.
1358 * symfile.c (clear_symtab_users): Ditto.
1359 * symtab.c (decode_line_spec): Ditto.
1360 * cli/cli-cmds.c (list_command): Moved here from source.c.
1361 (ambiguous_line_spec): Moved here from source.c.
1362 (_init_cli_cmds): Add definition for "list" and its alias.
1363 * Makefile.in: Update dependencies.
1364
1365 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1366
1367 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1368 with what gcc thinks is correct.
1369
1370 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1371
1372 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1373 multiple register push instruction.
1374
1375 2002-09-19 Jim Blandy <jimb@redhat.com>
1376
1377 Add support for distinct host and target character sets.
1378 * charset.c, charset.h: New files.
1379 * c-exp.y: #include "charset.h".
1380 (yylex): Convert character and string literals to the target
1381 character set, before returning them as the semantic value of the
1382 token.
1383 * c-lang.c: #include "charset.h".
1384 (c_emit_char): Use charset-specific methods to recognize
1385 characters with backslash escape forms, to decide which characters
1386 to print literally and which to print using numeric escape
1387 sequences, and to convert target characters to host characters
1388 before printing.
1389 * utils.c: #include "charset.h".
1390 (no_control_char_error): New function.
1391 (parse_escape): Use charset-specific methods to recognize
1392 backslash escapes, parse `control character' notation, and convert
1393 characters from the host character set to the target character set.
1394 * configure.in: Set the default host character set.
1395 Check where to find iconv, and what its argument types might be.
1396 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1397 * Makefile.in (SFILES): List charset.c.
1398 (COMMON_OBS): List charset.o.
1399 (charset.o): New rule.
1400 (charset_h): New header dependency variable.
1401 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1402 (LIBICONV): New variable, set by configure.
1403 (CLIBS): Include $(LIBICONV) here.
1404 * aclocal.m4, config.in, configure: Regenerated.
1405
1406 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1407
1408 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1409 bison 1.35 warning.
1410
1411 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1412
1413 * gdb_mbuild.sh: New file.
1414
1415 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1416
1417 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1418
1419 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1420
1421 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1422 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1423 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1424 valops.c, value.h: Revert previous change.
1425
1426 2002-09-18 Michael Snyder <msnyder@redhat.com>
1427
1428 Preliminary support for Objective-C:
1429 * defs.h (language_objc): New enum value.
1430 (puts_filtered_tabular): Declaration only, exported from utils.c.
1431 (skip_quoted): Delete, declared in completer.h.
1432 * c-exp.y: Include completer.h.
1433 * p-exp.y: Ditto.
1434 * jv-exp.y: Ditto.
1435 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1436 New operator enum values.
1437 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1438 * language.c (binop_result_type): Handle language_objc case.
1439 (integral_type, character_type, string_type, boolean_type,
1440 structured_type, binop_type_check): Ditto.
1441 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1442 (struct objc_specific): Add to general_symbol_info.
1443 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1444 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1445 * parser-defs.h (struct objc_class_str): New struct type.
1446 (start_msglist, end_msglist, add_msglist): Declaration only,
1447 exported from objc-lang.c.
1448 * value.h (value_of_local, value_nsstring,
1449 call_function_by_hand_expecting_type): Exported from valops.c.
1450 * valops.c (find_function_addr): Export.
1451 (call_function_by_hand_expecting_type): New function.
1452 (value_of_local): New function.
1453 * symfile.c (init_filename_language_table): Add ".m" extension
1454 for Objective-C.
1455 * utils.c (puts_filtered_tabular): New function.
1456 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1457 (set/show demangle): Extend help-string to refer to ObjC.
1458 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1459 * stabsread.c (symbol_reference_defined): Objective-C symbols
1460 may contain colons: make allowances when scanning stabs strings
1461 for colons.
1462 (objc_find_colon): New function.
1463 * printcmd.c (address_info): If language == objc then print
1464 "self" instead of "this".
1465 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1466 OP_NSSTRING, and OP_SELF.
1467 (prefixify_subexp): Ditto.
1468 * source.c (print_source_lines): Mention objc in comment.
1469 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1470 method names.
1471
1472 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1473
1474 * complaints.h: Update copyright.
1475 (struct complaints): Declare.
1476 (struct complaint): Make `message' constant.
1477 (internal_complaint): Declare.
1478 (complaint): Declare.
1479 (complaint_root): Delete declaration.
1480 (symfile_complaints): Delete declaration.
1481 (struct complaints): Add opaque declaration.
1482 (clear_complaints): Add a complaints parameter.
1483 * complaints.c: Update copyright.
1484 (enum complaint_series): Define.
1485 (complaint_root): Delete.
1486 (struct complaints): Define.
1487 (complaint_sentinel, symfile_complaint_book): New variables.
1488 (symfile_explanations, symfile_complaints): New variables.
1489 New variables.
1490 (get_complaints): New function.
1491 (vcomplaint): New function.
1492 (complaint): New function.
1493 (internal_complaint): New function.
1494 (complain): Call vcomplain with symfile_complaint.
1495 (clear_complaints): Rewrite.
1496 (_initialize_complaints): Use add_setshow_command.
1497 * Makefile.in (complaints.o): Update dependencies.
1498 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1499 to call to clear_complaints.
1500 (new_symfile_objfile, reread_symbols): Ditto.
1501 (oldsyms_complaint): Delete.
1502 (empty_symtab_complaint, unknown_option_complaint): Delete.
1503 (free_named_symtabs): Use complaint instead of complain.
1504
1505 2002-09-18 Michael Snyder <msnyder@redhat.com>
1506
1507 Contributed by Apple Computer, Inc. Merged with current sources
1508 by Adam Fedor <fedor@doc.com> [cagney].
1509
1510 * objc-lang.c: First clean-up round: comments, indentation.
1511 * objc-lang.h: Ditto.
1512 * objc-lang.y: Ditto.
1513
1514 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1515
1516 * maint.c (maintenance_internal_error): Print the parameter as the
1517 error message.
1518 (maintenance_internal_warning): New function.
1519 (_initialize_maint_cmds): Add command `maint internal-warning'.
1520
1521 * defs.h (internal_warning, internal_vwarning): Declare.
1522 * utils.c (struct internal_problem): Define.
1523 (internal_vproblem): New function.
1524 (internal_warning): New function.
1525 (internal_vwarning): New function.
1526 (internal_warning_problem, internal_error_problem): New variables.
1527 (internal_verror): Just call internal_vproblem.
1528
1529 2002-09-18 Michael Snyder <msnyder@redhat.com>
1530
1531 * objc-lang.c: New file, support for Objective-C.
1532 Preliminary check-in, not yet integrated into gdb.
1533 * objc-lang.h: New file.
1534 * objc-exp.y: New file.
1535
1536 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1537
1538 * infrun.c (signal_stop_update): Convert definition to ISO C.
1539 (signal_print_update): Ditto.
1540 (signal_pass_update): Ditto.
1541 * inflow.c (terminal_save_ours): Ditto.
1542
1543 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1544 comments.
1545
1546 * config/djgpp/fnchange.lst: Handle name clashes between
1547 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1548 bfd/coff-tic80.c.
1549
1550 * i386-linux-tdep.h: Fix tipo.
1551
1552 2002-09-18 Adam Fedor <fedor@gnu.org>
1553
1554 * MAINTAINERS: Add myself to the Write After Approval list.
1555
1556 2002-09-18 Jim Blandy <jimb@redhat.com>
1557
1558 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1559 texthigh and textlow to reader-specific structs caused
1560 objfile_relocate to miss them. This is fixable, but the work that
1561 the change was supposed to prepare GDB for never got done anyway.
1562
1563 2002-09-18 David Carlton <carlton@math.stanford.edu>
1564
1565 * MAINTAINERS: Alphabetize Write After Approval list.
1566
1567 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1568
1569 Fix PR gdb/709
1570 * values.c (value_static_field): Call read_var_value.
1571
1572 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1573
1574 * valops.c (hand_function_call): Align the initial stack pointer
1575 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1576 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1577 return value.
1578 * mips-tdep.c (mips_frame_align): New function.
1579 (mips_gdbarch_init): Set frame_align.
1580 * gdbarch.sh (FRAME_ALIGN): New method.
1581 * gdbarch.h, gdbarch.c: Re-generate.
1582
1583 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1584
1585 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1586 registers.
1587
1588 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1589
1590 * NEWS: Mention that MIPS $fp behavior changed.
1591 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1592 reference to FP_REGNUM.
1593 (mipsnbsd_cannot_store_register): Ditto.
1594 * mips-linux-nat.c: Update copyright.
1595 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1596 (mips_linux_cannot_store_register): Ditto.
1597 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1598 * config/mips/tm-mips.h: Update copyright.
1599 (FP_REGNUM): Delete macro.
1600 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1601 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1602 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1603 (mips_r3041_reg_names, mips_r3051_reg_names)
1604 (mips_r3081_reg_names): Replace "fp" with "".
1605 Fix PR gdb/480.
1606
1607 2002-09-17 Theodore A. Roth <troth@verinet.com>
1608
1609 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1610 generic_read_register_dummy() (PR gdb/703).
1611 (avr_push_return_address): #if 0 out unused vars.
1612 (avr_gdbarch_init): Enable use of avr_push_return_address().
1613
1614 2002-09-17 Michael Snyder <msnyder@redhat.com>
1615
1616 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1617 RTE will take care of it.
1618
1619 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1620
1621 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1622 invalid, return SP_REGNUM.
1623
1624 2002-09-17 Michael Snyder <msnyder@redhat.com>
1625
1626 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1627 point registers without sign extension.
1628
1629 2002-09-17 Andrew Cagney <cagney@redhat.com>
1630
1631 * blockframe.c (deprecated_read_register_dummy): Rename
1632 generic_read_register_dummy.
1633 * frame.c (frame_unwind_signed_register): New function.
1634 (frame_unwind_unsigned_register): New function.
1635 * frame.h (frame_unwind_signed_register): Declare.
1636 (frame_unwind_unsigned_register): Declare.
1637 (deprecated_read_register_dummy): Rename
1638 generic_read_register_dummy.
1639
1640 * h8300-tdep.c (h8300_frame_chain): Update.
1641 (h8300_frame_saved_pc): Update.
1642 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1643 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1644 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1645 (s390_frame_chain): Update.
1646 * v850-tdep.c (v850_find_callers_reg): Update.
1647 (v850_frame_saved_pc): Update.
1648 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1649 (m32r_find_callers_reg): Update.
1650 (m32r_frame_saved_pc): Update.
1651 * sh-tdep.c (sh_find_callers_reg): Update.
1652 (sh64_get_saved_pr): Update.
1653 (sh_init_extra_frame_info): Update.
1654 (sh_init_extra_frame_info): Update.
1655 (sh64_init_extra_frame_info): Update.
1656 (sh64_init_extra_frame_info): Update.
1657 * mcore-tdep.c (mcore_find_callers_reg): Update.
1658 (mcore_frame_saved_pc): Update.
1659 (mcore_init_extra_frame_info): Update.
1660 * i386-tdep.c (i386_frame_saved_pc): Update.
1661 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1662 (ia64_init_extra_frame_info): Update.
1663 (ia64_init_extra_frame_info): Update.
1664 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1665 * cris-tdep.c (cris_init_extra_frame_info): Update.
1666 * avr-tdep.c (avr_frame_chain): Update.
1667 (avr_init_extra_frame_info): Update.
1668 (avr_frame_saved_pc): Update.
1669 * arm-tdep.c (arm_find_callers_reg): Update.
1670 (arm_init_extra_frame_info): Update.
1671 (arm_frame_saved_pc): Update.
1672
1673 2002-09-17 Tom Tromey <tromey@redhat.com>
1674
1675 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1676 is "'".
1677
1678 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1679
1680 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1681 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1682 NEXT_PROLOGUE_INSN.
1683 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1684 NEXT_PROLOGUE_INSN.
1685
1686 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1687
1688 * osfsolib.c: Remove file, replaced by solib-osf.c.
1689 * Makefile.in: Remove compilation rules for osfsolib.c.
1690
1691 2002-09-16 David Carlton <carlton@math.stanford.edu>
1692
1693 * cp-valprint.c (cp_print_class_method): Correct args to
1694 check_stub_method_group.
1695
1696 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1697
1698 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1699 `set architecture'. Unify naming convention of functions.
1700 (h8300_skip_prologue): Improve prologue analysis.
1701 (h8300_push_arguments): Rewritten to more closely match GCC's
1702 bizarre argument-passing behavior, along with the comment describing
1703 said behavior.
1704 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1705 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1706 sim, remote-e7000.c, remote-hms.c and remote.c
1707
1708 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1709
1710 * i386-tdep.c (gdb_print_insn_i386): Removed.
1711 (i386_print_insn): New function.
1712 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1713 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1714 tm_print_insn_info.
1715
1716 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1717
1718 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1719 zero.
1720
1721 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1722
1723 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1724 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1725 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1726
1727 2002-09-13 Christopher Faylor <cgf@redhat.com>
1728
1729 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1730
1731 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1732
1733 * gdbtypes.c (check_stub_method): Make static.
1734 (check_stub_method_group): New function.
1735 * gdbtypes.h: Update prototypes.
1736 * cp-support.c: New file.
1737 * cp-support.h: New file.
1738
1739 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1740 (update_method_name_from_physname): New function.
1741 (read_member_functions): Correct method names for operators
1742 and v3 constructors/destructors. Separate v2 constructors and
1743 destructors.
1744 * Makefile.in (stabsread.o): Update dependencies.
1745 (SFILES): Add cp-support.c.
1746 (COMMON_OBS): Add cp-support.o.
1747 (cp_support_h, cp-support.o): Add.
1748
1749 * cp-valprint.c (cp_print_class_method): Call
1750 check_stub_method_group instead of check_stub_method. Remove
1751 extraneous QUITs.
1752 * p-valprint.c (pascal_object_print_class_method): Likewise.
1753 * valops.c (search_struct_method): Likewise.
1754 (find_method_list, value_struct_elt_for_reference): Likewise.
1755
1756 2002-09-13 Andrew Cagney <cagney@redhat.com>
1757
1758 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1759 * gdbarch.h, gdbarch.c: Regenerate.
1760
1761 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1762
1763 * frame.c (find_saved_register): Delete function.
1764 * frame.h (find_saved_register): Delete declaration.
1765 Fix PR gdb/631.
1766
1767 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1768
1769 * mips-tdep.c (read_next_frame_reg): Re-hack using
1770 frame_register_unwind.
1771
1772 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1773
1774 * mips-tdep.c (mips_get_saved_register): Re-hack using
1775 frame_register_unwind.
1776
1777 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1778
1779 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1780 vector. Will be useful for Interix.
1781 * gdbarch.h, gdbarch.c: Regenerate.
1782
1783 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1784 name of the malloc function by NAME_OF_MALLOC.
1785
1786 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1787
1788 * value.h (find_function_in_inferior): Add const keyword to
1789 one of the parameters. Allows us to invoke this function with
1790 a const char *.
1791 * valops.c (find_function_in_inferior): Likewise.
1792
1793 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1794
1795 * exec.c (xfer_memory): Fix compilation warning with old versions
1796 of GCC.
1797 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1798
1799 2002-09-12 David Carlton <carlton@math.stanford.edu>
1800
1801 * symtab.h: Run through gdb_indent.h.
1802 Add 2002 to Copyright year list.
1803
1804 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1805
1806 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1807 mach constants.
1808 * MAINTAINERS: Add myself to write after approval list.
1809
1810 2002-09-11 J. Brobecker <brobecker@gnat.com>
1811
1812 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1813
1814 2002-09-11 J. Brobecker <brobecker@gnat.com>
1815
1816 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1817 Interix.
1818
1819 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1820
1821 * procfs.c (do_detach): Clear current signal, not just fault.
1822 Corrects problem with breakpoint trap signal leaking to detached
1823 process on Tru64.
1824
1825 2002-09-10 Michael Snyder <msnyder@redhat.com>
1826
1827 * buildsym.c (finish_block): Protect against null pointer.
1828
1829 2002-09-10 Andrew Cagney <cagney@redhat.com>
1830
1831 * infcmd.c (default_print_registers_info): Send all output to
1832 ``file'' instead of ``gdb_stdout''.
1833
1834 2002-09-10 Michael Snyder <msnyder@redhat.com>
1835
1836 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1837 LONGEST, and use signed register read (addresses are sign-
1838 extended for mips).
1839
1840 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1841
1842 * event-loop.c (gdb_do_one_event): Make public.
1843 * event-loop.h (gdb_do_one_event): Declare.
1844
1845 2002-09-10 Jeff Law <law@redhat.com>
1846
1847 * infttrace.c (child_resume): Simplify and rework to avoid
1848 TT_PROC_CONTINUE.
1849
1850 2002-09-09 Fred Fish <fnf@intrinsity.com>
1851
1852 * printcmd.c (print_scalar_formatted): "len" is the number of
1853 target bytes, NOT the number of target bits.
1854
1855 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1856
1857 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1858 * top.c (init_main): Set rl_terminal_name.
1859
1860 2002-09-08 Aidan Skinner <aidan@velvet.net>
1861
1862 * ada-lang.c (ada_array_bound, ada_type_match,
1863 _initialize_ada_language): Fix K&R definitions.
1864 * ada-tasks.c (get_current_task): Fix K&R definitions.
1865 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1866
1867 2002-09-07 Christopher Faylor <cgf@redhat.com>
1868
1869 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1870 Add XP.
1871
1872 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1873
1874 * i386-tdep.c (i386_register_virtual_type,
1875 i386_register_convertible, i386_register_convert_to_virtual,
1876 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1877 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1878 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1879 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1880 Don't set push_arguments twice.
1881
1882 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1883 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1884 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1885 sigtramp_end to NULL.
1886 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1887 defines.
1888 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1889
1890 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1891 whitespace.
1892
1893 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1894 * gdbarch.h, gdbarch.c: Re-generate.
1895 * blockframe.c (find_pc_sect_partial_function): Convert to use
1896 SIGTRAMP_START_P predicate.
1897
1898 2002-09-05 Michael Snyder <msnyder@redhat.com>
1899
1900 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1901 generic_dummy_frame method and old method. Also distinguish
1902 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1903 (arm_extract_return_value): Use new regcache method.
1904
1905 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1906 adjustment that doesn't conform to the ABI.
1907 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1908 saved regcache, not from current regcache.
1909
1910 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1911
1912 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1913 * README: Update.
1914
1915 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1916
1917 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1918 if arm_apcs_32 is false.
1919
1920 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1921
1922 GDB 5.3 branch created.
1923
1924 2002-09-03 Theodore A. Roth <troth@verinet.com>
1925
1926 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1927 generic_unwind_get_saved_register.
1928
1929 2002-09-03 David Carlton <carlton@math.stanford.edu>
1930
1931 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1932 argument (PR gdb/653). Update call to smash_to_method_type.
1933 (read_structure_scope): Update call to dwarf2_add_member_fn.
1934
1935 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1936
1937 * x86-64-linux-tdep.c: Include gdb_string.h
1938 * x86-64-linux-nat.c: Ditto.
1939
1940 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1941
1942 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1943 when YYDEBUG is set to 1.
1944 * c-exp.y: Likewise.
1945 * f-exp.y: Likewise.
1946 * jv-exp.y: Likewise.
1947 * m2-exp.y: Likewise.
1948 * p-exp.y: Likewise.
1949
1950 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1951
1952 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1953 dependency list.
1954 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1955 solib_svr4_fetch_link_map_offsets to
1956 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1957 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1958 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1959 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1960 solib-svr4.o, and solib-legacy.o.
1961 * config/i386/tm-nbsd.h: Include solib.h.
1962
1963 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1964
1965 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1966 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1967 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1968 comment noting that this needs its own target configuration.
1969 * config/i386/nbsd.mt: New file.
1970 * config/i386/nbsdaout.mt: Remove.
1971 * config/i386/nbsdelf.mt: Ditto.
1972 * config/i386/tm-nbsdaout.h: Ditto.
1973
1974 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1975
1976 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1977 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1978 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1979 tdep->sigtramp_end.
1980 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1981 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1982 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1983
1984 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1985
1986 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1987 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1988 * i386-tdep.h (i386bsd_init_abi): New prototype.
1989 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1990 function declaration.
1991 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1992 for NetBSD-a.out or NetBSD-ELF.
1993 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1994 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1995 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1996 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1997 and nbsd-tdep.h.
1998 (i386nbsd_pc_in_sigtramp): New function.
1999 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2000 i386nbsd_pc_in_sigtramp.
2001 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2002 and i386nbsdelf_init_abi OS ABI handlers.
2003 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2004 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2005
2006 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2007
2008 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2009 registers if the target really has them.
2010
2011 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2012
2013 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2014 than nbsd-tdep.h.
2015
2016 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2017
2018 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2019 list.
2020 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2021 (alphanbsd_skip_sigtramp_frame): New functions.
2022 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2023 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2024 to alphanbsd_sigcontext_addr.
2025
2026 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2027
2028 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2029 list.
2030 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2031 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2032 nbsd_pc_in_sigtramp.
2033 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2034 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2035 * nbsd-tdep.c: Include gdb_string.h.
2036 (nbsd_pc_in_sigtramp): New function.
2037 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2038 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2039 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2040 ppcnbsd_pc_in_sigtramp.
2041 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2042 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2043 shnbsd_pc_in_sigtramp.
2044 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2045 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2046 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2047
2048 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2049
2050 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2051 watchpoints to NULL.
2052 (insert_breakpoints): set val field of watchpoints if NULL.
2053
2054
2055 2002-08-29 Jim Blandy <jimb@redhat.com>
2056
2057 * symtab.c (lookup_symbol_aux): In the cases where we find a
2058 minimal symbol of an appropriate name and use its address to
2059 select a symtab to read and search, use `name' (as passed to us)
2060 as the demangled name when searching the symtab's global and
2061 static blocks, not the minsym's name.
2062
2063 2002-08-29 Keith Seitz <keiths@redhat.com>
2064
2065 * stack.c (print_frame_info_base): Always set current_source_symtab
2066 and current_source_line.
2067
2068 2002-08-29 Donn Terry <donnte@microsoft.com>
2069
2070 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2071
2072 2002-08-28 Keith Seitz <keiths@redhat.com>
2073
2074 * stack.c (select_frame): Add FIXME concerning selected-frame
2075 events.
2076 (select_frame_command): Send selected-frame-level-changed
2077 event notification, but only if the level actually changed.
2078 (up_silently_base): Add selected-frame-level-changed event
2079 notification.
2080 (down_silently_base): Likewise.
2081
2082 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2083
2084 * Makefile.in: Update dependencies for all gdb/*.c files.
2085
2086 2002-08-27 Tom Tromey <tromey@redhat.com>
2087
2088 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2089 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2090 Update dependencies.
2091 * i387-tdep.c: Include gdb_string.h.
2092 * osabi.c: Likewise.
2093 * i386-linux-nat.c: Likewise.
2094 * lin-lwp.c: Likewise.
2095 * ax-gdb.c: Likewise.
2096 * signals/signals.c: Likewise.
2097 * jv-valprint.c: Likewise.
2098 * p-lang.c: Likewise.
2099 * c-valprint.c: Likewise.
2100 * cp-abi.c: Likewise.
2101
2102 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2103
2104 * cli/cli-script.h (copy_command_lines): Export.
2105 * breakpoint.c: Include cli/cli-script.h.
2106 * Makefile.in (breakpoint.o): Update dependencies.
2107
2108 2002-08-26 Michael Snyder <msnyder@redhat.com>
2109
2110 * breakpoint.c (insert_breakpoints): Protect all references
2111 to 'process_warning'. Shorten long lines.
2112
2113 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2114
2115 * cli/cli-script.c (copy_command_lines): New function.
2116 * defs.h (copy_command_lines): Export.
2117 * testsuite/gdb.base/commands.exp: New tests for commands
2118 attached to a temporary breakpoint, and for commands that
2119 delete the breakpoint they are attached to.
2120
2121 2002-08-26 Michael Snyder <msnyder@redhat.com>
2122
2123 * breakpoint.c (bpstat_stop_status): Instead of copying the
2124 pointer to the breakpoint commands struct, make a new copy
2125 of the struct and point to that.
2126 (bpstat_clear): Free the commands struct.
2127 (bpstat_clear_actions): Free the commands struct.
2128 (bpstat_do_actions): Free the command actions. Also execute
2129 the local cleanups, instead of deleting them.
2130 (delete_breakpoint): Leave the commands field of the bpstat
2131 chain alone -- it will be freed later.
2132
2133 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2134
2135 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2136 deleted in 2002-08-20 commit. This function is still used by
2137 ppc-linux-nat.c.
2138
2139 2002-08-26 Keith Seitz <keiths@redhat.com>
2140
2141 * gdb-events.sh: Add selected-frame-level-changed event.
2142 * gdb-events.c: Regenerated.
2143 * gdb-events.h: Regenerated.
2144
2145 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2146
2147 Fix PR gdb/393:
2148 * inflow.c (terminal_save_ours): New function to save terminal
2149 settings.
2150 * inferior.h (terminal_save_ours): Declare.
2151 * target.c (debug_to_terminal_save_ours): New function.
2152 (cleanup_target): Defaults to_terminal_save_ours.
2153 (update_current_target): Inherit to_terminal_save_ours.
2154 (setup_target_debug): Set to_terminal_save_ours.
2155 * target.h (target_terminal_save_ours): New to save terminal settings.
2156 (target_ops): New member to_terminal_save_ours.
2157 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2158 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2159 * inftarg.c (init_child_ops): Likewise.
2160 * m3-nat.c (init_m3_ops): Likewise.
2161 * procfs.c (init_procfs_ops): Likewise.
2162 * wince.c (init_child_ops): Likewise.
2163 * win32-nat.c (init_child_ops): Likewise.
2164 * sol-thread.c (init_sol_thread_ops): Likewise.
2165
2166 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2167
2168 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2169 use regcache_* functions.
2170 (i386_gdbarch_init): Set store_return_value instead of
2171 deprecated_store_return_value.
2172
2173 * regcache.c (regcache_raw_write_signed,
2174 regcache_raw_write_unsigned): New functions.
2175 * regcache.h (regcache_raw_write_signed,
2176 regcache_raw_write_unsigned): New prototypes.
2177
2178 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2179
2180 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2181 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2182 source file dependencies. Cleanup corresponding generator rules.
2183
2184 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2185
2186 * regcache.h (register_offset_hack): Declare.
2187 (regcache_cooked_read_using_offset_hack): Declare.
2188 (regcache_cooked_write_using_offset_hack): Declare.
2189
2190 * regcache.c (register_offset_hack): New function.
2191 (regcache_cooked_read_using_offset_hack): New function.
2192 (regcache_cooked_write_using_offset_hack): New function.
2193 (regcache_dump): Check that the registers, according to their
2194 offset, are packed hard against each other.
2195 (cooked_xfer_using_offset_hack): New function.
2196
2197 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2198
2199 * regcache.c (struct regcache_descr): Add field register_type.
2200 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2201 in as a parameter
2202 (init_regcache_descr): Initialize register_type. Pass the descr
2203 to init_legacy_regcache_descr. Use register_type instead of
2204 REGISTER_VIRTUAL_TYPE.
2205 (register_type): New function.
2206 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2207 * regcache.h (register_type): Declare.
2208
2209 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2210
2211 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2212 instead of deprecated_store_return_value. Fix fallout from
2213 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2214
2215 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2216
2217 * regcache.c (max_register_size): New function.
2218 (init_legacy_regcache_descr): Ensure that max_register_size is
2219 large enough for REGISTER_VIRTUAL_SIZE.
2220 * regcache.h (max_register_size): Declare.
2221
2222 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2223
2224 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2225 store_return_value.
2226 (e500_extract_return_value): Change type of valbuf pointer to
2227 void.
2228
2229 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2230
2231 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2232 workaround.
2233
2234 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2235 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2236 long long) to prevent compiler warning on 64-bit systems.
2237
2238 2002-08-23 Andrew Cagney <cagney@redhat.com>
2239
2240 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2241 (DEPRECATED_STORE_RETURN_VALUE): New method.
2242 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2243 * gdbarch.h, gdbarch.c: Re-generate.
2244
2245 * values.c (set_return_value): Pass current_regcache to
2246 STORE_RETURN_VALUE.
2247 * arch-utils.h (legacy_store_return_value): Declare.
2248 * arch-utils.c (legacy_store_return_value): New function.
2249 (legacy_extract_return_value): Update parameters.
2250
2251 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2252 STORE_RETURN_VALUE.
2253 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2254 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2255 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2256 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2257 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2258 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2259 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2260 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2261 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2262 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2263
2264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2265 * i386-tdep.c (i386_extract_return_value): Update.
2266 * arch-utils.c (legacy_extract_return_value): Update.
2267 * frv-tdep.c (frv_gdbarch_init): Update.
2268 * cris-tdep.c (cris_gdbarch_init): Update.
2269 * d10v-tdep.c (d10v_gdbarch_init): Update.
2270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2271 * m68k-tdep.c (m68k_gdbarch_init): Update.
2272 * mcore-tdep.c (mcore_gdbarch_init): Update.
2273 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2274 * s390-tdep.c (s390_gdbarch_init): Update.
2275 * sparc-tdep.c (sparc_gdbarch_init): Update.
2276 * sh-tdep.c (sh_gdbarch_init): Update.
2277 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2278 * v850-tdep.c (v850_gdbarch_init): Update.
2279 * avr-tdep.c (avr_gdbarch_init): Update.
2280 * ia64-tdep.c (ia64_gdbarch_init): Update.
2281 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2282 * vax-tdep.c (vax_gdbarch_init): Update.
2283 * alpha-tdep.c (alpha_gdbarch_init): Update.
2284 * arm-tdep.c (arm_gdbarch_init): Update.
2285 * mips-tdep.c (mips_gdbarch_init): Update.
2286 * i386-tdep.c (i386_gdbarch_init): Update.
2287
2288 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2289
2290 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2291 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2292
2293 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2294
2295 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2296 problems.
2297
2298 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2299
2300 * infrun.c (handle_inferior_event): Move a comment outside of a
2301 function call, in order to avoid indent reformatting this part
2302 of the code in an unreadable way.
2303
2304 2002-08-23 Grace Sainsbury <graces@redhat.com>
2305
2306 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2307 when breakpoints fail. Move general breakpoint error messages to
2308 insert_breakpoints.
2309 * breakpoint.c (insert_breakpoints): Change warnings when
2310 breakpoints are nto inserted to specify the type. Remove call to
2311 memory_error when hardware breakpoints can't be inserted. Remove
2312 multiple calls to warning so all messages are sent to the user at
2313 once.
2314 (delete_breakpoints): Make insert error messsages more explicit.
2315
2316 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2317
2318 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2319 gdbserver/ChangeLog.
2320
2321 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2322
2323 * i386-tdep.c: Include "objfiles.h".
2324 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2325 skip_trampoline_code.
2326 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2327 (CPLUS_MARKER): Define to '.'.
2328
2329 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2330 member.
2331 (linux_corefile_thread_callback): Increase args->num_notes.
2332 (linux_make_note_section): Initialize thread_args.num_notes, and
2333 use it to determine whether notes for any threads were created.
2334
2335 2002-08-23 Donn Terry <donnte@microsoft.com>
2336
2337 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2338 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2339 and PCUNKILL.
2340 (write_with_trace): Conditionalize out the switch branch handling
2341 PCSHOLD if the corresponding macro is not defined. Likewise for
2342 PRSABORT and PRSTOP.
2343 This change will be needed by the Interix port.
2344
2345 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2346
2347 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2348 write_register wherever possible instead of manipulating the
2349 register bytes directly.
2350 Assign VALUE_CONTENTS to a variable and use that.
2351 The GPR numbers are now dependent on the architecture.
2352
2353 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2354
2355 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2356 ev_offset fields.
2357 (skip_prologue): Add support for BookE/e500 instructions.
2358 (e500_extract_return_value): New function.
2359 (frame_get_saved_regs): Add support for saving ev registers and
2360 pseudo gpr's.
2361 (e500_store_return_value): New function.
2362 (rs6000_gdbarch_init): Move up default intializations of
2363 deprecated_extract_return_value and store_return_value. Overwrite
2364 init of store_return_value with e500 specific version.
2365 Set extract_return_value for e500.
2366
2367 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2368
2369 * blockframe.c (generic_call_dummy_register_unwind): Use
2370 regcache_cooked_read to catch cases in which the variable is
2371 stored in a pseudo register.
2372
2373 2002-08-22 Andrew Cagney <cagney@redhat.com>
2374
2375 * NEWS: Mention that the i960 has been made obsolete.
2376 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2377 i960-tdep.c
2378 (remote-nrom.o): Obsolete target.
2379 (remote-nindy.o, i960-tdep.o): Ditto.
2380 * remote-nrom.c: Make file obsolete.
2381 * remote-nindy.c, remote-vx960.c: Ditto.
2382 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2383 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2384 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2385 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2386 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2387 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2388 i960-*-vxworks* obsolete.
2389 * MAINTAINERS: Note that the i960 is obsolete.
2390
2391 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2392
2393 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2394 detach to allow reinitialization.
2395
2396 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2397
2398 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2399 attempt).
2400
2401 2002-08-22 Jim Blandy <jimb@redhat.com>
2402
2403 * coffread.c (coff_symfile_read): Don't try to read the line
2404 number table from disk if the image file doesn't have a symbol
2405 table; we'll never actually look at the info anyway, and Windows
2406 ships DLL's with bogus file offsets for the line number data.
2407
2408 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2409
2410 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2411 an e500 executable.
2412
2413 2002-08-21 Michael Snyder <msnyder@redhat.com>
2414
2415 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2416 (MSYMBOL_SIZE): Replace macro with function.
2417 (DEFAULT_MIPS_TYPE): Delete unused macro.
2418 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2419 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2420
2421 2002-08-21 Jim Blandy <jimb@redhat.com>
2422
2423 * valops.c (value_cast): Simplify and correct logic for doing a
2424 static cast from a pointer to a base class to a pointer to a
2425 derived class.
2426
2427 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2428
2429 * infcmd.c (default_print_registers_info): Replace
2430 do_registers_info.
2431 (registers_info): Use gdbarch_print_registers_info instead of
2432 DO_REGISTERS_INFO.
2433 * inferior.h (default_print_registers_info): Replace
2434 do_registers_info.
2435 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2436 (DO_REGISTERS_INFO): Change to a predicate function.
2437 * gdbarch.h, gdbarch.c: Regenerate.
2438
2439 2002-08-21 Keith Seitz <keiths@redhat.com>
2440
2441 * gdb-events.sh: Add target-changed event.
2442 * gdb-events.c: Regenerated.
2443 * gdb-events.c: Regenerated.
2444 * valops.c (value_assign): Add target-changed event notification
2445 to inlval_register, lval_memory, and lval_reg_frame_relative.
2446
2447 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2448
2449 * NEWS: Add an entry regarding the improvement of the next/step
2450 operation on Alpha Tru64 multi-processor machines.
2451
2452 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2453
2454 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2455 directores.
2456 * Makefile.in: Update all _h macro definitions.
2457 * Makefile.in (install-gdbtk): Move to install section.
2458 (rdi-share/libangsd.a): Move to end of file.
2459
2460 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2461
2462 * frame.c (frame_register_unwind): When a register, set addrp to
2463 the register's byte.
2464
2465 2002-08-20 Michael Snyder <msnyder@redhat.com>
2466
2467 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2468 used locally, so move them from the target machine header to here.
2469 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2470 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2471 Make static.
2472 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2473
2474 2002-08-20 Andrew Cagney <cagney@redhat.com>
2475
2476 * NEWS: Mention that the Apollo line was made obsolete.
2477 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2478 m68*-hp-hpux* obsolete.
2479 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2480 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2481 * buildsym.c (make_blockvector): Make static.
2482 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2483 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2484 (ALLDEPFILES): Remove dstread.c.
2485 (dstread.o): Obsolete make rule.
2486 * dstread.c: Makefile obsolete.
2487 * dst.h: Ditto.
2488 * config/m68k/hp300hpux.mt: Ditto.
2489 * config/m68k/hp300hpux.mh: Ditto.
2490 * config/m68k/hp300bsd.mt: Ditto.
2491 * config/m68k/hp300bsd.mh: Ditto.
2492 * config/m68k/apollo68b.mt: Ditto.
2493 * config/m68k/apollo68v.mh: Ditto.
2494 * config/m68k/apollo68b.mh: Ditto.
2495
2496 2002-08-20 Michael Snyder <msnyder@redhat.com>
2497
2498 * mips-tdep.c (mips_in_return_stub): Make static.
2499 (mips_gdbarch_init): Set in_solib_return_trampoline.
2500 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2501
2502 2002-08-20 Michael Snyder <msnyder@redhat.com>
2503
2504 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2505 * gdbarch.c, gdbarch.h: Regenerate.
2506 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2507 Add.
2508 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2509
2510 2002-08-20 Michael Snyder <msnyder@redhat.com>
2511
2512 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2513 (mips_gdbarch_init): Set skip_trampoline_code,
2514 in_solib_call_trampoline.
2515 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2516 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2517
2518 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2519
2520 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2521
2522 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2523 vector type for ev registers.
2524 (e500_pseudo_register_read): New function.
2525 (e500_pseudo_register_write): New function.
2526 (e500_dwarf2_reg_to_regnum): New function.
2527 (PPC_UISA_NOFP_SPRS): New macro.
2528 (PPC_EV_REGS): New macro.
2529 (PPC_GPRS_PSEUDO_REGS): New macro.
2530 (registers_e500): New register set for e500.
2531 (variants): Add e500 variant.
2532 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2533 before setting architectural dependent variations. Initialize ev
2534 registers numbers. Add case for e500 architecture. Set the
2535 number of pseudo registers.
2536
2537 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2538
2539 * rs6000-tdep.c: Clean up comments.
2540
2541 2002-08-20 Andrew Cagney <cagney@redhat.com>
2542
2543 * h8300-tdep.c: Re-indent file.
2544
2545 2002-08-20 Jim Blandy <jimb@redhat.com>
2546
2547 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2548 default for this.
2549
2550 2002-08-20 Keith Seitz <keiths@redhat.com>
2551
2552 * breakpoints.c (watch_command_1): Use internal breakpoint
2553 when setting a watchpoint_scope breakpoint.
2554
2555 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2556
2557 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2558 (build_builtin_type_vec64i): Ditto.
2559 (build_builtin_type_vec128): Ditto.
2560 (build_builtin_type_vec128i): Ditto.
2561
2562 2002-08-19 Michael Snyder <msnyder@redhat.com>
2563
2564 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2565 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2566 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2567 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2568 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2569 CALL_DUMMY_ADDRESS): Delete.
2570 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2571 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2572 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2573 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2574 push_return_address.
2575 (mips_register_raw_size, mips_eabi_use_struct_convention,
2576 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2577 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2578 mips_init_extra_frame_info, mips_eabi_push_arguments,
2579 mips_n32n64_push_arguments, mips_push_return_address,
2580 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2581 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2582
2583 2002-08-19 Michael Snyder <msnyder@redhat.com>
2584
2585 * mips-tdep.c (mips_frame_num_args): New function.
2586 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2587 frame_saved_pc, frame_args_address, frame_locals_address,
2588 frame_num_args, and frame_args_skip.
2589 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2590 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2591 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2592 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2593
2594 2002-08-20 Michael Snyder <msnyder@redhat.com>
2595
2596 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2597 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2598 * mips-tdep.c (mips_store_struct_return): New function.
2599 (mips_extract_struct_value_address): New function.
2600 (mips_gdbarch_init): Set store_struct_return and
2601 extract_struct_value_address.
2602
2603 2002-08-20 David Carlton <carlton@math.stanford.edu>
2604
2605 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2606 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2607 (read_file_scope): Check that line_header is nonzero before
2608 decoding macro information.
2609
2610 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2611
2612 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2613 flag the general-purpose registers as floating-point on targets
2614 that don't support the floating-point registers.
2615
2616 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2617
2618 * rs6000-tdep.c (altivec_register_p): Delete.
2619 (rs6000_do_altivec_registers): Delete.
2620 (rs6000_altivec_registers_info): Delete.
2621 (rs6000_do_registers_info): Delete.
2622 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2623 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2624
2625 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2626
2627 * infcmd.c (do_registers_info): Print vector registers in hex
2628 format only.
2629 (print_vector_info): Check that printing registers
2630 makes sense.
2631 (print_float_info): Ditto.
2632
2633 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2634
2635 * mips-tdep.c (mips_gdbarch_init): Update.
2636 (mips_o32_extract_return_value): Rewrite.
2637 (mips_o32_store_return_value): Rewrite.
2638 (mips_o32_xfer_return_value): New function.
2639 (mips_xfer_register): Tweak debug print message. Allow for
2640 buf_offset when dumping the value transfered.
2641
2642 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2643
2644 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2645 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2646 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2647 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2648 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2649
2650 2002-08-14 Michael Snyder <msnyder@redhat.com>
2651
2652 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2653
2654 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2655
2656 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2657 register.
2658 (P): New macro to define a register as a pseudo register.
2659 (R, R4, R8, R16, FR32, R64, R0): Updated.
2660 (struct variant): Add new fields for number of pseudo registers
2661 and number of total registers.
2662 (tot_num_registers): New macro replacing....
2663 (num_registers): ...deleted macro.
2664 (num_registers): New function.
2665 (num_pseudo_registers): New function.
2666 (variants): Update all variants to intialize new fields correctly.
2667 Postpone initialization of number of pseudo regs and real regs.
2668 (init_variants): New function.
2669 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2670 registers offsets.
2671
2672 2002-08-19 David Carlton <carlton@math.stanford.edu>
2673
2674 * valops.c (search_struct_field): Change error message to treat
2675 return value of 0 from value_static_field as meaning that field is
2676 optimized out.
2677 (value_struct_elt_for_reference): Ditto.
2678 * values.c (value_static_field): Treat an unresolved location the
2679 same as a nonexistent symbol. Fix PR gdb/635.
2680 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2681 enclosed. Fix PR gdb/574.
2682 * MAINTAINERS: Add self to Write After Approval list.
2683
2684 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2685
2686 * mips-tdep.c (mips_xfer_register): New function.
2687 (mips_n32n64_extract_return_value): Rewrite.
2688 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2689 instead of deprecated_extract_return_value.
2690
2691 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2692
2693 * rs6000-tdep.c (TDEP): Delete macro.
2694 (branch_dest): Replace use of TDEP macro with its body.
2695 (rs6000_pop_frame): Ditto.
2696 (rs6000_push_arguments): Ditto.
2697 (rs6000_skip_trampoline_code): Ditto.
2698 (rs6000_frame_saved_pc): Ditto.
2699 (rs6000_frame_chain): Ditto.
2700 (rs6000_register_name): Ditto.
2701 (rs6000_register_byte): Ditto.
2702 (rs6000_register_raw_size): Ditto.
2703 (rs6000_register_virtual_type): Ditto.
2704 (rs6000_register_convertible): Ditto.
2705 (rs6000_convert_from_func_ptr_addr): Ditto.
2706
2707 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2708
2709 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2710 conditionally.
2711 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2712 MIPS_LINUX_JB_ELEMENT_SIZE.
2713 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2714 for MAX_REGISTER_RAW_SIZE arrays.
2715 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2716 MIPS_LINUX_JB_ELEMENT_SIZE.
2717
2718 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2719
2720 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2721
2722 2002-08-19 Aidan Skinner <aidan@velvet.net>
2723
2724 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2725 ada-valprint.c ada-tasks.c.
2726 (YYFILES): Add ada-exp.y.
2727 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2728 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2729 (ada-exp.tab.o): New target.
2730
2731 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2732
2733 * regcache.c (regcache_xfer_part): New function.
2734 (regcache_raw_read_part): New function.
2735 (regcache_raw_write_part): New function.
2736 (regcache_cooked_read_part): New function.
2737 (regcache_cooked_write_part): New function.
2738 * regcache.h (regcache_raw_read_part): Declare.
2739 (regcache_raw_write_part): Declare.
2740 (regcache_cooked_read_part): Declare.
2741 (regcache_cooked_write_part): Declare.
2742
2743 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2744
2745 * remote.c (remote_open_1): Add async_p.
2746 (remote_async_open_1): Delete.
2747 (open_remote_target): Delete.
2748 (remote_open, extended_remote_open): Update calls to remote_open_1.
2749 (remote_async_open, extended_remote_async_open): Call
2750 remote_open_1 instead of remote_async_open_1.
2751
2752 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2753
2754 * blockframe.c: Fix a few coding standard violations.
2755
2756 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2757
2758 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2759 here from ...
2760 * config/i386/tm-i386sco5.h: ... here. File removed.
2761 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2762
2763 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2764 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2765 (TM_FILE): Set to tm-i386.h.
2766 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2767 * config/i386/tm-i386v.h: Remove file.
2768 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2769 instead of "i386/tm-i386v.h".
2770 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2771 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2772 "i386/tm-i386v.h".
2773 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2774 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2775 "i386/tm-i386.h".
2776
2777 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2778
2779 * config/i386/nm-i386v.h: Add protection against
2780 multiple-inclusion.
2781 (i386_register_u_addr): Remove prototype.
2782 (register_u_addr): New prototype.
2783 (REGISTER_U_ADDR): Redefine accordingly.
2784 * i386v-nat.c: Improve several comments.
2785 (i386_register_u_addr): Change signature and rename to
2786 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2787 ubase variable.
2788
2789 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2790
2791 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2792 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2793 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2794 deprecated_extract_return_value.
2795 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2796 rename mips_o32o64_push_arguments.
2797 (mips_gdbarch_init): Update.
2798 (mips_extract_return_value): Delete.
2799 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2800 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2801 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2802 (mips_n32n64_extract_return_value): Clone
2803 mips_extract_return_value.
2804 (mips_store_return_value): Delete.
2805 (mips_o32_store_return_value): Clone mips_store_return_value.
2806 (mips_o64_store_return_value): Clone mips_store_return_value.
2807 (mips_eabi_store_return_value): Clone mips_store_return_value.
2808 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2809
2810 2002-08-18 Aidan Skinner <aidan@velvet.net>
2811
2812 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2813 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2814
2815 2002-08-18 Aidan Skinner <aidan@velvet.net>
2816
2817 * ada-lang.c: Run through gdb_indent.sh.
2818 * ada-lang.h: Run through gdb_indent.sh.
2819 * ada-tasks.c: Run through gdb_indent.sh.
2820 * ada-typeprint.c: Run through gdb_indent.sh.
2821 * ada-valprint.c: Run through gdb_indent.sh.
2822
2823 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2824
2825 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2826 ABI.
2827
2828 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2829
2830 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2831
2832 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2833 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2834
2835 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2836 write_register_gen instead of write_register_bytes.
2837
2838 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2839 i[3456]-*-osf1mk* configurations have been made obsolete.
2840 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2841 i[3456]86-*-osf1mk* hosts obsolete.
2842 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2843 targets obsolete.
2844 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2845 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2846 config/i386/i386m3.mt, config/i386/nm-m3.h,
2847 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2848 config/i386/i386mk.mh, config/i386/i386mk.mt,
2849 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2850 obsolete.
2851 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2852 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2853 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2854
2855 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2856
2857 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2858 (hppa_value_returned_from_stack): Declare.
2859 (hppa_extract_return_value): Declare.
2860 * config/pa/hppa.mt: New file.
2861 * configure.tgt: Recognize hppa*-*-*.
2862 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2863
2864 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2865
2866 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2867 comment.
2868
2869 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2870
2871 * top.c (gdb_rl_operate_and_get_next): Make sure
2872 operate-and-get-next functions correctly even when the history
2873 list is completely filled.
2874
2875 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2876
2877 * MAINTAINERS (Target Instruction Set Architectures): Rename
2878 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2879 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2880 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2881 already listed under Host/Native.
2882
2883 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2884 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2885 mips*-*-*.
2886
2887 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2888
2889 * config/ia64/ia64.mt: New file.
2890 * config/alpha/alpha.mt: New file.
2891 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2892 ia64-linux-gnu. Mention that ia64-elf is broken.
2893 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2894
2895 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2896
2897 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2898 generic_func_frame_valid instead of func_frame_valid.
2899
2900 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2901
2902 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2903 procfs appears to be broken when debugging on multi-processor
2904 machines. So enable software single stepping in order to avoid
2905 using the procfs interface to do next/step operations, using
2906 internal breakpoints instead.
2907
2908 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2909 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2910 make this pc address equal to the value it would have if the
2911 system stepping capability was used. Also set a new flag used
2912 to ensure that we don't readjust the PC one more time later.
2913
2914 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2915 address by DECR_PC_AFTER_BREAK when software single step is
2916 in use for this architecture, as this has already been taken
2917 care of in handle_inferior_event().
2918
2919 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2920
2921 * infrun.c (handle_inferior_event): Minor reformatting, to make
2922 a rather long condition expression easier to read.
2923
2924 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2925
2926 * Makefile.in (gdbtk.o): Move to end of file.
2927 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2928 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2929 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2930 (gdbtk-wrapper.o, gdbres.o): Ditto.
2931
2932 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2933
2934 * Makefile.in (copying.o): Separate out compile rule.
2935 (hpux-thread.o, procfs.o, signals.o): Ditto.
2936 (v850ice.o, z8k-tdep.o): Ditto.
2937 (tui-file.o): Move to TUI section.
2938 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2939 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2940
2941 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2942
2943 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2944 skip_trampoline_code, for better namespace-proofing.
2945
2946 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2947
2948 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2949
2950 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2951
2952 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2953
2954 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2955 signal, check whether we hit a breakpoint before checking for a
2956 single step breakpoint. Otherwise, GDB fails to notice that a
2957 breakpoint has been hit when stepping onto a breakpoint.
2958
2959 2002-08-16 Keith Seitz <keiths@redhat.com>
2960
2961 * gdb-events.sh (clear_gdb_event_hooks): New function.
2962 * gdb-events.c: Regenerate.
2963 * gdb-events.h: Regenerate.
2964
2965 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2966
2967 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2968 not_a_sw_breakpoint.
2969 * breakpoint.h (bpstat_stop_status): Add parameter names.
2970
2971 2002-08-16 Grace Sainsbury <graces@redhat.com>
2972
2973 * remote.c (remote_insert_hw_breakpoint)
2974 (remote_remove_hw_breakpoint): Fix calculation of length field
2975 for Z-packet.
2976
2977 2002-08-15 Michael Snyder <msnyder@redhat.com>
2978
2979 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2980 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2981 (supply_fpregset): Ditto.
2982
2983 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2984 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2985 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2986 (TARGET_READ_SP): Delete.
2987 (DO_REGISTERS_INFO): Delete.
2988 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2989 Delete.
2990 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2991 from macros to functions.
2992
2993 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2994 (mips_register_convertible, mips_register_convert_to_virtual,
2995 mips_register_convert_to_raw): Make static.
2996 (mips_read_sp): New function.
2997 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2998 (mips_do_registers_info): Make static.
2999 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3000 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3001 (mips_register_convert_from_type, mips_register_convert_to_type):
3002 New functions.
3003 (mips_gdbarch_init): Set up function_start_offset,
3004 register_virtual_size, pc_in_sigtramp.
3005
3006 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3007
3008 * infcmd.c (vector_info): New function.
3009 (_initialize_infcmd): Add command "info vector".
3010 (print_vector_info): New function.
3011
3012 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3013 * gdbarch.h, gdbarch.c: Regenerate.
3014
3015 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3016
3017 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3018 ``print_all''. Only print vector registers when ``print_all''.
3019
3020 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3021
3022 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3023 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3024
3025 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3026 Add `args' parameter.
3027 * gdbarch.h, gdbarch.c: Regenerate.
3028
3029 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3030
3031 * infcmd.c (float_info): Call print_float_info.
3032 (print_float_info): New function. By default, print the
3033 floating-point registers.
3034
3035 * arch-utils.h (default_print_float_info): Delete declaration.
3036 * arch-utils.c (default_print_float_info): Delete function.
3037
3038 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3039
3040 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3041 out define.
3042
3043 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3044 FRAME.
3045
3046 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3047 * configure.host: Make i[3456]86-*-aix host obsolete.
3048 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3049 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3050 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3051 config/i386/xm-i386aix.h: Make files obsolete.
3052 * i386aix-nat.c: Make file obsolete.
3053 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3054 (i386aix-nat.o): Make target obsolete.
3055
3056 * config/i386/nm-gnu.h: Removed.
3057 * config/i386/nm-i386gnu.h: New file.
3058 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3059 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3060 Moved here from ...
3061 * config/i386/tm-i386gnu.h: ... here. Removed.
3062 * config/i386/xm-i386gnu.h: Removed.
3063 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3064 (NAT_FILE): Set to nm-i386gnu.h.
3065 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3066 * i386-tdep.c: New file.
3067 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3068 (i386gnu-tdep.o): Specify dependencies.
3069
3070 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3071
3072 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3073 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3074 Adjust a few comments to reflect reality a bit closer.
3075 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3076 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3077 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3078 target_insert_watchpoint, target_remove_watchpoint):
3079 Move defines to ...
3080 * config/i386/nm-i386sco5.h: ... here.
3081 (kernel_u_size): Add prototype. Improve a few comments and add
3082 protection against multiple inclusion.
3083
3084 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3085 out define.
3086
3087 * uw-thread.c (SP_ARG0): Define if not already defined.
3088 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3089
3090 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3091
3092 * config/i386/tm-i386.h: Don't include "regcache.h".
3093
3094 * i387-tdep.h (i387_print_float_info): New prototype.
3095 * i387-tdep.c (print_i387_value, print_i387_ext,
3096 print_i387_status_word, print_i387_control_word): Add `struct
3097 ui_file *' argument and use it for output.
3098 (i387_print_float_info): Renamed from i387_float_info. Add
3099 `struct gdbarch *' and `struct ui_file *' arguments and use the
3100 latter for output.
3101 * i386-tdep.c: Include "i387-tdep.h".
3102 (i386_gdbarch_init): Set print_float_info.
3103 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3104 (FLOAT_INFO): Remove define.
3105
3106 2002-08-13 Michael Snyder <msnyder@redhat.com>
3107
3108 * mips-tdep.c (mips_push_arguments): Rename to
3109 mips_eabi_push_arguments, and tune for EABI.
3110 (MIPS_REGS_HAVE_HOME_P): Delete.
3111 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3112 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3113 Delete references to mips_regs_have_home_p.
3114
3115 2002-08-14 Keith Seitz <keiths@redhat.com>
3116
3117 * Makefile.in (install-gdbtk): Create insight plugin directory.
3118 Install plugins.tcl file.
3119
3120 2002-08-14 Keith Seitz <keiths@redhat.com>
3121
3122 * configure.in: Move SUBDIRS to near top of the file so that
3123 --enable options may add things to it.
3124 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3125 * configure: Regenerate.
3126
3127 2002-08-13 Michael Snyder <msnyder@redhat.com>
3128
3129 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3130 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3131 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3132
3133 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3134
3135 * vax-tdep.c (vax_get_saved_register): Delete function.
3136 (vax_gdbarch_init): Update.
3137 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3138 (ns32k_gdbarch_init): Update.
3139 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3140 (alpha_gdbarch_init): Update.
3141
3142 2002-08-13 Andrew Cagney <cagney@redhat.com>
3143
3144 * regcache.c (init_regcache_descr): Overallocate the
3145 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3146 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3147 nr_raw_registers.
3148 (set_register_cached): Add range checking assertions. Use
3149 current_regcache.
3150
3151 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3152
3153 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3154 numbers for MMX registers.
3155
3156 2002-08-13 Andrew Cagney <cagney@redhat.com>
3157
3158 * i386-tdep.c (i386_gdbarch_init): Use
3159 generic_unwind_get_saved_register.
3160
3161 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3162
3163 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3164 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3165 target vector.
3166 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3167 Delete. Add comment regarding this now-deleted target method.
3168
3169 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3170
3171 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3172 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3173 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3174 real PC and the page number (if it's within the memory bank window).
3175 (m68hc11_pseudo_register_write): Likewise when saving.
3176 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3177 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3178 (m68hc11_register_raw_size): And use 32-bit for it.
3179 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3180 16K memory bank is used by the prog; also use the virtual pc.
3181
3182 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3183
3184 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3185 (m68hc11_gdbarch_init): Install it in gdbarch.
3186 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3187 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3188 (MSYMBOL_SIZE): New for documentation.
3189 (insn_return_kind): Enum to specify how a function returns.
3190 (frame_extra_info): Cleanup and record the return mode.
3191 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3192 register in address computation.
3193 (m68hc11_get_return_insn): New to obtain the return instruction used
3194 by the function.
3195 (m68hc11_frame_init_saved_regs): Take into account the return
3196 instruction used by the function for far and interrupt functions.
3197 (m68hc11_init_extra_frame_info): Take into account page register.
3198 (m68hc11_frame_args_address): Adjust according to the return mode.
3199 (show_regs): Print page register only when it's used.
3200
3201 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3202
3203 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3204 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3205 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3206 registers.
3207 (m68hc11_register_raw_size): Likewise.
3208
3209 2002-08-13 Andrew Cagney <cagney@redhat.com>
3210
3211 * i386-tdep.c (i386_register_name): Handle mmx registers.
3212 (mmx_regnum_p): New function.
3213 (i386_mmx_names): New array.
3214 (mmx_num_regs): New variable.
3215 (i386_pseudo_register_read): New function.
3216 (i386_pseudo_register_write): New function.
3217 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3218
3219 * regcache.c (regcache_raw_read_unsigned): New function.
3220 (regcache_raw_read_signed): New function.
3221 * regcache.h (regcache_raw_read_unsigned): Declare.
3222 (regcache_raw_read_signed): Declare.
3223
3224 2002-08-13 Andrew Cagney <cagney@redhat.com>
3225
3226 * regcache.c (regcache_raw_read_as_address): Delete function.
3227 (regcache_cooked_read_signed): New function.
3228 (regcache_cooked_read_unsigned): New function.
3229 * regcache.h (regcache_cooked_read_signed): Declare.
3230 (regcache_cooked_read_unsigned): Declare.
3231 (regcache_raw_read_as_address): Delete declaration.
3232
3233 * blockframe.c (generic_read_register_dummy): Use
3234 regcache_cooked_read_unsigned.
3235 * i386-tdep.c (i386_extract_struct_value_address): Use
3236 regcache_cooked_read_unsigned.
3237
3238 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3239
3240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3241 double sizes according to ELF ABI flags.
3242 (gdbarch_tdep): Record elf_flags.
3243
3244 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3245
3246 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3247 (m6812_prolog): They can appear in 68HC12 function prologue.
3248 (m68hc11_frame_chain): Cleanup.
3249
3250 2002-08-12 Andrew Cagney <cagney@redhat.com>
3251
3252 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3253 declarations.
3254 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3255 (i386_linux_register_raw_size): Delete function.
3256 (i386_linux_init_abi): Update.
3257 * i386-tdep.c (i386_register_raw_size): Delete function.
3258 (i386_register_byte): Delete function.
3259 (i386_gdbarch_init): Update.
3260 (i386_register_size): Delete array.
3261 (i386_register_offset): Delete array.
3262
3263 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3264 (REGISTER_RAW_SIZE): Delete macro.
3265 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3266 (REGISTER_BYTE): Delete macro.
3267
3268 2002-08-11 Aidan Skinner <aidan@velvet.net>
3269
3270 * ada-lang.c (ada_lookup_partial_symbol)
3271 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3272 prototype names so that grep ^func works properly.
3273
3274 * ada-lang.c (ada_array_element_type)
3275 (ada_lookup_partial_symbol): Fix typos in parameter list.
3276
3277 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3278 Fix prototype names so that grep ^func works properly.
3279
3280 2002-08-10 Andrew Cagney <cagney@redhat.com>
3281 Elena Zannoni <ezannoni@redhat.com>
3282 Martin M. Hunt <hunt@redhat.com>
3283
3284 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3285 (build_builtin_type_vec128i): Set the vector bit.
3286 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3287 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3288 (build_builtin_type_vec64): New function.
3289 (build_builtin_type_vec64i): New function.
3290 (build_gdbtypes): Initialize builtin_type_vec64 and
3291 builtin_type_vec64i.
3292
3293 2002-08-09 Andrew Cagney <cagney@redhat.com>
3294
3295 * regcache.c (regcache_dump): Compare the register offset
3296 with REGISTER_BYTE.
3297 * arch-utils.c (generic_register_byte): New function.
3298 * arch-utils.h (generic_register_byte): Declare.
3299 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3300 * gdbarch.h, gdbarch.c: Regenerate.
3301
3302 2002-08-09 Andrew Cagney <cagney@redhat.com>
3303
3304 * regcache.c: Include "gdbcmd.h"
3305 (_initialize_regcache): Add commands "maintenance print
3306 registers", "maintenance print raw-registers" and "maintenance
3307 print cooked-registers".
3308 (enum regcache_dump_what): Define.
3309 (dump_endian_bytes): New function.
3310 (regcache_dump): New function.
3311 (regcache_print): New function.
3312 (maintenance_print_registers): New function.
3313 (maintenance_print_raw_registers): New function.
3314 (maintenance_print_cooked_registers): New function.
3315 * Makefile.in (regcache.o): Update dependencies.
3316
3317 2002-08-09 Michael Snyder <msnyder@redhat.com>
3318
3319 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3320 (mips_push_arguments): Correct some comments. Use paddr_nz
3321 for printing addresses in debug output. Replace static
3322 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3323 (mips_n32n64_push_arguments): New function, cloned from
3324 mips_push_arguments and tuned for the n32/n64 ABI.
3325 (mips_push_register): Buffer needs dynamic allocation.
3326 (mips_print_register): Ditto.
3327 (do_gp_register_row): Ditto.
3328 (mips_store_return_value): Ditto.
3329 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3330
3331 2002-08-09 Don Howard <dhoward@redhat.com>
3332
3333 * memattr.c (mem_info_command): Print special case of upper bound
3334 as max CORE_ADDR + 1.
3335
3336 2002-08-08 Michael Snyder <msnyder@redhat.com>
3337
3338 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3339 returns structs by ref if they're too big to fit in two registers.
3340
3341 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3342
3343 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3344 saved regs value.
3345 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3346 mips_find_saved_regs().
3347 (mips_pop_frame): Likewise.
3348
3349 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3350
3351 * blockframe.c (frame_saved_regs_register_unwind): Revise
3352 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3353 frames are in use.
3354
3355 2002-08-09 Grace Sainsbury <graces@redhat.com>
3356
3357 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3358 T-packets; the 'a' is not taken as a register number.
3359 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3360 (remote_stopped_data_address): New functions; add to target
3361 vector.
3362 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3363 prototypes to match other implementations of this
3364 function. replace integer argument with pointer -- the length
3365 field in the Z-packet is the length of what is pointed to or 1 if
3366 pointer is null. Add to target vector.
3367 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3368 target vector.
3369
3370 From Mark Salter:
3371 * remote.c (remote_wait): Add support to extract optional
3372 watchpoint information from T-packet. Ignore unrecognized
3373 optional info in T-packet.
3374 (remote_async_wait): Ditto.
3375
3376 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3377
3378 * cli/cli-dump.c: Change fopen modes to use binary open modes
3379 as defined in include/fopen-bin.h throughout.
3380
3381 2002-08-08 Michael Snyder <msnyder@redhat.com>
3382
3383 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3384
3385 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3386
3387 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3388 assertion failure by returning early after a warning.
3389
3390 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3391
3392 * mips-tdep.c (mips_find_saved_regs): Make static.
3393 (mips_frame_init_saved_regs): New function.
3394 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3395 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3396 (mips_find_saved_regs): Delete declaration.
3397
3398 2002-08-08 Grace Sainsbury <graces@redhat.com>
3399
3400 * remote.c (remote_wait, remote_async_wait): Change
3401 thread_num from int to ULONGEST.
3402 (unpack_varlen_hex): Change result parameter from
3403 int * to ULONGEST *.
3404
3405 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3406
3407 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3408 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3409 powerpc*-*-*.
3410 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3411
3412 2002-08-08 Andrew Cagney <cagney@redhat.com>
3413
3414 * gcore.c (override_derive_stack_segment): Delete variable.
3415 (preempt_derive_stack_segment): Delete function.
3416 (derive_stack_segment): Delete function.
3417 (default_derive_stack_segment): Renamed to derive_stack_segment.
3418 (override_derive_heap_segment): Delete variable.
3419 (preempt_derive_heap_segment): Delete function.
3420 (derive_heap_segment): Delete function.
3421 (default_derive_heap_segment): Rename to derive_heap_segment.
3422
3423 2002-08-06 Michael Snyder <msnyder@redhat.com>
3424
3425 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3426 * mips-tdep.c (mips_EABI_use_struct_convention,
3427 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3428 New functions. (mips_use_struct_convention): Delete.
3429 (mips_gdbarch_init): set use_gdbarch_convention.
3430
3431 2002-08-06 Michael Snyder <msnyder@redhat.com>
3432
3433 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3434 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3435 mips_o32_reg_struct_has_addr): New functions.
3436 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3437
3438 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3439
3440 * regcache.c (pseudo_register): Delete function.
3441 (fetch_register): Delete function.
3442 (store_register): Delete function.
3443 (regcache_raw_read, legacy_read_register_gen): Use
3444 target_fetch_registers instead of fetch_register.
3445 (legacy_write_register_gen, regcache_raw_write): Use
3446 target_store_register instead of store_register.
3447 (write_register_bytes): Ditto.
3448
3449 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3450 (STORE_PSEUDO_REGISTER): Delete.
3451 * gdbarch.h, gdbarch.c: Regenerate.
3452
3453 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3454
3455 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3456 write dump file binary.
3457
3458 2002-08-05 Michael Snyder <msnyder@redhat.com>
3459
3460 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3461 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3462 (mips_gdbarch_init): Set N32 target to be mips64.
3463
3464 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3465
3466 * frame.c (find_saved_register): Break out of loop once saved
3467 register address is found. Don't mention sparc in loop comment
3468 anymore.
3469
3470 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3471
3472 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3473 mips_default_saved_regsize to 8.
3474
3475 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3476
3477 * gcore.c: Do not include <sys/procfs.h>.
3478 * Makefile.in (gcore.o): Update dependencies.
3479
3480 2002-08-06 Andrew Cagney <cagney@redhat.com>
3481
3482 * configure.tgt: Make arc-*-* obsolete.
3483 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3484 * MAINTAINERS: Make arc-elf obsolete.
3485 * arc-tdep.c: Make file obsolete.
3486 * config/arc/arc.mt: Ditto.
3487 * config/arc/tm-arc.h: Ditto.
3488
3489 2002-08-05 Theodore A. Roth <troth@verinet.com>
3490
3491 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3492
3493 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3494
3495 * mcore-tdep.c (mcore_gdbarch_init): Use
3496 generic_unwind_get_saved_register instead of
3497 generic_get_saved_register.
3498 * v850-tdep.c (v850_gdbarch_init): Ditto.
3499 * frv-tdep.c (frv_gdbarch_init): Ditto.
3500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3501 * s390-tdep.c (s390_gdbarch_init): Ditto.
3502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3503 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3504 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3505
3506 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3507
3508 * objfiles.h: Add missing #include "symfile.h"
3509
3510 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3511
3512 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3513
3514 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3515 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3516 of FIELD_BITSIZE.
3517
3518 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3519
3520 * NEWS: Cleanup and nitpick.
3521
3522 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3523
3524 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3525
3526 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3527
3528 * Makefile.in (gdbtk-bp.o): Update dependencies.
3529 (gdbtk-register.o): Ditto.
3530 (gdbtk-varobj.o): Ditto.
3531
3532 2002-08-03 Andrew Cagney <cagney@redhat.com>
3533
3534 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3535 m68hc11_fetch_pseudo_register.
3536 (m68hc11_pseudo_register_write): Replace
3537 m68hc11_store_pseudo_register.
3538 (m68hc11_gdbarch_init): Update.
3539
3540 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3541
3542 * gdbarch.sh: Include "gdb_string.h".
3543 * gdbarch.c: Regenerate.
3544
3545 * regcache.c: Include "gdb_string.h".
3546 * ax-general.c: Ditto.
3547 * varobj.c: Ditto.
3548 * std-regs.c: Ditto.
3549 * fbsd-proc.c: Ditto.
3550 * thread.c: Ditto.
3551
3552 * Makefile.in (regcache.o): Update dependencies.
3553 (thread.o, gdbarch.o): Ditto.
3554 (ax-general.o, gdbarch.o): Ditto.
3555 (varobj.o, std-regs.o): Ditto.
3556 (fbsd-proc.o): Specify dependencies.
3557
3558 2002-08-02 Andrew Cagney <cagney@redhat.com>
3559
3560 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3561 regnum.
3562 (regcache_cooked_write): Ditto.
3563
3564 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3565
3566 * regcache.c (regcache_cooked_read): New function.
3567 (regcache_cooked_write): New function.
3568 (read_register_gen): Rewrite using regcache_cooked_read.
3569 (write_register_gen): Rewrite using regcache_cooked_write.
3570
3571 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3572 Declare.
3573
3574 2002-08-02 Andrew Cagney <cagney@redhat.com>
3575
3576 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3577 Replace the architecture methods register_read and register_write.
3578 * gdbarch.h, gdbarch.c: Regenerate.
3579 * regcache.c (init_regcache_descr): Update.
3580 (read_register_gen): Update.
3581 (write_register_gen): Update.
3582 (supply_register): Update comment.
3583
3584 * sh-tdep.c (sh_gdbarch_init): Update.
3585 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3586 `regcache' and `gdbarch' parameters. Make `buffer' a void
3587 pointer. Update code.
3588 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3589 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3590 void pointer. Update code.
3591 (sh64_register_write): Delete.
3592 (sh4_register_read): Delete.
3593 (sh64_register_read): Delete.
3594 (sh4_register_write): Delete.
3595 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3596 void pointer, `to' parameter a void pointer.
3597 (sh_sh64_register_convert_to_raw): Ditto.
3598
3599 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3600
3601 * mips-tdep.c (mips_register_virtual_type): Use architecture
3602 invariant return values.
3603
3604 2002-08-01 Andrew Cagney <cagney@redhat.com>
3605
3606 * linux-proc.c: Include "gdb_string.h".
3607 * Makefile.in (linux-proc.o): Update dependency list.
3608
3609 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3610
3611 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3612 comment.
3613
3614 2002-08-01 Grace Sainsbury <graces@redhat.com>
3615
3616 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3617 to_insert_watchpoint, to_remove_watchpoint,
3618 to_stopped_by_watchpoint, to_stopped_data_address,
3619 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3620 target vecctor. Define their corresponding macros so they call
3621 them.
3622
3623 * target.c: Add default and debug versions of for
3624 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3625 to_insert_watchpoint, to_remove_watchpoint,
3626 to_stopped_by_watchpoint, to_stopped_data_address,
3627 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3628
3629 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3630
3631 * mips-tdep.c (mips_register_virtual_type): New function.
3632 (mips_gdbarch_init): Register mips_register_virtual_type()
3633 with gdbarch machinery.
3634 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3635 this file instead of tm-bigmips.h.
3636 (MIPS_REGSIZE): Delete this macro.
3637 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3638 multiarch version in mips-tdep.c will be found.
3639
3640 2002-08-01 Andrew Cagney <cagney@redhat.com>
3641
3642 * NEWS: Menion that CHILL has been made obsolete.
3643
3644 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3645 * stabsread.c (read_range_type): Ditto.
3646 * gdbtypes.h: Ditto.
3647 * language.c (binop_type_check): Ditto.
3648 (binop_result_type): Ditto.
3649 (integral_type): Ditto.
3650 (character_type): Ditto.
3651 (string_type): Ditto.
3652 (boolean_type): Ditto.
3653 (structured_type): Ditto.
3654 (lang_bool_type): Ditto.
3655 (binop_type_check): Ditto.
3656 * language.h (_LANG_chill): Ditto.
3657 * dwarfread.c (set_cu_language): Ditto.
3658 * dwarfread.c (CHILL_PRODUCER): Ditto.
3659 * dwarfread.c (handle_producer): Ditto.
3660 * expression.h (enum exp_opcode): Ditto.
3661 * eval.c: Ditto for comments.
3662 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3663 * expprint.c (print_subexp): Ditto.
3664 (print_subexp): Ditto.
3665 * valops.c (value_cast): Ditto.
3666 (search_struct_field): Ditto.
3667 * value.h (COERCE_VARYING_ARRAY): Ditto.
3668 * symfile.c (init_filename_language_table): Ditto.
3669 (add_psymbol_with_dem_name_to_list): Ditto.
3670 * valarith.c (value_binop): Ditto.
3671 (value_neg): Ditto.
3672 * valops.c (value_slice): Ditto.
3673 * symtab.h (union language_specific): Ditto.
3674 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3675 (SYMBOL_DEMANGLED_NAME): Ditto.
3676 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3677 * defs.h (enum language): Ditto.
3678 * symtab.c (got_symtab): Ditto.
3679 * utils.c (fprintf_symbol_filtered): Ditto.
3680
3681 * ch-typeprint.c: Make file obsolete.
3682 * ch-valprint.c: Make file obsolete.
3683 * ch-lang.h: Make file obsolete.
3684 * ch-exp.c: Make file obsolete.
3685 * ch-lang.c: Make file obsolete.
3686
3687 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3688 CHILL_LIB.
3689 (TARGET_FLAGS_TO_PASS): Ditto.
3690 (CHILLFLAGS): Obsolete.
3691 (CHILL): Obsolete.
3692 (CHILL_FOR_TARGET): Obsolete.
3693 (CHILL_LIB): Obsolete.
3694 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3695 ch-valprint.c.
3696 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3697 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3698 ch-lang.o.
3699 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3700 targets.
3701
3702 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3703
3704 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3705 This does not change anything at the moment, but will be helpful
3706 later when full Ada support is integrated.
3707
3708 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3709
3710 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3711 help message.
3712
3713 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3714
3715 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3716 and save it in a local variable. Use variable in later test.
3717
3718 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3719
3720 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3721 test. (Thanks to Daniel Jacobowitz.)
3722
3723 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3724
3725 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3726 (mips_abi_strings): Add "n64".
3727 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3728
3729 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3730
3731 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3732 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3733
3734 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3735
3736 * utils.c (host_pointer_to_address, address_to_host_pointer):
3737 Use gdb_assert() instead of explicit call to internal_error().
3738
3739 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3740
3741 * Makefile.in (rs6000-nat.o): Update dependencies.
3742
3743 From Nicholas Duffek:
3744 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3745 (aix-thread.o): New rule.
3746 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3747 * config/powerpc/aix432.mh: New file.
3748
3749 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3750
3751 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3752 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3753 (fetch_core_registers, ppc_linux_supply_gregset)
3754 (ppc_linux_supply_fpregset): New functions.
3755 (ppc_linux_regset_core_fns): New.
3756 (_initialize_ppc_linux_tdep): Call add_core_fns.
3757 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3758 and ppc_linux_supply_gregset.
3759 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3760 (supply_fpregset): Call ppc_linux_supply_fpregset.
3761 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3762 corelow.o.
3763 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3764
3765 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * symtab.c (lookup_symbol): Demangle before lowercasing.
3768
3769 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3770
3771 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3772 declaration.
3773 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3774 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3775 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3776 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3777 "gdb_string.h".
3778 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3779 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3780 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3781 (avr-tdep.o, mon960-rom.o): Ditto.
3782 (aout_stabs_gnu_h): Define.
3783 (symtab_h): Remove $(gdb_obstack_h).
3784
3785 2002-07-30 Jim Blandy <jimb@redhat.com>
3786
3787 Patch from David Carlton <carlton@math.stanford.edu>:
3788 * gdbinit.in: Move the `dir' commands that add GDB's own source
3789 directory to the search path to the end, so that the `gdb' source
3790 directory will be searched first.
3791
3792 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3793
3794 * gdb_obstack.h: New file.
3795 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3796 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3797 * objfiles.h: Include "gdb_obstack.h".
3798 * Makefile.in (gdb_obstack_h): Define.
3799 (symtab_h): Add $(gdb_obstack_h).
3800 (objfiles_h): Add $(gdb_obstack_h).
3801
3802 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3803 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3804 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3805 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3806 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3807 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3808 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3809 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3810
3811 * Makefile.in (bcache.o): Update dependencies.
3812 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3813 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3814 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3815 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3816 (stabsread.o, symfile.o, symmisc.o): Ditto.
3817 (symtab.o, typeprint.o, macroexp.o): Ditto.
3818 (macrotab.o, mdebugread.o): Ditto.
3819 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3820 (coff_ecoff_h, aout_aout64_h): Define.
3821 (aout_stabs_gnu_h, libaout_h): Define.
3822
3823 2002-07-29 Andrew Cagney <cagney@redhat.com>
3824
3825 * regcache.c (struct regcache_descr): Rename nr_registers to
3826 nr_cooked_registers. Revise comments describing the structure
3827 member fields.
3828 (init_regcache_descr): Update.
3829 (init_legacy_regcache_descr): Update.
3830 (read_register_gen, write_register_gen): When a cooked register in
3831 the raw register range, directly access the value from the raw
3832 register cache.
3833
3834 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3835
3836 * z8k-tdep.c: Do not include "obstack.h".
3837 * h8300-tdep.c, h8500-tdep.c: Ditto.
3838 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3839 * valprint.c, v850-tdep.c: Ditto.
3840 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3841 * mn10200-tdep.c: Ditto.
3842
3843 * Makefile.in (z8k-tdep.o): Update dependencies.
3844 (m68hc11-tdep.o, valprint.o): Ditto.
3845 (v850-tdep.o, d10v-tdep.o): Ditto.
3846 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3847 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3848 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3849 (sh_opc_h, gdb_sim_sh_h): Define.
3850 (elf_sh_h, elf_bfd_h): Define.
3851 (opcode_m68hc11_h): Define.
3852 (OPCODES_SRC, OPCODES_DIR): define.
3853 (OPCODES): Use $(OPCODES_DIR).
3854 (gdb_sim_d10v_h): Rename sim_d10v_h.
3855 (gdb_sim_arm_h): Rename sim_arm_h.
3856
3857 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3858
3859 * utils.c (host_pointer_to_address, address_to_host_pointer):
3860 Change internal_error() message to indicate function responsible
3861 for the error.
3862
3863 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3864
3865 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3866 calls to local_hex_string_custom().
3867
3868 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3869
3870 * irix5-nat.c: Move IRIX shared library support from here...
3871 * solib-irix.c: ...to here. Revised substantially to work with
3872 generic solib framework.
3873
3874 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3875 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3876 * mips-irix-tdep.c: New file.
3877
3878 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3879 (mips-irix-tdep.o, solib-irix.o): New rules.
3880 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3881 solib-irix.o.
3882 * config/mips/irix6.mt (TDEPFILES): Likewise.
3883 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3884
3885 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3886
3887 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3888 disabled (via ``#if 0'') includes.
3889
3890 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3891
3892 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3893 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3894 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3895 Add support for the fpscr register.
3896 * rs6000-nat.c (regmap, fetch_inferior_registers)
3897 (store_inferior_registers, fetch_core_registers): Likewise.
3898
3899 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3900
3901 * rs6000-nat.c (language.h): Include.
3902 (special_regs): Delete this array.
3903 (regmap): New function.
3904 (fetch_register, store_register): Use regmap() to map gdb
3905 register numbers to ptrace register numbers. Also, use
3906 outputs from regmap() to make decisions regarding type of
3907 ptrace() call to make. In particular, don't compare against
3908 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3909 (fetch_inferior_registers, store_inferior_registers): Where
3910 possible, obtain register numbers from tdep struct. Don't
3911 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3912 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3913 (LAST_UISA_SP_REGNUM): Delete.
3914
3915 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3916
3917 * rs6000-nat.c (ppc-tdep.h): Include.
3918 (fetch_registers, store_register, fetch_core_registers): Don't
3919 access registers[] directly. Instead, use supply_register() or
3920 regcache_collect() as appropriate.
3921 (find_toc_address): Format hex address with local_hex_string().
3922
3923 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3924
3925 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3926 bfd/elf32-frv.c.
3927
3928 2002-07-24 Tom Tromey <tromey@redhat.com>
3929
3930 * jv-exp.y: Marked all strings with _().
3931 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3932 internal_error.
3933 (MethodInvocation, CastExpression, parse_number, yyerror,
3934 java_type_from_name, push_expression_name, yylex): Typo fixes.
3935
3936 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3937
3938 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3939 (tee_file_flush, tee_file_write, tee_file_fputs)
3940 (tee_file_isatty): New.
3941 * ui-file.h (tee_file_new): Add prototype.
3942
3943 2002-07-24 Aidan Skinner <aidan@velvet.net>
3944
3945 * ada-lang.c: Change k&r style function definitions to prototyped
3946 form.
3947 * ada-typeprint.c: Change k&r style function definitions to prototyped
3948 form.
3949 * ada-valprint.c: Change k&r style function definitions to prototyped
3950 form.
3951
3952 2002-07-24 Andrew Cagney <cagney@redhat.com>
3953
3954 * README: Remove reference to remote-bug.
3955 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3956 remote-bug.c.
3957 (m88k-nat.o): Delete rule.
3958 (m88k-tdep.o): Delete rule.
3959 (remote-bug.o): Delete rule.
3960 * MAINTAINERS: Mark as obsolete.
3961 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3962 * m88k-tdep.c: Make file obsolete.
3963 * config/m88k/m88k.mh: Ditto.
3964 * config/m88k/delta88v4.mh: Ditto.
3965 * config/m88k/delta88v4.mt: Ditto.
3966 * config/m88k/delta88.mt: Ditto.
3967 * config/m88k/delta88.mh: Ditto.
3968 * remote-bug.c: Ditto.
3969 * config/m88k/tm-delta88.h: Ditto.
3970 * config/m88k/nm-delta88v4.h: Ditto.
3971 * config/m88k/xm-delta88.h: Ditto.
3972 * config/m88k/xm-dgux.h: Ditto.
3973 * config/m88k/tm-m88k.h: Ditto.
3974 * config/m88k/nm-m88k.h: Ditto.
3975 * config/m88k/tm-delta88v4.h: Ditto.
3976 * m88k-nat.c: Ditto.
3977 * cxux-nat.c: Ditto.
3978 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3979 and m88*-*-* obsolete.
3980 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3981 m88*-*-* obsolete.
3982
3983 2002-07-24 Andrew Cagney <cagney@redhat.com>
3984
3985 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3986 constant. Same for local pointer variables.
3987 (extract_signed_integer): Ditto.
3988 * defs.h (extract_unsigned_integer): Update.
3989 (extract_signed_integer): Update.
3990
3991 2002-07-24 Andrew Cagney <cagney@redhat.com>
3992
3993 * regcache.c (regcache_raw_write): Change buf parameter to a
3994 constant void pointer.
3995 (regcache_raw_read): Change buf parameter to a void pointer.
3996 (legacy_write_register_gen): Change myaddr parameter a constant
3997 void pointer.
3998 (supply_register): Change val parameter to a const void pointer.
3999 * regcache.h (regcache_raw_write): Update declaration.
4000 (regcache_raw_read): Update declaration.
4001 (supply_register): Update declaration.
4002
4003 2002-07-24 Tom Tromey <tromey@redhat.com>
4004
4005 * defs.h (gdb_readline_wrapper): Declare.
4006 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4007 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4008 * top.c (gdb_readline_wrapper): New function.
4009 (command_line_input): Use it.
4010
4011 2002-07-24 Andrew Cagney <cagney@redhat.com>
4012
4013 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4014 regcache_read and regcache_write.
4015 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4016 * regcache.c: Update.
4017 * sh-tdep.c (sh64_push_arguments): Update comment.
4018 (sh_pseudo_register_read): Update.
4019 (sh_pseudo_register_write): Update.
4020 (sh4_register_read): Update.
4021 (sh4_register_write): Update.
4022 (sh64_pseudo_register_read): Update.
4023 (sh64_pseudo_register_write): Update.
4024 (sh64_register_read): Update.
4025 (sh64_register_write): Update.
4026 * i386-tdep.c (i386_extract_return_value): Update.
4027 (i386_extract_struct_value_address): Update.
4028 (i386_extract_return_value): Update.
4029 * blockframe.c (generic_read_register_dummy): Update.
4030 (generic_call_dummy_register_unwind): Update
4031 * infrun.c (write_inferior_status_register): Update.
4032
4033 2002-07-23 Jim Blandy <jimb@redhat.com>
4034
4035 * parser-defs.h (expression_context_pc): Make this extern.
4036 (Thanks to Michael Snyder.)
4037
4038 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4039
4040 GDB 5.2.1 released from 5.2 branch.
4041 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4042 * README: Update to mention 5.2.1.
4043
4044 2002-07-23 Mark Salter <msalter@redhat.com>
4045
4046 * remote.c (remote_read_bytes): Fix check for error.
4047
4048 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4049
4050 * aix-thread.c (language.h): Include.
4051 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4052 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4053 Print newlines at end of debug messages.
4054 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4055 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4056
4057 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4058
4059 * aix-thread.c (ppc-tdep.h): Include.
4060 (special_register_p): New function.
4061 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4062 (store_regs_user_thread): Use register number information from
4063 gdbarch_tdep struct instead of hardcoded offsets relative to
4064 FIRST_UISA_SP_REGNUM.
4065 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4066 special_register_p() instead of using FPLAST_REGNUM and
4067 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4068 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4069 will be MQ's register number.
4070
4071 2002-07-22 Michael Snyder <msnyder@redhat.com>
4072
4073 * aix-thread.c (ops): Rename to aix_thread_ops.
4074 (base_ops): Rename to base_target.
4075 (ops_attach): Rename to aix_thread_attach.
4076 (ops_detach): Rename to aix_thread_detach.
4077 (ops_resume): Rename to aix_thread_detach.
4078 (ops_wait): Rename to aix_thread_wait.
4079 (ops_kill): Rename to aix_thread_kill.
4080 (init_ops): Rename to init_aix_thread_ops.
4081 (ops_fetch_register): Rename to aix_thread_fetch_register.
4082 (ops_store_register): Rename to aix_thread_store_register.
4083 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4084 (ops_thread_alive): Rename to aix_thread_thread_alive.
4085 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4086 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4087 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4088 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4089 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4090 (store_regs_lib): Rename to store_regs_user_thread.
4091 (store_regs_kern): Rename to store_regs_kernel_thread.
4092
4093 2002-07-22 Michael Snyder <msnyder@redhat.com>
4094
4095 * aix-thread.c (ops_prepare_to_store): Eliminate.
4096 (init_ops): Don't initialize ops.prepare_to_store.
4097 (store_regs_kern): Pre-fetch register buffers from child,
4098 because some registers may not be in the cache. Copy
4099 regs from register cache only if they are cached.
4100 (store_regs_lib): Copy regs from register cache only
4101 if they are cached.
4102 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4103 fill_gprs64): Ditto.
4104
4105 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4106
4107 * aix-thread.c (gdb_assert.h): Include.
4108 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4109 register sizes (from register cache) match size of buffer holding
4110 register data.
4111 (fill_sprs32): Change parameter types to match those in the ptrace()
4112 buffer.
4113 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4114 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4115
4116 2002-07-22 Michael Snyder <msnyder@redhat.com>
4117
4118 * aix-thread.c (supply_sprs64): Cosmetic change.
4119 (supply_sprs32): Cosmetic change.
4120 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4121 (fill_sprs64): Use regcache_collect instead of read_register.
4122 (store_regs_lib): Use regcache_collect instead of
4123 read_register. Use fill_sprs32 instead of fill_sprs64,
4124 if debugging a 32-bit architecture.
4125 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4126 out of the register cache, instead of passing a pointer into
4127 the register cache directly to ptrace. Use regcache_collect
4128 insteaad of read_register.
4129 (ops_prepare_to_store): Use target_read_registers instead
4130 of read_register_bytes.
4131
4132 2002-07-20 Aidan Skinner <aidan@velvet.net>
4133
4134 * MAINTAINERS: Add self under write after approval.
4135
4136 2002-07-20 Aidan Skinner <aidan@velvet.net>
4137
4138 * ada-tasks.c: Change k&r style function definitions to prototyped
4139 form.
4140
4141 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4142
4143 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4144 * x86-64-tdep.c: Include "objfiles.h".
4145 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4146 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4147
4148 2002-07-17 Michal Ludvig <michal@suse.cz>
4149
4150 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4151 (update_context): Initialise cfa variable.
4152
4153 2002-07-17 Michael Snyder <msnyder@redhat.com>
4154
4155 * aix-thread.c: Shorten some long lines.
4156 Bring comments into line with code spec.
4157
4158 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4159
4160 * infrun.c: Re-indent using gdb_indent.sh.
4161
4162 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4163
4164 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4165 Leave the indentation temporarily untouched, to minimize the diffs.
4166
4167 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4168
4169 * stabsread.c: Make os9k sections of the code obsolete,
4170 for real this time.
4171 * stabsread.h: Make os9k sections of the code obsolete.
4172
4173 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4174
4175 * linux-low.c (regsets_store_inferior_registers): Add free()
4176 at the end of a loop to prevent memory leak.
4177 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4178 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4179 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4180 line a comment.
4181 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4182
4183 2002-07-17 Jim Blandy <jimb@redhat.com>
4184
4185 * macrocmd.c (info_macro_command): Remove newline from error
4186 message.
4187
4188 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4189
4190 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4191 (sh_gdbarch_init): Use it for sh-dsp.
4192
4193 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4194
4195 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4196 64-bit DWARF2 format.
4197
4198 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4199
4200 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4201 <sys/proc.h> when not available.
4202
4203 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4204
4205 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4206 * stabsread.c: Make os9k sections of the code obsolete.
4207 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4208 * config/i386/i386os9k.mt: Make file obsolete.
4209 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4210 (COMMON_OBS): Remove os9kread.o
4211 (SFILES): Remove os9kread.c.
4212 (os9kread.o, remote-os9k.o): Make target obsolete.
4213 * remote-os9k.c: Make file obsolete.
4214 * os9kread.c: Make file obsolete.
4215 * Makefile.in
4216
4217 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4218
4219 * NEWS: Mention that the FR30 has been made obsolete.
4220 * fr30-tdep.c: Make file obsolete.
4221 * config/fr30/tm-fr30.h: Ditto.
4222 * config/fr30/fr30.mt: Ditto.
4223 * configure.tgt: Make fr30-*-elf obsolete.
4224 * MAINTAINERS: Make fr30-elf obsolete.
4225
4226 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4227
4228 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4229 found is not inside a section.
4230
4231 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4232
4233 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4234 strerror().
4235 (pdc_realloc): Use xrealloc() instead of realloc().
4236
4237 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4238
4239 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4240 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4241 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4242 macros.
4243
4244 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4245
4246 * aix-thread.c (ptrace_check): Eliminate goto.
4247 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4248 problem.
4249
4250 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4251
4252 * aix-thread.c (gdbcmd.h): Include.
4253 (DEBUG, DBG, DBG2, dbg): Eliminate.
4254 (debug_aix_thread): New static global.
4255 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4256 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4257 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4258 invocations to DBG and DBG2 macros to test against
4259 ``debug_aix_thread'' and call fprintf_unfiltered().
4260 (_initialize_aix_thread): Add new command "set debug aix-thread".
4261
4262 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4263
4264 From Gerhard Tonn <TON@de.ibm.com>:
4265 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4266 instead of supply_register.
4267
4268 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4269
4270 * dwarf2cfi.c: Include "gdb_assert.h".
4271 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4272 non-NULL.
4273 (update_context): Do not use __func__. Add missing ``break''.
4274 (update_context): Do not use __func__.
4275
4276 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4277
4278 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4279 and its setting. Set gdbarch instruction printing functions
4280 directly. For non-rs6000 case use new function
4281 gdb_print_insn_powerpc.
4282 (gdb_print_insn_powerpc): New function.
4283
4284 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4285
4286 * NEWS: Mention that the d30v has been marked obsolete.
4287 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4288 * configure.tgt: Mark d30v-*-* as obsolete.
4289 * d30v-tdep.c: Mark file as obsolete.
4290 * config/d30v/d30v.mt: Ditto.
4291 * config/d30v/tm-d30v.h: Ditto.
4292
4293 2002-07-13 Aidan Skinner <aidan@velvet.net>
4294
4295 * ada-tasks.c (add_task_entry): replace calls to
4296 malloc() with xmalloc
4297 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4298
4299 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4300 ada_finish_decode_line_1, all_sals_for_line
4301 ada_breakpoint_rewrite): replace calls to free() with xfree()
4302
4303 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4304
4305 From Nicholas Duffek (with minor changes by Martin Hunt,
4306 Louis Hamilton, and Kevin Buettner):
4307 * aix-thread.c: New file.
4308
4309 2002-07-12 Petr Sorfa <petrs@caldera.com>
4310
4311 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4312 complaint for invalid attribute class or form.
4313 (read_func_scope): DW_AT_frame_base
4314 better handling of DW_AT_block*.
4315 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4316 better handling of DW_AT_block*.
4317 (read_common_block): DW_AT_location
4318 better handling of DW_AT_block*.
4319 (read_partial_die): DW_AT_location better handling
4320 of DW_AT_block*.
4321 (new_symbol): DW_AT_external better handling of
4322 DW_AT_block*. Proper initialization of variable
4323 "addr".
4324 (attr_form_is_block): New function that returns true
4325 if the attribute's form is of DW_FORM_block*.
4326
4327 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4328
4329 * valops.c (find_method_list): Remove comment about
4330 removed STATIC_MEMFUNCP argument.
4331 (value_find_oload_method_list): Likewise.
4332
4333 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4334
4335 From Nicholas Duffek:
4336 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4337 target_new_objfile_hook.
4338
4339 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4340
4341 From Nicholas Duffek:
4342 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4343 csect.
4344
4345 2002-07-12 Andrew Cagney <cagney@redhat.com>
4346
4347 * MAINTAINERS: Mention --enable-sim-build-warnings.
4348 (m68hc11-elf): Disable sim build warnings.
4349 (m32r-elf): Mark as broken obsolete candidate.
4350 (x86_64-linux-gnu): Mark as buildable with -Werror.
4351 (arm-elf): Change -w to ``,'' which enables warnings but not
4352 -Werror.
4353
4354 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4355
4356 * bcache.h: Update copyright.
4357 (struct bstring, struct bcache): Move definition to "bcache.c".
4358 Replaced by opaque declaration.
4359 (bcache_xfree): Replace free_bcache.
4360 (bcache_xmalloc, bcache_memory_used): Declare.
4361
4362 * bcache.c: Update copyright.
4363 (struct bstring, struct bcache): Moved to here from "bcache.h".
4364 Update comments.
4365 (bcache_xmalloc, bcache_memory_used): New functions.
4366 (bcache_xfree): Replace function free_bcache.
4367
4368 * Makefile.in (objfiles.o): Add $(bcache_h).
4369 (objfiles_h): Remove $(bcache_h).
4370 (symfile.o): Add $(bcache_h).
4371
4372 * symmisc.c: Update copyright.
4373 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4374 (print_objfile_statistics): Use bcache_memory_used.
4375
4376 * symfile.c: Include "bcache.h".
4377 (reread_symbols): Use bcache_xfree.
4378 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4379 (add_psymbol_to_list): Pass psymbol_cache by value.
4380 (add_psymbol_with_dem_name_to_list): Ditto.
4381
4382 * objfiles.h: Update copyright.
4383 (struct bcache): Declare opaque. Do not include "bcache.h".
4384 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4385 bcache'' pointers.
4386 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4387
4388 * objfiles.c: Include "bcache.h". Update copyright.
4389 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4390 macro_cache.
4391 (free_objfile): Use bcache_xfree.
4392
4393 2002-07-11 Grace Sainsbury <graces@redhat.com>
4394
4395 * monitor.c (monitor_fetch_register): Make name a constant.
4396 (monitor_store_register): Same.
4397
4398 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4399
4400 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4401 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4402 (finish_block) For non-function blocks, hash the symbol table. For
4403 function blocks, mark the symbol table as unhashed.
4404 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4405 (msymbol_hash_iw): Likewise.
4406 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4407 value.
4408 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4409 (lookup_minimal_symbol): Likewise for both.
4410 * symtab.h (struct block): Add `hashtable' flag. Comment the
4411 hashtable.
4412 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4413 (ALL_BLOCK_SYMBOLS): Update.
4414 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4415 (struct symbol): Add `hash_next' pointer.
4416 * symtab.c (lookup_block_symbol): Search using the hash table when
4417 possible.
4418 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4419 (search_symbols, find_addr_symbol): Likewise.
4420
4421 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4422 (read_dst_symtab): Likewise.
4423 * jv-lang.c (get_java_class_symtab): Likewise.
4424 * mdebugread.c: Include "gdb_assert.h".
4425 (shrink_block): Assert that the block being modified is not hashed.
4426 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4427 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4428 symbols.
4429 (dump_symtab): Recognize hashed blocks.
4430 * printcmd.c (print_frame_args): Assert that function blocks do not
4431 have hashed symbol tables.
4432 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4433 (fill_in_ada_prototype, debug_print_block): Likewise.
4434 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4435
4436 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4437
4438 * stack.c (print_frame): Use result of frame_address_in_block()
4439 instead of fi->pc when evaluating symbols.
4440 (backtrace_command_1): Ditto.
4441
4442 2002-07-11 Andrew Cagney <cagney@redhat.com>
4443
4444 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4445 Make static.
4446
4447 * arm-tdep.c (arm_register_name): Make return type constant.
4448
4449 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4450
4451 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4452 prototype.
4453 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4454 * s390-tdep.c (s390_fp_regnum): Ditto.
4455 (s390_read_fp): Ditto.
4456 (s390_pop_frame): Ditto.
4457 (_initialize_s390_tdep): Ditto.
4458 * remote.c (get_remote_state): Ditto.
4459 * procfs.c (mappingflags): Ditto.
4460 * memattr.c (_initialize_mem): Ditto.
4461 * mcore-tdep.c (mcore_pop_frame): Ditto.
4462 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4463 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4464 * language.c (set_case_str): Ditto.
4465 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4466 * frv-tdep.c (new_variant): Ditto.
4467 (frv_stopped_data_address): Ditto.
4468 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4469 (context_alloc): Ditto.
4470 (frame_state_alloc): Ditto.
4471 (unwind_tmp_obstack_init): Ditto.
4472 (unwind_tmp_obstack_free): Ditto.
4473 (cfi_read_fp): Ditto.
4474 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4475 (cris_pop_frame): Ditto.
4476 * c-lang.c (scanning_macro_expansion): Ditto.
4477 (finished_macro_expansion): Ditto.
4478 (c_preprocess_and_parse): Ditto.
4479 * gdbarch.sh: Ditto.
4480 * gdbarch.h, gdbarch.c: Regenerate.
4481 * config/mn10200/tm-mn10200.h: Adjust indentation.
4482 * target.c: Adjust indentation.
4483 * symtab.h: Adjust indentation.
4484 * stabsread.h: Adjust indentation.
4485 * remote-es.c: Adjust indentation.
4486 * os9kread.c: Adjust indentation.
4487
4488 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4489
4490 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4491 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4492
4493 2002-07-10 Grace Sainsbury <graces@redhat.com>
4494
4495 * NEWS: Mention m68k, mcore multi-arching.
4496 * MAINTAINERS: Change status of m68k, mcore to reflect
4497 multi-arching.
4498
4499 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4500
4501 * valops.c (find_overload_match): Free oload_syms.
4502
4503 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4504
4505 Define HAVE_SYS_PROC_H if sys/proc.h exists
4506 * configure.in: Add check for sys/proc.h
4507 * config.in: Regenerate.
4508 * configure: Regenerate.
4509
4510 2002-07-09 Grace Sainsbury <graces@redhat.com>
4511
4512 * config/m68k/tm-m68k.h: Remove macros wrapped in
4513 #if !GDB_MULTI_ARCH.
4514
4515 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4516
4517 * config.in, configure: Regenerate.
4518
4519 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4520
4521 * dwarf2cfi.c: Include "gcore.h".
4522 (execute_stack_op): Fix implementation of the
4523 DW_OP_deref and DW_OP_deref_size operators by letting do their
4524 lookup in the target.
4525
4526 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4527
4528 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4529 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4530 tdep->sc_sp_offset.
4531
4532 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4533
4534 Fix PR gdb/595, gdb/602
4535 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4536 Don't call value_cast, just read the vtable pointer; update comments
4537 to match.
4538
4539 2002-07-05 Grace Sainsbury <graces@redhat.com>
4540
4541 * config/mcore/tm-mcore.h: Remove file.
4542 * config/mcore/mcore.mt: Remove definition of TM_FILE
4543 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4544
4545 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4546
4547 * i386bsd-tdep.c: Include "gdb_string.h".
4548
4549 2002-07-04 Grace Sainsbury <graces@redhat.com>
4550
4551 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4552 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4553 mcore-tdep.
4554 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4555 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4556 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4557 (RETVAL_REGNUM): Move macros from tm-mcore.h
4558 (mcore_reg_struct_has_addr): New function.
4559 (mcore_gdbarch_init): Added initializations for the macros removed
4560 from tm-mcore.h.
4561
4562 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4563
4564 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4565 traditonal string branding within the ELF header.
4566
4567 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4568
4569 * symtab.c (remove_params): New function.
4570 (make_symbol_overload_list): Use it instead of cplus_demangle.
4571 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4572
4573 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4574
4575 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4576
4577 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4578 New variables.
4579 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4580 and tdep->sigtramp_end.
4581 * i386obsd-nat.c: New file.
4582 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4583
4584 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4585 Don't call get_current_frame().
4586
4587 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4588
4589 * i386-nat.c (child_post_startup_inferior): New function
4590 calling i386_cleanup_dregs if
4591 I386_USE_GENERIC_WATCHPOINTS is defined.
4592 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4593 conditional to acknowledge that i386-nat.c has its
4594 own child_post_startup_inferior function.
4595
4596 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4597
4598 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4599 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4600 instead of MAX_REGISTER_RAW_SIZE.
4601 (i386_extract_return_value, i386_extract_struct_value_address):
4602 Convert to use regcache.
4603 (i386_gdbarch_init): Set max_register_raw_size and
4604 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4605 Set extract_return_value and extract_struct_value_address instead
4606 of their deprecated variants.
4607
4608 Convert i386 target to generic dummy frames.
4609 * i386-tdep.c: Include "symfile.h".
4610 (i386_frameless_signal_p): Consider a function to be frameless if
4611 the pc points at the first instruction of the function.
4612 (i386_frame_chain): Handle (generic) call dummies.
4613 (i386_frame_saved_pc): Likewise.
4614 (i386_frame_init_saved_regs): Remove code dealing with call
4615 dummies on the stack.
4616 (i386_push_dummy_frame): Removed.
4617 (i386_call_dummy_words): Removed.
4618 (i386_fix_call_dummy): Removed.
4619 (i386_push_return_address): New function.
4620 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4621 parameter, and don't call get_current_frame.
4622 (i386_pop_frame): New function.
4623 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4624 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4625 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4626 call_dummy_length to 0, set call_dummy_words to NULL, set
4627 sizeof_call_dummy_words to 0, set fix_call_dummy to
4628 generic_fix_call_dummy, set pc_in_call_dummy to
4629 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4630 generic_push_dummy_frame, set push_return_address to
4631 i386_push_return_address and set frame_chain_valid to
4632 generic_file_frame_chain_valid.
4633
4634 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4635
4636 * gdbarch.sh (struct regcache): Add opaque declaration.
4637 (EXTRACT_RETURN_VALUE): New architecture method.
4638 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4639 * gdbarch.h, gdbarch.c: Regenerate.
4640 * arch-utils.c (legacy_extract_return_value): New function.
4641 * arch-utils.h (legacy_extract_return_value): Declare.
4642 * values.c (value_being_returned): Re-enable code handling
4643 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4644 deprecated_grub_regcache_for_registers call to block handling
4645 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4646 (EXTRACT_RETURN_VALUE): Do not define.
4647
4648 2002-07-03 Grace Sainsbury <graces@redhat.com>
4649
4650 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4651 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4652 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4653 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4654 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4655 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4656 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4657 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4658 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4659 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4660 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4661 argument so the function fits the prototype in the architecture
4662 vector.
4663 (mcore_pop_frame): Remove argument so the function fits the
4664 prototype. Use get_current_frame instead of the argument.
4665 (mcore_push_arguments): Change type of struct_return so the
4666 function can be used in the architecture vector.
4667 (mcore_store_struct_return): Add.
4668 (mcore_frame_init_saved_regs): Add.
4669 (mcore_gdbarch_init): Add function calls to replace the macros
4670 removed from tm-mcore.h
4671
4672 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4673
4674 * infcmd.c (print_return_value): Remove compatibility code calling
4675 deprecated_grub_regcache_for_registers.
4676
4677 * values.c: Include "regcache.h".
4678 (value_being_returned): Update. Use
4679 deprecated_grub_regcache_for_registers to extract the register
4680 buffer address.
4681 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4682 ``struct regcache''.
4683 * Makefile.in (values.o): Add dependency on $(regcache_h).
4684
4685 * inferior.h (run_stack_dummy): Change type of second parameter to
4686 a ``struct regcache''.
4687 * valops.c (hand_function_call): Change type of retbuf to ``struct
4688 regcache''. Allocate using regcache_xmalloc, clean using
4689 make_cleanup_regcache_xfree.
4690 * infcmd.c (run_stack_dummy): Update. Use
4691 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4692
4693 * regcache.c (do_regcache_xfree): New function.
4694 (make_cleanup_regcache_xfree): New function.
4695 * regcache.h (make_cleanup_regcache_xfree): Declare.
4696
4697 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4698
4699 * event-top.c (command_line_handler): Don't read past
4700 beginning of buffer.
4701
4702 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4703
4704 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4705 struct frame_id.
4706 (varobj_create): Store frame_id for root.
4707 (varobj_gen_name): Use xasprintf.
4708 (varobj_update): Save and restore frame using get_frame_id() and
4709 frame_find_by_id().
4710 (create_child): Use xasprintf.
4711 (new_root_variable): Initialize frame_id.
4712 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4713 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4714 to prevent memory leak.
4715
4716 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4717
4718 * valops.c (hand_function_call): Move declaration of retbuf to
4719 start of function, allocate using malloc, add a cleanup but before
4720 the inf_status cleanup, cleanup the buffer. Rename local variable
4721 old_chain to inf_status_cleanup.
4722
4723 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4724
4725 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4726
4727 * cli/cli-decode.c (cmd_func_p): New function.
4728 (cmd_func): New function.
4729
4730 * command.h: Add cmd_func() and cmd_func_p().
4731
4732 2002-07-03 Grace Sainsbury <graces@redhat.com>
4733
4734 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4735 (REGISTER_SIZE): Remove.
4736 (MAX_REGISTER_RAW_SIZE): Remove.
4737 (REGISTER_VIRTUAL_TYPE): Remove.
4738 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4739 (REGISTER_NAME): Remove.
4740 (USE_GENERIC_DUMMY_FRAMES): Remove.
4741 (CALL_DUMMY): Remove.
4742 (CALL_DUMMY_START_OFFSET): Remove.
4743 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4744 (CALL_DUMMY_LOCATION): Remove.
4745 (FIX_CALL_DUMMY): Remove.
4746 (CALL_DUMMY_ADDRESS): Remove.
4747 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4748 (SAVE_DUMMY_FRAME_TOS): Remove.
4749 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4750 (mcore_register_virtual_type): New function.
4751 (mcore_register_byte): New function.
4752 (mcore_register_size): New function.
4753 (mcore_register_name): New function.
4754 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4755 macros removed from tm-mcore.h.
4756 (mcore_dump_tdep): Add.
4757 (_initialize_mcore_tdep): Add gdbarch_register call.
4758
4759 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4760
4761 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4762 frameless_look_for_prologue, such that we actually call this
4763 function.
4764
4765 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4766
4767 * frame.h (frame_address_in_block): New function.
4768
4769 * blockframe.c (frame_address_in_block): New function extracted
4770 from get_frame_block().
4771 (get_frame_block): Use frame_address_in_block().
4772 (block_innermost_frame): Use frame_address_in_block() to match
4773 the frame pc address against the block boundaries rather than
4774 the frame pc directly. This prevents a failure when a frame pc
4775 is actually a return-address pointing immediately after the end
4776 of the given block.
4777
4778 2002-07-02 Grace Sainsbury <graces@redhat.com>
4779
4780 * MAINTAINERS: Add self under write after approval.
4781
4782 2002-07-02 Grace Sainsbury <graces@redhat.com>
4783
4784 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4785 used in architecture vector. The default is
4786 m68k_local_breakpoint_from_pc.
4787 (m68k_local_breakpoint_from_pc): Add.
4788 (enum): Add register numbers from tm-m68k.h.
4789 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4790 vector.
4791 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4792 GDB_MULTI_ARCH_PARTIAL.
4793 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4794 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4795 m68k-tdep.c.
4796 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4797 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4798 to enum in m68k-tdep.c
4799
4800 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4801
4802 * solib-osf.c (open_map): Compute the list of shared libraries
4803 loaded by the inferior, rather than the list of libraries loaded
4804 by GDB itself. Otherwise, GDB ends up reading the symbols from
4805 the wrong shared libraries...
4806
4807 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4808
4809 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4810 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4811 macros.
4812 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4813 Remove functions.
4814 (FRAMELESS_SIGNAL): Remove function.
4815 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4816 i386_linux_saved_pc_after_call): Removed.
4817 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4818 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4819 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4820
4821 * i386-tdep.c (i386_frameless_signal_p): New function.
4822 (i386_frame_chain): Deal with frameless signals.
4823 (i386_sigtramp_saved_sp): New function.
4824 (i386_frame_saved_pc): Deal with frameless signals.
4825 (i386_saved_pc_after_call): Make sure the correct value is
4826 returned just after entry into a sigtramp.
4827 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4828 i386fbsd4_sc_sp_offset): New variables.
4829 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4830 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4831 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4832 similiar to what we already did for sc_pc_offset.
4833 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4834 tdep->sc_sp_offset.
4835
4836 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4837
4838 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4839
4840 * config/i386/tm-x86-64linux.h: New.
4841 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4842 definitions.
4843 * config/i386/nm-x86-64.h: Rename to ...
4844 * config/i386/nm-x86-64linux.h: ... this one.
4845 * config/i386/x86-64linux.mh: Reflect the above change.
4846
4847 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4848
4849 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4850 with sigcontext_addr. Add sc_sp_offset.
4851 (i386bsd_sigtramp_saved_pc): Remove prototype.
4852 (i386bsd_sicontext_addr): Add prototype.
4853 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4854 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4855 (i386_svr4_sigtramp_saved_pc): Removed.
4856 (i386_svr4_sigcontext_addr): New function.
4857 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4858 Initialize tdep->sigcontext_addr instead. Initialize
4859 tdep->sc_pc_offset and tdep->sc_sp_offset.
4860 (i386_gdbarch_init): Likewise.
4861 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4862 any more.
4863 (i386bsd_sigtramp_saved_pc): Remove function.
4864 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4865 Initialize tdep->sigcontext_addr instead. Initialize
4866 tdep->sc_pc_offset.
4867 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4868 of tdep->sigtramp_saved_pc.
4869 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4870 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4871 instead.
4872
4873 * i386-tdep.c (i386_frameless_function_invocation,
4874 i386_frame_num_args, i386_frame_init_saved_regs,
4875 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4876 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4877 i386_extract_return_value, i386_store_return_value,
4878 i386_extract_struct_value_address, i386_register_virtual_type,
4879 i386_register_convertible, i386_register_convert_to_virtual,
4880 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4881 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4882 static.
4883
4884 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4885
4886 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4887
4888 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4889 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4890 this macro. Include "value.h".
4891
4892 2002-06-30 Aidan Skinner <aidan@velvet.net>
4893
4894 * ada-exp.tab.c: remove as it's a generated file
4895 * ada-lex.c: remove as it's a generated file
4896
4897 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4898
4899 * config/i386/tm-i386.h (struct frame_info, struct
4900 frame_saved_regs, struct value, struct type): Remove forward
4901 declarations.
4902
4903 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4904 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4905 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4906 (FILL_FPXREGSET): Define.
4907
4908 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4909
4910 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4911 i[3456]86-*-netbsd* case.
4912 * config/i386/tm-obsd.h: Removed.
4913 * config/i386/obsd.mt: Removed.
4914 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4915 core-aout.o.
4916 (MH_CFLAGS): Add -DYYDEBUG=0.
4917
4918 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4919 i386nbsd_sc_pc_offset on OpenBSD too.
4920
4921 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4922 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4923 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4924 define.
4925 * i386bsd-tdep.c: Include "arch-utils.h".
4926 (i386bsd_aout_in_solib_call_trampoline): New function.
4927 (i386bsd_init_abi): Set in_solib_call_trampoline to
4928 i386bsd_aout_in_solib_call_trampoline.
4929 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4930 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4931
4932 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4933
4934 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4935 (struct obstack, struct bcache): Add opaque declarations.
4936 * Makefile.in (macrotab_h): Update
4937
4938 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4939
4940 * blockframe.c (generic_find_dummy_frame): Change return type to
4941 ``struct regcache''.
4942 (struct dummy_frame): Replace field ``registers'' with regcache, a
4943 struct regcache object.
4944 (generic_find_dummy_frame): Update.
4945 (generic_push_dummy_frame): Update. Use regcache_xfree,
4946 regcache_xmalloc and regcache_cpy.
4947 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4948 regcache_xfree.
4949 (deprecated_generic_find_dummy_frame): Update.
4950 (generic_read_register_dummy): Update. Use
4951 regcache_read_as_address.
4952 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4953 (generic_get_saved_register): Update. Use regcache_read.
4954
4955 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4956
4957 * Makefile.in (objfiles_h): Add $(bcache_h).
4958 * objfiles.h: Include "bcache.h".
4959
4960 * Makefile.in (symtab_h): Remove $(bcache_h).
4961 * symtab.h: Do not include "bcache.h".
4962
4963 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4964
4965 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4966 generic_func_frame_chain_valid.
4967
4968 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4969
4970 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4971 * config/i386/tm-fbsd.h: Likewise.
4972
4973 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4974
4975 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4976 generic_unwind_get_saved_register.
4977
4978 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4979
4980 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4981 * regcache.c (supply_register): Add missing argument to
4982 register_buffer call.
4983
4984 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4985
4986 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4987 Solaris /bin/grep does not not like it. From Peter Schauer.
4988
4989 2002-06-26 Tom Tromey <tromey@redhat.com>
4990
4991 * command.h (add_setshow_cmd): Declare.
4992 (add_setshow_cmd_full): Declare.
4993 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4994 returns void. Use add_setshow_cmd_full.
4995 (add_setshow_cmd_full): New function.
4996 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4997 (add_setshow_boolean_cmd): Likewise.
4998
4999 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5000
5001 * config/vax/tm-vax.h: Protect from multiple inclusion.
5002 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5003 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5004 * config/vax/tm-vaxbsd.h: ...here. New file.
5005 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5006
5007 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5008
5009 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5010 (BELIEVE_PCC_PROMOTION): Remove.
5011 (AP_REGNUM): Move to...
5012 * config/vax/nm-vax.h: ...here.
5013 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5014 (vax_breakpoint_from_pc): New function.
5015 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5016 and gdbarch_believe_pcc_promotion.
5017
5018 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5019
5020 * Makefile.in (vax_tdep_h): Define.
5021 (vax-tdep.o): Use $(vax_tdep_h).
5022 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5023 (vax_dump_tdep): New function.
5024 (_initialize_vax_tdep): Register vax_dump_tdep.
5025 * vax-tdep.h: Include osabi.h.
5026 (struct gdbarch_tdep): New.
5027
5028 2002-06-26 Andrew Cagney <cagney@redhat.com>
5029
5030 * frame.h (deprecated_generic_find_dummy_frame): Rename
5031 generic_find_dummy_frame.
5032 * blockframe.c (generic_find_dummy_frame): Make static.
5033 (deprecated_generic_find_dummy_frame): New function.
5034 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5035 generic_find_dummy_frame with deprecated_find_dummy_frame.
5036 (sh64_nofp_frame_init_saved_regs): Ditto.
5037 (sh_fp_frame_init_saved_regs): Ditto.
5038 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5039 (s390_frame_chain): Ditto.
5040 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5041
5042 2002-06-26 Grace Sainsbury <graces@redhat.com>
5043
5044 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5045 gdbarch vector are at the top.
5046 (NUM_REGS): Remove.
5047 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5048 (FRAME_ARGS_ADDRESS): Remove.
5049 (FRAME_LOCALS_ADDRESS): Remove.
5050 (FRAME_NUM_ARGS): Remove.
5051 (FRAME_ARGS_SKIP): Remove.
5052 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5053 (m68k_gdbarch_init): Add gdbarch initializations for macros
5054 undefined in tm-m68k.h
5055
5056 2002-06-26 Grace Sainsbury <graces@redhat.com>
5057
5058 * monitor.h: Add the function regname to monitor_ops
5059 structure. This way NUM_REGS does not have to be a constant.
5060 * monitor.c (monitor_fetch_register): Added support for regname
5061 function. The function is called if the array regnames is NULL.
5062 (monitor_store_register): Same.
5063 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5064 regnames array.
5065 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5066 cpu32bug_cmds.regname to point to new function.
5067 * abug-rom.c (abug_regname): Same as above.
5068 (init_abug_cmds): Same.
5069 * dbug-rom.c (dbug_regname): Same as above.
5070 (init_dbug_cmds): Same.
5071 * remote-est.c (est_regname): Same.
5072 (init_est_cmds): Same.
5073 * rom68k-rom.c (rom68k_regname): Same.
5074 (init_rom68k_cmds): Same.
5075
5076 2002-06-25 Tom Tromey <tromey@redhat.com>
5077
5078 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5079
5080 2002-06-25 Andrew Cagney <cagney@redhat.com>
5081
5082 * infrun.c (stop_registers): Change variable's type to ``struct
5083 regcache'''.
5084 (xmalloc_inferior_status): Delete function.
5085 (free_inferior_status): Delete function.
5086 (normal_stop): Use regcache_cpy.
5087 (struct inferior_status): Change type of fields ``stop_registers''
5088 and ``registers'' to ``struct regcache''.
5089 (write_inferior_status_register): Use regcache_write.
5090 (save_inferior_status): Instead of calling
5091 xmalloc_inferior_status, allocate the inf_status buffer directly.
5092 Use regcache_dup_no_passthrough and regcache_dup to save the
5093 buffers.
5094 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5095 Replace the stop_registers regcache instead of overriding it. Use
5096 regcache_xfree. Instead of calling free_inferior_status, xfree
5097 the buffer directly.
5098 (discard_inferior_status): Use regcache_xfree. Instead of calling
5099 free_inferior_status, xfree the buffer directly.
5100 (build_infrun): Use regcache_xmalloc.
5101 (_initialize_infrun): Delete redundant call to build_infrun.
5102
5103 * Makefile.in (infcmd.o): Add $(regcache_h).
5104
5105 * infcmd.c: Include "regcache.h".
5106 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5107 obtain the address of `stop_registers' register buffer.
5108 (print_return_value): Ditto.
5109
5110 * inferior.h (struct regcache): Add opaque declaration.
5111 (stop_registers): Change variable's declared type to ``struct
5112 regcache''.
5113
5114 2002-06-24 Tom Tromey <tromey@redhat.com>
5115
5116 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5117 * target.c (initialize_targets): Fixed typo in
5118 trust-readonly-sections `show' documentation.
5119
5120 * main.c: Marked all strings with _().
5121
5122 2002-06-24 Don Howard <dhoward@redhat.com>
5123
5124 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5125 that means max CORE_ADDR+1.
5126 (lookup_mem_region): Ditto.
5127 (mem_info_command): Ditto.
5128
5129 2002-06-24 Grace Sainsbury <graces@redhat.com>
5130
5131 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5132 (REGISTER_BYTES_OK): Remove.
5133 (REGISTER_BYTES): Remove.
5134 (STORE_STRUCT_RETURN): Remove.
5135 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5136 (STORE_RETURN_VALUE): Remove.
5137 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5138 (FRAME_CHAIN): Remove.
5139 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5140 (FRAME_SAVED_PC): Remove.
5141 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5142 (m68k_store_struct_return): Add.
5143 (m68k_deprecated_extract_return_value): Add.
5144 (m68k_deprecated_extract_struct_value_address): Add.
5145 (m68k_store_return_value): Add.
5146 (m68k_frame_chain): Add.
5147 (m68k_frameless_function_invocation): Add.
5148 (m68k_frame_saved_pc): Add.
5149 (m68k_gdbarch_init): added set_gdbarch calls for new
5150 functions and deleted macros.
5151
5152 2002-06-23 Tom Tromey <tromey@redhat.com>
5153
5154 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5155 (ALLDEPFILES): Likewise.
5156 (udiheaders): Removed.
5157 (udip2soc.o): Likewise.
5158 (udi2go32.o): Likewise.
5159 (udr.o): Likewise.
5160 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5161
5162 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5163
5164 * infrun.c (_initialize_infrun): Delete unnecessary call to
5165 build_infrun.
5166
5167 * regcache.h: Update comments describing the regcache_cpy family
5168 of functions.
5169 (regcache_save, regcache_restore): Delete declaration.
5170 (regcache_save_no_passthrough): Delete declaration.
5171 (regcache_restore_no_passthrough): Delete declaration.
5172 * regcache.c (regcache_save): Delete function.
5173 (regcache_save_no_passthrough): Delete function.
5174 (regcache_restore): Delete function.
5175 (regcache_restore_no_passthrough): Delete function.
5176
5177 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5178
5179 * config/m68k/tm-m68k.h: Fix typo.
5180 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5181 (m68k_frame_init_saved_regs): Declare.
5182
5183 2002-06-21 Jim Blandy <jimb@redhat.com>
5184
5185 Remove some vestiges of Harris 88k support.
5186 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5187 register numbering quirk.
5188 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5189 odd symbols occurring in Harris 88k ELF targets.
5190
5191 2002-06-21 Tom Tromey <tromey@redhat.com>
5192
5193 * gdb_locale.h: New file.
5194 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5195 (defs_h): Added gdb_locale.h.
5196 * configure, config.in: Rebuilt.
5197 * configure.in (PACKAGE): Define.
5198 * defs.h: Include gdb_locale.h.
5199 * main.c (captured_main): Call setlocale, bindtextdomain,
5200 textdomain.
5201
5202 2002-06-21 Dave Brolley <brolley@redhat.com>
5203
5204 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5205 * config/frv/frv.mt: New file.
5206 * config/frv/tm-frv.h: New file.
5207 * configure.tgt: Support frv-*-*.
5208 * Makefile.in (frv-tdep.o): New target.
5209 * frv-tdep.c: New file.
5210 * NEWS: Mention frv.
5211
5212 2002-06-21 Dave Brolley <brolley@redhat.com>
5213
5214 * MAINTAINERS: Add self to "Write After Approval" list.
5215
5216 2002-06-21 Grace Sainsbury <graces@redhat.com>
5217
5218 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5219 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5220 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5221 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5222 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5223
5224 * m68k-tdep.c: Include arch-utils.h
5225 (m68k_register_raw_size): Add.
5226 (m68k_register_virtual_size): Add.
5227 (m68k_register_virtual_type): Add.
5228 (m68k_register_name): Add.
5229 (m68k_stack_align): Add.
5230 (m68k_register_byte): Add.
5231 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5232 tm-m68k.h.
5233
5234 2002-06-21 Grace Sainsbury <graces@redhat.com>
5235
5236 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5237 m68k_find_saved_regs.
5238 (m68k_pop_frame): Removed saved_regs structure, and replaced
5239 references to it with frame->saved_regs.
5240 (m68k_gdbarch_init): Added function calls to initialize the
5241 gdbarch structure.
5242 (m68k_fix_call_dummy): Add.
5243 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5244 (CALL_DUMMY): Remove.
5245 (CALL_DUMMY_LENGTH): Remove.
5246 (CALL_DUMMY_START_OFFSET): Remove.
5247 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5248 (FIX_CALL_DUMMY): Remove.
5249 (PUSH_DUMMY_FRAME): Remove.
5250 (POP_FRAME): Remove.
5251
5252 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5253
5254 * parse.c (parse_fprintf): New function used to avoid calls to
5255 fprintf in bison parser generated debug code.
5256 * parser-defs.h: Declaration of new parse_fprintf function.
5257 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5258 Set YYDEBUG to 1 by default.
5259 Set YYFPRINTF as parse_fprintf.
5260
5261 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5262
5263 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5264 encoding anymore.
5265 (pointer_encoding, enum ptr_encoding): New.
5266 (execute_cfa_program): Take care about pointer encoding.
5267 (dwarf2_build_frame_info): Only call parse_frame_info for
5268 .debug_frame and .eh_frame.
5269 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5270 fixed augmentation handling, added relative addressing,
5271 ignore duplicate FDEs. Added comments.
5272 * dwarf2cfi.c: Reindented.
5273
5274 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5275
5276 * event-top.c (command_handler): Don't use space_at_cmd_start
5277 unless there is sbrk() on the host. Assign time and space data
5278 to union fields of the appropriate length.
5279
5280 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5281
5282 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5283 x86_64_register_name. Return type changed to 'const char *'.
5284 (x86_64_register_name2nr): Rename to x86_64_register_number.
5285 (x86_64_gdbarch_init): Update to reflect the change.
5286 * x86-64-tdep.h: Ditto.
5287 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5288 (supply_fpregset): Ditto.
5289
5290 2002-06-19 Andrew Cagney <cagney@redhat.com>
5291
5292 * regcache.h: Update copyright.
5293 (struct regcache, struct gdbarch): Add opaque declarations.
5294 (current_regcache): Declare global variable.
5295 (regcache_read, regcache_write): Add gdbarch parameter.
5296 (regcache_save, regcache_save_no_passthrough)
5297 (regcache_restore, regcache_restore_no_passthrough)
5298 (regcache_dup, regcache_dup_no_passthrough)
5299 (regcache_cpy, regcache_cpy_no_passthrough)
5300 (deprecated_grub_regcache_for_registers)
5301 (deprecated_grub_regcache_for_register_valid)
5302 (regcache_valid_p): Add function declarations.
5303
5304 * regcache.c: Update copyright.
5305 (regcache_descr_handle): New global variable.
5306 (struct regcache_descr): Define.
5307 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5308 (regcache_descr, xfree_regcache_descr): New functions.
5309 (struct regcache): Define.
5310 (regcache_xmalloc, regcache_xfree): New functions.
5311 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5312 (regcache_dup, regcache_dup_no_passthrough): New functions.
5313 (regcache_valid_p, regcache_read_as_address): New functions.
5314 (deprecated_grub_regcache_for_registers): New function.
5315 (deprecated_grub_regcache_for_register_valid): New function.
5316 (current_regcache): New global variable.
5317 (register_buffer): Add regcache parameter. Update calls.
5318 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5319 (read_register_gen, write_register_gen): Update register_buffer
5320 call. Test for legacy_p instead of gdbarch_register_read_p or
5321 gdbarch_register_write_p.
5322 (regcache_collect): Update register_buffer call.
5323 (build_regcache): Rewrite. Use deprecated grub functions.
5324 (regcache_save, regcache_save_no_passthrough): New functions.
5325 (regcache_restore, regcache_restore_no_passthrough): New
5326 functions.
5327 (_initialize_regcache): Create the regcache_data_handle. Swap
5328 current_regcache global variable.
5329
5330 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5331 parameter to regcache_read and regcache_write calls.
5332 (sh4_register_read): Ditto.
5333 (sh64_pseudo_register_read): Ditto.
5334 (sh64_register_read): Ditto.
5335 (sh_pseudo_register_write): Ditto.
5336 (sh4_register_write): Ditto.
5337 (sh64_pseudo_register_write): Ditto.
5338 (sh64_register_write): Ditto.
5339
5340 * defs.h (XCALLOC): Define.
5341
5342 2002-06-19 Grace Sainsbury <graces@redhat.com>
5343
5344 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5345 * m68k-tdep.c (m68k_gdbarch_init): Added.
5346 (m68k_dump_tdep): Added.
5347
5348 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5349
5350 * ada-lang.c (fill_in_ada_prototype): Update comment.
5351
5352 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5353
5354 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5355 MIPS_ABI_LAST.
5356 (mips_abi_string, mips_abi_strings): New.
5357 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5358 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5359 tdep->mips_abi_string. Honor mips_abi_string. Default to
5360 O32 if no ABI is found.
5361 (mips_dump_tdep): Use mips_abi_strings.
5362 (mips_abi_update): New function.
5363 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5364 ``set mips abi'' and ``show mips abi''. Check the size of
5365 mips_abi_strings.
5366
5367 2002-06-19 Andrew Cagney <cagney@redhat.com>
5368
5369 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5370 constant.
5371
5372 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5373
5374 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5375 current frame using only the first stack size adjustment. All
5376 subsequent size adjustments are not considered to be part of
5377 the "static" part of the current frame.
5378 Compute the address of the saved registers relative to the
5379 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5380 in use in this frame.
5381
5382 2002-06-18 Don Howard <dhoward@redhat.com>
5383
5384 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5385 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5386 suggesting this solution.
5387
5388 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5389
5390 * config/romp/xm-rtbsd.h: Delete file.
5391 * config/romp/rtbsd.mh: Delete file.
5392
5393 2002-06-18 Keith Seitz <keiths@redhat.com>
5394
5395 * breakpoint.c (condition_command): Post breakpoint_modify
5396 when a condition is added to an existing breakpoint.
5397 (commands_command): Likewise for commands.
5398 (set_ignore_count): Likewise for ignore counts.
5399 If no tty, do not simply return, still need to send event
5400 notification.
5401 (ignore_command): Only print a newline if the command came
5402 from a tty.
5403 Don't call breakpoints_changed, since this is now properly
5404 handled by set_ignore_count.
5405
5406 2002-06-18 Andrew Cagney <cagney@redhat.com>
5407
5408 * MAINTAINERS: Note that cris-elf target can be compiled with
5409 -Werror.
5410 * cris-tdep.c (cris_register_name): Make return type constant.
5411 (cris_breakpoint_from_pc): Ditto.
5412
5413 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5414
5415 * frame.h (struct frame_info): Change type of context to
5416 'struct context'.
5417
5418 2002-06-17 Andrew Cagney <cagney@redhat.com>
5419
5420 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5421 pointer.
5422 * gdbarch.h, gdbarch.c: Regenerate.
5423 * config/mips/tm-mips.h (mips_register_name): Update.
5424 * i386-tdep.h (i386_register_name): Update.
5425 * mips-tdep.c (mips_register_name): Update
5426 * alpha-tdep.c (alpha_register_name): Update.
5427 * arch-utils.c (legacy_register_name): Update.
5428 * arch-utils.h (legacy_register_name): Update.
5429 * avr-tdep.c (avr_register_name): Update.
5430 * ia64-tdep.c (ia64_register_name): Update.
5431 * i386-tdep.c (i386_register_name): Update.
5432 * sparc-tdep.c (sparc32_register_name): Update.
5433 (sparc64_register_name): Update.
5434 (sparclite_register_name): Update.
5435 (sparclet_register_name): Update.
5436 * sh-tdep.c (sh_generic_register_name): Update.
5437 (sh_sh_register_name): Update.
5438 (sh_sh3_register_name): Update.
5439 (sh_sh3e_register_name): Update.
5440 (sh_sh_dsp_register_name): Update.
5441 (sh_sh3_dsp_register_name): Update.
5442 (sh_sh4_register_name): Update.
5443 (sh_sh64_register_name): Update.
5444 * s390-tdep.c (s390_register_name): Update.
5445 * rs6000-tdep.c (rs6000_register_name): Update.
5446 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5447 (ns32k_register_name_32382): Update.
5448 * d10v-tdep.c (d10v_ts2_register_name): Update.
5449 (d10v_ts3_register_name): Update.
5450 * xstormy16-tdep.c (xstormy16_register_name): Update.
5451 * vax-tdep.c (vax_register_name): Update.
5452 * v850-tdep.c (v850_register_name): Update.
5453 * m68hc11-tdep.c (m68hc11_register_name): Update.
5454 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5455 (am33_register_name): Update.
5456
5457 2002-06-17 Grace Sainsbury <graces@redhat.com>
5458
5459 * m68k-tdep.c: Reindented.
5460
5461 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5462
5463 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5464 list of predefined types.
5465
5466 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5467
5468 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5469 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5470 REGISTER_CONVERT_TO_RAW): Remove defines.
5471 (i386_register_virtual_type, i386_register_convertible,
5472 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5473 Remove prototypes.
5474 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5475 macros mentioned above.
5476
5477 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5478 (i386lynx_saved_pc_after_call): Remove prototype.
5479 * i386ly-tdep.c: Include "i386-tdep.h".
5480 (i386lynx_saved_pc_after_call): Make static. Use
5481 read_memory_nobpt instead of read_memory. Use
5482 read_memory_unsigned_integer instead of read_memory_integer.
5483 (i386lynx_init_abi): New function.
5484 (i386lynx_coff_osabi_sniffer): New function.
5485 (_initialize_i386bsd_tdep): New function.
5486
5487 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5488 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5489 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5490 (i386_fix_call_dummy): Remove prototype.
5491 * i386-tdep.c (i386_call_dummy_words): New variable.
5492 (i386_gdbarch_init): Adjust for removal of the
5493 macros mentioned above.
5494
5495 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5496
5497 * command.h (add_setshow_auto_boolean_cmd): Replace
5498 add_set_auto_boolean_cmd.
5499 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5500 add_set_auto_boolean_cmd.
5501 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5502 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5503 mask-address'' command.
5504 (show_mask_address): Add cmd parameter.
5505 * remote.c (add_packet_config_cmd): Update. Change type of
5506 set_func and show_func to cmd_sfunc_ftype.
5507 (_initialize_remote): Update `set remote Z-packet'
5508 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5509 (show_remote_protocol_e_packet_cmd): Ditto.
5510 (show_remote_protocol_E_packet_cmd): Ditto.
5511 (show_remote_protocol_P_packet_cmd): Ditto.
5512 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5513 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5514 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5515 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5516 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5517 (show_remote_protocol_Z_packet_cmd): Ditto.
5518 (show_remote_protocol_binary_download_cmd): Ditto.
5519 (show_remote_cmd): Pass NULL to all of above.
5520
5521 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5522
5523 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5524 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5525 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5526 POP_FRAME): Remove defines.
5527 (i386_push_arguments, i386_store_struct_return,
5528 i386_extract_return_value, i386_store_return_value,
5529 i386_extract_struct_value_address, i386_push_dummy_frame,
5530 i386_pop_frame): Renove prototypes.
5531 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5532 macros mentioned above.
5533
5534 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5535
5536 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5537 add_set_boolean_cmd.
5538 (add_setshow_cmd): New function.
5539 * command.h (add_setshow_boolean_cmd): Replace
5540 add_set_boolean_cmd.
5541 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5542 and ``set rdiromatzero''.
5543 * maint.c (_initialize_maint_cmds): Update commented out code.
5544 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5545 * target.c (initialize_targets): Update `set
5546 trust-readonly-sections'.
5547 * remote.c (_initialize_remote): Update `set remotebreak'.
5548
5549 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5550
5551 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5552 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5553 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5554 fit into multi-arch framework.
5555 (i386_breakpoint_from_pc): New function.
5556 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5557 above.
5558
5559 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5560 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5561 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5562 (i386_frameless_function_invocation, i386_frame_num_args,
5563 i386_frame_init_saved_regs): Remove prototypes.
5564 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5565 macros mentioned above.
5566
5567 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5568
5569 * cli/cli-decode.c (set_cmd_cfunc): Update.
5570 (set_cmd_sfunc): Update.
5571 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5572 (set_cmd_sfunc, set_cmd_cfunc): Update.
5573 * cli/cli-decode.h: Update.
5574
5575 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5576
5577 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5578 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5579
5580 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5581
5582 * defs.h (auto_boolean): Declare enum.
5583 * command.h (cmd_auto_boolean): Delete enum.
5584 * mips-tdep.c (mask_address_var): Update.
5585 (mips_mask_address_p): Update.
5586 (show_mask_address): Update.
5587 * remote.c (struct packet_config): Update.
5588 (update_packet_config): Update.
5589 (show_packet_config_cmd): Update.
5590 (packet_ok): Update.
5591 (add_packet_config_cmd): Update.
5592 (_initialize_remote):
5593 * command.h: Update.
5594 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5595 (do_setshow_command): Update.
5596 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5597 * cli/cli-decode.h: Update.
5598
5599 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5600
5601 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5602 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5603 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5604 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5605 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5606 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5607
5608 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5609 list of DJGPP COFF targets.
5610
5611 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5612 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5613 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5614 (FP0_REGNUM): Remove define.
5615 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5616 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5617 (i386_register_virtual_size): Remove protoype.
5618 * i386-tdep.c (i386_register_virtual_size): Removed.
5619 (i386_extract_return_value, i386_store_return_value): Use
5620 FP0_REGNUM instead of NUM_FREGS to determine whether the
5621 floating-point registers are available.
5622 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5623 Adjust for removal of macros mentioned above.
5624
5625 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5626
5627 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5628 comments.
5629 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5630 Remove prototypes.
5631 (supply_gregset, fill_gregset): Remove use of register keyword and
5632 remove declaration for regmap. Use I386_NUM_GREGS instead of
5633 NUM_REGS and NUM_FREGS.
5634 (FPREGSET_FSAVE_OFFSET): Remove.
5635 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5636 NUM_FREGS to determine whether the floating-point registers are
5637 available.
5638
5639 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5640 gnu_store_registers): Replace usage of NUM_GREGS with
5641 I386_NUM_GREGS.
5642
5643 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5644 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5645 usage of NUM_GREGS with I386_NUM_GREGS.
5646
5647 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5648
5649 * i386bsd-nat.c: Include "i386-tdep.h".
5650 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5651 I386_NUM_GREGS.
5652
5653 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5654 and associated comment. They no longer make any sense, since we
5655 don't use this file anymore on Linux.
5656
5657 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5658 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5659 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5660 elements in these arrays.
5661 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5662 MAX_NUM_REGS.
5663
5664 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5665
5666 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5667 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5668
5669 2002-06-14 Andrew Cagney <cagney@redhat.com>
5670
5671 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5672 EXTRACT_RETURN_VALUE.
5673 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5674 EXTRACT_STRUCT_VALUE_ADDRESS.
5675 * gdbarch.h, gdbarch.c: Regenerate.
5676
5677 * values.c (value_being_returned): Handle
5678 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5679 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5680
5681 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5682 * arm-tdep.c (arm_gdbarch_init): Update.
5683 * avr-tdep.c (avr_gdbarch_init): Update.
5684 * cris-tdep.c (cris_gdbarch_init): Update.
5685 * d10v-tdep.c (d10v_gdbarch_init): Update.
5686 * ia64-tdep.c (ia64_gdbarch_init): Update.
5687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5689 * s390-tdep.c (s390_gdbarch_init): Update.
5690 * sh-tdep.c (sh_gdbarch_init): Update.
5691 * s390-tdep.c (s390_gdbarch_init): Update.
5692 * sparc-tdep.c (sparc_gdbarch_init): Update.
5693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5694 * v850-tdep.c (v850_gdbarch_init): Update.
5695 * vax-tdep.c (vax_gdbarch_init): Update.
5696 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5698
5699 * config/arc/tm-arc.h: Update.
5700 * config/d30v/tm-d30v.h: Update.
5701 * config/fr30/tm-fr30.h: Update.
5702 * config/h8300/tm-h8300.h: Update.
5703 * config/h8500/tm-h8500.h: Update.
5704 * config/i386/tm-i386.h: Update.
5705 * config/i386/tm-ptx.h: Update.
5706 * config/i386/tm-symmetry.h: Update.
5707 * config/i960/tm-i960.h: Update.
5708 * config/m32r/tm-m32r.h: Update.
5709 * config/m68k/tm-delta68.h: Update.
5710 * config/m68k/tm-linux.h: Update.
5711 * config/m68k/tm-m68k.h: Update.
5712 * config/m88k/tm-m88k.h: Update.
5713 * config/mcore/tm-mcore.h: Update.
5714 * config/mips/tm-mips.h: Update.
5715 * config/mn10200/tm-mn10200.h: Update.
5716 * config/pa/tm-hppa.h: Update.
5717 * config/pa/tm-hppa64.h: Update.
5718 * config/sparc/tm-sp64.h: Update.
5719 * config/sparc/tm-sparc.h: Update.
5720 * config/sparc/tm-sparclet.h: Update.
5721 * config/z8k/tm-z8k.h: Update.
5722
5723 2002-06-14 Andrew Cagney <cagney@redhat.com>
5724
5725 * Makefile.in (i386_linux_tdep_h): Define.
5726 (i386_tdep_h, i387_tdep_h): Define.
5727 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5728 $(i386_tdep_h) and $(i387_tdep_h).
5729 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5730
5731 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5732
5733 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5734 Already covered by the default.
5735
5736 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5737 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5738 (i386_gdbarch_init): Initialize long_double_format and long_double
5739 bit.
5740
5741 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5742 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5743 Move these to ...
5744 * config/i386/i386sol2.mh: ... here.
5745 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5746 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5747 (SIGCONTEXT_PC_OFFSET): Remove define.
5748 (IN_SIGTRAMP): Remove define.
5749 * i386-sol2-tdep.c: New file.
5750
5751 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5752 * config/i386/tm-i386nw.h: Removed.
5753
5754 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5755 USE_STRUCT_CONVENTION): Remove defines.
5756 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5757 (get_longjmp_target): Remove prototype.
5758 (IN_SIGTRAMP): Remove define.
5759 (i386bsd_in_sigtramp): Remove prototype.
5760 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5761 function. Update comment accordingly
5762 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5763 (FRAME_SAVED_PC): Remove define.
5764 (i386bsd_frame_saved_pc): Remove prototype.
5765 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5766 GET_LONGJMP_TARGET): Remove defines.
5767 (get_longjmp_target): Remove prototype.
5768 (IN_SIGTRAMP): Remove define.
5769 (i386bsd_in_sigtramp): Remove prototype.
5770 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5771 function. Update comment accordingly
5772 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5773 (FRAME_SAVED_PC): Remove define.
5774 (i386bsd_frame_saved_pc): Remove prototype.
5775 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5776 Remove prototype.
5777 (USE_STRUCT_CONVENTION): Remove prototype.
5778 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5779 declaration.
5780 (_initialize_i386bsd_nat): Revise logic to determine some
5781 constants at compile time when compiling a native GDB. Warn if
5782 things don't match up with what we expect.
5783 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5784 Remove variables.
5785 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5786 to use date stored in `struct gdbarch_tdep'.
5787 (i386bsd_sigcontext_offset): Remove varaible.
5788 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5789 stored in `struct gdbarch_tdep'.
5790 (i386bsd_frame_saved_pc): Make static.
5791 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5792 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5793 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5794 i386fbsd4_sc_pc_offset): New variables.
5795 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5796 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5797 functions.
5798 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5799 functions.
5800 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5801 Modify the value of i386fbsd_sigtramp_start and
5802 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5803 i386fbsd_sigtramp_end.
5804 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5805 function.
5806
5807 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5808 define to i386-linux-tdep.h.
5809 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5810 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5811 defines.
5812 (i386_linux_register_name, i386_linux_register_byte,
5813 i386_linux_register_raw_size): Remove prototypes.
5814 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5815 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5816 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5817 TARGET_WRITE_PC): Remove defines.
5818 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5819 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5820 i386_linux_write_pc): Remove prototypes.
5821 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5822 (get_longjmp_target): Remove prototype.
5823 * i386-linux-tdep.h: New file.
5824 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5825 * i386-linux-tdep.c: Include "i386-tdep.h" and
5826 "i386-linux-tdep.h".
5827 (i386_linux_register_name, i386_linux_register_byte,
5828 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5829 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5830 Make static.
5831 (i386_linux_init_abi): New function.
5832 (_initialize_i386_linux_tdep): New function.
5833
5834 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5835 (i386_saved_pc_after_call): Remove prototype.
5836 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5837 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5838 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5839 (i386_register_name, i386_stab_reg_to_regnum,
5840 i386_dwarf_reg_to_regnum): Remove prototypes.
5841 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5842 SIZEOF_SSE_REGS): Remove defines.
5843 (REGISTER_BYTES): Remove define.
5844 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5845 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5846 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5847 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5848 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5849 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5850 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5851 (get_longjmp_target): Remove prototype.
5852 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5853 (sigtramp_saved_pc): Remove define.
5854 (i386v4_sigtramp_saved_pc): Remove prototype.
5855 * config/i386/tm-go32.h (FRAME_CHAIN,
5856 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5857 (i386go32_frame_saved_pc): Remove prototype.
5858 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5859 (get_longjmp_target): Remove prototype.
5860 * i386-tdep.h: Include "osabi.h".
5861 (enum i386_abi): Removed.
5862 (enum struct_return): New enum.
5863 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5864 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5865 sc_pc_offset members.
5866 (i386_gdbarch_register_os_abi): Remove prototype.
5867 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5868 I386_SSE_NUM_REGS): New defines.
5869 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5870 I386_SSE_SIZEOF_REGS): New defines.
5871 (i386_register_name, i386_register_byte, i386_register_raw_size):
5872 New prototypes.
5873 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5874 (i386bsd_sigtramp_saved_pc): New prototype.
5875 * i386-tdep.c: Don't include "elf-bfd.h".
5876 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5877 i386_frame_chain, i386_saved_pc_after_call): Make static.
5878 (i386_frame_saved_pc): Rewrite to call architecture dependent
5879 function to deal with signal handlers. Make static.
5880 (i386go32_frame_saved_pc): Removed.
5881 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5882 Removed.
5883 (i386_get_longjmp_target): New function.
5884 (default_struct_convention, pcc_struct_convention,
5885 reg_struct_convention, valid_conventions, struct_convention): New
5886 variables.
5887 (i386_use_struct_convention): New function.
5888 (i386v4_sigtramp_saved_pc): Renamed to
5889 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5890 (i386_pc_in_sigtramp): New function.
5891 (i386_abi_names): Removed.
5892 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5893 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5894 Removed.
5895 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5896 i386_gdbarch_register_os_abi): Removed.
5897 (struct i386_abi_handler): Removed.
5898 (i386_abi_handler_list): Removed.
5899 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5900 functions.
5901 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5902 i386_nw_init_abi): New functions.
5903 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5904 Use set_gdbarch_xxx() calls instead of relying on macros for a
5905 number of calls.
5906 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5907 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5908 Register the various architecture variants defined in this file.
5909
5910 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5911
5912 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5913 (struct main_type): Remove arg_types member. Update comments for
5914 struct field.
5915 (TYPE_ARG_TYPES): Remove.
5916 (TYPE_FN_FIELD_ARGS): Update.
5917 (smash_to_method_type): Update prototype.
5918
5919 * c-typeprint.c (cp_type_print_method_args): Take method type
5920 instead of argument list. Use new argument layout. Simplify.
5921 (c_type_print_args): Use new argument layout. Simplify.
5922 (c_type_print_base): Update call to cp_type_print_method_args.
5923 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5924 argument; use die->type instead. Update call to
5925 smash_to_method_type.
5926 (read_structure_scope): Update call to dwarf2_add_member_fn.
5927 * gdbtypes.c (allocate_stub_method): Update comment.
5928 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5929 Use new argument layout.
5930 (check_stub_method): Use new argument layout. Don't count
5931 void as an argument.
5932 (print_arg_types): Update comments. Use new argument layout.
5933 (recursive_dump_type): Don't print arg_types member.
5934 * hpread.c (hpread_read_struct_type): Use new argument layout.
5935 (fixup_class_method_type): Likewise.
5936 (hpread_type_lookup): Likewise.
5937 * stabsread.c (read_type): Update calls to read_args and
5938 smash_to_method_type.
5939 (read_args): Use new argument layout. Simplify.
5940 * valops.c (typecmp): Use new argument layout. Update parameters
5941 and comments. Simplify.
5942 (hand_function_call): Use new argument layout.
5943 (search_struct_method): Update call to typecmp.
5944 (find_overload_match): Use new argument layout.
5945
5946 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5947
5948 * NEWS: Mention multithreaded debug support for gdbserver.
5949
5950 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * MAINTAINERS: Mention NEWS.
5953
5954 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5955
5956 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5957 (struct mips_objfile_private, compare_pdr_entries): New.
5958 (non_heuristic_proc_desc): Read the ".pdr" section if it
5959 is present.
5960
5961 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5962
5963 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5964 (arm_debug): New static variable.
5965 (_initialize_arm_tdep): Add ``set debug arm'' command.
5966
5967 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5968
5969 * Makefile.in (sim_arm_h): Define.
5970 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5971 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5972 (arm_register_sim_regno): New function, map an internal REGNUM
5973 onto a simulator register number.
5974 (arm_gdbarch_init): Set register_sim_regno.
5975
5976 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5977
5978 * MAINTAINERS: Add self.
5979
5980 2002-06-11 Jim Blandy <jimb@redhat.com>
5981
5982 * source.c (source_info): Mention whether the symtab has
5983 information about preprocessor macros.
5984
5985 Call the command `info macro', not `show macro'.
5986 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5987 Fix error message.
5988 (_initialize_macrocmd): Register `info_macro_command' in
5989 `infolist', not `showlist'.
5990
5991 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5992
5993 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5994 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5995 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5996 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5997 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5998 unconditionally.
5999 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6000 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6001 (_initialize_mips_tdep): Remove dead code.
6002 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6003 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6004 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6005 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6006 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6007 MIPS_LAST_FP_ARG_REGNUM): Remove.
6008
6009 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6010
6011 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6012 (unwind_tmp_obstack_free, parse_frame_info)
6013 (update_context, cfi_read_fp, cfi_write_fp)
6014 (cfi_frame_chain, cfi_init_extra_frame_info)
6015 (cfi_virtual_frame_pointer): Use the above function.
6016 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6017
6018 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6019
6020 * v850-tdep.c (v850_type_is_scalar): New function.
6021 (v850_use_struct_convention): Match current gcc implementation
6022 as close as possible.
6023 (v850_push_arguments): Fix stack_offset handling. Don't write
6024 struct_addr into register. This is done by v850_store_struct_return.
6025 (v850_extract_return_value): Care for structs.
6026 (v850_store_return_value): Ditto.
6027 (v850_store_struct_return): Actually write address.
6028
6029 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6030
6031 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6032 without debug information too.
6033
6034 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6035
6036 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6037 Make multi-arch pure.
6038 * gdbarch.h, gdbarch.c: Re-generate.
6039 * arm-tdep.c (arm_print_float_info): Update.
6040 * arch-utils.h (default_print_float_info): Update.
6041 * arch-utils.c (default_print_float_info): Update.
6042 * infcmd.c (float_info): Update call.
6043
6044 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6045
6046 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6047 the front of the initialize list.
6048
6049 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6050
6051 * infrun.c (struct inferior_status): Replace fields
6052 selected_frame_address and selected_level with field
6053 selected_frame_id.
6054 (save_inferior_status): Update. Use get_frame_id.
6055 (struct restore_selected_frame_args): Delete.
6056 (restore_selected_frame): Update. Use frame_find_by_id.
6057 (restore_inferior_status): Update.
6058
6059 * breakpoint.h (struct breakpoint): Change type of
6060 watchpoint_frame to frame_id.
6061 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6062 call to get_current_frame.
6063 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6064 get_current_frame.
6065 (watchpoint_check): Use frame_find_by_id.
6066
6067 * frame.h (record_selected_frame): Delete declaration.
6068 * stack.c (record_selected_frame): Delete function.
6069
6070 * frame.h (struct frame_id): Define.
6071 (get_frame_id): Declare.
6072 (frame_find_by_id): Declare.
6073 * frame.c (frame_find_by_id): New function.
6074 (get_frame_id): New function.
6075
6076 2002-06-10 Andrey Volkov <avolkov@transas.com>
6077
6078 * ser-e7kpc.c: Fix duplicated define and call of
6079 _initialize_ser_e7000pc
6080
6081 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6082
6083 * signals/signals.c (target_signal_from_host): Fix #ifdef
6084 SIGRTMIN case.
6085 (do_target_signal_to_host): Likewise.
6086
6087 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6088
6089 * mips-tdep.c (mips_find_abi_section): New function.
6090 (mips_gdbarch_init): Call it.
6091
6092 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6093
6094 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6095 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6096 after Andrew's 2002-06-08 gdbarch change.
6097
6098 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6099
6100 * i386-linux-nat.c (suppy_gregset): Don't supply
6101 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6102 register cache.
6103 (fill_gregset): Don't fetch it under the same circumstances.
6104
6105 2002-06-09 Andrew Cagney <cagney@redhat.com>
6106
6107 * Makefile.in (callback_h): Define.
6108 (remote_sim_h): Update path to remote-sim.h.
6109 (remote-rdp.o): Add $(callback_h).
6110 (remote-sim.o): Use $(callback_h).
6111 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6112 * remote-rdp.c: Include "gdb/callback.h".
6113
6114 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6115
6116 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6117 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6118
6119 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6120
6121 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6122 * rdi-share/serpardr.c: Ditto.
6123 * rdi-share/unixcomm.c: Ditto.
6124 * rdi-share/serdrv.c: Ditto.
6125 * rdi-share/hostchan.h: Ditto.
6126 * rdi-share/hostchan.c: Ditto.
6127 * rdi-share/host.h: Ditto.
6128 * rdi-share/devsw.c: Ditto.
6129
6130 * objfiles.h: Change type of obj_private to void pointer.
6131 * pa64solib.c: Update copyright. Don't include "assert.h", use
6132 strcmp instead of STREQ, use LONGEST, do not use PTR
6133 * somsolib.c: Ditto.
6134
6135 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6136 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6137 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6138
6139 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6140
6141 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6142 (default_get_saved_register): Delete function.
6143 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6144 generic_unwind_get_saved_register.
6145 * gdbarch.h, gdbarch.c: Re-generate.
6146
6147 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6148
6149 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6150 generic_func_frame_chain_valid.
6151 * gdbarch.h, gdbarch.c: Re-generate.
6152 * blockframe.c (generic_func_frame_chain_valid): Only check
6153 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6154 passing FP to PC_IN_CALL_DUMMY.
6155 Fix PR gdb/360.
6156
6157 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6158
6159 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6160 (register_gdbarch_data): Initialize init_p.
6161 (gdbarch_data): Initialize data pointer using the init function.
6162 (init_gdbarch_data): Delete function.
6163 (gdbarch_update_p): Update.
6164 (initialize_non_multiarch): Update.
6165 (struct gdbarch): Add field initialized_p.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167
6168 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6169
6170 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6171 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6172 better do the things actually here.
6173 * x86-64-tdep.c (x86_64_register_name2nr): New.
6174 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6175 (x86_64_gdbarch_init): Respect the above change.
6176 * x86-64-tdep.h (x86_64_register_name2nr)
6177 (x86_64_register_nr2name): Add prototypes.
6178 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6179
6180 2002-06-06 Michael Snyder <msnyder@redhat.com>
6181
6182 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6183 Delete extra braces and re-indent.
6184 (d10v_store_return_value): Char return values
6185 must be shifted over by one byte in R0.
6186 (d10v_extract_return_value): Delete extra braces, re-indent.
6187
6188 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6189
6190 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6191 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6192 (d10v_integer_to_address): Rewrite.
6193 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6194 the d10v specific functions which take care of converting to the
6195 correct space.
6196
6197 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6198
6199 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6200 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6201
6202 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6203
6204 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6205 includes.
6206 * config/tm-linux.h: Ditto.
6207 * config/alpha/tm-alphalinux.h: Ditto.
6208 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6209 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6210 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6211 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6212 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6213 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6214 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6215 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6216 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6217 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6218 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6219 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6220 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6221 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6222 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6223 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6224 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6225 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6226 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6227 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6228 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6229 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6230 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6231 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6232 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6233 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6234 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6235 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6236 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6237 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6238 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6239 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6240 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6241 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6242 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6243 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6244 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6245
6246 2002-05-04 Aidan Skinner <aidan@velvet.net>
6247
6248 * ada-exp.tab.c: New file
6249 * ada-exp.y: New file
6250 * ada-lang.c: New file
6251 * ada-lang.h: New file
6252 * ada-lex.c: New file
6253 * ada-lex.l: New file
6254 * ada-tasks.c: New file
6255 * ada-typeprint.c: New file
6256 * ada-valprint.c: New file
6257
6258 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6261 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6262
6263 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6264
6265 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6266 insetead of ppc-linux-tdep.o.
6267 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6268 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6269
6270 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6271
6272 2002-05-07 Christian Groessler <chris@groessler.org>
6273 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6274 bit register contents for little endian hosts.
6275
6276 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6277
6278 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6279 any maintainer.
6280
6281 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6282
6283 * gdbarch.h: Regenerate.
6284
6285 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6286
6287 * MAINTAINERS: Add everyone to write-after-approval list.
6288
6289 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6290
6291 * stack.c (frame_info): Use frame_register_unwind instead of
6292 saved_regs. Mention when the SP is on the stack or in a register.
6293
6294 * frame.h (frame_register_unwind_ftype): Define. Document.
6295 (struct frame_info): Add field register_unwind and
6296 register_unwind_cache.
6297 (frame_register_unwind): Declare.
6298 (generic_unwind_get_saved_register): Declare.
6299
6300 * frame.c (frame_register_unwind): New function.
6301 (generic_unwind_get_saved_register): New function.
6302
6303 * blockframe.c (generic_call_dummy_register_unwind): New function.
6304 (frame_saved_regs_register_unwind): New function.
6305 (set_unwind_by_pc): New function.
6306 (create_new_frame): New function.
6307 (get_prev_frame): New function.
6308
6309 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6310
6311 * a29k-share/: Delete directory.
6312 * remote-vx29k.c: Delete file.
6313
6314 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6315
6316 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6317 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6318
6319 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6320
6321 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6322 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6323 (sparc64nbsd-nat.o)
6324 (sparcnbsd-nat.o)
6325 (sparcnbsd-tdep.o): New dependency lists.
6326 * NEWS: Note new UltraSPARC NetBSD native configuration.
6327 * configure.host (sparc64-*-netbsd*): New host.
6328 * configure.tgt (sparc-*-netbsdelf*)
6329 (sparc-*-netbsd*): Set gdb_target to nbsd.
6330 (sparc64-*-netbsd*): New target.
6331 * sparc64nbsd-nat.c: New file.
6332 * sparcnbsd-nat.c: New file.
6333 * sparcnbsd-tdep.c: New file.
6334 * sparcnbsd-tdep.h: New file.
6335 * config/sparc/nbsd.mt: New file.
6336 * config/sparc/nbsd64.mh: New file.
6337 * config/sparc/nbsd64.mt: New file.
6338 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6339 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6340 (HOST_IPC): Remove.
6341 * config/sparc/nbsdaout.mt: Remove.
6342 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6343 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6344 (HOST_IPC): Remove.
6345 * config/sparc/nbsdelf.mt: Remove.
6346 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6347 sparc-nat.c compatiblity defines.
6348 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6349 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6350 * config/sparc/tm-nbsd64.h: New file.
6351 * config/sparc/tm-nbsdaout.h: Remove.
6352 * config/sparc/xm-nbsd.h: Remove.
6353
6354 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6355
6356 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6357 * sparc-tdep.c: Include osabi.h.
6358 (gdbarch_tdep): Add osabi member.
6359 (_initialize_sparc_tdep): Use gdbarch_register.
6360 (sparc_gdbarch_init): Use generic OS ABI framework.
6361 (sparc_dump_tdep): New function.
6362
6363 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6364
6365 * corefile.c (do_captured_read_memory_integer): Return non-zero
6366 result.
6367 (safe_read_memory_integer): Copy result of memory read when
6368 status is non-zero. Also, add comments.
6369
6370 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6371
6372 * Makefile.in (ppc_tdep_h): Define.
6373 (ppc-linux-nat.o)
6374 (ppc-linux-tdep.o)
6375 (rs6000-tdep.o): Use $(ppc_tdep_h).
6376 (ppc-sysv-tdep.o)
6377 (ppcnbsd-nat.o)
6378 (ppcnbsd-tdep.o): New dependency lists.
6379 * ppc-tdep.h: Use generic OS ABI framework.
6380 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6381 (ppc_linux_init_abi): New functions.
6382 (ppc_sysv_abi_broken_use_struct_convention)
6383 (ppc_sysv_abi_use_struct_convention)
6384 (ppc_sysv_abi_push_arguments): Move to...
6385 * ppc-sysv-tdep.c: ...here.
6386 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6387 * rs6000-tdep.c (process_note_abi_tag_sections)
6388 (get_elfosabi): Remove.
6389 (rs6000_gdbarch_init): Use generic OS ABI framework.
6390 (rs6000_dump_tdep): New function.
6391 (_initialize_rs6000_tdep): Use gdbarch_register.
6392 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6393 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6394 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6395 of ppc-linux-tdep.o.
6396 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6397 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6398 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6399 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6400 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6401 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6402
6403 2002-05-29 Jim Blandy <jimb@redhat.com>
6404
6405 * macroscope.c (default_macro_scope): Put `void' in empty argument
6406 list.
6407
6408 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6409
6410 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6411 * arch-utils.c: Include "sim-regno.h".
6412 * gdbarch.sh: Don't include "sim-regno.h".
6413 * gdbarch.h, gdbarch.c: Regenerate.
6414 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6415 here.
6416 * arch-utils.h (legacy_register_sim_regno): To here.
6417 * remote-sim.c (legacy_register_sim_regno): Move function from
6418 here.
6419 * arch-utils.c (legacy_register_sim_regno): To here.
6420
6421 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6422
6423 * sim-regno.h: New file.
6424 * Makefile.in (sim_regno_h): Define.
6425 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6426 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6427 (legacy_register_sim_regno): New function.
6428 (one2one_register_sim_regno): New function.
6429 (gdbsim_fetch_register): Rewrite.
6430 (gdbsim_store_register): Only store a register when
6431 REGISTER_SIM_REGNO is valid.
6432 * d10v-tdep.c: Include "sim-regno.h".
6433 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6434 (d10v_ts3_register_sim_regno): Ditto.
6435 * gdbarch.sh: Include "sim-regno.h".
6436 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6437 * gdbarch.h, gdbarch.c: Regenerate.
6438 * arch-utils.h (default_register_sim_regno): Delete declaration.
6439 * arch-utils.c (default_register_sim_regno): Delete function.
6440
6441 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6442
6443 * ppcnbsd-nat.c: Rewrite.
6444 * ppcnbsd-tdep.c: New file.
6445 * ppcnbsd-tdep.h: New file.
6446 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6447 solib.o, and solib-svr4.o.
6448 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6449 nbsd-tdep.o, and corelow.o.
6450
6451 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6452
6453 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6454 `tr' and `sed'. Mention that `broken' targets are not expected to
6455 build.
6456
6457 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6458
6459 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6460 Let PC point right after the prologue before looking up symbols.
6461
6462 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6463
6464 * i386-tdep.c (i386_register_virtual_type): Return
6465 builtin_type_vec128i for SSE registers.
6466
6467 * gdbtypes.h (builtin_type_vec128i): Declare.
6468
6469 * gdbtypes.c (build_builtin_type_vec128i): New function.
6470 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6471 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6472 (build_gdbtypes): Initialize new builtin vector types.
6473 (_initialize_gdbtypes): Register new vector types with gdbarch.
6474
6475 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6476
6477 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6478 since it has been multi-arch'd.
6479 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6480 Move Alpha and VAX multi-arch news entries to same section
6481 as other multi-arch news.
6482
6483 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6484
6485 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6486 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6487 static. Rename some register numbers to put them in ns32k-tdep
6488 private namespace.
6489 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6490 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6491 functions.
6492 (_initialize_ns32k_tdep): Use gdbarch_register.
6493 * ns32k-tdep.h: New file.
6494 * ns32knbsd-tdep.c: New file.
6495 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6496 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6497 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6498 REGISTER_BYTES, REGISTER_BYTE): Remove.
6499 * config/ns32k/tm-ns32k.h: New file.
6500 * config/ns32k/tm-umax.h: Remove.
6501
6502 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6505 ns32k_store_struct_return, ns32k_extract_return_value,
6506 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6507 functions.
6508 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6509 ns32k_saved_pc_after_call.
6510 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6511 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6512 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6513 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6514 ns32k_extract_struct_value_address.
6515
6516 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6517
6518 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6519 ns32k_fix_call_dummy): New.
6520 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6521 ns32k_call_dummy_words.
6522 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6523 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6524 CALL_DUMMY_NARGS): Remove.
6525 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6526
6527 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6528
6529 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6530 ns32k_frame_saved_pc, ns32k_frame_args_address,
6531 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6532 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6533 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6534 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6535 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6536 (BREAKPOINT): Remove..
6537 (FRAME_CHAIN): Define as ns32k_frame_chain.
6538 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6539 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6540 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6541 (FRAME_FIND_SAVED_REGS): Remove.
6542 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6543 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6544 (POP_FRAME): Define as ns32k_pop_frame.
6545
6546 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6547
6548 * ns32k-tdep.c (ns32k_register_byte_32082,
6549 ns32k_register_byte_32382, ns32k_register_raw_size,
6550 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6551 functions.
6552 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6553 ns32k_register_byte_32382.
6554 * config/ns32k/tm-umax.h: Update copyright years.
6555 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6556 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6557 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6558 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6559 (ns32k_get_enter_addr): Fix prototype.
6560
6561 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6562
6563 * ns32k-tdep.c: Update copyright years.
6564 (ns32k_register_name_32082): New function.
6565 (ns32k_register_name_32382): Ditto.
6566 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6567 (REGISTER_NAME): Define as ns32k_register_name_32382.
6568 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6569 (REGISTER_NAME): Define as ns32k_register_name_32082.
6570
6571 2002-05-24 Jim Blandy <jimb@redhat.com>
6572
6573 * dwarf2read.c (free_line_header): Use xfree, not free.
6574
6575 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6576
6577 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6578 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6579
6580 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6581
6582 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6583
6584 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6585
6586 From Ross Alexander at NEC Europe:
6587 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6588
6589 2002-05-23 Michael Snyder <msnyder@redhat.com>
6590
6591 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6592 for input, rather than parse_and_eval_address.
6593
6594 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6595
6596 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6597 * Makefile.in (sim_d10v_h): Update definition.
6598
6599 2002-05-24 Andrew Cagney <cagney@redhat.com>
6600
6601 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6602 change `2002-05-22 Michael Snyder' below.
6603 (d10v_push_arguments): Ditto.
6604 (d10v_extract_return_value): Ditto.
6605
6606 2002-05-23 Jim Blandy <jimb@redhat.com>
6607
6608 * macrotab.c (check_for_redefinition): Don't complain if the new
6609 definition is the same as the previous one. Take more arguments
6610 to allow the comparison.
6611 (macro_define_object, macro_define_function): Pass more arguments
6612 to check_for_redefinition.
6613
6614 2002-05-22 Michael Snyder <msnyder@redhat.com>
6615
6616 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6617 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6618 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6619 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6620 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6621 Add a temp variable to save a call (and a memory read).
6622 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6623 if possible (so that PC_IN_CALL_DUMMY will work).
6624
6625 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6626
6627 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6628
6629 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6630
6631 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6632 fde->cie_ptr.
6633 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6634 (dwarf2_build_frame_info): Add offset to fde->initial_location
6635 so that frames of shared libraries are mapped correctly.
6636 (execute_stack_op): Change type of 'result' from ULONGEST to
6637 CORE_ADDR.
6638
6639 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6640
6641 * config/alpha/tm-nbsd.h: Include solib.h.
6642
6643 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6644
6645 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6646 assumptions about the host's byte order.
6647
6648 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6649
6650 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6651 to dependency list.
6652 * alphanbsd-tdep.c: Include solib-svr4.h.
6653 * shnbsd-tdep.c: Ditto.
6654
6655 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6656
6657 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6658 nbsd-tdep.h to dependency list.
6659 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6660 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6661 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6662 nbsdaout.mh and nbsdelf.mh consistently.
6663 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6664 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6665 nbsdaout.mt and nbsdelf.mh consistently.
6666 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6667 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6668 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6669 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6670 a.out shared library stuff from here...
6671 * config/nm-nbsdaout.h: ...to here.
6672 * config/tm-nbsd.h: Remove.
6673 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6674 * config/arm/nbsd.mh: Remove.
6675 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6676 nbsd-tdep.o.
6677 * config/arm/nbsdaout.mh: New file.
6678 * config/arm/nbsdelf.mh: New file.
6679 * config/arm/nm-nbsdaout.h: New file.
6680 * config/i386/nbsd.mh: Remove.
6681 * config/i386/nbsd.mt: Remove.
6682 * config/i386/nbsdaout.mh: New file.
6683 * config/i386/nbsdaout.mt: New file.
6684 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6685 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6686 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6687 i386_register_u_addr): Remove.
6688 * config/i386/nm-nbsdaout.h: New file.
6689 * config/i386/nm-nbsdelf.h: Remove.
6690 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6691 (USE_STRUCT_CONVENTION): Remove.
6692 * config/i386/tm-nbsdaout.h: New file.
6693 * config/i386/tm-nbsdelf.h: Remove.
6694 * config/m68k/nbsd.mh: Remove.
6695 * config/m68k/nbsd.mt: Remove.
6696 * config/m68k/nbsdaout.mh: New file.
6697 * config/m68k/nbsdaout.mt: New file.
6698 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6699 * config/m68k/nm-nbsdaout.h: New file.
6700 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6701 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6702 * config/ns32k/nbsd.mh: Remove.
6703 * config/ns32k/nbsd.mt: Remove.
6704 * config/ns32k/nbsdaout.mh: New file.
6705 * config/ns32k/nbsdaout.mt: New file.
6706 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6707 * config/ns32k/nm-nbsdaout.h: New file.
6708 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6709 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6710 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6711 (SVR4_SHARED_LIBS): Remove.
6712 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6713 * config/sparc/nbsd.mh: Remove.
6714 * config/sparc/nbsd.mt: Remove.
6715 * config/sparc/nbsdaout.mh: New file.
6716 * config/sparc/nbsdaout.mt: New file.
6717 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6718 * config/sparc/nbsdelf.mt: New file.
6719 * config/sparc/nm-nbsdaout.h: New file.
6720 * config/sparc/nm-nbsdelf.h: Remove.
6721 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6722 * config/sparc/tm-nbsdaout.h: New file.
6723
6724 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6725
6726 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6727 mipsnbsd-tdep.c
6728 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6729
6730 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6731
6732 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6733 shnbsd-nat.c.
6734 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6735
6736 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6737
6738 * NEWS: Note new MIPS NetBSD native configuration.
6739 * configure.host (mips*-*-netbsd*): New host.
6740 * configure.tgt (mips*-*-netbsd*): New target.
6741 * mipsnbsd-nat.c: New file.
6742 * mipsnbsd-tdep.c: New file.
6743 * mipsnbsd-tdep.h: New file.
6744 * config/mips/nbsd.mh: New file.
6745 * config/mips/nbsd.mt: New file.
6746 * config/mips/nm-nbsd.h: New file.
6747 * config/mips/tm-nbsd.h: New file.
6748
6749 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6750
6751 * Makefile.in (SFILES): Add osabi.c.
6752 (COMMON_OBS): Add osabi.o.
6753 (osabi.o): New dependency list.
6754 * osabi.c: New file.
6755 * osabi.h: New file.
6756 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6757
6758 * Makefile.in (alpha_tdep_h): Define and use instead of
6759 alpha-tdep.h.
6760 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6761 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6762 Remove.
6763 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6764 * alpha-tdep.h: Include osabi.h.
6765 (alpha_abi): Remove.
6766 (gdbarch_tdep): Use generic OS ABI framework.
6767 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6768 gdbarch_register_osabi.
6769 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6770 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6771 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6772
6773 * Makefile.in (sh_tdep_h): Add osabi.h.
6774 * sh-tdep.h (sh_osabi): Remove.
6775 (gdbarch_tdep): Use generic OS ABI framework.
6776 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6777 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6778 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6779 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6780
6781 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6782 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6783 gdbarch_register_osabi.
6784 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6785 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6786 (get_elfosabi): Rename to...
6787 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6788 ABI framework support routines.
6789 (arm_gdbarch_init): Use generic OS ABI framework.
6790 (arm_dump_tdep): Likewise.
6791 (_initialize_arm_tdep): Likewise.
6792 * arm-tdep.h: Include osabi.h.
6793 (arm_abi): Remove.
6794 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6795 osabi member.
6796 (arm_gdbarch_register_os_abi): Remove prototype.
6797 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6798 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6799
6800 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6801 * mips-tdep.c: Include osabi.h.
6802 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6803 OS ABI framework.
6804
6805 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6806
6807 * h8300-tdep.c: Fix formatting.
6808
6809 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6810
6811 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6812 printing vector registers.
6813
6814 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6815
6816 From Fernando Nasser:
6817 * remote.c (remote_async_open_1): Re-throw the exception when the
6818 connection fails.
6819 (remote_cisco_open): Ditto.
6820 (remote_open_1): Ditto.
6821
6822 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6823
6824 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6825 (remote_start_remote): Add uiout parameter. Pass through to
6826 remote_start_remote_dummy.
6827 (remote_open_1): Use catch_exception instead of catch_errors.
6828 (remote_async_open_1): Ditto.
6829 (remote_cisco_open): Ditto.
6830
6831 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6832
6833 * remote.c (remote_start_remote): Replace PTR with void pointer.
6834 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6835 static.
6836
6837 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6838
6839 * gdb_indent.sh: Allow the script to be run in the sim directory.
6840
6841 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6842
6843 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6844 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6845
6846 * corelow.c (core_open): Only call set_gdbarch_from_file if
6847 exec_bfd is NULL.
6848
6849 2002-05-17 Andrey Volkov <avolkov@transas.com>
6850
6851 * h8300-tdep.c: Add support of EXR register
6852 * config/h8300/tm-h8300.h: Ditto.
6853
6854 2002-05-17 Andrey Volkov <avolkov@transas.com>
6855
6856 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6857
6858 2002-05-17 Andrey Volkov <avolkov@transas.com>
6859
6860 * h8300-tdep.c: Change literal regnums to REGNO.
6861
6862 2002-05-17 Jim Blandy <jimb@redhat.com>
6863
6864 * NEWS: Note addition of macro support.
6865
6866 Expand preprocessor macros in C expressions.
6867 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6868 (scan_macro_expansion, scanning_macro_expansion,
6869 finished_macro_expansion): New function declarations.
6870 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6871 variable declarations.
6872 * parser-defs.h (expression_context_pc): New declaration.
6873 * parse.c (expression_context_pc): New variable.
6874 (parse_exp_1): Set expression_context_pc, as well as
6875 expression_context_block.
6876 * c-exp.y (yylex): If we're not already reading the result of a
6877 macro expansion, try to macro-expand the next token. When we're
6878 done scanning a macro expansion, switch back to the mainline text.
6879 Commas and `if's in a macro's expansion don't terminate the input.
6880 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6881 (macro_original_text, macro_expanded_text,
6882 expression_macro_lookup_func, expression_macro_lookup_baton): New
6883 variables.
6884 (scan_macro_expansion, scanning_macro_expansion,
6885 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6886 c_preprocess_and_parse): New functions.
6887 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6888 c_preprocess_and_parse, instead of c_parse.
6889 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6890 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6891
6892 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6893
6894 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6895 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6896 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6897
6898 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6899
6900 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6901
6902 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * Makefile.in (sh_tdep_h): Define and use.
6905 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6906 register enum): Move to...
6907 * * sh-tdep.h: ...here.
6908 * sh-tdep.c: Include sh-tdep.h.
6909 * sh3-rom.c: Likewise.
6910 * shnbsd-tdep.c: Likewise.
6911
6912 2002-05-16 Michael Snyder <msnyder@redhat.com>
6913
6914 * arm-tdep.c: Spelling fix in comment.
6915
6916 2002-05-16 Jim Blandy <jimb@redhat.com>
6917
6918 Add commands for manually expanding macros and showing their
6919 definitions.
6920 * macrocmd.c, macroscope.c, macroscope.h: New files.
6921 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6922 (macroscope_h): New variable.
6923 (HFILES_NO_SRCDIR): Add macroscope.h.
6924 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6925 (macroscope.o, macrocmd.o): New rules.
6926
6927 Teach the Dwarf 2 reader to read macro information.
6928 * dwarf2read.c: #include "macrotab.h".
6929 (dwarf_macinfo_buffer): New variable.
6930 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6931 dwarf_macinfo_size.
6932 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6933 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6934 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6935 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6936 dwarf2_macro_spaces_in_definition): New complaints.
6937 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6938 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6939 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6940 the partial symbol table.
6941 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6942 from what's recorded in the partial symbol table.
6943 (read_file_scope): If the compilation unit has a
6944 `DW_AT_macro_info' attribute, read its macro information.
6945 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6946
6947 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6948
6949 Fix PR gdb/546
6950 * ser-tcp.c: Don't include <netinet/udp.h>.
6951
6952 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6953
6954 * MAINTAINERS: Update my email address.
6955
6956 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6957
6958 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6959 include file of the same name.
6960
6961 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6962
6963 * configure.tgt: Mark v850 as multi-arched.
6964 * config/v850/tm-v850.h: Remove file.
6965 * config/v850/v850.mt: Eliminate TM_FILE.
6966
6967 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6968
6969 * v850-tdep.c: Full multi-arch.
6970 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6971 Define GDB_MULTI_ARCH to 2.
6972
6973 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6974
6975 * p-exp.y (current_type): New static variable.
6976 Carries the type of the expression at the position that is parsed.
6977 (push_current_type, pop_current_type): Two new functions. Used
6978 to store/restore current_type in expression on specific tokens.
6979 (search_field): New static variable. Set to one after parsing a point
6980 as at that point only a FIELDNAME token should be searched.
6981 (FIELDNAME): New token. After a point only a token belonging to
6982 current_type type definition is allowed.
6983 (all over token rules): reset and change current_type according
6984 to rules.
6985 (exp '[' rule): insert implicit array index field if
6986 exp is a pascal string type.
6987
6988 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6989
6990 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6991 frame info. Use frame_info's saved_regs instead of matching member
6992 in extra_frame_info throughout.
6993 (v850_frame_init_saved_regs): New function.
6994 (v850_init_extra_frame_info): Move most functionality into
6995 v850_frame_init_saved_regs().
6996 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6997 (v850_frame_find_saved_regs): Remove declaration.
6998 (FRAME_FIND_SAVED_REGS): Remove definition.
6999 (v850_frame_init_saved_regs): Add declaration.
7000 (FRAME_INIT_SAVED_REGS): Add definition.
7001
7002 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7003
7004 * v850-tdep.c: Begin multi-arch'ing v850.
7005 (v850_target_architecture_hook): Remove function.
7006 (v850_gdbarch_init): New function. Add code previously in
7007 v850_target_architecture_hook().
7008 (_initialize_v850_tdep): Don't set target_architecture_hook.
7009 Call register_gdbarch_init() instead.
7010
7011 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7012
7013 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7014 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7015 (fixup_class_method_type): Likewise.
7016
7017 2002-05-15 Jim Blandy <jimb@redhat.com>
7018
7019 Add macro structures to GDB's symbol tables. Nobody puts anything
7020 in them yet.
7021 * symtab.h (struct symtab): New member: `macro_table'.
7022 * buildsym.h (pending_macros): New global variable.
7023 * buildsym.c: #include "macrotab.h".
7024 (buildsym_init): Initialize `pending_macros'.
7025 (end_symtab): If we found macro information while reading a CU's
7026 debugging info, do build a symtab structure for it. Make the
7027 symtab point to the macro information, and clear the
7028 `pending_macros' pointer which held it while we were reading the
7029 debug info.
7030 (really_free_pendings): Free any pending macro table.
7031 * objfiles.h (struct objfile): New member: `macro_cache'.
7032 * objfiles.c (allocate_objfile): Set allocate and free functions
7033 for the macro cache's objstack.
7034 (free_objfile): Empty the macro cache's obstack.
7035 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7036 set new allocate and free functions for it.
7037 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7038 free functions for the macro cache's objstack. (Why is this
7039 function building its own objfile?)
7040 * symmisc.c (print_objfile_statistics): Print statistics on the
7041 macro bcache.
7042 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7043
7044 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7045
7046 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7047 (REGISTER_U_ADDR): Delete definition.
7048 (arm_register_u_addr): Delete declaration.
7049
7050 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7051
7052 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7053 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7054
7055 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7056
7057 * regcache.c (register_valid): Revise comments refering to "Not
7058 available" and "unavailable".
7059 * frame.c (frame_register_read): Ditto.
7060 * findvar.c (value_of_register): Ditto.
7061
7062 2002-05-15 Andrew Cagney <cagney@redhat.com>
7063
7064 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7065 (remote-sim.o): Update dependencies.
7066 (d10v-tdep.o): Specify dependencies.
7067 (sim_d10v_h): Define.
7068
7069 2002-05-14 Jim Blandy <jimb@redhat.com>
7070
7071 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7072 * macrotab.c (macro_lookup_inclusion, find_definition,
7073 new_macro_table): Same.
7074
7075 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7076 not `! strcmp ()'. This is a dubious improvement.
7077 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7078
7079 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7080 although it's not necessary, to avoid a warning.
7081
7082 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7083
7084 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7085 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7086 TYPE_INSTANCE_FLAGS.
7087 (struct main_type): New.
7088 (struct type): Move most members to struct main_type. Change
7089 cv_type and as_type to new type_chain member. Add instance_flags.
7090 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7091 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7092 (finish_cv_type): Remove prototype.
7093 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7094 Set TYPE_CHAIN.
7095 (alloc_type_instance): New function.
7096 (smash_type): New function.
7097 (make_pointer_type, make_reference_type, make_function_type)
7098 (smash_to_member_type, smash_to_method_type): Call smash_type.
7099 (make_qualified_type): New function.
7100 (make_type_with_address_space): Call make_qualified_type.
7101 (make_cv_type): Likewise.
7102 (finish_cv_type): Remove unnecessary function.
7103 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7104 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7105 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7106 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7107 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7108 * hpread.c (hpread_read_struct_type): Likewise.
7109 * stabsread.c (read_struct_type): Likewise.
7110
7111 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7112
7113 * configure.tgt: Add a catch all sh* target, for cases like
7114 sh[2,3,4]-elf and sh-hms.
7115
7116 2002-05-14 Keith Seitz <keiths@redhat.com>
7117
7118 * event-loop.c (create_file_handler): Don't do anything but
7119 update data when we are given a fd which we are already
7120 monitoring.
7121
7122 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7123
7124 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7125 (update_context): Use __func__ in warnings.
7126
7127 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7128
7129 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7130 and tcp_close to net_open and net_close.
7131 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7132 using UDP if requested. Don't try to disable Nagle on UDP
7133 sockets.
7134 * remote.c (remote_serial_open): New function. Warn about UDP.
7135 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7136
7137 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7138
7139 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7140
7141 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7142
7143 * configure.tgt: Remove sh-hms target.
7144 * MAINTAINERS: Don't list sh-hms as a separate target.
7145
7146 2002-05-13 Jim Blandy <jimb@redhat.com>
7147
7148 Add first preprocessor macro-expansion files.
7149 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7150 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7151 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7152 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7153 (COMMON_OBS): Add macrotab.o, macroexp.o.
7154 (macroexp.o, macrotab.o): New rules.
7155
7156 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7157
7158 * config/m88k/tm-m88k.h: Update copyright.
7159 (m88k_target_write_pc): Declare
7160 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7161 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7162 (SHIFT_INST_REGS): Update definition.
7163 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7164 using old definition of TARGET_WRITE_PC.
7165 * regcache.c (generic_target_write_pc): Delete code handling
7166 NNPC_REGNUM.
7167 * gdbarch.sh (NNPC_REGNUM): Delete.
7168 * gdbarch.h, gdbarch.c: Regenerate.
7169
7170 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7171
7172 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7173 builtin reg number.
7174
7175 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7176
7177 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7178 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7179 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7180 access macros.
7181 * c-typeprint.c (cp_type_print_method_args): Likewise.
7182 (c_type_print_args): Likewise.
7183 * d10v-tdep.c (d10v_push_arguments): Likewise.
7184 (d10v_extract_return_value): Likewise.
7185 * expprint.c (print_subexp): Likewise.
7186 * gdbtypes.c (lookup_primitive_typename): Likewise.
7187 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7188 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7189 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7190 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7191 (TYPE_VECTOR): Likewise.
7192 * hpread.c (hpread_read_struct_type)
7193 (fix_static_member_physnames, fixup_class_method_type)
7194 (hpread_type_lookup): Likewise.
7195 * mdebugread.c (parse_symbol, parse_type): Likewise.
7196 * p-lang.c (is_pascal_string_type): Likewise.
7197 * valops.c (hand_function_call): Likewise.
7198 * x86-64-tdep.c (classify_argument): Likewise.
7199
7200 * hpread.c (hpread_read_function_type)
7201 (hpread_read_doc_function_type): Call replace_type.
7202 * dstread.c (create_new_type): Delete.
7203 (decode_dst_structure, process_dst_function): Call alloc_type.
7204 Use type access macros.
7205
7206 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7207
7208 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7209 the're not supported by the current architecture.
7210 (i387_fill_fxsave): Likewise.
7211
7212 2002-05-12 Fred Fish <fnf@redhat.com>
7213
7214 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7215 sect_index_xxx members to index the first slot in section_offsets
7216 if all of the section_offsets are zero.
7217
7218 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7219
7220 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7221 checked in with last change.
7222
7223 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7224
7225 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7226 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7227 config.sub.
7228
7229 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7230
7231 * Makefile.in: Update dependencies.
7232
7233 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7234
7235 * language.c (local_hex_string_custom): Simplify. Do not depend
7236 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7237
7238 * memattr.c (mem_info_command): Replace calls to
7239 longest_local_hex_string and longest_local_hex_string_custom.
7240 * buildsym.c (make_blockvector): Ditto.
7241 * solib.c (info_sharedlibrary_command): Ditto.
7242 * tracepoint.c (tracepoints_info): Ditto.
7243 * symtab.c (print_msymbol_info): Ditto.
7244
7245 * language.c (local_hex_string): Delete.
7246 (local_hex_string_custom): Delete.
7247 (longest_local_hex_string): Rename to local_hex_string.
7248 (longest_local_hex_string_custom): Rename to
7249 local_hex_string_custom.
7250 * language.h (local_hex_string): Change parameter type to LONGEST.
7251 (local_hex_string_custom): Ditto.
7252 (longest_local_hex_string): Delete declaration.
7253 (longest_local_hex_string_custom): Ditto.
7254
7255 * solib.c: Update copyright.
7256 * memattr.c: Update copyright.
7257
7258 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7259
7260 * arch-utils.h (legacy_register_to_value): Declare.
7261 (legacy_value_to_register): Declare.
7262 (legacy_convert_register_p): Declare.
7263 * arch-utils.c (legacy_register_to_value): New function.
7264 (legacy_value_to_register): New function.
7265 (legacy_convert_register_p): New function.
7266
7267 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7268 (VALUE_TO_REGISTER): Define.
7269 (CONVERT_REGISTER_P): Define.
7270 * gdbarch.h, gdbarch.c: Regenerate.
7271
7272 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7273 VALUE_TO_REGISTER.
7274 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7275 CONVERT_REGISTER_P.
7276
7277 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7278 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7279
7280 * Makefile.in: Update dependencies for valops.c.
7281 * valops.c: Include "gdb_assert.h".
7282 (typecmp): Skip THIS parameter to methods.
7283 (find_method_list): Remove static_memfuncp argument,
7284 update callers. Check for stub methods.
7285 (find_value_oload_method_list): Don't set *static_memfuncp.
7286 (find_overload_match): Don't check for stub methods. Assert
7287 that methods are not stubbed. Handle static methods.
7288 (value_find_oload_method_list): Remove static_memfuncp argument.
7289 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7290 to the argument list for static stub methods.
7291 * value.h (value_find_oload_method_list): Update prototype.
7292
7293 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7294
7295 * arch-utils.h (generic_register_size): Declare.
7296 (generic_register_raw_size, generic_register_virtual_size): Delete
7297 declarations.
7298 * arch-utils.c (generic_register_raw_size): Delete.
7299 (generic_register_size): New function.
7300 (generic_register_virtual_size): Delete.
7301
7302 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7303 default generic_register_size.
7304 * gdbarch.h, gdbarch.c: Re-generate.
7305
7306 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7307 register_virtual_size.
7308 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7309 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7310
7311 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7312
7313 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7314 * gdbarch.h, gdbarch.c: Regenerate.
7315 * gnu-v3-abi.c: Update copyright.
7316 (vtable_address_point_offset): Update.
7317 (gnuv3_rtti_type): Update.
7318 (gnuv3_baseclass_offset): Update.
7319 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7320 (init_fetch_link_map_offsets): Update.
7321 * remote.c (get_remote_state): Update.
7322
7323 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7324
7325 * TODO: Remove value_headof/value_from_vtable_info comment.
7326 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7327 * values.c (value_headof, value_from_vtable_info): Delete.
7328 * value.h (value_from_vtable_info): Delete prototype.
7329
7330 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7331
7332 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7333 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7334 $(gdb_regex_h).
7335 (gdb_assert_h): Define.
7336 (gdb_wait_h): Define.
7337 (gdb_regex_h): Define.
7338
7339 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7340
7341 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7342 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7343
7344 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * nbsd-tdep.c: Fix comment.
7347
7348 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7349
7350 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7351 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7352 (nbsd-tdep.o): New dependency list.
7353 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7354 nbsd-tdep.h.
7355 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7356 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7357 * nbsd-tdep.c: New file.
7358 * nbsd-tdep.h: New file.
7359 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7360 nbsd-tdep.h.
7361 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7362 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7363 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7364 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7365
7366 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7367
7368 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7369 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7370 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7371 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7372 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7373 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7374
7375 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7376
7377 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7378 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7379 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7380 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7381 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7382 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7383 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7384
7385 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7388 fetch_elfcore_registers to...
7389 * i386nbsd-tdep.c: ...here.
7390 (i386nbsd_use_struct_convention): Rename to...
7391 (i386nbsd_aout_use_struct_convention): ...this.
7392 (i386nbsd_supply_reg): New function.
7393 (i386nbsd_fill_reg): New function.
7394 (fetch_core_registers): Use i386nbsd_supply_reg.
7395 (fetch_elfcore_registers): Likewise.
7396 (_initialize_i386nbsd_tdep): New function.
7397 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7398 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7399 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7400 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7401 (i386nbsd_aout_use_struct_convention): ...this.
7402
7403 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7404
7405 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7406 (store_inferior_registers): Use shnbsd_fill_reg.
7407 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7408 sh_nbsd_supply_register): Collapse into...
7409 (shnbsd_supply_reg): ...this.
7410 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7411 (shnbsd_fill_reg): ...this.
7412 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7413 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7414 (fetch_core_registers): Use shnbsd_supply_reg.
7415 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7416 (sh_nbsd_core_fns): Rename to...
7417 (shnbsd_core_fns): ...this.
7418 (sh_nbsd_elfcore_fns): Rename to...
7419 (shnbsd_elfcore_fns): ...this.
7420 (sh_nbsd_init_abi): Rename to...
7421 (shnbsd_init_abi): ...this.
7422 (_initialize_sh_nbsd_tdep): Rename to...
7423 (_initialize_shnbsd_tdep): ...this.
7424 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7425 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7426 sh_nbsd_fill_register): Remove prototypes.
7427 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7428
7429 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7430
7431 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7432 (i387-nat.o): Delete dependency list.
7433 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7434 (x86-64-linux-nat.o): Likewise.
7435 * i387-nat.c: Delete file, moving contents to...
7436 * i387-tdep.c: ...here.
7437 * i387-nat.h: Rename...
7438 * i387-tdep.h: ...to this.
7439 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7440 * i386-linux-nat.c: Likewise.
7441 * i386bsd-nat.c: Likewise.
7442 * i386gnu-nat.c: Likewise.
7443 * i386nbsd-nat.c: Likewise.
7444 * i386v4-nat.c: Likewise.
7445 * x86-64-linux-nat.c: Likewise.
7446 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7447 * config/i386/go32.mh (NATDEPFILES): Likewise.
7448 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7449 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7450 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7451 * config/i386/linux.mh (NATDEPFILES): Likewise.
7452 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7453 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7454 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7455 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7456
7457 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7458
7459 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7460 (alphanbsd-nat.o): Remove dependency list.
7461 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7462 * alphanbsd-nat.c: Delete. Contents moved to...
7463 * alphanbsd-tdep.c: ...here.
7464 (_initialize_alphanbsd_tdep): Register core functions.
7465 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7466
7467 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7468
7469 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7470 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7471 (alphanbsd-nat.o): Likewise.
7472 (alphabsd-tdep.o): New dependency list.
7473 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7474 (fill_gregset): Use alphabsd_fill_reg.
7475 (supply_fpregset): Use alphabsd_supply_fpreg.
7476 (fill_fpregset): Use alphabsd_fill_fpreg.
7477 (fetch_inferior_registers): Use struct reg and struct fpreg
7478 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7479 and alphabsd_supply_fpreg.
7480 (store_inferior_registers): Use struct reg and struct fpreg
7481 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7482 and alphabsd_fill_fpreg.
7483 * alphabsd-tdep.c: New file.
7484 * alphabsd-tdep.h: New file.
7485 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7486 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7487 alphabsd_supply_fpreg.
7488 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7489 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7490
7491 2002-05-11 Eric Christopher <echristo@redhat.com>
7492
7493 * mips-tdep.c (mips_double_register_type): Fix thinko.
7494 (mips_single_register_type): Ditto.
7495 * MAINTAINERS: Add self.
7496
7497 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7498
7499 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7500 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7501 right thing on architectures with different endianness and/or
7502 integer sizes.
7503
7504 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7505
7506 From Christian Limpach <chris@Pin.LU>
7507 * configure.in: Change sed expression which comments out
7508 NATDEPFILES to also comment out continuation lines.
7509 * configure: Regenerate.
7510
7511 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7512
7513 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7514 big patch.
7515
7516 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7517
7518 * sh-tdep.c: Include correct file.
7519
7520 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7521
7522 New support for sh64-elf (sh5) target.
7523
7524 * configure.tgt: For sh64-elf target, default to sh-elf.
7525
7526 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7527 (struct gdbarch_tdep): Add new fields for new registers and ABI
7528 info.
7529
7530 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7531 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7532 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7533 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7534 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7535 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7536 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7537 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7538 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7539 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7540 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7541 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7542 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7543 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7544 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7545 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7546 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7547 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7548 sign_extend, sh64_nofp_frame_init_saved_regs,
7549 sh64_init_extra_frame_info, sh64_get_saved_register,
7550 sh64_extract_struct_value_address, sh64_pop_frame,
7551 sh64_push_arguments, sh64_extract_return_value,
7552 sh64_store_return_value, sh64_show_media_regs,
7553 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7554 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7555 sh_sh64_register_virtual_type,
7556 sh_sh64_register_convert_to_virtual,
7557 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7558 sh64_register_read, sh64_pseudo_register_write,
7559 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7560 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7561 sh64_do_pseudo_register, sh_compact_do_registers_info,
7562 sh64_do_registers_info, sh_gdbarch_init): New functions.
7563
7564 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7565
7566 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7567
7568 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7569
7570 * linespec.c (decode_line_1): Check for a double quote after
7571 a filename correctly.
7572
7573 2002-05-10 Jim Blandy <jimb@redhat.com>
7574
7575 Properly track the size of the current objfile's .debug_line section.
7576 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7577 (DWARF_LINE_SIZE): New macro.
7578 (dwarf2_build_psymtabs_hard): Record the line section's size in
7579 the partial symbol table.
7580 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7581 symbol table.
7582
7583 2002-05-10 Petr Sorfa <petrs@caldera.com>
7584
7585 * ia64-tdep.c: Handle breakpoints on L instruction type
7586 in MLX instruction bundle by moving the breakpoint to
7587 the third slot (X instruction type) as L holds only data.
7588
7589 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7590
7591 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7592 (process_one_symbol): Complain about discarding local symbols
7593 due to a misplaced N_LBRAC entry.
7594
7595 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7596
7597 From Daniel Berlin <dan@cgsoftware.com>
7598 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7599 decrease the depth we are at, in the case of templates.
7600
7601 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * mips-tdep.c (mips_float_register_type): New function.
7604 (mips_double_register_type): New function.
7605 (mips_print_register): Use them.
7606 (do_fp_register_row): Likewise.
7607
7608 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7609
7610 * signals/signals.c (signals): Remove conditional compilation around
7611 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7612 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7613
7614 2002-05-09 Michael Snyder <msnyder@redhat.com>
7615
7616 * remote-rdp.c (remote_rdp_can_run): Remove.
7617
7618 2002-05-09 Tom Tromey <tromey@redhat.com>
7619
7620 * jv-valprint.c (java_val_print): Handle `char' as a special case
7621 of TYPE_CODE_INT.
7622
7623 2002-05-09 Michael Snyder <msnyder@redhat.com>
7624
7625 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7626 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7627 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7628 str r(0123),[sp,#nn].
7629 (arm_skip_prologue): Ditto. Also make disassembly
7630 order-independent by placing it in a loop.
7631
7632 2002-05-06 Michael Snyder <msnyder@redhat.com>
7633
7634 * stabsread.c (read_type): Add recognition for new attribute:
7635 "@V;" means that an array type is actually a vector.
7636 This is analogous to the vector flag that's been added to dwarf2.
7637
7638 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7639
7640 * i386-tdep.h (i386_abi): New enum.
7641 (struct gdbarch_tdep): Replace os_ident member with abi.
7642 (i386_gdbarch_register_os_abi): New prototype.
7643 * i386-tdep.c (i386_abi_names): New array.
7644 (process_note_abi_tag_sections): Removed.
7645 (process_note_sections): New function.
7646 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7647 (struct i386_abi_handler): New struct.
7648 (i386_abi_handler_list): New variable.
7649 (i386_gdbarch_register_os_abi): New function.
7650 (i386_gdbarch_init): Adapt for the changes given above.
7651
7652 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7653
7654 * gregset.h: Say "GNU/Linux".
7655
7656 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7657
7658 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7659 (build_gdbtypes): Build builtin_type_v2_float.
7660 (_initialize_gdbtypes): Register new builtin type.
7661
7662 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7663
7664 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7665 (clear_gdbarch_swap): New function.
7666 (initialize_non_multiarch): Call.
7667 (gdbarch_update_p): Before calling init(), swap out and clear the
7668 existing architecture.
7669 * gdbarch.c: Regenerate.
7670
7671 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7672
7673 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7674 alphanbsd-tdep.c.
7675
7676 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7677
7678 * sh-nbsd-nat.c: Rename to...
7679 * shnbsd-nat.c: ...this.
7680 * sh-nbsd-tdep.c: Rename to...
7681 * shnbsd-tdep.c: ...this.
7682 * sh-nbsd-tdep.h: Rename to...
7683 * shnbsd-tdep.h: ...this.
7684 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7685 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7686
7687 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7688
7689 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7690 concatenation for command help messages.
7691
7692 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7693
7694 * NEWS: Note new sh*-*-netbsdelf* configuration.
7695 * configure.host: Set gdb_host_cpu to sh for all sh*.
7696 (sh*-*-netbsdelf*): New host.
7697 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7698 (sh*-*-netbsdelf*): New target.
7699 * sh-nbsd-nat.c: New file.
7700 * sh-nbsd-tdep.c: New file.
7701 * sh-nbsd-tdep.h: New file.
7702 * config/sh/nbsd.mh: New file.
7703 * config/sh/nbsd.mt: New file.
7704 * config/sh/nm-nbsd.h: New file.
7705 * config/sh/tm-nbsd.h: New file.
7706
7707 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * sh-tdep.c (sh_osabi_names): Declare.
7710 (process_note_abi_tag_sections): New function.
7711 (get_elfosabi): Ditto.
7712 (sh_gdbarch_register_os_abi): Ditto.
7713 (sh_dump_tdep): Ditto.
7714 _initialize_sh_tdep): Use gdbarch_register to register
7715 sh_gdbarch_init and sh_dump_tdep.
7716 * config/sh/tm-sh.h (sh_osabi): Declare.
7717 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7718
7719 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7720
7721 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7722 (thumb_scan_prologue): Ditto.
7723 (arm_find_callers_reg): Ditto.
7724 (arm_frame_chain): Ditto.
7725 (arm_init_extra_frame_info): Ditto.
7726 (arm_frame_saved_pc): Ditto.
7727 (arm_pop_frame): Ditto.
7728 (arm_push_return_address): New function.
7729 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7730 call_dummy_location, call_dummy_breakpoint_offset_p,
7731 call_dummy_breakpoint_offset, call_dummy_p,
7732 call_dummy_stack_adjust_p, call_dummy_words,
7733 sizeof_call_dummy_words, call_dummy_start_offset,
7734 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7735 call_dummy_address, push_return_address and push_dummy_frame for
7736 generic dummy frames.
7737
7738 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7739
7740 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7741 size computation for alloca.
7742 (sh_fp_frame_init_saved_regs): Likewise.
7743
7744 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7745
7746 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7747 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7748 * arm-tdep.c (arm_store_return_value): Use them.
7749 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7750 * remote-rdp.c (remote_rdp_fetch_register): Use
7751 ARM_MAX_REGISTER_RAW_SIZE.
7752 (remote_rdp_store_register): Likewise.
7753
7754 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7755
7756 * dwarf2cfi.c: Code cleanup, removed unused variables,
7757 added default labels to switch {} statements.
7758 * x86-64-tdep.c: Ditto.
7759 * x86-64-linux-nat.c: Ditto.
7760
7761 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7762
7763 * solib.h: Protect against multiple inclusion.
7764
7765 2002-05-06 Jim Blandy <jimb@redhat.com>
7766
7767 Add first preprocessor macro-expansion files.
7768 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7769 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7770 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7771 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7772 (COMMON_OBS): Add macrotab.o, macroexp.o.
7773 (macroexp.o, macrotab.o): New rules.
7774
7775 Separate the job of reading the line number info statement program
7776 header (...expialidocious) out into its own function.
7777 * dwarf2read.c (struct line_head, struct filenames, struct
7778 directories): Replace with...
7779 (struct line_header): New structure, containing the full
7780 contents of the statement program header, including the
7781 include directory and file name tables.
7782 (read_file_scope): If we have line number info, instead of just
7783 calling dwarf_decode_lines to do all the work, call
7784 dwarf_decode_line_header first to get a `struct line_header'
7785 containing the data in the statement program header, and then
7786 pass that to dwarf_decode_lines, which will pick up where that
7787 left off. Be sure to clean up the `struct line_header' object.
7788 (dwarf_decode_line_header, free_line_header, add_include_dir,
7789 add_file_name): New functions.
7790 (dwarf_decode_lines): Move all the code to read the statement
7791 program header into dwarf_decode_line_header. Take the line
7792 header it built as the first argument, instead of the offset to
7793 the compilation unit's line number info. Use the new `struct
7794 line_header' type instead of the old structures. No need to do
7795 cleanups here now, since we don't allocate anything.
7796 (dwarf2_statement_list_fits_in_line_number_section,
7797 dwarf2_line_header_too_long): New complaints.
7798
7799 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7800
7801 * gdbtypes.c (init_vector_type): New function.
7802 (build_builtin_type_vec128): Simplify the representation of SIMD
7803 registers.
7804 (build_gdbtypes): Initialize new builtin vector types.
7805 (_initialize_gdbtypes): Register new vector types with gdbarch.
7806 (builtin_type_v4_float, builtin_type_v4_int32,
7807 builtin_type_v8_int16, builtin_type_v16_int8,
7808 builtin_type_v2_int32, builtin_type_v4_int16,
7809 builtin_type_v8_int8): New (renamed) SIMD types.
7810
7811 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7812
7813 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7814 (i387_fill_fxsave): Likewise.
7815
7816 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7817
7818 * alpha-tdep.c (alpha_extract_return_value): Don't use
7819 non-constant array size in prototype.
7820
7821 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7822
7823 From Brian Taylor <briant at model dot com>:
7824 * ui-out.c (ui_out_field_core_addr): Use the function
7825 longest_local_hex_string_custom'to format addresses > 32 bits
7826 wide.
7827
7828 * ui-out.c (ui_out_field_core_addr): Update comment.
7829
7830 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7831
7832 * stack.c (select_and_print_frame): Make static. Delete the
7833 parameter `level'.
7834 (func_command): Update call.
7835 (select_frame_command): Delete code computing the frame level.
7836 * frame.h (select_and_print_frame): Delete declaration.
7837
7838 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7839
7840 * sparc-tdep.c (sparc_get_saved_register): Comment why
7841 get_prev_frame call is safe.
7842
7843 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7844
7845 * frame.h (select_frame): Delete level parameter.
7846 * stack.c (select_frame): Update. Use frame_relative_level to
7847 obtain the frame's level.
7848 (select_and_print_frame): Update call.
7849 (select_frame_command): Ditto.
7850 (up_silently_base): Ditto.
7851 (down_silently_base): Ditto.
7852 * ocd.c (ocd_start_remote): Ditto.
7853 * remote-rdp.c (remote_rdp_open): Ditto.
7854 * remote-mips.c (mips_initialize): Ditto.
7855 (common_open): Ditto.
7856 * remote-e7000.c (e7000_start_remote): Ditto.
7857 * m3-nat.c (select_thread): Ditto.
7858 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7859 (child_get_current_exception_event): Ditto.
7860 * varobj.c (varobj_create): Ditto.
7861 (varobj_update): Ditto.
7862 (c_value_of_root): Ditto.
7863 * tracepoint.c (finish_tfind_command): Ditto.
7864 * corelow.c (core_open): Ditto.
7865 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7866 * thread.c (info_threads_command): Ditto.
7867 (switch_to_thread): Ditto.
7868 * infrun.c (normal_stop): Ditto.
7869 (restore_selected_frame): Ditto.
7870 (restore_inferior_status): Ditto.
7871 * breakpoint.c (insert_breakpoints): Ditto.
7872 (watchpoint_check): Ditto.
7873 (bpstat_stop_status): Ditto.
7874 (do_enable_breakpoint): Ditto.
7875 * blockframe.c (flush_cached_frames): Ditto.
7876 (reinit_frame_cache): Ditto.
7877
7878 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7879
7880 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7881 maintainer.
7882
7883 2002-05-04 Jim Blandy <jimb@redhat.com>
7884
7885 * gdbtypes.c (replace_type): Doc fix.
7886
7887 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7888
7889 * valprint.c (strcat_longest): Delete commented out function.
7890 Update copyright.
7891
7892 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7893
7894 * MAINTAINERS: Mark a29k as deleted.
7895 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7896 Move new configurations to the top.
7897 * configure.tgt: Remove a29k.
7898 * config/a29k/tm-vx29k.h: Delete.
7899 * config/a29k/vx29k.mt: Delete.
7900 * config/a29k/tm-a29k.h: Delete.
7901 * config/a29k/a29k-udi.mt: Delete.
7902 * config/a29k/a29k.mt: Delete.
7903 * a29k-tdep.c: Delete.
7904 * remote-udi.c: Delete.
7905 * remote-mm.c: Delete.
7906 * remote-eb.c: Delete.
7907 * remote-adapt.c: Delete.
7908 * Makefile.in: Remove obsolete code.
7909 * config/s390/s390x.mt: Ditto.
7910 * config/s390/s390.mt: Ditto.
7911 * config/sparc/sparclynx.mh: Ditto.
7912 * config/sparc/linux.mh: Ditto.
7913 * config/pa/hppaosf.mh: Ditto.
7914 * config/pa/hppabsd.mh: Ditto.
7915 * config/ns32k/nbsd.mt: Ditto.
7916 * config/mips/vr5000.mt: Ditto.
7917 * config/m68k/sun3os4.mh: Ditto.
7918 * config/m68k/nbsd.mt: Ditto.
7919 * config/m68k/m68klynx.mh: Ditto.
7920 * config/m32r/m32r.mt: Ditto.
7921 * config/i386/x86-64linux.mt: Ditto.
7922 * config/i386/nbsdelf.mt: Ditto.
7923 * config/i386/nbsd.mt: Ditto.
7924 * config/i386/i386lynx.mh: Ditto.
7925
7926 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7927
7928 * target.c (debug_print_register): New function. Handle oversize
7929 registers.
7930 (debug_to_fetch_registers): Call.
7931 (debug_to_store_registers): Call.
7932
7933 2002-05-03 Jim Blandy <jimb@redhat.com>
7934
7935 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7936 (read_type): Doc fix.
7937 * gdbtypes.c (replace_type): Doc fix.
7938
7939 * stabsread.c (multiply_defined_struct): New complaint.
7940 (read_struct_type): If the type we were passed isn't empty, or
7941 incomplete, don't read the new struct type into it; complain,
7942 and return the original type unchanged. Take a new `type_code'
7943 argument, which is the type code for the new type.
7944 (read_type): Rather than storing the type's type code here, pass
7945 it as an argument to read_struct_type, and let that take care of
7946 storing it. That way, we don't overwrite the original type code,
7947 so read_struct_type can use it to decide whether we're overwriting
7948 something we shouldn't.
7949 (complain_about_struct_wipeout): New function.
7950
7951 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7952
7953 * gdbarch.sh: Assert that gdbarch is non-NULL.
7954 * gdbarch.c: Regenerate.
7955
7956 2002-05-03 Jason Merrill <jason@redhat.com>
7957
7958 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7959 and return NULL.
7960
7961 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7962
7963 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7964 (x86_64_dwarf2gdb_regno_map_length),
7965 (x86_64_dwarf2_reg_to_regnum): Added.
7966 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7967 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7968 (_initialize_x86_64_tdep): Synced with the change above.
7969 (x86_64_skip_prologue): Reformulated message.
7970
7971 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7972
7973 * f-exp.y: Also use new prev_lexptr variable
7974 to improve error reporting. Based on Michael Snyder
7975 2002-04-24 dated patch to c-exp.y.
7976 * jv-exp.y: Likewise.
7977 * m2-exp.y: Likewise.
7978
7979 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7980
7981 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7982 we are dealing with vectors.
7983
7984 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7985
7986 * config/m68k/tm-nbsd.h: Obvious fix,
7987 correct machine name.
7988
7989 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7990
7991 * p-typeprint.c (pascal_type_print_base): Add support
7992 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7993
7994 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7995
7996 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7997 for fondamental pascal 'char' type.
7998
7999 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8000
8001 * p-lang.h (is_pascal_string_type): Declaration changed,
8002 new sixth argument of type char ** added.
8003 * p-lang.c (is_pascal_string_type): Implementation
8004 changed. Args length_pos, length_size, string_pos, char_size
8005 can now be NULL. New argument arrayname set to the field
8006 name of the char array. Return value set to char array
8007 field index plus one.
8008 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8009 is_pascal_string_type function.
8010
8011 2002-05-02 Andrew Cagney <cagney@redhat.com>
8012
8013 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8014 <cagney@redhat.com> change.
8015 * gdbarch.c: Regenerate.
8016
8017 2002-05-02 Andrew Cagney <cagney@redhat.com>
8018
8019 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8020 before probing for a new one. Detect errorenous gdbarch_init
8021 functions.
8022 * gdbarch.c: Regenerate.
8023
8024 2002-05-01 Andrew Cagney <cagney@redhat.com>
8025
8026 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8027 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8028 * config/v850/tm-v850.h: Ditto. Update copyright.
8029
8030 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8031
8032 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8033 current_gdbarch.
8034
8035 2002-04-30 Michael Snyder <msnyder@redhat.com>
8036
8037 * arm-tdep.c: Whitespace clean-ups.
8038 (arm_skip_prologue): Fix thinko; two lines
8039 should have been removed as part of 4/24 change.
8040
8041 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8042
8043 * rs6000-tdep.c: Added comment describing how fpscr register
8044 numbers were chosen.
8045
8046 2002-04-30 Michael Snyder <msnyder@redhat.com>
8047
8048 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8049
8050 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8051
8052 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8053 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8054 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8055
8056 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8057
8058 From Louis Hamilton <hamilton@redhat.com>:
8059 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8060 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8061 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8062 not bfd-private xcoff data, to determine wordsize.
8063 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8064
8065 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8066
8067 GDB 5.2 released from 5.2 branch.
8068
8069 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8070
8071 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8072 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8073 (x86_64_register_info_table): Added comments with register numbers.
8074
8075 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8076
8077 * rs6000-tdep.c (rs6000_extract_return_value,
8078 rs6000_store_return_value): Handle returning vectors.
8079 (rs6000_gdbarch_init): Use
8080 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8081 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8082 New function.
8083 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8084 vectors.
8085 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8086 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8087
8088 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8089
8090 * hpread.c (hpread_psymtab_to_symtab_1,
8091 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8092 with fprintf_unfiltered (gdb_stderr,...).
8093
8094 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8095
8096 * remote-array.c (printf_monitor, write_monitor,
8097 array_insert_breakpoint, array_remove_breakpoint ):
8098 Replace fprintf (stderr,...
8099 with fprintf_unfiltered (gdb_stderr,....
8100 * remote-es.c: Likewise.
8101 * remote-os9k.c: Likewise.
8102 * remote-st.c: Likewise.
8103
8104 2002-04-28 Andreas Schwab <schwab@suse.de>
8105
8106 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8107 linux-proc.o and gcore.o.
8108
8109 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8110
8111 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8112 code without frame pointers.
8113
8114 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8115
8116 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8117 ON_STACK is needed.
8118
8119 2002-04-26 Ben Elliston <bje@redhat.com>
8120
8121 * target.c (do_xfer_memory): Correct reference to the new option
8122 "trust-readonly-sections".
8123
8124 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8125
8126 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8127 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8128 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8129 vectors.
8130 (read_array_type): Record the fact that this array type is really a
8131 vector (i.e. are passed in by value).
8132
8133 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8134
8135 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8136 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8137 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8138 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8139 * alpha-linux-tdep.c: Include frame.h.
8140 (alpha_linux_sigcontext_addr): New function.
8141 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8142 alpha_linux_sigcontext_addr.
8143 * alpha-osf1-tdep.c: Include gdbcore.h.
8144 (alpha_osf1_sigcontext_addr): New function.
8145 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8146 alpha_osf1_sigcontext_addr.
8147 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8148 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8149
8150 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8151
8152 * stack.c (selected_frame_level):
8153 (select_frame): Do not set selected_frame_level.
8154 * frame.h (selected_frame_level): Delete declaration.
8155
8156 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8157
8158 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8159 convert_from_func_ptr-addr when AIX / PowerOpen.
8160
8161 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8162
8163 * valops.c (hand_function_call): Call
8164 generic_save_call_dummy_addr.
8165 * frame.h (generic_save_call_dummy_addr): Declare.
8166 * blockframe.c (struct dummy_frame): Add fields call_lo and
8167 call_hi.
8168 (generic_find_dummy_frame): Check for PC in range call_lo to
8169 call_hi instead of entry_point_address.
8170 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8171 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8172 (generic_save_call_dummy_addr): New function.
8173
8174 2002-04-24 David S. Miller <davem@redhat.com>
8175
8176 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8177 sparc_skip_prologue.
8178 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8179 information to find prologue when possible.
8180 (sparc_prologue_frameless_p): Call examine_prologue directly.
8181 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8182 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8183 second argument.
8184 (SKIP_PROLOGUE): Likewise.
8185
8186 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8189 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8190 indicate that the condition it was testing is always true.
8191 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8192 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8193 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8194
8195 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8196
8197 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8198 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8199 tdep->jb_pc and tdep->jb_elt_size.
8200 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8201 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8202 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8203 * alpha-nat.c (get_longjmp_target): Remove.
8204 (JB_ELEMENT_SIZE): Ditto.
8205 (JB_PC): Ditto.
8206 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8207 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8208 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8209 to alpha_get_longjmp_target.
8210 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8211 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8212 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8213
8214 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8215
8216 * README: Update to GDB 5.2.
8217
8218 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8219
8220 * gdbarch.sh (LC_ALL): Set to `c'.
8221
8222 2002-04-25 Theodore A. Roth <troth@verinet.com>
8223
8224 * avr-tdep.c: Ran through gdb_indent.sh.
8225
8226 2002-04-25 Theodore A. Roth <troth@verinet.com>
8227
8228 * MAINTAINERS: Add myself as AVR maintainer.
8229 * NEWS: Note new target avr.
8230
8231 2002-04-25 Theodore A. Roth <troth@verinet.com>
8232
8233 * Makefile.in: Add support for AVR target.
8234 * configure.tgt: Add support for AVR target.
8235 * avr-tdep.c: New file
8236 * config/avr/avr.mt: New file.
8237
8238 2002-04-25 Theodore A. Roth <troth@verinet.com>
8239
8240 * MAINTAINERS: Add myself to write-after-approval.
8241
8242 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8243
8244 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8245 with fprintf_unfiltered (gdb_stderr,....
8246
8247 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8248
8249 Fix PR gdb/508.
8250 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8251
8252 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8253
8254 * p-exp.y: Also use new prev_lexptr variable
8255 to improve error reporting. Based on Michael Snyder
8256 2002-04-24 dated patch to c-exp.y.
8257
8258 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8259
8260 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8261 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8262 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8263 to 0.
8264 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8265 and struct value.
8266 (FUNCTION_START_OFFSET): Remove.
8267 (BREAKPOINT): Ditto.
8268
8269 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8270
8271 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8272 * NEWS: Ditto.
8273
8274 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8275
8276 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8277 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8278 alpha_linux_pc_in_sigtramp.
8279 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8280 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8281 alpha_osf1_pc_in_sigtramp.
8282 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8283 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8284 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8285 alphafbsd_pc_in_sigtramp.
8286 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8287 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8288 alphanbsd_pc_in_sigtramp.
8289 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8290 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8291
8292 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8293
8294 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8295
8296 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8297
8298 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8299 alphanbsd-tdep.c.
8300 (alphanbsd-nat.o): New dependency list.
8301 (alphanbsd-tdep.o): Ditto.
8302 * NEWS: Note new native NetBSD/alpha configuration.
8303 * alphanbsd-nat.c: New file.
8304 * alphanbsd-tdep.c: Ditto.
8305 * configure.host (alpha*-*-netbsd*): New host.
8306 * configure.tgt (alpha*-*-netbsd*): New target.
8307 * config/alpha/nbsd.mh: New file.
8308 * config/alpha/nbsd.mt: Ditto.
8309 * config/alpha/nm-nbsd.h: Ditto.
8310 * config/alpha/tm-nbsd.h: Ditto.
8311
8312 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8313
8314 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8315 (alpha-osf1-tdep.o): New dependency list.
8316 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8317 and skip_sigtramp_frame members.
8318 * alpha-linux-tdep.c: Include gdbcore.h.
8319 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8320 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8321 * alpha-osf1-tdep.c: New file.
8322 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8323 alpha-osf1-dep.c.
8324 (alpha_frame_past_sigtramp_frame): New function.
8325 (alpha_dynamic_sigtramp_offset): Ditto.
8326 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8327 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8328 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8329 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8330 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8331 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8332 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8333 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8334 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8335 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8336 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8337 to find_solib_trampoline_target.
8338 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8339 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8340 (SKIP_TRAMPOLINE_CODE): Remove.
8341 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8342 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8343 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8344 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8345 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8346 (PROC_SIGTRAMP_MAGIC): Ditto.
8347 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8348 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8349 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8350 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8351 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8352
8353 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8354
8355 * NEWS: Note that Alpha targets are now multi-arch.
8356
8357 2002-04-24 Michael Snyder <msnyder@redhat.com>
8358
8359 * parser-defs.h (prev_lexptr): New external variable.
8360 * parse.c (parse_exp_1): Set prev_lexptr to null before
8361 calling the language-specific parser.
8362 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8363 (yyerror): Use prev_lexptr in error reporting.
8364
8365 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8366
8367 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8368 * gregset.h: If FILL_FPXREGSET is defined, provide
8369 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8370 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8371 is defined, call fill_fpxregset.
8372
8373 2002-04-24 Roland McGrath <roland@frob.com>
8374
8375 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8376 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8377 (supply_gregset, supply_fpregset): New functions.
8378
8379 * gnu-nat.c (gnu_find_memory_regions): New function.
8380 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8381 (gnu_xfer_memory): Add a cast.
8382
8383 2002-04-24 Michael Snyder <msnyder@redhat.com>
8384
8385 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8386 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8387 of argument regs ("str r(0123), [r11, #-nn"]).
8388 (arm_skip_prologue): Better handling for frameless functions.
8389 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8390 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8391
8392 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8393
8394 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8395 NUM_PSEUDO_REGS can be used.
8396
8397 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8398
8399 * arch-utils.h: Update copyright.
8400
8401 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8402 * gdbarch.h, gdbarch.c: Re-generate.
8403
8404 * inferior.h (IN_SIGTRAMP): Delete definition.
8405 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8406 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8407
8408 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8409 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8410 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8411 (find_proc_framesize): Ditto.
8412 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8413 (alpha_init_extra_frame_info): Ditto.
8414 * infrun.c (handle_inferior_event): Ditto.
8415 (handle_inferior_event): Ditto.
8416 (check_sigtramp2): Ditto.
8417 * blockframe.c (create_new_frame): Ditto.
8418 (get_prev_frame): Ditto.
8419 * ppc-linux-tdep.c: Update comments.
8420 * i386-linux-tdep.c: Update comments.
8421 * breakpoint.c (bpstat_what): Update comment.
8422
8423 2002-04-24 David S. Miller <davem@redhat.com>
8424
8425 * i960-tdep.c (register_in_window_p): New function.
8426 (i960_find_saved_register): Use it instead of
8427 REGISTER_IN_WINDOW_P.
8428 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8429
8430 * symtab.h (find_stab_function_addr): Kill extern.
8431 * minsyms.c (find_stab_function_addr): Remove from here...
8432 * dbxread.c: ... to here, and mark it static.
8433
8434 2002-04-20 David S. Miller <davem@redhat.com>
8435
8436 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8437 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8438
8439 2002-04-21 David S. Miller <davem@redhat.com>
8440
8441 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8442 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8443 (vx_write_register): Likewise.
8444
8445 2002-04-23 J. Brobecker <brobecker@gnat.com>
8446
8447 * source.c (is_regular_file): New function.
8448 (openp): Check wether file to open is a regular file
8449 to avoid opening directories.
8450
8451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8452
8453 * findvar.c (extract_signed_integer): Cast printf argument
8454 to suppress format warning.
8455 (extract_unsigned_integer): Likewise.
8456 * infcmd.c (registers_info): Likewise.
8457 * top.c (get_prompt_1): Likewise.
8458 * valops.c (value_assign): Likewise.
8459 * valprint.c (print_decimal): Likewise.
8460
8461 2002-04-22 H.J. Lu (hjl@gnu.org)
8462
8463 * c-exp.y (typebase): Support
8464
8465 [long|long long|short] [signed|unsigned] [int|]
8466
8467 and
8468
8469 signed [long|long long|short] int
8470
8471 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8474 and vax-tdep.h.
8475 * vax-tdep.h: New file.
8476 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8477 Make several routines static.
8478 (vax_get_saved_register): New function.
8479 (vax_gdbarch_init): New function.
8480 (_initialize_vax_tdep): Register vax_gdbarch_init.
8481 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8482 Remove macros now under the control of gdbarch.
8483
8484 2002-04-22 Michael Snyder <msnyder@redhat.com>
8485
8486 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8487 Some whitespace and coding standards tweaks.
8488
8489 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8490
8491 * vax-tdep.c: Include regcache.h.
8492 (vax_call_dummy_words): New.
8493 (sizeof_vax_call_dummy_words): New.
8494 (vax_fix_call_dummy): New function.
8495 (vax_saved_pc_after_call): Ditto.
8496 * config/vax/tm-vax.h: Don't include regcache.h.
8497 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8498 (CALL_DUMMY): Remove.
8499 (CALL_DUMMY_WORDS): Define.
8500 (SIZEOF_CALL_DUMMY_WORDS): Define.
8501 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8502
8503 2002-04-18 Michael Snyder <msnyder@redhat.com>
8504
8505 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8506
8507 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8508
8509 * vax-tdep.c (vax_frame_chain): New function.
8510 (vax_push_dummy_frame): Ditto.
8511 (vax_pop_frame): Ditto.
8512 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8513 (FRAMELESS_FUNCTION_INVOCATION): Use
8514 generic_frameless_function_invocation_not.
8515 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8516 (POP_FRAME): Use vax_pop_frame.
8517
8518 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8519
8520 * vax-tdep.c (vax_store_struct_return): New function.
8521 (vax_extract_return_value): Ditto.
8522 (vax_store_return_value): Ditto.
8523 (vax_extract_struct_value_address): Ditto.
8524 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8525 vax_store_struct_return.
8526 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8527 (STORE_RETURN_VALUE): Use vax_store_return_value.
8528 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8529
8530 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8531
8532 * vax-tdep.c (vax_frame_saved_pc): New function.
8533 (vax_frame_args_address_correct): Ditto.
8534 (vax_frame_args_address): Ditto.
8535 (vax_frame_locals_address): Ditto.
8536 (vax_frame_num_args): Move code to be in proximity to
8537 other frame-related functions.
8538 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8539 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8540 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8541 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8542 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8543
8544 2002-04-22 H.J. Lu (hjl@gnu.org)
8545
8546 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8547 includedir.
8548
8549 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8552 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8553 (FRAME_INIT_SAVED_REGS): New macro.
8554
8555 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8556
8557 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8558
8559 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8560
8561 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8562 where needed.
8563 (fetch_osf_core_registers): Likewise.
8564 (supply_gregset): Likewise.
8565
8566 2002-04-22 J. Brobecker <brobecker@gnat.com>
8567
8568 * symfile.h (get_section_index): Define.
8569 * symfile.c (get_section_index): New function.
8570 * mdebugread.c (SC_IS_SBSS): New macro.
8571 (SC_IS_BSS): Return true for the scBss storage class only, as
8572 the scSBss storage class refers to the .sbss section.
8573 (parse_partial_symbols): Discard the symbols which associated
8574 section does not exist.
8575 Make sure to use the .sbss section index for symbols which
8576 storage class is scBss, rather than using the .bss section index.
8577
8578 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8579
8580 * vax-tdep.c: Update copyright years.
8581 (vax_register_name): New function.
8582 (vax_register_byte): Ditto.
8583 (vax_register_raw_size): Ditto.
8584 (vax_register_virtual_size): Ditto.
8585 (vax_register_virtual_type): Ditto.
8586 * config/vax/tm-vax.h: Update copyright years.
8587 (REGISTER_NAMES): Remove.
8588 (REGISTER_NAME): Define.
8589 (REGISTER_BYTE): Use vax_register_byte.
8590 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8591 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8592 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8593
8594 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8595
8596 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8597 declaration
8598 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8599
8600 2002-04-21 David S. Miller <davem@redhat.com>
8601
8602 * arch-utils.c (generic_prologue_frameless_p): Kill
8603 SKIP_PROLOGUE_FRAMELESS_P code.
8604 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8605 references.
8606 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8607 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8608 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8609 references.
8610 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8611 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8612 (sparc_gdbarch_init): Pass it to
8613 set_gdbarch_prologue_frameless_p.
8614
8615 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8616
8617 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8618 (alphabsd-nat.o): New dependency list.
8619
8620 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8621
8622 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8623 alphafbsd-tdep.c.
8624 (alpha-linux-tdep.o): New dependency list.
8625 (alphafbsd-tdep.o): Likewise.
8626
8627 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8628
8629 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8630 to here...
8631 * alpha-tdep.c: ...from here.
8632 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8633
8634 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8635
8636 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8637 prototype from here...
8638 * alpha-tdep.h: ...to here.
8639
8640 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8641
8642 * frame.h (selected_frame_level): Document as deprecated.
8643 (frame_relative_level): Declare.
8644 * stack.c (frame_relative_level): New function.
8645 (selected_frame_level): Document as deprecated.
8646 (select_frame): Do not set the selected_frame_level.
8647
8648 * stack.c (frame_info, record_selected_frame): Update.
8649 (frame_command, current_frame_command): Update.
8650 (up_silently_base, up_command, down_silently_base): Update.
8651 (down_command): Update.
8652 * inflow.c (kill_command): Update.
8653 * tracepoint.c (finish_tfind_command): Update.
8654 * corelow.c (core_open): Update.
8655 * thread.c (info_threads_command): Update.
8656 (do_captured_thread_select): Update.
8657 * infcmd.c (finish_command): Update.
8658 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8659
8660 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8661
8662 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8663
8664 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8665
8666 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8667 type const.
8668
8669 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8670
8671 * alphafbsd-tdep.c: Update copyright years. Include
8672 alpha-tdep.h.
8673 (alphafbsd_use_struct_convention): Make static.
8674 (alphafbsd_init_abi): New function.
8675 (_initialize_alphafbsd_tdep): New function.
8676 * config/alpha/tm-fbsd.h: Update copyright years.
8677 (USE_STRUCT_CONVENTION): Remove.
8678
8679 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8680
8681 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8682 an Alpha ABI variant.
8683 (alpha_abi_handler_list): Declare.
8684 (alpha_gdbarch_register_os_abi): New function.
8685 (alpha_gdbarch_init): Give registered ABI variant handlers a
8686 chance to tweak the gdbarch once we have set up defaults.
8687 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8688
8689 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8690
8691 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8692 to standard_coerce_float_to_double.
8693 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8694
8695 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8696
8697 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8698 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8699 from gdbarch_tdep rather than a constant.
8700 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8701 the default text address for all Alpha Unix ABIs.
8702 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8703 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8704
8705 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8706
8707 * alpha-tdep.h: New file. Includes several Alpha target constants
8708 taken from...
8709 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8710 let gdbarch deal with.
8711 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8712 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8713 to dependency list.
8714 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8715 Alpha target register names.
8716 * alphabsd-nat.c: Likewise.
8717 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8718 Alpha target register names. Make serveral routines static.
8719 (alpha_get_saved_register): New function.
8720 (alpha_abi_names): New.
8721 (process_note_abi_tag_sections): New function.
8722 (get_elfosabi): New function.
8723 (alpha_gdbarch_init): New function.
8724 (alpha_dump_tdep): New function.
8725 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8726
8727 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8728
8729 * frame.c (find_saved_register): Delete #ifdef
8730 HAVE_REGISTER_WINDOWS code.
8731 * config/sparc/tm-sparc.h: Update comments.
8732 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8733
8734 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8735
8736 * i960-tdep.c (i960_find_saved_register): New function.
8737 (i960_get_saved_register): New function.
8738 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8739 (i960_get_saved_register): Declare.
8740 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8741
8742 2002-04-20 David S. Miller <davem@redhat.com>
8743
8744 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8745
8746 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8747
8748 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8749 instead of NUM_PSEUDO_REGS.
8750
8751 2002-04-20 David S. Miller <davem@redhat.com>
8752
8753 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8754 GDB_MULTI_ARCH_PARTIAL
8755 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8756 define, let tm-sp64.h do it.
8757
8758 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8759
8760 * frame.c (find_saved_register): Avoid a NULL pointer
8761 dereference and actually walk the frame list.
8762
8763 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8764
8765 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8766 sorted in most most-recent-used order. Document.
8767 * gdbarch.h, gdbarch.c: Regenerate.
8768
8769 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8770
8771 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8772 instead of ->prev.
8773 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8774 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8775 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8776 instead of ->prev.
8777
8778 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8779
8780 Fix PR gdb/471.
8781 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8782 (build_builtin_type_vec128): Ditto.
8783 (append_composite_type_field): Fix calculation of type length in
8784 union case.
8785
8786 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8787
8788 * config/djgpp/README: Update.
8789
8790 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8791 compiler warnings.
8792
8793 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8794
8795 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8796 (alpha_setup_arbitrary_frame): ...to this.
8797 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8798 for alpha_setup_arbitrary_frame.
8799
8800 2002-04-18 Andrew Cagney <cagney@redhat.com>
8801
8802 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8803 * gdbarch.h, gdbarch.c: Regenerate.
8804
8805 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8806 * target.h (memory_breakpoint_from_pc): Update declaration.
8807 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8808
8809 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8810 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8811 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8812 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8813 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8814 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8815 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8816 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8817 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8818 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8819 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8820 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8821
8822 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8823 const pointer.
8824 * monitor.c (monitor_insert_breakpoint): Ditto.
8825 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8826
8827 * config/mcore/tm-mcore.h: Update copyright.
8828 * mem-break.c: Ditto.
8829 * xstormy16-tdep.c: Ditto.
8830
8831 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8832
8833 * p-exp.y: Add precedence rule for '^' token.
8834 This removes the shift/reduce conflicts.
8835 Remove the comment concerning these shift/reduce conflicts.
8836
8837 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8838
8839 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8840 (registers_powerpc_nofp): New register set for processors
8841 without floating point unit.
8842
8843 2002-04-18 David S. Miller <davem@redhat.com>
8844
8845 * MAINTAINERS: Add myself to write-after-approval.
8846
8847 2002-04-17 Michael Snyder <msnyder@redhat.com>
8848
8849 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8850
8851 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8852
8853 * rs6000-tdep.c (frame_initial_stack_address): Use
8854 frame_register_read to read the alloca_reg.
8855
8856 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8857
8858 * frame.c (find_saved_register): Find saved registers in the next
8859 not prev frame.
8860 Fix PR gdb/365.
8861
8862 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8863
8864 * gdbarch.sh (LANG): Set to ``c''.
8865
8866 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8867
8868 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8869
8870 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8871
8872 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8873 Update copyright.
8874
8875 * hpread.c (hpread_get_lntt): Add declaration.
8876 Also fix PR gdb/391.
8877
8878 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8879
8880 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8881 * aclocal.m4, configure: Re-generate.
8882 Fix PR gdb/391.
8883
8884 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8885
8886 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8887 instead of tm_print_insn.
8888
8889 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8890
8891 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8892
8893 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8894
8895 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8896 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8897 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8898
8899 2002-04-12 Don Howard <dhoward@redhat.com>
8900
8901 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8902 max_user_call_depth.
8903 (init_cmd_lists): Initialize the new value;
8904 * cli/cli-script.c (execute_user_command): Limit the call depth of
8905 user defined commands. This avoids a core-dump when user commands
8906 are infinitly recursive.
8907
8908 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8909
8910 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8911 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8912 from tdep struct instead of DEFAULT_LR_SAVE.
8913 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8914 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8915 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8916
8917 2002-04-12 Michael Snyder <msnyder@redhat.com>
8918
8919 * Remote.c: Spelling fix.
8920 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8921 If no symbol found for "sbrk", try "_sbrk".
8922 (make_output_phdrs): Use bfd_section_name.
8923 (gcore_copy_callback): Use bfd_section_name.
8924 * eval.c: Indentation fix-ups.
8925 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8926 in case it gets applied to an address that is already
8927 in the instruction space.
8928 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8929 * symfile.c: Fix indentation, long lines.
8930 * source.c: White space fix-up.
8931
8932 2002-04-12 Andrew Cagney <cagney@redhat.com>
8933
8934 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8935 * frame.c (frame_register_read): New function. Return non-zero on
8936 success.
8937 (read_relative_register_raw_bytes_for_frame): Delete.
8938 (read_relative_register_raw_bytes): Delete.
8939 * frame.h (frame_register_read): Declare.
8940 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8941 * sh-tdep.c: Ditto.
8942 * infcmd.c (do_registers_info): Ditto.
8943 * hppa-tdep.c: Ditto.
8944 * rs6000-tdep.c: Ditto.
8945 * h8500-tdep.c: Ditto.
8946 * mips-tdep.c: Ditto.
8947 * h8300-tdep.c: Ditto.
8948 * z8k-tdep.c: Ditto.
8949
8950 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8951
8952 From Jimi X <jimix@watson.ibm.com>:
8953 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8954 64-bit SysV ABI.
8955
8956 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8957
8958 From Jimi X <jimix@watson.ibm.com>:
8959 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8960 bfd info.
8961
8962 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8963
8964 From Jimi X <jimix@watson.ibm.com>:
8965 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8966 register sets for these processor variants.
8967
8968 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8969
8970 * regformats/reg-ppc.dat: Support FPSCR.
8971
8972 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8973
8974 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8975 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8976 Add fpscr as an invalid/unfetchable register.
8977 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8978 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8979 (fill_fpregset): Add support for register fpscr.
8980 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8981 (fill_gregset): Account for the fact that register ``mq'' might
8982 not exist.
8983 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8984 (registers_power): Add fpscr to register set at slot 71.
8985 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8986 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8987
8988 2002-04-11 Michael Snyder <msnyder@redhat.com>
8989
8990 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8991 * configure: Regenerate.
8992 * config.in: Regenerate.
8993 * acconfig.h: Add define for _SYSCALL32.
8994 * core-sol2.c: Remove #define _SYSCALL32.
8995 * solib-legacy.c: Remove #define _SYSCALL32.
8996
8997 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8998
8999 * stack.c (select_frame): Cleanup internal error message, do not
9000 use %p.
9001
9002 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9003
9004 * stack.c (select_frame): Check that selected_frame and the
9005 specified level are as expected.
9006 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9007 Update copyright.
9008 * frame.h (struct frame_info): Add field `level'. Update
9009 copyright.
9010 Work-in-progress PR gdb/464.
9011
9012 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9013
9014 * maint.c (maint_print_section_info): Rename print_section_info.
9015 (print_bfd_section_info, print_objfile_section_info): Update.
9016 * inferior.h (struct gdbarch): Add opaque declaration.
9017 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9018 * gdbarch.h: Regenerate.
9019
9020 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9021
9022 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9023 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9024 (kernel_u_size): Added.
9025 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9026 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9027
9028 2002-04-04 Jim Ingham <jingham@apple.com>
9029
9030 * valarith.c (find_size_for_pointer_math): New function, either returns
9031 the size for a pointer's target, returns 1 for void *, or errors for
9032 incomplete types.
9033 (value_add, value_sub): use find_size_for_pointer_math.
9034
9035 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * linux-low.c (linux_look_up_symbols): New hook.
9038 (linux_target_ops): Add linux_look_up_symbols.
9039 * remote-utils.c (decode_address): New function.
9040 (look_up_one_symbol): New function.
9041 * server.c (handle_query): Call target look_up_symbols hook.
9042 * server.h (look_up_one_symbol): Add prototype.
9043 * target.h (struct target_ops): Add look_up_symbols hook.
9044
9045 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9046
9047 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9048 override FP_REGNUM with frame->fp. Update copyright.
9049 * parse.c (num_std_regs, std_regs): Delete.
9050 (target_map_name_to_register): Do not search std_regs. Update
9051 function description.
9052 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9053 declarations. Update copyright.
9054 Fix PR gdb/251.
9055
9056 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9057
9058 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9059 after the last symbol in a block.
9060
9061 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9062
9063 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9064 is non zero as a found symbol.
9065
9066 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9067
9068 * findvar.c: Include "builtin-regs.h".
9069 (value_of_register): Call value_of_builtin_reg when applicable.
9070 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9071 (target_map_name_to_register): Call
9072 builtin_reg_map_name_to_regnum.
9073 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9074 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9075 (builtin_regs_h): Define.
9076 (builtin-regs.o): New target.
9077 (findvar.o): Add $(builtin_regs_h).
9078 * builtin-regs.c, builtin-regs.h: New files.
9079 * std-regs.c: New file.
9080 Partial fix for PR gdb/251.
9081
9082 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9083
9084 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9085 it's no longer required.
9086
9087 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9088
9089 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9090
9091 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9092
9093 From Jimi X <jimix@watson.ibm.com>:
9094 * rs6000-tdep.c (rs6000_software_single_step): Use
9095 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9096 and size. Use target_insert_breakpoint() and
9097 target_remove_breakpoint() to insert and remove breakpoints
9098 instead of explicit memory reads and writes.
9099
9100 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9101
9102 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9103 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9104 ELF_OBJECT_FORMAT ifdef.
9105
9106 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9107
9108 From Jimi X <jimix@watson.ibm.com>:
9109 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9110
9111 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9112
9113 From Jimi X <jimix@watson.ibm.com>:
9114 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9115 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9116
9117 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9118
9119 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9120 s/asprintf/xasprintf/.
9121 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9122
9123 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9124
9125 I believe Jeff Law denies responsability for this one:
9126 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9127 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9128 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9129 Work-around for PR gdb/366.
9130
9131 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9132
9133 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9134 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9135 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9136
9137 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9138
9139 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9140 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9141 information.
9142
9143 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9144
9145 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9146 maintainer.
9147
9148 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9149
9150 * README (Reporting Bugs in GDB): Document the bug web page as the
9151 prefered way of submitting bugs.
9152 Fix PR gdb/402.
9153
9154 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9155
9156 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9157 -1. Update comment.
9158 * gdbarch.h, gdbarch.c: Re-generate.
9159
9160 2002-04-07 Andreas Schwab <schwab@suse.de>
9161
9162 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9163 buffer to regcache_collect.
9164
9165 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9166
9167 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9168 * gdbarch.c, gdbarch.h: Re-generate.
9169
9170 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9171
9172 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9173 declaration. Fix -Werror.
9174
9175 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9176
9177 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9178 * gdbarch.c: Regenerate.
9179
9180 2002-04-05 Michael Snyder <msnyder@redhat.com>
9181
9182 * breakpoint.c (clear_command): Rewrite middle section to
9183 combine two loops with identical control conditions.
9184 Add a cleanup to eliminate a memory leak.
9185 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9186
9187 2002-04-05 H.J. Lu (hjl@gnu.org)
9188
9189 * solib-svr4.c (bkpt_names): Add "__start".
9190
9191 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9192
9193 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9194 as test for 64 bit target.
9195
9196 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9197
9198 * h8500-tdep.c (h8500_write_fp): Delete function.
9199 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9200 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9201 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9203 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9204 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9205 (s390_write_fp):
9206 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9207 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9208 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9209 (d10v_write_fp): Delete function.
9210 * inferior.h (write_fp, generic_target_write_fp): Delete
9211 declarations.
9212 * regcache.c (generic_target_write_fp): Delete function.
9213 (write_fp): Delete function.
9214 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9215 * gdbarch.h, gdbarch.c: Regenerate.
9216 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9217 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9218 (sparc64_write_fp): Delete declaration.
9219 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9220 (h8500_write_fp): Delete declaration.
9221
9222 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9223
9224 * sparc-tdep.c (sparc64_write_fp): Delete.
9225 (sparc_push_dummy_frame): Replace write_fp call with code to store
9226 the FP directly.
9227 (sparc_gdbarch_init): Do not initialize write_fp.
9228
9229 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9230
9231 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9232 clause.
9233
9234 2002-03-29 Jim Blandy <jimb@redhat.com>
9235
9236 * stack.c (get_selected_block): Add new argument `addr_in_block',
9237 used to return the exact code address we used to select the block,
9238 not just the block.
9239 * blockframe.c (get_frame_block, get_current_block): Same.
9240 * frame.h (get_frame_block, get_current_block,
9241 get_selected_block): Update declarations.
9242 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9243 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9244
9245 2002-04-05 Michael Snyder <msnyder@redhat.com>
9246
9247 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9248 warning message.
9249
9250 2002-04-05 J. Brobecker <brobecker@gnat.com>
9251
9252 * utils.c (xfullpath): New function.
9253 * defs.h (xfullpath): Add declaration.
9254 * source.c (openp): Use xfullpath in place of gdb_realpath to
9255 avoid resolving the basename part of filenames when the
9256 associated file is a symbolic link. This fixes a potential
9257 inconsistency between the filenames known to GDB and the
9258 filenames it prints in the annotations.
9259 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9260 to be able to match a filename with either the real filename, or
9261 the name of any symbolic link to this file.
9262 (lookup_partial_symtab): Ditto.
9263
9264 2002-04-04 Michael Snyder <msnyder@redhat.com>
9265
9266 * breakpoint.c: Add support for hardware breakpoints in overlays.
9267 (overlay_events_enabled): New state variable.
9268 (insert_breakpoints): Use overlay_events_enabled to decide
9269 whether to attempt to set a breakpoint at the overlay load addr.
9270 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9271 (remove_breakpoint): Use overlay_events_enabled to decide
9272 whether breakpoints need to be removed from overlay load addr.
9273 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9274 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9275 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9276 disable_overlay_breakpoints): Update overlay_events_enabled.
9277
9278 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9279
9280 * dwarf2read.c (struct function_range): New.
9281 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9282 (check_cu_functions): New.
9283 (read_file_scope): Initialize global function lists.
9284 Call dwarf_decode_line after processing children.
9285 (read_func_scope): Add to global function list.
9286 (dwarf_decode_lines): Call check_cu_functions everywhere
9287 record_line is called. Call record_line with a linenumber
9288 of 0 to mark sequence ends.
9289
9290 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9291
9292 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9293 change sync with glibc.
9294
9295 2002-04-03 Jim Blandy <jimb@redhat.com>
9296
9297 * configure.in: Call AC_C_INLINE.
9298 * configure: Regenerated.
9299
9300 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9301
9302 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9303 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9304
9305 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9306
9307 * NEWS: Mention gcore support on FreeBSD/i386.
9308
9309 * fbsd-proc.c: New file.
9310 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9311 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9312
9313 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9314 while statement.
9315
9316 2002-03-29 Jim Blandy <jimb@redhat.com>
9317
9318 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9319 unescaped newlines in string literals, but newer ones don't. So
9320 escape them.
9321
9322 2002-03-26 Michael Snyder <msnyder@redhat.com>
9323 Andrew Cagney <cagney@redhat.com>
9324
9325 * cli/cli-dump.c: New file. Dump memory to file,
9326 restore file to memory.
9327 * cli/cli-dump.h: New file.
9328 * Makefile.in: Add rules, dependencies for cli-dump.o.
9329 * NEWS: Mention new commands.
9330
9331 2002-03-28 Michael Snyder <msnyder@redhat.com>
9332
9333 * symfile.c (symbol_file_add): Move test for null symbols to later.
9334
9335 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9336
9337 From veksler at il.ibm.com:
9338 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9339 the xstrduped original path.
9340 Fix PR gdb/417.
9341
9342 2002-03-27 Michael Snyder <msnyder@redhat.com>
9343
9344 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9345 * infcmd.c (_initialize_infcmd): Ditto.
9346 * language.c (_initialize_language): Ditto.
9347 * symfile.c (_initialize_symfile): Ditto.
9348 * top.c (_init_main): Ditto.
9349 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9350
9351 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9352
9353 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9354 vector registers handling.
9355 (skip_prologue): Handle new AltiVec instructions. Fill in new
9356 fields of frame data.
9357 (frame_get_saved_regs): Fill in information for AltiVec registers.
9358
9359 2002-03-27 Jim Blandy <jimb@redhat.com>
9360
9361 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9362 a function; leave this macro here to invoke that function.
9363 (symbol_init_mangled_name): Declaration for that function.
9364 * symtab.c (symbol_init_mangled_name): New function.
9365
9366 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9367
9368 * valarith.c: Replace strerror with safe_strerror.
9369 * tracepoint.c: Ditto.
9370 * lin-lwp.c: Ditto.
9371 * go32-nat.c: Ditto.
9372 * inflow.c: Ditto.
9373 * gnu-nat.c: Ditto.
9374
9375 2002-03-27 Andreas Schwab <schwab@suse.de>
9376
9377 * event-top.c (command_line_handler): Remove useless if.
9378
9379 2002-03-27 Andreas Jaeger <aj@suse.de>
9380
9381 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9382 comment.
9383
9384 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9385
9386 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9387 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9388 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9389 (x86_64_linux_dr_get_status, supply_gregset),
9390 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9391 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9392 (x86_64_register_info_table): Add.
9393 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9394 (x86_64_register_raw_size, x86_64_register_virtual_type),
9395 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9396 general x86_64_register_info_table.
9397 (i386_gdbarch_init): gdbarch_register_bytes is now set
9398 dynamicaly during initialization.
9399 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9400 * gdbserver/linux-x86-64-low.c: Ditto.
9401
9402 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9403
9404 * gdbserver/server.c (main): Call target_signal_to_host_p
9405 and target_signal_to_host on signals received from the remote.
9406 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9407 target_signal_from_host on signals sent to the remote.
9408 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9409 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9410
9411 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9412
9413 * signals/signals.c: Include "server.h" in gdbserver build.
9414 (target_signal_from_name): Don't use STREQ.
9415 (_initialize_signals): Likewise. Don't include function in
9416 gdbserver build.
9417
9418 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * signals.c: Moved to...
9421 * signals/signals.c: Here.
9422 * Makefile (signals.o): Update.
9423
9424 2002-03-26 Jeff Law (law@redhat.com)
9425
9426 * somread.c (som_symtab_read): Remove some commented out code and
9427 updated related comments. Do not set the minimal symbol table to
9428 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9429 in a dynamic executable.
9430 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9431 where we are unable to find the minimal symbol for the given
9432 PC value.
9433
9434 2002-03-25 Jeff Law (law@redhat.com)
9435
9436 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9437
9438 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9439
9440 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9441
9442 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9443
9444 * command.h: Update copyright.
9445 (struct cmd_list_element): Replace definition with opaque
9446 declaration.
9447 (enum cmd_types): Document that it will eventually be moved to
9448 cli/cli-decode.h
9449 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9450 (MALLOCED_REPLACEMENT): Delete macro.
9451 * Makefile.in (cli_decode_h): Add $(command_h).
9452 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9453 * top.c: Include "cli/cli-decode.h".
9454 * completer.c: Include "cli/cli-decode.h".
9455 * maint.c: Include "cli/cli-decode.h".
9456 * cli/cli-decode.h: Include "command.h".
9457 (enum command_class): Delete.
9458 (enum cmd_types): Comment out.
9459 (enum cmd_auto_boolean): Delete.
9460 (enum var_types): Delete.
9461
9462 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9463
9464 * cli/cli-decode.c: Include "gdb_assert.h".
9465 (add_set_or_show_cmd): New static function.
9466 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9467 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9468 all fields, such as func, from the set command.
9469
9470 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9471
9472 * MAINTAINERS (sh-elf): Change warning flag to -w.
9473
9474 2002-03-23 Andrew Cagney <cagney@redhat.com>
9475
9476 * defs.h (error): Add printf format attribute.
9477 * thread-db.c (thread_from_lwp): Fix error format string.
9478 * stack.c (parse_frame_specification): Ditto.
9479 * cli/cli-decode.c (undef_cmd_error): Ditto.
9480 * scm-lang.c (scm_lookup_name): Ditto.
9481 * tracepoint.c (trace_error): Ditto.
9482 * remote-utils.c (usage): Ditto.
9483 * remote.c (compare_sections_command): Ditto.
9484 Fix PR gdb/328.
9485
9486 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9487
9488 * gdbtypes.c (append_composite_type_field): New function.
9489 (init_composite_type): New function.
9490 * gdbtypes.h (append_composite_type_field): Declare.
9491 (init_composite_type): Ditto.
9492
9493 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9494
9495 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9496 function.
9497 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9498 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9499 structure returning convention for SYSV ABI case, but not
9500 for GNU/Linux, FreeBSD, or NetBSD.
9501
9502 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * symtab.h (lookup_block_symbol): Add mangled_name argument
9505 to prototype.
9506
9507 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9508 with new mangled_name argument.
9509 * linespec.c (decode_line_1): Likewise.
9510 * valops (value_of_this): Likewise.
9511 * symtab.c (lookup_transparent_type): Likewise.
9512 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9513 (lookup_symbol): If we are given a mangled name, pass it down
9514 to lookup_symbol_aux.
9515 (lookup_block_symbol): If we are given a mangled name to check
9516 against, only return symbols which match it.
9517
9518 2002-03-22 Christopher Faylor <cgf@redhat.com>
9519
9520 * win32-nat.c (child_create_inferior): Check for proper shell to use
9521 here, in case the user changes it on the fly.
9522 (_initialize_inftarg): Remove shell path considerations.
9523
9524 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9525
9526 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9527 for gdbarch_max_register_raw_size and max_register_virtual_size.
9528 Adjust copyright year.
9529
9530 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9531
9532 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9533 in a function to cover the entire beginning of the function
9534 as well if it does not already.
9535
9536 2002-03-21 Tom Rix <trix@redhat.com>
9537
9538 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9539 (rs6000_ptrace64): Renamed from ptrace64.
9540
9541 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9542
9543 * gdbserver/remote-utils.c (remote_open): Don't call
9544 getprotobyname, we're all using TCP here so just use
9545 IPPROTO_TCP.
9546 * gdbserver/gdbreplay.c (remote_open): Ditto.
9547
9548 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9549
9550 * regcache.c (_initialize_regcache): No need to call
9551 build_regcache() at this time; it gets called whenever
9552 the gdbarch changes.
9553
9554 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9555
9556 * sparc-nat.c: Include sys/param.h where possible.
9557
9558 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9559
9560 Fix PR gdb/422.
9561 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9562 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9563 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9564 complex types.
9565 * stabsread.c (rs6000_builtin_type): Likewise.
9566 (read_sun_floating_type): Likewise.
9567
9568 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9569
9570 * stabsread.c (read_member_functions): Remove skip code for duplicate
9571 constructor/destructor methods. Use standard parsing for these
9572 methods and just do not chain them to the list of methods after
9573 parsing.
9574
9575 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9576
9577 * coffread.c: Remove redundant static declarations. Replace
9578 occurrences of `PTR' with `void *'.
9579 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9580 * top.h (quit_cover): Likewise.
9581 * defs.h (catch_errors): Likewise.
9582
9583 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9584
9585 * defs.h (XMALLOC): Define.
9586 * gdb-events.sh (XMALLOC): Delete macro.
9587 * gdb-events.c, gdb-events.h: Regenerate.
9588 * gdbarch.sh (XMALLOC): Delete macro.
9589 * gdbarch.c: Regenerate.
9590 * serial.c (XMALLOC): Delete macro.
9591 * ui-file.c (XMALLOC): Ditto.
9592 * ser-unix.h (XMALLOC): Ditto.
9593 * sh-tdep.c (XMALLOC): Ditto.
9594 * ui-out.c (XMALLOC): Ditto.
9595 * utils.c (XMALLOC): Ditto.
9596 * i386-tdep.c (XMALLOC): Ditto.
9597 * gdb-events.c (XMALLOC): Ditto.
9598 * d10v-tdep.c (XMALLOC): Ditto.
9599 * cli-out.c (XMALLOC): Ditto.
9600
9601 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9602 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9603 * ui-file.c, ui-out.c: Ditto.
9604
9605 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9606
9607 * command.h (struct cmd_list_element): Add field context.
9608 (set_cmd_context, get_cmd_context): Declare.
9609 * cli/cli-decode.h: Ditto.
9610 * cli/cli-decode.c (get_cmd_context): New function.
9611 (set_cmd_context): New function.
9612 (add_cmd): Initialize context.
9613 Part of fixing PR gdb/145 and PR gdb/146.
9614
9615 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9616
9617 * cli/cli-decode.c (cmd_type): New function.
9618 * command.h (cmd_type): Declare.
9619 * infrun.c (set_schedlock_func): Call function cmd_type.
9620 * kod.c (kod_set_os): Call cmd_type.
9621 * cris-tdep.c (cris_version_update): Use function cmd_type.
9622 (cris_mode_update, cris_abi_update): Ditto.
9623
9624 * command.h: (execute_cmd_post_hook): Declare.
9625 (execute_cmd_pre_hook): Declare.
9626 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9627 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9628 functions. Execute pre/post hook while ensuring that afterwords
9629 hook_in is cleared.
9630 * top.c (execute_command): Use execute_cmd_post_hook, and
9631 execute_cmd_pre_hook to execute pre/post commands.
9632 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9633 hook_stop_stub.
9634 (hook_stop_stub): Call execute_cmd_pre_hook.
9635
9636 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9637
9638 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9639 set'' and this leads to a core dump. Move xstrdup of
9640 operating_system to after check that it is not NULL.
9641
9642 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9643
9644 * kod.c (kod_set_os): Remove unnecessary check that
9645 ``command->type'' is set_cmd.
9646
9647 * valprint.c (set_input_radix): Use input_radix.
9648 (set_output_radix): Use output_radix.
9649 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9650 isn't reverted.
9651
9652 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9653
9654 * value.h (struct value): Delete field ``substring_addr''. Change
9655 aligner fields to force_doublest_align, force_longest_align,
9656 force_core_addr_align and force_pointer_aligh.
9657
9658 * value.h (struct value): Fix typo in above change.
9659
9660 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9661
9662 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9663 to fix internal_error from ``maintenance print architecture''.
9664
9665 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9666
9667 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9668 for gcc versions after gcc-2.8.1.
9669
9670 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9671
9672 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9673 for method resolution. Restore adjustment of ``this'' pointer after
9674 calling value_struct_elt, which was accidentally removed during the
9675 HP merge.
9676
9677 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9678
9679 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9680 value_of_register.
9681 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9682 get_saved_register.
9683 * value.h (value_of_register): Update.
9684
9685 2002-03-14 Richard Henderson <rth@redhat.com>
9686
9687 * configure.in: Detect declaration for canonicalize_file_name.
9688 * utils.c (canonicalize_file_name): Declare, if needed.
9689 (gdb_realpath): Prefer realpath if available and usable.
9690 * config.in, configure: Rebuild.
9691
9692 2002-03-14 Richard Henderson <rth@redhat.com>
9693
9694 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9695 a constant array bound.
9696
9697 * MAINTAINERS: Add myself to write-after-approval.
9698
9699 2002-03-14 Michael Snyder <msnyder@redhat.com>
9700
9701 * symfile.c (syms_from_objfile): Return immediately if no syms.
9702 (symbol_file_add): Return immediately if no syms.
9703 (find_sym_fns): Return immediately if no syms.
9704
9705 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9706
9707 * gdbserver/remote-util.c (remote_open): Print remote-side's
9708 IP address when remote debugging over the network.
9709
9710 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9711
9712 * config/sparc/fbsd.mh: Fix copyright.
9713 * config/sparc/fbsd.mt: Likewise.
9714
9715 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9716
9717 * MAINTAINERS: Fix typo in name of gdb warnings option.
9718 (x86-64): Fix formating so that this can be parsed by awk.
9719
9720 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9721
9722 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9723 * defs.h: Include "gdb/signals.h".
9724 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9725
9726 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9727
9728 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9729 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9730 from x86-64-tdep.h
9731
9732 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9733 Don Howard <dhoward@redhat.com>
9734
9735 * mips-tdep.c (ST0_FR): Define.
9736 (mips2_fp_compat): New function, temporarily disabled.
9737 (mips_read_fp_register_single): New function.
9738 (mips_read_fp_register_double): New function.
9739 (mips_print_register): Use them.
9740 (do_fp_register_row): Likewise.
9741
9742 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9743
9744 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9745 approval''.
9746
9747 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9748
9749 * stabsread.c (read_member_functions): Fix is_stub test for
9750 static member functions, improve comment.
9751
9752 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9753
9754 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9755 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9756 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9757 commands that set boolean values.
9758 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9759 (arm_rdi_resume): Always initialize PC.
9760 (arm_rdi_open): Don't use rslt as a boolean.
9761 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9762 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9763 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9764 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9765
9766 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9767
9768 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9769 * configure: Rebuilt.
9770
9771 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9772
9773 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9774 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9775
9776 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9777
9778 * cli/cli-decode.c (set_cmd_completer): New function.
9779 * command.h (set_cmd_completer): Declare.
9780 * cli/cli-decode.h (set_cmd_completer): Ditto.
9781
9782 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9783 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9784 * win32-nat.c (_initialize_inftarg): Ditto.
9785 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9786 * proc-api.c (_initialize_proc_api): Ditto.
9787 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9788 * source.c (_initialize_source): Ditto.
9789 * exec.c (_initialize_exec): Ditto.
9790 * solib.c (_initialize_solib): Ditto.
9791 * top.c (init_main): Ditto.
9792 * tracepoint.c (_initialize_tracepoint): Ditto.
9793 * symfile.c (_initialize_symfile): Ditto.
9794 * printcmd.c (_initialize_printcmd): Ditto.
9795 * infcmd.c (_initialize_infcmd): Ditto.
9796 * corefile.c (_initialize_core): Ditto.
9797
9798 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9799
9800 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9801
9802 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9803
9804 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9805
9806 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9807
9808 * NEWS: Update headings, 5.2 has branched.
9809
9810 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9811
9812 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9813 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9814 (register_addr, REGISTER_RAW_SIZE): Likewise.
9815 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9816 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9817
9818 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9819
9820 * MAINTAINERS (x86-64): Add myself.
9821 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9822 changed value_ptr -> struct value *
9823
9824 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9825
9826 * configure.host (sparc64-*-freebsd): Add.
9827 * configure.tgt: Likewise.
9828 * config/sparc/fbsd.mh: New file.
9829 * config/sparc/fbsd.mt: Likewise.
9830 * config/sparc/nm-fbsd.h: Likewise.
9831 * config/sparc/tm-fbsd.h: Likewise.
9832
9833 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9836 regformats/reg-s390x.dat.
9837
9838 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9839
9840 * utils.c: Add FIXME explaining true/false problem.
9841
9842 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9843
9844 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9845
9846 2002-02-28 Michael Chastain <mec@shout.net>
9847
9848 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9849
9850 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * gdbserver/linux-s390-low.c: New file.
9853 * regformats/reg-s390.dat: New file.
9854 * regformats/reg-s390x.dat: New file.
9855 * gdbserver/configure.srv: Add S/390.
9856 * gdbserver/Makefile.in: Add S/390.
9857 * configure.tgt: Enable gdbserver for S/390.
9858
9859 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9860
9861 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9862 first line of the doc string for "info dos", except at the end of
9863 the sentence, since the short help stops at the first period.
9864
9865 2002-02-28 Jason Merrill <jason@redhat.com>
9866
9867 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9868
9869 2002-02-27 Fred Fish <fnf@redhat.com>
9870
9871 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9872 comment (dumy -> dummy).
9873
9874 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9875
9876 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9877
9878 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9879
9880 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9881
9882 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * gdbserver/acconfig.h: New file.
9885 * gdbserver/i387-fp.c: New file.
9886 * gdbserver/i387-fp.h: New file.
9887 * gdbserver/linux-x86-64.c: New file.
9888 * regformats/reg-x86-64.dat: New file.
9889 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9890 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9891 * gdbserver/configure.in: Add support for regsets.
9892 * gdbserver/config.in: Regenerate.
9893 * gdbserver/configure: Regenerate.
9894 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9895 * gdbserver/linux-low.h: New file.
9896 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9897 for regsets.
9898 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9899 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9900 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9901 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9902 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9903 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9904 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9905 "i387-fp.h". Add PTRACE_GETREGS and friends.
9906 * gdbserver/regcache.c (supply_register): New function.
9907 (supply_register_by_name): New function.
9908 (collect_register): New function.
9909 (collect_register_by_name): New function.
9910
9911 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9912
9913 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9914 (config.status): Add configure.srv dependency.
9915 (server_h): Add config.h dependency.
9916
9917 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9920 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9921 * gdbserver/configure.srv: Change i386-*-linux* to use
9922 reg-i386-linux.o.
9923
9924 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9925
9926 * x86-64-tdep.c: Re-indent. Update copyright date.
9927
9928 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9929
9930 From Michal Ludvig <mludvig@suse.cz>:
9931 * x86-64-tdep.c (value.h): Delete.
9932 (gdb_assert.h): Include.
9933 (x86_64_register_convert_to_virtual,
9934 x86_64_register_convert_to_raw ): Add check which lets only
9935 floating-point values to be converted.
9936 (value_push): Delete.
9937 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9938 (i386_gdbarch_init): Number of register_bytes fixed.
9939
9940 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9941
9942 * MAINTAINERS: Add x86-64 target.
9943
9944 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9945
9946 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9947 * osfsolib.c (solib_map_sections): Ditto.
9948 * irix5-nat.c (solib_map_sections): Ditto.
9949 * corelow.c (gdb_check_format): Ditto.
9950 * symfile.c (symfile_bfd_open): Ditto.
9951 * solib.c (solib_map_sections): Ditto.
9952 Fix PR gdb/354.
9953
9954 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9955
9956 * remote.c (_initialize_remote): By default, disable ``e'' and
9957 ``E'' step out-of-range packets.
9958
9959 2002-02-26 Andreas Schwab <schwab@suse.de>
9960
9961 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9962 m68k_linux_frame_saved_pc.
9963 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9964 in_sigtramp.
9965 (SIGCONTEXT_PC_OFFSET): Remove.
9966 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9967 m68k_linux_sigtramp_saved_pc): New functions.
9968 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9969 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9970 (UCONTEXT_PC_OFFSET): Define.
9971 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9972 non-RT and RT signal trampolines.
9973
9974 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9975
9976 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9977 (TARGET_NBPG, STACK_END_ADDR): Delete
9978 (VARIABLES_INSIDE_BLOCK): Delete.
9979
9980 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9981
9982 * utils.c (perror_with_name): Make string parameter constant.
9983 (print_sys_errmsg): Ditto.
9984 (query): Ditto.
9985 * defs.h (perror_with_name): Update.
9986 (print_sys_errmsg): Update.
9987 (query): Update.
9988
9989 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9990
9991 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9992 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9993
9994 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9995
9996 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9997 if it already matches the current architecture from the exec file.
9998 Include arch-utils.h for gdbarch_info_init prototype.
9999 * Makefile.in (rs6000-nat.o): Update dependencies.
10000
10001 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10002
10003 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10004 list of exported variables.
10005
10006 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * gdbserver/configure.srv: New file.
10009 * gdbserver/configure.in: Use configure.srv instead
10010 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10011 from it.
10012 * gdbserver/configure: Regenerated.
10013 * gdbserver/terminal.h: New file.
10014 * gdbserver/Makefile.in: Update for configure changes. Remove
10015 more unneeded include paths.
10016
10017 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10018
10019 From wiz at danbala:
10020 * config/sparc/tm-sp64.h: Fix grammar and typos.
10021 Fix PR gdb/287.
10022
10023 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10024
10025 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10026 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10027 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10028 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10029 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10030 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10031 * s390-tdep.c: Ditto.
10032 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10033 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10034 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10035 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10036 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10037 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10038 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10039 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10040 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10041 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10042 Fix PR gdb/378.
10043
10044 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10045
10046 * lin-thread.c: Delete file.
10047 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10048 to gdb_proc_service.h.
10049 * configure: Re-generate.
10050
10051 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10052 * serial.c (serial_open): Delete check for "ocd".
10053 Fix PR gdb/349.
10054
10055 * Makefile.in (linux-thread.o): Delete target.
10056 * linux-thread.c: Delete file.
10057
10058 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10059 renamed SH files to be consistent.
10060
10061 * symtab.c (sort_search_symbols): Use xfree.
10062
10063 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10064
10065 * arm-linux-tdep.c (arm_linux_init_abi): Register
10066 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10067 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10068 definition with undef, since we don't want the sysvr4 definition.
10069 (SKIP_TRAMPOLINE_CODE): Likewise.
10070
10071 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10072
10073 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10074
10075 * configure.in: (AC_CHECK_FUNCS) Added test for
10076 canonicalize_file_name Regenerated.
10077 * config.in, configure: Regenerated.
10078 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10079 defined use canonicalize_file_name.
10080
10081 2002-02-23 Michael Chastain <mec@shout.net>
10082
10083 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10084
10085 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10086
10087 * README: Remove references to cygnus.com.
10088 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10089 dot com'' form. Remove references to cygnus.com and sourceware.
10090
10091 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10092
10093 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10094 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10095 1003.1-2001 no longer allows "head -1".
10096 * gdb/Makefile.in (version.c): Likewise.
10097 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10098 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10099 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10100
10101 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10102
10103 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10104 * command.h (cmd_cfunc_eq): Declare.
10105 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10106
10107 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10108 ``struct cmd_list_element *''.
10109 * cli/cli-cmds.c (is_complete_command): Update. Use
10110 cmd_cfunc_eq.
10111 * top.c (execute_command): Pass the command to
10112 is_complete_command.
10113 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10114
10115 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10116
10117 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10118 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10119 architecture defines.
10120 * s390-tdep.c (s390_gdbarch_init): Likewise.
10121
10122 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10123
10124 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10125 (arm_linux_push_arguments): Likewise.
10126 (arm_linux_init_abi): Register them. Also register linux-specific
10127 call_dummy_words.
10128 (find_minsym_and_objfile): Use strcmp, not STREQ.
10129 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10130 (arm_linux_call_dummy_words): Delete declaration.
10131 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10132 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10133 declarations.
10134 (LOWEST_PC): Delete.
10135
10136 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10137
10138 * maint.c (print_section_info): Do not prepend `0x' to filepos
10139 output, it will be handled by local_hex_string_custom.
10140
10141 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10142
10143 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10144 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10145 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10146
10147 2002-02-22 Jim Blandy <jimb@redhat.com>
10148
10149 Indicate that the bcache functions don't change the strings
10150 they're passed.
10151 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10152 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10153
10154 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10155
10156 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10157
10158 2002-02-21 Christopher Faylor <cgf@redhat.com>
10159
10160 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10161 find the complete path to a loaded DLL.
10162
10163 2002-02-21 Fred Fish <fnf@redhat.com>
10164
10165 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10166 that marks the end of the range of a function, enter a line number
10167 entry that has a line number of zero and a PC offset that matches
10168 the end of the function. This starts a range of PC's for which no
10169 line number information is known.
10170 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10171 PC's for which no line number info is found (line number is zero)
10172 then we didn't find any valid line information.
10173 * symtab.h: Document use of zero line number entry.
10174
10175 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10176
10177 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10178 (have_ptrace_getvrregs): Define for run time checks.
10179 (gdb_vrregset_t): New type for Altivec register handling.
10180 (fetch_register, store_register): Fetch/store altivec register
10181 when needed.
10182 (fetch_altivec_register, store_altivec_register): New functions.
10183 (supply_vrregset, fill_vrregset): New functions.
10184 (fetch_altivec_registers, store_altivec_registers): New functions.
10185 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10186 registers as well.
10187
10188 2002-02-21 Jiri Smid <smid@suse.cz>
10189
10190 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10191
10192 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10193
10194 * Makefile.in (armnbsd-nat.o): Update dependencies.
10195 * armnbsd-nat.c (supply_gregset): New function. Common code to
10196 supply the integer register set.
10197 (supply_fparegset): New function. Similar for FPA registers.
10198 (fetch_regs, fetch_fp_regs): Use them.
10199 (fetch_core_registers): Likewise.
10200 (fetch_elfcore_registers): New function.
10201 (arm_netbsd_elfcore_fns): New core-file type specification.
10202 (_initialize_arm_netbsd_nat): Register it.
10203
10204 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10205
10206 * armnbsd-nat.c: Include gdbcore.h.
10207 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10208 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10209 'void' to declaration, to shut up ARI.
10210 (fetch_core_registers): Make static. Rewrite using supply_register.
10211 (arm_netbsd_core_fns): New core-file type specification.
10212 (_initialize_arm_netbsd_nat): New function.
10213
10214 2002-02-21 Christopher Faylor <cgf@redhat.com>
10215
10216 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10217 value.
10218
10219 2002-02-20 Christopher Faylor <cgf@redhat.com>
10220
10221 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10222 fails.
10223
10224 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10225
10226 * jv-exp.y (parse_number): Change type of implicit longs
10227 to builtin_type_uint64.
10228
10229 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10230
10231 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10232 to be an integer instead of a `union wait'.
10233
10234 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * mips-linux-nat.c: Call the operating system GNU/Linux.
10237 * mips-linux-tdep.c: Likewise.
10238 * mips-tdep.c: Likewise.
10239
10240 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10241
10242 Fix PR gdb/265.
10243 * jv-exp.y (parse_number): Handle 64-bit integers.
10244
10245 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10246
10247 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10248 AC_STDC_HEADERS to AC_HEADER_STDC.
10249 * gdbserver/configure: Regenerated.
10250
10251 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10252
10253 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10254 is defined.
10255 * sparc-tdep.c (get_longjmp_target): Likewise.
10256
10257 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10258
10259 * News: Add news about ARM and Multi-arch. Mention the new target
10260 arm*-*-netbsd*.
10261
10262 2002-02-19 Jim Blandy <jimb@redhat.com>
10263
10264 * stabsread.c (error_type_complaint): Improve error message.
10265
10266 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * gdbserver/README: Update documentation.
10269 * gdbserver/configure.in: Update configury to match documentation.
10270 * gdbserver/Makefile.in: Likewise.
10271 * gdbserver/configure: Regenerated.
10272 * gdbserver/aclocal.m4: New file, generated by aclocal.
10273 * gdbserver/config.in: New file, generated by autoheader.
10274
10275 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10276
10277 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10278 armnbsd-nat.c.
10279
10280 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10281
10282 * arm-tdep.h (enum arm_float_model): New enum.
10283 (struct gdbarch_tdep): Add fp_model.
10284 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10285 up floating-point conversions until we know the floating-point model
10286 in use by the inferior. Don't complain about being unable to
10287 determine the ABI of the inferior when we don't have one.
10288 (arm_extract_return_value): Support different floating-point models.
10289 (arm_store_return_value): Likewise.
10290 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10291 ARM_FLOAT_SOFT.
10292 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10293
10294 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10295
10296 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10297 of ``current_gdbarch''.
10298
10299 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10300
10301 * armnbsd-nat.c : ANSIfy all function declarations.
10302 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10303 (fetch_inferior_registers): Re-implement in terms of above.
10304 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10305 (store_inferior_registers): Re-implement in terms of above.
10306
10307 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10308
10309 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10310 kernel.
10311 * arm-linux-tdep.c: Likewise.
10312 * config/arm/tm-linux.h: Likewise.
10313
10314 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10315
10316 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10317 * config/arm/nbsd.mt (TM_FILE): Delete.
10318 * config/arm/tm-nbsd.h: Delete.
10319
10320 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10321
10322 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10323 Initialize CALL_DUMMY_LENGTH.
10324
10325 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10326
10327 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10328 function.
10329 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10330 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10331 defines one thing and that is incorrect for this port.
10332 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10333
10334 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10335
10336 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10337
10338 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10339
10340 * win32-nat.c (display_selector): New function. Displays information
10341 about the information returned by GetThreadSelectorEntry API function.
10342 (display_selectors): New function. Displays the infomation of
10343 the selector given as argument, or of CS, DS ans FS selectors
10344 if no argument is given.
10345 ( _initialize_inftarg): Add "w32" as info prefix command.
10346 Add "info w32 selector" as command calling display_selectors.
10347
10348 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10349
10350 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10351 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10352 if not defined.
10353
10354 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10355
10356 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10357
10358 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10359
10360 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10361 (arm_fix_call_dummy): Call it.
10362 (arm_call_dummy_breakpoint_offset): Delete.
10363 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10364 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10365
10366 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10367
10368 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10369 Default to func_frame_chain_valid.
10370 * gdbarch.h, gdbarch.c: Re-generate.
10371 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10372
10373 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10374
10375 * ppc-linux-nat.c: Update copyright.
10376 (fetch_register, store_register): Add tid parameter, don't compute
10377 tid here.
10378 (fetch_ppc_registers, store_ppc_registers): Add tid
10379 parameter. Pass it along to callees.
10380 (fetch_inferior_registers, store_inferior_registers): Compute tid
10381 here, and pass it to calleed functions.
10382 (fill_gregset, supply_fpregset): Clean up formatting.
10383
10384 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10385
10386 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10387 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10388
10389 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10390
10391 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10392 * gdbarch.c gdbarch.h: Regenerate.
10393 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10394 function.
10395 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10396 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10397 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10398
10399 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10400 * arm-tdep.c (arm_get_longjmp_target): New function.
10401 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10402 this to a positive value register arm_get_longjmp_target as the
10403 longjmp handler.
10404 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10405 (arm_linux_init_abi): Set up longjmp description in tdep.
10406 * armnbsd-nat.c (get_longjmp_target): Delete.
10407 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10408 description in tdep.
10409 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10410 (get_longjmp_target): Delete declaration.
10411 (GET_LONGJMP_TARGET): Delete.
10412 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10413 (GET_LONGJMP_TARGET): Delete.
10414
10415 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10416
10417 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10418 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10419 of ``current_gdbarch''.
10420
10421 2002-02-17 Tom Tromey <tromey@redhat.com>
10422
10423 * cli/cli-cmds.c (compare_strings): New function.
10424 (complete_command): Only print each unique item once.
10425 * completer.h (complete_line): Declare.
10426 * completer.c (complete_line): New function.
10427 (line_completion_function): Use it.
10428
10429 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10430
10431 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10432 * gdbarch.h, gdbarch.c: Re-generate.
10433
10434 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10437
10438 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10439
10440 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10441 * valops.c (value_arg_coerce): Don't take the address of a reference
10442 to convert an argument to a reference.
10443
10444 2002-02-15 Christopher Faylor <cgf@redhat.com>
10445
10446 * win32-nat.c (get_image_name): New function.
10447 (handle_load_dll): Use get_image_name function.
10448 (get_child_debug_event): Avoid registering debug events until possibly
10449 execed process is started.
10450 (child_create_inferior): Allow invocation via shell so that command
10451 line redirection, etc. works ok.
10452 (_initialize_inftarg): Add new command: "set shell" to control whether
10453 a shell is used to start a process.
10454
10455 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10456
10457 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10458 instead of find_register_by_number.
10459 (cannot_store_register): Likewise.
10460
10461 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10462
10463 * dwarf2read.c: Replace fprintf (stderr, ...) by
10464 fprintf_unfiltered (gdb_stderr, ...).
10465
10466 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10467
10468 * gdbserver/gdbserver.1: Document --attach.
10469
10470 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10471
10472 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10473 descriptions.
10474 * arm-tdep.c (arm_default_arm_le_breakpoint)
10475 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10476 (arm_default_thumb_be_breakpoint): New. Initialize them from
10477 traditional breakpoint defines.
10478 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10479 (arm_gdbarch_init): Initialize new breakpoint variables.
10480 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10481 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10482 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10483 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10484 code out to ...
10485 (arm_netbsd_init_abi_common): ... here; new function.
10486 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10487 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10488 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10489 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10490
10491 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10492
10493 * arm-tdep.h (enum arm_abi): New enum.
10494 (struct gdbarch_tdep): New structure.
10495 (LOWEST_PC): Provide a default.
10496 (arm_gdbarch_register_os_abi): Declare new function.
10497 * arm-tdep.c (arm_abi_names): New array.
10498 (process_note_abi_tag_sections): New function.
10499 (get_elfosabi): New function.
10500 (arm_gdbarch_register_os_abi): New function.
10501 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10502 support for that ABI has been built in, then call the appropriate
10503 configuration routine. Use gdbarch_num_regs() to get the number
10504 of registers.
10505 (arm_dump_tdep): New function.
10506 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10507 place-holder functions.
10508 (_initialize_arm_tdep): Register them.
10509 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10510
10511 * armnbsd-tdep.c: New file.
10512 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10513 * config/arm/nbsd.mt (TDEPFILES): Add it.
10514 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10515
10516 * armnbsd-nat.c: Include regcache.h.
10517 * Makefile.in (armnbsd-nat.o): Update dependency list.
10518
10519 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10520
10521 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * gdbserver/Makefile.in: Fix typos in target rules.
10524
10525 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10526
10527 Fix part of PR gdb/267.
10528 * linespec.c (find_methods): Handle constructors specially for now.
10529
10530 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10531
10532 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10533 handling.
10534 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10535 standard_coerce_float_to_double().
10536
10537 2002-02-14 Christopher Faylor <cgf@redhat.com>
10538
10539 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10540 GDBINIT_FILENAME.
10541
10542 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10543
10544 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10545 find_variant_by_name, because it confuses the multiarch
10546 framework. Return NULL if there isn't an architecture with the
10547 user supplied name, instead of forcing a different one without
10548 recording the change with the multiarch machinery.
10549 (find_variant_by_name): Delete.
10550
10551 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10552
10553 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10554 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10555
10556 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10557
10558 * stack.c (print_frame_info_base): When calling
10559 print_frame_info_listing_hook, set current_source_symtab.
10560
10561 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10562
10563 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10564 and remove unused $(INCLUDE_DIR).
10565 Add regcache.c to OBS.
10566 Add generated register protocol files to clean target.
10567 Update dependencies for new objects, obsolete old target code.
10568
10569 * gdbserver/linux-low.c: Remove all platform-specific code to
10570 new files. Remove various dead code. Update to use regcache
10571 functionality.
10572 * gdbserver/remote-utils.c (fromhex): Add return statement
10573 to quiet warning.
10574 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10575 constant.
10576 (input_interrupt): Add integer parameter to match prototype
10577 of a signal handler.
10578 (outreg): Use register_data ().
10579 (prepare_resume_reply): Use gdbserver_expedite_regs.
10580 * gdbserver/server.c (main): Dynamically allocate own_buf because
10581 PBUFSIZ is no longer constant. Use registers_to_string () and
10582 registers_from_string ().
10583 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10584 for error (), fatal (), and warning (). Update definition of
10585 PBUFSIZ to use regcache functionality. Add include guard.
10586 * gdbserver/utils.c (fatal): Add missing ``const''.
10587 (warning): New function.
10588
10589 * regformats/regdat.sh: Include "regcache.h" in generated files.
10590 Provide init_registers () function.
10591 * regformats/regdef.h: Add prototype for set_register_cache ().
10592 Add include guard.
10593
10594 * gdbserver/linux-arm-low.c: New file.
10595 * gdbserver/linux-i386-low.c: New file.
10596 * gdbserver/linux-ia64-low.c: New file.
10597 * gdbserver/linux-m68k-low.c: New file.
10598 * gdbserver/linux-mips-low.c: New file.
10599 * gdbserver/linux-ppc-low.c: New file.
10600 * gdbserver/linux-sh-low.c: New file.
10601
10602 * gdbserver/regcache.c: New file.
10603 * gdbserver/regcache.h: New file.
10604
10605 * gdbserver/low-linux.c: Removed obsolete file.
10606
10607 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10608
10609 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10610 * config/i386/linux.mt: Likewise.
10611 * config/ia64/linux.mt: Likewise.
10612 * config/m68k/linux.mh: Likewise.
10613 * config/powerpc/linux.mh: Likewise.
10614 * config/mips/linux.mt: Likewise.
10615
10616 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10617
10618 * config/i386/i386lynx.mh: Mark gdbserver variables
10619 as (currently) obsolete for this target.
10620 * config/i386/nbsd.mt: Likewise.
10621 * config/i386/nbsdelf.mt: Likewise.
10622 * config/m32r/m32r.mt: Likewise.
10623 * config/m68k/m68klynx.mh: Likewise.
10624 * config/m68k/nbsd.mt: Likewise.
10625 * config/m68k/sun3os4.mh: Likewise.
10626 * config/mips/vr5000.mt: Likewise.
10627 * config/ns32k/nbsd.mt: Likewise.
10628 * config/pa/hppabsd.mh: Likewise.
10629 * config/pa/hppaosf.mh: Likewise.
10630 * config/powerpc/nbsd.mt: Likewise.
10631 * config/rs6000/rs6000lynx.mh: Likewise.
10632 * config/s390/s390.mt: Likewise.
10633 * config/s390/s390x.mt: Likewise.
10634 * config/sparc/sparclynx.mh: Likewise.
10635 * config/sparc/sun4os4.mh: Likewise.
10636 * config/i386/x86-64linux.mt: Likewise.
10637 * config/sparc/linux.mh: Likewise.
10638
10639 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10640
10641 * configure.tgt: Configure gdbserver only for known working
10642 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10643 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10644 SUBDIRS if it is configured. Update comment for ${nativefile}.
10645 * configure: Regenerated.
10646
10647 2002-02-13 Michael Snyder <msnyder@redhat.com>
10648
10649 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10650
10651 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10652 (default_gcore_mach): Just return 0, work around a problem in bfd.
10653 (default_gcore_target): OK to return NULL if exec_bfd is null.
10654 (make_mem_sec): Use a cast, avoid a warning.
10655
10656 * procfs.c (find_memory_regions_callback): Use a cast instead of
10657 calling host_pointer_to_address (which complains if
10658 sizeof (host pointer) != sizeof (target pointer)).
10659 (procfs_make_note_section): Avoid overflow in psargs string.
10660
10661 * procfs.c (procfs_make_note_section): Make the default
10662 implementation return an error.
10663
10664 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10665
10666 * procfs.c (procfs_make_note_section): Provide a default definition
10667 (for alpha-dec-osf4.0f). Fix typos.
10668
10669 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10670
10671 * linux-proc.c: Add include of regcache.h.
10672 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10673
10674 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10675
10676 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10677 * memattr.c (create_mem_region): Disallow useless empty region.
10678 Regions are half-open intervals, so allow [A..B) [B..C) as
10679 non-overlapping.
10680
10681 2002-02-13 Michael Chastain <mec@shout.net>
10682
10683 * defs.h: Kill CONST_PTR.
10684 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10685 * c-lang.c (c_builtin_types): Likewise.
10686 * ch-lang.c (ch_builtin_types): Likewise.
10687 * f-lang.c (f_builtin_types): Likewise.
10688 * language.c (unknown_builtin_types): Likewise.
10689 * m2-lang.c (m2_builtin_types): Likewise.
10690 * p-lang.c (pascal_builtin_types): Likewise.
10691 * scm-lang.c (c_builtin_types): Likewise.
10692
10693 2002-02-13 Keith Seitz <keiths@redhat.com>
10694
10695 * arm-tdep.h (arm_get_next_pc): Add declaration.
10696
10697 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10698
10699 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10700 with other related struct-returning functions.
10701 (arm_extract_struct_value_address): New function.
10702 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10703 initialize float_format, double_format and long_double_format as
10704 appropriate to the endianness of the target.
10705 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10706 (arm_use_struct_convention): Delete declaration.
10707 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10708
10709 2002-02-13 Keith Seitz <keiths@redhat.com>
10710
10711 * defs.h (core_addr_to_string_nz): New function.
10712
10713 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10714
10715 Apply missing bits of 2002-01-15 patch.
10716 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10717 (fill_fpregset): Use i387_fill_fsave.
10718
10719 2002-02-12 Keith Seitz <keiths@redhat.com>
10720
10721 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10722 (core_addr_to_string_nz): New function.
10723
10724 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10725
10726 * arm-linux-nat.c: Really include arm-tdep.h.
10727 * config/arm/tm-linux.h (struct type, struct value): Declare.
10728
10729 2002-02-11 Michael Snyder <msnyder@redhat.com>
10730
10731 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10732 (gcore section): Ifdef for Solaris and Unixware only.
10733 (procfs_do_thread_registers): Unixware needs one lwpstatus
10734 per thread (not one prstatus or pstatus).
10735 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10736 not over all gdb threads. For unixware, call elfcore_write_pstatus
10737 once before iterating over threads.
10738
10739 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10740
10741 * arm-tdep.h: New file.
10742 * arm-tdep.c: Include arm-tdep.h.
10743 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10744 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10745 (arm_print_float_info, arm_register_type, convert_to_extended)
10746 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10747 (arm_extract_return_value, arm_register_name): Make static.
10748 (arm_software_single_step): Similarly. Fix types in declaration.
10749 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10750 (arm_store_return_value, arm_store_struct_return): New functions.
10751 (arm_gdbarch_init): Register the above functions. Also register
10752 call_dummy_start_offset, sizeof_call_dummy_words,
10753 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10754 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10755 max_register_virtual_size, register_size. Set up
10756 prologue_cache.saved_regs here, rather than ...
10757 (_initialize_arm_tdep): ... here.
10758 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10759 declarations.
10760 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10761 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10762 (arm_print_float_info, arm_register_type, convert_to_extended)
10763 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10764 (arm_extract_return_value, arm_register_name): Delete declarations.
10765 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10766 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10767 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10768 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10769 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10770 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10771 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10772 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10773 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10774 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10775 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10776 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10777 interface.
10778 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10779 * remote-rdi.c remote-rdp.c: Likewise.
10780 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10781 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10782 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10783 definition.
10784
10785 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10786 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10787 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10788 from non-ARM_ prefixed definitions.
10789 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10790 all uses of above.
10791 * remote-rdi.c remote-rdp.c: Likewise.
10792 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10793
10794 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10795
10796 * arm-tdep.c (arm_frameless_function_invocation)
10797 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10798 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10799 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10800 (arm_pop_frame, arm_get_next_pc): Make static.
10801 (arm_gdbarch_init): Register above in gdbarch structure.
10802 (arm_read_fp): Renamed from arm_target_read_fp.
10803 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10804 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10805 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10806 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10807 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10808 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10809 (arm_pc_is_thumb_dummy): Delete declarations.
10810 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10811 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10812 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10813 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10814
10815 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * symtab.c (compare_search_syms): New function.
10818 (sort_search_symbols): New function.
10819 (search_symbols): Sort symbols after searching rather than
10820 before.
10821
10822 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10823
10824 * NEWS: Linux -> GNU/Linux.
10825
10826 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10827
10828 * gdbarch.sh: For for level one methods, disallow a definition
10829 when partially multi-arched. Add comments explaining rationale.
10830 * gdbarch.h: Re-generate.
10831
10832 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10833
10834 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10835 multi-arch partial.
10836
10837 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10838
10839 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10840 field. Use diff -u.
10841 * gdbarch.c: Re-generate.
10842
10843 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10844
10845 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10846 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10847 partial.
10848
10849 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10850
10851 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10852 multi-arch partial.
10853 (PUSH_ARGUMENTS): Switch to using predefault.
10854 * gdbarch.c: Regenerate.
10855
10856 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10857
10858 * valops.c (PUSH_ARGUMENTS): Delete definition.
10859 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10860 partial. Default to default_push_arguments.
10861 * gdbarch.h, gdbarch.c: Regenerate.
10862
10863 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10864
10865 * defs.h (throw_exception): Rename return_to_top_level. Update
10866 comments.
10867 * utils.c (error_stream, internal_verror, quit): Ditto.
10868 * top.c (throw_exception, catcher): Ditto.
10869 * sparclet-rom.c (sparclet_load): Ditto.
10870 * remote.c (interrupt_query, minitelnet): Ditto.
10871 * remote-sds.c (interrupt_query): Ditto.
10872 * remote-mips.c (mips_error, mips_kill): Ditto.
10873 * ocd.c (interrupt_query): Ditto.
10874 * monitor.c (monitor_interrupt_query): Ditto.
10875 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10876 * target.h: Update comment.
10877
10878 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10879
10880 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10881
10882 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10883 default_double_format.
10884 * gdbarch.h, gdbarch.c: Re-generate.
10885 * findvar.c (floatformat_unknown): Delete variable definition.
10886 * doublest.h (floatformat_unknown): Delete variable declaration.
10887
10888 2002-02-09 Jim Blandy <jimb@redhat.com>
10889
10890 * stabsread.c (read_type): Add code to parse Sun's syntax for
10891 prototyped function types.
10892
10893 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10894
10895 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10896 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10897
10898 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10899
10900 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10901 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10902 now _initialize_xcoffsolib gets called again and overrides the
10903 commands from solib.c in a native configuration.
10904
10905 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10906
10907 * doublest.c (store_typed_floating): Don't try to return a value.
10908 Fixes PR gdb/290.
10909
10910 2002-02-08 Jim Blandy <jimb@redhat.com>
10911
10912 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10913 is prototyped and has no arguments, print its argument list as
10914 `(void)'.
10915
10916 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10917
10918 * MAINTAINERS (write-after-approval): Add myself.
10919 (paper-trail): I've escaped!
10920
10921 2002-02-08 Christopher Faylor <cgf@redhat.com>
10922
10923 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10924 changes.
10925 (_initialize_check_for_gdb_ini): Ditto.
10926
10927 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10928
10929 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10930 xaprintf -> xasprintf.
10931
10932 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10933
10934 * win32-nat.c: Remove use of printf and sprintf functions.
10935
10936 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10937
10938 * arm-tdep.c (arm_frame_chain_valid): Make static.
10939 (arm_push_arguments): Likewise.
10940 (arm_gdbarch_init): New function.
10941 (_initialize_arm_tdep): Call it.
10942 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10943 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10944 (FRAME_CHAIN_VALID): Delete.
10945 (arm_frame_chain_valid): Delete declaration.
10946 (PUSH_ARGUMENTS): Delete.
10947 (arm_push_arguments): Delete declaration.
10948 (CALL_DUMMY_P): Delete.
10949
10950 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10951 Corinna Vinschen <vinschen@redhat.com>
10952
10953 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10954 on builtin float types.
10955
10956 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10957
10958 * utils.c: Include <curses.h> before "bfd.h".
10959 * tui/tui-hooks.c: Likewise.
10960 * tui/tui.c: Likewise.
10961 * tui/tuiCommand.c: Likewise.
10962 * tui/tuiData.c: Likewise.
10963 * tui/tuiDataWin.c: Likewise.
10964 * tui/tuiDisassem.c: Likewise.
10965 * tui/tuiGeneralWin.c: Likewise.
10966 * tui/tuiIO.c: Likewise.
10967 * tui/tuiLayout.c: Likewise.
10968 * tui/tuiRegs.c: Likewise.
10969 * tui/tuiSource.c: Likewise.
10970 * tui/tuiSourceWin.c: Likewise.
10971 * tui/tuiStack.c: Likewise.
10972 * tui/tuiWin.c: Likewise.
10973
10974 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10975
10976 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10977 to include space for pseudoregs as well. Update loops accordingly.
10978 (sh_fp_frame_init_saved_regs): Ditto.
10979 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10980
10981 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10982
10983 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10984 Add Richard Earnshaw to Arm maintainers.
10985
10986 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10987
10988 * defs.h (warning_begin): Delete declaration.
10989
10990 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10991 Delete macro.
10992
10993 2002-02-07 Michael Snyder <msnyder@redhat.com>
10994
10995 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10996 Logic bug, remove misplaced else.
10997
10998 2002-02-07 Klee Dienes <klee@apple.com>
10999
11000 * fork-inferior.c (fork_inferior): Add '!' to the list of
11001 characters that need to be quoted when building a string for the
11002 shell. Quote '!' specifically with a backslash, since CSH chokes
11003 when trying to evaluate "str!str".
11004
11005 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11006
11007 * rdi-share/host.h: Only provide a typedef for bool if it is not
11008 defined.
11009
11010 2002-02-04 Michael Snyder <msnyder@redhat.com>
11011
11012 * breakpoint.h (enum bptype): Add new overlay event bp type.
11013 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11014
11015 * breakpoint.c (create_internal_breakpoint): New function.
11016 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11017 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11018 (create_thread_event_breakpoint): Ditto.
11019 (create_solib_event_breakpoint): Ditto.
11020 (create_overlay_event_breakpoint): New function.
11021 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11022 (update_breakpoints_after_exec): Delete and re-initialize
11023 overlay event breakpoints after an exec. Add FIXME comment
11024 about longjmp breakpoint.
11025 (print_it_typical): Ignore overlay event breakpoints.
11026 (print_one_breakpoint): Ditto.
11027 (mention): Ditto.
11028 (bpstat_what): Do not stop for overlay event breakpoints.
11029 (delete_breakpoint): Don't delete overlay event breakpoints.
11030 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11031 (breakpoint_re_set): Re-create overlay event breakpoint.
11032
11033 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11034 (overlay_manual_command): Disable overlay breakpoints.
11035 (overlay_off_command): Disable overlay breakpoints.
11036
11037 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11038
11039 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11040 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11041 to here from config/tm-arm.h.
11042 (coff_sym_is_thumb): Make static.
11043 (arm_elf_make_msymbol_special): New function.
11044 (arm_coff_make_msymbol_special): New function.
11045 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11046 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11047 (coff_sym_is_thumb): Delete declaration.
11048 (arm_elf_make_msymbol_special): Declare.
11049 (arm_coff_make_msymbol_special): Declare.
11050 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11051 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11052
11053 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11054
11055 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11056
11057 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11058
11059 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11060 * gdbarch.c gdbarch.h: Regenerate.
11061 * arch-utils.c (default_print_float_info): New function.
11062 * arch-utils.h (default_print_float_info): Prototype it.
11063 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11064 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11065 (PRINT_FLOAT_INFO): Document it.
11066
11067 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11068 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11069 (PRINT_FLOAT_INFO): Define.
11070
11071 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11072
11073 * win32-nat.c (_initialize_check_for_gdb_ini):
11074 Add typecast to sprintf argument to suppress a warning.
11075
11076 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11077
11078 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11079 to allow easier handling of pass state.
11080 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11081 that gives exception name and address.
11082 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11083 and set last_sig value to ourstatus->value.sig. Some missing
11084 exceptions added.
11085 (child_continue): Correctly report continue_status.
11086 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11087 TARGET_SIGNAL_0 (new default value).
11088 (child_resume): consider sig argument passed to decide if
11089 the exception should be passed to debuggee or not.
11090
11091 2002-02-05 Michael Snyder <msnyder@redhat.com>
11092
11093 * regcache.c (fetch_register): Call target_fetch_register
11094 only if we don't call FETCH_PSEUDO_REGISTER.
11095 (store_register): Call target_store_register only if we
11096 don't call STORE_PSEUDO_REGISTER.
11097
11098 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11099
11100 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11101 ELF_MAKE_MSYMBOL_SPECIAL.
11102 * gdbarch.c, gdbarch.h: Regenerate.
11103 * arch-utils.c (default_make_msymbol_special): New function.
11104 * arch-utils.h (default_make_msymbol_special): Export.
11105 * elfread.c (elf_symtab_read): Compile use of
11106 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11107 multiarched.
11108 * coffread.c (coff_symtab_read): Ditto, for
11109 COFF_MAKE_MSYMBOL_SPECIAL.
11110
11111 2002-02-05 Jim Blandy <jimb@redhat.com>
11112
11113 * solib-svr4.c (svr4_truncate_ptr): New function.
11114 (svr4_relocate_section_addresses): Do the address arithmetic with
11115 the appropriate truncation for target addresses, even when
11116 CORE_ADDR is larger than a target address.
11117
11118 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11119
11120 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11121 to (int *).
11122
11123 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11124
11125 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11126 code.
11127
11128 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11129
11130 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11131
11132 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11133
11134 * gdbserver/linux-low.c: Remove unused include files.
11135
11136 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11137
11138 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11139 (read_inferior_memory): Use it.
11140 (write_inferior_memory): Likewise.
11141
11142 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11143
11144 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11145 grubbing through sys_errlist.
11146
11147 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11148
11149 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11150
11151 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11152 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11153
11154 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11155
11156 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11157 (do_sfunc, set_cmd_sfunc): New functions.
11158
11159 * command.h (struct cmd_list_element): Add field func.
11160 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11161 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11162 * cli/cli-decode.h: Ditto.
11163
11164 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11165 (help_all, help_cmd_list): Ditto.
11166 (find_cmd, complete_on_cmdlist): Ditto.
11167 * top.c (execute_command): Ditto.
11168
11169 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11170 function.sfunc.
11171
11172 * infcmd.c (notice_args_read): Fix function signature.
11173
11174 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11175 * cli/cli-decode.c (add_set_cmd): Ditto.
11176 * utils.c (initialize_utils): Ditto.
11177 * maint.c (_initialize_maint_cmds): Ditto.
11178 * infrun.c (_initialize_infrun): Ditto.
11179 * demangle.c (_initialize_demangler): Ditto.
11180 * remote.c (add_packet_config_cmd): Ditto.
11181 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11182 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11183 * proc-api.c (_initialize_proc_api): Ditto.
11184 * kod.c (_initialize_kod): Ditto.
11185 * valprint.c (_initialize_valprint): Ditto.
11186 * top.c (init_main): Ditto.
11187 * infcmd.c (_initialize_infcmd): Ditto.
11188 * corefile.c (_initialize_core): Ditto.
11189 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11190 * arch-utils.c (initialize_current_architecture): Ditto.
11191 (_initialize_gdbarch_utils): Ditto.
11192 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11193
11194 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11195 * wince.c (_initialize_inftarg): Ditto.
11196 * symfile.c (_initialize_symfile): Ditto.
11197 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11198 * language.c (_initialize_language): Ditto.
11199 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11200
11201 2002-02-04 Michael Snyder <msnyder@redhat.com>
11202
11203 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11204
11205 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11208 Add rules for building the register data files.
11209
11210 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * regformats/regdat.sh: Add braces to the definition of
11213 expedite_regs_${arch}.
11214
11215 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11216
11217 * regformats/regdef.h (struct reg): Add comment describing the
11218 requirements for offset and size fields.
11219
11220 2002-02-04 Andreas Schwab <schwab@suse.de>
11221
11222 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11223 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11224
11225 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11226
11227 * gdbarch.sh (copyright): Update years in generated header.
11228 (SMASH_TEXT_ADDRESS): Add rule.
11229 * gdbarch.h, gdbarch.c: Re-generate.
11230 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11231 * dbxread.c: Likewise.
11232 * dwarfread.c: Likewise.
11233 * elfread.c: Likewise.
11234 * somread.c: Likewise.
11235
11236 * arm-tdep.c (arm_smash_text_address): New function.
11237 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11238
11239 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11240
11241 Add support for hardware watchpoints on win32 native.
11242 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11243 CONTEXT_DEBUG_REGISTERS.
11244 (dr variable): New variable. Static array containing a local copy
11245 of debug registers.
11246 (debug_registers_changed): New variable. Reflects when debug registers
11247 are changed and need to be written to inferior.
11248 (debug_registers_used): New variable. Reflects when any debug register
11249 was set, used when new threads are created.
11250 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11251 i386-nat code.
11252 (thread_rec): Set dr array if id is the thread of current_event .
11253 (child_continue, child_resume): Change the debug registers for all
11254 threads if debug_registers_changed.
11255 (child_add_thread): Change the debug registers if debug_registers_used.
11256 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11257 Link nm.h to new nm-cygwin.h file.
11258 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11259 of hardware registers.
11260
11261 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11262
11263 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11264 Restore behavour broken by 2002-01-20 Andrew Cagney
11265 <ac131313@redhat.com> IEEE_FLOAT removal.
11266
11267 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * c-valprint.c (c_val_print): Pass a proper valaddr to
11270 cp_print_class_method.
11271 * valops.c (search_struct_method): If there is only one method
11272 and args is NULL, return that method.
11273
11274 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11275
11276 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11277 accessing tag_name directly.
11278
11279 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11280
11281 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11282 of accessing tag_name directly.
11283
11284 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11285
11286 PR gdb/280
11287 * gdbtypes.c (replace_type): New function.
11288 * gdbtypes.h (replace_type): Add prototype.
11289 * stabsread.c (read_type): Use replace_type.
11290
11291 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11292
11293 * Makefile.in (memattr.o): Add missing dependencies rule.
11294
11295 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11296
11297 * breakpoint.c (break_at_finish_command): Really export.
11298 (break_at_finish_at_depth_command): Ditto.
11299 (tbreak_at_finish_command): Ditto.
11300 * hppa-tdep.c: Include completer.h.
11301 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11302 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11303
11304 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11305
11306 * utils.c (do_write): New function.
11307 (error_stream): Rewrite combining the code from error_begin and
11308 verror.
11309 (verror): Rewrite using error_stream.
11310 (error_begin): Delete function.
11311
11312 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11313
11314 * utils.c (error_begin): Make static.
11315 * defs.h (error_begin): Delete declaration.
11316
11317 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11318 (decode_line_1): Use cplusplus_error instead of error_begin,
11319 cplusplus_hint and return_to_top_level.
11320 * coffread.c (coff_symfile_read): Use error instead of error_begin
11321 and return_to_top_level.
11322 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11323
11324 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11325
11326 * language.h (type_error, range_error): Make string parameter
11327 constant.
11328 * language.c (warning_pre_print): Delete extern declaration.
11329 * dwarfread.c (warning_pre_print): Ditto.
11330 * language.c (type_error, range_error): Rewrite to use verror and
11331 vwarning instead of warning_begin.
11332
11333 2002-02-01 Michael Snyder <msnyder@redhat.com>
11334
11335 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11336 (set_ignore_count): Move misplaced comment back where it belongs.
11337
11338 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11339
11340 * command.h (NO_FUNCTION): Delete macro.
11341 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11342 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11343 * tracepoint.c (_initialize_tracepoint): Ditto.
11344 * cli/cli-decode.c (add_set_cmd): Ditto.
11345 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11346
11347 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11350 Update ``this'' pointer when calling virtual functions.
11351
11352 2002-02-01 Michael Snyder <msnyder@redhat.com>
11353
11354 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11355 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11356
11357 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * regformats/reg-arm.dat: New file.
11360 * regformats/reg-i386.dat: New file.
11361 * regformats/reg-ia64.dat: New file.
11362 * regformats/reg-m68k.dat: New file.
11363 * regformats/reg-mips.dat: New file.
11364 * regformats/reg-ppc.dat: New file.
11365 * regformats/reg-sh.dat: New file.
11366 * regformats/regdef.h: New file.
11367 * regformats/regdat.sh: New file.
11368
11369 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11370
11371 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11372 (arm_frame_args_address, arm_frame_locals_address): New functions.
11373 (arm_frame_num_args): New function.
11374 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11375 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11376 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11377
11378 2002-01-31 Michael Snyder <msnyder@redhat.com>
11379
11380 * breakpoint.c (break_at_finish_command): Export.
11381 (break_at_finish_at_depth_command): Export.
11382 (tbreak_at_finish_command): Export.
11383 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11384 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11385 "txbreak" commands, which are HPPA specific.
11386
11387 * printcmd.c (disassemble_command): Remove an ancient
11388 artifact of an old merge.
11389
11390 * symfile.h (enum overlay_debugging_state):
11391 Define enum constant values for overlay mode.
11392 * symfile.c (overlay_debugging): Use enums instead of literals.
11393 (overlay_is_mapped, overlay_auto_command,
11394 overlay_manual_command): Ditto.
11395
11396 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11397 breakpoint_here_p, breakpoint_inserted_here_p,
11398 breakpoint_thread_match, bpstat_stop_status,
11399 describe_other_breakpoints, check_duplicates, clear_command):
11400 Coding standard fixes.
11401
11402 * target.c (target_xfer_memory): Add spaces, coding standard.
11403 (do_xfer_memory): Add missing line to trust-readonly
11404 code: check bfd SEC_READONLY flag for section.
11405
11406 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11407
11408 * PROBLEMS: Fix typo, 5.1->5.1.1.
11409
11410 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11411
11412 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11413 data symbols, since we search based on textlow and texthigh.
11414 (find_pc_sect_symtab): Likewise.
11415
11416 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11417
11418 * defs.h (vwarning): Declare.
11419 * utils.c (vwarning): New function.
11420 (warning): Call vwarning.
11421 (warning_begin): Delete function.
11422
11423 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11424 the warning message.
11425 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11426 warning_begin.
11427
11428 2002-01-30 Michael Snyder <msnyder@redhat.com>
11429
11430 * NEWS: Mention "set trust-readonly-sections" command.
11431 Mention generate-core-file command.
11432
11433 2002-01-15 Michael Snyder <msnyder@redhat.com>
11434
11435 * target.c: New command, "set trust-readonly-sections on".
11436 (do_xfer_memory): Honor the suggestion to trust readonly sections
11437 by reading them from the object file instead of from the target.
11438 (initialize_targets): Register command "set trust-readonly-sections".
11439
11440 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11441
11442 * parse.c (target_map_name_to_register): Simplify, search regs and
11443 pseudo-regs using a single loop.
11444
11445 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11446
11447 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11448
11449 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11450
11451 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11452 * config/i386/i386v42mp.mh: Add i387-nat.o .
11453 * i386v4-nat.c: Include i387-nat.h.
11454 (supply_fpregset): Use i387_supply_fsave.
11455 (fill_fpregset): Use i387_fill_fsave.
11456
11457 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11458
11459 * arm-tdep.c (arm_call_dummy_words): Define.
11460 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11461 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11462 (CALL_DUMMY_WORDS): Define.
11463 (arm_call_dummy_words): Declare.
11464 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11465 (arm_linux_call_dummy_words): Declare.
11466
11467 2002-01-30 Andreas Schwab <schwab@suse.de>
11468
11469 * m68klinux-nat.c: Fix last change to use regcache_collect
11470 instead of referencing registers[] directly.
11471
11472 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11473
11474 * parse.c (target_map_name_to_register): Delete code wrapped in
11475 #ifdef REGISTER_NAME_ALIAS_HOOK.
11476
11477 2002-01-28 Michael Snyder <msnyder@redhat.com>
11478
11479 * regcache.c (legacy_read_register_gen): Need to be able to
11480 read pseudo-register as well as real register.
11481 (legacy_write_register_gen): Ditto.
11482
11483 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11484
11485 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11486 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11487 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11488 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11489 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11490 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11491 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11492 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11493 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11494 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11495 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11496 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11497 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11498 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11499 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11500 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11501 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11502 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11503 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11504 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11505
11506 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11507
11508 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11509 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11510 (initialize_current_architecture): Update target_byte_order using
11511 information from BFD.
11512 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11513 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11514
11515 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11516
11517 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11518 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11519
11520 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11521 #ifdef INVALID_FLOAT.
11522 * infcmd.c (do_registers_info): Ditto.
11523 * values.c (unpack_double): Ditto. Add comment.
11524
11525 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11526 already commented out.
11527
11528 2002-01-26 Andreas Schwab <schwab@suse.de>
11529
11530 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11531 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11532 registers and add support for PTRACE_GETREGS.
11533
11534 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11535
11536 GDB 5.1.1 released from 5.1 branch.
11537 * NEWS: Add 5.1.1 news.
11538 * README: Sync with 5.1 branch.
11539
11540 2002-01-23 Fred Fish <fnf@redhat.com>
11541
11542 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11543 stabstring on initial malloc. Reallocing will copy it for us,
11544 if necessary.
11545
11546 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11547
11548 * Makefile.in (hpread_h): Delete.
11549 (HFILES_NO_SRCDIR): Remove hpread.h.
11550 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11551 (hpread.o): Update dependencies.
11552 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11553
11554 * hp-psymtab-read.c: Remove file.
11555 * hp-symtab-read.c: Remove file.
11556 * hpread.h: Remove file.
11557
11558 * hpread.c: Merge all contents of hp-psymtab-read.c,
11559 hp-symtab-read.c and hpread.h into this file, as it was prior to
11560 January 1999.
11561
11562 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11563 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11564 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11565 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11566
11567 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11568
11569 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11570 fill_gregset): Call gdbarch_tdep() just once, assign result to
11571 variable and use that, instead of calling the function several
11572 times.
11573
11574 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11575
11576 * configure.host: Accept sparcv9 as alias for sparc64.
11577 * configure.tgt: Likewise.
11578
11579 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11580
11581 * solib-aix5.c (build_so_list_from_mapfile)
11582 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11583 arguments is not reversed.
11584 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11585 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11586
11587 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11588
11589 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11590 modified version of obsolete sh_fetch_pseudo_register.
11591 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11592 (sh4_register_read): New function.
11593 (sh_pseudo_register_write): New function. Renamed and modified
11594 version of obsolete sh_store_pseudo_register.
11595 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11596 (sh4_register_write): New function.
11597 (sh_gdbarch_init): Remove setting of gdbarch function
11598 fetch_pseudo_register and store_pseudo_register. Remove setting of
11599 register_convert_to_raw, register_convert_to_virtual,
11600 register_convertible.
11601 (sh_sh4_register_convertible): Delete. No longer needed. All is
11602 taken care by architecture specific functions
11603 register_read/register_write.
11604 (sh_sh4_register_convert_to_virtual): Make static.
11605 (sh_sh4_register_convert_to_raw): Ditto.
11606
11607 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11608
11609 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11610 (floatformat_is_nan, floatformat_mantissa): Ditto.
11611
11612 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11613 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11614 builtin_type_ieee_double_little,
11615 builtin_type_ieee_double_littlebyte_bigword,
11616 builtin_type_m68881_ext, builtin_type_i960_ext,
11617 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11618 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11619 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11620 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11621
11622 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11623
11624 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11625 parameter. Set frameless flag if it exists and depended of
11626 whether the scanned function is frameless or not.
11627 (xstormy16_skip_prologue): If function is frameless, return
11628 result of xstormy16_scan_prologue().
11629 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11630 call.
11631
11632 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11633
11634 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11635 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11636 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11637 sh_sh4_register_byte, sh_sh4_register_raw_size,
11638 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11639 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11640 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11641 sh_store_pseudo_register, sh_do_pseudo_register): Call
11642 gdbarch_tdep() just once, assign result to variable and use that,
11643 instead of calling the function several times.
11644
11645 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11646
11647 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11648 macros instead of LAST_FPU_CTRL_REGNUM.
11649 (store_register): Likewise.
11650
11651 2002-01-21 Jim Blandy <jimb@redhat.com>
11652
11653 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11654 is up-to-date before running the program, not just when a program
11655 exits.
11656
11657 2002-01-21 Fred Fish <fnf@redhat.com>
11658
11659 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11660 when we have found all instructions we are looking for.
11661
11662 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11663
11664 * arm-tdep.c (arm_register_name): New function.
11665 (arm_registers_names): Make static.
11666 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11667 (arm_register_name): Declare.
11668 (REGISTER_NAME): Use it.
11669
11670 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11671 Kevin Buettner <kevinb@redhat.com>
11672
11673 Convert arm targets to new FRAME interface.
11674 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11675 (arm_frame_find_save_regs): Delete.
11676 (arm_frame_init_saved_regs): New.
11677 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11678 Allocate extra_info as required. Convert all uses of fsr.regs
11679 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11680 to use extra_info.
11681 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11682 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11683 (check_prologue_cache, save_prologue_cache): Likewise.
11684 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11685 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11686 (FRAME_FIND_SAVED_REGS): Delete.
11687 (arm_frame_find_saved_regs): Delete prototype.
11688 (arm_frame_init_saved_regs): New prototype.
11689 (FRAME_INIT_SAVED_REGS): Define.
11690
11691 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11692
11693 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11694
11695 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11696
11697 From Jeff Law <law@redhat.com>:
11698 * infttrace.c: Include <sys/pstat.h>.
11699 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11700 exec file if the ttrace equivalent fails.
11701
11702 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11703
11704 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11705 (closeLogFile): Ditto.
11706
11707 2002-01-20 Michael Chastain <mec@shout.net>
11708
11709 * top.c (print_gdb_version): Bump copyright year to 2002.
11710
11711 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11712
11713 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11714 Zannoni and Eli Zaretskii.
11715
11716 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11717
11718 * buildsym.c: Update copyright years.
11719 * c-typeprint.c: Likewise.
11720 * dwarf2read.c: Likewise.
11721 * f-typeprint.c: Likewise.
11722 * gdbtypes.c: Likewise.
11723 * gdbtypes.h: Likewise.
11724 * hp-symtab-read.c: Likewise.
11725 * hpread.c: Likewise.
11726 * mdebugread.c: Likewise.
11727 * p-typeprint.c: Likewise.
11728
11729 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11730
11731 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11732 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11733 byte-order selectable.
11734 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11735 * arch-utils.c: Ditto.
11736 (set_endian): Ditto.
11737 (set_endian_from_file): Ditto.
11738 * gdbserver/low-sim.c (create_inferior): Ditto.
11739 * gdbarch.sh: Ditto.
11740 * gdbarch.h: Re-generate.
11741 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11742 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11743 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11744 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11745 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11746 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11747 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11748 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11749 macro definition.
11750 * config/mips/tm-wince.h: Remove #undef of macro
11751 TARGET_BYTE_ORDER_SELECTABLE.
11752 * config/sh/tm-wince.h: Ditto.
11753
11754 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11755
11756 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11757 member function fields. Add accessor macro
11758 TYPE_FN_FIELD_ARTIFICIAL.
11759 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11760 * c-typeprint.c (c_type_print_base): Skip artificial member
11761 functions.
11762
11763 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * f-typeprint.c: Delete unused function f_type_print_args.
11766 * p-typeprint.c: Delete unused function pascal_type_print_args.
11767
11768 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11771 comment. Add ``artificial'' to ``union field_location''.
11772
11773 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11774
11775 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11776 * mdebugread.c (parse_symbol): Likewise.
11777 * stabsread.c (define_symbol): Likewise.
11778 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11779 initializing TYPE_FIELD_BITPOS to n (obsolete).
11780 (hpread_doc_function_type): Likewise.
11781 * hpread.c (hpread_function_type): Likewise.
11782
11783 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11784
11785 * configure.in (host_makefile_frag): Only require a host makefile
11786 fragment when a native build.
11787 * configure: Re-generate.
11788
11789 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11790
11791 * doublest.h (floatformat_from_type): Declare.
11792 * doublest.c (floatformat_from_type): New function.
11793 (convert_typed_floating): Use.
11794
11795 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11796 call to function floatformat_from_type.
11797
11798 * gdbarch.sh (IEEE_FLOAT): Delete.
11799 * gdbarch.h, gdbarch.c: Re-generate.
11800 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11801 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11802 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11803 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11804 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11805 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11806 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11807 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11808 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11809 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11810 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11811 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11812
11813 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11814 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11815 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11816 * sh-tdep.c (sh_gdbarch_init): Ditto.
11817 * mips-tdep.c (mips_gdbarch_init): Ditto.
11818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11819 * cris-tdep.c (cris_gdbarch_init): Ditto.
11820
11821 2002-01-20 Jiri Smid <smid@suse.cz>
11822
11823 * configure.host, configure.tgt: Support x86-64.
11824 * NEWS: Note new target x86-64.
11825
11826 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11827 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11828 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11829 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11830 x86-64-linux-nat.o): Fix dependencies.
11831
11832 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11833
11834 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11835 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11836 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11837 * config/sparc/xm-sun4os4.h: Delete file.
11838 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11839
11840 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11841
11842 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11843 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11844 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11845 * config/i386/i386lynx.mh (XM_FILE): Delete.
11846 * config/rs6000/xm-rs6000ly.h: Delete file.
11847 * config/sparc/xm-sparclynx.h: Delete file.
11848 * config/m68k/xm-m68klynx.h: Delete file.
11849 * config/i386/xm-i386lynx.h: Delete file.
11850 * config/xm-lynx.h: Delete file.
11851 * config/djgpp/fnchange.lst: Update.
11852
11853 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11854
11855 * alpha-tdep.c (alpha_register_byte): New function.
11856 (alpha_register_raw_size): Ditto.
11857 (alpha_register_virtual_size): Ditto.
11858 (alpha_skip_prologue_internal): Renamed from
11859 alpha_skip_prologue.
11860 (alpha_skip_prologue): New version that calls
11861 alpha_skip_prologue_internal.
11862 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11863 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11864 second argument from alpha_skip_prologue.
11865 (REGISTER_BYTE): Use alpha_register_byte.
11866 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11867 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11868 (FRAMELESS_FUNCTION_INVOCATION): Use
11869 generic_frameless_function_invocation_not.
11870 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11871 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11872
11873 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11874
11875 * config/mips/xm-news-mips.h: Delete file.
11876 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11877
11878 * config/m88k/xm-m88k.h: Delete file.
11879 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11880 * config/m88k/xm-delta88v4.h: Ditto.
11881 * config/m88k/xm-delta88.h: Ditto.
11882
11883 * config/alpha/xm-fbsd.h: Delete file.
11884 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11885
11886 * config/sparc/xm-sparc.h: Delete file.
11887 * Makefile.in (xm-sun4os4.h): Delete dependency.
11888 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11889 * config/sparc/xm-sun4os4.h: Ditto.
11890 * config/sparc/xm-linux.h: Ditto.
11891
11892 * config/i386/xm-windows.h: Delete file.
11893
11894 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11895
11896 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11897 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11898
11899 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11900
11901 * alpha-tdep.c (alpha_call_dummy_words): New.
11902 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11903 (CALL_DUMMY_P): Define.
11904 (CALL_DUMMY_WORDS): Define.
11905 (SIZEOF_CALL_DUMMY_WORDS): Define.
11906
11907 2002-01-19 Per Bothner <per@bothner.com>
11908
11909 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11910 isn't NULL, which can happen with some gcj-3.x-produced code.
11911
11912 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11913
11914 * alpha-tdep.c (alpha_register_virtual_type): New function.
11915 (alpha_init_frame_pc_first): Ditto.
11916 (alpha_fix_call_dummy): Ditto.
11917 (alpha_store_struct_return): Ditto.
11918 (alpha_extract_struct_value_address): Ditto.
11919 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11920 alpha_register_virtual_type.
11921 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11922 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11923 alpha_extract_struct_value_address.
11924 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11925 (INIT_FRAME_PC): Use init_frame_pc_noop.
11926 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11927
11928 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11929
11930 * i386gnu-nat.c: Include "i386-tdep.h".
11931 (fetch_fpregs): Simplify code dealing with uninitialized floating
11932 point states such that it doesn't require FP7_REGNUM.
11933
11934 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11935
11936 * alpha-tdep.c (frame_extra_info): New.
11937 (alpha_find_saved_regs): Make static. Use
11938 frame->extra_info.
11939 (alpha_frame_init_saved_regs): New function.
11940 (alpha_frame_saved_pc): Use frame->extra_info.
11941 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11942 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11943 (init_extra_frame_info): Rename to...
11944 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11945 (alpha_print_extra_frame_info): New function.
11946 (alpha_frame_locals_address): Ditto.
11947 (alpha_frame_args_address): Ditto.
11948 (alpha_pop_frame): Use frame->extra_info.
11949 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11950 alpha_frame_args_address.
11951 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11952 (alpha_find_saved_regs): Remove prototype.
11953 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11954 (EXTRA_FRAME_INFO): Remove.
11955 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11956 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11957
11958 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11959
11960 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11961 (alpha_cannot_fetch_register): Ditto.
11962 (alpha_cannot_store_register): Ditto.
11963 (alpha_register_convertible): Ditto.
11964 (alpha_use_struct_convention): Ditto.
11965 * config/alpha/tm-alpha.h: Update copyright years.
11966 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11967 (INNER_THAN): Use core_addr_lessthan.
11968 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11969 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11970 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11971 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11972 (FRAME_CHAIN): Remove unnecessary cast.
11973
11974 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11975
11976 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11977 obsolete.
11978
11979 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11980
11981 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11982 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11983 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11984 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11985 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11986 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11987 * x86-64-linux-nat.c: Ditto.
11988
11989 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11990
11991 * alpha-tdep.c (alpha_register_name): New function.
11992 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11993 (REGISTER_NAME): Define.
11994
11995 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11996
11997 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11998
11999 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12000
12001 * alpha-tdep.c: Update copyright years.
12002 (alpha_next_pc): New function.
12003 (alpha_software_single_step): Ditto.
12004 * config/alpha/tm-alpha.h: Add prototype for
12005 alpha_software_single_step.
12006
12007 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12008
12009 * alphabsd-nat.c: Update copyright years.
12010 (fill_gregset): Use regcache_collect.
12011 (fill_fpregset): Likewise.
12012 (fetch_inferior_registers): Only fetch integer registers
12013 if requested to do so.
12014 (store_inferior_registers): Only store integer registers
12015 if requested to do so.
12016
12017 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12018
12019 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12020 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12021 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12022 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12023 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12024 * config/arm/linux.mh (XDEPFILES): Delete.
12025 * config/arm/nbsd.mh (XDEPFILES): Delete.
12026 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12027 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12028 * config/i386/i386m3.mh (XDEPFILES): Delete.
12029 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12030 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12031 * config/i386/fbsd.mh (XDEPFILES): Delete.
12032 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12033 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12034 * config/i386/i386v4.mh (XDEPFILES): Delete.
12035 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12036 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12037 * config/i386/i386aix.mh (XDEPFILES): Delete.
12038 * config/i386/go32.mh (XDEPFILES): Delete.
12039 * config/i386/cygwin.mh (XDEPFILES): Delete.
12040 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12041 * config/i386/i386mach.mh (XDEPFILES): Delete.
12042 * config/i386/i386v32.mh (XDEPFILES): Delete.
12043 * config/i386/linux.mh (XDEPFILES): Delete.
12044 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12045 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12046 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12047 * config/i386/i386sco.mh (XDEPFILES): Delete.
12048 * config/i386/i386v.mh (XDEPFILES): Delete.
12049 * config/i386/nbsd.mh (XDEPFILES): Delete.
12050 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12051 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12052 * config/i386/symmetry.mh (XDEPFILES): Delete.
12053 * config/i386/obsd.mh (XDEPFILES): Delete.
12054 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12055 * config/ia64/linux.mh (XDEPFILES): Delete.
12056 * config/ia64/aix.mh (XDEPFILES): Delete.
12057 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12058 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12059 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12060 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12061 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12062 * config/m68k/linux.mh (XDEPFILES): Delete.
12063 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12064 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12065 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12066 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12067 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12068 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12069 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12070 * config/m88k/delta88.mh (XDEPFILES): Delete.
12071 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12072 * config/m88k/m88k.mh (XDEPFILES): Delete.
12073 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12074 * config/mips/linux.mh (XDEPFILES): Delete.
12075 * config/mips/irix6.mh (XDEPFILES): Delete.
12076 * config/mips/irix5.mh (XDEPFILES): Delete.
12077 * config/mips/irix4.mh (XDEPFILES): Delete.
12078 * config/mips/irix3.mh (XDEPFILES): Delete.
12079 * config/mips/decstation.mh (XDEPFILES): Delete.
12080 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12081 (NATDEPFILES): Move core-aout.o to here.
12082 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12083 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12084 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12085 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12086 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12087 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12088 * config/pa/hpux11.mh (XDEPFILES): Delete.
12089 * config/powerpc/aix.mh (XDEPFILES): Delete.
12090 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12091 * config/powerpc/linux.mh (XDEPFILES): Delete.
12092 * config/romp/rtbsd.mh: Rename XDEPFILES.
12093 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12094 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12095 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12096 * config/s390/s390.mh (XDEPFILES): Delete.
12097 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12098 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12099 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12100 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12101 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12102 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12103 * config/sparc/linux.mh (XDEPFILES): Delete.
12104 * config/vax/vaxult.mh (XDEPFILES): Delete.
12105 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12106 * Makefile.in (DEPFILES): Remove XDEPFILES.
12107
12108 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12109
12110 * utils.c (internal_verror): Fix comments, default is yes not no.
12111 Update queries to match. Default to quit and dump core.
12112
12113 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12114
12115 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12116 copyright.
12117 * defs.h, event-top.c, gdbcmd.h: Ditto.
12118 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12119 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12120 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12121 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12122 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12123 * mi/mi-main.c:Ditto.
12124
12125 * stack.c, symfile.c: Update copyright.
12126
12127 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12130 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12131 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12132 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12133
12134 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12137 * gdbserver/low-lynx.c (myattach): Likewise.
12138 * gdbserver/low-nbsd.c (myattach): Likewise.
12139 * gdbserver/low-sim.c (myattach): Likewise.
12140 * gdbserver/low-sparc.c (myattach): Likewise.
12141 * gdbserver/low-sun3.c (myattach): Likewise.
12142
12143 * gdbserver/low-linux.c (myattach): New function.
12144
12145 * gdbserver/server.c (attach_inferior): New function.
12146 (main): Handle "--attach".
12147
12148 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12149
12150 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12151 maintainer.
12152
12153 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12154
12155 * c-typeprint.c (is_type_conversion_operator): Add additional
12156 check for non-conversion operators.
12157
12158 2002-01-15 Michael Snyder <msnyder@redhat.com>
12159
12160 * linux-proc.c: Add "info proc" command, a la procfs.c.
12161 (read_mapping): New function, abstract and re-use code.
12162 (linux_find_memory_regions): Use new func read_mapping.
12163 (linux_info_proc_cmd): New function, implement "info proc".
12164 (_initialize_linux_proc): Add new command "info proc".
12165
12166 2002-01-15 Michael Snyder <msnyder@redhat.com>
12167
12168 * symfile.c (generic_load): Use bfd_map_over_sections method
12169 instead of manipulating bfd structure members directly.
12170 (add_section_size_callback): New function, bfd sections callback
12171 used by generic_load.
12172 (load_sections_callback): New function, bfd sections callback
12173 used by generic_load.
12174
12175 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12176
12177 [Based on work by Jim Blandy]
12178 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12179 (builtin_type_vec128): Export.
12180 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12181 types.
12182 (builtin_type_vec128): New builtin type for 128 bit vector
12183 registers.
12184 (build_gdbtypes): Initialize builtin_type_v16qi and
12185 builtin_type_v8hi. Create the vec128 register builtin type
12186 structure.
12187 (build_builtin_type_vec128): New function.
12188 (_initialize_gdbtypes): Register builtin_type_v16qi and
12189 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12190 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12191 AltiVec register to new builtin type.
12192
12193 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12194
12195 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12196 to make_cv_type.
12197
12198 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12199
12200 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12201 CLEAN_UP_REGISTER_VALUE.
12202 * regcache.c (supply_register): Update only call.
12203
12204 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12205
12206 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12207 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12208 a29k-*-vxworks* targets as obsolete.
12209
12210 2002-01-14 Michael Snyder <msnyder@redhat.com>
12211
12212 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12213 until we can resolve portability issues.
12214 * gregset.h: Remove references to fpxregs.
12215 * gcore.c (gcore_command): Initialize note_sec to NULL.
12216
12217 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12218
12219 * signals.c (target_signal_to_name): Rewrite. Only use
12220 signals[].name when in bounds and non-NULL.
12221
12222 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12223
12224 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12225 * signals.c (target_signal_to_name): Verify that SIG is within the
12226 bounds of the signals array.
12227
12228 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12229
12230 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12231
12232 2002-01-13 Keith Seitz <keiths@redhat.com>
12233
12234 * stack.c (print_frame_info_base): Print the frame's pc
12235 only if when print_frame_info_listing_hook is not defined.
12236
12237 2002-01-13 Keith Seitz <keiths@redhat.com>
12238
12239 * varobj.c (varobj_set_value): Make sure that there were no
12240 errors evaluating the object before attempting to set its
12241 value.
12242 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12243 so this offset adjustment is no longer necessary.
12244 (create_child): Don't set the error flag if the child is
12245 a CPLUS_FAKE_CHILD.
12246 (value_of_child): If value_fetch_lazy fails, return NULL
12247 so that callers will be notified that an error occurred.
12248 (c_value_of_variable): Delay check of variable's validity
12249 until later. We actually want all structs and unions to have
12250 the value "{...}".
12251 Do not return "???" for variables which could not be evaluated.
12252 This error condition must be returned to the caller so that it
12253 can get the error condition from gdb.
12254 (cplus_name_of_child): Adjust index for vptr before figuring
12255 out the name of the child.
12256 (cplus_value_of_child): If a child's (real) parent is not valid,
12257 don't even bother trying to give a value for it. Just return
12258 an error. Change all instances in this function.
12259 (cplus_type_of_child): If our parent is one of the "fake"
12260 parents, we need to get at the type of the real parent, and
12261 derive the child's true type using this information.
12262
12263 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12264
12265 From 2002-01-09 John Marshall <johnm@falch.net>:
12266 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12267 sources.redhat.com, and tweak some related URLs which had
12268 suffered from linkrot.
12269
12270 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12271
12272 From Jeff law:
12273 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12274 structures passed in registers.
12275
12276 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12277
12278 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12279 white space which prevented compilation. Reported by DSK
12280 <dsk@student.unsw.edu.au>.
12281
12282 2002-01-11 Michael Snyder <msnyder@redhat.com>
12283
12284 * symfile.c (build_section_addr_info_from_section_tab):
12285 Use bfd access method instead of manipulating bfd directly.
12286 (syms_from_objfile): Ditto.
12287 (simple_overlay_update_1): Ditto.
12288 (simple_overlay_update): Ditto.
12289 (generic_load): Ditto.
12290 (overlay_unmapped_address): FIXME comment, bfd access methods.
12291 (sections_overlap): FIXME comment, bfd access methods.
12292 (pc_in_mapped_range): FIXME comment, bfd access methods.
12293 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12294 (section_is_mapped): FIXME comment, bfd access methods.
12295 (section_is_overlay): FIXME comment, bfd access methods.
12296
12297 * symfile.c (generic_load): Whitespace and long line cleanups.
12298 Remove duplicate variable, change several local variables to
12299 more appropriate data types.
12300 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12301
12302 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12303
12304 From Peter Schauer:
12305 * language.c (longest_local_hex_string_custom): Use phex_nz to
12306 convert NUM to a hex string.
12307
12308 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12309
12310 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12311 the function.
12312 Update Copyright year.
12313
12314 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12315
12316 * language.c (longest_raw_hex_string): Delete unused function.
12317
12318 2002-01-11 Petr Sorfa <petrs@caldera.com>
12319
12320 * MAINTAINERS (write-after-approval): Add myself.
12321 * dwarf2read.c (read_tag_string_type): Handling of
12322 DW_AT_byte_size.
12323 (read_tag_string_type): FORTRAN fix to prevent propagation of
12324 first string size.
12325 (set_cu_language): Handling of DW_LANG_Fortran95
12326
12327 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12328
12329 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12330 GETPID(inferior_ptid).
12331 (store_inferior_registers): Likewise.
12332
12333 2002-01-10 Jason Merrill <jason@redhat.com>
12334
12335 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12336 Fix DW_OP_minus.
12337
12338 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12339
12340 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12341 and bfd/elf32-sh-nbsd.c.
12342
12343 2002-01-10 Michael Snyder <msnyder@redhat.com>
12344
12345 * NEWS: Mention --pid and corefile/proc-id behavior change.
12346
12347 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12348 * gcore.c: Include cli/cli-decode.h instead of command.h.
12349
12350 * main.c (captured_main): Add new command line option "--pid".
12351 If the second command line argument (following the symbol-file)
12352 begins with a digit, try to attach to it before trying to open
12353 it as a corefile.
12354 (print_gdb_help): Document the "--pid" argument.
12355
12356 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12357
12358 * completer.c (command_completer): New function.
12359
12360 * completer.h <command_completer>: Add prototype.
12361
12362 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12363 completer for the "help" command.
12364
12365 2002-01-09 Jason Merrill <jason@redhat.com>
12366
12367 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12368
12369 2002-01-09 Michael Snyder <msnyder@redhat.com>
12370
12371 * i386-linux-nat.c (fill_fpxregset): Make global.
12372 (store_fpxregset): Ditto.
12373
12374 * gregset.h (gdb_fpxregset_t): Define.
12375 (supply_fpxregset): Prototype.
12376 (fill_fpxregset): Prototype.
12377
12378 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12379
12380 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12381
12382 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12383 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12384 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12385
12386 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12387
12388 * MAINTAINERS: Update target maintainer rules so that any
12389 Maintainer can approve a tested patch for a maintenance-only
12390 target.
12391
12392 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12393
12394 * MAINTAINERS (write-after-approval): Add myself.
12395
12396 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12397 IN_SIGTRAMP.
12398
12399 2002-01-08 Michael Snyder <msnyder@redhat.com>
12400
12401 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12402 real name of the executable, rather than the /proc name.
12403
12404 2002-01-03 Michael Snyder <msnyder@redhat.com>
12405
12406 Implement a "generate-core-file" command in gdb, save target state.
12407 * gcore.c: New file. Implement new command 'generate-core-file'.
12408 Save a corefile image of the current state of the inferior.
12409 * linux-proc.c: Add linux-specific code for saving corefiles.
12410 * target.h (struct target_ops): Add new target vectors for saving
12411 corefiles; to_find_memory_regions and to_make_corefile_notes.
12412 (target_find_memory_regions): New macro.
12413 (target_make_corefile_notes): New macro.
12414 * target.c (update_current_target): Inherit new target methods.
12415 (dummy_find_memory_regions): New place-holder method.
12416 (dummy_make_corefile_notes): New place-holder method.
12417 (init_dummy_target): Initialize new dummy target vectors.
12418 * exec.c (exec_set_find_memory_regions): New function.
12419 Allow the exec_ops vector for memory regions to be taken over.
12420 (exec_make_note_section): New function, target vector method.
12421 * defs.h (exec_set_find_memory_regions): Export prototype.
12422 * procfs.c (proc_find_memory_regions): New function, corefile method.
12423 (procfs_make_note_section): New function, corefile method.
12424 (init_procfs_ops): Set new target vector pointers.
12425 (find_memory_regions_callback): New function.
12426 (procfs_do_thread_registers): New function.
12427 (procfs_corefile_thread_callback): New function.
12428 * sol-thread.c (sol_find_memory_regions): New function.
12429 (sol_make_note_section): New function.
12430 (init_sol_thread_ops): Initialize new target vectors.
12431 * inftarg.c (inftarg_set_find_memory_regions): New function.
12432 Allow to_find_memory_regions vector to be taken over.
12433 (inftarg_set_make_corefile_notes): New function.
12434 Allow to_make_corefile_notes vector to be taken over.
12435 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12436 interface layer if not target_has_execution (may be a corefile).
12437 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12438 * config/sparc/sun4sol2.mh: Ditto.
12439 * config/alpha/alpha-linux.mh: Ditto.
12440 * config/arm/linux.mh: Ditto.
12441 * config/i386/x86-64linux.mh: Ditto.
12442 * config/ia64/linux.mh: Ditto.
12443 * config/m68k/linux.mh: Ditto.
12444 * config/mips/linux.mh: Ditto.
12445 * config/powerpc/linux.mh: Ditto.
12446 * config/sparc/linux.mh: Ditto.
12447
12448 2002-01-07 Michael Snyder <msnyder@redhat.com>
12449
12450 * arm-linux-nat.c: Remove references to regcache.c internal data
12451 (registers[] and register_valid[]).
12452
12453 2002-01-07 Michael Snyder <msnyder@redhat.com>
12454
12455 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12456 so that attaching to a pid will automatically read the process's
12457 symbol file and shlibs.
12458 * Makefile.in: Add rule for linux-proc.o.
12459 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12460 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12461 * config/arm/linux.mh: Ditto.
12462 * config/i386/linux.mh: Ditto.
12463 * config/i386/x86-64linux.mh: Ditto.
12464 * config/ia64/linux.mh: Ditto.
12465 * config/m68k/linux.mh: Ditto.
12466 * config/mips/linux.mh: Ditto.
12467 * config/powerpc/linux.mh: Ditto.
12468 * config/sparc/linux.mh: Ditto.
12469
12470 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12471
12472 * win32-nat.c: Add i386-tdep.h dependency.
12473
12474 2002-01-07 Michael Snyder <msnyder@redhat.com>
12475
12476 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12477 instead of bfd_get_arch_size. Don't bail out just because
12478 there's no exec_bfd.
12479
12480 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12481 * p-valprint.c (pascal_object_print_value): Ditto.
12482 * somread.c (som_symtab_read): Ditto.
12483 * symfile.c (simple_free_overlay_region_table): Ditto.
12484 * valops.c (value_assign): Ditto.
12485
12486 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12487 use tilde_expand and strerror for opening save-tracepoints file.
12488
12489 * thread-db.c (thread_db_new_objfile): Indendation fix.
12490
12491 * infptrace.c (GDB_MAX_ALLOCA): New define.
12492 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12493 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12494 can be overridden with whatever value is appropriate to the host).
12495 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12496 alloca to allocate potentially large buffer.
12497 * rs6000-nat.c (child_xfer_memory): Ditto.
12498 * symm-nat.c (child_xfer_memory): Ditto.
12499 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12500
12501 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12502
12503 From Nick Clifton <nickc@redhat.com>
12504 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12505
12506 2002-01-07 Michael Snyder <msnyder@redhat.com>
12507
12508 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12509 Don't use exec_bfd if it's NULL.
12510
12511 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12512
12513 * valops.c (value_arg_coerce): Fix formatting.
12514
12515 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12516
12517 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12518 * gnu-nat.c: Ditto.
12519
12520 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12521
12522 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12523 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12524 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12525 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12526 z8k-coff have not been multi-arched. Update z8k-coff build
12527 status.
12528
12529 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12530
12531 * MAINTAINERS: Mark a29k target as obsolete.
12532 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12533 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12534 comments.
12535 * NEWS: Note that a29k targets are obsolete.
12536 * a29k-tdep.c: Mark as obsolete.
12537 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12538 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12539 a29k-*-vxworks* targets as obsolete.
12540 * remote-adapt.c: Obsolete.
12541 * remote-eb.c: Obsolete.
12542 * remote-mm.c: Obsolete.
12543 * remote-udi.c: Obsolete.
12544 * config/a29k/a29k-udi.mt: Obsolete.
12545 * config/a29k/a29k.mt: Obsolete.
12546 * config/a29k/tm-a29k.h: Obsolete.
12547 * config/a29k/tm-vx29k.h: Obsolete.
12548 * config/a29k/vx29k.mt: Obsolete.
12549
12550 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12551
12552 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12553 with BFD_ENDIAN_BIG.
12554
12555 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12556
12557 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12558 * configure, config.in: Re-generate.
12559 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12560 * defs.h: Do not include <endian.h>.
12561
12562 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12563
12564 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12565 * config.in: Regenerate.
12566 * configure.in: Update copyright years.
12567 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12568 * configure: Regenerate.
12569 * i386bsd-nat.c: Update copyright years.
12570 (fill_gregset): Use regcache_collect.
12571 (fetch_inferior_registers): Only fetch integer registers
12572 if requested to do so. Add support for XMM registers
12573 using PT_GETXMMREGS.
12574 (store_inferior_registers): Only store integer registers
12575 if requested to do so. Add support for XMM registers
12576 using PT_SETXMMREGS.
12577 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12578 (store_inferior_registers): Remove.
12579 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12580 (fetch_elfcore_registers): New function.
12581 (i386nbsd_elfcore_fns): New.
12582 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12583 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12584 i386bsd-nat.o.
12585 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12586 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12587 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12588 * config/i386/tm-nbsd.h: Update copyright years.
12589 (HAVE_SSE_REGS): Define.
12590 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12591 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12592 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12593 (SIGCONTEXT_PC_OFFSET): Remove.
12594 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12595
12596 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12597
12598 * configure.tgt: Remove powerpc-*-macos* target.
12599 * config/m68k/xm-mpw.h: Delete file.
12600 * config/xm-mpw.h: Delete file.
12601 * ser-mac.c: Delete file.
12602 * mpw-make.sed: Delete file.
12603 * mpw-config.in: Delete file.
12604 * mac-xdep.c: Delete file.
12605 * mac-gdb.r: Delete file.
12606 * mac-defs.h: Delete file.
12607 * mac-nat.c: Delete file.
12608 * config/powerpc/macos.mh: Delete file.
12609 * config/powerpc/macos.mt: Delete file.
12610 * config/powerpc/nm-macos.h: Delete file.
12611 * config/powerpc/tm-macos.h: Delete file.
12612 * source.c (openp, open_source_file): Remove obsolete code.
12613 * top.c (gdb_readline): Ditto.
12614 * utils.c (query): Ditto.
12615 * event-top.c (display_gdb_prompt): Ditto.
12616 * Makefile.in (ser-mac.o): Delete obsolete target.
12617 * NEWS: Update.
12618
12619 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12620
12621 * defs.h (BIG_ENDIAN): Delete macro definition.
12622 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12623 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12624 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12625 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12626 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12627 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12628 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12629 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12630 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12631 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12632 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12633 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12634 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12635 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12636 * gdbarch.c: Re-generate.
12637
12638 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12639
12640 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12641 for core files.
12642
12643 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12644
12645 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12646
12647 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12648
12649 * value.h (value_ptr): Delete typedef.
12650
12651 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12652
12653 * i386nbsd-nat.c: Update copyright years.
12654 Include i386-tdep.h.
12655
12656 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12657
12658 * stabsread.c: Update copyright years.
12659
12660 From Debashis Mahata <debashis.mahata@wipro.com>:
12661 (read_struct_fields): Deal with Sun C compiler erroneous stab
12662 output for structs and unions.
12663 Fix PR gdb/269.
12664
12665 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12666
12667 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12668 prototype.
12669
12670 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12671
12672 * cp-abi.c: Fix whitespace.
12673 (baseclass_offset): New wrapper function.
12674 * cp-abi.h (baseclass_offset): Add prototype.
12675 (struct cp_abi_ops): Add baseclass_offset pointer.
12676
12677 * valops.c (vb_match): Move to...
12678 * gnu-v2-abi.c (vb_match): here.
12679 * valops.c (baseclass_offset): Move to...
12680 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12681
12682 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12683
12684 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12685 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12686 * hpacc-abi.c (init_hpacc_ops): Likewise.
12687
12688 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12689
12690 * valops.c (find_overload_match): Accept obj as a
12691 reference parameter. Update it before returning.
12692 * value.h (find_overload_match): Update prototype.
12693 * eval.c (evaluate_subexp_standard): Pass object to
12694 find_overload_match by reference.
12695
12696 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12697
12698 * valarith.c: Replace value_ptr with struct value pointer. Remove
12699 register attribute from value declarations.
12700 * valops.c: Ditto.
12701 * value.h: Ditto.
12702 * scm-lang.c (scm_lookup_name): Ditto.
12703
12704 2002-01-03 Michael Snyder <msnyder@redhat.com>
12705
12706 Abstract the functionality of iterating over mapped memory
12707 regions into a general purpose iterator function.
12708 * procfs.c (iterate_over_mappings): New function, general purpose
12709 iterator for memory sections.
12710 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12711 (solib_mappings_callback): New function, callback for above.
12712 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12713 (info_mappings_callback): New function, callback for above.
12714
12715 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12716
12717 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12718
12719 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12720 * i386-tdep.c: Include "elf-bfd.h".
12721 (process_note_abi_tag_sections): New function.
12722 (i386_gdbarch_init): Add code to recognize various OS/ABI
12723 combinations.
12724
12725 * maint.c (_initialize_maint_cmds): Add missing \ in
12726 string-literal.
12727
12728 For older changes see ChangeLog-2001
12729 \f
12730 Local Variables:
12731 mode: change-log
12732 left-margin: 8
12733 fill-column: 74
12734 version-control: never
12735 End: